diff --git a/apps/website/pages/foundations/tokens.tsx b/apps/website/pages/foundations/tokens.tsx
new file mode 100644
index 000000000..94653d712
--- /dev/null
+++ b/apps/website/pages/foundations/tokens.tsx
@@ -0,0 +1,13 @@
+import Head from "next/head";
+import TokensPage from "screens/foundations/tokens/TokensPage";
+
+const Tokens = () => (
+ <>
+
+
- | mode |
+ accept |
- 'file' | 'filedrop' | 'dropzone'
+ string
|
- Available modes of the component. |
- 'file'
+ The file types that the component accepts. Its value must be one of all the possible values of the HTML
+ file input's accept attribute. Please check the documentation{" "}
+ here.
|
+ - |
- | label |
+ buttonLabel |
string
|
- Text to be placed above the component. |
+ Text to be placed inside the button. |
- |
- | buttonLabel |
- string
+
+
+ callbackFile
+
+ |
+
+
+ {"(val: {files: { file: File, error?: string, preview?: string }[], error?: string}) => void"}
+
+ |
+
+ This function will be called when the user adds or deletes a file. That is, when the file input's inner
+ value is modified. The list of files will be sent as a parameter. In this function, the files can be
+ updated or returned as they come. These files must be passed to the value in order to be shown.
|
- Text to be placed inside the button. |
- |
+
+ | disabled |
+
+ boolean
+ |
+ If true, the component will be disabled. |
+
+ false
+ |
+
| dropAreaLabel |
@@ -66,25 +89,21 @@ const sections = [
| - |
- | accept |
+ label |
string
|
-
- The file types that the component accepts. Its value must be one of all the possible values of the HTML
- file input's accept attribute. Please check the documentation{" "}
- here.
- |
+ Text to be placed above the component. |
- |
- | minSize |
+ margin |
- number
+ 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | Margin
|
- The minimum file size (in bytes) allowed. If the size of the file does not comply this value, the file
- will have an error.
+ Size of the margin to be applied to the component. You can pass an object with 'top', 'bottom', 'left' and
+ 'right' properties in order to specify different margin sizes.
|
- |
@@ -100,43 +119,24 @@ const sections = [
- |
+ | minSize |
-
-
- value
-
- |
-
- {"{ file: File, error?: string, preview?: string }[]"}
+ number
|
- An array of files representing the selected files. Each file has the following properties:
-
- -
- file: Selected file.
-
- -
- error: Error of the file. If it is defined, it will be shown and the file item will be mark as
- invalid.
-
- -
- preview: Preview of the file.
-
-
+ The minimum file size (in bytes) allowed. If the size of the file does not comply this value, the file
+ will have an error.
|
- |
- | showPreview |
-
- boolean
- |
+ mode |
- If true, if the file is an image, a preview of it will be shown. If not, an icon referring to the file
- type will be shown.
+ 'file' | 'filedrop' | 'dropzone'
|
+ Available modes of the component. |
- false
+ 'file'
|
@@ -154,42 +154,35 @@ const sections = [
- | disabled |
+ optional |
boolean
|
- If true, the component will be disabled. |
+ If true, the input will be optional, showing '(Optional)' next to the label. |
false
|
+ | ref |
-
-
- callbackFile
-
- |
-
- {"(files: { file: File, error?: string, preview?: string }[]) => void"}
- |
-
- This function will be called when the user adds or deletes a file. That is, when the file input's inner
- value is modified. The list of files will be sent as a parameter. In this function, the files can be
- updated or returned as they come. These files must be passed to the value in order to be shown.
+ {"React.Ref"}
|
+ Reference to the component. |
- |
- | margin |
+ showPreview |
- 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | Margin
+ boolean
|
- Size of the margin to be applied to the component. You can pass an object with 'top', 'bottom', 'left' and
- 'right' properties in order to specify different margin sizes.
+ If true, if the file is an image, a preview of it will be shown. If not, an icon referring to the file
+ type will be shown.
+ |
+
+ false
|
- - |
| tabIndex |
@@ -204,11 +197,30 @@ const sections = [
- | ref |
- {"React.Ref"}
+
+
+ value
+
+ |
+
+ {"{ file: File, error?: string, preview?: string }[]"}
+ |
+
+ An array of files representing the selected files. Each file has the following properties:
+
+ -
+ file: Selected file.
+
+ -
+ error: Error of the file. If it is defined, it will be shown and the file item will be mark as
+ invalid.
+
+ -
+ preview: Preview of the file.
+
+
|
- Reference to the component. |
- |
diff --git a/apps/website/screens/foundations/tokens/TokensPage.tsx b/apps/website/screens/foundations/tokens/TokensPage.tsx
new file mode 100644
index 000000000..bbae0bef1
--- /dev/null
+++ b/apps/website/screens/foundations/tokens/TokensPage.tsx
@@ -0,0 +1,321 @@
+import Code from "@/common/Code";
+import DocFooter from "@/common/DocFooter";
+import Image from "@/common/Image";
+import PageHeading from "@/common/PageHeading";
+import DxcQuickNavContainer from "@/common/QuickNavContainer";
+import QuickNavContainerLayout from "@/common/QuickNavContainerLayout";
+import { DxcAlert, DxcBulletedList, DxcFlex, DxcHeading, DxcLink, DxcParagraph } from "@dxc-technology/halstack-react";
+import Link from "next/link";
+import componentTokens from "./images/component_tokens.gif";
+
+const sections = [
+ {
+ title: "Introduction",
+ content: (
+ <>
+