Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

docs(PPDSC-2172): Patterns index and overview pages #218

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
a53bc81
docs(PPDSC-2150): index page ui update
Srinivasan-Ramasamy May 30, 2022
b99a5b4
docs(PPDSC-2172): index and overview page initial ui update
Srinivasan-Ramasamy May 31, 2022
b9d580f
docs(PPDSC-2172): index and overview page initial ui update
Srinivasan-Ramasamy May 31, 2022
bc3dde0
Merge branch 'main' into docs/PPDSC-2172-patterns-index-overview-pages
Srinivasan-Ramasamy Jun 1, 2022
afc06fc
docs(PPDSC-2172): route navigation ui fixes
Srinivasan-Ramasamy Jun 1, 2022
f6e96d7
docs(PPDSC-2172): unit test build fix
Srinivasan-Ramasamy Jun 1, 2022
499e606
docs(PPDSC-2172): unit test fixes
Srinivasan-Ramasamy Jun 1, 2022
6e770f3
docs(PPDSC-2172): revert fix
Srinivasan-Ramasamy Jun 1, 2022
5bfc1c8
docs(PPDSC-2172): pr url fix try
Srinivasan-Ramasamy Jun 1, 2022
fd542ff
docs(PPDSC-2172): pr url fix try
Srinivasan-Ramasamy Jun 1, 2022
d5e03aa
docs(PPDSC-2172): test fix
Srinivasan-Ramasamy Jun 1, 2022
5af19cd
docs(PPDSC-2172): navigation fix in mobile view
Srinivasan-Ramasamy Jun 1, 2022
1f624bd
docs(PPDSC-2172): unit test fix and nav path fix
Srinivasan-Ramasamy Jun 1, 2022
7d91400
docs(PPDSC-2172): circleci build fix
Srinivasan-Ramasamy Jun 1, 2022
a8d7836
docs(PPDSC-2172): circleci build fix
Srinivasan-Ramasamy Jun 1, 2022
6fd9784
docs(PPDSC-2172): circleci build fix
Srinivasan-Ramasamy Jun 1, 2022
cfd1852
docs(PPDSC-2172): revert build fix
Srinivasan-Ramasamy Jun 1, 2022
44e39f2
docs(PPDSC-2172): layout fix
Srinivasan-Ramasamy Jun 2, 2022
0f75910
docs(PPDSC-2172): circleci build fix try
Srinivasan-Ramasamy Jun 2, 2022
99763c6
docs(PPDSC-2172): revert circleci build fix try
Srinivasan-Ramasamy Jun 2, 2022
088cb1c
docs(PPDSC-2172): circleci build fix try
Srinivasan-Ramasamy Jun 2, 2022
8540bb0
docs(PPDSC-2172): circleci build fix try
Srinivasan-Ramasamy Jun 2, 2022
0bd8f6f
docs(PPDSC-2172): circleci build fix try
Srinivasan-Ramasamy Jun 2, 2022
c266d60
docs(PPDSC-2172): circleci build fix try
Srinivasan-Ramasamy Jun 2, 2022
01de6fc
docs(PPDSC-2172): circleci build fix try
Srinivasan-Ramasamy Jun 2, 2022
59daec6
docs(PPDSC-2172): circleci build fix try
Srinivasan-Ramasamy Jun 2, 2022
16bf5be
docs(PPDSC-2172): circleci build fix try
Srinivasan-Ramasamy Jun 2, 2022
4e29ad3
docs(PPDSC-2172): update medialist
Srinivasan-Ramasamy Jun 2, 2022
50ba9bd
docs(PPDSC-2172): removed secondary section
Srinivasan-Ramasamy Jun 2, 2022
56bb3d1
docs(PPDSC-2172): build fix changes
Srinivasan-Ramasamy Jun 2, 2022
3760582
docs(PPDSC-2172): type fix
Srinivasan-Ramasamy Jun 2, 2022
1b55808
docs(PPDSC-2172): type fix
Srinivasan-Ramasamy Jun 2, 2022
404d534
docs(PPDSC-2172): section fix
Srinivasan-Ramasamy Jun 2, 2022
3b54c7d
docs(PPDSC-2172): section fix
Srinivasan-Ramasamy Jun 2, 2022
a821bea
docs(PPDSC-2172): media list move to description
Srinivasan-Ramasamy Jun 2, 2022
4dec297
docs(PPDSC-2172): secondary section fix
Srinivasan-Ramasamy Jun 3, 2022
6e3b0a9
docs(PPDSC-2172): primary and secandary section fix
Srinivasan-Ramasamy Jun 3, 2022
b6297c0
docs(PPDSC-2172): primary and secandary section fix
Srinivasan-Ramasamy Jun 3, 2022
1c9cfdd
docs(PPDSC-2172): media list changes
Srinivasan-Ramasamy Jun 3, 2022
415bdb5
docs(PPDSC-2172): media list changes
Srinivasan-Ramasamy Jun 3, 2022
f1e0684
docs(PPDSC-2172): test changes
Srinivasan-Ramasamy Jun 3, 2022
85355a3
docs(PPDSC-2172): test changes
Srinivasan-Ramasamy Jun 3, 2022
c7483e7
docs(PPDSC-2172): priciple card fix
Srinivasan-Ramasamy Jun 3, 2022
126b0f2
docs(PPDSC-2172): revert all the changes
Srinivasan-Ramasamy Jun 3, 2022
9824ee6
docs(PPDSC-2172): fix for test_e2e_docs_pr
Srinivasan-Ramasamy Jun 3, 2022
2abf663
docs(PPDSC-2172): unit test fix
Srinivasan-Ramasamy Jun 3, 2022
f7403d0
docs(PPDSC-2172): test build pr url fix - revert
Srinivasan-Ramasamy Jun 6, 2022
0cd400a
docs(PPDSC-2172): test changes for navigation pr fix
Srinivasan-Ramasamy Jun 6, 2022
d674e0b
docs(PPDSC-2172): revert test changes for navigation pr fix
Srinivasan-Ramasamy Jun 6, 2022
4ecac6e
Merge branch 'main' into docs/PPDSC-2172-patterns-index-overview-pages
Srinivasan-Ramasamy Jun 7, 2022
ec08b8c
docs(PPDSC-2172): unit test fix
Srinivasan-Ramasamy Jun 7, 2022
041d693
docs(PPDSC-2172): index file name changes
Srinivasan-Ramasamy Jun 7, 2022
c67ada4
Merge branch 'main' into docs/PPDSC-2172-patterns-index-overview-pages
Srinivasan-Ramasamy Jun 7, 2022
e95308a
docs(PPDSC-2172): overview file moved to forms folder
Srinivasan-Ramasamy Jun 7, 2022
b0a89c2
docs(PPDSC-2172): forms overview file moved to forms folder
Srinivasan-Ramasamy Jun 7, 2022
68d3ba3
Merge branch 'main' into docs/PPDSC-2172-patterns-index-overview-pages
Srinivasan-Ramasamy Jun 8, 2022
a872973
Merge branch 'main' into docs/PPDSC-2172-patterns-index-overview-pages
Srinivasan-Ramasamy Jun 8, 2022
c0c20ff
docs(PPDSC-2172): fix for applitools build issue test_visual_docs_2
Srinivasan-Ramasamy Jun 8, 2022
ea5813b
Merge branch 'main' into docs/PPDSC-2172-patterns-index-overview-pages
Srinivasan-Ramasamy Jun 10, 2022
d2dba85
docs(PPDSC-2172): patterns index file name changed to overview
Srinivasan-Ramasamy Jun 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
396 changes: 294 additions & 102 deletions site/components/__tests__/__snapshots__/site-header.test.tsx.snap

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion site/components/content-structure/types.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {MQ} from 'newskit';

export interface ContentBaseProps {
headline?: string;
headline?: string | React.ReactElement;
description?: string | React.ReactElement;
toc?: string;
id?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2734,11 +2734,11 @@ exports[`FeatureCard Renders interactive vertical card with button 1`] = `
<section
class="emotion-8"
>
<h1
<h3
class="nk-headline-heading emotion-9"
>
Interactive Horizontal Card
</h1>
</h3>
</section>
</div>
<div
Expand Down Expand Up @@ -3059,11 +3059,11 @@ exports[`FeatureCard Renders interactive vertical card without button 1`] = `
<section
class="emotion-8"
>
<h1
<h3
class="nk-headline-heading emotion-9"
>
Interactive Horizontal Card
</h1>
</h3>
</section>
</div>
<div
Expand Down Expand Up @@ -3893,11 +3893,11 @@ exports[`FeatureCard Renders non-interactive vertical card 1`] = `
<section
class="emotion-6"
>
<h1
<h3
class="nk-headline-heading emotion-7"
>
Interactive Horizontal Card
</h1>
</h3>
</section>
</div>
<div
Expand Down Expand Up @@ -4777,11 +4777,11 @@ exports[`FeatureCard Renders vertical card with clickable button only 1`] = `
<section
class="emotion-6"
>
<h1
<h3
class="nk-headline-heading emotion-7"
>
Interactive Horizontal Card
</h1>
</h3>
</section>
</div>
<div
Expand Down
1 change: 1 addition & 0 deletions site/components/feature-card/feature-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ const FeatureCardVertical = React.forwardRef<HTMLDivElement, FeatureCardProps>(
{title && (
<Block spaceStack={{xs: 'space045', lg: 'space050'}}>
<Headline
headingAs="h3"
overrides={{
typographyPreset: titleTypographyPreset,

Expand Down
470 changes: 470 additions & 0 deletions site/components/illustrations/patterns/forms/overview/hero.tsx

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
import React from 'react';
import {getSSRId} from 'newskit';
import {Svg} from '../../../../svg';
import {Path} from '../../../../path';
import {Rect} from '../../../../rect';

export const BestPractice: React.FC = () => {
const mask0 = getSSRId();
const mask1 = getSSRId();
const clip0 = getSSRId();

return (
<Svg
width="1490"
height="838"
viewBox="0 0 1490 838"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<g clipPath={`url(#${clip0})`}>
<Rect width="1490" height="838" fill="illustrationPalette050" />
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M1799.67 1502.22C2246.67 1232.93 2253.2 923.403 2254.08 915.99C2279.74 699.398 2303.7 238.692 2096.08 1.53646C1888.46 -235.619 1437.97 -485.965 1266.76 -85.7252C1257.08 431.049 749.767 472.051 629.082 752.465C508.397 1032.88 586.752 1263.66 805.776 1466.37C1024.8 1669.08 1352.67 1771.5 1799.67 1502.22Z"
fill="illustrationPalette030"
/>
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M-1023.05 147.076C-917.009 598.037 -655.352 687.984 -649.284 690.748C-472.001 771.502 -230.773 799.119 -18.272 746.126C194.229 693.134 385.719 470.522 404.557 281.293C423.395 92.0641 334.234 20.9049 265.47 -285.349C196.705 -591.603 340.721 -791.954 158.031 -880.637C-24.6586 -969.32 -510.829 -751.65 -718.692 -682.526C-921.359 -615.13 -1129.1 -303.885 -1023.05 147.076Z"
fill="illustrationPalette040"
/>
<mask
id={mask0}
mask-type="alpha"
maskUnits="userSpaceOnUse"
x="440"
y="108"
width="611"
height="622"
>
<Path
d="M594.544 151.407C448.023 238.076 396.853 428.308 480.253 576.302C563.653 724.297 750.041 774.011 896.563 687.343C1043.08 600.675 1094.25 410.443 1010.85 262.448C927.454 114.454 741.066 64.7391 594.544 151.407Z"
fill="white"
/>
</mask>
<g mask={`url(#${mask0})`} />
<mask
id={mask1}
mask-type="alpha"
maskUnits="userSpaceOnUse"
x="440"
y="108"
width="611"
height="622"
>
<Path
d="M594.544 151.407C448.023 238.076 396.853 428.308 480.253 576.302C563.653 724.297 750.041 774.011 896.563 687.343C1043.08 600.675 1094.25 410.443 1010.85 262.448C927.454 114.454 741.066 64.7391 594.544 151.407Z"
fill="white"
/>
</mask>
<g mask={`url(#${mask1})`}>
<Path
d="M594.41 151.27C447.964 237.861 396.915 428.093 480.39 576.165C563.865 724.236 750.253 774.075 896.7 687.484C1043.15 600.893 1094.2 410.661 1010.72 262.589C927.246 114.518 740.857 64.6782 594.41 151.27Z"
fill="teal070"
/>
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M1023.48 289.415C955.819 139.064 859.952 126.435 857.682 125.905C791.351 110.407 649.168 87.1141 568.131 144.585C487.094 202.056 447.778 421.343 565.936 489.071C672.708 550.273 682.788 649.494 751.521 667.38C820.255 685.266 906.147 664.304 976.897 602.057C1047.65 539.81 1091.14 439.767 1023.48 289.415Z"
fill="teal060"
/>
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M972.715 150.116C1066.04 229.234 1056.21 302.744 1056.14 304.529C1054.13 356.692 1051.99 428.668 995.378 477.683C938.762 526.698 826.256 525.432 823.851 525.235C776.258 521.347 757.387 447.327 718.81 407.942C677.363 365.627 643.862 328.487 644.649 274.083C645.437 219.679 701.153 166.116 741.964 124.449C781.754 83.8226 879.39 70.9974 972.715 150.116Z"
fill="teal040"
/>
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M982.252 159.543C1035.81 204.946 1030.17 247.13 1030.13 248.155C1028.97 278.089 1027.75 319.394 995.258 347.522C962.768 375.649 898.205 374.923 896.825 374.81C869.513 372.579 858.683 330.101 836.545 307.5C812.76 283.217 793.536 261.904 793.987 230.683C794.439 199.462 826.413 168.725 849.833 144.813C872.667 121.499 928.697 114.139 982.252 159.543Z"
fill="illustrationPalette020"
/>
</g>
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M912.302 323.962L881.135 292.805L688.238 485.638L596.873 394.303L565.706 425.46L688.176 547.89L689.219 546.847L689.282 546.91L912.302 323.962Z"
fill="white"
/>
</g>
<defs>
<clipPath id={clip0}>
<Rect width="1490" height="838" fill="white" />
</clipPath>
</defs>
</Svg>
);
};

export default BestPractice;
Loading