From 5e67d4c0789cf1c8e327d8a57d6329edea7b2bd9 Mon Sep 17 00:00:00 2001 From: mmeigs Date: Wed, 31 Jul 2024 16:29:41 -0400 Subject: [PATCH] snaps --- .../DiscriminatorDropdown.test.tsx.snap | 870 +++++++++--------- .../__snapshots__/OneOfSchema.test.tsx.snap | 12 +- .../SecurityRequirement.test.tsx.snap | 26 +- .../VersionSelector.test.tsx.snap | 10 +- 4 files changed, 464 insertions(+), 454 deletions(-) diff --git a/src/components/__tests__/__snapshots__/DiscriminatorDropdown.test.tsx.snap b/src/components/__tests__/__snapshots__/DiscriminatorDropdown.test.tsx.snap index bbc5db2a82..3fd3972440 100644 --- a/src/components/__tests__/__snapshots__/DiscriminatorDropdown.test.tsx.snap +++ b/src/components/__tests__/__snapshots__/DiscriminatorDropdown.test.tsx.snap @@ -154,9 +154,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFCDC7", }, "light": Object { - "backgroundColor": "#FFEAE5", - "borderColor": "#FFCDC7", - "color": "#970606", + "backgroundColor": "var(--http-delete-bg)", + "borderColor": "var(--http-delete-border)", + "color": "var(--http-delete-color)", }, }, "get": Object { @@ -166,9 +166,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#C3E7FE", }, "light": Object { - "backgroundColor": "#E1F7FF", - "borderColor": "#C3E7FE", - "color": "#1254B7", + "backgroundColor": "var(--http-get-bg)", + "borderColor": "var(--http-get-border)", + "color": "var(--http-get-color)", }, }, "head": "#A23DAD", @@ -181,9 +181,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-patch-bg)", + "borderColor": "var(--http-patch-border)", + "color": "var(--http-patch-color)", }, }, "post": Object { @@ -193,9 +193,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#00ED64", }, "light": Object { - "backgroundColor": "#E3FCF7", - "borderColor": "#C0FAE6", - "color": "#00684A", + "backgroundColor": "var(--http-post-bg)", + "borderColor": "var(--http-post-border)", + "color": "var(--http-post-color)", }, }, "put": Object { @@ -205,22 +205,22 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-put-bg)", + "borderColor": "var(--http-put-border)", + "color": "var(--http-put-color)", }, }, }, "primary": Object { - "contrastText": "#fff", - "dark": "#000", - "light": "#006591", - "main": "#001E2B", + "contrastText": "var(--colors-primary-main-dark)", + "dark": "var(--colors-primary-main-dark)", + "light": "var(--colors-primary-main-light)", + "main": "var(--colors-primary-main)", }, "responses": Object { "error": Object { - "backgroundColor": "#FFEAE5", - "color": "#DB3030", + "backgroundColor": "var(--responses-error-bg)", + "color": "var(--responses-error-color)", "tabTextColor": "#DB3030", }, "info": Object { @@ -234,8 +234,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "tabTextColor": "#C1C7C6", }, "success": Object { - "backgroundColor": "#E3FCF7", - "color": "#00684A", + "backgroundColor": "var(--responses-success-bg)", + "color": "var(--responses-success-color)", "tabTextColor": "#00ED64", }, }, @@ -246,8 +246,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "main": "#1d8127", }, "text": Object { - "primary": "#1C2D38", - "secondary": "#3e647c", + "primary": "var(--text-primary-color)", + "secondary": "var(--text-secondary-color)", }, "tonalOffset": 0.2, "warning": Object { @@ -283,36 +283,37 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "schema": Object { "arrow": Object { - "color": "#3e647c", + "color": "var(--text-secondary-color)", "size": "1.1em", }, "defaultDetailsWidth": "75%", "labelsTextSize": "0.9em", - "linesColor": "#001E2B", + "linesColor": "var(--schema-lines-color)", "nestedBackground": "#fafafa", "nestingSpacing": "1em", - "requireLabelColor": "#DB3030", - "typeNameColor": "#1C2D38", - "typeTitleColor": "#1C2D38", + "requireLabelColor": "var(--require-label-color)", + "typeNameColor": "var(--type-name-color)", + "typeTitleColor": "var(--type-name-color)", }, "sidebar": Object { - "activeTextColor": "#023430", + "activeTextColor": "var(--sidebar-active-color)", "arrow": Object { - "color": "#001E2B", + "color": "var(--sidebar-text-color)", "size": "1.5em", }, - "backgroundColor": "#F9FBFA", + "backButtonLabelColor": "var(--back-btn-label-color)", + "backgroundColor": "var(--sidebar-bg-color)", "groupItems": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "uppercase", }, "level1Items": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "none", }, - "textColor": "#001E2B", + "textColor": "var(--sidebar-text-color)", "width": "268px", }, "spacing": Object { @@ -322,8 +323,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "typography": Object { "code": Object { - "backgroundColor": "#F9FBFA", - "color": "#1C2D38", + "backgroundColor": "var(--typography-code-bg)", + "color": "var(--typography-code-color)", "fontFamily": "Source Code Pro", "fontSize": "13px", "fontWeight": "400", @@ -342,11 +343,11 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "lineHeight": "24px", "links": Object { - "color": "#016BF8", - "hover": "#016BF8", + "color": "var(--link-blue)", + "hover": "var(--link-blue)", "hoverTextDecoration": "auto", "textDecoration": "auto", - "visited": "#016BF8", + "visited": "var(--link-blue)", }, "optimizeSpeed": true, "smoothing": "antialiased", @@ -488,9 +489,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFCDC7", }, "light": Object { - "backgroundColor": "#FFEAE5", - "borderColor": "#FFCDC7", - "color": "#970606", + "backgroundColor": "var(--http-delete-bg)", + "borderColor": "var(--http-delete-border)", + "color": "var(--http-delete-color)", }, }, "get": Object { @@ -500,9 +501,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#C3E7FE", }, "light": Object { - "backgroundColor": "#E1F7FF", - "borderColor": "#C3E7FE", - "color": "#1254B7", + "backgroundColor": "var(--http-get-bg)", + "borderColor": "var(--http-get-border)", + "color": "var(--http-get-color)", }, }, "head": "#A23DAD", @@ -515,9 +516,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-patch-bg)", + "borderColor": "var(--http-patch-border)", + "color": "var(--http-patch-color)", }, }, "post": Object { @@ -527,9 +528,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#00ED64", }, "light": Object { - "backgroundColor": "#E3FCF7", - "borderColor": "#C0FAE6", - "color": "#00684A", + "backgroundColor": "var(--http-post-bg)", + "borderColor": "var(--http-post-border)", + "color": "var(--http-post-color)", }, }, "put": Object { @@ -539,22 +540,22 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-put-bg)", + "borderColor": "var(--http-put-border)", + "color": "var(--http-put-color)", }, }, }, "primary": Object { - "contrastText": "#fff", - "dark": "#000", - "light": "#006591", - "main": "#001E2B", + "contrastText": "var(--colors-primary-main-dark)", + "dark": "var(--colors-primary-main-dark)", + "light": "var(--colors-primary-main-light)", + "main": "var(--colors-primary-main)", }, "responses": Object { "error": Object { - "backgroundColor": "#FFEAE5", - "color": "#DB3030", + "backgroundColor": "var(--responses-error-bg)", + "color": "var(--responses-error-color)", "tabTextColor": "#DB3030", }, "info": Object { @@ -568,8 +569,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "tabTextColor": "#C1C7C6", }, "success": Object { - "backgroundColor": "#E3FCF7", - "color": "#00684A", + "backgroundColor": "var(--responses-success-bg)", + "color": "var(--responses-success-color)", "tabTextColor": "#00ED64", }, }, @@ -580,8 +581,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "main": "#1d8127", }, "text": Object { - "primary": "#1C2D38", - "secondary": "#3e647c", + "primary": "var(--text-primary-color)", + "secondary": "var(--text-secondary-color)", }, "tonalOffset": 0.2, "warning": Object { @@ -617,36 +618,37 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "schema": Object { "arrow": Object { - "color": "#3e647c", + "color": "var(--text-secondary-color)", "size": "1.1em", }, "defaultDetailsWidth": "75%", "labelsTextSize": "0.9em", - "linesColor": "#001E2B", + "linesColor": "var(--schema-lines-color)", "nestedBackground": "#fafafa", "nestingSpacing": "1em", - "requireLabelColor": "#DB3030", - "typeNameColor": "#1C2D38", - "typeTitleColor": "#1C2D38", + "requireLabelColor": "var(--require-label-color)", + "typeNameColor": "var(--type-name-color)", + "typeTitleColor": "var(--type-name-color)", }, "sidebar": Object { - "activeTextColor": "#023430", + "activeTextColor": "var(--sidebar-active-color)", "arrow": Object { - "color": "#001E2B", + "color": "var(--sidebar-text-color)", "size": "1.5em", }, - "backgroundColor": "#F9FBFA", + "backButtonLabelColor": "var(--back-btn-label-color)", + "backgroundColor": "var(--sidebar-bg-color)", "groupItems": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "uppercase", }, "level1Items": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "none", }, - "textColor": "#001E2B", + "textColor": "var(--sidebar-text-color)", "width": "268px", }, "spacing": Object { @@ -656,8 +658,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "typography": Object { "code": Object { - "backgroundColor": "#F9FBFA", - "color": "#1C2D38", + "backgroundColor": "var(--typography-code-bg)", + "color": "var(--typography-code-color)", "fontFamily": "Source Code Pro", "fontSize": "13px", "fontWeight": "400", @@ -676,11 +678,11 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "lineHeight": "24px", "links": Object { - "color": "#016BF8", - "hover": "#016BF8", + "color": "var(--link-blue)", + "hover": "var(--link-blue)", "hoverTextDecoration": "auto", "textDecoration": "auto", - "visited": "#016BF8", + "visited": "var(--link-blue)", }, "optimizeSpeed": true, "smoothing": "antialiased", @@ -809,9 +811,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFCDC7", }, "light": Object { - "backgroundColor": "#FFEAE5", - "borderColor": "#FFCDC7", - "color": "#970606", + "backgroundColor": "var(--http-delete-bg)", + "borderColor": "var(--http-delete-border)", + "color": "var(--http-delete-color)", }, }, "get": Object { @@ -821,9 +823,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#C3E7FE", }, "light": Object { - "backgroundColor": "#E1F7FF", - "borderColor": "#C3E7FE", - "color": "#1254B7", + "backgroundColor": "var(--http-get-bg)", + "borderColor": "var(--http-get-border)", + "color": "var(--http-get-color)", }, }, "head": "#A23DAD", @@ -836,9 +838,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-patch-bg)", + "borderColor": "var(--http-patch-border)", + "color": "var(--http-patch-color)", }, }, "post": Object { @@ -848,9 +850,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#00ED64", }, "light": Object { - "backgroundColor": "#E3FCF7", - "borderColor": "#C0FAE6", - "color": "#00684A", + "backgroundColor": "var(--http-post-bg)", + "borderColor": "var(--http-post-border)", + "color": "var(--http-post-color)", }, }, "put": Object { @@ -860,22 +862,22 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-put-bg)", + "borderColor": "var(--http-put-border)", + "color": "var(--http-put-color)", }, }, }, "primary": Object { - "contrastText": "#fff", - "dark": "#000", - "light": "#006591", - "main": "#001E2B", + "contrastText": "var(--colors-primary-main-dark)", + "dark": "var(--colors-primary-main-dark)", + "light": "var(--colors-primary-main-light)", + "main": "var(--colors-primary-main)", }, "responses": Object { "error": Object { - "backgroundColor": "#FFEAE5", - "color": "#DB3030", + "backgroundColor": "var(--responses-error-bg)", + "color": "var(--responses-error-color)", "tabTextColor": "#DB3030", }, "info": Object { @@ -889,8 +891,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "tabTextColor": "#C1C7C6", }, "success": Object { - "backgroundColor": "#E3FCF7", - "color": "#00684A", + "backgroundColor": "var(--responses-success-bg)", + "color": "var(--responses-success-color)", "tabTextColor": "#00ED64", }, }, @@ -901,8 +903,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "main": "#1d8127", }, "text": Object { - "primary": "#1C2D38", - "secondary": "#3e647c", + "primary": "var(--text-primary-color)", + "secondary": "var(--text-secondary-color)", }, "tonalOffset": 0.2, "warning": Object { @@ -938,36 +940,37 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "schema": Object { "arrow": Object { - "color": "#3e647c", + "color": "var(--text-secondary-color)", "size": "1.1em", }, "defaultDetailsWidth": "75%", "labelsTextSize": "0.9em", - "linesColor": "#001E2B", + "linesColor": "var(--schema-lines-color)", "nestedBackground": "#fafafa", "nestingSpacing": "1em", - "requireLabelColor": "#DB3030", - "typeNameColor": "#1C2D38", - "typeTitleColor": "#1C2D38", + "requireLabelColor": "var(--require-label-color)", + "typeNameColor": "var(--type-name-color)", + "typeTitleColor": "var(--type-name-color)", }, "sidebar": Object { - "activeTextColor": "#023430", + "activeTextColor": "var(--sidebar-active-color)", "arrow": Object { - "color": "#001E2B", + "color": "var(--sidebar-text-color)", "size": "1.5em", }, - "backgroundColor": "#F9FBFA", + "backButtonLabelColor": "var(--back-btn-label-color)", + "backgroundColor": "var(--sidebar-bg-color)", "groupItems": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "uppercase", }, "level1Items": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "none", }, - "textColor": "#001E2B", + "textColor": "var(--sidebar-text-color)", "width": "268px", }, "spacing": Object { @@ -977,8 +980,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "typography": Object { "code": Object { - "backgroundColor": "#F9FBFA", - "color": "#1C2D38", + "backgroundColor": "var(--typography-code-bg)", + "color": "var(--typography-code-color)", "fontFamily": "Source Code Pro", "fontSize": "13px", "fontWeight": "400", @@ -997,11 +1000,11 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "lineHeight": "24px", "links": Object { - "color": "#016BF8", - "hover": "#016BF8", + "color": "var(--link-blue)", + "hover": "var(--link-blue)", "hoverTextDecoration": "auto", "textDecoration": "auto", - "visited": "#016BF8", + "visited": "var(--link-blue)", }, "optimizeSpeed": true, "smoothing": "antialiased", @@ -1192,9 +1195,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFCDC7", }, "light": Object { - "backgroundColor": "#FFEAE5", - "borderColor": "#FFCDC7", - "color": "#970606", + "backgroundColor": "var(--http-delete-bg)", + "borderColor": "var(--http-delete-border)", + "color": "var(--http-delete-color)", }, }, "get": Object { @@ -1204,9 +1207,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#C3E7FE", }, "light": Object { - "backgroundColor": "#E1F7FF", - "borderColor": "#C3E7FE", - "color": "#1254B7", + "backgroundColor": "var(--http-get-bg)", + "borderColor": "var(--http-get-border)", + "color": "var(--http-get-color)", }, }, "head": "#A23DAD", @@ -1219,9 +1222,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-patch-bg)", + "borderColor": "var(--http-patch-border)", + "color": "var(--http-patch-color)", }, }, "post": Object { @@ -1231,9 +1234,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#00ED64", }, "light": Object { - "backgroundColor": "#E3FCF7", - "borderColor": "#C0FAE6", - "color": "#00684A", + "backgroundColor": "var(--http-post-bg)", + "borderColor": "var(--http-post-border)", + "color": "var(--http-post-color)", }, }, "put": Object { @@ -1243,22 +1246,22 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-put-bg)", + "borderColor": "var(--http-put-border)", + "color": "var(--http-put-color)", }, }, }, "primary": Object { - "contrastText": "#fff", - "dark": "#000", - "light": "#006591", - "main": "#001E2B", + "contrastText": "var(--colors-primary-main-dark)", + "dark": "var(--colors-primary-main-dark)", + "light": "var(--colors-primary-main-light)", + "main": "var(--colors-primary-main)", }, "responses": Object { "error": Object { - "backgroundColor": "#FFEAE5", - "color": "#DB3030", + "backgroundColor": "var(--responses-error-bg)", + "color": "var(--responses-error-color)", "tabTextColor": "#DB3030", }, "info": Object { @@ -1272,8 +1275,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "tabTextColor": "#C1C7C6", }, "success": Object { - "backgroundColor": "#E3FCF7", - "color": "#00684A", + "backgroundColor": "var(--responses-success-bg)", + "color": "var(--responses-success-color)", "tabTextColor": "#00ED64", }, }, @@ -1284,8 +1287,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "main": "#1d8127", }, "text": Object { - "primary": "#1C2D38", - "secondary": "#3e647c", + "primary": "var(--text-primary-color)", + "secondary": "var(--text-secondary-color)", }, "tonalOffset": 0.2, "warning": Object { @@ -1321,36 +1324,37 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "schema": Object { "arrow": Object { - "color": "#3e647c", + "color": "var(--text-secondary-color)", "size": "1.1em", }, "defaultDetailsWidth": "75%", "labelsTextSize": "0.9em", - "linesColor": "#001E2B", + "linesColor": "var(--schema-lines-color)", "nestedBackground": "#fafafa", "nestingSpacing": "1em", - "requireLabelColor": "#DB3030", - "typeNameColor": "#1C2D38", - "typeTitleColor": "#1C2D38", + "requireLabelColor": "var(--require-label-color)", + "typeNameColor": "var(--type-name-color)", + "typeTitleColor": "var(--type-name-color)", }, "sidebar": Object { - "activeTextColor": "#023430", + "activeTextColor": "var(--sidebar-active-color)", "arrow": Object { - "color": "#001E2B", + "color": "var(--sidebar-text-color)", "size": "1.5em", }, - "backgroundColor": "#F9FBFA", + "backButtonLabelColor": "var(--back-btn-label-color)", + "backgroundColor": "var(--sidebar-bg-color)", "groupItems": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "uppercase", }, "level1Items": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "none", }, - "textColor": "#001E2B", + "textColor": "var(--sidebar-text-color)", "width": "268px", }, "spacing": Object { @@ -1360,8 +1364,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "typography": Object { "code": Object { - "backgroundColor": "#F9FBFA", - "color": "#1C2D38", + "backgroundColor": "var(--typography-code-bg)", + "color": "var(--typography-code-color)", "fontFamily": "Source Code Pro", "fontSize": "13px", "fontWeight": "400", @@ -1380,11 +1384,11 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "lineHeight": "24px", "links": Object { - "color": "#016BF8", - "hover": "#016BF8", + "color": "var(--link-blue)", + "hover": "var(--link-blue)", "hoverTextDecoration": "auto", "textDecoration": "auto", - "visited": "#016BF8", + "visited": "var(--link-blue)", }, "optimizeSpeed": true, "smoothing": "antialiased", @@ -1538,9 +1542,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFCDC7", }, "light": Object { - "backgroundColor": "#FFEAE5", - "borderColor": "#FFCDC7", - "color": "#970606", + "backgroundColor": "var(--http-delete-bg)", + "borderColor": "var(--http-delete-border)", + "color": "var(--http-delete-color)", }, }, "get": Object { @@ -1550,9 +1554,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#C3E7FE", }, "light": Object { - "backgroundColor": "#E1F7FF", - "borderColor": "#C3E7FE", - "color": "#1254B7", + "backgroundColor": "var(--http-get-bg)", + "borderColor": "var(--http-get-border)", + "color": "var(--http-get-color)", }, }, "head": "#A23DAD", @@ -1565,9 +1569,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-patch-bg)", + "borderColor": "var(--http-patch-border)", + "color": "var(--http-patch-color)", }, }, "post": Object { @@ -1577,9 +1581,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#00ED64", }, "light": Object { - "backgroundColor": "#E3FCF7", - "borderColor": "#C0FAE6", - "color": "#00684A", + "backgroundColor": "var(--http-post-bg)", + "borderColor": "var(--http-post-border)", + "color": "var(--http-post-color)", }, }, "put": Object { @@ -1589,22 +1593,22 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-put-bg)", + "borderColor": "var(--http-put-border)", + "color": "var(--http-put-color)", }, }, }, "primary": Object { - "contrastText": "#fff", - "dark": "#000", - "light": "#006591", - "main": "#001E2B", + "contrastText": "var(--colors-primary-main-dark)", + "dark": "var(--colors-primary-main-dark)", + "light": "var(--colors-primary-main-light)", + "main": "var(--colors-primary-main)", }, "responses": Object { "error": Object { - "backgroundColor": "#FFEAE5", - "color": "#DB3030", + "backgroundColor": "var(--responses-error-bg)", + "color": "var(--responses-error-color)", "tabTextColor": "#DB3030", }, "info": Object { @@ -1618,8 +1622,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "tabTextColor": "#C1C7C6", }, "success": Object { - "backgroundColor": "#E3FCF7", - "color": "#00684A", + "backgroundColor": "var(--responses-success-bg)", + "color": "var(--responses-success-color)", "tabTextColor": "#00ED64", }, }, @@ -1630,8 +1634,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "main": "#1d8127", }, "text": Object { - "primary": "#1C2D38", - "secondary": "#3e647c", + "primary": "var(--text-primary-color)", + "secondary": "var(--text-secondary-color)", }, "tonalOffset": 0.2, "warning": Object { @@ -1667,36 +1671,37 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "schema": Object { "arrow": Object { - "color": "#3e647c", + "color": "var(--text-secondary-color)", "size": "1.1em", }, "defaultDetailsWidth": "75%", "labelsTextSize": "0.9em", - "linesColor": "#001E2B", + "linesColor": "var(--schema-lines-color)", "nestedBackground": "#fafafa", "nestingSpacing": "1em", - "requireLabelColor": "#DB3030", - "typeNameColor": "#1C2D38", - "typeTitleColor": "#1C2D38", + "requireLabelColor": "var(--require-label-color)", + "typeNameColor": "var(--type-name-color)", + "typeTitleColor": "var(--type-name-color)", }, "sidebar": Object { - "activeTextColor": "#023430", + "activeTextColor": "var(--sidebar-active-color)", "arrow": Object { - "color": "#001E2B", + "color": "var(--sidebar-text-color)", "size": "1.5em", }, - "backgroundColor": "#F9FBFA", + "backButtonLabelColor": "var(--back-btn-label-color)", + "backgroundColor": "var(--sidebar-bg-color)", "groupItems": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "uppercase", }, "level1Items": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "none", }, - "textColor": "#001E2B", + "textColor": "var(--sidebar-text-color)", "width": "268px", }, "spacing": Object { @@ -1706,8 +1711,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "typography": Object { "code": Object { - "backgroundColor": "#F9FBFA", - "color": "#1C2D38", + "backgroundColor": "var(--typography-code-bg)", + "color": "var(--typography-code-color)", "fontFamily": "Source Code Pro", "fontSize": "13px", "fontWeight": "400", @@ -1726,11 +1731,11 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "lineHeight": "24px", "links": Object { - "color": "#016BF8", - "hover": "#016BF8", + "color": "var(--link-blue)", + "hover": "var(--link-blue)", "hoverTextDecoration": "auto", "textDecoration": "auto", - "visited": "#016BF8", + "visited": "var(--link-blue)", }, "optimizeSpeed": true, "smoothing": "antialiased", @@ -1855,9 +1860,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFCDC7", }, "light": Object { - "backgroundColor": "#FFEAE5", - "borderColor": "#FFCDC7", - "color": "#970606", + "backgroundColor": "var(--http-delete-bg)", + "borderColor": "var(--http-delete-border)", + "color": "var(--http-delete-color)", }, }, "get": Object { @@ -1867,9 +1872,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#C3E7FE", }, "light": Object { - "backgroundColor": "#E1F7FF", - "borderColor": "#C3E7FE", - "color": "#1254B7", + "backgroundColor": "var(--http-get-bg)", + "borderColor": "var(--http-get-border)", + "color": "var(--http-get-color)", }, }, "head": "#A23DAD", @@ -1882,9 +1887,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-patch-bg)", + "borderColor": "var(--http-patch-border)", + "color": "var(--http-patch-color)", }, }, "post": Object { @@ -1894,9 +1899,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#00ED64", }, "light": Object { - "backgroundColor": "#E3FCF7", - "borderColor": "#C0FAE6", - "color": "#00684A", + "backgroundColor": "var(--http-post-bg)", + "borderColor": "var(--http-post-border)", + "color": "var(--http-post-color)", }, }, "put": Object { @@ -1906,22 +1911,22 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-put-bg)", + "borderColor": "var(--http-put-border)", + "color": "var(--http-put-color)", }, }, }, "primary": Object { - "contrastText": "#fff", - "dark": "#000", - "light": "#006591", - "main": "#001E2B", + "contrastText": "var(--colors-primary-main-dark)", + "dark": "var(--colors-primary-main-dark)", + "light": "var(--colors-primary-main-light)", + "main": "var(--colors-primary-main)", }, "responses": Object { "error": Object { - "backgroundColor": "#FFEAE5", - "color": "#DB3030", + "backgroundColor": "var(--responses-error-bg)", + "color": "var(--responses-error-color)", "tabTextColor": "#DB3030", }, "info": Object { @@ -1935,8 +1940,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "tabTextColor": "#C1C7C6", }, "success": Object { - "backgroundColor": "#E3FCF7", - "color": "#00684A", + "backgroundColor": "var(--responses-success-bg)", + "color": "var(--responses-success-color)", "tabTextColor": "#00ED64", }, }, @@ -1947,8 +1952,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "main": "#1d8127", }, "text": Object { - "primary": "#1C2D38", - "secondary": "#3e647c", + "primary": "var(--text-primary-color)", + "secondary": "var(--text-secondary-color)", }, "tonalOffset": 0.2, "warning": Object { @@ -1984,36 +1989,37 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "schema": Object { "arrow": Object { - "color": "#3e647c", + "color": "var(--text-secondary-color)", "size": "1.1em", }, "defaultDetailsWidth": "75%", "labelsTextSize": "0.9em", - "linesColor": "#001E2B", + "linesColor": "var(--schema-lines-color)", "nestedBackground": "#fafafa", "nestingSpacing": "1em", - "requireLabelColor": "#DB3030", - "typeNameColor": "#1C2D38", - "typeTitleColor": "#1C2D38", + "requireLabelColor": "var(--require-label-color)", + "typeNameColor": "var(--type-name-color)", + "typeTitleColor": "var(--type-name-color)", }, "sidebar": Object { - "activeTextColor": "#023430", + "activeTextColor": "var(--sidebar-active-color)", "arrow": Object { - "color": "#001E2B", + "color": "var(--sidebar-text-color)", "size": "1.5em", }, - "backgroundColor": "#F9FBFA", + "backButtonLabelColor": "var(--back-btn-label-color)", + "backgroundColor": "var(--sidebar-bg-color)", "groupItems": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "uppercase", }, "level1Items": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "none", }, - "textColor": "#001E2B", + "textColor": "var(--sidebar-text-color)", "width": "268px", }, "spacing": Object { @@ -2023,8 +2029,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "typography": Object { "code": Object { - "backgroundColor": "#F9FBFA", - "color": "#1C2D38", + "backgroundColor": "var(--typography-code-bg)", + "color": "var(--typography-code-color)", "fontFamily": "Source Code Pro", "fontSize": "13px", "fontWeight": "400", @@ -2043,11 +2049,11 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "lineHeight": "24px", "links": Object { - "color": "#016BF8", - "hover": "#016BF8", + "color": "var(--link-blue)", + "hover": "var(--link-blue)", "hoverTextDecoration": "auto", "textDecoration": "auto", - "visited": "#016BF8", + "visited": "var(--link-blue)", }, "optimizeSpeed": true, "smoothing": "antialiased", @@ -2197,9 +2203,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFCDC7", }, "light": Object { - "backgroundColor": "#FFEAE5", - "borderColor": "#FFCDC7", - "color": "#970606", + "backgroundColor": "var(--http-delete-bg)", + "borderColor": "var(--http-delete-border)", + "color": "var(--http-delete-color)", }, }, "get": Object { @@ -2209,9 +2215,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#C3E7FE", }, "light": Object { - "backgroundColor": "#E1F7FF", - "borderColor": "#C3E7FE", - "color": "#1254B7", + "backgroundColor": "var(--http-get-bg)", + "borderColor": "var(--http-get-border)", + "color": "var(--http-get-color)", }, }, "head": "#A23DAD", @@ -2224,9 +2230,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-patch-bg)", + "borderColor": "var(--http-patch-border)", + "color": "var(--http-patch-color)", }, }, "post": Object { @@ -2236,9 +2242,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#00ED64", }, "light": Object { - "backgroundColor": "#E3FCF7", - "borderColor": "#C0FAE6", - "color": "#00684A", + "backgroundColor": "var(--http-post-bg)", + "borderColor": "var(--http-post-border)", + "color": "var(--http-post-color)", }, }, "put": Object { @@ -2248,22 +2254,22 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-put-bg)", + "borderColor": "var(--http-put-border)", + "color": "var(--http-put-color)", }, }, }, "primary": Object { - "contrastText": "#fff", - "dark": "#000", - "light": "#006591", - "main": "#001E2B", + "contrastText": "var(--colors-primary-main-dark)", + "dark": "var(--colors-primary-main-dark)", + "light": "var(--colors-primary-main-light)", + "main": "var(--colors-primary-main)", }, "responses": Object { "error": Object { - "backgroundColor": "#FFEAE5", - "color": "#DB3030", + "backgroundColor": "var(--responses-error-bg)", + "color": "var(--responses-error-color)", "tabTextColor": "#DB3030", }, "info": Object { @@ -2277,8 +2283,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "tabTextColor": "#C1C7C6", }, "success": Object { - "backgroundColor": "#E3FCF7", - "color": "#00684A", + "backgroundColor": "var(--responses-success-bg)", + "color": "var(--responses-success-color)", "tabTextColor": "#00ED64", }, }, @@ -2289,8 +2295,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "main": "#1d8127", }, "text": Object { - "primary": "#1C2D38", - "secondary": "#3e647c", + "primary": "var(--text-primary-color)", + "secondary": "var(--text-secondary-color)", }, "tonalOffset": 0.2, "warning": Object { @@ -2326,36 +2332,37 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "schema": Object { "arrow": Object { - "color": "#3e647c", + "color": "var(--text-secondary-color)", "size": "1.1em", }, "defaultDetailsWidth": "75%", "labelsTextSize": "0.9em", - "linesColor": "#001E2B", + "linesColor": "var(--schema-lines-color)", "nestedBackground": "#fafafa", "nestingSpacing": "1em", - "requireLabelColor": "#DB3030", - "typeNameColor": "#1C2D38", - "typeTitleColor": "#1C2D38", + "requireLabelColor": "var(--require-label-color)", + "typeNameColor": "var(--type-name-color)", + "typeTitleColor": "var(--type-name-color)", }, "sidebar": Object { - "activeTextColor": "#023430", + "activeTextColor": "var(--sidebar-active-color)", "arrow": Object { - "color": "#001E2B", + "color": "var(--sidebar-text-color)", "size": "1.5em", }, - "backgroundColor": "#F9FBFA", + "backButtonLabelColor": "var(--back-btn-label-color)", + "backgroundColor": "var(--sidebar-bg-color)", "groupItems": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "uppercase", }, "level1Items": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "none", }, - "textColor": "#001E2B", + "textColor": "var(--sidebar-text-color)", "width": "268px", }, "spacing": Object { @@ -2365,8 +2372,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "typography": Object { "code": Object { - "backgroundColor": "#F9FBFA", - "color": "#1C2D38", + "backgroundColor": "var(--typography-code-bg)", + "color": "var(--typography-code-color)", "fontFamily": "Source Code Pro", "fontSize": "13px", "fontWeight": "400", @@ -2385,11 +2392,11 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "lineHeight": "24px", "links": Object { - "color": "#016BF8", - "hover": "#016BF8", + "color": "var(--link-blue)", + "hover": "var(--link-blue)", "hoverTextDecoration": "auto", "textDecoration": "auto", - "visited": "#016BF8", + "visited": "var(--link-blue)", }, "optimizeSpeed": true, "smoothing": "antialiased", @@ -2569,9 +2576,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFCDC7", }, "light": Object { - "backgroundColor": "#FFEAE5", - "borderColor": "#FFCDC7", - "color": "#970606", + "backgroundColor": "var(--http-delete-bg)", + "borderColor": "var(--http-delete-border)", + "color": "var(--http-delete-color)", }, }, "get": Object { @@ -2581,9 +2588,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#C3E7FE", }, "light": Object { - "backgroundColor": "#E1F7FF", - "borderColor": "#C3E7FE", - "color": "#1254B7", + "backgroundColor": "var(--http-get-bg)", + "borderColor": "var(--http-get-border)", + "color": "var(--http-get-color)", }, }, "head": "#A23DAD", @@ -2596,9 +2603,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-patch-bg)", + "borderColor": "var(--http-patch-border)", + "color": "var(--http-patch-color)", }, }, "post": Object { @@ -2608,9 +2615,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#00ED64", }, "light": Object { - "backgroundColor": "#E3FCF7", - "borderColor": "#C0FAE6", - "color": "#00684A", + "backgroundColor": "var(--http-post-bg)", + "borderColor": "var(--http-post-border)", + "color": "var(--http-post-color)", }, }, "put": Object { @@ -2620,22 +2627,22 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-put-bg)", + "borderColor": "var(--http-put-border)", + "color": "var(--http-put-color)", }, }, }, "primary": Object { - "contrastText": "#fff", - "dark": "#000", - "light": "#006591", - "main": "#001E2B", + "contrastText": "var(--colors-primary-main-dark)", + "dark": "var(--colors-primary-main-dark)", + "light": "var(--colors-primary-main-light)", + "main": "var(--colors-primary-main)", }, "responses": Object { "error": Object { - "backgroundColor": "#FFEAE5", - "color": "#DB3030", + "backgroundColor": "var(--responses-error-bg)", + "color": "var(--responses-error-color)", "tabTextColor": "#DB3030", }, "info": Object { @@ -2649,8 +2656,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "tabTextColor": "#C1C7C6", }, "success": Object { - "backgroundColor": "#E3FCF7", - "color": "#00684A", + "backgroundColor": "var(--responses-success-bg)", + "color": "var(--responses-success-color)", "tabTextColor": "#00ED64", }, }, @@ -2661,8 +2668,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "main": "#1d8127", }, "text": Object { - "primary": "#1C2D38", - "secondary": "#3e647c", + "primary": "var(--text-primary-color)", + "secondary": "var(--text-secondary-color)", }, "tonalOffset": 0.2, "warning": Object { @@ -2698,36 +2705,37 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "schema": Object { "arrow": Object { - "color": "#3e647c", + "color": "var(--text-secondary-color)", "size": "1.1em", }, "defaultDetailsWidth": "75%", "labelsTextSize": "0.9em", - "linesColor": "#001E2B", + "linesColor": "var(--schema-lines-color)", "nestedBackground": "#fafafa", "nestingSpacing": "1em", - "requireLabelColor": "#DB3030", - "typeNameColor": "#1C2D38", - "typeTitleColor": "#1C2D38", + "requireLabelColor": "var(--require-label-color)", + "typeNameColor": "var(--type-name-color)", + "typeTitleColor": "var(--type-name-color)", }, "sidebar": Object { - "activeTextColor": "#023430", + "activeTextColor": "var(--sidebar-active-color)", "arrow": Object { - "color": "#001E2B", + "color": "var(--sidebar-text-color)", "size": "1.5em", }, - "backgroundColor": "#F9FBFA", + "backButtonLabelColor": "var(--back-btn-label-color)", + "backgroundColor": "var(--sidebar-bg-color)", "groupItems": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "uppercase", }, "level1Items": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "none", }, - "textColor": "#001E2B", + "textColor": "var(--sidebar-text-color)", "width": "268px", }, "spacing": Object { @@ -2737,8 +2745,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "typography": Object { "code": Object { - "backgroundColor": "#F9FBFA", - "color": "#1C2D38", + "backgroundColor": "var(--typography-code-bg)", + "color": "var(--typography-code-color)", "fontFamily": "Source Code Pro", "fontSize": "13px", "fontWeight": "400", @@ -2757,11 +2765,11 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "lineHeight": "24px", "links": Object { - "color": "#016BF8", - "hover": "#016BF8", + "color": "var(--link-blue)", + "hover": "var(--link-blue)", "hoverTextDecoration": "auto", "textDecoration": "auto", - "visited": "#016BF8", + "visited": "var(--link-blue)", }, "optimizeSpeed": true, "smoothing": "antialiased", @@ -2903,9 +2911,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFCDC7", }, "light": Object { - "backgroundColor": "#FFEAE5", - "borderColor": "#FFCDC7", - "color": "#970606", + "backgroundColor": "var(--http-delete-bg)", + "borderColor": "var(--http-delete-border)", + "color": "var(--http-delete-color)", }, }, "get": Object { @@ -2915,9 +2923,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#C3E7FE", }, "light": Object { - "backgroundColor": "#E1F7FF", - "borderColor": "#C3E7FE", - "color": "#1254B7", + "backgroundColor": "var(--http-get-bg)", + "borderColor": "var(--http-get-border)", + "color": "var(--http-get-color)", }, }, "head": "#A23DAD", @@ -2930,9 +2938,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-patch-bg)", + "borderColor": "var(--http-patch-border)", + "color": "var(--http-patch-color)", }, }, "post": Object { @@ -2942,9 +2950,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#00ED64", }, "light": Object { - "backgroundColor": "#E3FCF7", - "borderColor": "#C0FAE6", - "color": "#00684A", + "backgroundColor": "var(--http-post-bg)", + "borderColor": "var(--http-post-border)", + "color": "var(--http-post-color)", }, }, "put": Object { @@ -2954,22 +2962,22 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-put-bg)", + "borderColor": "var(--http-put-border)", + "color": "var(--http-put-color)", }, }, }, "primary": Object { - "contrastText": "#fff", - "dark": "#000", - "light": "#006591", - "main": "#001E2B", + "contrastText": "var(--colors-primary-main-dark)", + "dark": "var(--colors-primary-main-dark)", + "light": "var(--colors-primary-main-light)", + "main": "var(--colors-primary-main)", }, "responses": Object { "error": Object { - "backgroundColor": "#FFEAE5", - "color": "#DB3030", + "backgroundColor": "var(--responses-error-bg)", + "color": "var(--responses-error-color)", "tabTextColor": "#DB3030", }, "info": Object { @@ -2983,8 +2991,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "tabTextColor": "#C1C7C6", }, "success": Object { - "backgroundColor": "#E3FCF7", - "color": "#00684A", + "backgroundColor": "var(--responses-success-bg)", + "color": "var(--responses-success-color)", "tabTextColor": "#00ED64", }, }, @@ -2995,8 +3003,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "main": "#1d8127", }, "text": Object { - "primary": "#1C2D38", - "secondary": "#3e647c", + "primary": "var(--text-primary-color)", + "secondary": "var(--text-secondary-color)", }, "tonalOffset": 0.2, "warning": Object { @@ -3032,36 +3040,37 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "schema": Object { "arrow": Object { - "color": "#3e647c", + "color": "var(--text-secondary-color)", "size": "1.1em", }, "defaultDetailsWidth": "75%", "labelsTextSize": "0.9em", - "linesColor": "#001E2B", + "linesColor": "var(--schema-lines-color)", "nestedBackground": "#fafafa", "nestingSpacing": "1em", - "requireLabelColor": "#DB3030", - "typeNameColor": "#1C2D38", - "typeTitleColor": "#1C2D38", + "requireLabelColor": "var(--require-label-color)", + "typeNameColor": "var(--type-name-color)", + "typeTitleColor": "var(--type-name-color)", }, "sidebar": Object { - "activeTextColor": "#023430", + "activeTextColor": "var(--sidebar-active-color)", "arrow": Object { - "color": "#001E2B", + "color": "var(--sidebar-text-color)", "size": "1.5em", }, - "backgroundColor": "#F9FBFA", + "backButtonLabelColor": "var(--back-btn-label-color)", + "backgroundColor": "var(--sidebar-bg-color)", "groupItems": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "uppercase", }, "level1Items": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "none", }, - "textColor": "#001E2B", + "textColor": "var(--sidebar-text-color)", "width": "268px", }, "spacing": Object { @@ -3071,8 +3080,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "typography": Object { "code": Object { - "backgroundColor": "#F9FBFA", - "color": "#1C2D38", + "backgroundColor": "var(--typography-code-bg)", + "color": "var(--typography-code-color)", "fontFamily": "Source Code Pro", "fontSize": "13px", "fontWeight": "400", @@ -3091,11 +3100,11 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "lineHeight": "24px", "links": Object { - "color": "#016BF8", - "hover": "#016BF8", + "color": "var(--link-blue)", + "hover": "var(--link-blue)", "hoverTextDecoration": "auto", "textDecoration": "auto", - "visited": "#016BF8", + "visited": "var(--link-blue)", }, "optimizeSpeed": true, "smoothing": "antialiased", @@ -3224,9 +3233,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFCDC7", }, "light": Object { - "backgroundColor": "#FFEAE5", - "borderColor": "#FFCDC7", - "color": "#970606", + "backgroundColor": "var(--http-delete-bg)", + "borderColor": "var(--http-delete-border)", + "color": "var(--http-delete-color)", }, }, "get": Object { @@ -3236,9 +3245,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#C3E7FE", }, "light": Object { - "backgroundColor": "#E1F7FF", - "borderColor": "#C3E7FE", - "color": "#1254B7", + "backgroundColor": "var(--http-get-bg)", + "borderColor": "var(--http-get-border)", + "color": "var(--http-get-color)", }, }, "head": "#A23DAD", @@ -3251,9 +3260,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-patch-bg)", + "borderColor": "var(--http-patch-border)", + "color": "var(--http-patch-color)", }, }, "post": Object { @@ -3263,9 +3272,9 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#00ED64", }, "light": Object { - "backgroundColor": "#E3FCF7", - "borderColor": "#C0FAE6", - "color": "#00684A", + "backgroundColor": "var(--http-post-bg)", + "borderColor": "var(--http-post-border)", + "color": "var(--http-post-color)", }, }, "put": Object { @@ -3275,22 +3284,22 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "color": "#FFEC9E", }, "light": Object { - "backgroundColor": "#FEF7DB", - "borderColor": "#FFEC9E", - "color": "#944F01", + "backgroundColor": "var(--http-put-bg)", + "borderColor": "var(--http-put-border)", + "color": "var(--http-put-color)", }, }, }, "primary": Object { - "contrastText": "#fff", - "dark": "#000", - "light": "#006591", - "main": "#001E2B", + "contrastText": "var(--colors-primary-main-dark)", + "dark": "var(--colors-primary-main-dark)", + "light": "var(--colors-primary-main-light)", + "main": "var(--colors-primary-main)", }, "responses": Object { "error": Object { - "backgroundColor": "#FFEAE5", - "color": "#DB3030", + "backgroundColor": "var(--responses-error-bg)", + "color": "var(--responses-error-color)", "tabTextColor": "#DB3030", }, "info": Object { @@ -3304,8 +3313,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "tabTextColor": "#C1C7C6", }, "success": Object { - "backgroundColor": "#E3FCF7", - "color": "#00684A", + "backgroundColor": "var(--responses-success-bg)", + "color": "var(--responses-success-color)", "tabTextColor": "#00ED64", }, }, @@ -3316,8 +3325,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView "main": "#1d8127", }, "text": Object { - "primary": "#1C2D38", - "secondary": "#3e647c", + "primary": "var(--text-primary-color)", + "secondary": "var(--text-secondary-color)", }, "tonalOffset": 0.2, "warning": Object { @@ -3353,36 +3362,37 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "schema": Object { "arrow": Object { - "color": "#3e647c", + "color": "var(--text-secondary-color)", "size": "1.1em", }, "defaultDetailsWidth": "75%", "labelsTextSize": "0.9em", - "linesColor": "#001E2B", + "linesColor": "var(--schema-lines-color)", "nestedBackground": "#fafafa", "nestingSpacing": "1em", - "requireLabelColor": "#DB3030", - "typeNameColor": "#1C2D38", - "typeTitleColor": "#1C2D38", + "requireLabelColor": "var(--require-label-color)", + "typeNameColor": "var(--type-name-color)", + "typeTitleColor": "var(--type-name-color)", }, "sidebar": Object { - "activeTextColor": "#023430", + "activeTextColor": "var(--sidebar-active-color)", "arrow": Object { - "color": "#001E2B", + "color": "var(--sidebar-text-color)", "size": "1.5em", }, - "backgroundColor": "#F9FBFA", + "backButtonLabelColor": "var(--back-btn-label-color)", + "backgroundColor": "var(--sidebar-bg-color)", "groupItems": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "uppercase", }, "level1Items": Object { - "activeBackgroundColor": "#E3FCF7", - "activeTextColor": "#023430", + "activeBackgroundColor": "var(--sidebar-active-bg)", + "activeTextColor": "var(--sidebar-active-color)", "textTransform": "none", }, - "textColor": "#001E2B", + "textColor": "var(--sidebar-text-color)", "width": "268px", }, "spacing": Object { @@ -3392,8 +3402,8 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "typography": Object { "code": Object { - "backgroundColor": "#F9FBFA", - "color": "#1C2D38", + "backgroundColor": "var(--typography-code-bg)", + "color": "var(--typography-code-color)", "fontFamily": "Source Code Pro", "fontSize": "13px", "fontWeight": "400", @@ -3412,11 +3422,11 @@ exports[`Components SchemaView discriminator should correctly render SchemaView }, "lineHeight": "24px", "links": Object { - "color": "#016BF8", - "hover": "#016BF8", + "color": "var(--link-blue)", + "hover": "var(--link-blue)", "hoverTextDecoration": "auto", "textDecoration": "auto", - "visited": "#016BF8", + "visited": "var(--link-blue)", }, "optimizeSpeed": true, "smoothing": "antialiased", diff --git a/src/components/__tests__/__snapshots__/OneOfSchema.test.tsx.snap b/src/components/__tests__/__snapshots__/OneOfSchema.test.tsx.snap index f4c389d0b5..fa7d77de76 100644 --- a/src/components/__tests__/__snapshots__/OneOfSchema.test.tsx.snap +++ b/src/components/__tests__/__snapshots__/OneOfSchema.test.tsx.snap @@ -3,7 +3,7 @@ exports[`Components SchemaView OneOf deprecated should match snapshot 1`] = `
One of @@ -11,12 +11,12 @@ exports[`Components SchemaView OneOf deprecated should match snapshot 1`] = ` class="sc-dlMDgC EoFth" > @@ -33,10 +33,10 @@ exports[`Components SchemaView OneOf deprecated should match snapshot 1`] = `
string @@ -44,7 +44,7 @@ exports[`Components SchemaView OneOf deprecated should match snapshot 1`] = `
diff --git a/src/components/__tests__/__snapshots__/SecurityRequirement.test.tsx.snap b/src/components/__tests__/__snapshots__/SecurityRequirement.test.tsx.snap index 1c1f973675..9f41051ef2 100644 --- a/src/components/__tests__/__snapshots__/SecurityRequirement.test.tsx.snap +++ b/src/components/__tests__/__snapshots__/SecurityRequirement.test.tsx.snap @@ -1,23 +1,23 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`SecurityRequirement should render SecurityDefs 1`] = ` -"

petstore_auth

Get access to data while protecting your account credentials. +"

petstore_auth

Get access to data while protecting your account credentials. OAuth2 is also a safer and more secure way to give you access.

-
Security Scheme Type: OAuth2
Flow type: implicit
Scopes:
  • write:pets -

    modify pets in your account

    -
  • read:pets -

    read your pets

    -

GitLab_PersonalAccessToken

GitLab Personal Access Token description

-
Security Scheme Type: API Key
Header parameter name: PRIVATE-TOKEN

GitLab_OpenIdConnect

GitLab OpenIdConnect description

-
Security Scheme Type: OpenID Connect

basicAuth

Security Scheme Type: HTTP
HTTP Authorization Scheme: basic
" +
Security Scheme Type: OAuth2
Flow type: implicit
Scopes:
  • write:pets -

    modify pets in your account

    +
  • read:pets -

    read your pets

    +

GitLab_PersonalAccessToken

GitLab Personal Access Token description

+
Security Scheme Type: API Key
Header parameter name: PRIVATE-TOKEN

GitLab_OpenIdConnect

GitLab OpenIdConnect description

+
Security Scheme Type: OpenID Connect

basicAuth

Security Scheme Type: HTTP
HTTP Authorization Scheme: basic
" `; -exports[`SecurityRequirement should render authDefinition 1`] = `"
Authorizations:
(API Key: GitLab_PersonalAccessTokenOpenID Connect: GitLab_OpenIdConnectHTTP: basicAuth) OAuth2: petstore_auth
,"`; +exports[`SecurityRequirement should render authDefinition 1`] = `"
Authorizations:
(API Key: GitLab_PersonalAccessTokenOpenID Connect: GitLab_OpenIdConnectHTTP: basicAuth) OAuth2: petstore_auth
,"`; exports[`SecurityRequirement should render authDefinition 2`] = ` -"
Authorizations:
(API Key: GitLab_PersonalAccessTokenOpenID Connect: GitLab_OpenIdConnectHTTP: basicAuth) OAuth2: petstore_auth (write:petsread:pets)
OAuth2: petstore_auth

Get access to data while protecting your account credentials. +"

Authorizations:
(API Key: GitLab_PersonalAccessTokenOpenID Connect: GitLab_OpenIdConnectHTTP: basicAuth) OAuth2: petstore_auth (write:petsread:pets)
OAuth2: petstore_auth

Get access to data while protecting your account credentials. OAuth2 is also a safer and more secure way to give you access.

-
Flow type: implicit
Required scopes: write:pets read:pets
Scopes:
  • write:pets -

    modify pets in your account

    -
  • read:pets -

    read your pets

    -
API Key: GitLab_PersonalAccessToken

GitLab Personal Access Token description

-
Header parameter name: PRIVATE-TOKEN
OpenID Connect: GitLab_OpenIdConnect

GitLab OpenIdConnect description

-
HTTP: basicAuth
HTTP Authorization Scheme: basic
," +
Flow type: implicit
Required scopes: write:pets read:pets
Scopes:
  • write:pets -

    modify pets in your account

    +
  • read:pets -

    read your pets

    +
API Key: GitLab_PersonalAccessToken

GitLab Personal Access Token description

+
Header parameter name: PRIVATE-TOKEN
OpenID Connect: GitLab_OpenIdConnect

GitLab OpenIdConnect description

+
HTTP: basicAuth
HTTP Authorization Scheme: basic
," `; diff --git a/src/components/__tests__/__snapshots__/VersionSelector.test.tsx.snap b/src/components/__tests__/__snapshots__/VersionSelector.test.tsx.snap index 2eaa4f22af..71d37b746a 100644 --- a/src/components/__tests__/__snapshots__/VersionSelector.test.tsx.snap +++ b/src/components/__tests__/__snapshots__/VersionSelector.test.tsx.snap @@ -14,7 +14,7 @@ exports[`VersionSelector should correctly render VersionSelector 1`] = `