Comparing version 6.8.1 to 6.9.0
{ | ||
"name": "@ably/ui", | ||
"version": "6.8.1", | ||
"version": "6.9.0", | ||
"description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -7,7 +7,7 @@ import React from "react"; | ||
const Code = ({ language, snippet, textSize = "ui-text-code1" }) => { | ||
const Code = ({ language, snippet, textSize = "ui-text-code1", padding = "p-32", additionalCSS = "" }) => { | ||
const HTMLraw = highlight(language, `${snippet}`.trim()); | ||
const className = `language-${language} ${textSize}`; | ||
return ( | ||
<div className="hljs p-32 overflow-auto" data-id="code"> | ||
<div className={`hljs overflow-auto ${padding} ${additionalCSS}`} data-id="code"> | ||
<pre lang={language}> | ||
@@ -24,4 +24,6 @@ <code className={className} dangerouslySetInnerHTML={{ __html: HTMLraw }} /> | ||
textSize: T.string, | ||
padding: T.string, | ||
additionalCSS: T.string, | ||
}; | ||
export default Code; |
@@ -146,2 +146,3 @@ module.exports = { | ||
input: "0px 0px 8px 0px rgba(8, 103, 196, 1)", // color-gui-hover at 50% | ||
quote: "0rem 1.5rem 2rem 0rem #0000000d", | ||
// opacity | ||
@@ -148,0 +149,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5027432
378
32232