+ PrimeReact offers a built-in Tailwind theme to get you started quickly. The default values related to the component are displayed below. The component can easily be styled with your own design based on Tailwind utilities, see the{' '}
+ Tailwind Customization section for an example.
+
+
+
A playground sample with the pre-built Tailwind theme.
+ PrimeReact offers a built-in Tailwind theme to get you started quickly. The default values related to the component are displayed below. The component can easily be styled with your own design based on Tailwind utilities, see the{' '}
+ Tailwind Customization section for an example.
+
+
+
A playground sample with the pre-built Tailwind theme.
+
+
+ >
+ );
+}
diff --git a/components/doc/blockui/basicdoc.js b/components/doc/blockui/basicdoc.js
index 28480808fc..e4946ce528 100644
--- a/components/doc/blockui/basicdoc.js
+++ b/components/doc/blockui/basicdoc.js
@@ -1,9 +1,9 @@
-import { DocSectionCode } from '../common/docsectioncode';
-import { DocSectionText } from '../common/docsectiontext';
+import { useState } from 'react';
import { BlockUI } from '../../../components/lib/blockui/BlockUI';
import { Panel } from '../../../components/lib/panel/Panel';
-import { useState } from 'react';
import { Button } from '../../lib/button/Button';
+import { DocSectionCode } from '../common/docsectioncode';
+import { DocSectionText } from '../common/docsectiontext';
export function BasicDoc(props) {
const [blocked, setBlocked] = useState(false);
@@ -25,9 +25,10 @@ export function BasicDoc(props) {
`,
javascript: `
-import React from 'react';
+import React, { useState } from 'react';
import { BlockUI } from 'primereact/blockui';
import { Panel } from 'primereact/panel';
+import { Button } from 'primereact/button';
export default function BasicDemo() {
const [blocked, setBlocked] = useState(false);
@@ -52,9 +53,10 @@ export default function BasicDemo() {
}
`,
typescript: `
-import React from 'react';
+import React, { useState } from 'react';
import { BlockUI } from 'primereact/blockui';
import { Panel } from 'primereact/panel';
+import { Button } from 'primereact/button';
export default function BasicDemo() {
const [blocked, setBlocked] = useState(false);
diff --git a/components/doc/blockui/templatedoc.js b/components/doc/blockui/templatedoc.js
index 439cdf3db3..568ba75771 100644
--- a/components/doc/blockui/templatedoc.js
+++ b/components/doc/blockui/templatedoc.js
@@ -1,9 +1,9 @@
-import { DocSectionCode } from '../common/docsectioncode';
-import { DocSectionText } from '../common/docsectiontext';
+import { useState } from 'react';
import { BlockUI } from '../../../components/lib/blockui/BlockUI';
import { Panel } from '../../../components/lib/panel/Panel';
-import { useState } from 'react';
import { Button } from '../../lib/button/Button';
+import { DocSectionCode } from '../common/docsectioncode';
+import { DocSectionText } from '../common/docsectiontext';
export function TemplateDoc(props) {
const [blocked, setBlocked] = useState(false);
@@ -25,9 +25,10 @@ export function TemplateDoc(props) {
`,
javascript: `
-import React from 'react';
+import React, { useState } from 'react';
import { BlockUI } from 'primereact/blockui';
import { Panel } from 'primereact/panel';
+import { Button } from 'primereact/button';
export default function TemplateDemo() {
const [blocked, setBlocked] = useState(false);
@@ -52,9 +53,10 @@ export default function TemplateDemo() {
}
`,
typescript: `
-import React from 'react';
+import React, { useState } from 'react';
import { BlockUI } from 'primereact/blockui';
import { Panel } from 'primereact/panel';
+import { Button } from 'primereact/button';
export default function TemplateDemo() {
const [blocked, setBlocked] = useState(false);
diff --git a/components/doc/blockui/theming/styleddoc.js b/components/doc/blockui/theming/styleddoc.js
new file mode 100644
index 0000000000..148736bcd7
--- /dev/null
+++ b/components/doc/blockui/theming/styleddoc.js
@@ -0,0 +1,31 @@
+import { DocSectionText } from '../../common/docsectiontext';
+
+export function StyledDoc(props) {
+ return (
+ <>
+
+
List of class names used in the styled mode.
+
+
+
+
+
+
Name
+
Element
+
+
+
+
+
p-blockui
+
Mask element.
+
+
+
p-blockui-document
+
Mask element in full screen mode.
+
+
+
+
+ >
+ );
+}
diff --git a/components/doc/blockui/theming/tailwinddoc.js b/components/doc/blockui/theming/tailwinddoc.js
new file mode 100644
index 0000000000..9ce7b2cb66
--- /dev/null
+++ b/components/doc/blockui/theming/tailwinddoc.js
@@ -0,0 +1,59 @@
+import Link from 'next/link';
+import { DocSectionCode } from '../../common/docsectioncode';
+import { DocSectionText } from '../../common/docsectiontext';
+
+export function TailwindDoc(props) {
+ const code = {
+ basic: `
+blockui: {
+ root: 'relative',
+ mask: 'bg-black/40'
+}
+ `
+ };
+
+ const code2 = {
+ javascript: `
+import React, { useState } from 'react';
+import { BlockUI } from 'primereact/blockui';
+import { Panel } from 'primereact/panel';
+import { Button } from 'primereact/button';
+
+export default function UnstyledDemo() {
+ const [blocked, setBlocked] = useState(false);
+
+ 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 (
+ <>
+
+
+ PrimeReact offers a built-in Tailwind theme to get you started quickly. The default values related to the component are displayed below. The component can easily be styled with your own design based on Tailwind utilities, see the{' '}
+ Tailwind Customization section for an example.
+
+
+
A playground sample with the pre-built Tailwind theme.
+ PrimeReact offers a built-in Tailwind theme to get you started quickly. The default values related to the component are displayed below. The component can easily be styled with your own design based on Tailwind utilities, see the{' '}
+ Tailwind Customization section for an example.
+
+
+
A playground sample with the pre-built Tailwind theme.
+ 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 (
+ <>
+
+
+ PrimeReact offers a built-in Tailwind theme to get you started quickly. The default values related to the component are displayed below. The component can easily be styled with your own design based on Tailwind utilities, see the{' '}
+ Tailwind Customization section for an example.
+
+
+
A playground sample with the pre-built Tailwind theme.
+ PrimeReact offers a built-in Tailwind theme to get you started quickly. The default values related to the component are displayed below. The component can easily be styled with your own design based on Tailwind utilities, see the{' '}
+ Tailwind Customization section for an example.
+
+
+
A playground sample with the pre-built Tailwind theme.
+ PrimeReact offers a built-in Tailwind theme to get you started quickly. The default values related to the component are displayed below. The component can easily be styled with your own design based on Tailwind utilities, see the{' '}
+ Tailwind Customization section for an example.
+
+
+
A playground sample with the pre-built Tailwind theme.
+ PrimeReact offers a built-in Tailwind theme to get you started quickly. The default values related to the component are displayed below. The component can easily be styled with your own design based on Tailwind utilities, see the{' '}
+ Tailwind Customization section for an example.
+
+
+
A playground sample with the pre-built Tailwind theme.
+
+
+ >
+ );
+}
diff --git a/components/doc/scrolltop/elementdoc.js b/components/doc/scrolltop/elementdoc.js
index 7b8d05647d..664602ec4e 100644
--- a/components/doc/scrolltop/elementdoc.js
+++ b/components/doc/scrolltop/elementdoc.js
@@ -1,7 +1,7 @@
import React from 'react';
+import { ScrollTop } from '../../lib/scrolltop/ScrollTop';
import { DocSectionCode } from '../common/docsectioncode';
import { DocSectionText } from '../common/docsectiontext';
-import { ScrollTop } from '../../lib/scrolltop/ScrollTop';
export function ElementDoc(props) {
const code = {
@@ -11,7 +11,6 @@ export function ElementDoc(props) {
javascript: `
import React from 'react';
import { ScrollTop } from 'primereact/scrolltop';
-import { ScrollPanel } from 'primereact/scrollpanel';
export default function ElementDemo() {
return (
@@ -33,7 +32,6 @@ export default function ElementDemo() {
typescript: `
import React from 'react';
import { ScrollTop } from 'primereact/scrolltop';
-import { ScrollPanel } from 'primereact/scrollpanel';
export default function ElementDemo() {
return (
diff --git a/components/doc/scrolltop/theming/styleddoc.js b/components/doc/scrolltop/theming/styleddoc.js
new file mode 100644
index 0000000000..61c5a769dd
--- /dev/null
+++ b/components/doc/scrolltop/theming/styleddoc.js
@@ -0,0 +1,31 @@
+import { DocSectionText } from '../../common/docsectiontext';
+
+export function StyledDoc(props) {
+ 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 (
+ <>
+
+
+ PrimeReact offers a built-in Tailwind theme to get you started quickly. The default values related to the component are displayed below. The component can easily be styled with your own design based on Tailwind utilities, see the{' '}
+ Tailwind Customization section for an example.
+
+
+
A playground sample with the pre-built Tailwind theme.
+
+
+ >
+ );
+}
diff --git a/components/doc/skeleton/styledoc.js b/components/doc/skeleton/styledoc.js
index 7a3128d4e5..6a8943a2e6 100644
--- a/components/doc/skeleton/styledoc.js
+++ b/components/doc/skeleton/styledoc.js
@@ -1,5 +1,5 @@
-import { DocSectionText } from '../common/docsectiontext';
import Link from 'next/link';
+import { DocSectionText } from '../common/docsectiontext';
export function StyleDoc() {
return (
diff --git a/components/doc/skeleton/theming/styleddoc.js b/components/doc/skeleton/theming/styleddoc.js
new file mode 100644
index 0000000000..8aff3b0519
--- /dev/null
+++ b/components/doc/skeleton/theming/styleddoc.js
@@ -0,0 +1,35 @@
+import { DocSectionText } from '../../common/docsectiontext';
+
+export function StyledDoc(props) {
+ return (
+ <>
+
+
List of class names used in the styled mode.
+
+
+
+
+
+
Name
+
Element
+
+
+
+
+
p-skeleton
+
Container element.
+
+
+
p-skeleton-circle
+
Container element of a determinate progressbar.
+
+
+
p-skeleton-none
+
Container element of an indeterminate progressbar.
+ PrimeReact offers a built-in Tailwind theme to get you started quickly. The default values related to the component are displayed below. The component can easily be styled with your own design based on Tailwind utilities, see the{' '}
+ Tailwind Customization section for an example.
+
+
+
A playground sample with the pre-built Tailwind theme.
+ PrimeReact offers a built-in Tailwind theme to get you started quickly. The default values related to the component are displayed below. The component can easily be styled with your own design based on Tailwind utilities, see the{' '}
+ Tailwind Customization section for an example.
+
+
+
A playground sample with the pre-built Tailwind theme.
+ 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 (
+ <>
+
+
+ PrimeReact offers a built-in Tailwind theme to get you started quickly. The default values related to the component are displayed below. The component can easily be styled with your own design based on Tailwind utilities, see the{' '}
+ Tailwind Customization section for an example.
+
+
+
A playground sample with the pre-built Tailwind theme.
+
+
+ >
+ );
+}
diff --git a/components/lib/passthrough/tailwind/index.js b/components/lib/passthrough/tailwind/index.js
index 576a73826d..f0b05ff36f 100644
--- a/components/lib/passthrough/tailwind/index.js
+++ b/components/lib/passthrough/tailwind/index.js
@@ -785,9 +785,13 @@ const Tailwind = {
})
}),
cancelitem: ({ context }) => ({
- className: classNames('inline-flex items-center cursor-pointer', {
- 'outline-none outline-offset-0 shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]': context.focused
- })
+ className: classNames(
+ 'inline-flex items-center cursor-pointer'
+
+ // {
+ // 'outline-none outline-offset-0 shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]': context.focused
+ // }
+ )
}),
cancelicon: {
className: classNames('text-red-500', 'w-5 h-5', 'transition duration-200 ease-in')
@@ -916,9 +920,9 @@ const Tailwind = {
'inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden relative',
'px-4 py-3 rounded-md text-base w-36',
'border transition duration-200 ease-in-out',
- {
- 'outline-none outline-offset-0 shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]': context.focused
- },
+ // {
+ // 'outline-none outline-offset-0 shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]': context.focused
+ // },
{
'bg-white dark:bg-gray-900 border-gray-300 dark:border-blue-900/40 text-gray-700 dark:text-white/80 hover:bg-gray-100 dark:hover:bg-gray-800/80 hover:border-gray-300 dark:hover:bg-gray-800/70 hover:text-gray-700 dark:hover:text-white/80':
!props.checked,
diff --git a/pages/avatar/index.js b/pages/avatar/index.js
index 9c7155d423..a19927618e 100644
--- a/pages/avatar/index.js
+++ b/pages/avatar/index.js
@@ -5,11 +5,13 @@ 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 { StyleDoc } from '../../components/doc/avatar/styledoc';
-import { DocComponent } from '../../components/doc/common/doccomponent';
+import { PTDoc } from '../../components/doc/avatar/pt/ptdoc';
import { Wireframe } from '../../components/doc/avatar/pt/wireframe';
+import { StyleDoc } from '../../components/doc/avatar/styledoc';
+import { StyledDoc } from '../../components/doc/avatar/theming/styleddoc';
+import { TailwindDoc } from '../../components/doc/avatar/theming/tailwinddoc';
import DocApiTable from '../../components/doc/common/docapitable';
-import { PTDoc } from '../../components/doc/avatar/pt/ptdoc';
+import { DocComponent } from '../../components/doc/common/doccomponent';
const AvatarDemo = () => {
const docs = [
@@ -73,7 +75,27 @@ const AvatarDemo = () => {
}
];
- return ;
+ const themingDocs = [
+ {
+ id: 'styled',
+ label: 'Styled',
+ component: StyledDoc
+ },
+ {
+ id: 'unstyled',
+ label: 'Unstyled',
+ description: 'Theming is implemented with the pass through properties in unstyled mode.',
+ children: [
+ {
+ id: 'tailwind',
+ label: 'Tailwind',
+ component: TailwindDoc
+ }
+ ]
+ }
+ ];
+
+ return ;
};
export default AvatarDemo;
diff --git a/pages/badge/index.js b/pages/badge/index.js
index 19e63c0c04..914e9e5278 100644
--- a/pages/badge/index.js
+++ b/pages/badge/index.js
@@ -4,13 +4,15 @@ 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';
import { StyleDoc } from '../../components/doc/badge/styledoc';
-import { DocComponent } from '../../components/doc/common/doccomponent';
-import { Wireframe } from '../../components/doc/badge/pt/wireframe';
+import { StyledDoc } from '../../components/doc/badge/theming/styleddoc';
+import { TailwindDoc } from '../../components/doc/badge/theming/tailwinddoc';
import DocApiTable from '../../components/doc/common/docapitable';
-import { PTDoc } from '../../components/doc/badge/pt/ptdoc';
+import { DocComponent } from '../../components/doc/common/doccomponent';
const BadgeDemo = () => {
const docs = [
@@ -74,7 +76,27 @@ const BadgeDemo = () => {
}
];
- return ;
+ const themingDocs = [
+ {
+ id: 'styled',
+ label: 'Styled',
+ component: StyledDoc
+ },
+ {
+ id: 'unstyled',
+ label: 'Unstyled',
+ description: 'Theming is implemented with the pass through properties in unstyled mode.',
+ children: [
+ {
+ id: 'tailwind',
+ label: 'Tailwind',
+ component: TailwindDoc
+ }
+ ]
+ }
+ ];
+
+ return ;
};
export default BadgeDemo;
diff --git a/pages/blockui/index.js b/pages/blockui/index.js
index d414b796d0..369832820b 100644
--- a/pages/blockui/index.js
+++ b/pages/blockui/index.js
@@ -3,12 +3,14 @@ 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 { StyleDoc } from '../../components/doc/blockui/styledoc';
import { TemplateDoc } from '../../components/doc/blockui/templatedoc';
-import { DocComponent } from '../../components/doc/common/doccomponent';
+import { StyledDoc } from '../../components/doc/blockui/theming/styleddoc';
+import { TailwindDoc } from '../../components/doc/blockui/theming/tailwinddoc';
import DocApiTable from '../../components/doc/common/docapitable';
-import { PTDoc } from '../../components/doc/blockui/pt/ptdoc';
-import { Wireframe } from '../../components/doc/blockui/pt/wireframe';
+import { DocComponent } from '../../components/doc/common/doccomponent';
const BlockUIDemo = () => {
const docs = [
@@ -62,7 +64,27 @@ const BlockUIDemo = () => {
}
];
- return ;
+ const themingDocs = [
+ {
+ id: 'styled',
+ label: 'Styled',
+ component: StyledDoc
+ },
+ {
+ id: 'unstyled',
+ label: 'Unstyled',
+ description: 'Theming is implemented with the pass through properties in unstyled mode.',
+ children: [
+ {
+ id: 'tailwind',
+ label: 'Tailwind',
+ component: TailwindDoc
+ }
+ ]
+ }
+ ];
+
+ return ;
};
export default BlockUIDemo;
diff --git a/pages/chip/index.js b/pages/chip/index.js
index 8ccb0a67cb..479ed68950 100644
--- a/pages/chip/index.js
+++ b/pages/chip/index.js
@@ -4,12 +4,14 @@ 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 { StyleDoc } from '../../components/doc/chip/styledoc';
import { TemplateDoc } from '../../components/doc/chip/templatedoc';
-import { DocComponent } from '../../components/doc/common/doccomponent';
-import { Wireframe } from '../../components/doc/chip/pt/wireframe';
+import { StyledDoc } from '../../components/doc/chip/theming/styleddoc';
+import { TailwindDoc } from '../../components/doc/chip/theming/tailwinddoc';
import DocApiTable from '../../components/doc/common/docapitable';
-import { PTDoc } from '../../components/doc/chip/pt/ptdoc';
+import { DocComponent } from '../../components/doc/common/doccomponent';
const ChipDemo = () => {
const docs = [
@@ -68,7 +70,27 @@ const ChipDemo = () => {
}
];
- return ;
+ const themingDocs = [
+ {
+ id: 'styled',
+ label: 'Styled',
+ component: StyledDoc
+ },
+ {
+ id: 'unstyled',
+ label: 'Unstyled',
+ description: 'Theming is implemented with the pass through properties in unstyled mode.',
+ children: [
+ {
+ id: 'tailwind',
+ label: 'Tailwind',
+ component: TailwindDoc
+ }
+ ]
+ }
+ ];
+
+ return ;
};
export default ChipDemo;
diff --git a/pages/inplace/index.js b/pages/inplace/index.js
index 8016e63d0e..5a9374f3fd 100644
--- a/pages/inplace/index.js
+++ b/pages/inplace/index.js
@@ -1,4 +1,5 @@
import React from 'react';
+import DocApiTable from '../../components/doc/common/docapitable';
import { DocComponent } from '../../components/doc/common/doccomponent';
import { AccessibilityDoc } from '../../components/doc/inplace/accessibilitydoc';
import { BasicDoc } from '../../components/doc/inplace/basicdoc';
@@ -6,10 +7,11 @@ 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 { StyleDoc } from '../../components/doc/inplace/styledoc';
import { PTDoc } from '../../components/doc/inplace/pt/ptdoc';
-import DocApiTable from '../../components/doc/common/docapitable';
import { Wireframe } from '../../components/doc/inplace/pt/wireframe';
+import { StyleDoc } from '../../components/doc/inplace/styledoc';
+import { StyledDoc } from '../../components/doc/inplace/theming/styleddoc';
+import { TailwindDoc } from '../../components/doc/inplace/theming/tailwinddoc';
const ChipDemo = () => {
const docs = [
@@ -68,6 +70,26 @@ const ChipDemo = () => {
}
];
+ const themingDocs = [
+ {
+ id: 'styled',
+ label: 'Styled',
+ component: StyledDoc
+ },
+ {
+ id: 'unstyled',
+ label: 'Unstyled',
+ description: 'Theming is implemented with the pass through properties in unstyled mode.',
+ children: [
+ {
+ id: 'tailwind',
+ label: 'Tailwind',
+ component: TailwindDoc
+ }
+ ]
+ }
+ ];
+
return (
{
componentDocs={docs}
apiDocs={['Inplace', 'InplaceDisplay', 'InplaceContent']}
ptDocs={ptDocs}
+ themingDocs={themingDocs}
/>
);
};
diff --git a/pages/progressbar/index.js b/pages/progressbar/index.js
index 4fd2467966..9d22a1d542 100644
--- a/pages/progressbar/index.js
+++ b/pages/progressbar/index.js
@@ -1,15 +1,17 @@
import React from 'react';
+import DocApiTable from '../../components/doc/common/docapitable';
import { DocComponent } from '../../components/doc/common/doccomponent';
import { AccessibilityDoc } from '../../components/doc/progressbar/accessibilitydoc';
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 { StyleDoc } from '../../components/doc/progressbar/styledoc';
import { TemplateDoc } from '../../components/doc/progressbar/templatedoc';
-import DocApiTable from '../../components/doc/common/docapitable';
-import { Wireframe } from '../../components/doc/progressbar/pt/wireframe';
-import { PTDoc } from '../../components/doc/progressbar/pt/ptdoc';
+import { StyledDoc } from '../../components/doc/progressbar/theming/styleddoc';
+import { TailwindDoc } from '../../components/doc/progressbar/theming/tailwinddoc';
const ProgressBarDemo = () => {
const docs = [
@@ -68,7 +70,27 @@ const ProgressBarDemo = () => {
}
];
- return ;
+ const themingDocs = [
+ {
+ id: 'styled',
+ label: 'Styled',
+ component: StyledDoc
+ },
+ {
+ id: 'unstyled',
+ label: 'Unstyled',
+ description: 'Theming is implemented with the pass through properties in unstyled mode.',
+ children: [
+ {
+ id: 'tailwind',
+ label: 'Tailwind',
+ component: TailwindDoc
+ }
+ ]
+ }
+ ];
+
+ return ;
};
export default ProgressBarDemo;
diff --git a/pages/progressspinner/index.js b/pages/progressspinner/index.js
index e1442ae7e5..e1ebbcffb6 100644
--- a/pages/progressspinner/index.js
+++ b/pages/progressspinner/index.js
@@ -1,13 +1,15 @@
import React from 'react';
+import DocApiTable from '../../components/doc/common/docapitable';
import { DocComponent } from '../../components/doc/common/doccomponent';
import { AccessibilityDoc } from '../../components/doc/progressspinner/accessibilitydoc';
import { BasicDoc } from '../../components/doc/progressspinner/basicdoc';
import { CustomDoc } from '../../components/doc/progressspinner/customdoc';
import { ImportDoc } from '../../components/doc/progressspinner/importdoc';
-import { StyleDoc } from '../../components/doc/progressspinner/styledoc';
-import { Wireframe } from '../../components/doc/progressspinner/pt/wireframe';
-import DocApiTable from '../../components/doc/common/docapitable';
import { PTDoc } from '../../components/doc/progressspinner/pt/ptdoc';
+import { Wireframe } from '../../components/doc/progressspinner/pt/wireframe';
+import { StyleDoc } from '../../components/doc/progressspinner/styledoc';
+import { StyledDoc } from '../../components/doc/progressspinner/theming/styleddoc';
+import { TailwindDoc } from '../../components/doc/progressspinner/theming/tailwinddoc';
const SkeletonDemo = () => {
const docs = [
@@ -56,7 +58,27 @@ const SkeletonDemo = () => {
}
];
- return ;
+ const themingDocs = [
+ {
+ id: 'styled',
+ label: 'Styled',
+ component: StyledDoc
+ },
+ {
+ id: 'unstyled',
+ label: 'Unstyled',
+ description: 'Theming is implemented with the pass through properties in unstyled mode.',
+ children: [
+ {
+ id: 'tailwind',
+ label: 'Tailwind',
+ component: TailwindDoc
+ }
+ ]
+ }
+ ];
+
+ return ;
};
export default SkeletonDemo;
diff --git a/pages/ripple/index.js b/pages/ripple/index.js
index 3365aaf417..5057b72cb9 100644
--- a/pages/ripple/index.js
+++ b/pages/ripple/index.js
@@ -5,6 +5,8 @@ import { BasicDoc } from '../../components/doc/ripple/basicdoc';
import { ConfigurationDoc } from '../../components/doc/ripple/configurationdoc';
import { ImportDoc } from '../../components/doc/ripple/importdoc';
import { StyleDoc } from '../../components/doc/ripple/styledoc';
+import { StyledDoc } from '../../components/doc/ripple/theming/styleddoc';
+import { TailwindDoc } from '../../components/doc/ripple/theming/tailwinddoc';
import AppContentContext from '../../components/layout/appcontentcontext';
const RippleDemo = () => {
@@ -48,7 +50,27 @@ const RippleDemo = () => {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
- return ;
+ const themingDocs = [
+ {
+ id: 'styled',
+ label: 'Styled',
+ component: StyledDoc
+ },
+ {
+ id: 'unstyled',
+ label: 'Unstyled',
+ description: 'Theming is implemented with the pass through properties in unstyled mode.',
+ children: [
+ {
+ id: 'tailwind',
+ label: 'Tailwind',
+ component: TailwindDoc
+ }
+ ]
+ }
+ ];
+
+ return ;
};
export default RippleDemo;
diff --git a/pages/scrolltop/index.js b/pages/scrolltop/index.js
index 85eb7bc13e..3edd83d4c5 100644
--- a/pages/scrolltop/index.js
+++ b/pages/scrolltop/index.js
@@ -1,13 +1,15 @@
import React from 'react';
+import DocApiTable from '../../components/doc/common/docapitable';
import { DocComponent } from '../../components/doc/common/doccomponent';
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 { StyleDoc } from '../../components/doc/scrolltop/styledoc';
-import { Wireframe } from '../../components/doc/scrolltop/pt/wireframe';
-import DocApiTable from '../../components/doc/common/docapitable';
import { PTDoc } from '../../components/doc/scrolltop/pt/ptdoc';
+import { Wireframe } from '../../components/doc/scrolltop/pt/wireframe';
+import { StyleDoc } from '../../components/doc/scrolltop/styledoc';
+import { StyledDoc } from '../../components/doc/scrolltop/theming/styleddoc';
+import { TailwindDoc } from '../../components/doc/scrolltop/theming/tailwinddoc';
const ScrollTopDemo = () => {
const docs = [
@@ -56,6 +58,26 @@ const ScrollTopDemo = () => {
}
];
+ const themingDocs = [
+ {
+ id: 'styled',
+ label: 'Styled',
+ component: StyledDoc
+ },
+ {
+ id: 'unstyled',
+ label: 'Unstyled',
+ description: 'Theming is implemented with the pass through properties in unstyled mode.',
+ children: [
+ {
+ id: 'tailwind',
+ label: 'Tailwind',
+ component: TailwindDoc
+ }
+ ]
+ }
+ ];
+
return (
{
componentDocs={docs}
apiDocs={['ScrollTop']}
ptDocs={ptDocs}
+ themingDocs={themingDocs}
/>
);
};
diff --git a/pages/skeleton/index.js b/pages/skeleton/index.js
index 1b379aa3c4..f7b6c8680e 100644
--- a/pages/skeleton/index.js
+++ b/pages/skeleton/index.js
@@ -1,15 +1,17 @@
import React from 'react';
+import DocApiTable from '../../components/doc/common/docapitable';
import { DocComponent } from '../../components/doc/common/doccomponent';
import { AccessibilityDoc } from '../../components/doc/skeleton/accessibilitydoc';
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 { StyleDoc } from '../../components/doc/skeleton/styledoc';
-import DocApiTable from '../../components/doc/common/docapitable';
-import { Wireframe } from '../../components/doc/skeleton/pt/wireframe';
-import { PTDoc } from '../../components/doc/skeleton/pt/ptdoc';
+import { StyledDoc } from '../../components/doc/skeleton/theming/styleddoc';
+import { TailwindDoc } from '../../components/doc/skeleton/theming/tailwinddoc';
const SkeletonDemo = () => {
const docs = [
@@ -68,7 +70,27 @@ const SkeletonDemo = () => {
}
];
- return ;
+ const themingDocs = [
+ {
+ id: 'styled',
+ label: 'Styled',
+ component: StyledDoc
+ },
+ {
+ id: 'unstyled',
+ label: 'Unstyled',
+ description: 'Theming is implemented with the pass through properties in unstyled mode.',
+ children: [
+ {
+ id: 'tailwind',
+ label: 'Tailwind',
+ component: TailwindDoc
+ }
+ ]
+ }
+ ];
+
+ return ;
};
export default SkeletonDemo;
diff --git a/pages/tag/index.js b/pages/tag/index.js
index 6cb02bc166..1f74a457c7 100644
--- a/pages/tag/index.js
+++ b/pages/tag/index.js
@@ -1,16 +1,18 @@
import React from 'react';
+import DocApiTable from '../../components/doc/common/docapitable';
import { DocComponent } from '../../components/doc/common/doccomponent';
import { AccessibilityDoc } from '../../components/doc/tag/accessibilitydoc';
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 { StyleDoc } from '../../components/doc/tag/styledoc';
import { TemplateDoc } from '../../components/doc/tag/templatedoc';
-import DocApiTable from '../../components/doc/common/docapitable';
-import { Wireframe } from '../../components/doc/tag/pt/wireframe';
-import { PTDoc } from '../../components/doc/tag/pt/ptdoc';
+import { StyledDoc } from '../../components/doc/tag/theming/styleddoc';
+import { TailwindDoc } from '../../components/doc/tag/theming/tailwinddoc';
const TerminalDemo = () => {
const docs = [
@@ -74,7 +76,27 @@ const TerminalDemo = () => {
}
];
- return ;
+ const themingDocs = [
+ {
+ id: 'styled',
+ label: 'Styled',
+ component: StyledDoc
+ },
+ {
+ id: 'unstyled',
+ label: 'Unstyled',
+ description: 'Theming is implemented with the pass through properties in unstyled mode.',
+ children: [
+ {
+ id: 'tailwind',
+ label: 'Tailwind',
+ component: TailwindDoc
+ }
+ ]
+ }
+ ];
+
+ return ;
};
export default TerminalDemo;
diff --git a/pages/terminal/index.js b/pages/terminal/index.js
index c87acd9417..5f17f16abd 100644
--- a/pages/terminal/index.js
+++ b/pages/terminal/index.js
@@ -7,6 +7,8 @@ import { ImportDoc } from '../../components/doc/terminal/importdoc';
import { PTDoc } from '../../components/doc/terminal/pt/ptdoc';
import { Wireframe } from '../../components/doc/terminal/pt/wireframe';
import { StyleDoc } from '../../components/doc/terminal/styledoc';
+import { StyledDoc } from '../../components/doc/terminal/theming/styleddoc';
+import { TailwindDoc } from '../../components/doc/terminal/theming/tailwinddoc';
const TerminalDemo = () => {
const docs = [
@@ -50,7 +52,27 @@ const TerminalDemo = () => {
}
];
- return ;
+ const themingDocs = [
+ {
+ id: 'styled',
+ label: 'Styled',
+ component: StyledDoc
+ },
+ {
+ id: 'unstyled',
+ label: 'Unstyled',
+ description: 'Theming is implemented with the pass through properties in unstyled mode.',
+ children: [
+ {
+ id: 'tailwind',
+ label: 'Tailwind',
+ component: TailwindDoc
+ }
+ ]
+ }
+ ];
+
+ return ;
};
export default TerminalDemo;