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

Feat/ppdsc 2143 volume control horizontal expand #306

Merged
merged 29 commits into from
Aug 9, 2022
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
a08ff57
feat(PPDSC-2143): chore-ppdse-2143-added expand
baburay23 Jul 20, 2022
b81d66a
feat(PPDSC-2143): chore-ppdse-2143-added types
baburay23 Jul 20, 2022
69a622a
feat(PPDSC-2143): chore-ppdse-2143-layout options working
baburay23 Jul 21, 2022
3cf03ff
feat(PPDSC-2143): chore-ppdse-2143-tidied up
baburay23 Jul 21, 2022
97d373a
feat(PPDSC-2143): chore-ppdse-2143-transition ahrd coded
baburay23 Jul 22, 2022
07c5c52
feat(PPDSC-2143): chore-ppdse-2143-added stories
baburay23 Jul 22, 2022
87d8207
feat(PPDSC-2143): chore-ppds-2143-motion working
baburay23 Jul 25, 2022
9244bab
feat(PPDSC-2143): chore-ppds-2143-horizonal working
baburay23 Jul 25, 2022
c5d52f1
feat(PPDSC-2143): chore-ppds-2143-added visible
baburay23 Jul 26, 2022
2ff26fc
feat(PPDSC-2143): chore-ppds-2143-tideid up
baburay23 Jul 27, 2022
6481188
feat(PPDSC-2143): chore-ppds-2143-updated snapshots and sotires
baburay23 Jul 27, 2022
d7dcac7
feat(PPDSC-2143): chore-ppds-2143-added tests for styled.ts
baburay23 Jul 27, 2022
c746df2
feat(PPDSC-2143): chore-ppds-2143-tests 100%
baburay23 Jul 27, 2022
3aeecb8
feat(PPDSC-2143): chore-ppds-2143-sorted merge issues
baburay23 Jul 28, 2022
7f9a675
feat(PPDSC-2143): chore-ppds-2143-updated stories
baburay23 Jul 28, 2022
f0d9fa6
feat(PPDSC-2143): chore-ppds-2143-updated tests
baburay23 Jul 28, 2022
9ce764c
feat(PPDSC-2143): chore-ppds-2143-removed comments
baburay23 Jul 28, 2022
10cf206
feat(PPDSC-2143): chore-ppds-2143-fixed aria-landmark
baburay23 Jul 28, 2022
d55a0ab
feat(PPDSC-2143): chore-ppds-2143-updated docs
baburay23 Jul 28, 2022
dc99f49
feat(PPDSC-2143): chore-ppds-2143-addressed comments
baburay23 Aug 1, 2022
8e5e8dd
Merge branch 'main' into feat/PPDSC-2143-volume-control-horizontal-ex…
baburay23 Aug 1, 2022
ca34e04
feat(PPDSC-2143): chore-ppds-2143-added comment
baburay23 Aug 2, 2022
4b6fe96
feat(PPDSC-2143): chore-ppds-2143-added comment
baburay23 Aug 2, 2022
41051e7
feat(PPDSC-2143): chore-ppds-2143-added for open
baburay23 Aug 2, 2022
1cce83c
Merge branch 'main' into feat/PPDSC-2143-volume-control-horizontal-ex…
baburay23 Aug 2, 2022
7f4a22d
Merge branch 'main' into feat/PPDSC-2143-volume-control-horizontal-ex…
baburay23 Aug 3, 2022
a799bc6
Merge branch 'main' into feat/PPDSC-2143-volume-control-horizontal-ex…
baburay23 Aug 8, 2022
245e7ab
Merge branch 'main' into feat/PPDSC-2143-volume-control-horizontal-ex…
baburay23 Aug 8, 2022
dc16b6b
Merge branch 'main' into feat/PPDSC-2143-volume-control-horizontal-ex…
baburay23 Aug 9, 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import React from 'react';
import {Svg} from '../../../svg';
import {Path} from '../../../path';
import {Rect} from '../../../rect';

export const widthChange: React.FC = () => (
<Svg
width="1000"
height="1000"
viewBox="0 0 1000 1000"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<Rect width="1000" height="1000" rx="22" fill="illustrationBackground020" />
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M822.209 629.153C817.222 626.021 810.765 629.639 810.765 635.566V659.555L138.5 660.099L138.5 672.465L810.765 672.465V697.434C810.765 703.36 817.22 706.978 822.207 703.848L871.468 672.925C876.176 669.97 876.178 663.056 871.47 660.099L822.209 629.153Z"
fill="illustrationInterface090"
/>
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M740 311H260C194.278 311 141 364.278 141 430C141 495.722 194.278 549 260 549H740C805.722 549 859 495.722 859 430C859 364.278 805.722 311 740 311ZM260 295C185.442 295 125 355.442 125 430C125 504.558 185.442 565 260 565H740C814.558 565 875 504.558 875 430C875 355.442 814.558 295 740 295H260Z"
fill="illustrationPalette040"
/>
<Path
d="M759.891 425.8C764.771 426.84 768.691 429.28 771.651 433.12C774.611 436.88 776.091 441.2 776.091 446.08C776.091 453.12 773.611 458.72 768.651 462.88C763.771 466.96 756.931 469 748.131 469H708.891V384.76H746.811C755.371 384.76 762.051 386.72 766.851 390.64C771.731 394.56 774.171 399.88 774.171 406.6C774.171 411.56 772.851 415.68 770.211 418.96C767.651 422.24 764.211 424.52 759.891 425.8ZM729.411 418.84H742.851C746.211 418.84 748.771 418.12 750.531 416.68C752.371 415.16 753.291 412.96 753.291 410.08C753.291 407.2 752.371 405 750.531 403.48C748.771 401.96 746.211 401.2 742.851 401.2H729.411V418.84ZM744.531 452.44C747.971 452.44 750.611 451.68 752.451 450.16C754.371 448.56 755.331 446.28 755.331 443.32C755.331 440.36 754.331 438.04 752.331 436.36C750.411 434.68 747.731 433.84 744.291 433.84H729.411V452.44H744.531Z"
fill="illustrationPalette040"
/>
<Path
d="M395 430C395 504.558 334.558 565 260 565C185.442 565 125 504.558 125 430C125 355.442 185.442 295 260 295C334.558 295 395 355.442 395 430Z"
fill="illustrationPalette040"
/>
<Path
d="M278.14 457.12H246.7L241.66 472H220.18L250.66 387.76H274.42L304.9 472H283.18L278.14 457.12ZM272.86 441.28L262.42 410.44L252.1 441.28H272.86Z"
fill="white"
/>
</Svg>
);

export default widthChange;
9 changes: 9 additions & 0 deletions site/pages/theme/presets/transition-presets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,15 @@ const PRESETS = [
</>
),
},
{
example: getImage(
'theme/transition-presets/predefined-transition-presets/widthchange',
),
token: 'widthChange',
description: 'Transition width from the initial state to the final state.',
implementation:
'Can be applied to components to achieve a width change when interacting eg. applied to the expandable horizontal volume control audio player subcomponent on hover or focus.',
},
];

const USER_INTERACTION = [
Expand Down
176 changes: 176 additions & 0 deletions site/theme/__tests__/__snapshots__/doc-theme.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2047,6 +2047,28 @@ Object {
"transform": "translateY(-100%)",
},
},
"widthChange": Object {
"base": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
"transitionTimingFunction": "{{motions.motionTimingEaseOut}}",
},
"enter": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"enterActive": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"enterDone": Object {},
"exit": Object {},
"exitActive": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"exitDone": Object {},
},
},
"typographyPresets": Object {
"editorialCaption010": Object {
Expand Down Expand Up @@ -4458,6 +4480,28 @@ Object {
"transform": "translateY(-100%)",
},
},
"widthChange": Object {
"base": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
"transitionTimingFunction": "{{motions.motionTimingEaseOut}}",
},
"enter": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"enterActive": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"enterDone": Object {},
"exit": Object {},
"exitActive": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"exitDone": Object {},
},
},
"typographyPresets": Object {
"editorialCaption010": Object {
Expand Down Expand Up @@ -6872,6 +6916,28 @@ Object {
"transform": "translateY(-100%)",
},
},
"widthChange": Object {
"base": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
"transitionTimingFunction": "{{motions.motionTimingEaseOut}}",
},
"enter": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"enterActive": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"enterDone": Object {},
"exit": Object {},
"exitActive": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"exitDone": Object {},
},
},
"typographyPresets": Object {
"editorialCaption010": Object {
Expand Down Expand Up @@ -9283,6 +9349,28 @@ Object {
"transform": "translateY(-100%)",
},
},
"widthChange": Object {
"base": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
"transitionTimingFunction": "{{motions.motionTimingEaseOut}}",
},
"enter": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"enterActive": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"enterDone": Object {},
"exit": Object {},
"exitActive": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"exitDone": Object {},
},
},
"typographyPresets": Object {
"editorialCaption010": Object {
Expand Down Expand Up @@ -11697,6 +11785,28 @@ Object {
"transform": "translateY(-100%)",
},
},
"widthChange": Object {
"base": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
"transitionTimingFunction": "{{motions.motionTimingEaseOut}}",
},
"enter": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"enterActive": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"enterDone": Object {},
"exit": Object {},
"exitActive": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"exitDone": Object {},
},
},
"typographyPresets": Object {
"editorialCaption010": Object {
Expand Down Expand Up @@ -14108,6 +14218,28 @@ Object {
"transform": "translateY(-100%)",
},
},
"widthChange": Object {
"base": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
"transitionTimingFunction": "{{motions.motionTimingEaseOut}}",
},
"enter": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"enterActive": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"enterDone": Object {},
"exit": Object {},
"exitActive": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"exitDone": Object {},
},
},
"typographyPresets": Object {
"editorialCaption010": Object {
Expand Down Expand Up @@ -16522,6 +16654,28 @@ Object {
"transform": "translateY(-100%)",
},
},
"widthChange": Object {
"base": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
"transitionTimingFunction": "{{motions.motionTimingEaseOut}}",
},
"enter": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"enterActive": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"enterDone": Object {},
"exit": Object {},
"exitActive": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"exitDone": Object {},
},
},
"typographyPresets": Object {
"editorialCaption010": Object {
Expand Down Expand Up @@ -18933,6 +19087,28 @@ Object {
"transform": "translateY(-100%)",
},
},
"widthChange": Object {
"base": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
"transitionTimingFunction": "{{motions.motionTimingEaseOut}}",
},
"enter": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"enterActive": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"enterDone": Object {},
"exit": Object {},
"exitActive": Object {
"transitionDuration": "{{motions.motionDuration020}}",
"transitionProperty": "width",
},
"exitDone": Object {},
},
},
"typographyPresets": Object {
"editorialCaption010": Object {
Expand Down
Loading