diff --git a/apps/docs/.env.development b/apps/docs/.env.development deleted file mode 100644 index e3d837f5d..000000000 --- a/apps/docs/.env.development +++ /dev/null @@ -1,3 +0,0 @@ -NODE_ENV='development' -NEXT_PUBLIC_GIT_REPO_OWNER='' -NEXT_PUBLIC_GIT_REPO_SLUG='' \ No newline at end of file diff --git a/apps/docs/.eslintrc.js b/apps/docs/.eslintrc.js deleted file mode 100644 index b60e1cd62..000000000 --- a/apps/docs/.eslintrc.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - root: true, - extends: ['@westpac/eslint-config/nextjs'], -}; diff --git a/apps/docs/CHANGELOG.md b/apps/docs/CHANGELOG.md deleted file mode 100644 index 82daa6b05..000000000 --- a/apps/docs/CHANGELOG.md +++ /dev/null @@ -1,50 +0,0 @@ -# docs - -## 0.1.20 - -### Patch Changes - -- Updated dependencies [6e580a5] - - @westpac/ui@0.7.0 - -## 0.1.19 - -### Patch Changes - -- Updated dependencies [240f606] - - @westpac/ui@0.6.0 - -## 0.1.18 - -### Patch Changes - -- Updated dependencies [473c0d6] - - @westpac/ui@0.5.0 - -## 0.1.17 - -### Patch Changes - -- Updated dependencies [3182ae2] - - @westpac/ui@0.4.0 - -## 0.1.16 - -### Patch Changes - -- Updated dependencies - - @westpac/ui@0.3.0 - -## 0.1.15 - -### Patch Changes - -- Updated dependencies - - @westpac/ui@0.2.1 - -## 0.1.14 - -### Patch Changes - -- Updated dependencies [c20c3f7] - - @westpac/ui@0.2.0 diff --git a/apps/docs/README.md b/apps/docs/README.md deleted file mode 100644 index 42d1f4b71..000000000 --- a/apps/docs/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Playground Application - -This project is an example project to show how to consume the `@westpact/ui` package from this monorepo. - -> Although this sample project is within this monorepo, please consider it as an external project that consumes packages from this monorepo. - -Observe that this project uses the following packages: - -- @westpac/ui -- @westpac/eslint-config -- @westpac/ts-config diff --git a/apps/docs/content/components/accordion.yaml b/apps/docs/content/components/accordion.yaml deleted file mode 100644 index c04b4ab41..000000000 --- a/apps/docs/content/components/accordion.yaml +++ /dev/null @@ -1 +0,0 @@ -name: Accordion diff --git a/apps/docs/content/components/accordion/code.mdoc b/apps/docs/content/components/accordion/code.mdoc deleted file mode 100644 index 646f6e742..000000000 --- a/apps/docs/content/components/accordion/code.mdoc +++ /dev/null @@ -1,71 +0,0 @@ -## Accordion - -### Default accordion: See Visual design for the usage recommendations for the default style. - -```jsx - - {[ - { key: 'files', title: 'Your files' }, - { key: 'shared', title: 'Shared with you' }, - { key: 'last', title: 'Last item' }, - ].map(({ key, title }) => ( - -

{title}

-

- Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quaerat in, nobis itaque iste sequi, pariatur, nam - reiciendis quasi illum nulla aliquid mollitia corrupti nostrum incidunt? At minima error nobis ullam! -

-
- ))} -
-``` - -### Lego accordion: See Visual design for the usage recommendations for the lego style. - -```jsx - - {[ - { key: 'files', title: 'Your files' }, - { key: 'shared', title: 'Shared with you' }, - { key: 'last', title: 'Last item' }, - ].map(({ key, title }) => ( - -

{title}

-

- Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quaerat in, nobis itaque iste sequi, pariatur, nam - reiciendis quasi illum nulla aliquid mollitia corrupti nostrum incidunt? At minima error nobis ullam! -

-
- ))} -
-``` - -### Controlled example - -```jsx -() => { - const [expandedKeys, setExpandedKeys] = useState>(); - return ( - { - setExpandedKeys(keys); - }} - > - {[ - { key: 'files', title: 'Your files' }, - { key: 'shared', title: 'Shared with you' }, - { key: 'last', title: 'Last item' }, - ].map(({ key, title }) => ( - -

{title}

-

- Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quaerat in, nobis itaque iste sequi, pariatur, nam - reiciendis quasi illum nulla aliquid mollitia corrupti nostrum incidunt? At minima error nobis ullam! -

-
- ))} -
- ); -} -``` diff --git a/apps/docs/content/components/alert.yaml b/apps/docs/content/components/alert.yaml deleted file mode 100644 index b6d5fff9c..000000000 --- a/apps/docs/content/components/alert.yaml +++ /dev/null @@ -1 +0,0 @@ -name: Alert diff --git a/apps/docs/content/components/alert/code.mdoc b/apps/docs/content/components/alert/code.mdoc deleted file mode 100644 index f290eb330..000000000 --- a/apps/docs/content/components/alert/code.mdoc +++ /dev/null @@ -1,101 +0,0 @@ -## Looks - -```jsx -
- - Heads up! This alert needs your attention, but it’s not super important. Link - - - Well done! You successfully read this important alert message. Link - - - Warning! Better check yourself, you’re not looking too good. Link - - - Oh snap! Change a few things up and try submitting again. Link - - - System Error 8942: The server is no responding. Please try again later. Sorry for the - inconvenience. Link - -
-``` - ---- - -## Text - -```jsx -
- - Heads up! This alert needs your attention, but it’s not super important. Link - - - Well done! You successfully read this important alert message. Link - - - Warning! Better check yourself, you’re not looking too good. Link - - - Oh snap! Change a few things up and try submitting again. Link - - - System Error 8942: The server is no responding. Please try again later. Sorry for the - inconvenience. Link - -
-``` - ---- - -## Heading - -```jsx - - This alert needs your attention, but it’s not super important. Lorem ipsum dolor sit amet, consectetur adipisicing - elit. Quo dolor provident quasi nisi officia tempore fuga autem, animi iste molestiae, qui omnis doloribus aliquid - ipsam rem fugiat veniam voluptatem accusamus! Lorem ipsum dolor sit amet, consectetur adipisicing elit. - Link - -``` - ---- - -## Custom - -```jsx - - Heads up! Only info look alerts allow custom icons. Link - -``` - ---- - -## Dismissible - -```jsx - - Heads up! This alert needs your attention, but it’s not super important. Link - -``` - ---- - -## Controlled - -```jsx -() => { - const [open, setOpen] = useState(true); - return ( - - - setOpen(false)}> - Heads up! This alert needs your attention, but it’s not super important.{' '} - Link - - - ) -}; -``` diff --git a/apps/docs/content/components/autocomplete.yaml b/apps/docs/content/components/autocomplete.yaml deleted file mode 100644 index 5e4abf834..000000000 --- a/apps/docs/content/components/autocomplete.yaml +++ /dev/null @@ -1 +0,0 @@ -name: Autocomplete diff --git a/apps/docs/content/components/autocomplete/code.mdoc b/apps/docs/content/components/autocomplete/code.mdoc deleted file mode 100644 index ec435208a..000000000 --- a/apps/docs/content/components/autocomplete/code.mdoc +++ /dev/null @@ -1,101 +0,0 @@ -## Autocomplete - -### Default - -```jsx - - Red Panda - Cat - Dog - Aardvark - Kangaroo - Snake - -``` - -### Controlled - -```jsx -() => { - const [selectedKey, setSelectedKey] = useState(); - const handleSelectionChange = (key: Key) => { - setSelectedKey(key); - }; - return ( - - Red Panda - Cat - Dog - Aardvark - Kangaroo - Snake - - ); -}; -``` - -### Invalid - -```jsx - - Red Panda - Cat - Dog - Aardvark - Kangaroo - Snake - -``` - -### Disabled - -```jsx - - Red Panda - Cat - Dog - Aardvark - Kangaroo - Snake - -``` - -### Sizes - -```tsx -() => { - const [selectedKey, setSelectedKey] = useState(); - const handleSelectionChange = (key: Key) => { - setSelectedKey(key); - }; - return ( - - {(['small', 'medium', 'large', 'xlarge'] as const).map(size => ( -
- - Red Panda - Cat - Dog - Aardvark - Kangaroo - Snake - -
- ))} -
- ); -}; -``` - -### Footer - -```jsx -Footer message}> - Red Panda - Cat - Dog - Aardvark - Kangaroo - Snake - -``` diff --git a/apps/docs/content/components/breadcrumb.yaml b/apps/docs/content/components/breadcrumb.yaml deleted file mode 100644 index d2179414f..000000000 --- a/apps/docs/content/components/breadcrumb.yaml +++ /dev/null @@ -1 +0,0 @@ -name: Breadcrumb diff --git a/apps/docs/content/components/breadcrumb/code.mdoc b/apps/docs/content/components/breadcrumb/code.mdoc deleted file mode 100644 index abc753609..000000000 --- a/apps/docs/content/components/breadcrumb/code.mdoc +++ /dev/null @@ -1,23 +0,0 @@ -## Breadcrumb - -```jsx -// Using the Link component (as NextLink) from 'next/LinkLink' - - - Anchor item - - - Another anchor item - - - - Disabled item - - - - - Last item - - - -``` diff --git a/apps/docs/content/components/button-dropdown.yaml b/apps/docs/content/components/button-dropdown.yaml deleted file mode 100644 index 34cec2224..000000000 --- a/apps/docs/content/components/button-dropdown.yaml +++ /dev/null @@ -1 +0,0 @@ -name: Button Dropdown \ No newline at end of file diff --git a/apps/docs/content/components/button-dropdown/code.mdoc b/apps/docs/content/components/button-dropdown/code.mdoc deleted file mode 100644 index fde7b3536..000000000 --- a/apps/docs/content/components/button-dropdown/code.mdoc +++ /dev/null @@ -1,49 +0,0 @@ -## Default usage - -```jsx - -

- Example dropdown content... -

-
-``` - -## Dropdown with headings - -```jsx - - Dropdown heading #1 - Example dropdown content... - Dropdown heading #2 - Example dropdown content... - -``` - -## Dropdown box sizes (min-widths) -```jsx -
-

Small

- - Small - -

Medium

- - Medium - -

Large

- - Large - -
-``` - -## Default Open - -```jsx - -

- Example dropdown content... -

-
-``` -``` \ No newline at end of file diff --git a/apps/docs/content/components/button-group.yaml b/apps/docs/content/components/button-group.yaml deleted file mode 100644 index 9d1b9e02c..000000000 --- a/apps/docs/content/components/button-group.yaml +++ /dev/null @@ -1 +0,0 @@ -name: Button Group \ No newline at end of file diff --git a/apps/docs/content/components/button-group/code.mdoc b/apps/docs/content/components/button-group/code.mdoc deleted file mode 100644 index 9d18d3017..000000000 --- a/apps/docs/content/components/button-group/code.mdoc +++ /dev/null @@ -1,67 +0,0 @@ -## ButtonGroup sizes - -```jsx -
- Small

} size="small"> - Option 1 - Option 2 - Option 3 -
- Medium (default)

} size="medium"> - Option 1 - Option 2 - Option 3 -
- Large

} size="large"> - Option 1 - Option 2 - Option 3 -
- Extra large

} size="xlarge"> - Option 1 - Option 2 - Option 3 -
-
-``` - -## ButtonGroup looks - -```jsx -
- Hero (default)

} look="hero"> - Option 1 - Option 2 - Option 3 -
- Primary

} look="primary"> - Option 1 - Option 2 - Option 3 -
-
-``` - -## ButtonGroup disabled - -```jsx -
- Disabled

} look="hero" isDisabled> - Option 1 - Option 2 - Option 3 -
-
-``` - -## ButtonGroup block - -```jsx -
- Block

} look="hero" block> - Option 1 - Option 2 - Option 3 -
-
-``` \ No newline at end of file diff --git a/apps/docs/content/components/button.yaml b/apps/docs/content/components/button.yaml deleted file mode 100644 index 4f8a4112c..000000000 --- a/apps/docs/content/components/button.yaml +++ /dev/null @@ -1 +0,0 @@ -name: Button diff --git a/apps/docs/content/components/button/code.mdoc b/apps/docs/content/components/button/code.mdoc deleted file mode 100644 index 22dbcd567..000000000 --- a/apps/docs/content/components/button/code.mdoc +++ /dev/null @@ -1,82 +0,0 @@ -## Button sizes - -```jsx -
- - - - - - - -
-``` ---- - -## Standard buttons - -```jsx -
- - - - -
-``` ---- - -## Soft buttons - -```jsx -
- - - -
-``` ---- - -## Buttons with icons - -```jsx -
-
- - - -
-
- - - -
-
- - -
-
-``` - ---- - -## Responsive buttons - -Medium size button becomes Extra large from the MD breakpoint - -```jsx - -``` - -Small size button becomes medium at the SM breakpoint, large at the MD breakpoint and Extra large at the LG breakpoint - -```jsx - -``` diff --git a/apps/docs/content/components/checkbox-group.yaml b/apps/docs/content/components/checkbox-group.yaml deleted file mode 100644 index 4bd59ffe3..000000000 --- a/apps/docs/content/components/checkbox-group.yaml +++ /dev/null @@ -1 +0,0 @@ -name: Checkbox Group \ No newline at end of file diff --git a/apps/docs/content/components/checkbox-group/code.mdoc b/apps/docs/content/components/checkbox-group/code.mdoc deleted file mode 100644 index e803a124f..000000000 --- a/apps/docs/content/components/checkbox-group/code.mdoc +++ /dev/null @@ -1,109 +0,0 @@ -This component was combined with RadioGroup in the old GEL, it is now it's own component as it using React Aria - -## Checkbox sizes - -```jsx -
- Medium

} size="medium"> - Option 1 - Option 2 - Option 3 -
- - Large

} size="large"> - Option 1 - Option 2 - Option 3 -
-
-``` - -## Horizontal layout - -```jsx -
- Medium

} orientation="horizontal"> - Option 1 - Option 2 - Option 3 -
- - Large

} size="large" orientation="horizontal"> - Option 1 - Option 2 - Option 3 -
-
-``` - -## Checkboxes with hint text - -```jsx -
- Medium

} size="medium"> - Option 1 - Option 2 - Option 3 -
- - Large

} size="large"> - Option 1 - Option 2 - Option 3 -
-
-``` - -## CheckboxGroup with Reveal - -```jsx -
- Medium

} size="medium" showAmount={1}> - Option 1 - Option 2 - Option 3 -
- - Large

} size="large" showAmount={1}> - Option 1 - Option 2 - Option 3 -
-
-``` - -## CheckboxGroup completely disabled - -```jsx -
- Medium

} size="medium" isDisabled> - Option 1 - Option 2 - Option 3 -
- - Large

} size="large" isDisabled> - Option 1 - Option 2 - Option 3 -
-
-``` - -## CheckboxGroup with individual items disabled - -```jsx -
- Medium

} size="medium"> - Option 1 - Option 2 - Option 3 -
- - Large

} size="large"> - Option 1 - Option 2 - Option 3 -
-
-``` \ No newline at end of file diff --git a/apps/docs/content/components/collapsible.yaml b/apps/docs/content/components/collapsible.yaml deleted file mode 100644 index 999a2cde1..000000000 --- a/apps/docs/content/components/collapsible.yaml +++ /dev/null @@ -1 +0,0 @@ -name: Collapsible \ No newline at end of file diff --git a/apps/docs/content/components/collapsible/code.mdoc b/apps/docs/content/components/collapsible/code.mdoc deleted file mode 100644 index 55410c769..000000000 --- a/apps/docs/content/components/collapsible/code.mdoc +++ /dev/null @@ -1,61 +0,0 @@ -## Collapsible sizes - -```jsx -
-
-

Small

- - -

- Hello vivamus sagittis lacus vel augue laoreet rutrum faucibus. Lorem ipsum dolor sit amet, consectetur - adipisicing elit. Nesciunt laboriosam, mollitia magnam ad magni consequuntur hic et quos optio corrupti - praesentium veniam aspernatur minima aperiam ut quas, possimus non architecto. Lorem ipsum dolor sit amet, - consectetur adipisicing elit. Aut animi velit in? Suscipit nostrum itaque voluptatibus dolorem qui soluta - nobis modi officia incidunt eos dolores atque, unde error delectus officiis. -

-
-
-
-
-

Medium (default)

- - -

- Hello vivamus sagittis lacus vel augue laoreet rutrum faucibus. Lorem ipsum dolor sit amet, consectetur - adipisicing elit. Nesciunt laboriosam, mollitia magnam ad magni consequuntur hic et quos optio corrupti - praesentium veniam aspernatur minima aperiam ut quas, possimus non architecto. Lorem ipsum dolor sit amet, - consectetur adipisicing elit. Aut animi velit in? Suscipit nostrum itaque voluptatibus dolorem qui soluta - nobis modi officia incidunt eos dolores atque, unde error delectus officiis. -

-
-
-
-
-

Large

- - -

- Hello vivamus sagittis lacus vel augue laoreet rutrum faucibus. Lorem ipsum dolor sit amet, consectetur - adipisicing elit. Nesciunt laboriosam, mollitia magnam ad magni consequuntur hic et quos optio corrupti - praesentium veniam aspernatur minima aperiam ut quas, possimus non architecto. Lorem ipsum dolor sit amet, - consectetur adipisicing elit. Aut animi velit in? Suscipit nostrum itaque voluptatibus dolorem qui soluta - nobis modi officia incidunt eos dolores atque, unde error delectus officiis. -

-
-
-
-
-

XLarge

- - -

- Hello vivamus sagittis lacus vel augue laoreet rutrum faucibus. Lorem ipsum dolor sit amet, consectetur - adipisicing elit. Nesciunt laboriosam, mollitia magnam ad magni consequuntur hic et quos optio corrupti - praesentium veniam aspernatur minima aperiam ut quas, possimus non architecto. Lorem ipsum dolor sit amet, - consectetur adipisicing elit. Aut animi velit in? Suscipit nostrum itaque voluptatibus dolorem qui soluta - nobis modi officia incidunt eos dolores atque, unde error delectus officiis. -

-
-
-
-``` \ No newline at end of file diff --git a/apps/docs/content/components/colors.yaml b/apps/docs/content/components/colors.yaml deleted file mode 100644 index 89ed265fc..000000000 --- a/apps/docs/content/components/colors.yaml +++ /dev/null @@ -1 +0,0 @@ -name: Colors diff --git a/apps/docs/content/components/colors/code.mdoc b/apps/docs/content/components/colors/code.mdoc deleted file mode 100644 index e846a058d..000000000 --- a/apps/docs/content/components/colors/code.mdoc +++ /dev/null @@ -1,270 +0,0 @@ -## Colors - -```jsx -() => { - const COLORS = { - background: [ - 'bg-background', - 'bg-background-90', - 'bg-background-80', - 'bg-background-70', - 'bg-background-60', - 'bg-background-50', - 'bg-background-40', - 'bg-background-30', - 'bg-background-20', - 'bg-background-10', - 'bg-background-5', - ], - border: [ - 'bg-border', - 'bg-border-90', - 'bg-border-80', - 'bg-border-70', - 'bg-border-60', - 'bg-border-50', - 'bg-border-40', - 'bg-border-30', - 'bg-border-20', - 'bg-border-10', - 'bg-border-5', - ], - borderDark: [ - 'bg-borderDark', - 'bg-borderDark-90', - 'bg-borderDark-80', - 'bg-borderDark-70', - 'bg-borderDark-60', - 'bg-borderDark-50', - 'bg-borderDark-40', - 'bg-borderDark-30', - 'bg-borderDark-20', - 'bg-borderDark-10', - 'bg-borderDark-5', - ], - focus: [ - 'bg-focus', - 'bg-focus-90', - 'bg-focus-80', - 'bg-focus-70', - 'bg-focus-60', - 'bg-focus-50', - 'bg-focus-40', - 'bg-focus-30', - 'bg-focus-20', - 'bg-focus-10', - 'bg-focus-5', - ], - heading: [ - 'bg-heading', - 'bg-heading-90', - 'bg-heading-80', - 'bg-heading-70', - 'bg-heading-60', - 'bg-heading-50', - 'bg-heading-40', - 'bg-heading-30', - 'bg-heading-20', - 'bg-heading-10', - 'bg-heading-5', - ], - hero: [ - 'bg-hero', - 'bg-hero-90', - 'bg-hero-80', - 'bg-hero-70', - 'bg-hero-60', - 'bg-hero-50', - 'bg-hero-40', - 'bg-hero-30', - 'bg-hero-20', - 'bg-hero-10', - 'bg-hero-5', - ], - light: [ - 'bg-light', - 'bg-light-90', - 'bg-light-80', - 'bg-light-70', - 'bg-light-60', - 'bg-light-50', - 'bg-light-40', - 'bg-light-30', - 'bg-light-20', - 'bg-light-10', - 'bg-light-5', - ], - link: [ - 'bg-link', - 'bg-link-90', - 'bg-link-80', - 'bg-link-70', - 'bg-link-60', - 'bg-link-50', - 'bg-link-40', - 'bg-link-30', - 'bg-link-20', - 'bg-link-10', - 'bg-link-5', - ], - muted: [ - 'bg-muted', - 'bg-muted-90', - 'bg-muted-80', - 'bg-muted-70', - 'bg-muted-60', - 'bg-muted-50', - 'bg-muted-40', - 'bg-muted-30', - 'bg-muted-20', - 'bg-muted-10', - 'bg-muted-5', - ], - neutral: [ - 'bg-neutral', - 'bg-neutral-90', - 'bg-neutral-80', - 'bg-neutral-70', - 'bg-neutral-60', - 'bg-neutral-50', - 'bg-neutral-40', - 'bg-neutral-30', - 'bg-neutral-20', - 'bg-neutral-10', - 'bg-neutral-5', - ], - pop: [ - 'bg-pop', - 'bg-pop-90', - 'bg-pop-80', - 'bg-pop-70', - 'bg-pop-60', - 'bg-pop-50', - 'bg-pop-40', - 'bg-pop-30', - 'bg-pop-20', - 'bg-pop-10', - 'bg-pop-5', - ], - primary: [ - 'bg-primary', - 'bg-primary-90', - 'bg-primary-80', - 'bg-primary-70', - 'bg-primary-60', - 'bg-primary-40', - 'bg-primary-50', - 'bg-primary-30', - 'bg-primary-20', - 'bg-primary-10', - 'bg-primary-5', - ], - text: [ - 'bg-text', - 'bg-text-90', - 'bg-text-80', - 'bg-text-70', - 'bg-text-60', - 'bg-text-50', - 'bg-text-40', - 'bg-text-30', - 'bg-text-20', - 'bg-text-10', - 'bg-text-5', - ], - success: [ - 'bg-success', - 'bg-success-90', - 'bg-success-80', - 'bg-success-70', - 'bg-success-60', - 'bg-success-50', - 'bg-success-40', - 'bg-success-30', - 'bg-success-20', - 'bg-success-10', - 'bg-success-5', - ], - info: [ - 'bg-info', - 'bg-info-90', - 'bg-info-80', - 'bg-info-70', - 'bg-info-60', - 'bg-info-50', - 'bg-info-40', - 'bg-info-30', - 'bg-info-20', - 'bg-info-10', - 'bg-info-5', - ], - warning: [ - 'bg-warning', - 'bg-warning-90', - 'bg-warning-80', - 'bg-warning-70', - 'bg-warning-60', - 'bg-warning-50', - 'bg-warning-40', - 'bg-warning-30', - 'bg-warning-20', - 'bg-warning-10', - 'bg-warning-5', - ], - danger: [ - 'bg-danger', - 'bg-danger-90', - 'bg-danger-80', - 'bg-danger-70', - 'bg-danger-60', - 'bg-danger-50', - 'bg-danger-40', - 'bg-danger-30', - 'bg-danger-20', - 'bg-danger-10', - 'bg-danger-5', - ], - system: [ - 'bg-system', - 'bg-system-90', - 'bg-system-80', - 'bg-system-70', - 'bg-system-60', - 'bg-system-50', - 'bg-system-40', - 'bg-system-30', - 'bg-system-20', - 'bg-system-10', - 'bg-system-5', - ], - }; - const TINTS = ['DEFAULT', 90, 80, 70, 60, 50, 40, 30, 20, 10, 5]; - return ( -
-
-
- {TINTS.map(tint => ( -
- {tint} -
- ))} -
- {Object.entries(COLORS).map(([color, tints]) => ( -
-
-

{color}:

-
- {tints.map(tint => { - return ( -
- ); - })} -
- ))} -
- ); -}; -``` diff --git a/apps/docs/content/components/compacta.yaml b/apps/docs/content/components/compacta.yaml deleted file mode 100644 index 947140b7b..000000000 --- a/apps/docs/content/components/compacta.yaml +++ /dev/null @@ -1 +0,0 @@ -name: Compacta \ No newline at end of file diff --git a/apps/docs/content/components/compacta/code.mdoc b/apps/docs/content/components/compacta/code.mdoc deleted file mode 100644 index 404a47fdd..000000000 --- a/apps/docs/content/components/compacta/code.mdoc +++ /dev/null @@ -1,54 +0,0 @@ -## Default Usage - -```jsx -() => { - const [inputs, setInputs] = useState({}); - - const handleChange = (e: ChangeEvent) => { - setInputs((prev: object) => ({ ...prev, [e.target.name]: e.target.value })); - }; - return ( - - {({ id, setPrimaryTitle, setSecondaryTitle, setTertiaryTitle }) => ( -
- - Primary - Primary title text - { - handleChange(e); - setPrimaryTitle(e.target.value); - }} - /> - - - Secondary - Secondary title text - { - handleChange(e); - setSecondaryTitle(e.target.value); - }} - /> - - - Tertiary - Tertiary title text - { - handleChange(e); - setTertiaryTitle(e.target.value); - }} - /> - -
- )} -
- )}; -``` \ No newline at end of file diff --git a/apps/docs/content/components/date-picker.yaml b/apps/docs/content/components/date-picker.yaml deleted file mode 100644 index 02f6f4166..000000000 --- a/apps/docs/content/components/date-picker.yaml +++ /dev/null @@ -1 +0,0 @@ -name: DatePicker diff --git a/apps/docs/content/components/date-picker/code.mdoc b/apps/docs/content/components/date-picker/code.mdoc deleted file mode 100644 index 18f084f69..000000000 --- a/apps/docs/content/components/date-picker/code.mdoc +++ /dev/null @@ -1,23 +0,0 @@ -## Datepicker sizes - -```jsx -() => { - const sizes = ['sm', 'md', 'lg', 'xl']; - return sizes.map((size) => ( -
- size {size} - -
- )); -}; -``` - ---- - -## Disable Weekends - -```jsx -() => { - return -}; -``` diff --git a/apps/docs/content/components/flexi-cell.yaml b/apps/docs/content/components/flexi-cell.yaml deleted file mode 100644 index f4634a976..000000000 --- a/apps/docs/content/components/flexi-cell.yaml +++ /dev/null @@ -1 +0,0 @@ -name: Flexi Cell diff --git a/apps/docs/content/components/flexi-cell/code.mdoc b/apps/docs/content/components/flexi-cell/code.mdoc deleted file mode 100644 index e497a7c6c..000000000 --- a/apps/docs/content/components/flexi-cell/code.mdoc +++ /dev/null @@ -1,799 +0,0 @@ -## Flexi Cell - -### Default usage - -```jsx - - Label - Hint - -``` - -### With NextJS Link usage - -```jsx - - - Label - Hint - - -``` - -### Credit card usage - -```jsx - - $9,999.99 - avail $9,999.99 - - } -> - Credit card - Card ending in 1234 - -``` - -### Account usage - -```jsx - - $9,999.99 - - } -> - Account - 032-123 12345678 - -``` - -### Payee usage - -```jsx - - B - - } - after={ - - Fri 5 Aug - - } -> -

Payee

- Payee details -
-``` - -### Payee with info usage - -```jsx - - WW - - } - after={ - -
} - after={ - -
}> -

List item

- -``` - -### List item usage - -```jsx - -

List item

-
-``` - -### Westpac special product usage - -```jsx - - -``` - -### Flexi cell with image usage - -```jsx - - - MYER -

Westpac specials and product offers

-
-``` - -### Sticky footer example usage - -```jsx -
- {[ - 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatem quae possimus, nam nobis cumque ullam et harum, magni quam distinctio, corporis sunt saepe maxime quod. Sapiente voluptatibus sint dicta tenetur.', - 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatem quae possimus, nam nobis cumque ullam et harum, magni quam distinctio, corporis sunt saepe.', - 'Lorem ipsum dolor sit amet', - ].map(title => ( - - Badge - - } - > - - - MYER -

{title}

-
- - - -
- ))} -
-``` - -### Account list usage - -```jsx -() => { - const MOCK_ACCOUNTS = [ - { - title: 'Cash', - id: 'cash', - accounts: [ - { - name: 'Westpac Choice', - amount: '$1,234.99', - number: '732-123 746587', - }, - { - name: 'Offset account for loan', - amount: '$20,000.00', - number: '732-123 123456', - }, - ], - }, - { - title: 'Foreign currency', - id: 'foreign-currency', - accounts: [ - { - name: 'US Dollar Currency Account', - amount: '$3,957.57', - number: '123-456 1234567', - }, - { - name: 'British pound Currency Account', - amount: '$9,999,999,999.99', - number: '123-456 1234567', - }, - ], - }, - { - title: 'Credit cards', - id: 'credit-cards', - accounts: [ - { - name: 'Altitude Black World Mastercard', - amount: '-$3,957.57', - number: 'Card ending in 1234', - }, - ], - }, - ]; - - return ( -
- {MOCK_ACCOUNTS.map(({ title, id, accounts }) => ( -
-

{title}

-
- {accounts.map(({ name, amount, number }) => ( - - - {amount} - - available - - } - > - - {name} - - {number} - - ))} -
-
- ))} -
- ); -}; -``` - -### Payee list usage - -```jsx -() => { - const MOCK_PAYEES = [ - { - title: 'Recently Paid', - id: 'recently-paid', - payees: [ - { - initials: 'AJ', - name: 'Andrew Jones', - paidAt: 'Fri 5 Aug', - number: '123-986 463846', - }, - { - initials: 'JW', - name: 'Joss Wight', - paidAt: 'Mon 1 Aug', - number: '098-567 465352', - }, - ], - }, - { - title: 'A', - id: 'a', - payees: [ - { - initials: 'AO', - name: 'Active OOSH', - number: '857-434 856383', - paidAt: undefined, - }, - { - initials: 'AC', - name: 'Alice Cartwright', - number: '950-456 345363', - paidAt: undefined, - }, - ], - }, - { - title: 'B', - id: 'b', - payees: [ - { - initials: 'BN', - name: 'Benjamin North', - number: '098-123 745362', - paidAt: undefined, - }, - ], - }, - ]; - - return ( -
- {MOCK_PAYEES.map(({ title, id, payees }) => ( -
-

{title}

-
- {payees.map(({ name, initials, paidAt, number }) => { - return ( - - - - } - after={ - - {paidAt ? ( - {paidAt} - ) : ( - - )} - - } - > - {paidAt ? ( - <> - - {name} - - {number} - - ) : ( - - - {name} - - {number} - - )} - - ); - })} -
-
- ))} -
- ); -}; -``` - -### Country list usage - -```jsx -() => { - const MOCK_COUNTRIES = [ - { - title: 'Popular', - id: 'popular', - payees: [ - { - code: 'IN', - name: 'India', - }, - { - code: 'UK', - name: 'United Kingdom', - }, - { - code: 'USA', - name: 'United States', - }, - ], - }, - { - title: 'A', - id: 'a', - payees: [ - { - code: 'AI', - name: 'Ascension Islands', - }, - { - code: 'AN', - name: 'Andorra', - }, - { - code: 'UA', - name: 'United Arab Emirates', - }, - { - code: 'AF', - name: 'Afghanistan', - }, - ], - }, - ]; - - return ( -
- {MOCK_COUNTRIES.map(({ title, id, payees }) => ( -
-

{title}

-
- {payees.map(({ name }) => { - return ( - - - - } - > - - {name} - - - ); - })} -
-
- ))} -
- ); -}; -``` - -### Foreign currency list usage - -```jsx -() => { - const MOCK_PAYEES = [ - { - title: 'Recently Paid', - id: 'recently-paid', - payees: [ - { - initials: 'AJ', - name: 'Andrew Jones', - paidAt: 'Fri 5 Aug', - number: '123-986 463846', - }, - { - initials: 'JW', - name: 'Joss Wight', - paidAt: 'Mon 1 Aug', - number: '098-567 465352', - }, - ], - }, - { - title: 'A', - id: 'a', - payees: [ - { - initials: 'AO', - name: 'Active OOSH', - number: '857-434 856383', - paidAt: undefined, - }, - { - initials: 'AC', - name: 'Alice Cartwright', - number: '950-456 345363', - paidAt: undefined, - }, - ], - }, - { - title: 'B', - id: 'b', - payees: [ - { - initials: 'BN', - name: 'Benjamin North', - number: '098-123 745362', - paidAt: undefined, - }, - ], - }, - ]; - - return ( -
- {MOCK_PAYEES.map(({ title, id, payees }) => ( -
-

{title}

-
- {payees.map(({ name, paidAt, number }) => { - return ( - - - - - - - - } - after={ - - {paidAt ? ( - {paidAt} - ) : ( - - )} - - } - > - {paidAt ? ( - <> - - {name} - - {number} - - ) : ( - - - {name} - - {number} - - )} - - ); - })} -
-
- ))} -
- ); -}; -``` - -### Promo tiles horizontal list usage - -```jsx -() => { - const MOCK_PROMOS = [ - { - title: 'This is talking about the bonus.', - subtitle: 'This is more about the bonus and all the other exciting things about this.', - stars: true, - }, - { - title: 'This is a longer heading talking all about the bonus this one wraps.', - subtitle: 'This is more about the bonus', - stars: false, - }, - { - title: 'This is talking about the bonus.', - subtitle: 'This is more about the bonus and all the other exciting things about this.', - stars: false, - }, - { - title: 'This is a longer heading talking all about the bonus this one wraps.', - subtitle: 'This is more about the bonus', - stars: false, - }, - ]; - - return ( -
- {MOCK_PROMOS.map(({ title, subtitle, stars }) => { - return ( - - Target - - } - badge={ - - {stars ? '✭' : 'Corner flag'} - - } - > - MYER - - {title} - - {subtitle} -
- Badge1 - Badge2 -
-
- ); - })} -
- ); -}; -``` - -### Promo tiles vertical list usage - -```jsx -() => { - const MOCK_PROMOS = [ - { - title: 'This is talking about the bonus.', - subtitle: 'This is more about the bonus and all the other exciting things about this.', - stars: true, - }, - { - title: 'This is a longer heading talking all about the bonus this one wraps.', - subtitle: 'This is more about the bonus', - stars: false, - }, - { - title: 'This is talking about the bonus.', - subtitle: 'This is more about the bonus and all the other exciting things about this.', - stars: false, - }, - { - title: 'This is a longer heading talking all about the bonus this one wraps.', - subtitle: 'This is more about the bonus', - stars: false, - }, - ]; - - return ( -
-
- {MOCK_PROMOS.map(({ title, subtitle }) => ( - - Badge - - } - > - - - MYER - - {title} - - {subtitle} - - - - - - ))} -
-
- ); -}; -``` - -### Product tiles usage - -```jsx -() => { - const MOCK_PRODUCTS = [ - { - title: 'This is talking about the bonus.', - subtitle: 'This is more about the bonus and all the other exciting things about this.', - }, - { - title: 'This is a longer heading talking all about the bonus this one wraps.', - subtitle: 'This is more about the bonus', - }, - { - title: 'This is talking about the bonus.', - subtitle: 'This is more about the bonus and all the other exciting things about this.', - }, - ]; - - return ( -
- {MOCK_PRODUCTS.map(({ title, subtitle }) => ( - }> -
-
-
- ))} -
- ); -}; -``` diff --git a/apps/docs/content/components/icons.yaml b/apps/docs/content/components/icons.yaml deleted file mode 100644 index 6101b136b..000000000 --- a/apps/docs/content/components/icons.yaml +++ /dev/null @@ -1 +0,0 @@ -name: Icons diff --git a/apps/docs/content/components/icons/code.mdoc b/apps/docs/content/components/icons/code.mdoc deleted file mode 100644 index 5b6501255..000000000 --- a/apps/docs/content/components/icons/code.mdoc +++ /dev/null @@ -1,121 +0,0 @@ -## Default - -```jsx -() => { - const icons = [ - AddIcon, - CalendarIcon, - DeleteIcon, - FavoriteIcon, - GridIcon, - HelpIcon, - MessageIcon, - NotificationOffIcon, - PersonIcon, - ProgressIcon, - StarRateIcon, - WriteIcon, - ]; - return ( -
- {icons.map((Icon, i) => ( - - ))} -
- ); -}; -``` - -## Color - -```jsx -() => { - const icons = [ - AddIcon, - CalendarIcon, - DeleteIcon, - FavoriteIcon, - GridIcon, - HelpIcon, - MessageIcon, - NotificationOffIcon, - PersonIcon, - ProgressIcon, - StarRateIcon, - WriteIcon, - ]; - return ( -
- {icons.map((Icon, i) => ( - - ))} -
- ); -}; -``` - -## Outlined - -```jsx -() => { - const icons = [ - AddIcon, - CalendarIcon, - DeleteIcon, - FavoriteIcon, - GridIcon, - HelpIcon, - MessageIcon, - NotificationOffIcon, - PersonIcon, - ProgressIcon, - StarRateIcon, - WriteIcon, - ]; - return ( -
- {icons.map((Icon, i) => ( - - ))} -
- ); -}; -``` - -## Sizes - -```jsx -() => { - const icons = [ - AddIcon, - CalendarIcon, - DeleteIcon, - FavoriteIcon, - GridIcon, - HelpIcon, - MessageIcon, - NotificationOffIcon, - PersonIcon, - ProgressIcon, - StarRateIcon, - WriteIcon, - ]; - const sizes = ['xsmall', 'small', 'medium', 'large', 'xlarge']; - return ( -
- {sizes.map((size, i) => ( -
-

{size}

- { -
- {icons.map((Icon, i) => ( - - ))} -
- } -
- ))} -
- ); -}; -``` diff --git a/apps/docs/content/components/input-field.yaml b/apps/docs/content/components/input-field.yaml deleted file mode 100644 index 09e1ce654..000000000 --- a/apps/docs/content/components/input-field.yaml +++ /dev/null @@ -1 +0,0 @@ -name: Input Field diff --git a/apps/docs/content/components/input-field/code.mdoc b/apps/docs/content/components/input-field/code.mdoc deleted file mode 100644 index 85785e750..000000000 --- a/apps/docs/content/components/input-field/code.mdoc +++ /dev/null @@ -1,528 +0,0 @@ -## Input sizes - -#### Default usage example - -```jsx -Check}> - - -``` - -#### Combination usage example - -```jsx -Check} - before="$AUD" -> - - -``` - -#### Fieldset as a tag - -```jsx -Check} - before="$AUD" -> - - -``` - -#### Text Beforoe story example - -```jsx - - - -``` - -#### Text Beforoe story example - -```jsx - - - -``` - -#### Text After and Beforoe story example - -```jsx - - - -``` - -#### Textarea - -```jsx - - - - - - - - - - - -``` - -#### Icons in buttons - -```jsx - - }} - > - - - }} - > - - - }} - before={{ inset: true, element: } - > - - - Check} - > - - - Check} - before={} - > - - - Check} - > - - - Check} - > - - - -``` - -#### Select add ons - -```jsx - - - - } - after={ - - } -> - - -``` - -#### Textarea - -```jsx - -