diff --git a/.changeset/hungry-avocados-remember.md b/.changeset/hungry-avocados-remember.md new file mode 100644 index 00000000000..ffe0993061d --- /dev/null +++ b/.changeset/hungry-avocados-remember.md @@ -0,0 +1,5 @@ +--- +'@primer/react': minor +--- + +Migrated `Spinner` component to use support CSS modules diff --git a/packages/react/src/Spinner/Spinner.dev.stories.tsx b/packages/react/src/Spinner/Spinner.dev.stories.tsx new file mode 100644 index 00000000000..4faf30a1d02 --- /dev/null +++ b/packages/react/src/Spinner/Spinner.dev.stories.tsx @@ -0,0 +1,10 @@ +import React from 'react' +import type {Meta} from '@storybook/react' +import Spinner from './Spinner' + +export default { + title: 'Components/Spinner/Dev', + component: Spinner, +} as Meta + +export const Default = () => diff --git a/packages/react/src/Spinner/Spinner.module.css b/packages/react/src/Spinner/Spinner.module.css new file mode 100644 index 00000000000..0de12278040 --- /dev/null +++ b/packages/react/src/Spinner/Spinner.module.css @@ -0,0 +1,13 @@ +.Box { + display: inline-flex; +} + +@keyframes rotate-keyframes { + 100% { + transform: rotate(360deg); + } +} + +.SpinnerAnimation { + animation: rotate-keyframes 1s linear infinite; +} diff --git a/packages/react/src/Spinner/Spinner.tsx b/packages/react/src/Spinner/Spinner.tsx index 63cd0d33304..6292234b6fe 100644 --- a/packages/react/src/Spinner/Spinner.tsx +++ b/packages/react/src/Spinner/Spinner.tsx @@ -3,8 +3,10 @@ import styled from 'styled-components' import sx, {type SxProp} from '../sx' import {VisuallyHidden} from '../VisuallyHidden' import type {HTMLDataAttributes} from '../internal/internal-types' -import Box from '../Box' import {useId} from '../hooks' +import {useFeatureFlag} from '../FeatureFlags' +import classes from './Spinner.module.css' +import Box from '../Box' const sizeMap = { small: '16px', @@ -20,6 +22,7 @@ export type SpinnerProps = { /** @deprecated Use `srText` instead. */ 'aria-label'?: string className?: string + style?: React.CSSProperties } & HTMLDataAttributes & SxProp @@ -28,6 +31,7 @@ function Spinner({ srText = 'Loading', 'aria-label': ariaLabel, className, + style, ...props }: SpinnerProps) { const size = sizeMap[sizeKey] @@ -36,7 +40,7 @@ function Spinner({ return ( /* inline-flex removes the extra line height */ - + {hasHiddenLabel ? {srText} : null} - + ) } -const StyledSpinner = styled(Spinner)` +const StyledComponentSpinner = styled(Spinner)` @keyframes rotate-keyframes { 100% { transform: rotate(360deg); @@ -82,6 +87,19 @@ const StyledSpinner = styled(Spinner)` ${sx} ` +function StyledSpinner({sx, ...props}: SpinnerProps) { + const enabled = useFeatureFlag('primer_react_css_modules_team') + if (enabled) { + if (sx) { + return + } + + return + } + + return +} + StyledSpinner.displayName = 'Spinner' export default StyledSpinner diff --git a/packages/react/src/__tests__/__snapshots__/Autocomplete.test.tsx.snap b/packages/react/src/__tests__/__snapshots__/Autocomplete.test.tsx.snap index 9637ecc100e..c3dd83b8058 100644 --- a/packages/react/src/__tests__/__snapshots__/Autocomplete.test.tsx.snap +++ b/packages/react/src/__tests__/__snapshots__/Autocomplete.test.tsx.snap @@ -327,14 +327,7 @@ exports[`snapshots renders a loading state 1`] = ` justify-content: center; } -.c2 { - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - -.c4:not(:focus):not(:active):not(:focus-within) { +.c3:not(:focus):not(:active):not(:focus-within) { -webkit-clip-path: inset(50%); clip-path: inset(50%); height: 1px; @@ -344,7 +337,7 @@ exports[`snapshots renders a loading state 1`] = ` width: 1px; } -.c3 { +.c2 { -webkit-animation: rotate-keyframes 1s linear infinite; animation: rotate-keyframes 1s linear infinite; } @@ -374,12 +367,12 @@ exports[`snapshots renders a loading state 1`] = ` display="flex" > Loading diff --git a/packages/react/src/__tests__/__snapshots__/TextInput.test.tsx.snap b/packages/react/src/__tests__/__snapshots__/TextInput.test.tsx.snap index 2c8c4fe8878..2c67fb764da 100644 --- a/packages/react/src/__tests__/__snapshots__/TextInput.test.tsx.snap +++ b/packages/react/src/__tests__/__snapshots__/TextInput.test.tsx.snap @@ -4038,13 +4038,6 @@ exports[`TextInput renders with a loading indicator 1`] = ` } .c5 { - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - -.c6 { -webkit-animation: rotate-keyframes 1s linear infinite; animation: rotate-keyframes 1s linear infinite; visibility: visible; @@ -4212,11 +4205,11 @@ exports[`TextInput renders with a loading indicator 1`] = ` id=":r2n:" > Loading @@ -4481,11 +4467,11 @@ exports[`TextInput renders with a loading indicator 1`] = ` id=":r2r:" > Loading @@ -5008,11 +4980,11 @@ exports[`TextInput renders with a loading indicator 1`] = ` id=":r34:" > Loading @@ -5316,11 +5281,11 @@ exports[`TextInput renders with a loading indicator 1`] = ` id=":r39:" > Loading @@ -5624,11 +5582,11 @@ exports[`TextInput renders with a loading indicator 1`] = ` id=":r3e:" > Loading @@ -6160,7 +6104,7 @@ exports[`TextInput renders with a loading indicator 1`] = ` id=":r3n:" >
Loading @@ -6774,7 +6704,7 @@ exports[`TextInput renders with a loading indicator 1`] = ` id=":r40:" >
Loading @@ -7121,7 +7044,7 @@ exports[`TextInput renders with a loading indicator 1`] = ` id=":r45:" >
Loading @@ -7475,7 +7391,7 @@ exports[`TextInput renders with a loading indicator 1`] = ` id=":r4a:" >
, - .c5 { + .c4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -7066,7 +7059,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` flex-grow: 1; } -.c5 > * { +.c4 > * { -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0; @@ -7074,7 +7067,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` margin-bottom: 0.25rem; } -.c6 { +.c5 { -webkit-order: 1; -ms-flex-order: 1; order: 1; @@ -7093,25 +7086,18 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` } .c3 { - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - -.c4 { -webkit-animation: rotate-keyframes 1s linear infinite; animation: rotate-keyframes 1s linear infinite; visibility: visible; } -.c12 { +.c11 { -webkit-animation: rotate-keyframes 1s linear infinite; animation: rotate-keyframes 1s linear infinite; visibility: hidden; } -.c10 { +.c9 { position: absolute; width: 1px; height: 1px; @@ -7224,7 +7210,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` padding-right: 12px; } -.c7 { +.c6 { border: 0; font-size: inherit; font-family: inherit; @@ -7235,11 +7221,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` height: 100%; } -.c7:focus { +.c6:focus { outline: 0; } -.c8 { +.c7 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -7272,13 +7258,13 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` padding-right: 0; } -.c8:hover { +.c7:hover { background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2))); box-shadow: var(--shadow-resting-medium,var(--color-shadow-medium,0 3px 6px rgba(140,149,159,0.15))); color: var(--fgColor-default,var(--color-fg-default,#1F2328)); } -.c11 { +.c10 { background-color: transparent; font-family: inherit; color: currentColor; @@ -7318,16 +7304,16 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` width: 32px; } -.c11:hover, -.c11:focus { +.c10:hover, +.c10:focus { background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2))); } -.c11:active { +.c10:active { background-color: var(--bgColor-neutral-muted,var(--color-neutral-subtle,rgba(234,238,242,0.5))); } -.c9 { +.c8 { -webkit-box-flex: 1; -webkit-flex-grow: 1; -ms-flex-positive: 1; @@ -7352,11 +7338,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` text-decoration: none; } -.c9:is(a,button,[tabIndex='0']) { +.c8:is(a,button,[tabIndex='0']) { cursor: pointer; } -.c9:is(a,button,[tabIndex='0']):after { +.c8:is(a,button,[tabIndex='0']):after { content: ''; position: absolute; left: 0; @@ -7388,11 +7374,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` display="flex" >
zero (press backspace or delete to remove) one (press backspace or delete to remove) two (press backspace or delete to remove) three (press backspace or delete to remove) four (press backspace or delete to remove) five (press backspace or delete to remove) six (press backspace or delete to remove) seven (press backspace or delete to remove)
zero (press backspace or delete to remove) one (press backspace or delete to remove) two (press backspace or delete to remove) three (press backspace or delete to remove) four (press backspace or delete to remove) five (press backspace or delete to remove) six (press backspace or delete to remove) seven (press backspace or delete to remove) , - .c6 { + .c5 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -9570,7 +9542,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` flex-grow: 1; } -.c6 > * { +.c5 > * { -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0; @@ -9578,7 +9550,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` margin-bottom: 0.25rem; } -.c7 { +.c6 { -webkit-order: 1; -ms-flex-order: 1; order: 1; @@ -9596,24 +9568,17 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` position: relative; } -.c4 { - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - .c3 { visibility: hidden; } -.c13 { +.c12 { -webkit-animation: rotate-keyframes 1s linear infinite; animation: rotate-keyframes 1s linear infinite; visibility: hidden; } -.c5 { +.c4 { -webkit-animation: rotate-keyframes 1s linear infinite; animation: rotate-keyframes 1s linear infinite; position: absolute; @@ -9624,7 +9589,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` left: 0; } -.c11 { +.c10 { position: absolute; width: 1px; height: 1px; @@ -9737,7 +9702,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` padding-right: 12px; } -.c8 { +.c7 { border: 0; font-size: inherit; font-family: inherit; @@ -9748,11 +9713,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` height: 100%; } -.c8:focus { +.c7:focus { outline: 0; } -.c9 { +.c8 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -9785,13 +9750,13 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` padding-right: 0; } -.c9:hover { +.c8:hover { background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2))); box-shadow: var(--shadow-resting-medium,var(--color-shadow-medium,0 3px 6px rgba(140,149,159,0.15))); color: var(--fgColor-default,var(--color-fg-default,#1F2328)); } -.c12 { +.c11 { background-color: transparent; font-family: inherit; color: currentColor; @@ -9831,16 +9796,16 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` width: 32px; } -.c12:hover, -.c12:focus { +.c11:hover, +.c11:focus { background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2))); } -.c12:active { +.c11:active { background-color: var(--bgColor-neutral-muted,var(--color-neutral-subtle,rgba(234,238,242,0.5))); } -.c10 { +.c9 { -webkit-box-flex: 1; -webkit-flex-grow: 1; -ms-flex-positive: 1; @@ -9865,11 +9830,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` text-decoration: none; } -.c10:is(a,button,[tabIndex='0']) { +.c9:is(a,button,[tabIndex='0']) { cursor: pointer; } -.c10:is(a,button,[tabIndex='0']):after { +.c9:is(a,button,[tabIndex='0']):after { content: ''; position: absolute; left: 0; @@ -9926,11 +9891,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
zero (press backspace or delete to remove) one (press backspace or delete to remove) two (press backspace or delete to remove) three (press backspace or delete to remove) four (press backspace or delete to remove) five (press backspace or delete to remove) six (press backspace or delete to remove) seven (press backspace or delete to remove) , - .c6 { + .c5 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -10447,7 +10412,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` flex-grow: 1; } -.c6 > * { +.c5 > * { -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0; @@ -10455,7 +10420,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` margin-bottom: 0.25rem; } -.c7 { +.c6 { -webkit-order: 1; -ms-flex-order: 1; order: 1; @@ -10473,24 +10438,17 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` position: relative; } -.c4 { - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - .c3 { visibility: visible; } -.c13 { +.c12 { -webkit-animation: rotate-keyframes 1s linear infinite; animation: rotate-keyframes 1s linear infinite; visibility: visible; } -.c5 { +.c4 { -webkit-animation: rotate-keyframes 1s linear infinite; animation: rotate-keyframes 1s linear infinite; position: absolute; @@ -10501,7 +10459,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` left: 0; } -.c11 { +.c10 { position: absolute; width: 1px; height: 1px; @@ -10614,7 +10572,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` padding-right: 0; } -.c8 { +.c7 { border: 0; font-size: inherit; font-family: inherit; @@ -10625,11 +10583,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` height: 100%; } -.c8:focus { +.c7:focus { outline: 0; } -.c9 { +.c8 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -10662,13 +10620,13 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` padding-right: 0; } -.c9:hover { +.c8:hover { background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2))); box-shadow: var(--shadow-resting-medium,var(--color-shadow-medium,0 3px 6px rgba(140,149,159,0.15))); color: var(--fgColor-default,var(--color-fg-default,#1F2328)); } -.c12 { +.c11 { background-color: transparent; font-family: inherit; color: currentColor; @@ -10708,16 +10666,16 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` width: 32px; } -.c12:hover, -.c12:focus { +.c11:hover, +.c11:focus { background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2))); } -.c12:active { +.c11:active { background-color: var(--bgColor-neutral-muted,var(--color-neutral-subtle,rgba(234,238,242,0.5))); } -.c10 { +.c9 { -webkit-box-flex: 1; -webkit-flex-grow: 1; -ms-flex-positive: 1; @@ -10742,11 +10700,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` text-decoration: none; } -.c10:is(a,button,[tabIndex='0']) { +.c9:is(a,button,[tabIndex='0']) { cursor: pointer; } -.c10:is(a,button,[tabIndex='0']):after { +.c9:is(a,button,[tabIndex='0']):after { content: ''; position: absolute; left: 0; @@ -10803,11 +10761,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
zero (press backspace or delete to remove) one (press backspace or delete to remove) two (press backspace or delete to remove) three (press backspace or delete to remove) four (press backspace or delete to remove) five (press backspace or delete to remove) six (press backspace or delete to remove) seven (press backspace or delete to remove)
, - .c5 { + .c4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -12152,7 +12103,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` flex-grow: 1; } -.c5 > * { +.c4 > * { -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0; @@ -12160,7 +12111,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` margin-bottom: 0.25rem; } -.c6 { +.c5 { -webkit-order: 1; -ms-flex-order: 1; order: 1; @@ -12178,24 +12129,17 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` position: relative; } -.c3 { - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - -.c12 { +.c11 { visibility: visible; } -.c4 { +.c3 { -webkit-animation: rotate-keyframes 1s linear infinite; animation: rotate-keyframes 1s linear infinite; visibility: visible; } -.c13 { +.c12 { -webkit-animation: rotate-keyframes 1s linear infinite; animation: rotate-keyframes 1s linear infinite; position: absolute; @@ -12206,7 +12150,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` right: 0; } -.c10 { +.c9 { position: absolute; width: 1px; height: 1px; @@ -12319,7 +12263,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` padding-right: 0; } -.c7 { +.c6 { border: 0; font-size: inherit; font-family: inherit; @@ -12330,11 +12274,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` height: 100%; } -.c7:focus { +.c6:focus { outline: 0; } -.c8 { +.c7 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -12367,13 +12311,13 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` padding-right: 0; } -.c8:hover { +.c7:hover { background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2))); box-shadow: var(--shadow-resting-medium,var(--color-shadow-medium,0 3px 6px rgba(140,149,159,0.15))); color: var(--fgColor-default,var(--color-fg-default,#1F2328)); } -.c11 { +.c10 { background-color: transparent; font-family: inherit; color: currentColor; @@ -12413,16 +12357,16 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` width: 32px; } -.c11:hover, -.c11:focus { +.c10:hover, +.c10:focus { background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2))); } -.c11:active { +.c10:active { background-color: var(--bgColor-neutral-muted,var(--color-neutral-subtle,rgba(234,238,242,0.5))); } -.c9 { +.c8 { -webkit-box-flex: 1; -webkit-flex-grow: 1; -ms-flex-positive: 1; @@ -12447,11 +12391,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` text-decoration: none; } -.c9:is(a,button,[tabIndex='0']) { +.c8:is(a,button,[tabIndex='0']) { cursor: pointer; } -.c9:is(a,button,[tabIndex='0']):after { +.c8:is(a,button,[tabIndex='0']):after { content: ''; position: absolute; left: 0; @@ -12483,11 +12427,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` display="flex" >
zero (press backspace or delete to remove) one (press backspace or delete to remove) two (press backspace or delete to remove) three (press backspace or delete to remove) four (press backspace or delete to remove) five (press backspace or delete to remove) six (press backspace or delete to remove) seven (press backspace or delete to remove)
, - .c6 { + .c5 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -13857,7 +13794,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` flex-grow: 1; } -.c6 > * { +.c5 > * { -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0; @@ -13865,7 +13802,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` margin-bottom: 0.25rem; } -.c7 { +.c6 { -webkit-order: 1; -ms-flex-order: 1; order: 1; @@ -13883,22 +13820,15 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` position: relative; } -.c4 { - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - .c3 { visibility: hidden; } -.c13 { +.c12 { visibility: visible; } -.c5 { +.c4 { -webkit-animation: rotate-keyframes 1s linear infinite; animation: rotate-keyframes 1s linear infinite; position: absolute; @@ -13909,7 +13839,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` left: 0; } -.c14 { +.c13 { -webkit-animation: rotate-keyframes 1s linear infinite; animation: rotate-keyframes 1s linear infinite; position: absolute; @@ -13920,7 +13850,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` right: 0; } -.c11 { +.c10 { position: absolute; width: 1px; height: 1px; @@ -14040,7 +13970,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` padding-right: 0; } -.c8 { +.c7 { border: 0; font-size: inherit; font-family: inherit; @@ -14051,11 +13981,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` height: 100%; } -.c8:focus { +.c7:focus { outline: 0; } -.c9 { +.c8 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -14086,13 +14016,13 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` padding-right: 0; } -.c9:hover { +.c8:hover { background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2))); box-shadow: var(--shadow-resting-medium,var(--color-shadow-medium,0 3px 6px rgba(140,149,159,0.15))); color: var(--fgColor-default,var(--color-fg-default,#1F2328)); } -.c12 { +.c11 { background-color: transparent; font-family: inherit; color: currentColor; @@ -14132,16 +14062,16 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` width: 16px; } -.c12:hover, -.c12:focus { +.c11:hover, +.c11:focus { background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2))); } -.c12:active { +.c11:active { background-color: var(--bgColor-neutral-muted,var(--color-neutral-subtle,rgba(234,238,242,0.5))); } -.c10 { +.c9 { -webkit-box-flex: 1; -webkit-flex-grow: 1; -ms-flex-positive: 1; @@ -14166,11 +14096,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` text-decoration: none; } -.c10:is(a,button,[tabIndex='0']) { +.c9:is(a,button,[tabIndex='0']) { cursor: pointer; } -.c10:is(a,button,[tabIndex='0']):after { +.c9:is(a,button,[tabIndex='0']):after { content: ''; position: absolute; left: 0; @@ -14227,11 +14157,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
zero (press backspace or delete to remove) one (press backspace or delete to remove) two (press backspace or delete to remove) three (press backspace or delete to remove) four (press backspace or delete to remove) five (press backspace or delete to remove) six (press backspace or delete to remove) seven (press backspace or delete to remove) , - .c6 { + .c5 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -14778,7 +14708,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` flex-grow: 1; } -.c6 > * { +.c5 > * { -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0; @@ -14786,7 +14716,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` margin-bottom: 0.25rem; } -.c7 { +.c6 { -webkit-order: 1; -ms-flex-order: 1; order: 1; @@ -14804,22 +14734,15 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` position: relative; } -.c4 { - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - .c3 { visibility: hidden; } -.c13 { +.c12 { visibility: visible; } -.c5 { +.c4 { -webkit-animation: rotate-keyframes 1s linear infinite; animation: rotate-keyframes 1s linear infinite; position: absolute; @@ -14830,7 +14753,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` left: 0; } -.c14 { +.c13 { -webkit-animation: rotate-keyframes 1s linear infinite; animation: rotate-keyframes 1s linear infinite; position: absolute; @@ -14841,7 +14764,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` right: 0; } -.c11 { +.c10 { position: absolute; width: 1px; height: 1px; @@ -14954,7 +14877,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` padding-right: 0; } -.c8 { +.c7 { border: 0; font-size: inherit; font-family: inherit; @@ -14965,11 +14888,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` height: 100%; } -.c8:focus { +.c7:focus { outline: 0; } -.c9 { +.c8 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -15002,13 +14925,13 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` padding-right: 0; } -.c9:hover { +.c8:hover { background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2))); box-shadow: var(--shadow-resting-medium,var(--color-shadow-medium,0 3px 6px rgba(140,149,159,0.15))); color: var(--fgColor-default,var(--color-fg-default,#1F2328)); } -.c12 { +.c11 { background-color: transparent; font-family: inherit; color: currentColor; @@ -15048,16 +14971,16 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` width: 32px; } -.c12:hover, -.c12:focus { +.c11:hover, +.c11:focus { background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2))); } -.c12:active { +.c11:active { background-color: var(--bgColor-neutral-muted,var(--color-neutral-subtle,rgba(234,238,242,0.5))); } -.c10 { +.c9 { -webkit-box-flex: 1; -webkit-flex-grow: 1; -ms-flex-positive: 1; @@ -15082,11 +15005,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` text-decoration: none; } -.c10:is(a,button,[tabIndex='0']) { +.c9:is(a,button,[tabIndex='0']) { cursor: pointer; } -.c10:is(a,button,[tabIndex='0']):after { +.c9:is(a,button,[tabIndex='0']):after { content: ''; position: absolute; left: 0; @@ -15143,11 +15066,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
zero (press backspace or delete to remove) one (press backspace or delete to remove) two (press backspace or delete to remove) three (press backspace or delete to remove) four (press backspace or delete to remove) five (press backspace or delete to remove) six (press backspace or delete to remove) seven (press backspace or delete to remove) , - .c6 { + .c5 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -15694,7 +15617,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` flex-grow: 1; } -.c6 > * { +.c5 > * { -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0; @@ -15702,7 +15625,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` margin-bottom: 0.25rem; } -.c7 { +.c6 { -webkit-order: 1; -ms-flex-order: 1; order: 1; @@ -15720,14 +15643,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` position: relative; } -.c4 { - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - -.c13 { +.c12 { visibility: hidden; } @@ -15735,7 +15651,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` visibility: visible; } -.c5 { +.c4 { -webkit-animation: rotate-keyframes 1s linear infinite; animation: rotate-keyframes 1s linear infinite; position: absolute; @@ -15746,7 +15662,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` left: 0; } -.c14 { +.c13 { -webkit-animation: rotate-keyframes 1s linear infinite; animation: rotate-keyframes 1s linear infinite; position: absolute; @@ -15757,7 +15673,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` right: 0; } -.c11 { +.c10 { position: absolute; width: 1px; height: 1px; @@ -15870,7 +15786,7 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` padding-right: 0; } -.c8 { +.c7 { border: 0; font-size: inherit; font-family: inherit; @@ -15881,11 +15797,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` height: 100%; } -.c8:focus { +.c7:focus { outline: 0; } -.c9 { +.c8 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -15916,13 +15832,13 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` padding-right: 0; } -.c9:hover { +.c8:hover { background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2))); box-shadow: var(--shadow-resting-medium,var(--color-shadow-medium,0 3px 6px rgba(140,149,159,0.15))); color: var(--fgColor-default,var(--color-fg-default,#1F2328)); } -.c12 { +.c11 { background-color: transparent; font-family: inherit; color: currentColor; @@ -15962,16 +15878,16 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` width: 24px; } -.c12:hover, -.c12:focus { +.c11:hover, +.c11:focus { background-color: var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2))); } -.c12:active { +.c11:active { background-color: var(--bgColor-neutral-muted,var(--color-neutral-subtle,rgba(234,238,242,0.5))); } -.c10 { +.c9 { -webkit-box-flex: 1; -webkit-flex-grow: 1; -ms-flex-positive: 1; @@ -15996,11 +15912,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = ` text-decoration: none; } -.c10:is(a,button,[tabIndex='0']) { +.c9:is(a,button,[tabIndex='0']) { cursor: pointer; } -.c10:is(a,button,[tabIndex='0']):after { +.c9:is(a,button,[tabIndex='0']):after { content: ''; position: absolute; left: 0; @@ -16057,11 +15973,11 @@ exports[`TextInputWithTokens renders with a loading indicator 1`] = `
zero (press backspace or delete to remove) one (press backspace or delete to remove) two (press backspace or delete to remove) three (press backspace or delete to remove) four (press backspace or delete to remove) five (press backspace or delete to remove) six (press backspace or delete to remove) seven (press backspace or delete to remove)