From dcf8db1410f1ee4dcef36b13c8ca9e6e4d60103d Mon Sep 17 00:00:00 2001
From: gucal
Date: Wed, 3 Apr 2024 13:01:59 +0300
Subject: [PATCH] Remove pt doc
---
components/doc/accordion/pt/ptdoc.js | 144 ------
components/doc/autocomplete/pt/ptdoc.js | 111 -----
components/doc/avatar/pt/ptdoc.js | 49 --
components/doc/badge/pt/ptdoc.js | 46 --
components/doc/blockui/pt/ptdoc.js | 83 ----
components/doc/breadcrumb/pt/ptdoc.js | 91 ----
components/doc/button/pt/ptdoc.js | 67 ---
components/doc/calendar/pt/ptdoc.js | 100 ----
components/doc/card/pt/ptdoc.js | 85 ----
components/doc/carousel/pt/ptdoc.js | 294 -----------
components/doc/cascadeselect/pt/ptdoc.js | 343 -------------
components/doc/chart/pt/ptdoc.js | 161 ------
components/doc/checkbox/pt/ptdoc.js | 84 ----
components/doc/chip/pt/ptdoc.js | 73 ---
components/doc/chips/pt/ptdoc.js | 84 ----
components/doc/colorpicker/pt/ptdoc.js | 81 ---
components/doc/confirmdialog/pt/ptdoc.js | 91 ----
components/doc/confirmpopup/pt/ptdoc.js | 103 ----
components/doc/contextmenu/pt/ptdoc.js | 463 ------------------
components/doc/datascroller/pt/ptdoc.js | 263 ----------
components/doc/datatable/pt/ptdoc.js | 270 ----------
components/doc/dataview/pt/ptdoc.js | 419 ----------------
components/doc/dialog/pt/ptdoc.js | 109 -----
components/doc/divider/pt/ptdoc.js | 83 ----
components/doc/dock/pt/ptdoc.js | 182 -------
components/doc/dropdown/pt/ptdoc.js | 126 -----
components/doc/editor/pt/ptdoc.js | 80 ---
components/doc/fieldset/pt/ptdoc.js | 96 ----
components/doc/fileupload/pt/ptdoc.js | 108 ----
components/doc/galleria/pt/ptdoc.js | 184 -------
components/doc/iconfield/pt/ptdoc.js | 26 -
components/doc/image/pt/ptdoc.js | 77 ---
components/doc/inplace/pt/ptdoc.js | 93 ----
components/doc/inputmask/pt/ptdoc.js | 98 ----
components/doc/inputnumber/pt/ptdoc.js | 120 -----
components/doc/inputswitch/pt/ptdoc.js | 84 ----
components/doc/inputtext/pt/ptdoc.js | 80 ---
components/doc/inputtextarea/pt/ptdoc.js | 88 ----
components/doc/knob/pt/ptdoc.js | 76 ---
components/doc/listbox/pt/ptdoc.js | 122 -----
components/doc/megamenu/pt/ptdoc.js | 408 ---------------
components/doc/mention/pt/ptdoc.js | 263 ----------
components/doc/menu/pt/ptdoc.js | 195 --------
components/doc/menubar/pt/ptdoc.js | 454 -----------------
components/doc/message/pt/ptdoc.js | 69 ---
components/doc/messages/pt/ptdoc.js | 91 ----
components/doc/metergroup/pt/ptdoc.js | 454 -----------------
components/doc/multiselect/pt/ptdoc.js | 171 -------
components/doc/multistatecheckbox/pt/ptdoc.js | 115 -----
components/doc/orderlist/pt/ptdoc.js | 196 --------
components/doc/organizationchart/pt/ptdoc.js | 189 -------
components/doc/overlaypanel/pt/ptdoc.js | 86 ----
components/doc/paginator/pt/ptdoc.js | 114 -----
components/doc/panel/pt/ptdoc.js | 94 ----
components/doc/panelmenu/pt/ptdoc.js | 423 ----------------
components/doc/password/pt/ptdoc.js | 76 ---
components/doc/picklist/pt/ptdoc.js | 246 ----------
components/doc/progressbar/pt/ptdoc.js | 65 ---
components/doc/progressspinner/pt/ptdoc.js | 65 ---
components/doc/radiobutton/pt/ptdoc.js | 155 ------
components/doc/rating/pt/ptdoc.js | 76 ---
components/doc/scrollpanel/pt/ptdoc.js | 118 -----
components/doc/scrolltop/pt/ptdoc.js | 98 ----
components/doc/selectbutton/pt/ptdoc.js | 83 ----
components/doc/sidebar/pt/ptdoc.js | 105 ----
components/doc/skeleton/pt/ptdoc.js | 61 ---
components/doc/slider/pt/ptdoc.js | 84 ----
components/doc/speeddial/pt/ptdoc.js | 148 ------
components/doc/splitbutton/pt/ptdoc.js | 139 ------
components/doc/splitter/pt/ptdoc.js | 59 ---
components/doc/steps/pt/ptdoc.js | 111 -----
components/doc/tabmenu/pt/ptdoc.js | 112 -----
components/doc/tabview/pt/ptdoc.js | 137 ------
components/doc/tag/pt/ptdoc.js | 63 ---
components/doc/terminal/pt/ptdoc.js | 216 --------
components/doc/tieredmenu/pt/ptdoc.js | 451 -----------------
components/doc/timeline/pt/ptdoc.js | 98 ----
components/doc/toast/pt/ptdoc.js | 98 ----
components/doc/togglebutton/pt/ptdoc.js | 84 ----
components/doc/toolbar/pt/ptdoc.js | 112 -----
components/doc/tooltip/pt/ptdoc.js | 87 ----
components/doc/tree/pt/ptdoc.js | 128 -----
components/doc/treeselect/pt/ptdoc.js | 152 ------
components/doc/treetable/pt/ptdoc.js | 203 --------
components/doc/tristatecheckbox/pt/ptdoc.js | 91 ----
components/doc/virtualscroller/pt/ptdoc.js | 131 -----
pages/accordion/index.js | 6 -
pages/autocomplete/index.js | 6 -
pages/avatar/index.js | 6 -
pages/badge/index.js | 6 -
pages/blockui/index.js | 6 -
pages/breadcrumb/index.js | 8 +-
pages/button/index.js | 6 -
pages/calendar/index.js | 6 -
pages/card/index.js | 6 -
pages/carousel/index.js | 6 -
pages/cascadeselect/index.js | 6 -
pages/chart/index.js | 6 -
pages/checkbox/index.js | 6 -
pages/chip/index.js | 6 -
pages/chips/index.js | 6 -
pages/colorpicker/index.js | 6 -
pages/confirmdialog/index.js | 6 -
pages/confirmpopup/index.js | 10 +-
pages/contextmenu/index.js | 14 +-
pages/datascroller/index.js | 6 -
pages/datatable/index.js | 6 -
pages/dataview/index.js | 6 -
pages/dialog/index.js | 10 +-
pages/divider/index.js | 6 -
pages/dock/index.js | 6 -
pages/dropdown/index.js | 6 -
pages/editor/index.js | 6 -
pages/fieldset/index.js | 6 -
pages/fileupload/index.js | 6 -
pages/galleria/index.js | 6 -
pages/image/index.js | 6 -
pages/inplace/index.js | 6 -
pages/inputmask/index.js | 6 -
pages/inputnumber/index.js | 6 -
pages/inputswitch/index.js | 6 -
pages/inputtext/index.js | 6 -
pages/inputtextarea/index.js | 6 -
pages/knob/index.js | 6 -
pages/listbox/index.js | 6 -
pages/megamenu/index.js | 6 -
pages/mention/index.js | 6 -
pages/menu/index.js | 6 -
pages/menubar/index.js | 6 -
pages/message/index.js | 6 -
pages/messages/index.js | 8 +-
pages/multiselect/index.js | 6 -
pages/multistatecheckbox/index.js | 6 -
pages/orderlist/index.js | 6 -
pages/organizationchart/index.js | 6 -
pages/overlaypanel/index.js | 6 -
pages/paginator/index.js | 6 -
pages/panel/index.js | 6 -
pages/panelmenu/index.js | 6 -
pages/password/index.js | 6 -
pages/picklist/index.js | 6 -
pages/progressbar/index.js | 6 -
pages/progressspinner/index.js | 6 -
pages/radiobutton/index.js | 6 -
pages/rating/index.js | 6 -
pages/scrollpanel/index.js | 6 -
pages/scrolltop/index.js | 6 -
pages/selectbutton/index.js | 6 -
pages/sidebar/index.js | 8 +-
pages/skeleton/index.js | 6 -
pages/slider/index.js | 6 -
pages/speeddial/index.js | 6 -
pages/splitbutton/index.js | 6 -
pages/splitter/index.js | 6 -
pages/steps/index.js | 6 -
pages/tabmenu/index.js | 6 -
pages/tabview/index.js | 6 -
pages/tag/index.js | 6 -
pages/terminal/index.js | 6 -
pages/tieredmenu/index.js | 6 -
pages/timeline/index.js | 6 -
pages/toast/index.js | 6 -
pages/togglebutton/index.js | 6 -
pages/toolbar/index.js | 8 +-
pages/tooltip/index.js | 6 -
pages/tree/index.js | 6 -
pages/treeselect/index.js | 6 -
pages/treetable/index.js | 6 -
pages/tristatecheckbox/index.js | 6 -
pages/virtualscroller/index.js | 6 -
170 files changed, 12 insertions(+), 13027 deletions(-)
delete mode 100644 components/doc/accordion/pt/ptdoc.js
delete mode 100644 components/doc/autocomplete/pt/ptdoc.js
delete mode 100644 components/doc/avatar/pt/ptdoc.js
delete mode 100644 components/doc/badge/pt/ptdoc.js
delete mode 100644 components/doc/blockui/pt/ptdoc.js
delete mode 100644 components/doc/breadcrumb/pt/ptdoc.js
delete mode 100644 components/doc/button/pt/ptdoc.js
delete mode 100644 components/doc/calendar/pt/ptdoc.js
delete mode 100644 components/doc/card/pt/ptdoc.js
delete mode 100644 components/doc/carousel/pt/ptdoc.js
delete mode 100644 components/doc/cascadeselect/pt/ptdoc.js
delete mode 100644 components/doc/chart/pt/ptdoc.js
delete mode 100644 components/doc/checkbox/pt/ptdoc.js
delete mode 100644 components/doc/chip/pt/ptdoc.js
delete mode 100644 components/doc/chips/pt/ptdoc.js
delete mode 100644 components/doc/colorpicker/pt/ptdoc.js
delete mode 100644 components/doc/confirmdialog/pt/ptdoc.js
delete mode 100644 components/doc/confirmpopup/pt/ptdoc.js
delete mode 100644 components/doc/contextmenu/pt/ptdoc.js
delete mode 100644 components/doc/datascroller/pt/ptdoc.js
delete mode 100644 components/doc/datatable/pt/ptdoc.js
delete mode 100644 components/doc/dataview/pt/ptdoc.js
delete mode 100644 components/doc/dialog/pt/ptdoc.js
delete mode 100644 components/doc/divider/pt/ptdoc.js
delete mode 100644 components/doc/dock/pt/ptdoc.js
delete mode 100644 components/doc/dropdown/pt/ptdoc.js
delete mode 100644 components/doc/editor/pt/ptdoc.js
delete mode 100644 components/doc/fieldset/pt/ptdoc.js
delete mode 100644 components/doc/fileupload/pt/ptdoc.js
delete mode 100644 components/doc/galleria/pt/ptdoc.js
delete mode 100644 components/doc/iconfield/pt/ptdoc.js
delete mode 100644 components/doc/image/pt/ptdoc.js
delete mode 100644 components/doc/inplace/pt/ptdoc.js
delete mode 100644 components/doc/inputmask/pt/ptdoc.js
delete mode 100644 components/doc/inputnumber/pt/ptdoc.js
delete mode 100644 components/doc/inputswitch/pt/ptdoc.js
delete mode 100644 components/doc/inputtext/pt/ptdoc.js
delete mode 100644 components/doc/inputtextarea/pt/ptdoc.js
delete mode 100644 components/doc/knob/pt/ptdoc.js
delete mode 100644 components/doc/listbox/pt/ptdoc.js
delete mode 100644 components/doc/megamenu/pt/ptdoc.js
delete mode 100644 components/doc/mention/pt/ptdoc.js
delete mode 100644 components/doc/menu/pt/ptdoc.js
delete mode 100644 components/doc/menubar/pt/ptdoc.js
delete mode 100644 components/doc/message/pt/ptdoc.js
delete mode 100644 components/doc/messages/pt/ptdoc.js
delete mode 100644 components/doc/metergroup/pt/ptdoc.js
delete mode 100644 components/doc/multiselect/pt/ptdoc.js
delete mode 100644 components/doc/multistatecheckbox/pt/ptdoc.js
delete mode 100644 components/doc/orderlist/pt/ptdoc.js
delete mode 100644 components/doc/organizationchart/pt/ptdoc.js
delete mode 100644 components/doc/overlaypanel/pt/ptdoc.js
delete mode 100644 components/doc/paginator/pt/ptdoc.js
delete mode 100644 components/doc/panel/pt/ptdoc.js
delete mode 100644 components/doc/panelmenu/pt/ptdoc.js
delete mode 100644 components/doc/password/pt/ptdoc.js
delete mode 100644 components/doc/picklist/pt/ptdoc.js
delete mode 100644 components/doc/progressbar/pt/ptdoc.js
delete mode 100644 components/doc/progressspinner/pt/ptdoc.js
delete mode 100644 components/doc/radiobutton/pt/ptdoc.js
delete mode 100644 components/doc/rating/pt/ptdoc.js
delete mode 100644 components/doc/scrollpanel/pt/ptdoc.js
delete mode 100644 components/doc/scrolltop/pt/ptdoc.js
delete mode 100644 components/doc/selectbutton/pt/ptdoc.js
delete mode 100644 components/doc/sidebar/pt/ptdoc.js
delete mode 100644 components/doc/skeleton/pt/ptdoc.js
delete mode 100644 components/doc/slider/pt/ptdoc.js
delete mode 100644 components/doc/speeddial/pt/ptdoc.js
delete mode 100644 components/doc/splitbutton/pt/ptdoc.js
delete mode 100644 components/doc/splitter/pt/ptdoc.js
delete mode 100644 components/doc/steps/pt/ptdoc.js
delete mode 100644 components/doc/tabmenu/pt/ptdoc.js
delete mode 100644 components/doc/tabview/pt/ptdoc.js
delete mode 100644 components/doc/tag/pt/ptdoc.js
delete mode 100644 components/doc/terminal/pt/ptdoc.js
delete mode 100644 components/doc/tieredmenu/pt/ptdoc.js
delete mode 100644 components/doc/timeline/pt/ptdoc.js
delete mode 100644 components/doc/toast/pt/ptdoc.js
delete mode 100644 components/doc/togglebutton/pt/ptdoc.js
delete mode 100644 components/doc/toolbar/pt/ptdoc.js
delete mode 100644 components/doc/tooltip/pt/ptdoc.js
delete mode 100644 components/doc/tree/pt/ptdoc.js
delete mode 100644 components/doc/treeselect/pt/ptdoc.js
delete mode 100644 components/doc/treetable/pt/ptdoc.js
delete mode 100644 components/doc/tristatecheckbox/pt/ptdoc.js
delete mode 100644 components/doc/virtualscroller/pt/ptdoc.js
diff --git a/components/doc/accordion/pt/ptdoc.js b/components/doc/accordion/pt/ptdoc.js
deleted file mode 100644
index b3d7f826a8..0000000000
--- a/components/doc/accordion/pt/ptdoc.js
+++ /dev/null
@@ -1,144 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Accordion, AccordionTab } from '@/components/lib/accordion/Accordion';
-
-export function PTDoc(props) {
- const tabs = [
- { title: 'Header 1', content: 'Tab 1 Content' },
- { title: 'Header 2', content: 'Tab 2 Content' },
- { title: 'Header 3', content: 'Tab 3 Content' }
- ];
-
- const panelClassName = (parent, index) => {
- if (parent.state.activeIndex === index) {
- return 'bg-primary';
- }
- };
-
- const code = {
- basic: `
-
- {tabs.map((tab, i) => {
- return (
- ({
- className: panelClassName(parent, i)
- })
- }}
- header={tab.title}>
-
- {tab.content}
-
-
- )
- })}
-
- `,
- javascript: `
-import React from 'react';
-import { Accordion, AccordionTab } from 'primereact/accordion';
-
-export default function PTDemo() {
- const tabs = [
- { title: 'Header 1', content: 'Tab 1 Content' },
- { title: 'Header 2', content: 'Tab 2 Content' },
- { title: 'Header 3', content: 'Tab 3 Content' }
- ];
-
- const panelClassName = (parent, index) => {
- if (parent.state.activeIndex === index) return 'bg-primary';
- };
-
- return (
-
-
- {tabs.map((tab, i) => {
- return (
- ({
- className: panelClassName(parent, i)
- })
- }}
- header={tab.title}>
-
- {tab.content}
-
-
- )
- })}
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Accordion, AccordionTab } from 'primereact/accordion';
-
-export default function PTDemo() {
- const tabs = [
- { title: 'Header 1', content: 'Tab 1 Content' },
- { title: 'Header 2', content: 'Tab 2 Content' },
- { title: 'Header 3', content: 'Tab 3 Content' }
- ];
-
- const panelClassName = (parent, index) => {
- if (parent.state.activeIndex === index) return 'bg-primary';
- };
-
- return (
-
-
- {tabs.map((tab, i) => {
- return (
- ({
- className: panelClassName(parent, i)
- })
- }}
- header={tab.title}>
-
- {tab.content}
-
-
- )
- })}
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
- {tabs.map((tab, i) => {
- return (
- ({
- className: panelClassName(parent, i)
- })
- }}
- header={tab.title}
- >
- {tab.content}
-
- );
- })}
-
-
-
- >
- );
-}
diff --git a/components/doc/autocomplete/pt/ptdoc.js b/components/doc/autocomplete/pt/ptdoc.js
deleted file mode 100644
index 86bf17c447..0000000000
--- a/components/doc/autocomplete/pt/ptdoc.js
+++ /dev/null
@@ -1,111 +0,0 @@
-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 PTDoc(props) {
- const [value, setValue] = useState('');
- const [items, setItems] = useState([]);
-
- const search = (event) => {
- setItems([...Array(10).keys()].map((item) => event.query + '-' + item));
- };
-
- const code = {
- basic: `
- setValue(e.value)}
- pt={{
- input: { root: { className: 'w-16rem' } },
- item: ({ context }) => ({
- className: context.selected ? 'bg-primary-300' : undefined
- })
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { AutoComplete } from "primereact/autocomplete";
-
-export default function PTDemo() {
- const [value, setValue] = useState('');
- const [items, setItems] = useState([]);
-
- const search = (event) => {
- setItems([...Array(10).keys()].map(item => event.query + '-' + item));
- }
-
- return (
-
-
setValue(e.value)}
- pt={{
- input: { root: { className: 'w-16rem' } },
- item: ({ context }) => ({
- className: context.selected ? 'bg-primary-300' : undefined
- })
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { AutoComplete, AutoCompleteCompleteEvent } from "primereact/autocomplete";
-
-export default function PTDemo() {
- const [value, setValue] = useState('');
- const [items, setItems] = useState([]);
-
- const search = (event: AutoCompleteCompleteEvent) => {
- setItems([...Array(10).keys()].map(item => event.query + '-' + item));
- }
-
- return (
-
-
setValue(e.value)}
- pt={{
- input: { root: { className: 'w-16rem' } },
- item: ({ context }) => ({
- className: context.selected ? 'bg-primary-300' : undefined
- })
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
setValue(e.value)}
- pt={{
- input: { root: { className: 'w-16rem' } },
- item: ({ context }) => ({
- className: context.selected ? 'bg-primary-300' : undefined
- })
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/avatar/pt/ptdoc.js b/components/doc/avatar/pt/ptdoc.js
deleted file mode 100644
index 084a005b27..0000000000
--- a/components/doc/avatar/pt/ptdoc.js
+++ /dev/null
@@ -1,49 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Avatar } from '@/components/lib/avatar/Avatar';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
- `,
- javascript: `
-import React from 'react';
-import { Avatar } from 'primereact/avatar';
-
-export default function PTDemo() {
- return (
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Avatar } from 'primereact/avatar';
-
-export default function PTDemo() {
- return (
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
-
- >
- );
-}
diff --git a/components/doc/badge/pt/ptdoc.js b/components/doc/badge/pt/ptdoc.js
deleted file mode 100644
index b678a439d6..0000000000
--- a/components/doc/badge/pt/ptdoc.js
+++ /dev/null
@@ -1,46 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Badge } from '@/components/lib/badge/Badge';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
- `,
- javascript: `
-import React from 'react';
-import { Badge } from 'primereact/badge';
-
-export default function PTDemo() {
- return (
-
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Badge } from 'primereact/badge';
-
-export default function PTDemo() {
- return (
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/blockui/pt/ptdoc.js b/components/doc/blockui/pt/ptdoc.js
deleted file mode 100644
index 2830a32db6..0000000000
--- a/components/doc/blockui/pt/ptdoc.js
+++ /dev/null
@@ -1,83 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { BlockUI } from '@/components/lib/blockui/BlockUI';
-import { Button } from '@/components/lib/button/Button';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [blocked, setBlocked] = useState(false);
- const code = {
- basic: `
-
-
- `,
- javascript: `
-import React, { useState } from 'react';
-import { BlockUI } from 'primereact/blockui';
-import { Button } from 'primereact/button';
-
-export default function PTDemo() {
- const [blocked, setBlocked] = useState(false);
-
- return (
-
-
- setBlocked(true)} className="mr-2">
- setBlocked(false)}>
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
-
- )
-}
- `,
- typescript: `
-import React, { useState } from 'react';
-import { BlockUI } from 'primereact/blockui';
-import { Button } from 'primereact/button';
-
-export default function PTDemo() {
- const [blocked, setBlocked] = useState(false);
-
- return (
-
-
- setBlocked(true)} className="mr-2">
- setBlocked(false)}>
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
- setBlocked(true)} className="mr-2" />
- setBlocked(false)} />
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
-
-
- >
- );
-}
diff --git a/components/doc/breadcrumb/pt/ptdoc.js b/components/doc/breadcrumb/pt/ptdoc.js
deleted file mode 100644
index 905c6202e4..0000000000
--- a/components/doc/breadcrumb/pt/ptdoc.js
+++ /dev/null
@@ -1,91 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { BreadCrumb } from '@/components/lib/breadcrumb/BreadCrumb';
-
-export function PTDoc(props) {
- const items = [{ label: 'Computer' }, { label: 'Notebook' }, { label: 'Accessories' }, { label: 'Backpacks' }, { label: 'Item' }];
- const home = { icon: 'pi pi-home', url: 'https://primereact.org' };
-
- const code = {
- basic: `
- ({
- className: props.index === items.length - 1 ? 'font-italic' : undefined
- })
- }}
-/>
- `,
- javascript: `
-import React from 'react';
-import { BreadCrumb } from 'primereact/breadcrumb';
-
-export default function PTDemo() {
- const items = [{ label: 'Computer' }, { label: 'Notebook' }, { label: 'Accessories' }, { label: 'Backpacks' }, { label: 'Item' }];
- const home = { icon: 'pi pi-home', url: 'https://primereact.org' }
-
- return (
-
- ({
- className: props.index === items.length - 1 ? 'font-italic' : undefined
- })
- }}
- model={items}
- home={home}
- />
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { BreadCrumb } from 'primereact/breadcrumb';
-import { MenuItem } from 'primereact/menuitem';
-
-export default function PTDemo() {
- const items: MenuItem[] = [{ label: 'Computer' }, { label: 'Notebook' }, { label: 'Accessories' }, { label: 'Backpacks' }, { label: 'Item' }];
- const home: MenuItem = { icon: 'pi pi-home', url: 'https://primereact.org' }
-
- return (
-
- ({
- className: props.index === items.length - 1 ? 'font-italic' : undefined
- })
- }}
- model={items}
- home={home}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- ({
- className: props.index === items.length - 1 ? 'font-italic' : undefined
- })
- }}
- model={items}
- home={home}
- />
-
-
- >
- );
-}
diff --git a/components/doc/button/pt/ptdoc.js b/components/doc/button/pt/ptdoc.js
deleted file mode 100644
index 2245eed621..0000000000
--- a/components/doc/button/pt/ptdoc.js
+++ /dev/null
@@ -1,67 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Button } from '@/components/lib/button/Button';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
- `,
- javascript: `
-import React from 'react';
-import { Button } from 'primereact/button';
-
-export default function PTDemo() {
- return (
-
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Button } from 'primereact/button';
-
-export default function PTDemo() {
- return (
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/calendar/pt/ptdoc.js b/components/doc/calendar/pt/ptdoc.js
deleted file mode 100644
index 4929c3fd9a..0000000000
--- a/components/doc/calendar/pt/ptdoc.js
+++ /dev/null
@@ -1,100 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Calendar } from '@/components/lib/calendar/Calendar';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [date, setDate] = useState(null);
-
- const code = {
- basic: `
- setDate(e.value)}
- showIcon
- pt={{
- input: {
- root: { className: 'border-teal-500' }
- },
- dropdownButton: {
- root: { className: 'bg-teal-500 border-teal-500' }
- }
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { Calendar } from 'primereact/calendar';
-
-export default function PTDemo() {
- const [date, setDate] = useState(null);
-
- return (
-
- setDate(e.value)}
- showIcon
- pt={{
- input: {
- root: { className: 'border-teal-500' }
- },
- dropdownButton: {
- root: { className: 'bg-teal-500 border-teal-500' }
- }
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { Calendar, CalendarChangeEvent } from 'primereact/calendar';
-
-export default function PTDemo() {
- const [date, setDate] = useState(null);
-
- return (
-
- setDate(e.value)}
- showIcon
- pt={{
- input: {
- root: { className: 'border-teal-500' }
- },
- dropdownButton: {
- root: { className: 'bg-teal-500 border-teal-500' }
- }
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- setDate(e.value)}
- showIcon
- pt={{
- input: {
- root: { className: 'border-teal-500' }
- },
- dropdownButton: {
- root: { className: 'bg-teal-500 border-teal-500' }
- }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/card/pt/ptdoc.js b/components/doc/card/pt/ptdoc.js
deleted file mode 100644
index 2bfb63cac0..0000000000
--- a/components/doc/card/pt/ptdoc.js
+++ /dev/null
@@ -1,85 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Card } from '@/components/lib/card/Card';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque
- quas!
-
-
- `,
- javascript: `
-import React from 'react';
-import { Card } from 'primereact/card';
-
-export default function PTDemo() {
- return (
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque
- quas!
-
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Card } from 'primereact/card';
-
-export default function PTDemo() {
- return (
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque
- quas!
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque
- quas!
-
-
-
-
- >
- );
-}
diff --git a/components/doc/carousel/pt/ptdoc.js b/components/doc/carousel/pt/ptdoc.js
deleted file mode 100644
index a2da2c6f00..0000000000
--- a/components/doc/carousel/pt/ptdoc.js
+++ /dev/null
@@ -1,294 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Button } from '@/components/lib/button/Button';
-import { Carousel } from '@/components/lib/carousel/Carousel';
-import { Tag } from '@/components/lib/tag/Tag';
-import { useEffect, useState } from 'react';
-import { ProductService } from '../../../../service/ProductService';
-
-export function PTDoc(props) {
- const [products, setProducts] = useState([]);
- const responsiveOptions = [
- {
- breakpoint: '1199px',
- numVisible: 1,
- numScroll: 1
- },
- {
- breakpoint: '991px',
- numVisible: 2,
- numScroll: 1
- },
- {
- breakpoint: '767px',
- numVisible: 1,
- numScroll: 1
- }
- ];
-
- const getSeverity = (product) => {
- switch (product.inventoryStatus) {
- case 'INSTOCK':
- return 'success';
-
- case 'LOWSTOCK':
- return 'warning';
-
- case 'OUTOFSTOCK':
- return 'danger';
-
- default:
- return null;
- }
- };
-
- useEffect(() => {
- ProductService.getProductsSmall().then((data) => setProducts(data.slice(0, 9)));
- }, []); // eslint-disable-line react-hooks/exhaustive-deps
-
- const productTemplate = (product) => {
- return (
-
-
-
-
-
-
{product.name}
-
${product.price}
-
-
-
-
-
-
-
- );
- };
-
- const code = {
- basic: `
-
- `,
- javascript: `
-import React, { useState, useEffect } from 'react';
-import { Button } from 'primereact/button';
-import { Carousel } from 'primereact/carousel';
-import { Tag } from 'primereact/tag';
-import { ProductService } from './service/ProductService';
-
-export default function PTDemo() {
- const [products, setProducts] = useState([]);
- const responsiveOptions = [
- {
- breakpoint: '1199px',
- numVisible: 1,
- numScroll: 1
- },
- {
- breakpoint: '991px',
- numVisible: 2,
- numScroll: 1
- },
- {
- breakpoint: '767px',
- numVisible: 1,
- numScroll: 1
- }
- ];
-
- const getSeverity = (product) => {
- switch (product.inventoryStatus) {
- case 'INSTOCK':
- return 'success';
-
- case 'LOWSTOCK':
- return 'warning';
-
- case 'OUTOFSTOCK':
- return 'danger';
-
- default:
- return null;
- }
- };
-
- useEffect(() => {
- ProductService.getProductsSmall().then((data) => setProducts(data.slice(0, 9)));
- }, []);
-
- const productTemplate = (product) => {
- return (
-
-
-
-
-
-
{product.name}
-
\${product.price}
-
-
-
-
-
-
-
- );
- };
-
- return (
-
-
-
- )
-}
- `,
- typescript: `
-import React, { useState, useEffect } from 'react';
-import { Button } from 'primereact/button';
-import { Carousel, CarouselResponsiveOption } from 'primereact/carousel';
-import { Tag } from 'primereact/tag';
-import { ProductService } from './service/ProductService';
-
-interface Product {
- id: string;
- code: string;
- name: string;
- description: string;
- image: string;
- price: number;
- category: string;
- quantity: number;
- inventoryStatus: string;
- rating: number;
-}
-
-export default function PTDemo() {
- const [products, setProducts] = useState([]);
- const responsiveOptions: CarouselResponsiveOption[] = [
- {
- breakpoint: '1199px',
- numVisible: 1,
- numScroll: 1
- },
- {
- breakpoint: '991px',
- numVisible: 2,
- numScroll: 1
- },
- {
- breakpoint: '767px',
- numVisible: 1,
- numScroll: 1
- }
- ];
-
- const getSeverity = (product: Product) => {
- switch (product.inventoryStatus) {
- case 'INSTOCK':
- return 'success';
-
- case 'LOWSTOCK':
- return 'warning';
-
- case 'OUTOFSTOCK':
- return 'danger';
-
- default:
- return null;
- }
- };
-
- useEffect(() => {
- ProductService.getProductsSmall().then((data) => setProducts(data.slice(0, 9)));
- }, []);
-
- const productTemplate = (product: Product) => {
- return (
-
-
-
-
-
-
{product.name}
-
\${product.price}
-
-
-
-
-
-
-
- );
- };
-
- return (
-
-
-
- )
-}
- `,
- data: `
-/* ProductService */
-{
- id: '1000',
- code: 'f230fh0g3',
- name: 'Bamboo Watch',
- description: 'Product Description',
- image: 'bamboo-watch.jpg',
- price: 65,
- category: 'Accessories',
- quantity: 24,
- inventoryStatus: 'INSTOCK',
- rating: 5
-},
-...
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/cascadeselect/pt/ptdoc.js b/components/doc/cascadeselect/pt/ptdoc.js
deleted file mode 100644
index f94c1c86cc..0000000000
--- a/components/doc/cascadeselect/pt/ptdoc.js
+++ /dev/null
@@ -1,343 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { CascadeSelect } from '@/components/lib/cascadeselect/CascadeSelect';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [selectedCity, setSelectedCity] = useState(null);
- const countries = [
- {
- name: 'Australia',
- code: 'AU',
- states: [
- {
- name: 'New South Wales',
- cities: [
- { cname: 'Sydney', code: 'A-SY' },
- { cname: 'Newcastle', code: 'A-NE' },
- { cname: 'Wollongong', code: 'A-WO' }
- ]
- },
- {
- name: 'Queensland',
- cities: [
- { cname: 'Brisbane', code: 'A-BR' },
- { cname: 'Townsville', code: 'A-TO' }
- ]
- }
- ]
- },
- {
- name: 'Canada',
- code: 'CA',
- states: [
- {
- name: 'Quebec',
- cities: [
- { cname: 'Montreal', code: 'C-MO' },
- { cname: 'Quebec City', code: 'C-QU' }
- ]
- },
- {
- name: 'Ontario',
- cities: [
- { cname: 'Ottawa', code: 'C-OT' },
- { cname: 'Toronto', code: 'C-TO' }
- ]
- }
- ]
- },
- {
- name: 'United States',
- code: 'US',
- states: [
- {
- name: 'California',
- cities: [
- { cname: 'Los Angeles', code: 'US-LA' },
- { cname: 'San Diego', code: 'US-SD' },
- { cname: 'San Francisco', code: 'US-SF' }
- ]
- },
- {
- name: 'Florida',
- cities: [
- { cname: 'Jacksonville', code: 'US-JA' },
- { cname: 'Miami', code: 'US-MI' },
- { cname: 'Tampa', code: 'US-TA' },
- { cname: 'Orlando', code: 'US-OR' }
- ]
- },
- {
- name: 'Texas',
- cities: [
- { cname: 'Austin', code: 'US-AU' },
- { cname: 'Dallas', code: 'US-DA' },
- { cname: 'Houston', code: 'US-HO' }
- ]
- }
- ]
- }
- ];
-
- const code = {
- basic: `
- setSelectedCity(e.value)}
- options={countries}
- optionLabel="cname"
- optionGroupLabel="name"
- optionGroupChildren={['states', 'cities']}
- breakpoint="767px"
- placeholder="Select a City"
- pt={{
- root: { style: { minWidth: '14rem' } }
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { CascadeSelect } from 'primereact/cascadeselect';
-
-export default function PTDemo() {
- const [selectedCity, setSelectedCity] = useState(null);
- const countries = [
- {
- name: 'Australia',
- code: 'AU',
- states: [
- {
- name: 'New South Wales',
- cities: [
- {cname: 'Sydney', code: 'A-SY'},
- {cname: 'Newcastle', code: 'A-NE'},
- {cname: 'Wollongong', code: 'A-WO'}
- ]
- },
- {
- name: 'Queensland',
- cities: [
- {cname: 'Brisbane', code: 'A-BR'},
- {cname: 'Townsville', code: 'A-TO'}
- ]
- },
-
- ]
- },
- {
- name: 'Canada',
- code: 'CA',
- states: [
- {
- name: 'Quebec',
- cities: [
- {cname: 'Montreal', code: 'C-MO'},
- {cname: 'Quebec City', code: 'C-QU'}
- ]
- },
- {
- name: 'Ontario',
- cities: [
- {cname: 'Ottawa', code: 'C-OT'},
- {cname: 'Toronto', code: 'C-TO'}
- ]
- },
-
- ]
- },
- {
- name: 'United States',
- code: 'US',
- states: [
- {
- name: 'California',
- cities: [
- {cname: 'Los Angeles', code: 'US-LA'},
- {cname: 'San Diego', code: 'US-SD'},
- {cname: 'San Francisco', code: 'US-SF'}
- ]
- },
- {
- name: 'Florida',
- cities: [
- {cname: 'Jacksonville', code: 'US-JA'},
- {cname: 'Miami', code: 'US-MI'},
- {cname: 'Tampa', code: 'US-TA'},
- {cname: 'Orlando', code: 'US-OR'}
- ]
- },
- {
- name: 'Texas',
- cities: [
- {cname: 'Austin', code: 'US-AU'},
- {cname: 'Dallas', code: 'US-DA'},
- {cname: 'Houston', code: 'US-HO'}
- ]
- }
- ]
- }
- ];
-
- return (
-
- setSelectedCity(e.value)}
- options={countries}
- optionLabel="cname"
- optionGroupLabel="name"
- optionGroupChildren={['states', 'cities']}
- breakpoint="767px"
- placeholder="Select a City"
- pt={{
- root: { style: { minWidth: '14rem' } }
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { CascadeSelect, CascadeSelectChangeEvent } from 'primereact/cascadeselect';
-
-interface City {
- cname: string;
- code: string;
-}
-
-interface CountryState {
- name: string;
- cities: City[];
-}
-
-interface Country {
- name: string;
- code: string;
- states: CountryState[];
-}
-
-export default function PTDemo() {
- const [selectedCity, setSelectedCity] = useState(null);
- const countries: Country[] = [
- {
- name: 'Australia',
- code: 'AU',
- states: [
- {
- name: 'New South Wales',
- cities: [
- {cname: 'Sydney', code: 'A-SY'},
- {cname: 'Newcastle', code: 'A-NE'},
- {cname: 'Wollongong', code: 'A-WO'}
- ]
- },
- {
- name: 'Queensland',
- cities: [
- {cname: 'Brisbane', code: 'A-BR'},
- {cname: 'Townsville', code: 'A-TO'}
- ]
- },
-
- ]
- },
- {
- name: 'Canada',
- code: 'CA',
- states: [
- {
- name: 'Quebec',
- cities: [
- {cname: 'Montreal', code: 'C-MO'},
- {cname: 'Quebec City', code: 'C-QU'}
- ]
- },
- {
- name: 'Ontario',
- cities: [
- {cname: 'Ottawa', code: 'C-OT'},
- {cname: 'Toronto', code: 'C-TO'}
- ]
- },
-
- ]
- },
- {
- name: 'United States',
- code: 'US',
- states: [
- {
- name: 'California',
- cities: [
- {cname: 'Los Angeles', code: 'US-LA'},
- {cname: 'San Diego', code: 'US-SD'},
- {cname: 'San Francisco', code: 'US-SF'}
- ]
- },
- {
- name: 'Florida',
- cities: [
- {cname: 'Jacksonville', code: 'US-JA'},
- {cname: 'Miami', code: 'US-MI'},
- {cname: 'Tampa', code: 'US-TA'},
- {cname: 'Orlando', code: 'US-OR'}
- ]
- },
- {
- name: 'Texas',
- cities: [
- {cname: 'Austin', code: 'US-AU'},
- {cname: 'Dallas', code: 'US-DA'},
- {cname: 'Houston', code: 'US-HO'}
- ]
- }
- ]
- }
- ];
-
- return (
-
- setSelectedCity(e.value)}
- options={countries}
- optionLabel="cname"
- optionGroupLabel="name"
- optionGroupChildren={['states', 'cities']}
- className="w-full md:w-14rem"
- breakpoint="767px"
- placeholder="Select a City"
- pt={{
- root: { style: { minWidth: '14rem' } }
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- setSelectedCity(e.value)}
- options={countries}
- optionLabel="cname"
- optionGroupLabel="name"
- optionGroupChildren={['states', 'cities']}
- breakpoint="767px"
- placeholder="Select a City"
- pt={{
- root: { style: { minWidth: '14rem' } }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/chart/pt/ptdoc.js b/components/doc/chart/pt/ptdoc.js
deleted file mode 100644
index fdf46301ea..0000000000
--- a/components/doc/chart/pt/ptdoc.js
+++ /dev/null
@@ -1,161 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Chart } from '@/components/lib/chart/Chart';
-import { useEffect, useState } from 'react';
-
-export function PTDoc(props) {
- const [chartData, setChartData] = useState({});
- const [chartOptions, setChartOptions] = useState({});
-
- useEffect(() => {
- const documentStyle = getComputedStyle(document.body);
- const data = {
- labels: ['A', 'B', 'C'],
- datasets: [
- {
- data: [540, 325, 702],
- backgroundColor: [documentStyle.getPropertyValue('--blue-500'), documentStyle.getPropertyValue('--yellow-500'), documentStyle.getPropertyValue('--green-500')],
- hoverBackgroundColor: [documentStyle.getPropertyValue('--blue-400'), documentStyle.getPropertyValue('--yellow-400'), documentStyle.getPropertyValue('--green-400')]
- }
- ]
- };
- const options = {
- plugins: {
- legend: {
- labels: {
- usePointStyle: true
- }
- }
- }
- };
-
- setChartData(data);
- setChartOptions(options);
- }, []);
-
- const code = {
- basic: `
-
- `,
- javascript: `
-import React, { useState, useEffect } from 'react';
-import { Chart } from 'primereact/chart';
-
-export default function PTDemo() {
- const [chartData, setChartData] = useState({});
- const [chartOptions, setChartOptions] = useState({});
-
- useEffect(() => {
- const documentStyle = getComputedStyle(document.body);
- const data = {
- labels: ['A', 'B', 'C'],
- datasets: [
- {
- data: [540, 325, 702],
- backgroundColor: [documentStyle.getPropertyValue('--blue-500'), documentStyle.getPropertyValue('--yellow-500'), documentStyle.getPropertyValue('--green-500')],
- hoverBackgroundColor: [documentStyle.getPropertyValue('--blue-400'), documentStyle.getPropertyValue('--yellow-400'), documentStyle.getPropertyValue('--green-400')]
- }
- ]
- };
- const options = {
- plugins: {
- legend: {
- labels: {
- usePointStyle: true
- }
- }
- }
- };
-
- setChartData(data);
- setChartOptions(options);
- }, []);
-
- return (
-
-
-
- )
-}
- `,
- typescript: `
-import React, { useState, useEffect } from 'react';
-import { Chart } from 'primereact/chart';
-
-export default function PTDemo() {
- const [chartData, setChartData] = useState({});
- const [chartOptions, setChartOptions] = useState({});
-
- useEffect(() => {
- const documentStyle = getComputedStyle(document.body);
- const data = {
- labels: ['A', 'B', 'C'],
- datasets: [
- {
- data: [540, 325, 702],
- backgroundColor: [documentStyle.getPropertyValue('--blue-500'), documentStyle.getPropertyValue('--yellow-500'), documentStyle.getPropertyValue('--green-500')],
- hoverBackgroundColor: [documentStyle.getPropertyValue('--blue-400'), documentStyle.getPropertyValue('--yellow-400'), documentStyle.getPropertyValue('--green-400')]
- }
- ]
- };
- const options = {
- plugins: {
- legend: {
- labels: {
- usePointStyle: true
- }
- }
- }
- };
-
- setChartData(data);
- setChartOptions(options);
- }, []);
-
- return (
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/checkbox/pt/ptdoc.js b/components/doc/checkbox/pt/ptdoc.js
deleted file mode 100644
index c127dd1102..0000000000
--- a/components/doc/checkbox/pt/ptdoc.js
+++ /dev/null
@@ -1,84 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Checkbox } from '@/components/lib/checkbox/Checkbox';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [checked, setChecked] = useState(false);
-
- const code = {
- basic: `
- setChecked(e.checked)}
- pt={{
- input: ({ state }) => ({
- className: state.focused ? 'border-orange-400' : undefined
- })
- }}
->
- `,
- javascript: `
-import React, { useState } from "react";
-import { Checkbox } from "primereact/checkbox";
-
-export default function PTDemo() {
- const [checked, setChecked] = useState(false);
-
- return (
-
- setChecked(e.checked)}
- pt={{
- input: ({ state }) => ({
- className: state.focused ? 'border-orange-400' : undefined
- })
- }}
- >
-
- )
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { Checkbox } from "primereact/checkbox";
-
-export default function PTDemo() {
- const [checked, setChecked] = useState(false);
-
- return (
-
- setChecked(e.checked)}
- pt={{
- input: ({ state }) => ({
- className: state.focused ? 'border-orange-400' : undefined
- })
- }}
- >
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- setChecked(e.checked)}
- pt={{
- input: ({ state }) => ({
- className: state.focused ? 'border-orange-400' : undefined
- })
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/chip/pt/ptdoc.js b/components/doc/chip/pt/ptdoc.js
deleted file mode 100644
index 0be031c322..0000000000
--- a/components/doc/chip/pt/ptdoc.js
+++ /dev/null
@@ -1,73 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Chip } from '@/components/lib/chip/Chip';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
- `,
- javascript: `
-import React from 'react';
-import { Chip } from 'primereact/chip';
-
-export default function PTDemo() {
- return (
-
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Chip } from 'primereact/chip';
-
-export default function PTDemo() {
- return (
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/chips/pt/ptdoc.js b/components/doc/chips/pt/ptdoc.js
deleted file mode 100644
index 22dc5ef130..0000000000
--- a/components/doc/chips/pt/ptdoc.js
+++ /dev/null
@@ -1,84 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Chips } from '@/components/lib/chips/Chips';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [value, setValue] = useState([]);
-
- const code = {
- basic: `
- setValue(e.value)}
- pt={{
- root: { className: 'flex' },
- container: { className: 'flex-1' },
- token: { className: 'bg-primary' }
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { Chips } from "primereact/chips";
-
-export default function PTDemo() {
- const [value, setValue] = useState([]);
-
- return (
-
- setValue(e.value)}
- pt={{
- root: { className: 'flex' },
- container: { className: 'flex-1' },
- token: { className: 'bg-primary' }
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { Chips, ChipsChangeEvent } from "primereact/chips";
-
-export default function PTDemo() {
- const [value, setValue] = useState([]);
-
- return (
-
- setValue(e.value)}
- pt={{
- root: { className: 'flex' },
- container: { className: 'flex-1' },
- token: { className: 'bg-primary' }
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- setValue(e.value)}
- pt={{
- root: { className: 'flex' },
- container: { className: 'flex-1' },
- token: { className: 'bg-primary' }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/colorpicker/pt/ptdoc.js b/components/doc/colorpicker/pt/ptdoc.js
deleted file mode 100644
index eddd3c11e4..0000000000
--- a/components/doc/colorpicker/pt/ptdoc.js
+++ /dev/null
@@ -1,81 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { ColorPicker } from '@/components/lib/colorpicker/ColorPicker';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [color, setColor] = useState(null);
-
- const code = {
- basic: `
- setColor(e.value)}
- inline
- pt={{
- colorHandler: { className: 'w-1rem h-1rem' }
- }}
-/>
-
- `,
- javascript: `
-import React, { useState } from "react";
-import { ColorPicker } from 'primereact/colorpicker';
-
-export default function PTDemo() {
- const [color, setColor] = useState(null);
-
- return (
-
- setColor(e.value)}
- inline
- pt={{
- colorHandler: { className: 'w-1rem h-1rem' }
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { ColorPicker, ColorPickerChangeEvent } from 'primereact/colorpicker';
-
-export default function PTDemo() {
- const [color, setColor] = useState(null);
-
- return (
-
- setColor(e.value)}
- inline
- pt={{
- colorHandler: { className: 'w-1rem h-1rem' }
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- setColor(e.value)}
- inline
- pt={{
- colorHandler: { className: 'w-1rem h-1rem' }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/confirmdialog/pt/ptdoc.js b/components/doc/confirmdialog/pt/ptdoc.js
deleted file mode 100644
index 4eadbb6077..0000000000
--- a/components/doc/confirmdialog/pt/ptdoc.js
+++ /dev/null
@@ -1,91 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Button } from '@/components/lib/button/Button';
-import { ConfirmDialog } from '@/components/lib/confirmdialog/ConfirmDialog';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [visible, setVisible] = useState(false);
-
- const code = {
- basic: `
- setVisible(false)}
- message="Are you sure you want to proceed?"
- header="Confirmation"
- icon="pi pi-exclamation-triangle"
- pt={{
- headerTitle: {
- className: 'text-primary'
- }
- }}
-/>
- `,
- javascript: `
-import React, { useState } from 'react';
-import { Button } from 'primereact/button';
-import { ConfirmDialog } from 'primereact/confirmdialog';
-
-export default function PTDemo() {
- return (
- <>
- setVisible(false)}
- message="Are you sure you want to proceed?"
- header="Confirmation"
- icon="pi pi-exclamation-triangle"
- pt={{
- headerTitle: {
- className: 'text-primary'
- }
- }}
- />
-
- setVisible(true)} icon="pi pi-check" label="Confirm" />
-
- >
- )
-}
- `,
- typescript: `
-import React, { useState } from 'react';
-import { Button } from 'primereact/button';
-import { ConfirmDialog } from 'primereact/confirmdialog';
-
-export default function PTDemo() {
- return (
- <>
- setVisible(false)}
- message="Are you sure you want to proceed?"
- header="Confirmation"
- icon="pi pi-exclamation-triangle"
- pt={{
- headerTitle: {
- className: 'text-primary'
- }
- }}
- />
-
- setVisible(true)} icon="pi pi-check" label="Confirm" />
-
- >
- )
-}
- `
- };
-
- return (
- <>
-
- setVisible(false)} message="Are you sure you want to proceed?" header="Confirmation" icon="pi pi-exclamation-triangle" />
-
- setVisible(true)} icon="pi pi-check" label="Confirm" />
-
-
- >
- );
-}
diff --git a/components/doc/confirmpopup/pt/ptdoc.js b/components/doc/confirmpopup/pt/ptdoc.js
deleted file mode 100644
index e03eb9d3dc..0000000000
--- a/components/doc/confirmpopup/pt/ptdoc.js
+++ /dev/null
@@ -1,103 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Button } from '@/components/lib/button/Button';
-import { ConfirmPopup } from '@/components/lib/confirmpopup/ConfirmPopup';
-import { useRef, useState } from 'react';
-
-export function PTDoc(props) {
- const [visible, setVisible] = useState(false);
- const buttonEl = useRef(null);
-
- const code = {
- basic: `
- setVisible(false)}
- message="Are you sure you want to proceed?"
- icon="pi pi-exclamation-triangle"
-/>
- `,
- javascript: `
-import React, { useRef, useState } from 'react';
-import { Button } from 'primereact/button';
-import { ConfirmPopup } from 'primereact/confirmpopup';
-
-export default function PTDemo() {
- const [visible, setVisible] = useState(false);
- const buttonEl = useRef(null);
-
- return (
- <>
- setVisible(false)}
- message="Are you sure you want to proceed?"
- icon="pi pi-exclamation-triangle"
- />
-
- setVisible(true)} icon="pi pi-check" label="Confirm" />
-
- >
- )
-}
- `,
- typescript: `
-import React, { useRef, useState } from 'react';
-import { Button } from 'primereact/button';
-import { ConfirmPopup } from 'primereact/confirmpopup';
-
-export default function PTDemo() {
- const [visible, setVisible] = useState(false);
- const buttonEl = useRef(null);
-
- return (
- <>
- setVisible(false)}
- message="Are you sure you want to proceed?"
- icon="pi pi-exclamation-triangle"
- />
-
- setVisible(true)} icon="pi pi-check" label="Confirm" />
-
- >
- )
-}
- `
- };
-
- return (
- <>
-
- <>
- setVisible(false)}
- message="Are you sure you want to proceed?"
- icon="pi pi-exclamation-triangle"
- />
-
- setVisible(true)} icon="pi pi-check" label="Confirm" />
-
- >
-
- >
- );
-}
diff --git a/components/doc/contextmenu/pt/ptdoc.js b/components/doc/contextmenu/pt/ptdoc.js
deleted file mode 100644
index cff4b4eea5..0000000000
--- a/components/doc/contextmenu/pt/ptdoc.js
+++ /dev/null
@@ -1,463 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { ContextMenu } from '@/components/lib/contextmenu/ContextMenu';
-import { useRef } from 'react';
-
-export function PTDoc(props) {
- const cm = useRef(null);
- const items = [
- {
- label: 'File',
- icon: 'pi pi-fw pi-file',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-plus',
- items: [
- {
- label: 'Bookmark',
- icon: 'pi pi-fw pi-bookmark'
- },
- {
- label: 'Video',
- icon: 'pi pi-fw pi-video'
- }
- ]
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-trash'
- },
- {
- separator: true
- },
- {
- label: 'Export',
- icon: 'pi pi-fw pi-external-link'
- }
- ]
- },
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Left',
- icon: 'pi pi-fw pi-align-left'
- },
- {
- label: 'Right',
- icon: 'pi pi-fw pi-align-right'
- },
- {
- label: 'Center',
- icon: 'pi pi-fw pi-align-center'
- },
- {
- label: 'Justify',
- icon: 'pi pi-fw pi-align-justify'
- }
- ]
- },
- {
- label: 'Users',
- icon: 'pi pi-fw pi-user',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-user-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-user-minus'
- },
- {
- label: 'Search',
- icon: 'pi pi-fw pi-users',
- items: [
- {
- label: 'Filter',
- icon: 'pi pi-fw pi-filter',
- items: [
- {
- label: 'Print',
- icon: 'pi pi-fw pi-print'
- }
- ]
- },
- {
- icon: 'pi pi-fw pi-bars',
- label: 'List'
- }
- ]
- }
- ]
- },
- {
- label: 'Events',
- icon: 'pi pi-fw pi-calendar',
- items: [
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Save',
- icon: 'pi pi-fw pi-calendar-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- },
- {
- label: 'Archieve',
- icon: 'pi pi-fw pi-calendar-times',
- items: [
- {
- label: 'Remove',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- }
- ]
- },
- {
- separator: true
- },
- {
- label: 'Quit',
- icon: 'pi pi-fw pi-power-off'
- }
- ];
-
- const code = {
- basic: `
- ({ className: context.active ? 'bg-primary-200' : undefined })
- }}
-/>
- cm.current.show(e)} />
-`,
- javascript: `
-import React, { useRef } from 'react';
-import { ContextMenu } from 'primereact/contextmenu';
-
-export default function PTDemo() {
- const cm = useRef(null);
- const items = [
- {
- label: 'File',
- icon: 'pi pi-fw pi-file',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-plus',
- items: [
- {
- label: 'Bookmark',
- icon: 'pi pi-fw pi-bookmark'
- },
- {
- label: 'Video',
- icon: 'pi pi-fw pi-video'
- }
- ]
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-trash'
- },
- {
- separator: true
- },
- {
- label: 'Export',
- icon: 'pi pi-fw pi-external-link'
- }
- ]
- },
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Left',
- icon: 'pi pi-fw pi-align-left'
- },
- {
- label: 'Right',
- icon: 'pi pi-fw pi-align-right'
- },
- {
- label: 'Center',
- icon: 'pi pi-fw pi-align-center'
- },
- {
- label: 'Justify',
- icon: 'pi pi-fw pi-align-justify'
- }
- ]
- },
- {
- label: 'Users',
- icon: 'pi pi-fw pi-user',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-user-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-user-minus'
- },
- {
- label: 'Search',
- icon: 'pi pi-fw pi-users',
- items: [
- {
- label: 'Filter',
- icon: 'pi pi-fw pi-filter',
- items: [
- {
- label: 'Print',
- icon: 'pi pi-fw pi-print'
- }
- ]
- },
- {
- icon: 'pi pi-fw pi-bars',
- label: 'List'
- }
- ]
- }
- ]
- },
- {
- label: 'Events',
- icon: 'pi pi-fw pi-calendar',
- items: [
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Save',
- icon: 'pi pi-fw pi-calendar-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- },
- {
- label: 'Archieve',
- icon: 'pi pi-fw pi-calendar-times',
- items: [
- {
- label: 'Remove',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- }
- ]
- },
- {
- separator: true
- },
- {
- label: 'Quit',
- icon: 'pi pi-fw pi-power-off'
- }
- ];
-
- return (
-
-
({ className: context.active ? 'bg-primary-200' : undefined })
- }}
- />
- cm.current.show(e)} />
-
- )
-}
- `,
- typescript: `
-import React, { useRef } from 'react';
-import { ContextMenu } from 'primereact/contextmenu';
-import { MenuItem } from 'primereact/menuitem';
-
-export default function PTDemo() {
- const cm = useRef(null);
- const items: MenuItem[] = [
- {
- label: 'File',
- icon: 'pi pi-fw pi-file',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-plus',
- items: [
- {
- label: 'Bookmark',
- icon: 'pi pi-fw pi-bookmark'
- },
- {
- label: 'Video',
- icon: 'pi pi-fw pi-video'
- }
- ]
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-trash'
- },
- {
- separator: true
- },
- {
- label: 'Export',
- icon: 'pi pi-fw pi-external-link'
- }
- ]
- },
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Left',
- icon: 'pi pi-fw pi-align-left'
- },
- {
- label: 'Right',
- icon: 'pi pi-fw pi-align-right'
- },
- {
- label: 'Center',
- icon: 'pi pi-fw pi-align-center'
- },
- {
- label: 'Justify',
- icon: 'pi pi-fw pi-align-justify'
- }
- ]
- },
- {
- label: 'Users',
- icon: 'pi pi-fw pi-user',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-user-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-user-minus'
- },
- {
- label: 'Search',
- icon: 'pi pi-fw pi-users',
- items: [
- {
- label: 'Filter',
- icon: 'pi pi-fw pi-filter',
- items: [
- {
- label: 'Print',
- icon: 'pi pi-fw pi-print'
- }
- ]
- },
- {
- icon: 'pi pi-fw pi-bars',
- label: 'List'
- }
- ]
- }
- ]
- },
- {
- label: 'Events',
- icon: 'pi pi-fw pi-calendar',
- items: [
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Save',
- icon: 'pi pi-fw pi-calendar-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- },
- {
- label: 'Archieve',
- icon: 'pi pi-fw pi-calendar-times',
- items: [
- {
- label: 'Remove',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- }
- ]
- },
- {
- separator: true
- },
- {
- label: 'Quit',
- icon: 'pi pi-fw pi-power-off'
- }
- ];
-
- return (
-
-
({ className: context.active ? 'bg-primary-200' : undefined })
- }}
- />
- cm.current?.show(e)} />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
({ className: context.active ? 'bg-primary-200' : undefined })
- }}
- />
- cm.current.show(e)} />
-
-
- >
- );
-}
diff --git a/components/doc/datascroller/pt/ptdoc.js b/components/doc/datascroller/pt/ptdoc.js
deleted file mode 100644
index 7391df22f1..0000000000
--- a/components/doc/datascroller/pt/ptdoc.js
+++ /dev/null
@@ -1,263 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Button } from '@/components/lib/button/Button';
-import { DataScroller } from '@/components/lib/datascroller/DataScroller';
-import { Rating } from '@/components/lib/rating/Rating';
-import { Tag } from '@/components/lib/tag/Tag';
-import { useEffect, useState } from 'react';
-import { ProductService } from '../../../../service/ProductService';
-
-export function PTDoc(props) {
- const [products, setProducts] = useState([]);
-
- useEffect(() => {
- ProductService.getProducts().then((data) => setProducts(data));
- }, []); // eslint-disable-line react-hooks/exhaustive-deps
-
- const getSeverity = (product) => {
- switch (product.inventoryStatus) {
- case 'INSTOCK':
- return 'success';
-
- case 'LOWSTOCK':
- return 'warning';
-
- case 'OUTOFSTOCK':
- return 'danger';
-
- default:
- return null;
- }
- };
-
- const itemTemplate = (data) => {
- return (
-
-
-
-
-
-
-
{data.name}
-
{data.description}
-
-
-
-
-
- {data.category}
-
-
-
-
- ${data.price}
-
-
-
-
-
-
- );
- };
-
- const code = {
- basic: `
-
-`,
- javascript: `
-import React, { useState, useEffect } from 'react';
-import { ProductService } from './service/ProductService';
-import { Button } from 'primereact/button';
-import { DataScroller } from 'primereact/datascroller';
-import { Rating } from 'primereact/rating';
-import { Tag } from 'primereact/tag';
-
-export default function PTDemo() {
- const [products, setProducts] = useState([]);
-
- useEffect(() => {
- ProductService.getProducts().then((data) => setProducts(data));
- }, []); // eslint-disable-line react-hooks/exhaustive-deps
-
- const getSeverity = (product) => {
- switch (product.inventoryStatus) {
- case 'INSTOCK':
- return 'success';
-
- case 'LOWSTOCK':
- return 'warning';
-
- case 'OUTOFSTOCK':
- return 'danger';
-
- default:
- return null;
- }
- };
-
- const itemTemplate = (data) => {
- return (
-
-
-
-
-
-
-
{data.name}
-
{data.description}
-
-
-
-
-
- {data.category}
-
-
-
-
- \${data.price}
-
-
-
-
-
-
- );
- };
-
- return (
-
-
-
- )
-}
- `,
- typescript: `
-import React, { useState, useEffect } from 'react';
-import { ProductService } from './service/ProductService';
-import { Button } from 'primereact/button';
-import { DataScroller } from 'primereact/datascroller';
-import { Rating } from 'primereact/rating';
-import { Tag } from 'primereact/tag';
-
-interface Product {
- id: string;
- code: string;
- name: string;
- description: string;
- image: string;
- price: number;
- category: string;
- quantity: number;
- inventoryStatus: string;
- rating: number;
-}
-
-export default function BasicDemo() {
- const [products, setProducts] = useState([]);
-
- useEffect(() => {
- ProductService.getProducts().then((data) => setProducts(data));
- }, []); // eslint-disable-line react-hooks/exhaustive-deps
-
- const getSeverity = (product: Product) => {
- switch (product.inventoryStatus) {
- case 'INSTOCK':
- return 'success';
-
- case 'LOWSTOCK':
- return 'warning';
-
- case 'OUTOFSTOCK':
- return 'danger';
-
- default:
- return null;
- }
- };
-
- const itemTemplate = (data: Product) => {
- return (
-
-
-
-
-
-
-
{data.name}
-
{data.description}
-
-
-
-
-
- {data.category}
-
-
-
-
- \${data.price}
-
-
-
-
-
-
- );
- };
-
- return (
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/datatable/pt/ptdoc.js b/components/doc/datatable/pt/ptdoc.js
deleted file mode 100644
index 120f5a8eb7..0000000000
--- a/components/doc/datatable/pt/ptdoc.js
+++ /dev/null
@@ -1,270 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Column } from '@/components/lib/column/Column';
-import { DataTable } from '@/components/lib/datatable/DataTable';
-import { useState } from 'react';
-import { ProductService } from '../../../../service/ProductService';
-import DeferredDemo from '@/components/demo/DeferredDemo';
-
-export function PTDoc(props) {
- const [products, setProducts] = useState([]);
-
- const loadDemoData = () => {
- ProductService.getProductsMini().then((data) => setProducts(data));
- };
-
- const code = {
- basic: `
-
-
-
-
-
-
- `,
- javascript: `
-import React, { useState, useEffect } from 'react';
-import { DataTable } from 'primereact/datatable';
-import { Column } from 'primereact/column';
-import { ProductService } from './service/ProductService';
-
-export default function PTDemo() {
- const [products, setProducts] = useState([]);
-
- useEffect(() => {
- ProductService.getProductsMini().then(data => setProducts(data));
- }, []);
-
- return (
-
-
-
-
-
-
-
- );
-}
- `,
- typescript: `
-import React, { useState, useEffect } from 'react';
-import { DataTable } from 'primereact/datatable';
-import { Column } from 'primereact/column';
-import { ProductService } from './service/ProductService';
-
-interface Product {
- id: string;
- code: string;
- name: string;
- description: string;
- image: string;
- price: number;
- category: string;
- quantity: number;
- inventoryStatus: string;
- rating: number;
-}
-
-export default function PTDemo() {
- const [products, setProducts] = useState([]);
-
- useEffect(() => {
- ProductService.getProductsMini().then(data => setProducts(data));
- }, []);
-
- return (
-
-
-
-
-
-
- );
-}
- `,
- data: `
-{
- id: '1000',
- code: 'f230fh0g3',
- name: 'Bamboo Watch',
- description: 'Product Description',
- image: 'bamboo-watch.jpg',
- price: 65,
- category: 'Accessories',
- quantity: 24,
- inventoryStatus: 'INSTOCK',
- rating: 5
-},
-...
- `
- };
-
- return (
- <>
-
-
-
-
-
-
-
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/dataview/pt/ptdoc.js b/components/doc/dataview/pt/ptdoc.js
deleted file mode 100644
index d78908c210..0000000000
--- a/components/doc/dataview/pt/ptdoc.js
+++ /dev/null
@@ -1,419 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Button } from '@/components/lib/button/Button';
-import { DataView, DataViewLayoutOptions } from '@/components/lib/dataview/DataView';
-import { Rating } from '@/components/lib/rating/Rating';
-import { Tag } from '@/components/lib/tag/Tag';
-import { useEffect, useState } from 'react';
-import { ProductService } from '../../../../service/ProductService';
-
-export function PTDoc(props) {
- const [products, setProducts] = useState([]);
- const [layout, setLayout] = useState('grid');
-
- useEffect(() => {
- ProductService.getProducts().then((data) => setProducts(data.slice(0, 6)));
- }, []); // eslint-disable-line react-hooks/exhaustive-deps
-
- const getSeverity = (product) => {
- switch (product.inventoryStatus) {
- case 'INSTOCK':
- return 'success';
-
- case 'LOWSTOCK':
- return 'warning';
-
- case 'OUTOFSTOCK':
- return 'danger';
-
- default:
- return null;
- }
- };
-
- const listItem = (product) => {
- return (
-
-
-
-
-
-
{product.name}
-
-
-
-
- {product.category}
-
-
-
-
-
- ${product.price}
-
-
-
-
-
- );
- };
-
- const gridItem = (product) => {
- return (
-
-
-
-
-
- {product.category}
-
-
-
-
-
-
{product.name}
-
-
-
- ${product.price}
-
-
-
-
- );
- };
-
- const itemTemplate = (product, layout) => {
- if (!product) {
- return;
- }
-
- if (layout === 'list') {
- return listItem(product);
- } else if (layout === 'grid') {
- return gridItem(product);
- }
- };
-
- const header = () => {
- return (
-
- setLayout(e.value)}
- pt={{
- listButton: ({ props }) => ({ className: props.layout === 'list' ? 'bg-teal-400 border-teal-400' : 'undefined' }),
- gridButton: ({ props }) => ({ className: props.layout === 'grid' ? 'bg-teal-400 border-teal-400' : 'undefined' })
- }}
- />
-
- );
- };
-
- const code = {
- basic: `
-
- `,
- javascript: `
-import React, { useState, useEffect } from 'react';
-import { ProductService } from './service/ProductService';
-import { Button } from 'primereact/button';
-import { DataView, DataViewLayoutOptions } from 'primereact/dataview';
-import { Rating } from 'primereact/rating';
-import { Tag } from 'primereact/tag';
-
-export default function BasicDemo() {
- const [products, setProducts] = useState([]);
- const [layout, setLayout] = useState('grid');
-
- useEffect(() => {
- ProductService.getProducts().then((data) => setProducts(data.slice(0, 12)));
- }, []);
-
- const getSeverity = (product) => {
- switch (product.inventoryStatus) {
- case 'INSTOCK':
- return 'success';
-
- case 'LOWSTOCK':
- return 'warning';
-
- case 'OUTOFSTOCK':
- return 'danger';
-
- default:
- return null;
- }
- };
-
- const listItem = (product) => {
- return (
-
-
-
-
-
-
{product.name}
-
-
-
-
- {product.category}
-
-
-
-
-
- \${product.price}
-
-
-
-
-
- );
- };
-
- const gridItem = (product) => {
- return (
-
-
-
-
-
- {product.category}
-
-
-
-
-
-
{product.name}
-
-
-
- \${product.price}
-
-
-
-
- );
- };
-
- const itemTemplate = (product, layout) => {
- if (!product) {
- return;
- }
-
- if (layout === 'list') return listItem(product);
- else if (layout === 'grid') return gridItem(product);
- };
-
- const header = () => {
- return (
-
- setLayout(e.value)}
- pt={{
- listButton: ({ props }) => ({ className: props.layout === 'list' ? 'bg-teal-400 border-teal-400' : 'undefined' }),
- gridButton: ({ props }) => ({ className: props.layout === 'grid' ? 'bg-teal-400 border-teal-400' : 'undefined' })
- }}
- />
-
- );
- };
-
- return (
-
-
-
- )
-}
- `,
- typescript: `
-import React, { useState, useEffect } from 'react';
-import { ProductService } from './service/ProductService';
-import { Button } from 'primereact/button';
-import { DataView, DataViewLayoutOptions } from 'primereact/dataview';
-import { Rating } from 'primereact/rating';
-import { Tag } from 'primereact/tag';
-
-interface Product {
- id: string;
- code: string;
- name: string;
- description: string;
- image: string;
- price: number;
- category: string;
- quantity: number;
- inventoryStatus: string;
- rating: number;
-}
-
-export default function BasicDemo() {
- const [products, setProducts] = useState([]);
- const [layout, setLayout] = useState('grid');
-
- useEffect(() => {
- ProductService.getProducts().then((data) => setProducts(data.slice(0, 12)));
- }, []);
-
- const getSeverity = (product) => {
- switch (product.inventoryStatus) {
- case 'INSTOCK':
- return 'success';
-
- case 'LOWSTOCK':
- return 'warning';
-
- case 'OUTOFSTOCK':
- return 'danger';
-
- default:
- return null;
- }
- };
-
- const listItem = (product: Product) => {
- return (
-
-
-
-
-
-
{product.name}
-
-
-
-
- {product.category}
-
-
-
-
-
- \${product.price}
-
-
-
-
-
- );
- };
-
- const gridItem = (product: Product) => {
- return (
-
-
-
-
-
- {product.category}
-
-
-
-
-
-
{product.name}
-
-
-
- \${product.price}
-
-
-
-
- );
- };
-
- const itemTemplate = (product: Product, layout: string) => {
- if (!product) {
- return;
- }
-
- if (layout === 'list') return listItem(product);
- else if (layout === 'grid') return gridItem(product);
- };
-
- const header = () => {
- return (
-
- setLayout(e.value)}
- pt={{
- listButton: ({ props }) => ({ className: props.layout === 'list' ? 'bg-teal-400 border-teal-400' : 'undefined' }),
- gridButton: ({ props }) => ({ className: props.layout === 'grid' ? 'bg-teal-400 border-teal-400' : 'undefined' })
- }}
- />
-
- );
- };
-
- return (
-
-
-
- )
-}
- `,
- data: `
-/* ProductService */
-{
- id: '1000',
- code: 'f230fh0g3',
- name: 'Bamboo Watch',
- description: 'Product Description',
- image: 'bamboo-watch.jpg',
- price: 65,
- category: 'Accessories',
- quantity: 24,
- inventoryStatus: 'INSTOCK',
- rating: 5
-},
-...
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/dialog/pt/ptdoc.js b/components/doc/dialog/pt/ptdoc.js
deleted file mode 100644
index 941f7a701c..0000000000
--- a/components/doc/dialog/pt/ptdoc.js
+++ /dev/null
@@ -1,109 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Button } from '@/components/lib/button/Button';
-import { Dialog } from '@/components/lib/dialog/Dialog';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [visible, setVisible] = useState(false);
-
- const code = {
- basic: `
- setVisible(false)}
- pt={{
- root: { className: 'w-12 sm:w-9 md:w-6' }
- }}
->
-
- `,
- javascript: `
-import React, { useState } from 'react';
-import { Dialog } from 'primereact/dialog';
-import { Button } from 'primereact/button';
-
-export default function PTDemo() {
- const [visible, setVisible] = useState(false);
-
- return (
-
-
setVisible(true)} />
-
- setVisible(false)}
- pt={{
- root: { className: 'w-12 sm:w-9 md:w-6' }
- }}
- >
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
-
- )
-}
- `,
- typescript: `
-import React, { useState } from 'react';
-import { Dialog } from 'primereact/dialog';
-import { Button } from 'primereact/button';
-
-export default function PTDemo() {
- const [visible, setVisible] = useState(false);
-
- return (
-
-
setVisible(true)} />
-
- setVisible(false)}
- pt={{
- root: { className: 'w-12 sm:w-9 md:w-6' }
- }}
- >
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
setVisible(true)} />
-
- setVisible(false)}
- pt={{
- root: { className: 'w-12 sm:w-9 md:w-6' }
- }}
- >
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
-
-
- >
- );
-}
diff --git a/components/doc/divider/pt/ptdoc.js b/components/doc/divider/pt/ptdoc.js
deleted file mode 100644
index 5199fdcbcc..0000000000
--- a/components/doc/divider/pt/ptdoc.js
+++ /dev/null
@@ -1,83 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Divider } from '@/components/lib/divider/Divider';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod temporincididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrudexercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum doloreeu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpaqui officia deserunt mollit anim id est laborum.
-
-
- Center
-
-
- Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremquelaudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasiarchitecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequunturmagni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit,sed quia non numquam eius modi.
-
- `,
- javascript: `
-import React from 'react';
-import { Divider } from 'primereact/divider';
-
-export default function PTDemo() {
- return (
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
- Center
-
-
- Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim
- ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Divider } from 'primereact/divider';
-
-export default function PTDemo() {
- return (
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
- Center
-
-
- Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim
- ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
- Center
-
-
- Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim
- ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.
-
-
-
- >
- );
-}
diff --git a/components/doc/dock/pt/ptdoc.js b/components/doc/dock/pt/ptdoc.js
deleted file mode 100644
index b90c3babb8..0000000000
--- a/components/doc/dock/pt/ptdoc.js
+++ /dev/null
@@ -1,182 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Dock } from '@/components/lib/dock/Dock';
-
-export function PTDoc(props) {
- const items = [
- {
- label: 'Finder',
- icon: () =>
- },
- {
- label: 'App Store',
- icon: () =>
- },
- {
- label: 'Photos',
- icon: () =>
- },
- {
- label: 'Trash',
- icon: () =>
- }
- ];
-
- const positions = [
- {
- label: 'Bottom',
- value: 'bottom'
- },
- {
- label: 'Top',
- value: 'top'
- },
- {
- label: 'Left',
- value: 'left'
- },
- {
- label: 'Right',
- value: 'right'
- }
- ];
-
- const code = {
- basic: `
-
-`,
- javascript: `
-import React from 'react';
-import { Dock } from 'primereact/dock';
-import './DockDemo.css';
-
-export default function PTDemo() {
- const items = [
- {
- label: 'Finder',
- icon: () => ,
- },
- {
- label: 'App Store',
- icon: () => ,
- },
- {
- label: 'Photos',
- icon: () => ,
- },
- {
- label: 'Trash',
- icon: () => ,
- }
- ];
-
- return (
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Dock } from 'primereact/dock';
-import { MenuItem } from 'primereact/menuitem';
-import './DockDemo.css';
-
-export default function PTDemo() {
- const items: MenuItem[] = [
- {
- label: 'Finder',
- icon: () => ,
- },
- {
- label: 'App Store',
- icon: () => ,
- },
- {
- label: 'Photos',
- icon: () => ,
- },
- {
- label: 'Trash',
- icon: () => ,
- }
- ];
-
- return (
-
- )
-}
- `,
- extFiles: {
- 'DockDemo.css': `
-/* DockDemo.css */
-.dock-demo .dock-window {
- width: 100%;
- height: 450px;
- position: relative;
- background-image: url('https://primefaces.org/cdn/primereact/images/dock/window.jpg');
- background-repeat: no-repeat;
- background-size: cover;
-}
-.dock-demo .p-dock {
- z-index: 1000;
-}
- `
- }
- };
-
- return (
- <>
-
-
- Menu requires a collection of menuitems as its model . Default location is bottom and other sides are also available when defined with the position property.
-
-
-
-
- >
- );
-}
diff --git a/components/doc/dropdown/pt/ptdoc.js b/components/doc/dropdown/pt/ptdoc.js
deleted file mode 100644
index e5a2d68b02..0000000000
--- a/components/doc/dropdown/pt/ptdoc.js
+++ /dev/null
@@ -1,126 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Dropdown } from '@/components/lib/dropdown/Dropdown';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [selectedCity, setSelectedCity] = useState(null);
- const cities = [
- { name: 'New York', code: 'NY' },
- { name: 'Rome', code: 'RM' },
- { name: 'London', code: 'LDN' },
- { name: 'Istanbul', code: 'IST' },
- { name: 'Paris', code: 'PRS' }
- ];
-
- const code = {
- basic: `
- setSelectedCity(e.value)}
- options={cities}
- optionLabel="name"
- placeholder="Select a City"
- pt={{
- root: { className: 'w-full md:w-14rem' },
- item: ({ context }) => ({
- className: context.selected ? 'bg-primary' : undefined
- })
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { Dropdown } from 'primereact/dropdown';
-
-export default function PTDemo() {
- const [selectedCity, setSelectedCity] = useState(null);
- const cities = [
- { name: 'New York', code: 'NY' },
- { name: 'Rome', code: 'RM' },
- { name: 'London', code: 'LDN' },
- { name: 'Istanbul', code: 'IST' },
- { name: 'Paris', code: 'PRS' }
- ];
-
- return (
-
- setSelectedCity(e.value)}
- options={cities}
- optionLabel="name"
- placeholder="Select a City"
- pt={{
- root: { className: 'w-full md:w-14rem' },
- item: ({ context }) => ({
- className: context.selected ? 'bg-primary' : undefined
- })
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { Dropdown, DropdownChangeEvent } from 'primereact/dropdown';
-
-interface City {
- name: string;
- code: string;
-}
-
-export default function PTDemo() {
- const [selectedCity, setSelectedCity] = useState(null);
- const cities: City[] = [
- { name: 'New York', code: 'NY' },
- { name: 'Rome', code: 'RM' },
- { name: 'London', code: 'LDN' },
- { name: 'Istanbul', code: 'IST' },
- { name: 'Paris', code: 'PRS' }
- ];
-
- return (
-
- setSelectedCity(e.value)}
- options={cities}
- optionLabel="name"
- placeholder="Select a City"
- pt={{
- root: { className: 'w-full md:w-14rem' },
- item: ({ context }) => ({
- className: context.selected ? 'bg-primary' : undefined
- })
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- setSelectedCity(e.value)}
- options={cities}
- optionLabel="name"
- placeholder="Select a City"
- pt={{
- root: { className: 'w-full md:w-14rem' },
- item: ({ context }) => ({
- className: context.selected ? 'bg-primary' : undefined
- })
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/editor/pt/ptdoc.js b/components/doc/editor/pt/ptdoc.js
deleted file mode 100644
index 4a5536977e..0000000000
--- a/components/doc/editor/pt/ptdoc.js
+++ /dev/null
@@ -1,80 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Editor } from '@/components/lib/editor/Editor';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [text, setText] = useState('');
-
- const code = {
- basic: `
- setText(e.htmlValue)}
- pt={{
- content: { style: { height: '320px' } },
- toolbar: { className: 'surface-ground' }
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { Editor } from "primereact/editor";
-
-export default function PTDemo() {
- const [text, setText] = useState('');
-
- return (
-
- setText(e.htmlValue)}
- pt={{
- content: { style: { height: '320px' } },
- toolbar: { className: 'surface-ground' }
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { Editor, EditorTextChangeEvent } from "primereact/editor";
-
-export default function PTDemo() {
- const [text, setText] = useState('');
-
- return (
-
- setText(e.htmlValue)}
- pt={{
- content: { style: { height: '320px' } },
- toolbar: { className: 'surface-ground' }
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- setText(e.htmlValue)}
- pt={{
- content: { style: { height: '320px' } },
- toolbar: { className: 'surface-ground' }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/fieldset/pt/ptdoc.js b/components/doc/fieldset/pt/ptdoc.js
deleted file mode 100644
index f7d64e559e..0000000000
--- a/components/doc/fieldset/pt/ptdoc.js
+++ /dev/null
@@ -1,96 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Fieldset } from '@/components/lib/fieldset/Fieldset';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod temporincididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrudexercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillumdolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, suntin culpa qui officia deserunt mollit anim id est laborum.
-
-
- `,
- javascript: `
-import React from 'react';
-import { Fieldset } from 'primereact/fieldset';
-
-export default function PTDemo() {
- return (
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Fieldset } from 'primereact/fieldset';
-
-export default function PTDemo() {
- return (
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
-
-
- >
- );
-}
diff --git a/components/doc/fileupload/pt/ptdoc.js b/components/doc/fileupload/pt/ptdoc.js
deleted file mode 100644
index 5389c59d5e..0000000000
--- a/components/doc/fileupload/pt/ptdoc.js
+++ /dev/null
@@ -1,108 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { FileUpload } from '@/components/lib/fileupload/FileUpload';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-Drag and drop files to here to upload.
}
-/>
- `,
- javascript: `
-import React from 'react';
-import { FileUpload } from 'primereact/fileupload';
-
-export default function PTDemo() {
-
- return (
-
- Drag and drop files to here to upload.}
- />
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Toast } from 'primereact/toast';
-import { FileUpload } from 'primereact/fileupload';
-
-export default function PTDemo() {
-
- return (
-
- Drag and drop files to here to upload.}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- Drag and drop files to here to upload.}
- />
-
-
- >
- );
-}
diff --git a/components/doc/galleria/pt/ptdoc.js b/components/doc/galleria/pt/ptdoc.js
deleted file mode 100644
index 4569135141..0000000000
--- a/components/doc/galleria/pt/ptdoc.js
+++ /dev/null
@@ -1,184 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Galleria } from '@/components/lib/galleria/Galleria';
-import { useEffect, useState } from 'react';
-import { PhotoService } from '../../../../service/PhotoService';
-
-export function PTDoc(props) {
- const [images, setImages] = useState(null);
-
- const responsiveOptions = [
- {
- breakpoint: '991px',
- numVisible: 4
- },
- {
- breakpoint: '767px',
- numVisible: 3
- },
- {
- breakpoint: '575px',
- numVisible: 1
- }
- ];
-
- useEffect(() => {
- PhotoService.getImages().then((data) => setImages(data));
- }, []); // eslint-disable-line react-hooks/exhaustive-deps
-
- const itemTemplate = (item) => {
- return ;
- };
-
- const thumbnailTemplate = (item) => {
- return ;
- };
-
- const code = {
- basic: `
-
- `,
- javascript: `
-import React, { useState, useEffect } from 'react';
-import { Galleria } from 'primereact/galleria';
-import { PhotoService } from './service/PhotoService';
-
-export default function PTDemo() {
- const [images, setImages] = useState(null);
- const responsiveOptions = [
- {
- breakpoint: '991px',
- numVisible: 4
- },
- {
- breakpoint: '767px',
- numVisible: 3
- },
- {
- breakpoint: '575px',
- numVisible: 1
- }
- ];
-
- useEffect(() => {
- PhotoService.getImages().then(data => setImages(data));
- }, [])
-
- const itemTemplate = (item) => {
- return
- }
-
- const thumbnailTemplate = (item) => {
- return
- }
-
- return (
-
-
-
- )
-}
- `,
- typescript: `
-import React, { useState, useEffect } from 'react';
-import { Galleria, GalleriaResponsiveOptions } from 'primereact/galleria';
-import { PhotoService } from './service/PhotoService';
-
-export default function PTDemo() {
- const [images, setImages] = useState(null);
- const responsiveOptions: GalleriaResponsiveOptions[] = [
- {
- breakpoint: '991px',
- numVisible: 4
- },
- {
- breakpoint: '767px',
- numVisible: 3
- },
- {
- breakpoint: '575px',
- numVisible: 1
- }
- ];
-
- useEffect(() => {
- PhotoService.getImages().then(data => setImages(data));
- }, []);
-
- const itemTemplate = (item: any) => {
- return
- }
-
- const thumbnailTemplate = (item: any) => {
- return
- }
-
- return (
-
-
-
- )
-}
- `,
- data: `
-/* PhotoService */
-{
- itemImageSrc: 'https://primefaces.org/cdn/primereact/images/galleria/galleria1.jpg',
- thumbnailImageSrc: 'https://primefaces.org/cdn/primereact/images/galleria/galleria1s.jpg',
- alt: 'Description for Image 1',
- title: 'Title 1'
-},
-...
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/iconfield/pt/ptdoc.js b/components/doc/iconfield/pt/ptdoc.js
deleted file mode 100644
index 781271232a..0000000000
--- a/components/doc/iconfield/pt/ptdoc.js
+++ /dev/null
@@ -1,26 +0,0 @@
-import React from 'react';
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { InputText } from '@/components/lib/inputtext/InputText';
-
-export function PTDoc(props) {
- return (
- <>
-
-
- InputText is used as a controlled input with value and onChange properties.
-
-
-
- setValue(e.target.value)}
- pt={{
- root: { className: 'border-primary-400' }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/image/pt/ptdoc.js b/components/doc/image/pt/ptdoc.js
deleted file mode 100644
index 958e41c63a..0000000000
--- a/components/doc/image/pt/ptdoc.js
+++ /dev/null
@@ -1,77 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Image } from '@/components/lib/image/Image';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
- `,
- javascript: `
-import React from 'react';
-import { Image } from 'primereact/image';
-
-export default function PTDemo() {
- return (
-
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Image } from 'primereact/image';
-
-export default function PTDemo() {
- return (
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/inplace/pt/ptdoc.js b/components/doc/inplace/pt/ptdoc.js
deleted file mode 100644
index 6f7e45121a..0000000000
--- a/components/doc/inplace/pt/ptdoc.js
+++ /dev/null
@@ -1,93 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Inplace, InplaceContent, InplaceDisplay } from '@/components/lib/inplace/Inplace';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
- View Content
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
- `,
- javascript: `
-import React from 'react';
-import { Inplace } from 'primereact/inplace';
-
-export default function PTDemo() {
- return (
-
-
- View Content
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
- laborum.
-
-
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Inplace } from 'primereact/inplace';
-
-export default function PTDemo() {
- return (
-
-
- View Content
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
- laborum.
-
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
- View Content
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
- laborum.
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/inputmask/pt/ptdoc.js b/components/doc/inputmask/pt/ptdoc.js
deleted file mode 100644
index b74edd3049..0000000000
--- a/components/doc/inputmask/pt/ptdoc.js
+++ /dev/null
@@ -1,98 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { InputMask } from '@/components/lib/inputmask/InputMask';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [value, setValue] = useState('');
-
- const code = {
- basic: `
- setValue(e.target.value)}
- mask="99-999999"
- placeholder="99-999999"
- pt={{
- input: {
- root: {
- className: 'border-teal-400'
- }
- }
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { InputMask } from "primereact/inputmask";
-
-export default function PTDemo() {
- const [value, setValue] = useState('');
-
- return (
-
- setValue(e.target.value)}
- mask="99-999999"
- placeholder="99-999999"
- pt={{
- input: {
- root: {
- className: 'border-teal-400'
- }
- }
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { InputMask, InputMaskChangeEvent } from "primereact/inputmask";
-
-export default function PTDemo() {
- const [value, setValue] = useState('');
-
- return (
-
- setValue(e.target.value)}
- mask="99-999999"
- placeholder="99-999999"
- pt={{
- input: {
- root: {
- className: 'border-teal-400'
- }
- }
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- setValue(e.target.value)}
- mask="99-999999"
- placeholder="99-999999"
- pt={{
- root: {
- className: 'border-teal-400'
- }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/inputnumber/pt/ptdoc.js b/components/doc/inputnumber/pt/ptdoc.js
deleted file mode 100644
index a3ea33023b..0000000000
--- a/components/doc/inputnumber/pt/ptdoc.js
+++ /dev/null
@@ -1,120 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { InputNumber } from '@/components/lib/inputnumber/InputNumber';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [value, setValue] = useState(20);
-
- const code = {
- basic: `
- setValue(e.value)}
- showButtons
- buttonLayout="horizontal"
- step={0.25}
- decrementButtonClassName="p-button-danger"
- incrementButtonClassName="p-button-success"
- incrementButtonIcon="pi pi-plus"
- decrementButtonIcon="pi pi-minus"
- mode="currency"
- currency="EUR"
- pt={{
- incrementButton: { className: 'bg-teal-500 border-teal-500' },
- decrementButton: { className: 'bg-orange-500 border-orange-500' }
- }}
-/>
-`,
- javascript: `
-import React, { useState } from "react";
-import { InputNumber } from 'primereact/inputnumber';
-
-export default function PTDemo() {
- const [value, setValue] = useState(20);
-
- return (
-
- setValue(e.value)}
- showButtons
- buttonLayout="horizontal"
- step={0.25}
- decrementButtonClassName="p-button-danger"
- incrementButtonClassName="p-button-success"
- incrementButtonIcon="pi pi-plus"
- decrementButtonIcon="pi pi-minus"
- mode="currency"
- currency="EUR"
- pt={{
- incrementButton: { className: 'bg-teal-500 border-teal-500' },
- decrementButton: { className: 'bg-orange-500 border-orange-500' }
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { InputNumber, InputNumberValueChangeEvent } from 'primereact/inputnumber';
-
-export default function PTDemo() {
- const [value, setValue] = useState(20);
-
- return (
-
- setValue(e.value)}
- showButtons
- buttonLayout="horizontal"
- step={0.25}
- decrementButtonClassName="p-button-danger"
- incrementButtonClassName="p-button-success"
- incrementButtonIcon="pi pi-plus"
- decrementButtonIcon="pi pi-minus"
- mode="currency"
- currency="EUR"
- pt={{
- incrementButton: { className: 'bg-teal-500 border-teal-500' },
- decrementButton: { className: 'bg-orange-500 border-orange-500' }
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- setValue(e.value)}
- showButtons
- buttonLayout="horizontal"
- step={0.25}
- decrementButtonClassName="p-button-danger"
- incrementButtonClassName="p-button-success"
- incrementButtonIcon="pi pi-plus"
- decrementButtonIcon="pi pi-minus"
- mode="currency"
- currency="EUR"
- pt={{
- incrementButton: { className: 'bg-teal-500 border-teal-500' },
- decrementButton: { className: 'bg-orange-500 border-orange-500' }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/inputswitch/pt/ptdoc.js b/components/doc/inputswitch/pt/ptdoc.js
deleted file mode 100644
index fe808de53e..0000000000
--- a/components/doc/inputswitch/pt/ptdoc.js
+++ /dev/null
@@ -1,84 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { InputSwitch } from '@/components/lib/inputswitch/InputSwitch';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [checked, setChecked] = useState(false);
-
- const code = {
- basic: `
- setChecked(e.value)}
- pt={{
- slider: ({ props }) => ({
- className: props.checked ? 'bg-teal-400' : 'bg-red-400'
- })
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { InputSwitch } from "primereact/inputswitch";
-
-export default function PTDemo() {
- const [checked, setChecked] = useState(false);
-
- return (
-
- setChecked(e.value)}
- pt={{
- slider: ({ props }) => ({
- className: props.checked ? 'bg-teal-400' : 'bg-red-400'
- })
- }}
- />
-
- );
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { InputSwitch, InputSwitchChangeEvent } from "primereact/inputswitch";
-
-export default function PTDemo() {
- const [checked, setChecked] = useState(false);
-
- return (
-
- setChecked(e.value)}
- pt={{
- slider: ({ props }) => ({
- className: props.checked ? 'bg-teal-400' : 'bg-red-400'
- })
- }}
- />
-
- );
-}
- `
- };
-
- return (
- <>
-
-
- setChecked(e.value)}
- pt={{
- slider: ({ props }) => ({
- className: props.checked ? 'bg-teal-400' : 'bg-red-400'
- })
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/inputtext/pt/ptdoc.js b/components/doc/inputtext/pt/ptdoc.js
deleted file mode 100644
index 00b97c9e8e..0000000000
--- a/components/doc/inputtext/pt/ptdoc.js
+++ /dev/null
@@ -1,80 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { InputText } from '@/components/lib/inputtext/InputText';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [value, setValue] = useState('');
-
- const code = {
- basic: `
- setValue(e.target.value)}
- pt={{
- root: { className: 'border-primary-400' }
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { InputText } from "primereact/inputtext";
-
-export default function PTDemo() {
- const [value, setValue] = useState('');
-
- return (
-
- setValue(e.target.value)}
- pt={{
- root: { className: 'border-primary-400' }
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { InputText } from "primereact/inputtext";
-
-export default function PTDemo() {
- const [value, setValue] = useState('');
-
- return (
-
- setValue(e.target.value)}
- pt={{
- root: { className: 'border-primary-400' }
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- InputText is used as a controlled input with value and onChange properties.
-
-
-
- setValue(e.target.value)}
- pt={{
- root: { className: 'border-primary-400' }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/inputtextarea/pt/ptdoc.js b/components/doc/inputtextarea/pt/ptdoc.js
deleted file mode 100644
index 492f002661..0000000000
--- a/components/doc/inputtextarea/pt/ptdoc.js
+++ /dev/null
@@ -1,88 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { InputTextarea } from '@/components/lib/inputtextarea/InputTextarea';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [value, setValue] = useState('');
-
- const code = {
- basic: `
- setValue(e.target.value)}
- pt={{
- root: {
- rows: 5,
- cols: 30
- }
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { InputTextarea } from "primereact/inputtextarea";
-
-export default function PTDemo() {
- const [value, setValue] = useState('');
-
- return (
-
- setValue(e.target.value)}
- pt={{
- root: {
- rows: 5,
- cols: 30
- }
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { InputTextarea } from "primereact/inputtextarea";
-
-export default function PTDemo() {
- const [value, setValue] = useState('');
-
- return (
-
- ) => setValue(e.target.value)}
- pt={{
- root: {
- rows: 5,
- cols: 30
- }
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- setValue(e.target.value)}
- pt={{
- root: {
- rows: 5,
- cols: 30
- }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/knob/pt/ptdoc.js b/components/doc/knob/pt/ptdoc.js
deleted file mode 100644
index ffe01af20c..0000000000
--- a/components/doc/knob/pt/ptdoc.js
+++ /dev/null
@@ -1,76 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Knob } from '@/components/lib/knob/Knob';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [value, setValue] = useState(0);
-
- const code = {
- basic: `
- setValue(e.value)}
- pt={{
- value: { style: { stroke: 'var(--cyan-500)' } }
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { Knob } from 'primereact/knob';
-
-export default function PTDemo() {
- const [value, setValue] = useState(0);
-
- return (
-
- setValue(e.value)}
- pt={{
- value: { style: { stroke: 'var(--cyan-500)' } }
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { Knob, KnobChangeEvent } from 'primereact/knob';
-
-export default function PTDemo() {
- const [value, setValue] = useState(0);
-
- return (
-
- setValue(e.value)}
- pt={{
- value: { style: { stroke: 'var(--cyan-500)' } }
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- setValue(e.value)}
- pt={{
- value: { style: { stroke: 'var(--cyan-500)' } }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/listbox/pt/ptdoc.js b/components/doc/listbox/pt/ptdoc.js
deleted file mode 100644
index 3ecfaca9c9..0000000000
--- a/components/doc/listbox/pt/ptdoc.js
+++ /dev/null
@@ -1,122 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { ListBox } from '@/components/lib/listbox/ListBox';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [selectedCity, setSelectedCity] = useState(null);
- const cities = [
- { name: 'New York', code: 'NY' },
- { name: 'Rome', code: 'RM' },
- { name: 'London', code: 'LDN' },
- { name: 'Istanbul', code: 'IST' },
- { name: 'Paris', code: 'PRS' }
- ];
-
- const code = {
- basic: `
- setSelectedCity(e.value)}
- options={cities}
- optionLabel="name"
- pt={{
- root: { className: 'w-full md:w-14rem' },
- item: ({ context }) => ({
- className: context.selected ? 'bg-primary' : undefined
- })
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { ListBox } from 'primereact/listbox';
-
-export default function PTDemo() {
- const [selectedCity, setSelectedCity] = useState(null);
- const cities = [
- { name: 'New York', code: 'NY' },
- { name: 'Rome', code: 'RM' },
- { name: 'London', code: 'LDN' },
- { name: 'Istanbul', code: 'IST' },
- { name: 'Paris', code: 'PRS' }
- ];
-
- return (
-
- setSelectedCity(e.value)}
- options={cities}
- optionLabel="name"
- pt={{
- root: { className: 'w-full md:w-14rem' },
- item: ({ context }) => ({
- className: context.selected ? 'bg-primary' : undefined
- })
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { ListBox, ListBoxChangeEvent } from 'primereact/listbox';
-
-interface City {
- name: string;
- code: string;
-}
-
-export default function PTDemo() {
- const [selectedCity, setSelectedCity] = useState(null);
- const cities: City[] = [
- { name: 'New York', code: 'NY' },
- { name: 'Rome', code: 'RM' },
- { name: 'London', code: 'LDN' },
- { name: 'Istanbul', code: 'IST' },
- { name: 'Paris', code: 'PRS' }
- ];
-
- return (
-
- setSelectedCity(e.value)}
- options={cities}
- optionLabel="name"
- pt={{
- root: { className: 'w-full md:w-14rem' },
- item: ({ context }) => ({
- className: context.selected ? 'bg-primary' : undefined
- })
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- setSelectedCity(e.value)}
- options={cities}
- optionLabel="name"
- pt={{
- root: { className: 'w-full md:w-14rem' },
- item: ({ context }) => ({
- className: context.selected ? 'bg-primary' : undefined
- })
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/megamenu/pt/ptdoc.js b/components/doc/megamenu/pt/ptdoc.js
deleted file mode 100644
index 854fcd0260..0000000000
--- a/components/doc/megamenu/pt/ptdoc.js
+++ /dev/null
@@ -1,408 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { MegaMenu } from '@/components/lib/megamenu/MegaMenu';
-
-export function PTDoc(props) {
- const items = [
- {
- label: 'Videos',
- icon: 'pi pi-fw pi-video',
- items: [
- [
- {
- label: 'Video 1',
- items: [{ label: 'Video 1.1' }, { label: 'Video 1.2' }]
- },
- {
- label: 'Video 2',
- items: [{ label: 'Video 2.1' }, { label: 'Video 2.2' }]
- }
- ],
- [
- {
- label: 'Video 3',
- items: [{ label: 'Video 3.1' }, { label: 'Video 3.2' }]
- },
- {
- label: 'Video 4',
- items: [{ label: 'Video 4.1' }, { label: 'Video 4.2' }]
- }
- ]
- ]
- },
- {
- label: 'Users',
- icon: 'pi pi-fw pi-users',
- items: [
- [
- {
- label: 'User 1',
- items: [{ label: 'User 1.1' }, { label: 'User 1.2' }]
- },
- {
- label: 'User 2',
- items: [{ label: 'User 2.1' }, { label: 'User 2.2' }]
- }
- ],
- [
- {
- label: 'User 3',
- items: [{ label: 'User 3.1' }, { label: 'User 3.2' }]
- },
- {
- label: 'User 4',
- items: [{ label: 'User 4.1' }, { label: 'User 4.2' }]
- }
- ],
- [
- {
- label: 'User 5',
- items: [{ label: 'User 5.1' }, { label: 'User 5.2' }]
- },
- {
- label: 'User 6',
- items: [{ label: 'User 6.1' }, { label: 'User 6.2' }]
- }
- ]
- ]
- },
- {
- label: 'Events',
- icon: 'pi pi-fw pi-calendar',
- items: [
- [
- {
- label: 'Event 1',
- items: [{ label: 'Event 1.1' }, { label: 'Event 1.2' }]
- },
- {
- label: 'Event 2',
- items: [{ label: 'Event 2.1' }, { label: 'Event 2.2' }]
- }
- ],
- [
- {
- label: 'Event 3',
- items: [{ label: 'Event 3.1' }, { label: 'Event 3.2' }]
- },
- {
- label: 'Event 4',
- items: [{ label: 'Event 4.1' }, { label: 'Event 4.2' }]
- }
- ]
- ]
- },
- {
- label: 'Settings',
- icon: 'pi pi-fw pi-cog',
- items: [
- [
- {
- label: 'Setting 1',
- items: [{ label: 'Setting 1.1' }, { label: 'Setting 1.2' }]
- },
- {
- label: 'Setting 2',
- items: [{ label: 'Setting 2.1' }, { label: 'Setting 2.2' }]
- },
- {
- label: 'Setting 3',
- items: [{ label: 'Setting 3.1' }, { label: 'Setting 3.2' }]
- }
- ],
- [
- {
- label: 'Technology 4',
- items: [{ label: 'Setting 4.1' }, { label: 'Setting 4.2' }]
- }
- ]
- ]
- }
- ];
- const code = {
- basic: `
- ({ className: context.active ? 'bg-primary-200' : undefined })
- }}
-/>
-`,
- javascript: `
-import React from 'react';
-import { MegaMenu } from 'primereact/megamenu';
-
-export default function PTDemo() {
- const items = [
- {
- label: 'Videos', icon: 'pi pi-fw pi-video',
- items: [
- [
- {
- label: 'Video 1',
- items: [{ label: 'Video 1.1' }, { label: 'Video 1.2' }]
- },
- {
- label: 'Video 2',
- items: [{ label: 'Video 2.1' }, { label: 'Video 2.2' }]
- }
- ],
- [
- {
- label: 'Video 3',
- items: [{ label: 'Video 3.1' }, { label: 'Video 3.2' }]
- },
- {
- label: 'Video 4',
- items: [{ label: 'Video 4.1' }, { label: 'Video 4.2' }]
- }
- ]
- ]
- },
- {
- label: 'Users', icon: 'pi pi-fw pi-users',
- items: [
- [
- {
- label: 'User 1',
- items: [{ label: 'User 1.1' }, { label: 'User 1.2' }]
- },
- {
- label: 'User 2',
- items: [{ label: 'User 2.1' }, { label: 'User 2.2' }]
- },
- ],
- [
- {
- label: 'User 3',
- items: [{ label: 'User 3.1' }, { label: 'User 3.2' }]
- },
- {
- label: 'User 4',
- items: [{ label: 'User 4.1' }, { label: 'User 4.2' }]
- }
- ],
- [
- {
- label: 'User 5',
- items: [{ label: 'User 5.1' }, { label: 'User 5.2' }]
- },
- {
- label: 'User 6',
- items: [{ label: 'User 6.1' }, { label: 'User 6.2' }]
- }
- ]
- ]
- },
- {
- label: 'Events', icon: 'pi pi-fw pi-calendar',
- items: [
- [
- {
- label: 'Event 1',
- items: [{ label: 'Event 1.1' }, { label: 'Event 1.2' }]
- },
- {
- label: 'Event 2',
- items: [{ label: 'Event 2.1' }, { label: 'Event 2.2' }]
- }
- ],
- [
- {
- label: 'Event 3',
- items: [{ label: 'Event 3.1' }, { label: 'Event 3.2' }]
- },
- {
- label: 'Event 4',
- items: [{ label: 'Event 4.1' }, { label: 'Event 4.2' }]
- }
- ]
- ]
- },
- {
- label: 'Settings', icon: 'pi pi-fw pi-cog',
- items: [
- [
- {
- label: 'Setting 1',
- items: [{ label: 'Setting 1.1' }, { label: 'Setting 1.2' }]
- },
- {
- label: 'Setting 2',
- items: [{ label: 'Setting 2.1' }, { label: 'Setting 2.2' }]
- },
- {
- label: 'Setting 3',
- items: [{ label: 'Setting 3.1' }, { label: 'Setting 3.2' }]
- }
- ],
- [
- {
- label: 'Technology 4',
- items: [{ label: 'Setting 4.1' }, { label: 'Setting 4.2' }]
- }
- ]
- ]
- }
- ];
-
- return (
-
- ({ className: context.active ? 'bg-primary-200' : undefined })
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { MegaMenu } from 'primereact/megamenu';
-import { MenuItem } from 'primereact/menuitem';
-
-export default function PTDemo() {
- const items: MenuItem[] = [
- {
- label: 'Videos', icon: 'pi pi-fw pi-video',
- items: [
- [
- {
- label: 'Video 1',
- items: [{ label: 'Video 1.1' }, { label: 'Video 1.2' }]
- },
- {
- label: 'Video 2',
- items: [{ label: 'Video 2.1' }, { label: 'Video 2.2' }]
- }
- ],
- [
- {
- label: 'Video 3',
- items: [{ label: 'Video 3.1' }, { label: 'Video 3.2' }]
- },
- {
- label: 'Video 4',
- items: [{ label: 'Video 4.1' }, { label: 'Video 4.2' }]
- }
- ]
- ]
- },
- {
- label: 'Users', icon: 'pi pi-fw pi-users',
- items: [
- [
- {
- label: 'User 1',
- items: [{ label: 'User 1.1' }, { label: 'User 1.2' }]
- },
- {
- label: 'User 2',
- items: [{ label: 'User 2.1' }, { label: 'User 2.2' }]
- },
- ],
- [
- {
- label: 'User 3',
- items: [{ label: 'User 3.1' }, { label: 'User 3.2' }]
- },
- {
- label: 'User 4',
- items: [{ label: 'User 4.1' }, { label: 'User 4.2' }]
- }
- ],
- [
- {
- label: 'User 5',
- items: [{ label: 'User 5.1' }, { label: 'User 5.2' }]
- },
- {
- label: 'User 6',
- items: [{ label: 'User 6.1' }, { label: 'User 6.2' }]
- }
- ]
- ]
- },
- {
- label: 'Events', icon: 'pi pi-fw pi-calendar',
- items: [
- [
- {
- label: 'Event 1',
- items: [{ label: 'Event 1.1' }, { label: 'Event 1.2' }]
- },
- {
- label: 'Event 2',
- items: [{ label: 'Event 2.1' }, { label: 'Event 2.2' }]
- }
- ],
- [
- {
- label: 'Event 3',
- items: [{ label: 'Event 3.1' }, { label: 'Event 3.2' }]
- },
- {
- label: 'Event 4',
- items: [{ label: 'Event 4.1' }, { label: 'Event 4.2' }]
- }
- ]
- ]
- },
- {
- label: 'Settings', icon: 'pi pi-fw pi-cog',
- items: [
- [
- {
- label: 'Setting 1',
- items: [{ label: 'Setting 1.1' }, { label: 'Setting 1.2' }]
- },
- {
- label: 'Setting 2',
- items: [{ label: 'Setting 2.1' }, { label: 'Setting 2.2' }]
- },
- {
- label: 'Setting 3',
- items: [{ label: 'Setting 3.1' }, { label: 'Setting 3.2' }]
- }
- ],
- [
- {
- label: 'Technology 4',
- items: [{ label: 'Setting 4.1' }, { label: 'Setting 4.2' }]
- }
- ]
- ]
- }
- ];
-
- return (
-
- ({ className: context.active ? 'bg-primary-200' : undefined })
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- ({ className: context.active ? 'bg-primary-200' : undefined })
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/mention/pt/ptdoc.js b/components/doc/mention/pt/ptdoc.js
deleted file mode 100644
index 592204ddeb..0000000000
--- a/components/doc/mention/pt/ptdoc.js
+++ /dev/null
@@ -1,263 +0,0 @@
-/* eslint-disable react-hooks/exhaustive-deps */
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Mention } from '@/components/lib/mention/Mention';
-import { useEffect, useState } from 'react';
-import { CustomerService } from '../../../../service/CustomerService';
-
-export function PTDoc(props) {
- const [value, setValue] = useState('');
- const [customers, setCustomers] = useState([]);
- const [suggestions, setSuggestions] = useState([]);
-
- useEffect(() => {
- CustomerService.getCustomersSmall().then((data) => {
- data.forEach((d) => (d.nickname = `${d.name.replace(/\s+/g, '').toLowerCase()}_${d.id}`));
- setCustomers(data);
- });
- }, []);
-
- const onSearch = (event) => {
- //in a real application, make a request to a remote url with the query and return suggestions, for demo we filter at client side
- setTimeout(() => {
- const query = event.query;
- let suggestions;
-
- if (!query.trim().length) {
- suggestions = [...customers];
- } else {
- suggestions = customers.filter((customer) => {
- return customer.nickname.toLowerCase().startsWith(query.toLowerCase());
- });
- }
-
- setSuggestions(suggestions);
- }, 250);
- };
-
- const itemTemplate = (suggestion) => {
- const src = 'https://primefaces.org/cdn/primereact/images/avatar/' + suggestion.representative.image;
-
- return (
-
-
-
- {suggestion.name}
- @{suggestion.nickname}
-
-
- );
- };
-
- const code = {
- basic: `
- setValue(e.target.value)}
- suggestions={suggestions}
- onSearch={onSearch}
- field="nickname"
- placeholder="Enter @ to mention people"
- rows={5}
- cols={40}
- itemTemplate={itemTemplate}
- autoResize
- pt={{
- items: { className: 'bg-orange-400' },
- item: { className: 'font-bold' }
- }}
-/>
- `,
- javascript: `
-import React, { useState, useEffect } from "react";
-import { Mention } from 'primereact/mention';
-import { CustomerService } from './service/CustomerService';
-
-export default function BasicDemo() {
- const [value, setValue] = useState('');
- const [customers, setCustomers] = useState([]);
- const [suggestions, setSuggestions] = useState([]);
-
- useEffect(() => {
- CustomerService.getCustomersSmall().then(data => {
- data.forEach(d => d['nickname'] = \`\${d.name.replace(/\\s+/g, '').toLowerCase()}_\${d.id}\`);
- setCustomers(data);
- });
- }, [])
-
- const onSearch = (event) => {
- //in a real application, make a request to a remote url with the query and return suggestions, for demo we filter at client side
- setTimeout(() => {
- const query = event.query;
- let suggestions;
-
- if (!query.trim().length) {
- suggestions = [...customers];
- }
- else {
- suggestions = customers.filter((customer) => {
- return customer.nickname.toLowerCase().startsWith(query.toLowerCase());
- });
- }
-
- setSuggestions(suggestions);
- }, 250);
- }
-
- const itemTemplate = (suggestion) => {
- const src = 'https://primefaces.org/cdn/primereact/images/avatar/' + suggestion.representative.image;
-
- return (
-
-
-
- {suggestion.name}
- @{suggestion.nickname}
-
-
- );
- }
-
- return (
-
- setValue(e.target.value)}
- suggestions={suggestions}
- onSearch={onSearch}
- field="nickname"
- placeholder="Enter @ to mention people"
- rows={5}
- cols={40}
- itemTemplate={itemTemplate}
- autoResize
- pt={{
- items: { className: 'bg-orange-400' },
- item: { className: 'font-bold' }
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React, { useState, useEffect } from "react";
-import { Mention, MentionSearchEvent } from 'primereact/mention';
-import { CustomerService } from './service/CustomerService';
-
-export default function BasicDemo() {
- const [value, setValue] = useState('');
- const [customers, setCustomers] = useState([]);
- const [suggestions, setSuggestions] = useState([]);
-
- useEffect(() => {
- CustomerService.getCustomersSmall().then(data => {
- data.forEach(d => d['nickname'] = \`\${d.name.replace(/\\s+/g, '').toLowerCase()}_\${d.id}\`);
- setCustomers(data);
- });
- }, [])
-
- const onSearch = (event: MentionSearchEvent) => {
- //in a real application, make a request to a remote url with the query and return suggestions, for demo we filter at client side
- setTimeout(() => {
- const query = event.query;
- let suggestions;
-
- if (!query.trim().length) {
- suggestions = [...customers];
- }
- else {
- suggestions = customers.filter((customer) => {
- return customer.nickname.toLowerCase().startsWith(query.toLowerCase());
- });
- }
-
- setSuggestions(suggestions);
- }, 250);
- }
-
- const itemTemplate = (suggestion: any) => {
- const src = 'https://primefaces.org/cdn/primereact/images/avatar/' + suggestion.representative.image;
-
- return (
-
-
-
- {suggestion.name}
- @{suggestion.nickname}
-
-
- );
- }
-
- return (
-
- ) => setValue(e.target.value)}
- suggestions={suggestions}
- onSearch={onSearch}
- field="nickname"
- placeholder="Enter @ to mention people"
- rows={5}
- cols={40}
- itemTemplate={itemTemplate}
- autoResize
- pt={{
- items: { className: 'bg-orange-400' },
- item: { className: 'font-bold' }
- }}
- />
-
- )
-}
- `,
- data: `
-/* CustomerService */
-{
- id: 1000,
- name: 'James Butt',
- country: {
- name: 'Algeria',
- code: 'dz'
- },
- company: 'Benton, John B Jr',
- date: '2015-09-13',
- status: 'unqualified',
- verified: true,
- activity: 17,
- representative: {
- name: 'Ioni Bowcher',
- image: 'ionibowcher.png'
- },
- balance: 70663
-},
-...
- `
- };
-
- return (
- <>
-
-
- setValue(e.target.value)}
- suggestions={suggestions}
- onSearch={onSearch}
- field="nickname"
- placeholder="Enter @ to mention people"
- rows={5}
- cols={40}
- itemTemplate={itemTemplate}
- autoResize
- pt={{
- items: { className: 'bg-orange-400' },
- item: { className: 'font-bold' }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/menu/pt/ptdoc.js b/components/doc/menu/pt/ptdoc.js
deleted file mode 100644
index 623828401a..0000000000
--- a/components/doc/menu/pt/ptdoc.js
+++ /dev/null
@@ -1,195 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Menu } from '@/components/lib/menu/Menu';
-import { Toast } from '@/components/lib/toast/Toast';
-import { useRouter } from 'next/router';
-import { useRef } from 'react';
-
-export function PTDoc(props) {
- const toast = useRef(null);
- const router = useRouter();
- const items = [
- {
- label: 'Options',
- items: [
- {
- label: 'Update',
- icon: 'pi pi-refresh',
- command: () => {
- toast.current.show({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
- }
- },
- {
- label: 'Delete',
- icon: 'pi pi-times',
- command: () => {
- toast.current.show({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
- }
- }
- ]
- },
- {
- label: 'Navigate',
- items: [
- {
- label: 'React Website',
- icon: 'pi pi-external-link',
- url: 'https://reactjs.org/'
- },
- {
- label: 'Router',
- icon: 'pi pi-upload',
- command: () => {
- router.push('/fileupload');
- }
- }
- ]
- }
- ];
-
- const code = {
- basic: `
-
-`,
- javascript: `
-import React, { useRef } from 'react';
-import { useRouter } from 'next/router';
-import { Menu } from 'primereact/menu';
-import { Toast } from 'primereact/toast';
-
-export default function PTDemo() {
- const items = [
- {
- label: 'Options',
- items: [
- {
- label: 'Update',
- icon: 'pi pi-refresh',
- command: () => {
- toast.current.show({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
- }
- },
- {
- label: 'Delete',
- icon: 'pi pi-times',
- command: () => {
- toast.current.show({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
- }
- }
- ]
- },
- {
- label: 'Navigate',
- items: [
- {
- label: 'React Website',
- icon: 'pi pi-external-link',
- url: 'https://reactjs.org/'
- },
- {
- label: 'Router',
- icon: 'pi pi-upload',
- command: () => {
- router.push('/fileupload');
- }
- }
- ]
- }
- ];
-
- return (
-
-
-
-
- )
-}
- `,
- typescript: `
-import React, { useRef } from 'react';
-import { useRouter } from 'next/router';
-import { Menu } from 'primereact/menu';
-import { MenuItem } from 'primereact/menuitem';
-import { Toast } from 'primereact/toast';
-
-export default function PTDemo() {
- const items: MenuItem[] = [
- {
- label: 'Options',
- items: [
- {
- label: 'Update',
- icon: 'pi pi-refresh',
- command: () => {
- toast.current.show({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
- }
- },
- {
- label: 'Delete',
- icon: 'pi pi-times',
- command: () => {
- toast.current.show({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
- }
- }
- ]
- },
- {
- label: 'Navigate',
- items: [
- {
- label: 'React Website',
- icon: 'pi pi-external-link',
- url: 'https://reactjs.org/'
- },
- {
- label: 'Router',
- icon: 'pi pi-upload',
- command: () => {
- router.push('/fileupload');
- }
- }
- ]
- }
- ];
-
- return (
-
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/menubar/pt/ptdoc.js b/components/doc/menubar/pt/ptdoc.js
deleted file mode 100644
index 1632dad44f..0000000000
--- a/components/doc/menubar/pt/ptdoc.js
+++ /dev/null
@@ -1,454 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Menubar } from '@/components/lib/menubar/Menubar';
-
-export function PTDoc(props) {
- const items = [
- {
- label: 'File',
- icon: 'pi pi-fw pi-file',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-plus',
- items: [
- {
- label: 'Bookmark',
- icon: 'pi pi-fw pi-bookmark'
- },
- {
- label: 'Video',
- icon: 'pi pi-fw pi-video'
- }
- ]
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-trash'
- },
- {
- separator: true
- },
- {
- label: 'Export',
- icon: 'pi pi-fw pi-external-link'
- }
- ]
- },
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Left',
- icon: 'pi pi-fw pi-align-left'
- },
- {
- label: 'Right',
- icon: 'pi pi-fw pi-align-right'
- },
- {
- label: 'Center',
- icon: 'pi pi-fw pi-align-center'
- },
- {
- label: 'Justify',
- icon: 'pi pi-fw pi-align-justify'
- }
- ]
- },
- {
- label: 'Users',
- icon: 'pi pi-fw pi-user',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-user-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-user-minus'
- },
- {
- label: 'Search',
- icon: 'pi pi-fw pi-users',
- items: [
- {
- label: 'Filter',
- icon: 'pi pi-fw pi-filter',
- items: [
- {
- label: 'Print',
- icon: 'pi pi-fw pi-print'
- }
- ]
- },
- {
- icon: 'pi pi-fw pi-bars',
- label: 'List'
- }
- ]
- }
- ]
- },
- {
- label: 'Events',
- icon: 'pi pi-fw pi-calendar',
- items: [
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Save',
- icon: 'pi pi-fw pi-calendar-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- },
- {
- label: 'Archive',
- icon: 'pi pi-fw pi-calendar-times',
- items: [
- {
- label: 'Remove',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- }
- ]
- },
- {
- label: 'Quit',
- icon: 'pi pi-fw pi-power-off'
- }
- ];
-
- const code = {
- basic: `
- ({
- className: context.active ? 'bg-primary-200 border-round-sm' : undefined
- })
- }}
-/>
-`,
- javascript: `
-import React from 'react';
-import { Menubar } from 'primereact/menubar';
-
-export default function PTDemo() {
- const items = [
- {
- label: 'File',
- icon: 'pi pi-fw pi-file',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-plus',
- items: [
- {
- label: 'Bookmark',
- icon: 'pi pi-fw pi-bookmark'
- },
- {
- label: 'Video',
- icon: 'pi pi-fw pi-video'
- },
-
- ]
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-trash'
- },
- {
- separator: true
- },
- {
- label: 'Export',
- icon: 'pi pi-fw pi-external-link'
- }
- ]
- },
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Left',
- icon: 'pi pi-fw pi-align-left'
- },
- {
- label: 'Right',
- icon: 'pi pi-fw pi-align-right'
- },
- {
- label: 'Center',
- icon: 'pi pi-fw pi-align-center'
- },
- {
- label: 'Justify',
- icon: 'pi pi-fw pi-align-justify'
- },
-
- ]
- },
- {
- label: 'Users',
- icon: 'pi pi-fw pi-user',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-user-plus',
-
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-user-minus',
-
- },
- {
- label: 'Search',
- icon: 'pi pi-fw pi-users',
- items: [
- {
- label: 'Filter',
- icon: 'pi pi-fw pi-filter',
- items: [
- {
- label: 'Print',
- icon: 'pi pi-fw pi-print'
- }
- ]
- },
- {
- icon: 'pi pi-fw pi-bars',
- label: 'List'
- }
- ]
- }
- ]
- },
- {
- label: 'Events',
- icon: 'pi pi-fw pi-calendar',
- items: [
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Save',
- icon: 'pi pi-fw pi-calendar-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- },
- {
- label: 'Archive',
- icon: 'pi pi-fw pi-calendar-times',
- items: [
- {
- label: 'Remove',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- }
- ]
- },
- {
- label: 'Quit',
- icon: 'pi pi-fw pi-power-off'
- }
- ];
-
- return (
-
- ({
- className: context.active ? 'bg-primary-200 border-round-sm' : undefined
- })
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Menubar } from 'primereact/menubar';
-import { MenuItem } from 'primereact/menuitem';
-
-export default function PTDemo() {
- const items: MenuItem[] = [
- {
- label: 'File',
- icon: 'pi pi-fw pi-file',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-plus',
- items: [
- {
- label: 'Bookmark',
- icon: 'pi pi-fw pi-bookmark'
- },
- {
- label: 'Video',
- icon: 'pi pi-fw pi-video'
- },
-
- ]
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-trash'
- },
- {
- separator: true
- },
- {
- label: 'Export',
- icon: 'pi pi-fw pi-external-link'
- }
- ]
- },
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Left',
- icon: 'pi pi-fw pi-align-left'
- },
- {
- label: 'Right',
- icon: 'pi pi-fw pi-align-right'
- },
- {
- label: 'Center',
- icon: 'pi pi-fw pi-align-center'
- },
- {
- label: 'Justify',
- icon: 'pi pi-fw pi-align-justify'
- },
-
- ]
- },
- {
- label: 'Users',
- icon: 'pi pi-fw pi-user',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-user-plus',
-
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-user-minus',
-
- },
- {
- label: 'Search',
- icon: 'pi pi-fw pi-users',
- items: [
- {
- label: 'Filter',
- icon: 'pi pi-fw pi-filter',
- items: [
- {
- label: 'Print',
- icon: 'pi pi-fw pi-print'
- }
- ]
- },
- {
- icon: 'pi pi-fw pi-bars',
- label: 'List'
- }
- ]
- }
- ]
- },
- {
- label: 'Events',
- icon: 'pi pi-fw pi-calendar',
- items: [
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Save',
- icon: 'pi pi-fw pi-calendar-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- },
- {
- label: 'Archive',
- icon: 'pi pi-fw pi-calendar-times',
- items: [
- {
- label: 'Remove',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- }
- ]
- },
- {
- label: 'Quit',
- icon: 'pi pi-fw pi-power-off'
- }
- ];
-
- return (
-
- ({
- className: context.active ? 'bg-primary-200 border-round-sm' : undefined
- })
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- ({
- className: context.active ? 'bg-primary-200 border-round-sm' : undefined
- })
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/message/pt/ptdoc.js b/components/doc/message/pt/ptdoc.js
deleted file mode 100644
index 9797959510..0000000000
--- a/components/doc/message/pt/ptdoc.js
+++ /dev/null
@@ -1,69 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Message } from '@/components/lib/message/Message';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
- `,
- javascript: `
-import React from 'react';
-import { Message } from 'primereact/message';
-
-export default function PTDemo() {
- return (
-
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Message } from 'primereact/message';
-
-export default function PTDemo() {
- return (
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/messages/pt/ptdoc.js b/components/doc/messages/pt/ptdoc.js
deleted file mode 100644
index 6c3bc12177..0000000000
--- a/components/doc/messages/pt/ptdoc.js
+++ /dev/null
@@ -1,91 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { useMountEffect } from '@/components/lib/hooks/Hooks';
-import { Messages } from '@/components/lib/messages/Messages';
-import { useRef } from 'react';
-
-export function PTDoc(props) {
- const msgs = useRef(null);
-
- useMountEffect(() => {
- msgs.current && msgs.current.show([{ sticky: true, severity: 'info', summary: 'Info', detail: 'Message Content', closable: false }]);
- });
-
- const code = {
- basic: `
-
- `,
- javascript: `
-import React, { useEffect, useRef } from 'react';
-import { useMountEffect } from 'primereact/hooks';
-import { Messages } from 'primereact/messages';
-
-export default function PTDemo() {
- const msgs = useRef(null);
-
- useMountEffect(() => {
- msgs.current && msgs.current.show([
- { sticky: true, severity: 'info', summary: 'Info', detail: 'Message Content', closable: false }
- ]);
- });
-
- return (
-
-
-
- )
-}
- `,
- typescript: `
-import React, { useEffect, useRef } from 'react';
-import { useMountEffect } from 'primereact/hooks';
-import { Messages } from 'primereact/messages';
-
-export default function PTDemo() {
- const msgs = useRef(null);
-
- useMountEffect(() => {
- msgs.current && msgs.current.show([
- { sticky: true, severity: 'info', summary: 'Info', detail: 'Message Content', closable: false }
- ]);
- });
-
- return (
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/metergroup/pt/ptdoc.js b/components/doc/metergroup/pt/ptdoc.js
deleted file mode 100644
index 1632dad44f..0000000000
--- a/components/doc/metergroup/pt/ptdoc.js
+++ /dev/null
@@ -1,454 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Menubar } from '@/components/lib/menubar/Menubar';
-
-export function PTDoc(props) {
- const items = [
- {
- label: 'File',
- icon: 'pi pi-fw pi-file',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-plus',
- items: [
- {
- label: 'Bookmark',
- icon: 'pi pi-fw pi-bookmark'
- },
- {
- label: 'Video',
- icon: 'pi pi-fw pi-video'
- }
- ]
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-trash'
- },
- {
- separator: true
- },
- {
- label: 'Export',
- icon: 'pi pi-fw pi-external-link'
- }
- ]
- },
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Left',
- icon: 'pi pi-fw pi-align-left'
- },
- {
- label: 'Right',
- icon: 'pi pi-fw pi-align-right'
- },
- {
- label: 'Center',
- icon: 'pi pi-fw pi-align-center'
- },
- {
- label: 'Justify',
- icon: 'pi pi-fw pi-align-justify'
- }
- ]
- },
- {
- label: 'Users',
- icon: 'pi pi-fw pi-user',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-user-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-user-minus'
- },
- {
- label: 'Search',
- icon: 'pi pi-fw pi-users',
- items: [
- {
- label: 'Filter',
- icon: 'pi pi-fw pi-filter',
- items: [
- {
- label: 'Print',
- icon: 'pi pi-fw pi-print'
- }
- ]
- },
- {
- icon: 'pi pi-fw pi-bars',
- label: 'List'
- }
- ]
- }
- ]
- },
- {
- label: 'Events',
- icon: 'pi pi-fw pi-calendar',
- items: [
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Save',
- icon: 'pi pi-fw pi-calendar-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- },
- {
- label: 'Archive',
- icon: 'pi pi-fw pi-calendar-times',
- items: [
- {
- label: 'Remove',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- }
- ]
- },
- {
- label: 'Quit',
- icon: 'pi pi-fw pi-power-off'
- }
- ];
-
- const code = {
- basic: `
- ({
- className: context.active ? 'bg-primary-200 border-round-sm' : undefined
- })
- }}
-/>
-`,
- javascript: `
-import React from 'react';
-import { Menubar } from 'primereact/menubar';
-
-export default function PTDemo() {
- const items = [
- {
- label: 'File',
- icon: 'pi pi-fw pi-file',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-plus',
- items: [
- {
- label: 'Bookmark',
- icon: 'pi pi-fw pi-bookmark'
- },
- {
- label: 'Video',
- icon: 'pi pi-fw pi-video'
- },
-
- ]
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-trash'
- },
- {
- separator: true
- },
- {
- label: 'Export',
- icon: 'pi pi-fw pi-external-link'
- }
- ]
- },
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Left',
- icon: 'pi pi-fw pi-align-left'
- },
- {
- label: 'Right',
- icon: 'pi pi-fw pi-align-right'
- },
- {
- label: 'Center',
- icon: 'pi pi-fw pi-align-center'
- },
- {
- label: 'Justify',
- icon: 'pi pi-fw pi-align-justify'
- },
-
- ]
- },
- {
- label: 'Users',
- icon: 'pi pi-fw pi-user',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-user-plus',
-
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-user-minus',
-
- },
- {
- label: 'Search',
- icon: 'pi pi-fw pi-users',
- items: [
- {
- label: 'Filter',
- icon: 'pi pi-fw pi-filter',
- items: [
- {
- label: 'Print',
- icon: 'pi pi-fw pi-print'
- }
- ]
- },
- {
- icon: 'pi pi-fw pi-bars',
- label: 'List'
- }
- ]
- }
- ]
- },
- {
- label: 'Events',
- icon: 'pi pi-fw pi-calendar',
- items: [
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Save',
- icon: 'pi pi-fw pi-calendar-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- },
- {
- label: 'Archive',
- icon: 'pi pi-fw pi-calendar-times',
- items: [
- {
- label: 'Remove',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- }
- ]
- },
- {
- label: 'Quit',
- icon: 'pi pi-fw pi-power-off'
- }
- ];
-
- return (
-
- ({
- className: context.active ? 'bg-primary-200 border-round-sm' : undefined
- })
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Menubar } from 'primereact/menubar';
-import { MenuItem } from 'primereact/menuitem';
-
-export default function PTDemo() {
- const items: MenuItem[] = [
- {
- label: 'File',
- icon: 'pi pi-fw pi-file',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-plus',
- items: [
- {
- label: 'Bookmark',
- icon: 'pi pi-fw pi-bookmark'
- },
- {
- label: 'Video',
- icon: 'pi pi-fw pi-video'
- },
-
- ]
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-trash'
- },
- {
- separator: true
- },
- {
- label: 'Export',
- icon: 'pi pi-fw pi-external-link'
- }
- ]
- },
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Left',
- icon: 'pi pi-fw pi-align-left'
- },
- {
- label: 'Right',
- icon: 'pi pi-fw pi-align-right'
- },
- {
- label: 'Center',
- icon: 'pi pi-fw pi-align-center'
- },
- {
- label: 'Justify',
- icon: 'pi pi-fw pi-align-justify'
- },
-
- ]
- },
- {
- label: 'Users',
- icon: 'pi pi-fw pi-user',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-user-plus',
-
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-user-minus',
-
- },
- {
- label: 'Search',
- icon: 'pi pi-fw pi-users',
- items: [
- {
- label: 'Filter',
- icon: 'pi pi-fw pi-filter',
- items: [
- {
- label: 'Print',
- icon: 'pi pi-fw pi-print'
- }
- ]
- },
- {
- icon: 'pi pi-fw pi-bars',
- label: 'List'
- }
- ]
- }
- ]
- },
- {
- label: 'Events',
- icon: 'pi pi-fw pi-calendar',
- items: [
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Save',
- icon: 'pi pi-fw pi-calendar-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- },
- {
- label: 'Archive',
- icon: 'pi pi-fw pi-calendar-times',
- items: [
- {
- label: 'Remove',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- }
- ]
- },
- {
- label: 'Quit',
- icon: 'pi pi-fw pi-power-off'
- }
- ];
-
- return (
-
- ({
- className: context.active ? 'bg-primary-200 border-round-sm' : undefined
- })
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- ({
- className: context.active ? 'bg-primary-200 border-round-sm' : undefined
- })
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/multiselect/pt/ptdoc.js b/components/doc/multiselect/pt/ptdoc.js
deleted file mode 100644
index 465d6ba9fe..0000000000
--- a/components/doc/multiselect/pt/ptdoc.js
+++ /dev/null
@@ -1,171 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { MultiSelect } from '@/components/lib/multiselect/MultiSelect';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [selectedCities, setSelectedCities] = useState(null);
- const cities = [
- { name: 'New York', code: 'NY' },
- { name: 'Rome', code: 'RM' },
- { name: 'London', code: 'LDN' },
- { name: 'Istanbul', code: 'IST' },
- { name: 'Paris', code: 'PRS' }
- ];
-
- const code = {
- basic: `
- setSelectedCities(e.value)}
- showClear={true}
- options={cities}
- display="chip"
- optionLabel="name"
- placeholder="Select Cities"
- maxSelectedLabels={3}
- inputId="multiselect"
- pt={{
- root: { className: 'w-full md:w-20rem' },
- item: ({ context }) => ({ className: context.selected ? 'bg-blue-100' : undefined }),
- token: ({ context }) => {
- switch (context.value.code) {
- case 'NY':
- return 'bg-red-300';
- case 'RM':
- return 'bg-green-300';
- }
- return 'bg-gray-100';
- }
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { MultiSelect } from 'primereact/multiselect';
-
-export default function PTDemo() {
- const [selectedCities, setSelectedCities] = useState(null);
- const cities = [
- { name: 'New York', code: 'NY' },
- { name: 'Rome', code: 'RM' },
- { name: 'London', code: 'LDN' },
- { name: 'Istanbul', code: 'IST' },
- { name: 'Paris', code: 'PRS' }
- ];
-
- return (
-
- setSelectedCities(e.value)}
- showClear={true}
- options={cities}
- display="chip"
- optionLabel="name"
- placeholder="Select Cities"
- maxSelectedLabels={3}
- inputId="multiselect"
- pt={{
- root: { className: 'w-full md:w-20rem' },
- item: ({ context }) => ({ className: context.selected ? 'bg-blue-100' : undefined }),
- token: ({ context }) => {
- switch (context.value.code) {
- case 'NY':
- return 'bg-red-300';
- case 'RM':
- return 'bg-green-300';
- }
- return 'bg-gray-100';
- }
- }}
- />
-
- );
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { MultiSelect, MultiSelectChangeEvent } from 'primereact/multiselect';
-
-interface City {
- name: string;
- code: string;
-}
-
-export default function PTDemo() {
- const [selectedCities, setSelectedCities] = useState(null);
- const cities: City[] = [
- { name: 'New York', code: 'NY' },
- { name: 'Rome', code: 'RM' },
- { name: 'London', code: 'LDN' },
- { name: 'Istanbul', code: 'IST' },
- { name: 'Paris', code: 'PRS' }
- ];
-
- return (
-
- setSelectedCities(e.value)}
- showClear={true}
- options={cities}
- display="chip"
- optionLabel="name"
- placeholder="Select Cities"
- maxSelectedLabels={3}
- inputId="multiselect"
- pt={{
- root: { className: 'w-full md:w-20rem' },
- item: ({ context }) => ({ className: context.selected ? 'bg-blue-100' : undefined }),
- token: ({ context }) => {
- switch (context.value.code) {
- case 'NY':
- return 'bg-red-300';
- case 'RM':
- return 'bg-green-300';
- }
- return 'bg-gray-100';
- }
- }}
- />
-
- );
-}
- `
- };
-
- return (
- <>
-
-
- setSelectedCities(e.value)}
- showClear={true}
- options={cities}
- display="chip"
- optionLabel="name"
- placeholder="Select Cities"
- maxSelectedLabels={3}
- inputId="multiselect"
- pt={{
- root: { className: 'w-full md:w-20rem' },
- item: ({ context }) => ({ className: context.selected ? 'bg-blue-100' : undefined }),
- token: ({ context }) => {
- switch (context.value.code) {
- case 'NY':
- return 'bg-red-300';
- case 'RM':
- return 'bg-green-300';
- }
-
- return 'bg-gray-100';
- }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/multistatecheckbox/pt/ptdoc.js b/components/doc/multistatecheckbox/pt/ptdoc.js
deleted file mode 100644
index b025875313..0000000000
--- a/components/doc/multistatecheckbox/pt/ptdoc.js
+++ /dev/null
@@ -1,115 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { MultiStateCheckbox } from '@/components/lib/multistatecheckbox/MultiStateCheckbox';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [value, setValue] = useState('public');
- const options = [
- { value: 'public', icon: 'pi pi-globe' },
- { value: 'protected', icon: 'pi pi-lock-open' },
- { value: 'private', icon: 'pi pi-lock' }
- ];
-
- const code = {
- basic: `
- setValue(e.value)}
- options={options}
- optionValue="value"
- pt={{
- checkbox: {
- className: value ? 'bg-orange-400 border-orange-400' : undefined
- }
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { MultiStateCheckbox } from 'primereact/multistatecheckbox';
-
-export default function PTDemo() {
- const [value, setValue] = useState('public');
- const options = [
- { value: 'public', icon: 'pi pi-globe' },
- { value: 'protected', icon: 'pi pi-lock-open' },
- { value: 'private', icon: 'pi pi-lock' }
- ];
-
- return (
-
- setValue(e.value)}
- options={options}
- optionValue="value"
- pt={{
- checkbox: {
- className: value ? 'bg-orange-400 border-orange-400' : undefined
- }
- }}
- />
- {value || 'no value'}
-
- );
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { MultiStateCheckbox, MultiStateCheckboxChangeEvent } from 'primereact/multistatecheckbox';
-
-interface Item {
- value: string;
- icon: string;
-}
-
-export default function PTDemo() {
- const [value, setValue] = useState('public');
- const options: Item[] = [
- { value: 'public', icon: 'pi pi-globe' },
- { value: 'protected', icon: 'pi pi-lock-open' },
- { value: 'private', icon: 'pi pi-lock' }
- ];
-
- return (
-
- setValue(e.value)}
- options={options}
- optionValue="value"
- pt={{
- checkbox: {
- className: value ? 'bg-orange-400 border-orange-400' : undefined
- }
- }}
- />
- {value || 'no value'}
-
- );
-}
- `
- };
-
- return (
- <>
-
-
- setValue(e.value)}
- options={options}
- optionValue="value"
- pt={{
- checkbox: {
- className: value ? 'bg-orange-400 border-orange-400' : undefined
- }
- }}
- />
- {value || 'no value'}
-
-
- >
- );
-}
diff --git a/components/doc/orderlist/pt/ptdoc.js b/components/doc/orderlist/pt/ptdoc.js
deleted file mode 100644
index 1dd8ae5ea7..0000000000
--- a/components/doc/orderlist/pt/ptdoc.js
+++ /dev/null
@@ -1,196 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { OrderList } from '@/components/lib/orderlist/OrderList';
-import { useEffect, useState } from 'react';
-import { ProductService } from '../../../../service/ProductService';
-
-export function PTDoc(props) {
- const [products, setProducts] = useState([]);
-
- useEffect(() => {
- ProductService.getProductsSmall().then((data) => setProducts(data));
- }, []); // eslint-disable-line react-hooks/exhaustive-deps
-
- const itemTemplate = (item) => {
- return (
-
-
-
-
{item.name}
-
-
- {item.category}
-
-
-
${item.price}
-
- );
- };
-
- const code = {
- basic: `
- setProducts(e.value)}
- itemTemplate={itemTemplate}
- header="Products"
- pt={{
- list: { style: { height: 'auto' } },
- moveUpButton: {
- root: { className: 'bg-teal-400 border-teal-400' }
- },
- item: ({ context }) => ({ className: context.selected ? 'bg-blue-100' : undefined })
- }}
->
- `,
- javascript: `
-import React, { useState, useEffect } from 'react';
-import { OrderList } from 'primereact/orderlist';
-import { ProductService } from './service/ProductService';
-
-export default function PTDemo() {
- const [products, setProducts] = useState([]);
-
- useEffect(() => {
- ProductService.getProductsSmall().then((data) => setProducts(data));
- }, []);
-
- const itemTemplate = (item) => {
- return (
-
-
-
-
{item.name}
-
-
- {item.category}
-
-
-
\${item.price}
-
- );
- };
-
- return (
-
- setProducts(e.value)}
- itemTemplate={itemTemplate}
- header="Products"
- pt={{
- list: { style: { height: 'auto' } },
- moveUpButton: {
- root: { className: 'bg-teal-400 border-teal-400' }
- },
- item: ({ context }) => ({ className: context.selected ? 'bg-blue-100' : undefined })
- }}
- >
-
- )
-}
- `,
- typescript: `
-import React, { useState, useEffect } from 'react';
-import { OrderList } from 'primereact/orderlist';
-import { ProductService } from './service/ProductService';
-
-interface Product {
- id: string;
- code: string;
- name: string;
- description: string;
- image: string;
- price: number;
- category: string;
- quantity: number;
- inventoryStatus: 'string',
- rating: number;
-}
-
-export default function PTDemo() {
- const [products, setProducts] = useState([]);
-
- useEffect(() => {
- ProductService.getProductsSmall().then((data) => setProducts(data));
- }, []);
-
- const itemTemplate = (item: Product) => {
- return (
-
-
-
-
{item.name}
-
-
- {item.category}
-
-
-
\${item.price}
-
- );
- };
-
- return (
-
- setProducts(e.value)}
- itemTemplate={itemTemplate}
- header="Products"
- pt={{
- list: { style: { height: 'auto' } },
- moveUpButton: {
- root: { className: 'bg-teal-400 border-teal-400' }
- },
- item: ({ context }) => ({ className: context.selected ? 'bg-blue-100' : undefined })
- }}
- >
-
- )
-}
- `,
- data: `
-/* ProductService */
-{
- id: '1000',
- code: 'f230fh0g3',
- name: 'Bamboo Watch',
- description: 'Product Description',
- image: 'bamboo-watch.jpg',
- price: 65,
- category: 'Accessories',
- quantity: 24,
- inventoryStatus: 'INSTOCK',
- rating: 5
-},
-...
- `
- };
-
- return (
- <>
-
-
- setProducts(e.value)}
- itemTemplate={itemTemplate}
- header="Products"
- pt={{
- list: { style: { height: 'auto' } },
- moveUpButton: {
- root: { className: 'bg-teal-400 border-teal-400' }
- },
- item: ({ context }) => ({ className: context.selected ? 'bg-blue-100' : undefined })
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/organizationchart/pt/ptdoc.js b/components/doc/organizationchart/pt/ptdoc.js
deleted file mode 100644
index f93fd6b9a6..0000000000
--- a/components/doc/organizationchart/pt/ptdoc.js
+++ /dev/null
@@ -1,189 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { OrganizationChart } from '@/components/lib/organizationchart/OrganizationChart';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [selection, setSelection] = useState([]);
- const [data] = useState([
- {
- label: 'Argentina',
- expanded: true,
- children: [
- {
- label: 'Argentina',
- expanded: true,
- children: [
- {
- label: 'Argentina'
- },
- {
- label: 'Croatia'
- }
- ]
- },
- {
- label: 'France',
- expanded: true,
- children: [
- {
- label: 'France'
- },
- {
- label: 'Morocco'
- }
- ]
- }
- ]
- }
- ]);
-
- const code = {
- basic: `
- setSelection(e.data)}
- pt={{
- node: ({ context }) => ({
- className: context.selected ? 'border-orange-400 border-round-sm' : 'border-primary-400 border-round-sm'
- })
- }}
-/>
- `,
- javascript: `
-import React, { useState } from 'react';
-import { OrganizationChart } from 'primereact/organizationchart';
-
-export default function PTDemo() {
- const [selection, setSelection] = useState([]);
- const [data] = useState([
- {
- label: 'Argentina',
- expanded: true,
- children: [
- {
- label: 'Argentina',
- expanded: true,
- children: [
- {
- label: 'Argentina'
- },
- {
- label: 'Croatia'
- }
- ]
- },
- {
- label: 'France',
- expanded: true,
- children: [
- {
- label: 'France'
- },
- {
- label: 'Morocco'
- }
- ]
- }
- ]
- }
- ]);
-
- return (
-
- setSelection(e.data)}
- pt={{
- node: ({ context }) => ({
- className: context.selected ? 'border-orange-400 border-round-sm' : 'border-primary-400 border-round-sm'
- })
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React, { useState } from 'react';
-import { OrganizationChart } from 'primereact/organizationchart';
-import { TreeNode } from 'primereact/treenode';
-
-export default function PTDemo() {
- const [selection, setSelection] = useState([]);
- const [data] = useState([
- {
- label: 'Argentina',
- expanded: true,
- children: [
- {
- label: 'Argentina',
- expanded: true,
- children: [
- {
- label: 'Argentina'
- },
- {
- label: 'Croatia'
- }
- ]
- },
- {
- label: 'France',
- expanded: true,
- children: [
- {
- label: 'France'
- },
- {
- label: 'Morocco'
- }
- ]
- }
- ]
- }
- ]);
-
- return (
-
- setSelection(e.data)}
- pt={{
- node: ({ context }) => ({
- className: context.selected ? 'border-orange-400 border-round-sm' : 'border-primary-400 border-round-sm'
- })
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- setSelection(e.data)}
- pt={{
- node: ({ context }) => ({
- className: context.selected ? 'border-orange-400 border-round-sm' : 'border-primary-400 border-round-sm'
- })
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/overlaypanel/pt/ptdoc.js b/components/doc/overlaypanel/pt/ptdoc.js
deleted file mode 100644
index cf8e10bbf7..0000000000
--- a/components/doc/overlaypanel/pt/ptdoc.js
+++ /dev/null
@@ -1,86 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Button } from '@/components/lib/button/Button';
-import { OverlayPanel } from '@/components/lib/overlaypanel/OverlayPanel';
-import { useRef } from 'react';
-
-export function PTDoc(props) {
- const op = useRef(null);
-
- const code = {
- basic: `
-
-
-
- `,
- javascript: `
-import React, { useRef } from 'react';
-import { OverlayPanel } from 'primereact/overlaypanel';
-import { Button } from 'primereact/button';
-
-export default function PTDemo() {
- const op = useRef(null);
-
- return (
-
-
op.current.toggle(e)} />
-
-
-
-
-
- );
-}
- `,
- typescript: `
-import React, { useRef } from 'react';
-import { OverlayPanel } from 'primereact/overlaypanel';
-import { Button } from 'primereact/button';
-
-export default function PTDemo() {
- const op = useRef(null);
-
- return (
-
-
op.current.toggle(e)} />
-
-
-
-
-
- );
-}
- `
- };
-
- return (
- <>
-
-
-
op.current.toggle(e)} />
-
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/paginator/pt/ptdoc.js b/components/doc/paginator/pt/ptdoc.js
deleted file mode 100644
index 9ec891171d..0000000000
--- a/components/doc/paginator/pt/ptdoc.js
+++ /dev/null
@@ -1,114 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Paginator } from '@/components/lib/paginator/Paginator';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [first, setFirst] = useState(0);
- const [rows, setRows] = useState(10);
-
- const onPageChange = (event) => {
- setFirst(event.first);
- setRows(event.rows);
- };
-
- const code = {
- basic: `
- ({
- className: context.active ? 'bg-primary' : undefined
- })
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { Paginator } from 'primereact/paginator';
-
-export default function PTDemo() {
- const [first, setFirst] = useState(0);
- const [rows, setRows] = useState(10);
-
- const onPageChange = (event) => {
- setFirst(event.first);
- setRows(event.rows);
- };
-
- return (
-
-
({
- className: context.active ? 'bg-primary' : undefined
- })
- }}
- />
-
- );
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { Paginator, PaginatorPageChangeEvent } from 'primereact/paginator';
-
-export default function PTDemo() {
- const [first, setFirst] = useState(0);
- const [rows, setRows] = useState(10);
-
- const onPageChange = (event: PaginatorPageChangeEvent) => {
- setFirst(event.first);
- setRows(event.rows);
- };
-
- return (
-
-
({
- className: context.active ? 'bg-primary' : undefined
- })
- }}
- />
-
- );
-}
- `
- };
-
- return (
- <>
-
-
-
({
- className: context.active ? 'bg-primary' : undefined
- })
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/panel/pt/ptdoc.js b/components/doc/panel/pt/ptdoc.js
deleted file mode 100644
index 18ae0d2aee..0000000000
--- a/components/doc/panel/pt/ptdoc.js
+++ /dev/null
@@ -1,94 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Panel } from '@/components/lib/panel/Panel';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
- `,
- javascript: `
-import React from 'react';
-import { Panel } from 'primereact/panel';
-
-export default function PTDemo() {
- return (
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Panel } from 'primereact/panel';
-
-export default function PTDemo() {
- return (
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
-
-
- >
- );
-}
diff --git a/components/doc/panelmenu/pt/ptdoc.js b/components/doc/panelmenu/pt/ptdoc.js
deleted file mode 100644
index 888aa68939..0000000000
--- a/components/doc/panelmenu/pt/ptdoc.js
+++ /dev/null
@@ -1,423 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { PanelMenu } from '@/components/lib/panelmenu/PanelMenu';
-
-export function PTDoc(props) {
- const items = [
- {
- label: 'File',
- icon: 'pi pi-fw pi-file',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-plus',
- items: [
- {
- label: 'Bookmark',
- icon: 'pi pi-fw pi-bookmark'
- },
- {
- label: 'Video',
- icon: 'pi pi-fw pi-video'
- }
- ]
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-trash'
- },
- {
- label: 'Export',
- icon: 'pi pi-fw pi-external-link'
- }
- ]
- },
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Left',
- icon: 'pi pi-fw pi-align-left'
- },
- {
- label: 'Right',
- icon: 'pi pi-fw pi-align-right'
- },
- {
- label: 'Center',
- icon: 'pi pi-fw pi-align-center'
- },
- {
- label: 'Justify',
- icon: 'pi pi-fw pi-align-justify'
- }
- ]
- },
- {
- label: 'Users',
- icon: 'pi pi-fw pi-user',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-user-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-user-minus'
- },
- {
- label: 'Search',
- icon: 'pi pi-fw pi-users',
- items: [
- {
- label: 'Filter',
- icon: 'pi pi-fw pi-filter',
- items: [
- {
- label: 'Print',
- icon: 'pi pi-fw pi-print'
- }
- ]
- },
- {
- icon: 'pi pi-fw pi-bars',
- label: 'List'
- }
- ]
- }
- ]
- },
- {
- label: 'Events',
- icon: 'pi pi-fw pi-calendar',
- items: [
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Save',
- icon: 'pi pi-fw pi-calendar-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- },
- {
- label: 'Archive',
- icon: 'pi pi-fw pi-calendar-times',
- items: [
- {
- label: 'Remove',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- }
- ]
- }
- ];
- const code = {
- basic: `
- ({ className: context.active ? 'bg-primary-200' : undefined }),
- action: ({ context }) => ({ className: context.active ? 'bg-primary-100' : undefined })
- }}
-/>
-`,
- javascript: `
-import React from 'react';
-import { PanelMenu } from 'primereact/panelmenu';
-
-export default function PTDemo() {
- const items = [
- {
- label:'File',
- icon:'pi pi-fw pi-file',
- items:[
- {
- label:'New',
- icon:'pi pi-fw pi-plus',
- items:[
- {
- label:'Bookmark',
- icon:'pi pi-fw pi-bookmark'
- },
- {
- label:'Video',
- icon:'pi pi-fw pi-video'
- }
- ]
- },
- {
- label:'Delete',
- icon:'pi pi-fw pi-trash'
- },
- {
- label:'Export',
- icon:'pi pi-fw pi-external-link'
- }
- ]
- },
- {
- label:'Edit',
- icon:'pi pi-fw pi-pencil',
- items:[
- {
- label:'Left',
- icon:'pi pi-fw pi-align-left'
- },
- {
- label:'Right',
- icon:'pi pi-fw pi-align-right'
- },
- {
- label:'Center',
- icon:'pi pi-fw pi-align-center'
- },
- {
- label:'Justify',
- icon:'pi pi-fw pi-align-justify'
- }
- ]
- },
- {
- label:'Users',
- icon:'pi pi-fw pi-user',
- items:[
- {
- label:'New',
- icon:'pi pi-fw pi-user-plus'
- },
- {
- label:'Delete',
- icon:'pi pi-fw pi-user-minus'
- },
- {
- label:'Search',
- icon:'pi pi-fw pi-users',
- items:[
- {
- label:'Filter',
- icon:'pi pi-fw pi-filter',
- items:[
- {
- label:'Print',
- icon:'pi pi-fw pi-print'
- }
- ]
- },
- {
- icon:'pi pi-fw pi-bars',
- label:'List'
- }
- ]
- }
- ]
- },
- {
- label:'Events',
- icon:'pi pi-fw pi-calendar',
- items:[
- {
- label:'Edit',
- icon:'pi pi-fw pi-pencil',
- items:[
- {
- label:'Save',
- icon:'pi pi-fw pi-calendar-plus'
- },
- {
- label:'Delete',
- icon:'pi pi-fw pi-calendar-minus'
- }
- ]
- },
- {
- label:'Archive',
- icon:'pi pi-fw pi-calendar-times',
- items:[
- {
- label:'Remove',
- icon:'pi pi-fw pi-calendar-minus'
- }
- ]
- }
- ]
- }
- ];
-
- return (
-
-
({ className: context.active ? 'bg-primary-200' : undefined }),
- action: ({ context }) => ({ className: context.active ? 'bg-primary-100' : undefined })
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { PanelMenu } from 'primereact/panelmenu';
-import { MenuItem } from 'primereact/menuitem';
-
-export default function PTDemo() {
- const items: MenuItem[] = [
- {
- label:'File',
- icon:'pi pi-fw pi-file',
- items:[
- {
- label:'New',
- icon:'pi pi-fw pi-plus',
- items:[
- {
- label:'Bookmark',
- icon:'pi pi-fw pi-bookmark'
- },
- {
- label:'Video',
- icon:'pi pi-fw pi-video'
- }
- ]
- },
- {
- label:'Delete',
- icon:'pi pi-fw pi-trash'
- },
- {
- label:'Export',
- icon:'pi pi-fw pi-external-link'
- }
- ]
- },
- {
- label:'Edit',
- icon:'pi pi-fw pi-pencil',
- items:[
- {
- label:'Left',
- icon:'pi pi-fw pi-align-left'
- },
- {
- label:'Right',
- icon:'pi pi-fw pi-align-right'
- },
- {
- label:'Center',
- icon:'pi pi-fw pi-align-center'
- },
- {
- label:'Justify',
- icon:'pi pi-fw pi-align-justify'
- }
- ]
- },
- {
- label:'Users',
- icon:'pi pi-fw pi-user',
- items:[
- {
- label:'New',
- icon:'pi pi-fw pi-user-plus'
- },
- {
- label:'Delete',
- icon:'pi pi-fw pi-user-minus'
- },
- {
- label:'Search',
- icon:'pi pi-fw pi-users',
- items:[
- {
- label:'Filter',
- icon:'pi pi-fw pi-filter',
- items:[
- {
- label:'Print',
- icon:'pi pi-fw pi-print'
- }
- ]
- },
- {
- icon:'pi pi-fw pi-bars',
- label:'List'
- }
- ]
- }
- ]
- },
- {
- label:'Events',
- icon:'pi pi-fw pi-calendar',
- items:[
- {
- label:'Edit',
- icon:'pi pi-fw pi-pencil',
- items:[
- {
- label:'Save',
- icon:'pi pi-fw pi-calendar-plus'
- },
- {
- label:'Delete',
- icon:'pi pi-fw pi-calendar-minus'
- }
- ]
- },
- {
- label:'Archive',
- icon:'pi pi-fw pi-calendar-times',
- items:[
- {
- label:'Remove',
- icon:'pi pi-fw pi-calendar-minus'
- }
- ]
- }
- ]
- }
- ];
- return (
-
-
({ className: context.active ? 'bg-primary-200' : undefined }),
- action: ({ context }) => ({ className: context.active ? 'bg-primary-100' : undefined })
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
({ className: context.active ? 'bg-primary-200' : undefined }),
- action: ({ context }) => ({ className: context.active ? 'bg-primary-100' : undefined })
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/password/pt/ptdoc.js b/components/doc/password/pt/ptdoc.js
deleted file mode 100644
index b9c44faed8..0000000000
--- a/components/doc/password/pt/ptdoc.js
+++ /dev/null
@@ -1,76 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Password } from '@/components/lib/password/Password';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [value, setValue] = useState('');
-
- const code = {
- basic: `
- setValue(e.target.value)}
- pt={{
- info: { className: 'font-bold' }
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { Password } from 'primereact/password';
-
-export default function PTDemo() {
- const [value, setValue] = useState('');
-
- return (
-
-
setValue(e.target.value)}
- pt={{
- info: { className: 'font-bold' }
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { Password } from 'primereact/password';
-
-export default function PTDemo() {
- const [value, setValue] = useState('');
-
- return (
-
-
) => setValue(e.target.value)}
- pt={{
- info: { className: 'font-bold' }
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
setValue(e.target.value)}
- pt={{
- info: { className: 'font-bold' }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/picklist/pt/ptdoc.js b/components/doc/picklist/pt/ptdoc.js
deleted file mode 100644
index 54ff0572cc..0000000000
--- a/components/doc/picklist/pt/ptdoc.js
+++ /dev/null
@@ -1,246 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { PickList } from '@/components/lib/picklist/PickList';
-import { useEffect, useState } from 'react';
-import { ProductService } from '../../../../service/ProductService';
-
-export function PTDoc(props) {
- const [source, setSource] = useState([]);
- const [target, setTarget] = useState([]);
-
- useEffect(() => {
- ProductService.getProductsSmall().then((data) => setSource(data));
- }, []); // eslint-disable-line react-hooks/exhaustive-deps
-
- const onChange = (event) => {
- setSource(event.source);
- setTarget(event.target);
- };
-
- const itemTemplate = (item) => {
- return (
-
-
-
-
{item.name}
-
-
- {item.category}
-
-
-
${item.price}
-
- );
- };
-
- const code = {
- basic: `
- ({ className: context.selected ? 'bg-blue-100' : undefined })
- }}
-/>
- `,
- javascript: `
-import React, { useState, useEffect } from 'react';
-import { PickList } from 'primereact/picklist';
-import { ProductService } from './service/ProductService';
-
-export default function PTDemo() {
- const [source, setSource] = useState([]);
- const [target, setTarget] = useState([]);
-
- useEffect(() => {
- ProductService.getProductsSmall().then((data) => setSource(data));
- }, []);
-
- const onChange = (event) => {
- setSource(event.source);
- setTarget(event.target);
- };
-
- const itemTemplate = (item) => {
- return (
-
-
-
-
{item.name}
-
-
- {item.category}
-
-
-
\${item.price}
-
- );
- };
-
- return (
-
-
({ className: context.selected ? 'bg-blue-100' : undefined })
- }}
- />
-
- );
-}
- `,
- typescript: `
-import React, { useState, useEffect } from 'react';
-import { PickList } from 'primereact/picklist';
-import { ProductService } from './service/ProductService';
-
-interface Product {
- id: string;
- code: string;
- name: string;
- description: string;
- image: string;
- price: number;
- category: string;
- quantity: number;
- inventoryStatus: 'string',
- rating: number;
-}
-
-export default function PTDemo() {
- const [source, setSource] = useState([]);
- const [target, setTarget] = useState([]);
-
- useEffect(() => {
- ProductService.getProductsSmall().then((data) => setSource(data));
- }, []);
-
- const onChange = (event) => {
- setSource(event.source);
- setTarget(event.target);
- };
-
- const itemTemplate = (item: Product) => {
- return (
-
-
-
-
{item.name}
-
-
- {item.category}
-
-
-
\${item.price}
-
- );
- };
-
- return (
-
-
({ className: context.selected ? 'bg-blue-100' : undefined })
- }}
- />
-
- );
-}
- `,
- data: `
-/* ProductService */
-{
- id: '1000',
- code: 'f230fh0g3',
- name: 'Bamboo Watch',
- description: 'Product Description',
- image: '/bamboo-watch.jpg',
- price: 65,
- category: 'Accessories',
- quantity: 24,
- inventoryStatus: 'INSTOCK',
- rating: 5
-},
-...
- `
- };
-
- return (
- <>
-
-
-
({ className: context.selected ? 'bg-blue-100' : undefined })
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/progressbar/pt/ptdoc.js b/components/doc/progressbar/pt/ptdoc.js
deleted file mode 100644
index cdf47c9ca2..0000000000
--- a/components/doc/progressbar/pt/ptdoc.js
+++ /dev/null
@@ -1,65 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { ProgressBar } from '@/components/lib/progressbar/ProgressBar';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
- `,
- javascript: `
-import React from 'react';
-import { ProgressBar } from 'primereact/progressbar';
-
-export default function PTDemo() {
- return (
-
- );
-}
- `,
- typescript: `
-import React from 'react';
-import { ProgressBar } from 'primereact/progressbar';
-
-export default function PTDemo() {
- return (
-
- );
-}
- `
- };
-
- return (
- <>
-
-
-
- >
- );
-}
diff --git a/components/doc/progressspinner/pt/ptdoc.js b/components/doc/progressspinner/pt/ptdoc.js
deleted file mode 100644
index 4b1a93a44e..0000000000
--- a/components/doc/progressspinner/pt/ptdoc.js
+++ /dev/null
@@ -1,65 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { ProgressSpinner } from '@/components/lib/progressspinner/ProgressSpinner';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
- `,
- javascript: `
-import React from 'react';
-import { ProgressSpinner } from 'primereact/progressspinner';
-
-export default function PTDemo() {
- return (
-
- );
-}
- `,
- typescript: `
-import React from 'react';
-import { ProgressSpinner } from 'primereact/progressspinner';
-
-export default function PTDemo() {
- return (
-
- );
-}
- `
- };
-
- return (
- <>
-
-
-
- >
- );
-}
diff --git a/components/doc/radiobutton/pt/ptdoc.js b/components/doc/radiobutton/pt/ptdoc.js
deleted file mode 100644
index 899a0b08f5..0000000000
--- a/components/doc/radiobutton/pt/ptdoc.js
+++ /dev/null
@@ -1,155 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { RadioButton } from '@/components/lib/radiobutton/RadioButton';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const categories = [
- { name: 'Accounting', key: 'A' },
- { name: 'Marketing', key: 'M' },
- { name: 'Production', key: 'P' },
- { name: 'Research', key: 'R' }
- ];
- const [selectedCategory, setSelectedCategory] = useState(categories[1]);
-
- const code = {
- basic: `
- setSelectedCategory(e.value)}
- checked={selectedCategory.key === category.key}
- pt={{
- input: {
- className: selectedCategory.key === category.key ? 'bg-orange-500 border-orange-500' : undefined
- }
- }}
-/>
- `,
- javascript: `
-import React from 'react';
-import { RadioButton } from "primereact/radiobutton";
-
-export default function PTDemo() {
- const categories = [
- { name: 'Accounting', key: 'A' },
- { name: 'Marketing', key: 'M' },
- { name: 'Production', key: 'P' },
- { name: 'Research', key: 'R' }
- ];
- const [selectedCategory, setSelectedCategory] = useState(categories[1]);
-
-
- return (
-
-
- {categories.map((category) => {
- return (
-
- setSelectedCategory(e.value)}
- checked={selectedCategory.key === category.key}
- pt={{
- input: {
- className: selectedCategory.key === category.key ? 'bg-orange-500 border-orange-500' : undefined
- }
- }}
- />
-
- {category.name}
-
-
- );
- })}
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { RadioButton } from "primereact/radiobutton";
-import { RadioButton, RadioButtonChangeEvent } from "primereact/radiobutton";
-
-interface Category {
- name: string;
- key: string;
-}
-
-export default function PTDemo() {
- const categories = [
- { name: 'Accounting', key: 'A' },
- { name: 'Marketing', key: 'M' },
- { name: 'Production', key: 'P' },
- { name: 'Research', key: 'R' }
- ];
- const [selectedCategory, setSelectedCategory] = useState(categories[1]);
-
-
- return (
-
-
- {categories.map((category) => {
- return (
-
- setSelectedCategory(e.value)}
- checked={selectedCategory.key === category.key}
- pt={{
- input: {
- className: selectedCategory.key === category.key ? 'bg-orange-500 border-orange-500' : undefined
- }
- }}
- />
-
- {category.name}
-
-
- );
- })}
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
- {categories.map((category) => {
- return (
-
- setSelectedCategory(e.value)}
- checked={selectedCategory.key === category.key}
- pt={{
- input: {
- className: selectedCategory.key === category.key ? 'bg-orange-500 border-orange-500' : undefined
- }
- }}
- />
-
- {category.name}
-
-
- );
- })}
-
-
-
- >
- );
-}
diff --git a/components/doc/rating/pt/ptdoc.js b/components/doc/rating/pt/ptdoc.js
deleted file mode 100644
index 469453e0b4..0000000000
--- a/components/doc/rating/pt/ptdoc.js
+++ /dev/null
@@ -1,76 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Rating } from '@/components/lib/rating/Rating';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [value, setValue] = useState(null);
-
- const code = {
- basic: `
- setValue(e.value)}
- pt={{
- onIcon: { className: 'text-orange-400' }
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { Rating } from "primereact/rating";
-
-export default function PTDemo() {
- const [value, setValue] = useState(null);
-
- return (
-
- setValue(e.value)}
- pt={{
- onIcon: { className: 'text-orange-400' }
- }}
- />
-
- );
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { Rating, RatingChangeEvent } from "primereact/rating";
-
-export default function PTDemo() {
- const [value, setValue] = useState(null);
-
- return (
-
- setValue(e.value)}
- pt={{
- onIcon: { className: 'text-orange-400' }
- }}
- />
-
- );
-}
- `
- };
-
- return (
- <>
-
-
- setValue(e.value)}
- pt={{
- onIcon: { className: 'text-orange-400' }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/scrollpanel/pt/ptdoc.js b/components/doc/scrollpanel/pt/ptdoc.js
deleted file mode 100644
index b352fa9268..0000000000
--- a/components/doc/scrollpanel/pt/ptdoc.js
+++ /dev/null
@@ -1,118 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { ScrollPanel } from '@/components/lib/scrollpanel/ScrollPanel';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
- Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim
- ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.
-
-
- At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa
- qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus.
-
-
- `,
- javascript: `
-import React from 'react';
-import { ScrollPanel } from 'primereact/scrollpanel';
-
-export default function PTDemo() {
- return (
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
- Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim
- ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.
-
-
- At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa
- qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus.
-
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { ScrollPanel } from 'primereact/scrollpanel';
-
-export default function PTDemo() {
- return (
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
- Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim
- ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.
-
-
- At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa
- qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus.
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
- Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim
- ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.
-
-
- At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa
- qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus.
-
-
-
-
- >
- );
-}
diff --git a/components/doc/scrolltop/pt/ptdoc.js b/components/doc/scrolltop/pt/ptdoc.js
deleted file mode 100644
index 921483e84d..0000000000
--- a/components/doc/scrolltop/pt/ptdoc.js
+++ /dev/null
@@ -1,98 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { ScrollTop } from '@/components/lib/scrolltop/ScrollTop';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
- `,
- javascript: `
-import React from 'react';
-import { ScrollTop } from 'primereact/scrolltop';
-
-export default function PTDemo() {
- return (
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae et leo duis ut diam. Ultricies mi quis hendrerit dolor magna eget est lorem. Amet consectetur
- adipiscing elit ut. Nam libero justo laoreet sit amet. Pharetra massa massa ultricies mi quis hendrerit dolor magna. Est ultricies integer quis auctor elit sed vulputate. Consequat ac felis donec et. Tellus orci ac auctor
- augue mauris. Semper feugiat nibh sed pulvinar proin gravida hendrerit lectus a. Tincidunt arcu non sodales neque sodales. Metus aliquam eleifend mi in nulla posuere sollicitudin aliquam ultrices. Sodales ut etiam sit amet
- nisl purus. Cursus sit amet dictum sit amet. Tristique senectus et netus et malesuada fames ac turpis egestas. Et tortor consequat id porta nibh venenatis cras sed. Diam maecenas ultricies mi eget mauris. Eget egestas purus
- viverra accumsan in nisl nisi. Suscipit adipiscing bibendum est ultricies integer. Mattis aliquam faucibus purus in massa tempor nec.
-
-
-
-
- );
-}
- `,
- typescript: `
-import React from 'react';
-import { ScrollTop } from 'primereact/scrolltop';
-
-export default function PTDemo() {
- return (
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae et leo duis ut diam. Ultricies mi quis hendrerit dolor magna eget est lorem. Amet consectetur
- adipiscing elit ut. Nam libero justo laoreet sit amet. Pharetra massa massa ultricies mi quis hendrerit dolor magna. Est ultricies integer quis auctor elit sed vulputate. Consequat ac felis donec et. Tellus orci ac auctor
- augue mauris. Semper feugiat nibh sed pulvinar proin gravida hendrerit lectus a. Tincidunt arcu non sodales neque sodales. Metus aliquam eleifend mi in nulla posuere sollicitudin aliquam ultrices. Sodales ut etiam sit amet
- nisl purus. Cursus sit amet dictum sit amet. Tristique senectus et netus et malesuada fames ac turpis egestas. Et tortor consequat id porta nibh venenatis cras sed. Diam maecenas ultricies mi eget mauris. Eget egestas purus
- viverra accumsan in nisl nisi. Suscipit adipiscing bibendum est ultricies integer. Mattis aliquam faucibus purus in massa tempor nec.
-
-
-
-
- );
-}
- `
- };
-
- return (
- <>
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae et leo duis ut diam. Ultricies mi quis hendrerit dolor magna eget est lorem. Amet consectetur
- adipiscing elit ut. Nam libero justo laoreet sit amet. Pharetra massa massa ultricies mi quis hendrerit dolor magna. Est ultricies integer quis auctor elit sed vulputate. Consequat ac felis donec et. Tellus orci ac auctor
- augue mauris. Semper feugiat nibh sed pulvinar proin gravida hendrerit lectus a. Tincidunt arcu non sodales neque sodales. Metus aliquam eleifend mi in nulla posuere sollicitudin aliquam ultrices. Sodales ut etiam sit amet
- nisl purus. Cursus sit amet dictum sit amet. Tristique senectus et netus et malesuada fames ac turpis egestas. Et tortor consequat id porta nibh venenatis cras sed. Diam maecenas ultricies mi eget mauris. Eget egestas purus
- viverra accumsan in nisl nisi. Suscipit adipiscing bibendum est ultricies integer. Mattis aliquam faucibus purus in massa tempor nec.
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/selectbutton/pt/ptdoc.js b/components/doc/selectbutton/pt/ptdoc.js
deleted file mode 100644
index 454b1a8930..0000000000
--- a/components/doc/selectbutton/pt/ptdoc.js
+++ /dev/null
@@ -1,83 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { SelectButton } from '@/components/lib/selectbutton/SelectButton';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const options = ['Off', 'On'];
- const [value, setValue] = useState(options[0]);
-
- const code = {
- basic: `
- setValue(e.value)}
- options={options}
- pt={{
- button: ({ context }) => ({ className: context.selected ? 'bg-cyan-400 border-cyan-400' : undefined })
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { SelectButton } from 'primereact/selectbutton';
-
-export default function PTDemo() {
- const options = ['Off', 'On'];
- const [value, setValue] = useState(options[0]);
-
- return (
-
- setValue(e.value)}
- options={options}
- pt={{
- button: ({ context }) => ({ className: context.selected ? 'bg-cyan-400 border-cyan-400' : undefined })
- }}
- />
-
- );
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { SelectButton, SelectButtonChangeEvent } from 'primereact/selectbutton';
-
-export default function PTDemo() {
- const options: string[] = ['Off', 'On'];
- const [value, setValue] = useState(options[0]);
-
- return (
-
- setValue(e.value)}
- options={options}
- pt={{
- button: ({ context }) => ({ className: context.selected ? 'bg-cyan-400 border-cyan-400' : undefined })
- }}
- />
-
- );
-}
- `
- };
-
- return (
- <>
-
-
- setValue(e.value)}
- options={options}
- pt={{
- button: ({ context }) => ({ className: context.selected ? 'bg-cyan-400 border-cyan-400' : undefined })
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/sidebar/pt/ptdoc.js b/components/doc/sidebar/pt/ptdoc.js
deleted file mode 100644
index f9655970f3..0000000000
--- a/components/doc/sidebar/pt/ptdoc.js
+++ /dev/null
@@ -1,105 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Button } from '@/components/lib/button/Button';
-import { Sidebar } from '@/components/lib/sidebar/Sidebar';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [visible, setVisible] = useState(false);
- const code = {
- basic: `
- setVisible(false)}
->
- Sidebar
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat.
-
-
- `,
- javascript: `
-import React, { useState } from 'react';
-import { Sidebar } from 'primereact/sidebar';
-import { Button } from 'primereact/button';
-
-export default function PTDemo() {
- const [visible, setVisible] = useState(false);
-
- return (
-
-
setVisible(false)}
- >
- Sidebar
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat.
-
-
-
setVisible(true)} />
-
- );
-}
- `,
- typescript: `
-import React, { useState } from 'react';
-import { Sidebar } from 'primereact/sidebar';
-import { Button } from 'primereact/button';
-
-export default function PTDemo() {
- const [visible, setVisible] = useState(false);
-
- return (
-
-
setVisible(false)}
- >
- Sidebar
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat.
-
-
-
setVisible(true)} />
-
- );
-}
- `
- };
-
- return (
- <>
-
-
-
setVisible(false)}
- >
- Sidebar
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat.
-
-
-
setVisible(true)} />
-
-
- >
- );
-}
diff --git a/components/doc/skeleton/pt/ptdoc.js b/components/doc/skeleton/pt/ptdoc.js
deleted file mode 100644
index 82328a9e97..0000000000
--- a/components/doc/skeleton/pt/ptdoc.js
+++ /dev/null
@@ -1,61 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Skeleton } from '@/components/lib/skeleton/Skeleton';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
- `,
- javascript: `
-import React from 'react';
-import { Skeleton } from 'primereact/skeleton';
-
-export default function PTDemo() {
- return (
-
-
-
- );
-}
- `,
- typescript: `
-import React from 'react';
-import { Skeleton } from 'primereact/skeleton';
-
-export default function PTDemo() {
- return (
-
-
-
- );
-}
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/slider/pt/ptdoc.js b/components/doc/slider/pt/ptdoc.js
deleted file mode 100644
index 2dcdd49498..0000000000
--- a/components/doc/slider/pt/ptdoc.js
+++ /dev/null
@@ -1,84 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Slider } from '@/components/lib/slider/Slider';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [value, setValue] = useState(null);
-
- const code = {
- basic: `
- setValue(e.value)}
- pt={{
- root: { className: 'w-14rem' },
- handle: { className: 'bg-orange-400 border-900' },
- range: { className: 'bg-orange-400' }
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { Slider } from "primereact/slider";
-
-export default function PTDemo() {
- const [value, setValue] = useState(null);
-
- return (
-
- setValue(e.value)}
- pt={{
- root: { className: 'w-14rem' },
- handle: { className: 'bg-orange-400 border-900' },
- range: { className: 'bg-orange-400' }
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { Slider, SliderChangeEvent } from "primereact/slider";
-
-export default function PTDemo() {
- const [value, setValue] = useState(null);
-
- return (
-
- setValue(e.value)}
- pt={{
- root: { className: 'w-14rem' },
- handle: { className: 'bg-orange-400 border-900' },
- range: { className: 'bg-orange-400' }
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- setValue(e.value)}
- pt={{
- root: { className: 'w-14rem' },
- handle: { className: 'bg-orange-400 border-900' },
- range: { className: 'bg-orange-400' }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/speeddial/pt/ptdoc.js b/components/doc/speeddial/pt/ptdoc.js
deleted file mode 100644
index 480a9203f9..0000000000
--- a/components/doc/speeddial/pt/ptdoc.js
+++ /dev/null
@@ -1,148 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { SpeedDial } from '@/components/lib/speeddial/SpeedDial';
-import { classNames } from '@/components/lib/utils/Utils';
-
-export function PTDoc(props) {
- const items = [
- {
- label: 'Add',
- icon: 'pi pi-pencil'
- },
- {
- label: 'Update',
- icon: 'pi pi-refresh'
- },
- {
- label: 'Delete',
- icon: 'pi pi-trash'
- },
- {
- label: 'React Website',
- icon: 'pi pi-external-link'
- }
- ];
-
- const code = {
- basic: `
- ({
- className: classNames("mt-2", { "border-1 border-primary surface-border border-round surface-ground": state.visible })
- })
- }}
- model={items}
- radius={80}
- direction='down'
-/>
- `,
- javascript: `
-import React, { useRef } from 'react';
-import { SpeedDial } from 'primereact/speeddial';
-
-export default function PTDemo() {
- const items = [
- {
- label: 'Add',
- icon: 'pi pi-pencil'
- },
- {
- label: 'Update',
- icon: 'pi pi-refresh'
- },
- {
- label: 'Delete',
- icon: 'pi pi-trash'
- },
- {
- label: 'React Website',
- icon: 'pi pi-external-link'
- }
- ];
-
- return (
-
-
- ({
- className: classNames("mt-2", { "border-1 border-primary surface-border border-round surface-ground": state.visible })
- })
- }}
- model={items}
- radius={80}
- direction='down'
-
- />
-
-
- )
-}
- `,
- typescript: `
-import React, { useRef } from 'react';
-import { SpeedDial } from 'primereact/speeddial';
-import { MenuItem } from 'primereact/menuitem';
-
-export default function PTDemo() {
- const items: MenuItem[] = [
- {
- label: 'Add',
- icon: 'pi pi-pencil'
- },
- {
- label: 'Update',
- icon: 'pi pi-refresh'
- },
- {
- label: 'Delete',
- icon: 'pi pi-trash'
- },
- {
- label: 'React Website',
- icon: 'pi pi-external-link'
- }
- ];
-
- return (
-
-
- ({
- className: classNames("mt-2", { "border-1 border-primary surface-border border-round surface-ground": state.visible })
- })
- }}
- model={items}
- radius={80}
- direction='down'
-
- />
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
- ({
- className: classNames('mt-2', { 'border-1 border-primary surface-border border-round surface-ground': state.visible })
- })
- }}
- model={items}
- radius={80}
- direction="down"
- />
-
-
-
- >
- );
-}
diff --git a/components/doc/splitbutton/pt/ptdoc.js b/components/doc/splitbutton/pt/ptdoc.js
deleted file mode 100644
index c087f0486c..0000000000
--- a/components/doc/splitbutton/pt/ptdoc.js
+++ /dev/null
@@ -1,139 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { SplitButton } from '@/components/lib/splitbutton/SplitButton';
-
-export function PTDoc(props) {
- const items = [
- {
- label: 'Update',
- icon: 'pi pi-refresh'
- },
- {
- label: 'Delete',
- icon: 'pi pi-times'
- },
- {
- label: 'React Website',
- icon: 'pi pi-external-link'
- },
- {
- label: 'Upload',
- icon: 'pi pi-upload'
- }
- ];
-
- const code = {
- basic: `
-
- `,
- javascript: `
-import React from 'react';
-import { SplitButton } from 'primereact/splitbutton';
-
-export default function PTDemo() {
- const items = [
- {
- label: 'Update',
- icon: 'pi pi-refresh'
- },
- {
- label: 'Delete',
- icon: 'pi pi-times'
- },
- {
- label: 'React Website',
- icon: 'pi pi-external-link'
- },
- {
- label: 'Upload',
- icon: 'pi pi-upload'
- }
- ];
-
- return (
-
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { SplitButton } from 'primereact/splitbutton';
-import { MenuItem } from 'primereact/menuitem';
-
-export default function PTDemo() {
- const items: MenuItem[] = [
- {
- label: 'Update',
- icon: 'pi pi-refresh'
- },
- {
- label: 'Delete',
- icon: 'pi pi-times'
- },
- {
- label: 'React Website',
- icon: 'pi pi-external-link'
- },
- {
- label: 'Upload',
- icon: 'pi pi-upload'
- }
- ];
-
- return (
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/splitter/pt/ptdoc.js b/components/doc/splitter/pt/ptdoc.js
deleted file mode 100644
index 412b5c9f1d..0000000000
--- a/components/doc/splitter/pt/ptdoc.js
+++ /dev/null
@@ -1,59 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Splitter, SplitterPanel } from '@/components/lib/splitter/Splitter';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
- Panel 1
- Panel 2
-
- `,
- javascript: `
-import React from 'react';
-import { Splitter, SplitterPanel } from 'primereact/tabview';
-
-export default function PTDemo() {
-
- return (
-
-
- Panel 1
- Panel 2
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Splitter, SplitterPanel } from 'primereact/tabview';
-
-export default function PTDemo() {
-
- return (
-
-
- Panel 1
- Panel 2
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
- Panel 1
- Panel 2
-
-
-
- >
- );
-}
diff --git a/components/doc/steps/pt/ptdoc.js b/components/doc/steps/pt/ptdoc.js
deleted file mode 100644
index 542ed5ea1c..0000000000
--- a/components/doc/steps/pt/ptdoc.js
+++ /dev/null
@@ -1,111 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Steps } from '@/components/lib/steps/Steps';
-
-export function PTDoc(props) {
- const items = [
- {
- label: 'Personal'
- },
- {
- label: 'Seat'
- },
- {
- label: 'Payment'
- },
- {
- label: 'Confirmation'
- }
- ];
-
- const code = {
- basic: `
-
- `,
- javascript: `
-import React from 'react';
-import { Steps } from 'primereact/steps';
-
-export default function PTDemo() {
- const items = [
- {
- label: 'Personal'
- },
- {
- label: 'Seat'
- },
- {
- label: 'Payment'
- },
- {
- label: 'Confirmation'
- }
- ];
-
- return (
-
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Steps } from 'primereact/steps';
-import { MenuItem } from 'primereact/menuitem';
-
-export default function PTDemo() {
- const items: MenuItem[] = [
- {
- label: 'Personal'
- },
- {
- label: 'Seat'
- },
- {
- label: 'Payment'
- },
- {
- label: 'Confirmation'
- }
- ];
-
- return (
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/tabmenu/pt/ptdoc.js b/components/doc/tabmenu/pt/ptdoc.js
deleted file mode 100644
index ba71017513..0000000000
--- a/components/doc/tabmenu/pt/ptdoc.js
+++ /dev/null
@@ -1,112 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { TabMenu } from '@/components/lib/tabmenu/TabMenu';
-
-export function PTDoc(props) {
- const items = [
- { label: 'Home', icon: 'pi pi-fw pi-home' },
- { label: 'Calendar', icon: 'pi pi-fw pi-calendar' },
- { label: 'Edit', icon: 'pi pi-fw pi-pencil' },
- { label: 'Documentation', icon: 'pi pi-fw pi-file' },
- { label: 'Settings', icon: 'pi pi-fw pi-cog' }
- ];
-
- const code = {
- basic: `
-
- `,
- javascript: `
-import React from 'react';
-import { TabMenu } from 'primereact/tabmenu';
-
-export default function PTDemo() {
- const items = [
- {
- label: 'Personal'
- },
- {
- label: 'Seat'
- },
- {
- label: 'Payment'
- },
- {
- label: 'Confirmation'
- }
- ];
-
- return (
-
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { TabMenu } from 'primereact/tabmenu';
-import { MenuItem } from 'primereact/menuitem';
-
-export default function PTDemo() {
- const items: MenuItem[] = [
- {
- label: 'Personal'
- },
- {
- label: 'Seat'
- },
- {
- label: 'Payment'
- },
- {
- label: 'Confirmation'
- }
- ];
-
- return (
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/tabview/pt/ptdoc.js b/components/doc/tabview/pt/ptdoc.js
deleted file mode 100644
index 6eb0887d50..0000000000
--- a/components/doc/tabview/pt/ptdoc.js
+++ /dev/null
@@ -1,137 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { TabPanel, TabView } from '@/components/lib/tabview/TabView';
-
-export function PTDoc(props) {
- const tabs = [
- { title: 'Header 1', content: 'Tab 1 Content' },
- { title: 'Header 2', content: 'Tab 2 Content' },
- { title: 'Header 3', content: 'Tab 3 Content' }
- ];
-
- const panelClassName = (parent, index) => {
- if (parent.state.activeIndex === index) {
- return 'bg-primary';
- }
- };
-
- const code = {
- basic: `
-
- {tabs.map((tab, i) => {
- return (
- ({
- className: panelClassName(parent, i)
- })
- }}
- key={i} header={tab.title}>
- {tab.content}
-
- )
- })}
-
- `,
- javascript: `
-import React from 'react';
-import { TabView, TabPanel } from 'primereact/tabview';
-
-export default function PTDemo() {
- const tabs = [
- { title: 'Header 1', content: 'Tab 1 Content' },
- { title: 'Header 2', content: 'Tab 2 Content' },
- { title: 'Header 3', content: 'Tab 3 Content' }
- ];
-
- const panelClassName = (parent, index) => {
- if (parent.state.activeIndex === index)
- return 'bg-primary'
- }
-
- return (
-
-
- {tabs.map((tab, i) => {
- return (
- ({
- className: panelClassName(parent, i)
- })
- }}
- key={i} header={tab.title}>
- {tab.content}
-
- )
- })}
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { TabView, TabPanel } from 'primereact/tabview';
-
-export default function PTDemo() {
- const tabs = [
- { title: 'Header 1', content: 'Tab 1 Content' },
- { title: 'Header 2', content: 'Tab 2 Content' },
- { title: 'Header 3', content: 'Tab 3 Content' }
- ];
-
- const panelClassName = (parent, index) => {
- if (parent.state.activeIndex === index)
- return 'bg-primary'
- }
-
- return (
-
-
- {tabs.map((tab, i) => {
- return (
- ({
- className: panelClassName(parent, i)
- })
- }}
- key={i} header={tab.title}>
- {tab.content}
-
- )
- })}
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
- {tabs.map((tab, i) => {
- return (
- ({
- className: panelClassName(parent, i)
- })
- }}
- key={i}
- header={tab.title}
- >
- {tab.content}
-
- );
- })}
-
-
-
- >
- );
-}
diff --git a/components/doc/tag/pt/ptdoc.js b/components/doc/tag/pt/ptdoc.js
deleted file mode 100644
index a9209a367c..0000000000
--- a/components/doc/tag/pt/ptdoc.js
+++ /dev/null
@@ -1,63 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Tag } from '@/components/lib/tag/Tag';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
- `,
- javascript: `
-import React from 'react';
-import { Tag } from 'primereact/tag';
-
-export default function PTDemo() {
- return (
-
-
-
- );
-}
- `,
- typescript: `
-import React from 'react';
-import { Tag } from 'primereact/tag';
-
-export default function PTDemo() {
- return (
-
-
-
- );
-}
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/terminal/pt/ptdoc.js b/components/doc/terminal/pt/ptdoc.js
deleted file mode 100644
index 0b9c1bfa7a..0000000000
--- a/components/doc/terminal/pt/ptdoc.js
+++ /dev/null
@@ -1,216 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Terminal } from '@/components/lib/terminal/Terminal';
-import { TerminalService } from '@/components/lib/terminalservice/TerminalService';
-import { useEffect } from 'react';
-
-export function PTDoc(props) {
- const commandHandler = (text) => {
- let response;
- let argsIndex = text.indexOf(' ');
- let command = argsIndex !== -1 ? text.substring(0, argsIndex) : text;
-
- switch (command) {
- case 'date':
- response = 'Today is ' + new Date().toDateString();
- break;
-
- case 'greet':
- response = 'Hola ' + text.substring(argsIndex + 1) + '!';
- break;
-
- case 'random':
- response = Math.floor(Math.random() * 100);
- break;
-
- case 'clear':
- response = null;
- break;
-
- default:
- response = 'Unknown command: ' + command;
- break;
- }
-
- if (response) {
- TerminalService.emit('response', response);
- } else {
- TerminalService.emit('clear');
- }
- };
-
- useEffect(() => {
- TerminalService.on('command', commandHandler);
-
- return () => {
- TerminalService.off('command', commandHandler);
- };
- }, []);
-
- const code = {
- basic: `
-
- `,
- javascript: `
-import React, { useEffect } from 'react';
-import { Terminal } from 'primereact/terminal';
-import { TerminalService } from 'primereact/terminalservice';
-
-export default function PTDemo() {
- const commandHandler = (text) => {
- let response;
- let argsIndex = text.indexOf(' ');
- let command = argsIndex !== -1 ? text.substring(0, argsIndex) : text;
-
- switch (command) {
- case 'date':
- response = 'Today is ' + new Date().toDateString();
- break;
-
- case 'greet':
- response = 'Hola ' + text.substring(argsIndex + 1) + '!';
- break;
-
- case 'random':
- response = Math.floor(Math.random() * 100);
- break;
-
- case 'clear':
- response = null;
- break;
-
- default:
- response = 'Unknown command: ' + command;
- break;
- }
-
- if (response)
- TerminalService.emit('response', response);
- else
- TerminalService.emit('clear');
- };
-
- useEffect(() => {
- TerminalService.on('command', commandHandler);
-
- return () => {
- TerminalService.off('command', commandHandler);
- };
- }, []);
-
- return (
-
-
- Enter "date " to display the current date, "greet {'{0}'} " for a message, "random " to get a random number and "clear " to clear all commands.
-
-
-
- );
-}
- `,
- typescript: `
-import React, { useEffect } from 'react';
-import { Terminal } from 'primereact/terminal';
-import { TerminalService } from 'primereact/terminalservice';
-
-export default function PTDemo() {
- const commandHandler = (text: string) => {
- let response: string;
- let argsIndex: number = text.indexOf(' ');
- let command: string = argsIndex !== -1 ? text.substring(0, argsIndex) : text;
-
- switch (command) {
- case 'date':
- response = 'Today is ' + new Date().toDateString();
- break;
-
- case 'greet':
- response = 'Hola ' + text.substring(argsIndex + 1) + '!';
- break;
-
- case 'random':
- response = Math.floor(Math.random() * 100);
- break;
-
- case 'clear':
- response = null;
- break;
-
- default:
- response = 'Unknown command: ' + command;
- break;
- }
-
- if (response)
- TerminalService.emit('response', response);
- else
- TerminalService.emit('clear');
- };
-
- useEffect(() => {
- TerminalService.on('command', commandHandler);
-
- return () => {
- TerminalService.off('command', commandHandler);
- };
- }, []);
-
- return (
-
-
- Enter "date " to display the current date, "greet {'{0}'} " for a message, "random " to get a random number and "clear " to clear all commands.
-
-
-
- );
-}
- `
- };
-
- return (
- <>
-
-
-
- Enter "date " to display the current date, "greet {'{0}'} " for a message, "random " to get a random number and "clear " to clear all commands.
-
-
-
-
- >
- );
-}
diff --git a/components/doc/tieredmenu/pt/ptdoc.js b/components/doc/tieredmenu/pt/ptdoc.js
deleted file mode 100644
index b5b7efadea..0000000000
--- a/components/doc/tieredmenu/pt/ptdoc.js
+++ /dev/null
@@ -1,451 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { TieredMenu } from '@/components/lib/tieredmenu/TieredMenu';
-
-export function PTDoc(props) {
- const items = [
- {
- label: 'File',
- icon: 'pi pi-fw pi-file',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-plus',
- items: [
- {
- label: 'Bookmark',
- icon: 'pi pi-fw pi-bookmark'
- },
- {
- label: 'Video',
- icon: 'pi pi-fw pi-video'
- }
- ]
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-trash'
- },
- {
- separator: true
- },
- {
- label: 'Export',
- icon: 'pi pi-fw pi-external-link'
- }
- ]
- },
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Left',
- icon: 'pi pi-fw pi-align-left'
- },
- {
- label: 'Right',
- icon: 'pi pi-fw pi-align-right'
- },
- {
- label: 'Center',
- icon: 'pi pi-fw pi-align-center'
- },
- {
- label: 'Justify',
- icon: 'pi pi-fw pi-align-justify'
- }
- ]
- },
- {
- label: 'Users',
- icon: 'pi pi-fw pi-user',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-user-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-user-minus'
- },
- {
- label: 'Search',
- icon: 'pi pi-fw pi-users',
- items: [
- {
- label: 'Filter',
- icon: 'pi pi-fw pi-filter',
- items: [
- {
- label: 'Print',
- icon: 'pi pi-fw pi-print'
- }
- ]
- },
- {
- icon: 'pi pi-fw pi-bars',
- label: 'List'
- }
- ]
- }
- ]
- },
- {
- label: 'Events',
- icon: 'pi pi-fw pi-calendar',
- items: [
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Save',
- icon: 'pi pi-fw pi-calendar-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- },
- {
- label: 'Archive',
- icon: 'pi pi-fw pi-calendar-times',
- items: [
- {
- label: 'Remove',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- }
- ]
- },
- {
- separator: true
- },
- {
- label: 'Quit',
- icon: 'pi pi-fw pi-power-off'
- }
- ];
-
- const code = {
- basic: `
- ({ className: context.active ? 'bg-primary-200' : undefined })
- }}
-/>
- `,
- javascript: `
-import React from 'react';
-import { TieredMenu } from 'primereact/tieredmenu';
-
-export default function PTDemo() {
- const items = [
- {
- label: 'File',
- icon: 'pi pi-fw pi-file',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-plus',
- items: [
- {
- label: 'Bookmark',
- icon: 'pi pi-fw pi-bookmark'
- },
- {
- label: 'Video',
- icon: 'pi pi-fw pi-video'
- }
- ]
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-trash'
- },
- {
- separator: true
- },
- {
- label: 'Export',
- icon: 'pi pi-fw pi-external-link'
- }
- ]
- },
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Left',
- icon: 'pi pi-fw pi-align-left'
- },
- {
- label: 'Right',
- icon: 'pi pi-fw pi-align-right'
- },
- {
- label: 'Center',
- icon: 'pi pi-fw pi-align-center'
- },
- {
- label: 'Justify',
- icon: 'pi pi-fw pi-align-justify'
- }
- ]
- },
- {
- label: 'Users',
- icon: 'pi pi-fw pi-user',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-user-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-user-minus'
- },
- {
- label: 'Search',
- icon: 'pi pi-fw pi-users',
- items: [
- {
- label: 'Filter',
- icon: 'pi pi-fw pi-filter',
- items: [
- {
- label: 'Print',
- icon: 'pi pi-fw pi-print'
- }
- ]
- },
- {
- icon: 'pi pi-fw pi-bars',
- label: 'List'
- }
- ]
- }
- ]
- },
- {
- label: 'Events',
- icon: 'pi pi-fw pi-calendar',
- items: [
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Save',
- icon: 'pi pi-fw pi-calendar-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- },
- {
- label: 'Archive',
- icon: 'pi pi-fw pi-calendar-times',
- items: [
- {
- label: 'Remove',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- }
- ]
- },
- {
- separator: true
- },
- {
- label: 'Quit',
- icon: 'pi pi-fw pi-power-off'
- }
- ];
-
- return (
-
- ({ className: context.active ? 'bg-primary-200' : undefined })
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { TieredMenu } from 'primereact/tieredmenu';
-import { MenuItem } from 'primereact/menuitem';
-
-export default function PTDemo() {
- const items: MenuItem[] = [
- {
- label: 'File',
- icon: 'pi pi-fw pi-file',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-plus',
- items: [
- {
- label: 'Bookmark',
- icon: 'pi pi-fw pi-bookmark'
- },
- {
- label: 'Video',
- icon: 'pi pi-fw pi-video'
- }
- ]
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-trash'
- },
- {
- separator: true
- },
- {
- label: 'Export',
- icon: 'pi pi-fw pi-external-link'
- }
- ]
- },
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Left',
- icon: 'pi pi-fw pi-align-left'
- },
- {
- label: 'Right',
- icon: 'pi pi-fw pi-align-right'
- },
- {
- label: 'Center',
- icon: 'pi pi-fw pi-align-center'
- },
- {
- label: 'Justify',
- icon: 'pi pi-fw pi-align-justify'
- }
- ]
- },
- {
- label: 'Users',
- icon: 'pi pi-fw pi-user',
- items: [
- {
- label: 'New',
- icon: 'pi pi-fw pi-user-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-user-minus'
- },
- {
- label: 'Search',
- icon: 'pi pi-fw pi-users',
- items: [
- {
- label: 'Filter',
- icon: 'pi pi-fw pi-filter',
- items: [
- {
- label: 'Print',
- icon: 'pi pi-fw pi-print'
- }
- ]
- },
- {
- icon: 'pi pi-fw pi-bars',
- label: 'List'
- }
- ]
- }
- ]
- },
- {
- label: 'Events',
- icon: 'pi pi-fw pi-calendar',
- items: [
- {
- label: 'Edit',
- icon: 'pi pi-fw pi-pencil',
- items: [
- {
- label: 'Save',
- icon: 'pi pi-fw pi-calendar-plus'
- },
- {
- label: 'Delete',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- },
- {
- label: 'Archive',
- icon: 'pi pi-fw pi-calendar-times',
- items: [
- {
- label: 'Remove',
- icon: 'pi pi-fw pi-calendar-minus'
- }
- ]
- }
- ]
- },
- {
- separator: true
- },
- {
- label: 'Quit',
- icon: 'pi pi-fw pi-power-off'
- }
- ];
-
- return (
-
- ({ className: context.active ? 'bg-primary-200' : undefined })
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- ({ className: context.active ? 'bg-primary-200' : undefined })
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/timeline/pt/ptdoc.js b/components/doc/timeline/pt/ptdoc.js
deleted file mode 100644
index 4e01f6042b..0000000000
--- a/components/doc/timeline/pt/ptdoc.js
+++ /dev/null
@@ -1,98 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Timeline } from '@/components/lib/timeline/Timeline';
-
-export function PTDoc(props) {
- const events = [
- { status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0', image: 'game-controller.jpg' },
- { status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },
- { status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' },
- { status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }
- ];
-
- const code = {
- basic: `
- item.status}
- pt={{
- marker: { className: 'border-orange-400' }
- }}
-/>
- `,
- javascript: `
-import React from 'react';
-import { Timeline } from 'primereact/timeline';
-
-export default function PTDemo() {
- const events = [
- { status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0', image: 'game-controller.jpg' },
- { status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },
- { status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' },
- { status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }
- ];
-
- return (
-
- item.status}
- pt={{
- marker: { className: 'border-orange-400' }
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Timeline } from 'primereact/timeline';
-
-interface TimelineEvent {
- status?: string;
- date?: string;
- icon?: string;
- color?: string;
- image?: string;
-}
-
-export default function PTDemo() {
- const events: TimelineEvent[] = [
- { status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0', image: 'game-controller.jpg' },
- { status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },
- { status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' },
- { status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }
- ];
-
- return (
-
- item.status}
- pt={{
- marker: { className: 'border-orange-400' }
- }}
- />
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- item.status}
- pt={{
- marker: { className: 'border-orange-400' }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/toast/pt/ptdoc.js b/components/doc/toast/pt/ptdoc.js
deleted file mode 100644
index e88cee172c..0000000000
--- a/components/doc/toast/pt/ptdoc.js
+++ /dev/null
@@ -1,98 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Button } from '@/components/lib/button/Button';
-import { Toast } from '@/components/lib/toast/Toast';
-import { useRef } from 'react';
-
-export function PTDoc(props) {
- const toast = useRef(null);
-
- const show = () => {
- toast.current.show({
- severity: 'info',
- summary: 'Info',
- detail: 'Message Content',
- pt: {
- root: ({ index }) => ({ className: `bg-yellow-${((index > 5 && 5) || index || 1) * 100}` })
- }
- });
- };
-
- const code = {
- basic: `
- ({ className: \`bg-yellow-\${((index > 5 && 5) || index || 1) * 100}\` })
- }}
- />
-
- `,
- javascript: `
-import React, { useRef } from 'react';
-import { Button } from 'primereact/button';
-import { Toast } from 'primereact/toast';
-
-export default function PTDemo() {
- const toast = useRef(null);
-
- const show = () => {
- toast.current.show({ severity: 'info', summary: 'Info', detail: 'Message Content' });
- };
-
- return (
-
- ({ className: \`bg-yellow-\${((index > 5 && 5) || index || 1) * 100}\` })
- }}
- />
-
-
- )
-}
- `,
- typescript: `
-import React, { useRef } from 'react';
-import { Button } from 'primereact/button';
-import { Toast } from 'primereact/toast';
-
-export default function PTDemo() {
- const toast = useRef(null);
-
- const show = () => {
- toast.current.show({ severity: 'info', summary: 'Info', detail: 'Message Content' });
- };
-
- return (
-
- ({ className: \`bg-yellow-\${((index > 5 && 5) || index || 1) * 100}\` })
- }}
- />
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
- ({ className: `bg-yellow-${((index > 5 && 5) || index || 1) * 100}` })
- }}
- />
-
-
-
- >
- );
-}
diff --git a/components/doc/togglebutton/pt/ptdoc.js b/components/doc/togglebutton/pt/ptdoc.js
deleted file mode 100644
index ba8b090691..0000000000
--- a/components/doc/togglebutton/pt/ptdoc.js
+++ /dev/null
@@ -1,84 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { ToggleButton } from '@/components/lib/togglebutton/ToggleButton';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [checked, setChecked] = useState(false);
-
- const code = {
- basic: `
- setChecked(e.value)}
- pt={{
- root: {
- className: \`w-8rem \${checked ? 'bg-teal-400 border-white' : ''}\`
- }
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { ToggleButton } from 'primereact/togglebutton';
-
-export default function PTDemo() {
- const [checked, setChecked] = useState(false);
-
- return (
-
- setChecked(e.value)}
- pt={{
- root: {
- className: \`w-8rem \${checked ? 'bg-teal-400 border-white' : ''}\`
- }
- }}
- />
-
- );
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { ToggleButton, ToggleButtonChangeEvent } from 'primereact/togglebutton';
-
-export default function PTDemo() {
- const [checked, setChecked] = useState(false);
-
- return (
-
- setChecked(e.value)}
- pt={{
- root: {
- className: \`w-8rem \${checked ? 'bg-teal-400 border-white' : ''}\`
- }
- }}
- />
-
- );
-}
- `
- };
-
- return (
- <>
-
-
- setChecked(e.value)}
- pt={{
- root: {
- className: `w-8rem ${checked ? 'bg-teal-400 border-white' : ''}`
- }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/toolbar/pt/ptdoc.js b/components/doc/toolbar/pt/ptdoc.js
deleted file mode 100644
index 3fe406dcdf..0000000000
--- a/components/doc/toolbar/pt/ptdoc.js
+++ /dev/null
@@ -1,112 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Button } from '@/components/lib/button/Button';
-import { Toolbar } from '@/components/lib/toolbar/Toolbar';
-import React from 'react';
-
-export function PTDoc(props) {
- const startContent = (
-
-
-
- );
-
- const endContent = (
-
-
-
-
- );
-
- const code = {
- basic: `
-
- `,
- javascript: `
-import React from 'react';
-import { Toolbar } from 'primereact/toolbar';
-import { Button } from 'primereact/button';
-
-export default function PTDemo() {
- const startContent = (
-
-
-
- );
-
- const endContent = (
-
-
-
-
- );
-
- return (
-
-
-
- )
-}
- `,
- typescript: `
-import React from 'react';
-import { Toolbar } from 'primereact/toolbar';
-import { Button } from 'primereact/button';
-
-export default function PTDemo() {
- const startContent = (
-
-
-
- );
-
- const endContent = (
-
-
-
-
- );
-
- return (
-
-
-
- )
-}
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/tooltip/pt/ptdoc.js b/components/doc/tooltip/pt/ptdoc.js
deleted file mode 100644
index d224fdf0f4..0000000000
--- a/components/doc/tooltip/pt/ptdoc.js
+++ /dev/null
@@ -1,87 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { InputText } from '@/components/lib/inputtext/InputText';
-
-export function PTDoc(props) {
- const code = {
- basic: `
-
- `,
- javascript: `
-import React from 'react';
-import { InputText } from 'primereact/inputtext';
-
-export default function PTDemo() {
-
- return (
-
-
-
- );
-}
- `,
- typescript: `
-import React from 'react';
-import { InputText } from 'primereact/inputtext';
-
-export default function PTDemo() {
-
- return (
-
-
-
- );
-}
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/tree/pt/ptdoc.js b/components/doc/tree/pt/ptdoc.js
deleted file mode 100644
index a6dfc11bb7..0000000000
--- a/components/doc/tree/pt/ptdoc.js
+++ /dev/null
@@ -1,128 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Tree } from '@/components/lib/tree/Tree';
-import { useEffect, useState } from 'react';
-import { NodeService } from '../../../../service/NodeService';
-
-export function PTDoc(props) {
- const [nodes, setNodes] = useState([]);
-
- useEffect(() => {
- NodeService.getTreeNodes().then((data) => setNodes(data));
- }, []); // eslint-disable-line react-hooks/exhaustive-deps
-
- const code = {
- basic: `
- ({
- className: context.expanded ? 'bg-blue-100' : 'undefined'
- })
- }}
-/>
- `,
- javascript: `
-import React, { useState, useEffect } from 'react';
-import { Tree } from 'primereact/tree';
-import { NodeService } from './service/NodeService';
-
-export default function PTDemo() {
- const [nodes, setNodes] = useState([]);
-
- useEffect(() => {
- NodeService.getTreeNodes().then((data) => setNodes(data));
- }, []);
-
- return (
-
- ({
- className: context.expanded ? 'bg-blue-100' : 'undefined'
- })
- }}
- />
-
- )
-}
- `,
- typescript: `
-import React, { useState, useEffect } from 'react';
-import { Tree } from 'primereact/tree';
-import { TreeNode } from 'primereact/treenode';
-import { NodeService } from './service/NodeService';
-
-export default function PTDemo() {
- const [nodes, setNodes] = useState([]);
-
- useEffect(() => {
- NodeService.getTreeNodes().then((data) => setNodes(data));
- }, []);
-
- return (
-
- ({
- className: context.expanded ? 'bg-blue-100' : 'undefined'
- })
- }}
- />
-
- )
-}
- `,
- data: `
-{
- key: '0',
- label: 'Documents',
- data: 'Documents Folder',
- icon: 'pi pi-fw pi-inbox',
- children: [
- {
- key: '0-0',
- label: 'Work',
- data: 'Work Folder',
- icon: 'pi pi-fw pi-cog',
- children: [
- { key: '0-0-0', label: 'Expenses.doc', icon: 'pi pi-fw pi-file', data: 'Expenses Document' },
- { key: '0-0-1', label: 'Resume.doc', icon: 'pi pi-fw pi-file', data: 'Resume Document' }
- ]
- },
- {
- key: '0-1',
- label: 'Home',
- data: 'Home Folder',
- icon: 'pi pi-fw pi-home',
- children: [{ key: '0-1-0', label: 'Invoices.txt', icon: 'pi pi-fw pi-file', data: 'Invoices for this month' }]
- }
- ]
-},
-...
-`
- };
-
- return (
- <>
-
-
- ({
- className: context.expanded ? 'bg-blue-100' : 'undefined'
- })
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/treeselect/pt/ptdoc.js b/components/doc/treeselect/pt/ptdoc.js
deleted file mode 100644
index ad270aeaf2..0000000000
--- a/components/doc/treeselect/pt/ptdoc.js
+++ /dev/null
@@ -1,152 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { TreeSelect } from '@/components/lib/treeselect/TreeSelect';
-import { useEffect, useState } from 'react';
-import { NodeService } from '../../../../service/NodeService';
-
-export function PTDoc(props) {
- const [nodes, setNodes] = useState(null);
- const [selectedNodeKey, setSelectedNodeKey] = useState(null);
-
- useEffect(() => {
- NodeService.getTreeNodes().then((data) => setNodes(data));
- }, []); // eslint-disable-line react-hooks/exhaustive-deps
-
- const code = {
- basic: `
- setSelectedNodeKey(e.value)}
- options={nodes}
- placeholder="Select Item"
- pt={{
- root: { className: 'w-full md:w-30rem' },
- tree: {
- content: ({ context }) => ({
- className: context.expanded ? 'bg-blue-100' : 'undefined'
- })
- }
- }}
->
- `,
- javascript: `
-import React, { useState, useEffect } from "react";
-import { TreeSelect } from 'primereact/treeselect';
-import { NodeService } from './service/NodeService';
-
-export default function PTDemo() {
- const [nodes, setNodes] = useState(null);
- const [selectedNodeKey, setSelectedNodeKey] = useState(null);
-
- useEffect(() => {
- NodeService.getTreeNodes().then((data) => setNodes(data));
- }, []);
-
- return (
-
- setSelectedNodeKey(e.value)}
- options={nodes}
- placeholder="Select Item"
- pt={{
- root: { className: 'w-full md:w-30rem' },
- tree: {
- content: ({ context }) => ({
- className: context.expanded ? 'bg-blue-100' : 'undefined'
- })
- }
- }}
- >
-
- );
-}
- `,
- typescript: `
-import React, { useState, useEffect } from "react";
-import { TreeSelect, TreeSelectChangeEvent } from 'primereact/treeselect';
-import { TreeNode } from 'primereact/treenode';
-import { NodeService } from './service/NodeService';
-
-export default function PTDemo() {
- const [nodes, setNodes] = useState(null);
- const [selectedNodeKey, setSelectedNodeKey] = useState(null);
-
- useEffect(() => {
- NodeService.getTreeNodes().then((data) => setNodes(data));
- }, []);
-
- return (
-
- setSelectedNodeKey(e.value)}
- options={nodes}
- placeholder="Select Item"
- pt={{
- root: { className: 'w-full md:w-30rem' },
- tree: {
- content: ({ context }) => ({
- className: context.expanded ? 'bg-blue-100' : 'undefined'
- })
- }
- }}
- >
-
- );
-}
- `,
- data: `
-/* NodeService */
-{
- key: '0',
- label: 'Documents',
- data: 'Documents Folder',
- icon: 'pi pi-fw pi-inbox',
- children: [
- {
- key: '0-0',
- label: 'Work',
- data: 'Work Folder',
- icon: 'pi pi-fw pi-cog',
- children: [
- { key: '0-0-0', label: 'Expenses.doc', icon: 'pi pi-fw pi-file', data: 'Expenses Document' },
- { key: '0-0-1', label: 'Resume.doc', icon: 'pi pi-fw pi-file', data: 'Resume Document' }
- ]
- },
- {
- key: '0-1',
- label: 'Home',
- data: 'Home Folder',
- icon: 'pi pi-fw pi-home',
- children: [{ key: '0-1-0', label: 'Invoices.txt', icon: 'pi pi-fw pi-file', data: 'Invoices for this month' }]
- }
- ]
-},
-...
-`
- };
-
- return (
- <>
-
-
- setSelectedNodeKey(e.value)}
- options={nodes}
- placeholder="Select Item"
- pt={{
- root: { className: 'w-full md:w-30rem' },
- tree: {
- content: ({ context }) => ({
- className: context.expanded ? 'bg-blue-100' : 'undefined'
- })
- }
- }}
- />
-
-
- >
- );
-}
diff --git a/components/doc/treetable/pt/ptdoc.js b/components/doc/treetable/pt/ptdoc.js
deleted file mode 100644
index 98f66217f5..0000000000
--- a/components/doc/treetable/pt/ptdoc.js
+++ /dev/null
@@ -1,203 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { Column } from '@/components/lib/column/Column';
-import { TreeTable } from '@/components/lib/treetable/TreeTable';
-import { useEffect, useState } from 'react';
-import { NodeService } from '../../../../service/NodeService';
-
-export function PTDoc(props) {
- const [nodes, setNodes] = useState([]);
-
- useEffect(() => {
- NodeService.getTreeTableNodes().then((data) => setNodes(data));
- }, []); // eslint-disable-line react-hooks/exhaustive-deps
-
- const code = {
- basic: `
-
-
-
-
-
- `,
- javascript: `
-import React, { useState, useEffect } from 'react';
-import { TreeTable } from 'primereact/treetable';
-import { Column } from 'primereact/column';
-import { NodeService } from './service/NodeService';
-
-export default function PTDemo() {
- const [nodes, setNodes] = useState([]);
-
- useEffect(() => {
- NodeService.getTreeTableNodes().then((data) => setNodes(data));
- }, []);
-
- return (
-
-
-
-
-
-
-
- );
-}
- `,
- typescript: `
-import React, { useState, useEffect } from 'react';
-import { TreeTable } from 'primereact/treetable';
-import { Column } from 'primereact/column';
-import { TreeNode } from 'primereact/treenode';
-import { NodeService } from './service/NodeService';
-
-export default function PTDemo() {
- const [nodes, setNodes] = useState([]);
-
- useEffect(() => {
- NodeService.getTreeTableNodes().then((data) => setNodes(data));
- }, []);
-
- return (
-
-
-
-
-
-
-
- );
-}
- `,
- data: `
-{
- key: '0',
- label: 'Documents',
- data: 'Documents Folder',
- icon: 'pi pi-fw pi-inbox',
- children: [
- {
- key: '0-0',
- label: 'Work',
- data: 'Work Folder',
- icon: 'pi pi-fw pi-cog',
- children: [
- { key: '0-0-0', label: 'Expenses.doc', icon: 'pi pi-fw pi-file', data: 'Expenses Document' },
- { key: '0-0-1', label: 'Resume.doc', icon: 'pi pi-fw pi-file', data: 'Resume Document' }
- ]
- },
- {
- key: '0-1',
- label: 'Home',
- data: 'Home Folder',
- icon: 'pi pi-fw pi-home',
- children: [{ key: '0-1-0', label: 'Invoices.txt', icon: 'pi pi-fw pi-file', data: 'Invoices for this month' }]
- }
- ]
-},
-...
-`
- };
-
- return (
- <>
-
-
-
-
-
-
-
-
-
- >
- );
-}
diff --git a/components/doc/tristatecheckbox/pt/ptdoc.js b/components/doc/tristatecheckbox/pt/ptdoc.js
deleted file mode 100644
index e0088c62c9..0000000000
--- a/components/doc/tristatecheckbox/pt/ptdoc.js
+++ /dev/null
@@ -1,91 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { TriStateCheckbox } from '@/components/lib/tristatecheckbox/TriStateCheckbox';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [value, setValue] = useState(null);
-
- const code = {
- basic: `
- setValue(e.value)}
- pt={{
- checkbox: {
- className: value ? 'bg-teal-500 border-white' : undefined
- }
- }}
-/>
- `,
- javascript: `
-import React, { useState } from "react";
-import { TriStateCheckbox } from 'primereact/tristatecheckbox';
-
-export default function PTDemo() {
- const [value, setValue] = useState(null);
-
- return (
-
- setValue(e.value)}
- pt={{
- checkbox: {
- className: value ? 'bg-teal-500 border-white' : undefined
- }
- }}
- />
- {String(value)}
-
- );
-}
- `,
- typescript: `
-import React, { useState } from "react";
-import { TriStateCheckbox, TriStateCheckboxChangeEvent } from 'primereact/tristatecheckbox';
-
-export default function PTDemo() {
- const [value, setValue] = useState(null);
-
- return (
-
- setValue(e.value)}
- pt={{
- checkbox: {
- className: value ? 'bg-teal-500 border-white' : undefined
- }
- }}
- />
- {String(value)}
-
- );
-}
- `
- };
-
- return (
- <>
-
-
- TriStateCheckbox is used as a controlled input with value and onChange properties.
-
-
-
- setValue(e.value)}
- pt={{
- checkbox: {
- className: value ? 'bg-teal-500 border-white' : undefined
- }
- }}
- />
- {String(value)}
-
-
- >
- );
-}
diff --git a/components/doc/virtualscroller/pt/ptdoc.js b/components/doc/virtualscroller/pt/ptdoc.js
deleted file mode 100644
index 9ca0e68f8e..0000000000
--- a/components/doc/virtualscroller/pt/ptdoc.js
+++ /dev/null
@@ -1,131 +0,0 @@
-import { DocSectionCode } from '@/components/doc/common/docsectioncode';
-import { DocSectionText } from '@/components/doc/common/docsectiontext';
-import { classNames } from '@/components/lib/utils/Utils';
-import { VirtualScroller } from '@/components/lib/virtualscroller/VirtualScroller';
-import { useState } from 'react';
-
-export function PTDoc(props) {
- const [items] = useState(Array.from({ length: 100000 }).map((_, i) => `Item #${i}`));
-
- const itemTemplate = (item, options) => {
- const className = classNames('flex align-items-center p-2', {
- 'surface-hover': options.odd
- });
-
- return (
-
- {item}
-
- );
- };
-
- const code = {
- basic: `
-
- `,
- javascript: `
-import React, { useState } from 'react';
-import { VirtualScroller } from 'primereact/virtualscroller';
-import { classNames } from 'primereact/utils';
-
-export default function PTDemo() {
- const [items] = useState(Array.from({ length: 100000 }).map((_, i) => \`Item #\${i}\`));
-
- const itemTemplate = (item, options) => {
- const className = classNames('flex align-items-center p-2', {
- 'surface-hover': options.odd
- });
-
- return (
-
- {item}
-
- );
- };
-
- return (
-
-
-
- );
-}
- `,
- typescript: `
-import React, { useState } from 'react';
-import { VirtualScroller, VirtualScrollerTemplateOptions } from 'primereact/virtualscroller';
-import { classNames } from 'primereact/utils';
-
-export default function PTDemo() {
- const [items] = useState(Array.from({ length: 100000 }).map((_, i) => \`Item #\${i}\`));
-
- const itemTemplate = (item: string, options: VirtualScrollerTemplateOptions) => {
- const className = classNames('flex align-items-center p-2', {
- 'surface-hover': options.odd
- });
-
- return (
-
- {item}
-
- );
- };
-
- return (
-
-
-
- );
-}
- `
- };
-
- return (
- <>
-
-
-
-
-
- >
- );
-}
diff --git a/pages/accordion/index.js b/pages/accordion/index.js
index 083896cfa4..93a2945d49 100644
--- a/pages/accordion/index.js
+++ b/pages/accordion/index.js
@@ -5,7 +5,6 @@ import { DisabledDoc } from '@/components/doc/accordion/disableddoc';
import { DynamicDoc } from '@/components/doc/accordion/dynamicdoc';
import { ImportDoc } from '@/components/doc/accordion/importdoc';
import { MultipleDoc } from '@/components/doc/accordion/multipledoc';
-import { PTDoc } from '@/components/doc/accordion/pt/ptdoc';
import { Wireframe } from '@/components/doc/accordion/pt/wireframe';
import { TemplateDoc } from '@/components/doc/accordion/templatedoc';
import { StyledDoc } from '@/components/doc/accordion/theming/styleddoc';
@@ -73,11 +72,6 @@ const AccordionDemo = () => {
id: 'pt.accordiontab.options',
label: 'AccordionTab PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/autocomplete/index.js b/pages/autocomplete/index.js
index 6643beef47..bc9250a599 100644
--- a/pages/autocomplete/index.js
+++ b/pages/autocomplete/index.js
@@ -10,7 +10,6 @@ import { ImportDoc } from '@/components/doc/autocomplete/importdoc';
import { InvalidDoc } from '@/components/doc/autocomplete/invaliddoc';
import { MultipleDoc } from '@/components/doc/autocomplete/multipledoc';
import { ObjectsDoc } from '@/components/doc/autocomplete/objectsdoc';
-import { PTDoc } from '@/components/doc/autocomplete/pt/ptdoc';
import { Wireframe } from '@/components/doc/autocomplete/pt/wireframe';
import { TemplateDoc } from '@/components/doc/autocomplete/templatedoc';
import { StyledDoc } from '@/components/doc/autocomplete/theming/styleddoc';
@@ -102,11 +101,6 @@ const AutoCompleteDemo = () => {
id: 'pt.autocomplete.options',
label: 'AutoComplete PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/avatar/index.js b/pages/avatar/index.js
index 4edf8c992c..edef08f29e 100644
--- a/pages/avatar/index.js
+++ b/pages/avatar/index.js
@@ -4,7 +4,6 @@ import { IconDoc } from '@/components/doc/avatar/icondoc';
import { ImageDoc } from '@/components/doc/avatar/imagedoc';
import { ImportDoc } from '@/components/doc/avatar/importdoc';
import { LabelDoc } from '@/components/doc/avatar/labeldoc';
-import { PTDoc } from '@/components/doc/avatar/pt/ptdoc';
import { Wireframe } from '@/components/doc/avatar/pt/wireframe';
import { StyledDoc } from '@/components/doc/avatar/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/avatar/theming/tailwinddoc';
@@ -60,11 +59,6 @@ const AvatarDemo = () => {
id: 'pt.avatargroup.options',
label: 'AvatarGroup PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/badge/index.js b/pages/badge/index.js
index f48b11bab5..7cb5158ea1 100644
--- a/pages/badge/index.js
+++ b/pages/badge/index.js
@@ -3,7 +3,6 @@ import { BasicDoc } from '@/components/doc/badge/basicdoc';
import { ButtonDoc } from '@/components/doc/badge/buttondoc';
import { ImportDoc } from '@/components/doc/badge/importdoc';
import { PositionDoc } from '@/components/doc/badge/positiondoc';
-import { PTDoc } from '@/components/doc/badge/pt/ptdoc';
import { Wireframe } from '@/components/doc/badge/pt/wireframe';
import { SeverityDoc } from '@/components/doc/badge/severitydoc';
import { SizeDoc } from '@/components/doc/badge/sizedoc';
@@ -62,11 +61,6 @@ const BadgeDemo = () => {
id: 'pt.badge.options',
label: 'Badge PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/blockui/index.js b/pages/blockui/index.js
index 8b94049911..c24cd1e93a 100644
--- a/pages/blockui/index.js
+++ b/pages/blockui/index.js
@@ -2,7 +2,6 @@ import { AccessibilityDoc } from '@/components/doc/blockui/accessibilitydoc';
import { BasicDoc } from '@/components/doc/blockui/basicdoc';
import { DocumentDoc } from '@/components/doc/blockui/documentdoc';
import { ImportDoc } from '@/components/doc/blockui/importdoc';
-import { PTDoc } from '@/components/doc/blockui/pt/ptdoc';
import { Wireframe } from '@/components/doc/blockui/pt/wireframe';
import { TemplateDoc } from '@/components/doc/blockui/templatedoc';
import { StyledDoc } from '@/components/doc/blockui/theming/styleddoc';
@@ -50,11 +49,6 @@ const BlockUIDemo = () => {
id: 'pt.blockui.options',
label: 'BlockUI PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/breadcrumb/index.js b/pages/breadcrumb/index.js
index ef67f4d484..5178eb1f60 100644
--- a/pages/breadcrumb/index.js
+++ b/pages/breadcrumb/index.js
@@ -1,14 +1,13 @@
import { AccessibilityDoc } from '@/components/doc/breadcrumb/accessibilitydoc';
import { BasicDoc } from '@/components/doc/breadcrumb/basicdoc';
import { ImportDoc } from '@/components/doc/breadcrumb/importdoc';
-import { PTDoc } from '@/components/doc/breadcrumb/pt/ptdoc';
import { Wireframe } from '@/components/doc/breadcrumb/pt/wireframe';
+import { RouterDoc } from '@/components/doc/breadcrumb/routerdoc';
import { TemplateDoc } from '@/components/doc/breadcrumb/templatedoc';
import { StyledDoc } from '@/components/doc/breadcrumb/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/breadcrumb/theming/tailwinddoc';
import DocApiTable from '@/components/doc/common/docapitable';
import { DocComponent } from '@/components/doc/common/doccomponent';
-import { RouterDoc } from '@/components/doc/breadcrumb/routerdoc';
const BreadCrumbDemo = () => {
const docs = [
@@ -49,11 +48,6 @@ const BreadCrumbDemo = () => {
id: 'pt.breadcrumb.options',
label: 'BreadCrumb PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/button/index.js b/pages/button/index.js
index b6922ff363..13d49486eb 100644
--- a/pages/button/index.js
+++ b/pages/button/index.js
@@ -9,7 +9,6 @@ import { ImportDoc } from '@/components/doc/button/importdoc';
import { LinkDoc } from '@/components/doc/button/linkdoc';
import { LoadingDoc } from '@/components/doc/button/loadingdoc';
import { OutlinedDoc } from '@/components/doc/button/outlineddoc';
-import { PTDoc } from '@/components/doc/button/pt/ptdoc';
import { Wireframe } from '@/components/doc/button/pt/wireframe';
import { RaisedDoc } from '@/components/doc/button/raiseddoc';
import { RaisedTextDoc } from '@/components/doc/button/raisedtextdoc';
@@ -128,11 +127,6 @@ const ButtonDemo = () => {
id: 'pt.button.options',
label: 'Button PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/calendar/index.js b/pages/calendar/index.js
index 5e05036b8d..37274a3a4b 100644
--- a/pages/calendar/index.js
+++ b/pages/calendar/index.js
@@ -15,7 +15,6 @@ import { MinMaxDoc } from '@/components/doc/calendar/minmaxdoc';
import { MonthPickerDoc } from '@/components/doc/calendar/monthpickerdoc';
import { MultipleDoc } from '@/components/doc/calendar/multipledoc';
import { MultipleMonthsDoc } from '@/components/doc/calendar/multiplemonthsdoc';
-import { PTDoc } from '@/components/doc/calendar/pt/ptdoc';
import { Wireframe } from '@/components/doc/calendar/pt/wireframe';
import { RangeDoc } from '@/components/doc/calendar/rangedoc';
import { StyledDoc } from '@/components/doc/calendar/theming/styleddoc';
@@ -144,11 +143,6 @@ const CalendarDemo = () => {
id: 'pt.calendar.options',
label: 'Calendar PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/card/index.js b/pages/card/index.js
index 25ed58e27a..2c8a042a0e 100644
--- a/pages/card/index.js
+++ b/pages/card/index.js
@@ -2,7 +2,6 @@ import { AccessibilityDoc } from '@/components/doc/card/accessibilitydoc';
import { AdvancedDoc } from '@/components/doc/card/advanceddoc';
import { BasicDoc } from '@/components/doc/card/basicdoc';
import { ImportDoc } from '@/components/doc/card/importdoc';
-import { PTDoc } from '@/components/doc/card/pt/ptdoc';
import { Wireframe } from '@/components/doc/card/pt/wireframe';
import { StyledDoc } from '@/components/doc/card/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/card/theming/tailwinddoc';
@@ -44,11 +43,6 @@ const CardDemo = () => {
id: 'pt.card.options',
label: 'Card PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/carousel/index.js b/pages/carousel/index.js
index 712c154858..0d182d23d2 100644
--- a/pages/carousel/index.js
+++ b/pages/carousel/index.js
@@ -3,7 +3,6 @@ import { BasicDoc } from '@/components/doc/carousel/basicdoc';
import { CircularDoc } from '@/components/doc/carousel/circulardoc';
import { ImportDoc } from '@/components/doc/carousel/importdoc';
import { NumScrollDoc } from '@/components/doc/carousel/numscrolldoc';
-import { PTDoc } from '@/components/doc/carousel/pt/ptdoc';
import { Wireframe } from '@/components/doc/carousel/pt/wireframe';
import { ResponsiveDoc } from '@/components/doc/carousel/responsivedoc';
import { StyledDoc } from '@/components/doc/carousel/theming/styleddoc';
@@ -61,11 +60,6 @@ const CarouselDemo = () => {
id: 'pt.carousel.options',
label: 'Carousel PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/cascadeselect/index.js b/pages/cascadeselect/index.js
index dcbe97e7ee..c2a4a3aa1e 100644
--- a/pages/cascadeselect/index.js
+++ b/pages/cascadeselect/index.js
@@ -6,7 +6,6 @@ import { FloatLabelDoc } from '@/components/doc/cascadeselect/floatlabeldoc';
import { ImportDoc } from '@/components/doc/cascadeselect/importdoc';
import { InvalidDoc } from '@/components/doc/cascadeselect/invaliddoc';
import { LoadingDoc } from '@/components/doc/cascadeselect/loadingdoc';
-import { PTDoc } from '@/components/doc/cascadeselect/pt/ptdoc';
import { Wireframe } from '@/components/doc/cascadeselect/pt/wireframe';
import { TemplateDoc } from '@/components/doc/cascadeselect/templatedoc';
import { StyledDoc } from '@/components/doc/cascadeselect/theming/styleddoc';
@@ -72,11 +71,6 @@ const CascadeSelectDemo = () => {
id: 'pt.cascadeselect.options',
label: 'CascadeSelect PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/chart/index.js b/pages/chart/index.js
index 065d5b3e2c..47df34d927 100644
--- a/pages/chart/index.js
+++ b/pages/chart/index.js
@@ -10,7 +10,6 @@ import { LineStylesDoc } from '@/components/doc/chart/linestylesdoc';
import { MultiAxisDoc } from '@/components/doc/chart/multiaxisdoc';
import { PieChartDoc } from '@/components/doc/chart/piechartdoc';
import { PolarAreaDoc } from '@/components/doc/chart/polarareadoc';
-import { PTDoc } from '@/components/doc/chart/pt/ptdoc';
import { Wireframe } from '@/components/doc/chart/pt/wireframe';
import { RadarDoc } from '@/components/doc/chart/radardoc';
import { StackedBarDoc } from '@/components/doc/chart/stackedbardoc';
@@ -108,11 +107,6 @@ const ChartDemo = () => {
id: 'pt.chart.options',
label: 'Chart PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/checkbox/index.js b/pages/checkbox/index.js
index 8873c6c17c..ef4aedec8e 100644
--- a/pages/checkbox/index.js
+++ b/pages/checkbox/index.js
@@ -6,7 +6,6 @@ import { FilledDoc } from '@/components/doc/checkbox/filleddoc';
import { GroupDoc } from '@/components/doc/checkbox/groupdoc';
import { ImportDoc } from '@/components/doc/checkbox/importdoc';
import { InvalidDoc } from '@/components/doc/checkbox/invaliddoc';
-import { PTDoc } from '@/components/doc/checkbox/pt/ptdoc';
import { Wireframe } from '@/components/doc/checkbox/pt/wireframe';
import { StyledDoc } from '@/components/doc/checkbox/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/checkbox/theming/tailwinddoc';
@@ -67,11 +66,6 @@ const CheckboxDemo = () => {
id: 'pt.checkbox.options',
label: 'Checkbox PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/chip/index.js b/pages/chip/index.js
index 3cc140893c..dcc07014e6 100644
--- a/pages/chip/index.js
+++ b/pages/chip/index.js
@@ -3,7 +3,6 @@ import { BasicDoc } from '@/components/doc/chip/basicdoc';
import { IconDoc } from '@/components/doc/chip/icondoc';
import { ImageDoc } from '@/components/doc/chip/imagedoc';
import { ImportDoc } from '@/components/doc/chip/importdoc';
-import { PTDoc } from '@/components/doc/chip/pt/ptdoc';
import { Wireframe } from '@/components/doc/chip/pt/wireframe';
import { TemplateDoc } from '@/components/doc/chip/templatedoc';
import { StyledDoc } from '@/components/doc/chip/theming/styleddoc';
@@ -56,11 +55,6 @@ const ChipDemo = () => {
id: 'pt.chip.options',
label: 'Chip PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/chips/index.js b/pages/chips/index.js
index 9d88a5fb75..f8fd2799b0 100644
--- a/pages/chips/index.js
+++ b/pages/chips/index.js
@@ -6,7 +6,6 @@ import { FloatLabelDoc } from '@/components/doc/chips/floatlabeldoc';
import { ImportDoc } from '@/components/doc/chips/importdoc';
import { InvalidDoc } from '@/components/doc/chips/invaliddoc';
import { KeyFilterDoc } from '@/components/doc/chips/keyfilterdoc';
-import { PTDoc } from '@/components/doc/chips/pt/ptdoc';
import { Wireframe } from '@/components/doc/chips/pt/wireframe';
import { SeparatorDoc } from '@/components/doc/chips/separatordoc';
import { TemplateDoc } from '@/components/doc/chips/templatedoc';
@@ -78,11 +77,6 @@ const ChipsDemo = () => {
id: 'pt.chips.options',
label: 'Chips PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/colorpicker/index.js b/pages/colorpicker/index.js
index b73d529d44..c00df6f651 100644
--- a/pages/colorpicker/index.js
+++ b/pages/colorpicker/index.js
@@ -4,7 +4,6 @@ import { DisabledDoc } from '@/components/doc/colorpicker/disableddoc';
import { FormatDoc } from '@/components/doc/colorpicker/formatdoc';
import { ImportDoc } from '@/components/doc/colorpicker/importdoc';
import { InlineDoc } from '@/components/doc/colorpicker/inlinedoc';
-import { PTDoc } from '@/components/doc/colorpicker/pt/ptdoc';
import { Wireframe } from '@/components/doc/colorpicker/pt/wireframe';
import { StyledDoc } from '@/components/doc/colorpicker/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/colorpicker/theming/tailwinddoc';
@@ -54,11 +53,6 @@ const ColorPickerDemo = () => {
id: 'pt.colorpicker.options',
label: 'ColorPicker PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/confirmdialog/index.js b/pages/confirmdialog/index.js
index cce3c9c8d6..400d8a63be 100644
--- a/pages/confirmdialog/index.js
+++ b/pages/confirmdialog/index.js
@@ -6,7 +6,6 @@ import { DeclarativeDoc } from '@/components/doc/confirmdialog/declarativedoc';
import { HeadlessDoc } from '@/components/doc/confirmdialog/headlessdoc';
import { ImportDoc } from '@/components/doc/confirmdialog/importdoc';
import { PositionDoc } from '@/components/doc/confirmdialog/positiondoc';
-import { PTDoc } from '@/components/doc/confirmdialog/pt/ptdoc';
import { Wireframe } from '@/components/doc/confirmdialog/pt/wireframe';
import { ResponsiveDoc } from '@/components/doc/confirmdialog/responsivedoc';
import { TemplateDoc } from '@/components/doc/confirmdialog/templatedoc';
@@ -68,11 +67,6 @@ const ConfirmDialogDemo = () => {
id: 'pt.confirmdialog.options',
label: 'ConfirmDialog PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/confirmpopup/index.js b/pages/confirmpopup/index.js
index 70d93740d5..33fb476998 100644
--- a/pages/confirmpopup/index.js
+++ b/pages/confirmpopup/index.js
@@ -3,14 +3,13 @@ import { DocComponent } from '@/components/doc/common/doccomponent';
import { AccessibilityDoc } from '@/components/doc/confirmpopup/accessibilitydoc';
import { BasicDoc } from '@/components/doc/confirmpopup/basicdoc';
import { DeclarativeDoc } from '@/components/doc/confirmpopup/declarativedoc';
+import { HeadlessDoc } from '@/components/doc/confirmpopup/headlessdoc';
import { ImportDoc } from '@/components/doc/confirmpopup/importdoc';
-import { PTDoc } from '@/components/doc/confirmpopup/pt/ptdoc';
import { Wireframe } from '@/components/doc/confirmpopup/pt/wireframe';
+import { TemplateDoc } from '@/components/doc/confirmpopup/templatedoc';
import { StyledDoc } from '@/components/doc/confirmpopup/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/confirmpopup/theming/tailwinddoc';
import { ConfirmPopup } from '@/components/lib/confirmpopup/ConfirmPopup';
-import { TemplateDoc } from '@/components/doc/confirmpopup/templatedoc';
-import { HeadlessDoc } from '@/components/doc/confirmpopup/headlessdoc';
const ConfirmPopupDemo = () => {
const docs = [
@@ -56,11 +55,6 @@ const ConfirmPopupDemo = () => {
id: 'pt.confirmpopup.options',
label: 'ConfirmPopup PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/contextmenu/index.js b/pages/contextmenu/index.js
index 0438bde266..bd697e10d8 100644
--- a/pages/contextmenu/index.js
+++ b/pages/contextmenu/index.js
@@ -2,16 +2,15 @@ import DocApiTable from '@/components/doc/common/docapitable';
import { DocComponent } from '@/components/doc/common/doccomponent';
import { AccessibilityDoc } from '@/components/doc/contextmenu/accessibilitydoc';
import { BasicDoc } from '@/components/doc/contextmenu/basicdoc';
+import { CommandDoc } from '@/components/doc/contextmenu/commanddoc';
+import { DataTableDoc } from '@/components/doc/contextmenu/datatabledoc';
import { DocumentDoc } from '@/components/doc/contextmenu/documentdoc';
import { ImportDoc } from '@/components/doc/contextmenu/importdoc';
-import { PTDoc } from '@/components/doc/contextmenu/pt/ptdoc';
import { Wireframe } from '@/components/doc/contextmenu/pt/wireframe';
-import { StyledDoc } from '@/components/doc/contextmenu/theming/styleddoc';
+import { RouterDoc } from '@/components/doc/contextmenu/routerdoc';
import { TemplateDoc } from '@/components/doc/contextmenu/templatedoc';
+import { StyledDoc } from '@/components/doc/contextmenu/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/contextmenu/theming/tailwinddoc';
-import { CommandDoc } from '@/components/doc/contextmenu/commanddoc';
-import { DataTableDoc } from '@/components/doc/contextmenu/datatabledoc';
-import { RouterDoc } from '@/components/doc/contextmenu/routerdoc';
const ContextMenuDemo = () => {
const docs = [
@@ -66,11 +65,6 @@ const ContextMenuDemo = () => {
id: 'pt.contextmenu.options',
label: 'ContextMenu PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/datascroller/index.js b/pages/datascroller/index.js
index baa0d43e97..6b27828969 100644
--- a/pages/datascroller/index.js
+++ b/pages/datascroller/index.js
@@ -5,7 +5,6 @@ import { BasicDoc } from '@/components/doc/datascroller/basicdoc';
import { ImportDoc } from '@/components/doc/datascroller/importdoc';
import { InlineDataScrollerDoc } from '@/components/doc/datascroller/inlinedoc';
import { LoaderDataScrollerDoc } from '@/components/doc/datascroller/loaderdoc';
-import { PTDoc } from '@/components/doc/datascroller/pt/ptdoc';
import { StyledDoc } from '@/components/doc/datascroller/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/datascroller/theming/tailwinddoc';
import { Wireframe } from '@/components/doc/timeline/pt/wireframe';
@@ -49,11 +48,6 @@ const DataScrollerDemo = () => {
id: 'pt.datascroller.options',
label: 'DataScroller PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/datatable/index.js b/pages/datatable/index.js
index 08b74f26ae..2baf0303e5 100644
--- a/pages/datatable/index.js
+++ b/pages/datatable/index.js
@@ -24,7 +24,6 @@ import { ImportDoc } from '@/components/doc/datatable/importdoc';
import { LazyLoadDoc } from '@/components/doc/datatable/lazyloaddoc';
import { PaginatorBasicDoc } from '@/components/doc/datatable/paginator/basicdoc';
import { PaginatorTemplateDoc } from '@/components/doc/datatable/paginator/templatedoc';
-import { PTDoc } from '@/components/doc/datatable/pt/ptdoc';
import { Wireframe } from '@/components/doc/datatable/pt/wireframe';
import { ReorderDoc } from '@/components/doc/datatable/reorderdoc';
import { RowExpansionDoc } from '@/components/doc/datatable/rowexpansiondoc';
@@ -412,11 +411,6 @@ const DataTableDemo = () => {
id: 'pt.row.options',
label: 'Row PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/dataview/index.js b/pages/dataview/index.js
index 5b78814dbb..3b8015aeac 100644
--- a/pages/dataview/index.js
+++ b/pages/dataview/index.js
@@ -6,7 +6,6 @@ import { ImportDoc } from '@/components/doc/dataview/importdoc';
import { LayoutDoc } from '@/components/doc/dataview/layoutdoc';
import { LoadingDoc } from '@/components/doc/dataview/loadingdoc';
import { PaginationDoc } from '@/components/doc/dataview/paginationdoc';
-import { PTDoc } from '@/components/doc/dataview/pt/ptdoc';
import { Wireframe } from '@/components/doc/dataview/pt/wireframe';
import { SortingDoc } from '@/components/doc/dataview/sortingdoc';
import { StyledDoc } from '@/components/doc/dataview/theming/styleddoc';
@@ -66,11 +65,6 @@ const DataViewDemo = () => {
id: 'pt.dataviewlayoutoptions.options',
label: 'DataViewLayoutOptions PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/dialog/index.js b/pages/dialog/index.js
index 0cc2986079..3a094d42f3 100644
--- a/pages/dialog/index.js
+++ b/pages/dialog/index.js
@@ -3,18 +3,17 @@ import { DocComponent } from '@/components/doc/common/doccomponent';
import { AccessibilityDoc } from '@/components/doc/dialog/accessibilitydoc';
import { BasicDoc } from '@/components/doc/dialog/basicdoc';
import { FooterDoc } from '@/components/doc/dialog/footerdoc';
+import { HeadlessDoc } from '@/components/doc/dialog/headlessdoc';
import { ImportDoc } from '@/components/doc/dialog/importdoc';
import { LongContentDoc } from '@/components/doc/dialog/longcontentdoc';
import { MaximizableDoc } from '@/components/doc/dialog/maximizabledoc';
import { PositionDoc } from '@/components/doc/dialog/positiondoc';
-import { PTDoc } from '@/components/doc/dialog/pt/ptdoc';
import { Wireframe } from '@/components/doc/dialog/pt/wireframe';
import { ResponsiveDoc } from '@/components/doc/dialog/responsivedoc';
+import { TemplateDoc } from '@/components/doc/dialog/templatedoc';
import { StyledDoc } from '@/components/doc/dialog/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/dialog/theming/tailwinddoc';
import { WithoutModalDoc } from '@/components/doc/dialog/withoutmodaldoc';
-import { TemplateDoc } from '@/components/doc/dialog/templatedoc';
-import { HeadlessDoc } from '@/components/doc/dialog/headlessdoc';
const DialogDemo = () => {
const docs = [
@@ -85,11 +84,6 @@ const DialogDemo = () => {
id: 'pt.dialog.options',
label: 'Dialog PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/divider/index.js b/pages/divider/index.js
index 808b0cdb0c..455f98ddc5 100644
--- a/pages/divider/index.js
+++ b/pages/divider/index.js
@@ -5,7 +5,6 @@ import { BasicDoc } from '@/components/doc/divider/basicdoc';
import { ContentDoc } from '@/components/doc/divider/contentdoc';
import { ImportDoc } from '@/components/doc/divider/importdoc';
import { LoginDoc } from '@/components/doc/divider/logindoc';
-import { PTDoc } from '@/components/doc/divider/pt/ptdoc';
import { Wireframe } from '@/components/doc/divider/pt/wireframe';
import { TailwindDoc } from '@/components/doc/divider/theming/tailwinddoc';
import { TypeDoc } from '@/components/doc/divider/typedoc';
@@ -62,11 +61,6 @@ const DividerDemo = () => {
id: 'pt.divider.options',
label: 'Divider PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/dock/index.js b/pages/dock/index.js
index 23f7f27509..b94c2e5d27 100644
--- a/pages/dock/index.js
+++ b/pages/dock/index.js
@@ -4,7 +4,6 @@ import { AccessibilityDoc } from '@/components/doc/dock/accessibilitydoc';
import { AdvancedDoc } from '@/components/doc/dock/advanceddoc';
import { BasicDoc } from '@/components/doc/dock/basicdoc';
import { ImportDoc } from '@/components/doc/dock/importdoc';
-import { PTDoc } from '@/components/doc/dock/pt/ptdoc';
import { Wireframe } from '@/components/doc/dock/pt/wireframe';
import { StyledDoc } from '@/components/doc/dock/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/dock/theming/tailwinddoc';
@@ -43,11 +42,6 @@ const DockDemo = () => {
id: 'pt.dock.options',
label: 'Dock PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/dropdown/index.js b/pages/dropdown/index.js
index 873f7d16d5..c310ac725e 100644
--- a/pages/dropdown/index.js
+++ b/pages/dropdown/index.js
@@ -14,7 +14,6 @@ import { ImportDoc } from '@/components/doc/dropdown/importdoc';
import { InvalidDoc } from '@/components/doc/dropdown/invaliddoc';
import { LazyVirtualScrollDoc } from '@/components/doc/dropdown/lazyvirtualscrolldoc';
import { LoadingDoc } from '@/components/doc/dropdown/loadingdoc';
-import { PTDoc } from '@/components/doc/dropdown/pt/ptdoc';
import { Wireframe } from '@/components/doc/dropdown/pt/wireframe';
import { TemplateDoc } from '@/components/doc/dropdown/templatedoc';
import { StyledDoc } from '@/components/doc/dropdown/theming/styleddoc';
@@ -114,11 +113,6 @@ const DropdownDemo = () => {
id: 'pt.dropdown.options',
label: 'Dropdown PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/editor/index.js b/pages/editor/index.js
index 056ef3c529..47b8559524 100644
--- a/pages/editor/index.js
+++ b/pages/editor/index.js
@@ -3,7 +3,6 @@ import { DocComponent } from '@/components/doc/common/doccomponent';
import { AccessibilityDoc } from '@/components/doc/editor/accessibilitydoc';
import { BasicDoc } from '@/components/doc/editor/basicdoc';
import { ImportDoc } from '@/components/doc/editor/importdoc';
-import { PTDoc } from '@/components/doc/editor/pt/ptdoc';
import { Wireframe } from '@/components/doc/editor/pt/wireframe';
import { QuillDoc } from '@/components/doc/editor/quilldoc';
import { ReadOnlyDoc } from '@/components/doc/editor/readonlydoc';
@@ -54,11 +53,6 @@ const EditorDemo = () => {
id: 'pt.editor.options',
label: 'Editor PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/fieldset/index.js b/pages/fieldset/index.js
index b06bd7a740..c27260f6d3 100644
--- a/pages/fieldset/index.js
+++ b/pages/fieldset/index.js
@@ -3,7 +3,6 @@ import { DocComponent } from '@/components/doc/common/doccomponent';
import { AccessibilityDoc } from '@/components/doc/fieldset/accessibilitydoc';
import { BasicDoc } from '@/components/doc/fieldset/basicdoc';
import { ImportDoc } from '@/components/doc/fieldset/importdoc';
-import { PTDoc } from '@/components/doc/fieldset/pt/ptdoc';
import { Wireframe } from '@/components/doc/fieldset/pt/wireframe';
import { TemplateDoc } from '@/components/doc/fieldset/templatedoc';
import { StyledDoc } from '@/components/doc/fieldset/theming/styleddoc';
@@ -50,11 +49,6 @@ const FieldsetDemo = () => {
id: 'pt.fieldset.options',
label: 'Fieldset PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/fileupload/index.js b/pages/fileupload/index.js
index b8d4efce43..887827f6a9 100644
--- a/pages/fileupload/index.js
+++ b/pages/fileupload/index.js
@@ -6,7 +6,6 @@ import { AutoDoc } from '@/components/doc/fileupload/autodoc';
import { BasicDoc } from '@/components/doc/fileupload/basicdoc';
import { CustomUploadDoc } from '@/components/doc/fileupload/customuploaddoc';
import { ImportDoc } from '@/components/doc/fileupload/importdoc';
-import { PTDoc } from '@/components/doc/fileupload/pt/ptdoc';
import { Wireframe } from '@/components/doc/fileupload/pt/wireframe';
import { TemplateDoc } from '@/components/doc/fileupload/templatedoc';
import { StyledDoc } from '@/components/doc/fileupload/theming/styleddoc';
@@ -61,11 +60,6 @@ const FileUploadDemo = () => {
id: 'pt.fileupload.options',
label: 'FileUpload PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/galleria/index.js b/pages/galleria/index.js
index 8dd08ebaf0..bb5cebdd00 100644
--- a/pages/galleria/index.js
+++ b/pages/galleria/index.js
@@ -18,7 +18,6 @@ import { HoverDoc } from '@/components/doc/galleria/navigator/hoverdoc';
import { IndicatorsDoc } from '@/components/doc/galleria/navigator/indicatorsdoc';
import { ItemThumbnailsDoc } from '@/components/doc/galleria/navigator/itemthumbnailsdoc';
import { ItemWithoutThumbnailsDoc } from '@/components/doc/galleria/navigator/itemwithouthumbnailsdoc';
-import { PTDoc } from '@/components/doc/galleria/pt/ptdoc';
import { Wireframe } from '@/components/doc/galleria/pt/wireframe';
import { ResponsiveDoc } from '@/components/doc/galleria/responsivedoc';
import { StyledDoc } from '@/components/doc/galleria/theming/styleddoc';
@@ -160,11 +159,6 @@ const GalleriaDemo = () => {
id: 'pt.galleria.options',
label: 'Galleria PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/image/index.js b/pages/image/index.js
index e5c44764db..3d2e6ecbb4 100644
--- a/pages/image/index.js
+++ b/pages/image/index.js
@@ -4,7 +4,6 @@ import { AccessibilityDoc } from '@/components/doc/image/accessibilitydoc';
import { BasicDoc } from '@/components/doc/image/basicdoc';
import { ImportDoc } from '@/components/doc/image/importdoc';
import { PreviewDoc } from '@/components/doc/image/previewdoc';
-import { PTDoc } from '@/components/doc/image/pt/ptdoc';
import { Wireframe } from '@/components/doc/image/pt/wireframe';
import { TemplateDoc } from '@/components/doc/image/templatedoc';
import { StyledDoc } from '@/components/doc/image/theming/styleddoc';
@@ -55,11 +54,6 @@ const ImageDemo = () => {
id: 'pt.image.options',
label: 'Image PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/inplace/index.js b/pages/inplace/index.js
index 207214c2e7..0ab9901d95 100644
--- a/pages/inplace/index.js
+++ b/pages/inplace/index.js
@@ -6,7 +6,6 @@ import { ImageDoc } from '@/components/doc/inplace/imagedoc';
import { ImportDoc } from '@/components/doc/inplace/importdoc';
import { InputDoc } from '@/components/doc/inplace/inputdoc';
import { LazyDoc } from '@/components/doc/inplace/lazydoc';
-import { PTDoc } from '@/components/doc/inplace/pt/ptdoc';
import { Wireframe } from '@/components/doc/inplace/pt/wireframe';
import { StyledDoc } from '@/components/doc/inplace/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/inplace/theming/tailwinddoc';
@@ -56,11 +55,6 @@ const ChipDemo = () => {
id: 'pt.Inplace.options',
label: 'Inplace PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/inputmask/index.js b/pages/inputmask/index.js
index eb73652392..3725e0c08e 100644
--- a/pages/inputmask/index.js
+++ b/pages/inputmask/index.js
@@ -9,7 +9,6 @@ import { ImportDoc } from '@/components/doc/inputmask/importdoc';
import { InvalidDoc } from '@/components/doc/inputmask/invaliddoc';
import { MaskDoc } from '@/components/doc/inputmask/maskdoc';
import { OptionalDoc } from '@/components/doc/inputmask/optionaldoc';
-import { PTDoc } from '@/components/doc/inputmask/pt/ptdoc';
import { Wireframe } from '@/components/doc/inputmask/pt/wireframe';
import { SlotCharDoc } from '@/components/doc/inputmask/slotchardoc';
import { StyledDoc } from '@/components/doc/inputmask/theming/styleddoc';
@@ -79,11 +78,6 @@ const InputMaskDemo = () => {
id: 'pt.inputmask.options',
label: 'InputMask PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/inputnumber/index.js b/pages/inputnumber/index.js
index 6e2d45e932..1a65566b03 100644
--- a/pages/inputnumber/index.js
+++ b/pages/inputnumber/index.js
@@ -11,7 +11,6 @@ import { InvalidDoc } from '@/components/doc/inputnumber/invaliddoc';
import { LocaleDoc } from '@/components/doc/inputnumber/localedoc';
import { NumeralsDoc } from '@/components/doc/inputnumber/numberalsdoc';
import { PrefixSuffixDoc } from '@/components/doc/inputnumber/prefixsuffixdoc';
-import { PTDoc } from '@/components/doc/inputnumber/pt/ptdoc';
import { Wireframe } from '@/components/doc/inputnumber/pt/wireframe';
import { StyledDoc } from '@/components/doc/inputnumber/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/inputnumber/theming/tailwinddoc';
@@ -90,11 +89,6 @@ const InputNumberDemo = () => {
id: 'pt.inputnumber.options',
label: 'InputNumber PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/inputswitch/index.js b/pages/inputswitch/index.js
index 431d1bd1eb..30704ec00f 100644
--- a/pages/inputswitch/index.js
+++ b/pages/inputswitch/index.js
@@ -6,7 +6,6 @@ import { DisabledDoc } from '@/components/doc/inputswitch/disableddoc';
import { ImportDoc } from '@/components/doc/inputswitch/importdoc';
import { InvalidDoc } from '@/components/doc/inputswitch/invaliddoc';
import { PreselectionDoc } from '@/components/doc/inputswitch/preselectiondoc';
-import { PTDoc } from '@/components/doc/inputswitch/pt/ptdoc';
import { Wireframe } from '@/components/doc/inputswitch/pt/wireframe';
import { StyledDoc } from '@/components/doc/inputswitch/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/inputswitch/theming/tailwinddoc';
@@ -54,11 +53,6 @@ const InputSwitchDemo = () => {
id: 'pt.inputswitch.options',
label: 'InputSwitch PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/inputtext/index.js b/pages/inputtext/index.js
index ed20ed267c..1f2aa9e58e 100644
--- a/pages/inputtext/index.js
+++ b/pages/inputtext/index.js
@@ -9,7 +9,6 @@ import { HelpTextDoc } from '@/components/doc/inputtext/helptextdoc';
import { ImportDoc } from '@/components/doc/inputtext/importdoc';
import { InvalidDoc } from '@/components/doc/inputtext/invaliddoc';
import { KeyFilterDoc } from '@/components/doc/inputtext/keyfilterdoc';
-import { PTDoc } from '@/components/doc/inputtext/pt/ptdoc';
import { Wireframe } from '@/components/doc/inputtext/pt/wireframe';
import { SizesDoc } from '@/components/doc/inputtext/sizesdoc';
import { StyledDoc } from '@/components/doc/inputtext/theming/styleddoc';
@@ -78,11 +77,6 @@ const InputTextDemo = () => {
id: 'pt.inputtext.options',
label: 'InputText PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/inputtextarea/index.js b/pages/inputtextarea/index.js
index 5ca02af3cb..cbeaa4b085 100644
--- a/pages/inputtextarea/index.js
+++ b/pages/inputtextarea/index.js
@@ -9,7 +9,6 @@ import { FloatLabelDoc } from '@/components/doc/inputtextarea/floatlabeldoc';
import { ImportDoc } from '@/components/doc/inputtextarea/importdoc';
import { InvalidDoc } from '@/components/doc/inputtextarea/invaliddoc';
import { KeyFilterDoc } from '@/components/doc/inputtextarea/keyfilterdoc';
-import { PTDoc } from '@/components/doc/inputtextarea/pt/ptdoc';
import { Wireframe } from '@/components/doc/inputtextarea/pt/wireframe';
import { StyledDoc } from '@/components/doc/inputtextarea/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/inputtextarea/theming/tailwinddoc';
@@ -72,11 +71,6 @@ const InputTextareaDemo = () => {
id: 'pt.inputtextarea.options',
label: 'InputTextarea PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/knob/index.js b/pages/knob/index.js
index 6fb7845822..75fd4f3a08 100644
--- a/pages/knob/index.js
+++ b/pages/knob/index.js
@@ -6,7 +6,6 @@ import { ColorDoc } from '@/components/doc/knob/colordoc';
import { DisabledDoc } from '@/components/doc/knob/disableddoc';
import { ImportDoc } from '@/components/doc/knob/importdoc';
import { MinMaxDoc } from '@/components/doc/knob/minmaxdoc';
-import { PTDoc } from '@/components/doc/knob/pt/ptdoc';
import { Wireframe } from '@/components/doc/knob/pt/wireframe';
import { ReactiveDoc } from '@/components/doc/knob/reactivedoc';
import { ReadOnlyDoc } from '@/components/doc/knob/readonlydoc';
@@ -90,11 +89,6 @@ const KnobDemo = () => {
id: 'pt.knob.options',
label: 'Knob PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/listbox/index.js b/pages/listbox/index.js
index 49ad9e8fa9..041bc60fb4 100644
--- a/pages/listbox/index.js
+++ b/pages/listbox/index.js
@@ -8,7 +8,6 @@ import { GroupDoc } from '@/components/doc/listbox/groupdoc';
import { ImportDoc } from '@/components/doc/listbox/importdoc';
import { InvalidDoc } from '@/components/doc/listbox/invaliddoc';
import { MultipleDoc } from '@/components/doc/listbox/multipledoc';
-import { PTDoc } from '@/components/doc/listbox/pt/ptdoc';
import { Wireframe } from '@/components/doc/listbox/pt/wireframe';
import { TemplateDoc } from '@/components/doc/listbox/templatedoc';
import { StyledDoc } from '@/components/doc/listbox/theming/styleddoc';
@@ -78,11 +77,6 @@ const ListBoxDemo = () => {
id: 'pt.listbox.options',
label: 'Listbox PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/megamenu/index.js b/pages/megamenu/index.js
index b7a0c105fb..7e12fa3f04 100644
--- a/pages/megamenu/index.js
+++ b/pages/megamenu/index.js
@@ -4,7 +4,6 @@ import { AccessibilityDoc } from '@/components/doc/megamenu/accessibilitydoc';
import { BasicDoc } from '@/components/doc/megamenu/basicdoc';
import { CommandDoc } from '@/components/doc/megamenu/commanddoc';
import { ImportDoc } from '@/components/doc/megamenu/importdoc';
-import { PTDoc } from '@/components/doc/megamenu/pt/ptdoc';
import { Wireframe } from '@/components/doc/megamenu/pt/wireframe';
import { RouterDoc } from '@/components/doc/megamenu/routerdoc';
import { TemplateDoc } from '@/components/doc/megamenu/templatedoc';
@@ -60,11 +59,6 @@ const MegaMenuDemo = () => {
id: 'pt.megamenu.options',
label: 'MegaMenu PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/mention/index.js b/pages/mention/index.js
index 8359db0a74..3a0b375b6c 100644
--- a/pages/mention/index.js
+++ b/pages/mention/index.js
@@ -7,7 +7,6 @@ import { DisabledDoc } from '@/components/doc/mention/disableddoc';
import { FloatLabelDoc } from '@/components/doc/mention/floatlabeldoc';
import { ImportDoc } from '@/components/doc/mention/importdoc';
import { InvalidDoc } from '@/components/doc/mention/invaliddoc';
-import { PTDoc } from '@/components/doc/mention/pt/ptdoc';
import { Wireframe } from '@/components/doc/mention/pt/wireframe';
import { StyledDoc } from '@/components/doc/mention/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/mention/theming/tailwinddoc';
@@ -66,11 +65,6 @@ const MentionDemo = () => {
id: 'pt.mention.options',
label: 'Mention PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/menu/index.js b/pages/menu/index.js
index 132e0bcaf6..4ba7cafcbd 100644
--- a/pages/menu/index.js
+++ b/pages/menu/index.js
@@ -6,7 +6,6 @@ import { CommandDoc } from '@/components/doc/menu/commanddoc';
import { GroupDoc } from '@/components/doc/menu/groupdoc';
import { ImportDoc } from '@/components/doc/menu/importdoc';
import { PopupDoc } from '@/components/doc/menu/popupdoc';
-import { PTDoc } from '@/components/doc/menu/pt/ptdoc';
import { Wireframe } from '@/components/doc/menu/pt/wireframe';
import { RouterDoc } from '@/components/doc/menu/routerdoc';
import { TemplateDoc } from '@/components/doc/menu/templatedoc';
@@ -66,11 +65,6 @@ const MenuDemo = () => {
id: 'pt.menu.options',
label: 'Menu PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/menubar/index.js b/pages/menubar/index.js
index 2962a6e9e5..50323997cd 100644
--- a/pages/menubar/index.js
+++ b/pages/menubar/index.js
@@ -4,7 +4,6 @@ import { AccessibilityDoc } from '@/components/doc/menubar/accessibilitydoc';
import { BasicDoc } from '@/components/doc/menubar/basicdoc';
import { CommandDoc } from '@/components/doc/menubar/commanddoc';
import { ImportDoc } from '@/components/doc/menubar/importdoc';
-import { PTDoc } from '@/components/doc/menubar/pt/ptdoc';
import { Wireframe } from '@/components/doc/menubar/pt/wireframe';
import { RouterDoc } from '@/components/doc/menubar/routerdoc';
import { TemplateDoc } from '@/components/doc/menubar/templatedoc';
@@ -54,11 +53,6 @@ const MenubarDemo = () => {
id: 'pt.menubar.options',
label: 'Menubar PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/message/index.js b/pages/message/index.js
index 0da117aff1..d69b034d92 100644
--- a/pages/message/index.js
+++ b/pages/message/index.js
@@ -3,7 +3,6 @@ import { DocComponent } from '@/components/doc/common/doccomponent';
import { AccessibilityDoc } from '@/components/doc/message/accessibilitydoc';
import { BasicDoc } from '@/components/doc/message/basicdoc';
import { ImportDoc } from '@/components/doc/message/importdoc';
-import { PTDoc } from '@/components/doc/message/pt/ptdoc';
import { Wireframe } from '@/components/doc/message/pt/wireframe';
import { SeverityDoc } from '@/components/doc/message/severitydoc';
import { TemplateDoc } from '@/components/doc/message/templatedoc';
@@ -55,11 +54,6 @@ const MessageDemo = () => {
id: 'pt.message.options',
label: 'Message PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/messages/index.js b/pages/messages/index.js
index f44f36c209..5c1f0df665 100644
--- a/pages/messages/index.js
+++ b/pages/messages/index.js
@@ -3,13 +3,12 @@ import { DocComponent } from '@/components/doc/common/doccomponent';
import { AccessibilityDoc } from '@/components/doc/messages/accessibilitydoc';
import { BasicDoc } from '@/components/doc/messages/basicdoc';
import { ClosableDoc } from '@/components/doc/messages/closeabledoc';
+import { CustomIcon } from '@/components/doc/messages/customicon';
import { DynamicDoc } from '@/components/doc/messages/dynamicdoc';
import { ImportDoc } from '@/components/doc/messages/importdoc';
-import { PTDoc } from '@/components/doc/messages/pt/ptdoc';
import { Wireframe } from '@/components/doc/messages/pt/wireframe';
import { SeverityDoc } from '@/components/doc/messages/severitydoc';
import { StickyDoc } from '@/components/doc/messages/stickydoc';
-import { CustomIcon } from '@/components/doc/messages/customicon';
import { TemplateDoc } from '@/components/doc/messages/templatedoc';
import { StyledDoc } from '@/components/doc/messages/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/messages/theming/tailwinddoc';
@@ -72,11 +71,6 @@ const MessagesDemo = () => {
id: 'pt.messages.options',
label: 'Messages PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/multiselect/index.js b/pages/multiselect/index.js
index 463ba7a4a0..e69c160e43 100644
--- a/pages/multiselect/index.js
+++ b/pages/multiselect/index.js
@@ -11,7 +11,6 @@ import { GroupDoc } from '@/components/doc/multiselect/groupdoc';
import { ImportDoc } from '@/components/doc/multiselect/importdoc';
import { InvalidDoc } from '@/components/doc/multiselect/invaliddoc';
import { LoadingDoc } from '@/components/doc/multiselect/loadingdoc';
-import { PTDoc } from '@/components/doc/multiselect/pt/ptdoc';
import { Wireframe } from '@/components/doc/multiselect/pt/wireframe';
import { TemplateDoc } from '@/components/doc/multiselect/templatedoc';
import { StyledDoc } from '@/components/doc/multiselect/theming/styleddoc';
@@ -96,11 +95,6 @@ const MultiSelectDemo = () => {
id: 'pt.multiselect.options',
label: 'MultiSelect PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/multistatecheckbox/index.js b/pages/multistatecheckbox/index.js
index 787c19f4a8..26c9e29b15 100644
--- a/pages/multistatecheckbox/index.js
+++ b/pages/multistatecheckbox/index.js
@@ -5,7 +5,6 @@ import { BasicDoc } from '@/components/doc/multistatecheckbox/basicdoc';
import { DisabledDoc } from '@/components/doc/multistatecheckbox/disableddoc';
import { ImportDoc } from '@/components/doc/multistatecheckbox/importdoc';
import { InvalidDoc } from '@/components/doc/multistatecheckbox/invaliddoc';
-import { PTDoc } from '@/components/doc/multistatecheckbox/pt/ptdoc';
import { Wireframe } from '@/components/doc/multistatecheckbox/pt/wireframe';
import { StyledDoc } from '@/components/doc/multistatecheckbox/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/multistatecheckbox/theming/tailwinddoc';
@@ -48,11 +47,6 @@ const MultiStateCheckboxDemo = () => {
id: 'pt.multistatecheckbox.options',
label: 'MultiStateCheckbox PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/orderlist/index.js b/pages/orderlist/index.js
index 5932cb7369..434f38b04c 100644
--- a/pages/orderlist/index.js
+++ b/pages/orderlist/index.js
@@ -5,7 +5,6 @@ import { BasicDoc } from '@/components/doc/orderlist/basicdoc';
import { DragDropDoc } from '@/components/doc/orderlist/dragdropdoc';
import { FilterDoc } from '@/components/doc/orderlist/filterdoc';
import { ImportDoc } from '@/components/doc/orderlist/importdoc';
-import { PTDoc } from '@/components/doc/orderlist/pt/ptdoc';
import { Wireframe } from '@/components/doc/orderlist/pt/wireframe';
import { StyledDoc } from '@/components/doc/orderlist/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/orderlist/theming/tailwinddoc';
@@ -49,11 +48,6 @@ const OrderListDemo = () => {
id: 'pt.orderlist.options',
label: 'OrderList PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
const themingDocs = [
diff --git a/pages/organizationchart/index.js b/pages/organizationchart/index.js
index bad4f4f06e..9d41de7bc6 100644
--- a/pages/organizationchart/index.js
+++ b/pages/organizationchart/index.js
@@ -4,7 +4,6 @@ import { AccessibilityDoc } from '@/components/doc/organizationchart/accessibili
import { BasicDoc } from '@/components/doc/organizationchart/basicdoc';
import { ColoredDoc } from '@/components/doc/organizationchart/coloreddoc';
import { ImportDoc } from '@/components/doc/organizationchart/importdoc';
-import { PTDoc } from '@/components/doc/organizationchart/pt/ptdoc';
import { Wireframe } from '@/components/doc/organizationchart/pt/wireframe';
import { SelectionDoc } from '@/components/doc/organizationchart/selectiondoc';
import { TemplateDoc } from '@/components/doc/organizationchart/templatedoc';
@@ -55,11 +54,6 @@ const OrganizationChartDemo = () => {
id: 'pt.organizationchart.options',
label: 'OrganizationChart PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/overlaypanel/index.js b/pages/overlaypanel/index.js
index 38b45c0103..21fddd7259 100644
--- a/pages/overlaypanel/index.js
+++ b/pages/overlaypanel/index.js
@@ -4,7 +4,6 @@ import { AccessibilityDoc } from '@/components/doc/overlaypanel/accessibilitydoc
import { BasicDoc } from '@/components/doc/overlaypanel/basicdoc';
import { DataTableDoc } from '@/components/doc/overlaypanel/datatabledoc';
import { ImportDoc } from '@/components/doc/overlaypanel/importdoc';
-import { PTDoc } from '@/components/doc/overlaypanel/pt/ptdoc';
import { Wireframe } from '@/components/doc/overlaypanel/pt/wireframe';
import { StyledDoc } from '@/components/doc/overlaypanel/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/overlaypanel/theming/tailwinddoc';
@@ -44,11 +43,6 @@ const OverlayPanelDemo = () => {
id: 'pt.overlaypanel.options',
label: 'OverlayPanel PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/paginator/index.js b/pages/paginator/index.js
index 8cfbaa3141..4218653db7 100644
--- a/pages/paginator/index.js
+++ b/pages/paginator/index.js
@@ -5,7 +5,6 @@ import { BasicDoc } from '@/components/doc/paginator/basicdoc';
import { ImagesDoc } from '@/components/doc/paginator/imagesdoc';
import { ImportDoc } from '@/components/doc/paginator/importdoc';
import { LayoutDoc } from '@/components/doc/paginator/layoutdoc';
-import { PTDoc } from '@/components/doc/paginator/pt/ptdoc';
import { Wireframe } from '@/components/doc/paginator/pt/wireframe';
import { TemplateDoc } from '@/components/doc/paginator/templatedoc';
import { StyledDoc } from '@/components/doc/paginator/theming/styleddoc';
@@ -55,11 +54,6 @@ const PaginatorDemo = () => {
id: 'pt.paginator.options',
label: 'Paginator PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/panel/index.js b/pages/panel/index.js
index 141ae2883a..8685e06a64 100644
--- a/pages/panel/index.js
+++ b/pages/panel/index.js
@@ -3,7 +3,6 @@ import { DocComponent } from '@/components/doc/common/doccomponent';
import { AccessibilityDoc } from '@/components/doc/panel/accessibilitydoc';
import { BasicDoc } from '@/components/doc/panel/basicdoc';
import { ImportDoc } from '@/components/doc/panel/importdoc';
-import { PTDoc } from '@/components/doc/panel/pt/ptdoc';
import { Wireframe } from '@/components/doc/panel/pt/wireframe';
import { TemplateDoc } from '@/components/doc/panel/templatedoc';
import { StyledDoc } from '@/components/doc/panel/theming/styleddoc';
@@ -50,11 +49,6 @@ const PanelDemo = () => {
id: 'pt.panel.options',
label: 'Panel PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/panelmenu/index.js b/pages/panelmenu/index.js
index 1b2a09a9d3..a7b169c0ba 100644
--- a/pages/panelmenu/index.js
+++ b/pages/panelmenu/index.js
@@ -6,7 +6,6 @@ import { CommandDoc } from '@/components/doc/panelmenu/commanddoc';
import { ControlledDoc } from '@/components/doc/panelmenu/controlleddoc';
import { ImportDoc } from '@/components/doc/panelmenu/importdoc';
import { MultipleDoc } from '@/components/doc/panelmenu/multipledoc';
-import { PTDoc } from '@/components/doc/panelmenu/pt/ptdoc';
import { Wireframe } from '@/components/doc/panelmenu/pt/wireframe';
import { RouterDoc } from '@/components/doc/panelmenu/routerdoc';
import { TemplateDoc } from '@/components/doc/panelmenu/templatedoc';
@@ -66,11 +65,6 @@ const PanelMenuDemo = () => {
id: 'pt.panelmenu.options',
label: 'PanelMenu PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/password/index.js b/pages/password/index.js
index c1695e516a..eba85cb655 100644
--- a/pages/password/index.js
+++ b/pages/password/index.js
@@ -9,7 +9,6 @@ import { ImportDoc } from '@/components/doc/password/importdoc';
import { InvalidDoc } from '@/components/doc/password/invaliddoc';
import { LocaleDoc } from '@/components/doc/password/localedoc';
import { MeterDoc } from '@/components/doc/password/meterdoc';
-import { PTDoc } from '@/components/doc/password/pt/ptdoc';
import { Wireframe } from '@/components/doc/password/pt/wireframe';
import { TemplateDoc } from '@/components/doc/password/templatedoc';
import { StyledDoc } from '@/components/doc/password/theming/styleddoc';
@@ -84,11 +83,6 @@ const PasswordDemo = () => {
id: 'pt.password.options',
label: 'Password PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/picklist/index.js b/pages/picklist/index.js
index 2364e299ba..4aacc22421 100644
--- a/pages/picklist/index.js
+++ b/pages/picklist/index.js
@@ -4,7 +4,6 @@ import { AccessibilityDoc } from '@/components/doc/picklist/accessibilitydoc';
import { BasicDoc } from '@/components/doc/picklist/basicdoc';
import { FilterDoc } from '@/components/doc/picklist/filterdoc';
import { ImportDoc } from '@/components/doc/picklist/importdoc';
-import { PTDoc } from '@/components/doc/picklist/pt/ptdoc';
import { Wireframe } from '@/components/doc/picklist/pt/wireframe';
import { StyledDoc } from '@/components/doc/picklist/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/picklist/theming/tailwinddoc';
@@ -43,11 +42,6 @@ const PickListDemo = () => {
id: 'pt.picklist.options',
label: 'PickList PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/progressbar/index.js b/pages/progressbar/index.js
index 64c6856343..120623105a 100644
--- a/pages/progressbar/index.js
+++ b/pages/progressbar/index.js
@@ -5,7 +5,6 @@ import { BasicDoc } from '@/components/doc/progressbar/basicdoc';
import { DynamicDoc } from '@/components/doc/progressbar/dynamicdoc';
import { ImportDoc } from '@/components/doc/progressbar/importdoc';
import { IndeterminateDoc } from '@/components/doc/progressbar/indeterminatedoc';
-import { PTDoc } from '@/components/doc/progressbar/pt/ptdoc';
import { Wireframe } from '@/components/doc/progressbar/pt/wireframe';
import { TemplateDoc } from '@/components/doc/progressbar/templatedoc';
import { StyledDoc } from '@/components/doc/progressbar/theming/styleddoc';
@@ -56,11 +55,6 @@ const ProgressBarDemo = () => {
id: 'pt.progressbar.options',
label: 'ProgressBar PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/progressspinner/index.js b/pages/progressspinner/index.js
index 5c05b655c4..e9e4edcf35 100644
--- a/pages/progressspinner/index.js
+++ b/pages/progressspinner/index.js
@@ -4,7 +4,6 @@ import { AccessibilityDoc } from '@/components/doc/progressspinner/accessibility
import { BasicDoc } from '@/components/doc/progressspinner/basicdoc';
import { CustomDoc } from '@/components/doc/progressspinner/customdoc';
import { ImportDoc } from '@/components/doc/progressspinner/importdoc';
-import { PTDoc } from '@/components/doc/progressspinner/pt/ptdoc';
import { Wireframe } from '@/components/doc/progressspinner/pt/wireframe';
import { StyledDoc } from '@/components/doc/progressspinner/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/progressspinner/theming/tailwinddoc';
@@ -44,11 +43,6 @@ const SkeletonDemo = () => {
id: 'pt.progressspinner.options',
label: 'ProgressSpinner PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/radiobutton/index.js b/pages/radiobutton/index.js
index 883a210365..83a8ff6f48 100644
--- a/pages/radiobutton/index.js
+++ b/pages/radiobutton/index.js
@@ -7,7 +7,6 @@ import { FilledDoc } from '@/components/doc/radiobutton/filleddoc';
import { GroupDoc } from '@/components/doc/radiobutton/groupdoc';
import { ImportDoc } from '@/components/doc/radiobutton/importdoc';
import { InvalidDoc } from '@/components/doc/radiobutton/invaliddoc';
-import { PTDoc } from '@/components/doc/radiobutton/pt/ptdoc';
import { Wireframe } from '@/components/doc/radiobutton/pt/wireframe';
import { StyledDoc } from '@/components/doc/radiobutton/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/radiobutton/theming/tailwinddoc';
@@ -60,11 +59,6 @@ const RadioButtonDemo = () => {
id: 'pt.radiobutton.options',
label: 'RadioButton PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/rating/index.js b/pages/rating/index.js
index f379a7fb1c..83ff46ad1d 100644
--- a/pages/rating/index.js
+++ b/pages/rating/index.js
@@ -5,7 +5,6 @@ import { BasicDoc } from '@/components/doc/rating/basicdoc';
import { DisabledDoc } from '@/components/doc/rating/disableddoc';
import { ImportDoc } from '@/components/doc/rating/importdoc';
import { NumberOfStarsDoc } from '@/components/doc/rating/numberofstarsdoc';
-import { PTDoc } from '@/components/doc/rating/pt/ptdoc';
import { Wireframe } from '@/components/doc/rating/pt/wireframe';
import { ReadOnlyDoc } from '@/components/doc/rating/readonlydoc';
import { TemplateDoc } from '@/components/doc/rating/templatedoc';
@@ -67,11 +66,6 @@ const RatingDemo = () => {
id: 'pt.rating.options',
label: 'Rating PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/scrollpanel/index.js b/pages/scrollpanel/index.js
index afc639d4ef..16832be1b5 100644
--- a/pages/scrollpanel/index.js
+++ b/pages/scrollpanel/index.js
@@ -4,7 +4,6 @@ import { AccessibilityDoc } from '@/components/doc/scrollpanel/accessibilitydoc'
import { BasicDoc } from '@/components/doc/scrollpanel/basicdoc';
import { CustomDemo } from '@/components/doc/scrollpanel/customdoc';
import { ImportDoc } from '@/components/doc/scrollpanel/importdoc';
-import { PTDoc } from '@/components/doc/scrollpanel/pt/ptdoc';
import { Wireframe } from '@/components/doc/scrollpanel/pt/wireframe';
import { StyledDoc } from '@/components/doc/scrollpanel/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/scrollpanel/theming/tailwinddoc';
@@ -44,11 +43,6 @@ const ScrollPanelDemo = () => {
id: 'pt.scrollpanel.options',
label: 'ScrollPanel PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/scrolltop/index.js b/pages/scrolltop/index.js
index 0087b31259..ad54bc601b 100644
--- a/pages/scrolltop/index.js
+++ b/pages/scrolltop/index.js
@@ -4,7 +4,6 @@ import { AccessibilityDoc } from '@/components/doc/scrolltop/accessibilitydoc';
import { BasicDoc } from '@/components/doc/scrolltop/basicdoc';
import { ElementDoc } from '@/components/doc/scrolltop/elementdoc';
import { ImportDoc } from '@/components/doc/scrolltop/importdoc';
-import { PTDoc } from '@/components/doc/scrolltop/pt/ptdoc';
import { Wireframe } from '@/components/doc/scrolltop/pt/wireframe';
import { StyledDoc } from '@/components/doc/scrolltop/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/scrolltop/theming/tailwinddoc';
@@ -44,11 +43,6 @@ const ScrollTopDemo = () => {
id: 'pt.scrolltop.options',
label: 'ScrollTop PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/selectbutton/index.js b/pages/selectbutton/index.js
index dfe016caf9..0f941ca469 100644
--- a/pages/selectbutton/index.js
+++ b/pages/selectbutton/index.js
@@ -6,7 +6,6 @@ import { DisabledDoc } from '@/components/doc/selectbutton/disableddoc';
import { ImportDoc } from '@/components/doc/selectbutton/importdoc';
import { InvalidDoc } from '@/components/doc/selectbutton/invaliddoc';
import { MultipleDoc } from '@/components/doc/selectbutton/multipledoc';
-import { PTDoc } from '@/components/doc/selectbutton/pt/ptdoc';
import { Wireframe } from '@/components/doc/selectbutton/pt/wireframe';
import { TemplateDoc } from '@/components/doc/selectbutton/templatedoc';
import { StyledDoc } from '@/components/doc/selectbutton/theming/styleddoc';
@@ -60,11 +59,6 @@ const SelectButtonDemo = () => {
id: 'pt.selectbutton.options',
label: 'SelectButton PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/sidebar/index.js b/pages/sidebar/index.js
index 32ad349cd1..d733079f60 100644
--- a/pages/sidebar/index.js
+++ b/pages/sidebar/index.js
@@ -3,15 +3,14 @@ import { DocComponent } from '@/components/doc/common/doccomponent';
import { AccessibilityDoc } from '@/components/doc/sidebar/accessibilitydoc';
import { BasicDoc } from '@/components/doc/sidebar/basicdoc';
import { FullScreenDoc } from '@/components/doc/sidebar/fullscreendoc';
+import { HeadlessDoc } from '@/components/doc/sidebar/headlessdoc';
import { ImportDoc } from '@/components/doc/sidebar/importdoc';
import { PositionDoc } from '@/components/doc/sidebar/positiondoc';
-import { PTDoc } from '@/components/doc/sidebar/pt/ptdoc';
import { Wireframe } from '@/components/doc/sidebar/pt/wireframe';
import { SizeDoc } from '@/components/doc/sidebar/sizedoc';
import { TemplateDoc } from '@/components/doc/sidebar/templatedoc';
import { StyledDoc } from '@/components/doc/sidebar/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/sidebar/theming/tailwinddoc';
-import { HeadlessDoc } from '@/components/doc/sidebar/headlessdoc';
const SidebarDemo = () => {
const docs = [
@@ -67,11 +66,6 @@ const SidebarDemo = () => {
id: 'pt.sidebar.options',
label: 'Sidebar PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/skeleton/index.js b/pages/skeleton/index.js
index 46bd378163..4a77eedb53 100644
--- a/pages/skeleton/index.js
+++ b/pages/skeleton/index.js
@@ -5,7 +5,6 @@ import { CardDoc } from '@/components/doc/skeleton/carddoc';
import { DataTableDoc } from '@/components/doc/skeleton/datatabledoc';
import { ImportDoc } from '@/components/doc/skeleton/importdoc';
import { ListDoc } from '@/components/doc/skeleton/listdoc';
-import { PTDoc } from '@/components/doc/skeleton/pt/ptdoc';
import { Wireframe } from '@/components/doc/skeleton/pt/wireframe';
import { ShapesDoc } from '@/components/doc/skeleton/shapesdoc';
import { StyledDoc } from '@/components/doc/skeleton/theming/styleddoc';
@@ -56,11 +55,6 @@ const SkeletonDemo = () => {
id: 'pt.skeleton.options',
label: 'Skeleton PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/slider/index.js b/pages/slider/index.js
index d3c9d15bc4..c25be71691 100644
--- a/pages/slider/index.js
+++ b/pages/slider/index.js
@@ -5,7 +5,6 @@ import { BasicDoc } from '@/components/doc/slider/basicdoc';
import { FilterDoc } from '@/components/doc/slider/filterdoc';
import { ImportDoc } from '@/components/doc/slider/importdoc';
import { InputDoc } from '@/components/doc/slider/inputdoc';
-import { PTDoc } from '@/components/doc/slider/pt/ptdoc';
import { Wireframe } from '@/components/doc/slider/pt/wireframe';
import { RangeDoc } from '@/components/doc/slider/rangedoc';
import { StepDoc } from '@/components/doc/slider/stepdoc';
@@ -66,11 +65,6 @@ const SliderDemo = () => {
id: 'pt.slider.options',
label: 'Slider PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/speeddial/index.js b/pages/speeddial/index.js
index 0c8f41a695..082e599bed 100644
--- a/pages/speeddial/index.js
+++ b/pages/speeddial/index.js
@@ -6,7 +6,6 @@ import { CustomDoc } from '@/components/doc/speeddial/customdoc';
import { ImportDoc } from '@/components/doc/speeddial/importdoc';
import { LinearDoc } from '@/components/doc/speeddial/lineardoc';
import { MaskDoc } from '@/components/doc/speeddial/maskdoc';
-import { PTDoc } from '@/components/doc/speeddial/pt/ptdoc';
import { Wireframe } from '@/components/doc/speeddial/pt/wireframe';
import { QuarterCircleDoc } from '@/components/doc/speeddial/quartercircledoc';
import { SemiCircleDoc } from '@/components/doc/speeddial/semicircledoc';
@@ -74,11 +73,6 @@ const SpeedDialDemo = () => {
id: 'pt.speeddial.options',
label: 'SpeedDial PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/splitbutton/index.js b/pages/splitbutton/index.js
index c3e8a3d5b0..0c849d254f 100644
--- a/pages/splitbutton/index.js
+++ b/pages/splitbutton/index.js
@@ -7,7 +7,6 @@ import { IconsDoc } from '@/components/doc/splitbutton/iconsdoc';
import { ImportDoc } from '@/components/doc/splitbutton/importdoc';
import { LoadingDoc } from '@/components/doc/splitbutton/loadingdoc';
import { OutlinedDoc } from '@/components/doc/splitbutton/outlineddoc';
-import { PTDoc } from '@/components/doc/splitbutton/pt/ptdoc';
import { Wireframe } from '@/components/doc/splitbutton/pt/wireframe';
import { RaisedDoc } from '@/components/doc/splitbutton/raiseddoc';
import { RaisedTextDoc } from '@/components/doc/splitbutton/raisedtextdoc';
@@ -103,11 +102,6 @@ const SplitButtonDemo = () => {
id: 'pt.splitbutton.options',
label: 'SplitButton PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/splitter/index.js b/pages/splitter/index.js
index eddfc72fd5..56cc8c925c 100644
--- a/pages/splitter/index.js
+++ b/pages/splitter/index.js
@@ -4,7 +4,6 @@ import { AccessibilityDoc } from '@/components/doc/splitter/accessibilitydoc';
import { HorizontalDoc } from '@/components/doc/splitter/horizontaldoc';
import { ImportDoc } from '@/components/doc/splitter/importdoc';
import { NestedDoc } from '@/components/doc/splitter/nesteddoc';
-import { PTDoc } from '@/components/doc/splitter/pt/ptdoc';
import { Wireframe } from '@/components/doc/splitter/pt/wireframe';
import { SizeDoc } from '@/components/doc/splitter/sizedoc';
import { StyledDoc } from '@/components/doc/splitter/theming/styleddoc';
@@ -61,11 +60,6 @@ const SplitterDemo = () => {
id: 'pt.splitterpanel.options',
label: 'SplitterPanel PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/steps/index.js b/pages/steps/index.js
index d26a60e255..d90fe58c00 100644
--- a/pages/steps/index.js
+++ b/pages/steps/index.js
@@ -6,7 +6,6 @@ import { ControlledDoc } from '@/components/doc/steps/controlleddoc';
import { ImportDoc } from '@/components/doc/steps/importdoc';
import { InteractiveDoc } from '@/components/doc/steps/interactivedoc';
import { LinearDoc } from '@/components/doc/steps/lineardoc';
-import { PTDoc } from '@/components/doc/steps/pt/ptdoc';
import { Wireframe } from '@/components/doc/steps/pt/wireframe';
import { TemplateDoc } from '@/components/doc/steps/templatedoc';
import { StyledDoc } from '@/components/doc/steps/theming/styleddoc';
@@ -61,11 +60,6 @@ const StepsDemo = () => {
id: 'pt.steps.options',
label: 'Steps PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/tabmenu/index.js b/pages/tabmenu/index.js
index c22f5b17c0..fedcd9258f 100644
--- a/pages/tabmenu/index.js
+++ b/pages/tabmenu/index.js
@@ -5,7 +5,6 @@ import { BasicDoc } from '@/components/doc/tabmenu/basicdoc';
import { CommandDoc } from '@/components/doc/tabmenu/commanddoc';
import { ControlledDoc } from '@/components/doc/tabmenu/controlleddoc';
import { ImportDoc } from '@/components/doc/tabmenu/importdoc';
-import { PTDoc } from '@/components/doc/tabmenu/pt/ptdoc';
import { Wireframe } from '@/components/doc/tabmenu/pt/wireframe';
import { RouterDoc } from '@/components/doc/tabmenu/routerdoc';
import { TemplateDoc } from '@/components/doc/tabmenu/templatedoc';
@@ -61,11 +60,6 @@ const TabMenuDemo = () => {
id: 'pt.tabmenu.options',
label: 'TabMenu PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/tabview/index.js b/pages/tabview/index.js
index 6b6fc70fe7..c4b0e808ae 100644
--- a/pages/tabview/index.js
+++ b/pages/tabview/index.js
@@ -7,7 +7,6 @@ import { ControlledDoc } from '@/components/doc/tabview/controlleddoc';
import { DisabledDoc } from '@/components/doc/tabview/disableddoc';
import { HeaderIconDoc } from '@/components/doc/tabview/headericondoc';
import { ImportDoc } from '@/components/doc/tabview/importdoc';
-import { PTDoc } from '@/components/doc/tabview/pt/ptdoc';
import { Wireframe } from '@/components/doc/tabview/pt/wireframe';
import { ScrollableDoc } from '@/components/doc/tabview/scrollabledoc';
import { TemplateDoc } from '@/components/doc/tabview/templatedoc';
@@ -79,11 +78,6 @@ const TabViewDemo = () => {
id: 'pt.tabpanel.options',
label: 'TabPanel PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/tag/index.js b/pages/tag/index.js
index fd61d253ec..80365487b1 100644
--- a/pages/tag/index.js
+++ b/pages/tag/index.js
@@ -5,7 +5,6 @@ import { BasicDoc } from '@/components/doc/tag/basicdoc';
import { IconDoc } from '@/components/doc/tag/icondoc';
import { ImportDoc } from '@/components/doc/tag/importdoc';
import { PillDoc } from '@/components/doc/tag/pilldoc';
-import { PTDoc } from '@/components/doc/tag/pt/ptdoc';
import { Wireframe } from '@/components/doc/tag/pt/wireframe';
import { SeverityDoc } from '@/components/doc/tag/severitydoc';
import { TemplateDoc } from '@/components/doc/tag/templatedoc';
@@ -62,11 +61,6 @@ const TerminalDemo = () => {
id: 'pt.tag.options',
label: 'Tag PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/terminal/index.js b/pages/terminal/index.js
index 8e90a43eea..29eb0e685c 100644
--- a/pages/terminal/index.js
+++ b/pages/terminal/index.js
@@ -3,7 +3,6 @@ import { DocComponent } from '@/components/doc/common/doccomponent';
import { AccessibilityDoc } from '@/components/doc/terminal/accessibilitydoc';
import { BasicDoc } from '@/components/doc/terminal/basicdoc';
import { ImportDoc } from '@/components/doc/terminal/importdoc';
-import { PTDoc } from '@/components/doc/terminal/pt/ptdoc';
import { Wireframe } from '@/components/doc/terminal/pt/wireframe';
import { StyledDoc } from '@/components/doc/terminal/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/terminal/theming/tailwinddoc';
@@ -38,11 +37,6 @@ const TerminalDemo = () => {
id: 'pt.terminal.options',
label: 'Terminal PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/tieredmenu/index.js b/pages/tieredmenu/index.js
index 81fa55a0a2..5246716b9a 100644
--- a/pages/tieredmenu/index.js
+++ b/pages/tieredmenu/index.js
@@ -5,7 +5,6 @@ import { BasicDoc } from '@/components/doc/tieredmenu/basicdoc';
import { CommandDoc } from '@/components/doc/tieredmenu/commanddoc';
import { ImportDoc } from '@/components/doc/tieredmenu/importdoc';
import { PopupDoc } from '@/components/doc/tieredmenu/popupdoc';
-import { PTDoc } from '@/components/doc/tieredmenu/pt/ptdoc';
import { Wireframe } from '@/components/doc/tieredmenu/pt/wireframe';
import { RouterDoc } from '@/components/doc/tieredmenu/routerdoc';
import { TemplateDoc } from '@/components/doc/tieredmenu/templatedoc';
@@ -60,11 +59,6 @@ const TieredMenuDemo = () => {
id: 'pt.tieredmenu.options',
label: 'TieredMenu PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/timeline/index.js b/pages/timeline/index.js
index 497150b24b..99a21c6ab8 100644
--- a/pages/timeline/index.js
+++ b/pages/timeline/index.js
@@ -6,7 +6,6 @@ import { BasicDoc } from '@/components/doc/timeline/basicdoc';
import { HorizontalDoc } from '@/components/doc/timeline/horizontaldoc';
import { ImportDoc } from '@/components/doc/timeline/importdoc';
import { OppositeDoc } from '@/components/doc/timeline/oppositedoc';
-import { PTDoc } from '@/components/doc/timeline/pt/ptdoc';
import { Wireframe } from '@/components/doc/timeline/pt/wireframe';
import { TemplateDoc } from '@/components/doc/timeline/templatedoc';
import { StyledDoc } from '@/components/doc/timeline/theming/styleddoc';
@@ -61,11 +60,6 @@ const TimelineDemo = () => {
id: 'pt.timeline.options',
label: 'Timeline PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/toast/index.js b/pages/toast/index.js
index 4c26035924..27f26a509b 100644
--- a/pages/toast/index.js
+++ b/pages/toast/index.js
@@ -6,7 +6,6 @@ import { HeadlessDoc } from '@/components/doc/toast/headlessdoc';
import { ImportDoc } from '@/components/doc/toast/importdoc';
import { MultipleDoc } from '@/components/doc/toast/multipledoc';
import { PositionDoc } from '@/components/doc/toast/positiondoc';
-import { PTDoc } from '@/components/doc/toast/pt/ptdoc';
import { Wireframe } from '@/components/doc/toast/pt/wireframe';
import { SeverityDoc } from '@/components/doc/toast/severitydoc';
import { StickyDoc } from '@/components/doc/toast/stickydoc';
@@ -72,11 +71,6 @@ const ToastDemo = () => {
id: 'pt.toast.options',
label: 'Toast PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/togglebutton/index.js b/pages/togglebutton/index.js
index 6577f6e37e..92b0e17cef 100644
--- a/pages/togglebutton/index.js
+++ b/pages/togglebutton/index.js
@@ -6,7 +6,6 @@ import { CustomizedDoc } from '@/components/doc/togglebutton/customizeddoc';
import { DisabledDoc } from '@/components/doc/togglebutton/disableddoc';
import { ImportDoc } from '@/components/doc/togglebutton/importdoc';
import { InvalidDoc } from '@/components/doc/togglebutton/invaliddoc';
-import { PTDoc } from '@/components/doc/togglebutton/pt/ptdoc';
import { Wireframe } from '@/components/doc/togglebutton/pt/wireframe';
import { StyledDoc } from '@/components/doc/togglebutton/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/togglebutton/theming/tailwinddoc';
@@ -54,11 +53,6 @@ const ToggleButtonDemo = () => {
id: 'pt.togglebutton.options',
label: 'ToggleButton PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/toolbar/index.js b/pages/toolbar/index.js
index 555ba88f5a..684583a379 100644
--- a/pages/toolbar/index.js
+++ b/pages/toolbar/index.js
@@ -2,11 +2,10 @@ import DocApiTable from '@/components/doc/common/docapitable';
import { DocComponent } from '@/components/doc/common/doccomponent';
import { AccessibilityDoc } from '@/components/doc/toolbar/accessibilitydoc';
import { BasicDoc } from '@/components/doc/toolbar/basicdoc';
+import { CustomDoc } from '@/components/doc/toolbar/customdoc';
import { ImportDoc } from '@/components/doc/toolbar/importdoc';
-import { PTDoc } from '@/components/doc/toolbar/pt/ptdoc';
import { Wireframe } from '@/components/doc/toolbar/pt/wireframe';
import { StyledDoc } from '@/components/doc/toolbar/theming/styleddoc';
-import { CustomDoc } from '@/components/doc/toolbar/customdoc';
import { TailwindDoc } from '@/components/doc/toolbar/theming/tailwinddoc';
const ToolbarDemo = () => {
@@ -43,11 +42,6 @@ const ToolbarDemo = () => {
id: 'pt.toolbar.options',
label: 'Toolbar PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/tooltip/index.js b/pages/tooltip/index.js
index 288883ce37..d7d1b806f7 100644
--- a/pages/tooltip/index.js
+++ b/pages/tooltip/index.js
@@ -8,7 +8,6 @@ import { EventDoc } from '@/components/doc/tooltip/eventdoc';
import { ImportDoc } from '@/components/doc/tooltip/importdoc';
import { MouseTrackDoc } from '@/components/doc/tooltip/mousetrackdoc';
import { PositionDoc } from '@/components/doc/tooltip/positiondoc';
-import { PTDoc } from '@/components/doc/tooltip/pt/ptdoc';
import { Wireframe } from '@/components/doc/tooltip/pt/wireframe';
import { ReactiveDoc } from '@/components/doc/tooltip/reactivedoc';
import { TargetDoc } from '@/components/doc/tooltip/targetdoc';
@@ -85,11 +84,6 @@ const TooltipDemo = () => {
id: 'pt.tooltip.options',
label: 'Tooltip PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/tree/index.js b/pages/tree/index.js
index b25b07f84e..330b9105d2 100644
--- a/pages/tree/index.js
+++ b/pages/tree/index.js
@@ -9,7 +9,6 @@ import { EventsDoc } from '@/components/doc/tree/eventsdoc';
import { FilterDoc } from '@/components/doc/tree/filterdoc';
import { ImportDoc } from '@/components/doc/tree/importdoc';
import { LazyDoc } from '@/components/doc/tree/lazydoc';
-import { PTDoc } from '@/components/doc/tree/pt/ptdoc';
import { Wireframe } from '@/components/doc/tree/pt/wireframe';
import { CheckboxSelectionDoc } from '@/components/doc/tree/selection/checkboxselectiondoc';
import { MultipleSelectionDoc } from '@/components/doc/tree/selection/multipleselectiondoc';
@@ -104,11 +103,6 @@ const TreeDemo = () => {
id: 'pt.tree.options',
label: 'Tree PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/treeselect/index.js b/pages/treeselect/index.js
index 51d76c209a..bff38fd61f 100644
--- a/pages/treeselect/index.js
+++ b/pages/treeselect/index.js
@@ -12,7 +12,6 @@ import { FloatLabelDoc } from '@/components/doc/treeselect/floatlabeldoc';
import { ImportDoc } from '@/components/doc/treeselect/importdoc';
import { InvalidDoc } from '@/components/doc/treeselect/invaliddoc';
import { MultipleDoc } from '@/components/doc/treeselect/multipledoc';
-import { PTDoc } from '@/components/doc/treeselect/pt/ptdoc';
import { Wireframe } from '@/components/doc/treeselect/pt/wireframe';
import { StyledDoc } from '@/components/doc/treeselect/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/treeselect/theming/tailwinddoc';
@@ -90,11 +89,6 @@ const TreeSelectDemo = () => {
id: 'pt.treeselect.options',
label: 'TreeSelect PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/treetable/index.js b/pages/treetable/index.js
index 0ac91feaf3..2eb25707ef 100644
--- a/pages/treetable/index.js
+++ b/pages/treetable/index.js
@@ -14,7 +14,6 @@ import { ImportDoc } from '@/components/doc/treetable/importdoc';
import { LazyLoadDoc } from '@/components/doc/treetable/lazyloaddoc';
import { PaginatorBasicDoc } from '@/components/doc/treetable/paginator/basicdoc';
import { PaginatorTemplateDoc } from '@/components/doc/treetable/paginator/templatedoc';
-import { PTDoc } from '@/components/doc/treetable/pt/ptdoc';
import { Wireframe } from '@/components/doc/treetable/pt/wireframe';
import { ReorderDoc } from '@/components/doc/treetable/reorderdoc';
import { ExpandModeDoc } from '@/components/doc/treetable/resize/expandmodedoc';
@@ -216,11 +215,6 @@ const TreeTableDemo = () => {
id: 'pt.column.options',
label: 'Column PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/tristatecheckbox/index.js b/pages/tristatecheckbox/index.js
index edd2880e29..cb3de8d065 100644
--- a/pages/tristatecheckbox/index.js
+++ b/pages/tristatecheckbox/index.js
@@ -6,7 +6,6 @@ import { DisabledDoc } from '@/components/doc/tristatecheckbox/disableddoc';
import { FilledDoc } from '@/components/doc/tristatecheckbox/filleddoc';
import { ImportDoc } from '@/components/doc/tristatecheckbox/importdoc';
import { InvalidDoc } from '@/components/doc/tristatecheckbox/invaliddoc';
-import { PTDoc } from '@/components/doc/tristatecheckbox/pt/ptdoc';
import { Wireframe } from '@/components/doc/tristatecheckbox/pt/wireframe';
import { StyledDoc } from '@/components/doc/tristatecheckbox/theming/styleddoc';
import { TailwindDoc } from '@/components/doc/tristatecheckbox/theming/tailwinddoc';
@@ -54,11 +53,6 @@ const TriStateCheckboxDemo = () => {
id: 'pt.tristatecheckbox.options',
label: 'TriStateCheckbox PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];
diff --git a/pages/virtualscroller/index.js b/pages/virtualscroller/index.js
index 4a4ecc4e39..2b078c6835 100644
--- a/pages/virtualscroller/index.js
+++ b/pages/virtualscroller/index.js
@@ -8,7 +8,6 @@ import { HorizontalDoc } from '@/components/doc/virtualscroller/horizontaldoc';
import { ImportDoc } from '@/components/doc/virtualscroller/importdoc';
import { LazyDoc } from '@/components/doc/virtualscroller/lazydoc';
import { LoadingDoc } from '@/components/doc/virtualscroller/loadingdoc';
-import { PTDoc } from '@/components/doc/virtualscroller/pt/ptdoc';
import { Wireframe } from '@/components/doc/virtualscroller/pt/wireframe';
import { StyledDoc } from '@/components/doc/virtualscroller/theming/styleddoc';
@@ -66,11 +65,6 @@ const VirtualScrollerDemo = () => {
id: 'pt.virtualscroller.options',
label: 'VirtualScroller PT Options',
component: DocApiTable
- },
- {
- id: 'pt.demo',
- label: 'Example',
- component: PTDoc
}
];