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

Remove wildcard Stitches imports #454

Merged
merged 7 commits into from
Jan 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions lib/src/components/action-icon/ActionIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type * as Stitches from '@stitches/react'
import type { VariantProps } from '@stitches/react'
import { darken } from 'color2k'
import invariant from 'invariant'
import * as React from 'react'
Expand Down Expand Up @@ -197,7 +197,7 @@ const StyledButton = styled('button', {

type ActionIconProps = Override<
React.ComponentProps<typeof StyledButton>,
Stitches.VariantProps<typeof StyledButton> & {
VariantProps<typeof StyledButton> & {
as?: string | React.ReactNode
children: React.ReactNode
label: string
Expand Down
4 changes: 2 additions & 2 deletions lib/src/components/button/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type * as Stitches from '@stitches/react'
import type { VariantProps } from '@stitches/react'
import { darken, opacify } from 'color2k'
import * as React from 'react'

Expand Down Expand Up @@ -235,7 +235,7 @@ const getChildren = (children, size) =>

type ButtonProps = Override<
React.ComponentProps<typeof StyledButton>,
Stitches.VariantProps<typeof StyledButton> & {
VariantProps<typeof StyledButton> & {
as?: React.ComponentType | React.ElementType
children: React.ReactNode
isLoading?: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ exports[`NumberInputField component renders a field in error state - has no prog
margin: 0;
}

.c-jVLVTy {
z-index: 1;
}

.c-fDzwZw {
align-items: center;
-webkit-appearance: none;
Expand All @@ -36,6 +40,36 @@ exports[`NumberInputField component renders a field in error state - has no prog
vertical-align: middle;
}

.c-fPoCzx {
border-color: var(--colors-tonal400) !important;
z-index: 1;
}

.c-fPoCzx:hover {
background: var(--colors-tonal50);
}

.c-fPoCzx:hover svg {
color: var(--colors-tonal400);
}

.c-fPoCzx svg {
color: var(--colors-tonal300);
}

.c-fPoCzx:active {
background: var(--colors-tonal100);
}

.c-fPoCzx:active svg {
color: var(--colors-tonal500);
}

.c-fPoCzx:disabled {
opacity: 0.3;
pointer-events: none;
}

.c-hVoQtf {
background-color: var(--colors-tonal500);
border-radius: var(--radii-0);
Expand Down Expand Up @@ -239,6 +273,12 @@ exports[`NumberInputField component renders a field in error state - has no prog
margin-bottom: var(--space-3);
}

.c-fPoCzx-iwWtoZ-css {
border-right: none;
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}

.c-fZTBsJ-ibwGleD-css {
border-radius: 0px;
width: var(--sizes-6);
Expand All @@ -249,6 +289,12 @@ exports[`NumberInputField component renders a field in error state - has no prog
pointer-events: none;
}

.c-fPoCzx-ihgsOSq-css {
border-left: none;
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}

.c-dhzjXW-ijkHUQU-css {
margin-top: var(--space-2);
}
Expand All @@ -258,56 +304,6 @@ exports[`NumberInputField component renders a field in error state - has no prog
}
}

@media {
.c-jVLVTy {
z-index: 1;
}

.c-fPoCzx {
border-color: var(--colors-tonal400) !important;
z-index: 1;
}

.c-fPoCzx:hover {
bg: var(--tonal50);
}

.c-fPoCzx:hover svg {
color: var(--colors-tonal400);
}

.c-fPoCzx svg {
color: var(--colors-tonal300);
}

.c-fPoCzx:active {
bg: var(--tonal100);
}

.c-fPoCzx:active svg {
color: var(--colors-tonal500);
}

.c-fPoCzx:disabled {
opacity: 0.3;
pointer-events: none;
}
}

@media {
.c-fPoCzx-iwWtoZ-css {
border-right: none;
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}

.c-fPoCzx-ihgsOSq-css {
border-left: none;
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}
}

<div>
<form
aria-label="form"
Expand Down Expand Up @@ -443,6 +439,10 @@ exports[`NumberInputField component renders a field with a disabled input - has
margin: 0;
}

.c-jVLVTy {
z-index: 1;
}

.c-fDzwZw {
align-items: center;
-webkit-appearance: none;
Expand All @@ -467,6 +467,36 @@ exports[`NumberInputField component renders a field with a disabled input - has
vertical-align: middle;
}

.c-fPoCzx {
border-color: var(--colors-tonal400) !important;
z-index: 1;
}

.c-fPoCzx:hover {
background: var(--colors-tonal50);
}

.c-fPoCzx:hover svg {
color: var(--colors-tonal400);
}

.c-fPoCzx svg {
color: var(--colors-tonal300);
}

.c-fPoCzx:active {
background: var(--colors-tonal100);
}

.c-fPoCzx:active svg {
color: var(--colors-tonal500);
}

.c-fPoCzx:disabled {
opacity: 0.3;
pointer-events: none;
}

.c-hVoQtf {
background-color: var(--colors-tonal500);
border-radius: var(--radii-0);
Expand Down Expand Up @@ -623,6 +653,12 @@ exports[`NumberInputField component renders a field with a disabled input - has
margin-bottom: var(--space-3);
}

.c-fPoCzx-iwWtoZ-css {
border-right: none;
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}

.c-fZTBsJ-ibwGleD-css {
border-radius: 0px;
width: var(--sizes-6);
Expand All @@ -632,50 +668,6 @@ exports[`NumberInputField component renders a field with a disabled input - has
opacity: 0.3;
pointer-events: none;
}
}

@media {
.c-jVLVTy {
z-index: 1;
}

.c-fPoCzx {
border-color: var(--colors-tonal400) !important;
z-index: 1;
}

.c-fPoCzx:hover {
bg: var(--tonal50);
}

.c-fPoCzx:hover svg {
color: var(--colors-tonal400);
}

.c-fPoCzx svg {
color: var(--colors-tonal300);
}

.c-fPoCzx:active {
bg: var(--tonal100);
}

.c-fPoCzx:active svg {
color: var(--colors-tonal500);
}

.c-fPoCzx:disabled {
opacity: 0.3;
pointer-events: none;
}
}

@media {
.c-fPoCzx-iwWtoZ-css {
border-right: none;
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}

.c-fPoCzx-ihgsOSq-css {
border-left: none;
Expand Down Expand Up @@ -790,6 +782,10 @@ exports[`NumberInputField component renders a field with a number input - has no
margin: 0;
}

.c-jVLVTy {
z-index: 1;
}

.c-fDzwZw {
align-items: center;
-webkit-appearance: none;
Expand All @@ -814,6 +810,36 @@ exports[`NumberInputField component renders a field with a number input - has no
vertical-align: middle;
}

.c-fPoCzx {
border-color: var(--colors-tonal400) !important;
z-index: 1;
}

.c-fPoCzx:hover {
background: var(--colors-tonal50);
}

.c-fPoCzx:hover svg {
color: var(--colors-tonal400);
}

.c-fPoCzx svg {
color: var(--colors-tonal300);
}

.c-fPoCzx:active {
background: var(--colors-tonal100);
}

.c-fPoCzx:active svg {
color: var(--colors-tonal500);
}

.c-fPoCzx:disabled {
opacity: 0.3;
pointer-events: none;
}

.c-hVoQtf {
background-color: var(--colors-tonal500);
border-radius: var(--radii-0);
Expand Down Expand Up @@ -970,6 +996,12 @@ exports[`NumberInputField component renders a field with a number input - has no
margin-bottom: var(--space-3);
}

.c-fPoCzx-iwWtoZ-css {
border-right: none;
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}

.c-fZTBsJ-ibwGleD-css {
border-radius: 0px;
width: var(--sizes-6);
Expand All @@ -979,50 +1011,6 @@ exports[`NumberInputField component renders a field with a number input - has no
opacity: 0.3;
pointer-events: none;
}
}

@media {
.c-jVLVTy {
z-index: 1;
}

.c-fPoCzx {
border-color: var(--colors-tonal400) !important;
z-index: 1;
}

.c-fPoCzx:hover {
bg: var(--tonal50);
}

.c-fPoCzx:hover svg {
color: var(--colors-tonal400);
}

.c-fPoCzx svg {
color: var(--colors-tonal300);
}

.c-fPoCzx:active {
bg: var(--tonal100);
}

.c-fPoCzx:active svg {
color: var(--colors-tonal500);
}

.c-fPoCzx:disabled {
opacity: 0.3;
pointer-events: none;
}
}

@media {
.c-fPoCzx-iwWtoZ-css {
border-right: none;
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}

.c-fPoCzx-ihgsOSq-css {
border-left: none;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/components/number-input/NumberInputStepper.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { styled } from '@stitches/react'
import { styled } from '~/stitches'
import * as React from 'react'

import { ActionIcon } from '../action-icon'
Expand Down
Loading