Skip to content

Commit

Permalink
fix: ran yarn dedupe and yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
guidari committed Dec 19, 2024
1 parent f3a1b82 commit 5aa82fe
Show file tree
Hide file tree
Showing 101 changed files with 220 additions and 834 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 1 addition & 2 deletions docs/guides/icons.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ update PR:
`--modifiers`. All icons with `--modifiers` are listed as variants of the
same icon.
3. make desired edits on the icon's `aliases` list.
4. commit changes, preferably with a commit message "[icon name] metadata
update".
4. commit changes, preferably with a commit message "[icon name] metadata update".
5. create a new branch, suggested branch name is `yourname-metadata-iconName`
6. create the PR from your branch, or click on `Propose file change` if you are
in browser.
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/support.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ started in case you get stuck.
- “Could you share more about what you’ve already tried?”
- “Can you share more about your usecase?”
- “Can you add a repro (reproduction) using Stackblitz?”
- “After searching through [FILL IN RESOURCE HERE], I was able to find this and
thought it might be helpful... Let me know if that works.”
- “After searching through [FILL IN RESOURCE HERE], I was able to find this and thought
it might be helpful... Let me know if that works.”

### What does "ongoing support" mean regarding GitHub?

Expand Down
5 changes: 2 additions & 3 deletions packages/icon-build-helpers/src/builders/vanilla.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ async function builder(metadata, { output }) {
for (const m of modules) {
files[m.filepath] = m.source;
input[m.filepath] = m.filepath;
files[
'index.js'
] += `\nexport { default as ${m.moduleName} } from '${m.filepath}';`;
files['index.js'] +=
`\nexport { default as ${m.moduleName} } from '${m.filepath}';`;
}

const bundle = await rollup({
Expand Down
5 changes: 2 additions & 3 deletions packages/icon-build-helpers/src/builders/vue/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ async function builder(metadata, { output }) {
for (const m of modules) {
files[m.filepath] = m.source;
input[m.filepath] = m.filepath;
files[
'index.js'
] += `\nexport { default as ${m.moduleName} } from '${m.filepath}';`;
files['index.js'] +=
`\nexport { default as ${m.moduleName} } from '${m.filepath}';`;
}

const bundle = await rollup({
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Button/ButtonBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { useId } from '../../internal/useId';
import { ButtonBaseProps, ButtonProps } from './Button';

const ButtonBase = React.forwardRef(function ButtonBase<
T extends React.ElementType
T extends React.ElementType,
>(
{
as,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Heading/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type SectionProps<E extends ElementType> = PolymorphicProps<
>;

export const Section = React.forwardRef(function Section<
E extends ElementType = 'section'
E extends ElementType = 'section',
>(
{
as: BaseComponent = 'section' as E,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Layer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface LayerComponent {
}

const LayerRenderFunction = React.forwardRef(function Layer<
T extends React.ElementType
T extends React.ElementType,
>(
{
as = 'div' as T,
Expand Down
11 changes: 5 additions & 6 deletions packages/react/src/components/Stack/VStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ import React from 'react';

import { Stack, StackProps } from './Stack';

const VStack = React.forwardRef<React.ReactNode, StackProps>(function VStack(
props,
ref
) {
return <Stack {...props} ref={ref} orientation="vertical" />;
});
const VStack = React.forwardRef<React.ReactNode, StackProps>(
function VStack(props, ref) {
return <Stack {...props} ref={ref} orientation="vertical" />;
}
);

export { VStack };
2 changes: 1 addition & 1 deletion packages/react/src/components/UIShell/SideNavLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export interface SideNavLinkComponent {
}

const SideNavLink: SideNavLinkComponent = forwardRef(function SideNavLink<
E extends ElementType = 'a'
E extends ElementType = 'a',
>(
{
children,
Expand Down
10 changes: 4 additions & 6 deletions packages/react/src/internal/__tests__/wrapFocus-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ describe('wrapFocus', () => {
});

it('uses inner modal node as a escape hatch for focusing for forward focus-wrap', () => {
node.querySelector(
'#inner-modal'
).innerHTML = `<div id="dummy-old-active-node"></div>`;
node.querySelector('#inner-modal').innerHTML =
`<div id="dummy-old-active-node"></div>`;
wrapFocus({
bodyNode: node.querySelector('#inner-modal'),
startSentinelNode: node.querySelector('#start-sentinel'),
Expand All @@ -135,9 +134,8 @@ describe('wrapFocus', () => {
});

it('uses inner modal node as a escape hatch for focusing for reverse focus-wrap', () => {
node.querySelector(
'#inner-modal'
).innerHTML = `<div id="dummy-old-active-node"></div>`;
node.querySelector('#inner-modal').innerHTML =
`<div id="dummy-old-active-node"></div>`;
wrapFocus({
bodyNode: node.querySelector('#inner-modal'),
startSentinelNode: node.querySelector('#start-sentinel'),
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/types/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ export interface TranslateWithId<MID = string, ARGS = Record<string, unknown>> {
*/
export type InternationalProps<
MID = string,
ARGS = Record<string, unknown>
ARGS = Record<string, unknown>,
> = TranslateWithId<MID, ARGS>;
9 changes: 6 additions & 3 deletions packages/styles/scss/components/accordion/_accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,12 @@ $content-padding: 0 0 0 $spacing-05 !default;
position: relative;
z-index: 2;
box-shadow:
/* Border top */ 0 -1px 0 0 $focus,
inset 0 1px 0 0 $focus, /* Border right */ inset 2px 0 0 0 $focus,
/* Border bottom */ 0 1px 0 0 $focus, inset 0 -1px 0 0 $focus,
/* Border top */
0 -1px 0 0 $focus,
inset 0 1px 0 0 $focus,
/* Border right */ inset 2px 0 0 0 $focus,
/* Border bottom */ 0 1px 0 0 $focus,
inset 0 -1px 0 0 $focus,
/* Border left */ inset -2px 0 0 0 $focus;
outline: none;
}
Expand Down
11 changes: 7 additions & 4 deletions packages/styles/scss/components/button/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,14 @@ $button-focus-color: custom-property.get-var('button-focus-color', $focus);
);
padding-inline: calc(layout.density('padding-inline') - convert.to-rem(1px))
calc(
layout.density('padding-inline') * 3 + convert.to-rem(16px) -
convert.to-rem(1px)
layout.density('padding-inline') * 3 + convert.to-rem(16px) - convert.to-rem(
1px
)
);
text-align: start;
text-decoration: none;
transition: background $duration-fast-01 motion(entrance, productive),
transition:
background $duration-fast-01 motion(entrance, productive),
box-shadow $duration-fast-01 motion(entrance, productive),
border-color $duration-fast-01 motion(entrance, productive),
outline $duration-fast-01 motion(entrance, productive);
Expand Down Expand Up @@ -127,7 +129,8 @@ $button-focus-color: custom-property.get-var('button-focus-color', $focus);

&:focus {
border-color: $button-focus-color;
box-shadow: inset 0 0 0 $button-outline-width $button-focus-color,
box-shadow:
inset 0 0 0 $button-outline-width $button-focus-color,
inset 0 0 0 $button-border-width $background;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@
&:focus {
z-index: 3;
border-color: $focus;
box-shadow: inset 0 0 0 2px $focus, inset 0 0 0 3px $focus-inset;
box-shadow:
inset 0 0 0 2px $focus,
inset 0 0 0 3px $focus-inset;
}

&:focus::after {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
border: 0;
background-color: $layer-hover;
padding-block: 0;
transition: padding $duration-moderate-01 motion(standard, productive),
transition:
padding $duration-moderate-01 motion(standard, productive),
background-color $duration-fast-01 motion(standard, productive);
}

Expand All @@ -64,15 +65,16 @@

//child row visible
tr.#{$prefix}--parent-row.#{$prefix}--expandable-row + tr[data-child-row] {
transition: height $duration-moderate-01 motion(standard, productive),
transition:
height $duration-moderate-01 motion(standard, productive),
background-color $duration-fast-01 motion(standard, productive);
}

tr.#{$prefix}--parent-row.#{$prefix}--expandable-row + tr[data-child-row] td {
border-block-end: 1px solid $border-subtle;
padding-inline-start: 3.5rem;
transition: padding-bottom $duration-moderate-01
motion(standard, productive),
transition:
padding-bottom $duration-moderate-01 motion(standard, productive),
transform $duration-moderate-01 motion(standard, productive);
}

Expand Down Expand Up @@ -128,7 +130,8 @@
tr.#{$prefix}--parent-row:not(.#{$prefix}--expandable-row) td,
tr.#{$prefix}--parent-row.#{$prefix}--expandable-row td,
tr.#{$prefix}--parent-row.#{$prefix}--expandable-row {
transition: height $duration-moderate-01 motion(standard, productive),
transition:
height $duration-moderate-01 motion(standard, productive),
background-color $duration-fast-01 motion(standard, productive),
border-color $duration-fast-01 motion(standard, productive);
}
Expand Down Expand Up @@ -352,7 +355,8 @@
tr.#{$prefix}--parent-row.#{$prefix}--expandable-row
+ tr[data-child-row]
td {
transition: transform $duration-moderate-01 motion(standard, productive),
transition:
transform $duration-moderate-01 motion(standard, productive),
border-bottom $duration-fast-01 motion(standard, productive),
border-top $duration-fast-01 motion(standard, productive);
}
Expand Down
12 changes: 8 additions & 4 deletions packages/styles/scss/components/date-picker/_flatpickr.scss
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@
}

.flatpickr-calendar.animate .dayContainer.slideLeft {
animation: fp-fade-out 400ms cubic-bezier(0.23, 1, 0.32, 1),
animation:
fp-fade-out 400ms cubic-bezier(0.23, 1, 0.32, 1),
fp-slide-left 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

Expand All @@ -416,18 +417,21 @@
}

.flatpickr-calendar.animate .dayContainer.slideLeftNew {
animation: fp-fade-in 400ms cubic-bezier(0.23, 1, 0.32, 1),
animation:
fp-fade-in 400ms cubic-bezier(0.23, 1, 0.32, 1),
fp-slide-left 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

.flatpickr-calendar.animate .dayContainer.slideRight {
animation: fp-fade-out 400ms cubic-bezier(0.23, 1, 0.32, 1),
animation:
fp-fade-out 400ms cubic-bezier(0.23, 1, 0.32, 1),
fp-slide-right 400ms cubic-bezier(0.23, 1, 0.32, 1);
transform: translate3d(100%, 0, 0);
}

.flatpickr-calendar.animate .dayContainer.slideRightNew {
animation: fp-fade-in 400ms cubic-bezier(0.23, 1, 0.32, 1),
animation:
fp-fade-in 400ms cubic-bezier(0.23, 1, 0.32, 1),
fp-slide-right-new 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

Expand Down
13 changes: 8 additions & 5 deletions packages/styles/scss/components/dialog/_dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
/** opening and closing is used in as allow-discrete is not currently supported wide enough
* https://caniuse.com/mdn-css_properties_display_is_transitionable
*/
transition: opacity $duration-moderate-02 motion(exit, expressive),
transition:
opacity $duration-moderate-02 motion(exit, expressive),
transform $duration-moderate-02 motion(exit, expressive),
overlay $duration-moderate-02 motion(exit, expressive) allow-discrete,
display $duration-moderate-02 motion(exit, expressive) allow-discrete;
Expand All @@ -65,7 +66,8 @@
opacity: 1;
transform: translateY(0);

transition: opacity $duration-moderate-02 motion(entrance, expressive),
transition:
opacity $duration-moderate-02 motion(entrance, expressive),
transform $duration-moderate-02 motion(entrance, expressive),
overlay $duration-moderate-02 motion(entrance, expressive)
allow-discrete,
Expand Down Expand Up @@ -115,8 +117,8 @@
/* opening and closing is used in as allow-discrete is not currently supported wide enough
* https://caniuse.com/mdn-css_properties_display_is_transitionable
*/
transition: background-color $duration-moderate-02
motion(entrance, expressive),
transition:
background-color $duration-moderate-02 motion(entrance, expressive),
opacity $duration-moderate-02 motion(entrance, expressive);

@media (prefers-reduced-motion) {
Expand All @@ -127,7 +129,8 @@
.#{$prefix}--dialog[open]::backdrop {
opacity: 1;

transition: background-color $duration-moderate-02 motion(exit, expressive),
transition:
background-color $duration-moderate-02 motion(exit, expressive),
opacity $duration-moderate-02 motion(exit, expressive);

@media (prefers-reduced-motion) {
Expand Down
3 changes: 2 additions & 1 deletion packages/styles/scss/components/loading/_animation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@

@mixin stop {
// Animate the container
animation: #{$prefix}--rotate-end-p1 700ms motion.$ease-out forwards,
animation:
#{$prefix}--rotate-end-p1 700ms motion.$ease-out forwards,
#{$prefix}--rotate-end-p2 700ms motion.$ease-out 700ms forwards;

// Animate the stroke
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@
.#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary:focus {
border-color: $focus-inverse;
background-color: $notification-action-tertiary-inverse;
box-shadow: inset 0 0 0 button-vars.$button-outline-width $focus-inverse,
box-shadow:
inset 0 0 0 button-vars.$button-outline-width $focus-inverse,
inset 0 0 0 button-vars.$button-border-width $background-inverse;
color: $notification-action-tertiary-inverse-text;
}
Expand Down Expand Up @@ -439,7 +440,8 @@
inset-inline-end: 0;
max-inline-size: convert.to-rem(48px);
min-inline-size: convert.to-rem(48px);
transition: outline $duration-fast-02 motion(standard, productive),
transition:
outline $duration-fast-02 motion(standard, productive),
background-color $duration-fast-02 motion(standard, productive);

&:focus {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@
inset-inline-end: 0;
max-inline-size: convert.to-rem(48px);
min-inline-size: convert.to-rem(48px);
transition: outline $duration-fast-02 motion(standard, productive),
transition:
outline $duration-fast-02 motion(standard, productive),
background-color $duration-fast-02 motion(standard, productive);

&:focus {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@
margin-inline-start: auto;
min-block-size: convert.to-rem(48px);
min-inline-size: convert.to-rem(48px);
transition: outline $transition-base, background-color $transition-base;
transition:
outline $transition-base,
background-color $transition-base;

&:focus {
outline: 2px solid $focus-inverse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
cursor: pointer;
inline-size: convert.to-rem(40px);
min-block-size: convert.to-rem(40px);
transition: outline $duration-fast-02 motion(entrance, productive),
transition:
outline $duration-fast-02 motion(entrance, productive),
background-color $duration-fast-02 motion(entrance, productive);

&:focus {
Expand Down Expand Up @@ -272,7 +273,8 @@
inline-size: 100%;
max-inline-size: 11.25rem;
text-align: start;
transition: outline $duration-fast-02 motion(entrance, productive),
transition:
outline $duration-fast-02 motion(entrance, productive),
background-color $duration-fast-02 motion(entrance, productive),
color $duration-fast-02 motion(entrance, productive);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
outline: 0;
text-align: center;
text-decoration: none;
transition: background-color $duration-fast-02 motion(standard, productive),
transition:
background-color $duration-fast-02 motion(standard, productive),
color $duration-fast-02 motion(standard, productive);
user-select: none;

Expand Down
Loading

0 comments on commit 5aa82fe

Please sign in to comment.