Skip to content
Open
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export const config = {
defaults: {
view: 'default',
size: 'm',
hintView: 'default',
hintSize: 'm',
},
variations: {
view: {
Expand Down Expand Up @@ -35,6 +37,8 @@ export const config = {
${tokens.leftHelperColorError}: var(--text-negative);
${tokens.leftHelperColorSuccess}: var(--text-positive);

${tokens.hintIconColor}: var(--text-secondary);

${tokens.labelInnerFontFamily}: var(--plasma-typo-body-xs-font-family);
${tokens.labelInnerFontSize}: var(--plasma-typo-body-xs-font-size);
${tokens.labelInnerFontStyle}: var(--plasma-typo-body-xs-font-style);
Expand Down Expand Up @@ -101,6 +105,11 @@ export const config = {

${tokens.textFieldLeftContentMargin}: -0.0625rem 0.5rem -0.0625rem -0.125rem;
${tokens.textFieldRightContentMargin}: -0.0625rem -0.125rem -0.0625rem 0.75rem;
${tokens.textFieldRightContentWithHintMargin}: -0.0625rem -0.438rem -0.0625rem 0.75rem;

${tokens.textFieldContentRightWrapperGap}: 0.5rem;
${tokens.textFieldContentRightWrapperMargin}: -0.438rem -0.438rem -0.438rem 0;

${tokens.textFieldTextBeforeMargin}: 0 0.25rem 0 0;
${tokens.textFieldTextAfterMargin}: 0 0 0 0.25rem;

Expand Down Expand Up @@ -144,6 +153,10 @@ export const config = {
${tokens.leftHelperLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
${tokens.leftHelperLineHeight}: var(--plasma-typo-body-xs-line-height);

${tokens.hintMargin}: -0.688rem -0.5rem;
${tokens.hintTargetSize}: 2.375rem;
${tokens.hintInnerLabelPlacementOffset}: 0.813rem -2.938rem auto auto;

${tokens.popoverBorderRadius}: 0.875rem;
${tokens.popoverGap}: 1.125rem;
${tokens.popoverPadding}: 1.125rem 1.125rem 1.25rem 1.125rem;
Expand Down Expand Up @@ -251,6 +264,11 @@ export const config = {

${tokens.textFieldLeftContentMargin}: -0.0625rem 0.5rem -0.0625rem -0.125rem;
${tokens.textFieldRightContentMargin}: -0.0625rem -0.125rem -0.0625rem 0.75rem;
${tokens.textFieldRightContentWithHintMargin}: -0.0625rem -0.438rem -0.0625rem 0.75rem;

${tokens.textFieldContentRightWrapperGap}: 0.5rem;
${tokens.textFieldContentRightWrapperMargin}: -0.438rem -0.438rem -0.438rem 0;

${tokens.textFieldTextBeforeMargin}: 0 0.25rem 0 0;
${tokens.textFieldTextAfterMargin}: 0 0 0 0.25rem;

Expand Down Expand Up @@ -294,6 +312,10 @@ export const config = {
${tokens.leftHelperLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
${tokens.leftHelperLineHeight}: var(--plasma-typo-body-xs-line-height);

${tokens.hintMargin}: -0.688rem -0.5rem;
${tokens.hintTargetSize}: 2.375rem;
${tokens.hintInnerLabelPlacementOffset}: 0.563rem -2.938rem auto auto;

${tokens.popoverBorderRadius}: 0.875rem;
${tokens.popoverGap}: 1rem;
${tokens.popoverPadding}: 1rem 1rem 1.125rem 1rem;
Expand Down Expand Up @@ -401,6 +423,11 @@ export const config = {

${tokens.textFieldLeftContentMargin}: -0.125rem 0.375rem -0.125rem -0.125rem;
${tokens.textFieldRightContentMargin}: -0.125rem -0.125rem -0.125rem 0.75rem;
${tokens.textFieldRightContentWithHintMargin}: -0.125rem -0.438rem -0.125rem 0.75rem;

${tokens.textFieldContentRightWrapperGap}: 0.375rem;
${tokens.textFieldContentRightWrapperMargin}: -0.438rem -0.438rem -0.438rem 0;

${tokens.textFieldTextBeforeMargin}: 0 0.25rem 0 0;
${tokens.textFieldTextAfterMargin}: 0 0 0 0.25rem;

Expand Down Expand Up @@ -444,6 +471,10 @@ export const config = {
${tokens.leftHelperLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
${tokens.leftHelperLineHeight}: var(--plasma-typo-body-xs-line-height);

${tokens.hintMargin}: -0.688rem -0.5rem;
${tokens.hintTargetSize}: 2.375rem;
${tokens.hintInnerLabelPlacementOffset}: 0.312rem -2.938rem auto auto;

${tokens.popoverBorderRadius}: 0.75rem;
${tokens.popoverGap}: 1rem;
${tokens.popoverPadding}: 1rem 1rem 1.125rem 1rem;
Expand Down Expand Up @@ -551,6 +582,11 @@ export const config = {

${tokens.textFieldLeftContentMargin}: -0.1875rem 0.25rem -0.1875rem -0.125rem;
${tokens.textFieldRightContentMargin}: -0.1875rem -0.125rem -0.1875rem 0.75rem;
${tokens.textFieldRightContentWithHintMargin}: -0.1875rem -0.438rem -0.1875rem 0.75rem;

${tokens.textFieldContentRightWrapperGap}: 0.375rem;
${tokens.textFieldContentRightWrapperMargin}: -0.438rem -0.438rem -0.438rem 0;

${tokens.textFieldTextBeforeMargin}: 0 0.25rem 0 0;
${tokens.textFieldTextAfterMargin}: 0 0 0 0.25rem;

Expand Down Expand Up @@ -594,6 +630,10 @@ export const config = {
${tokens.leftHelperLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
${tokens.leftHelperLineHeight}: var(--plasma-typo-body-xs-line-height);

${tokens.hintMargin}: -0.688rem -0.5rem;
${tokens.hintTargetSize}: 2.375rem;
${tokens.hintInnerLabelPlacementOffset}: 0.062rem -2.813rem auto auto;

${tokens.popoverBorderRadius}: 0.625rem;
${tokens.popoverGap}: 0.875rem;
${tokens.popoverPadding}: 0.875rem 0.875rem 1rem 0.875rem;
Expand Down Expand Up @@ -701,6 +741,11 @@ export const config = {

${tokens.textFieldLeftContentMargin}: -0.0625rem 0.25rem -0.0625rem -0.125rem;
${tokens.textFieldRightContentMargin}: -0.0625rem -0.125rem -0.0625rem 0.75rem;
${tokens.textFieldRightContentWithHintMargin}: -0.0625rem -0.688rem -0.0625rem 0.75rem;

${tokens.textFieldContentRightWrapperGap}: 0.25rem;
${tokens.textFieldContentRightWrapperMargin}: -0.688rem -0.688rem -0.688rem 0;

${tokens.textFieldTextBeforeMargin}: 0 0.25rem 0 0;
${tokens.textFieldTextAfterMargin}: 0 0 0 0.25rem;

Expand Down Expand Up @@ -744,6 +789,10 @@ export const config = {
${tokens.leftHelperLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
${tokens.leftHelperLineHeight}: var(--plasma-typo-body-xs-line-height);

${tokens.hintMargin}: -0.75rem -0.625rem -0.75rem -0.5rem;
${tokens.hintTargetSize}: 2.375rem;
${tokens.hintInnerLabelPlacementOffset}: -0.188rem -2.1875rem auto auto;

${tokens.popoverBorderRadius}: 0.5rem;
${tokens.popoverGap}: 0.75rem;
${tokens.popoverPadding}: 0.75rem 0.75rem 0.875rem 0.75rem;
Expand Down Expand Up @@ -845,6 +894,64 @@ export const config = {
${tokens.shortcutBorderRadius}: 0.375rem;
`,
},
hintView: {
default: css`
${tokens.hintTooltipBackgroundColor}: var(--surface-solid-card-brightness);
${tokens.hintTooltipBoxShadow}: var(--shadow-down-hard-m);
${tokens.hintTooltipColor}: var(--text-primary);
${tokens.hintTooltipArrowBackground}: var(--surface-solid-card-brightness);
`,
},
hintSize: {
m: css`
${tokens.hintTooltipPaddingTop}: 0.6875rem;
${tokens.hintTooltipPaddingRight}: 0.875rem;
${tokens.hintTooltipPaddingBottom}: 0.6875rem;
${tokens.hintTooltipPaddingLeft}: 0.875rem;

${tokens.hintTooltipMinHeight}: 2.5rem;
${tokens.hintTooltipBorderRadius}: 0.625rem;

${tokens.hintTooltipTextFontFamily}: var(--plasma-typo-body-s-font-family);
${tokens.hintTooltipTextFontSize}: var(--plasma-typo-body-s-font-size);
${tokens.hintTooltipTextFontStyle}: var(--plasma-typo-body-s-font-style);
${tokens.hintTooltipTextFontWeight}: var(--plasma-typo-body-s-font-weight);
${tokens.hintTooltipTextFontLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
${tokens.hintTooltipTextFontLineHeight}: var(--plasma-typo-body-s-line-height);

${tokens.hintTooltipContentLeftMargin}: 0.375rem;

${tokens.hintTooltipArrowMaskWidth}: 1.25rem;
${tokens.hintTooltipArrowMaskHeight}: 1.25rem;
${tokens.hintTooltipArrowMaskImage}: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMC4xNywxMS44M2wyMCwwYy01LjUyLDAgLTEwLDMuNTkgLTEwLDhjMCwtNC40MSAtNC40OCwtOCAtMTAsLTh6IiBmaWxsPSIjMTcxNzE3IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGlkPSJUYWlsIi8+Cjwvc3ZnPg==");
${tokens.hintTooltipArrowHeight}: 0.5rem;
${tokens.hintTooltipArrowEdgeMargin}: 0.625rem;
`,
s: css`
${tokens.hintTooltipPaddingTop}: 0.5rem;
${tokens.hintTooltipPaddingRight}: 0.75rem;
${tokens.hintTooltipPaddingBottom}: 0.5rem;
${tokens.hintTooltipPaddingLeft}: 0.75rem;

${tokens.hintTooltipMinHeight}: 2rem;
${tokens.hintTooltipBorderRadius}: 0.5rem;

${tokens.hintTooltipTextFontFamily}: var(--plasma-typo-body-xs-font-family);
${tokens.hintTooltipTextFontSize}: var(--plasma-typo-body-xs-font-size);
${tokens.hintTooltipTextFontStyle}: var(--plasma-typo-body-xs-font-style);
${tokens.hintTooltipTextFontWeight}: var(--plasma-typo-body-xs-font-weight);
${tokens.hintTooltipTextFontLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
${tokens.hintTooltipTextFontLineHeight}: var(--plasma-typo-body-xs-line-height);

${tokens.hintTooltipContentLeftMargin}: 0.25rem;

${tokens.hintTooltipArrowMaskWidth}: 1rem;
${tokens.hintTooltipArrowMaskHeight}: 1rem;
${tokens.hintTooltipArrowMaskImage}: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMCw5Ljg1bDE2LDBjLTQuNDEsMCAtOCwyLjY5IC04LDZjMCwtMy4zMSAtMy41OSwtNiAtOCwtNnoiIGZpbGw9IiMxNzE3MTciIGZpbGwtcnVsZT0iZXZlbm9kZCIgaWQ9IlRhaWwiLz4KPC9zdmc+");
${tokens.hintTooltipArrowHeight}: 0.375rem;
${tokens.hintTooltipArrowEdgeMargin}: 0.5625rem;
`,
},
eventTooltipSize: {
m: css`
${tokens.tooltipPaddingTop}: 0.6875rem;
Expand Down
Loading
Loading