@matchlighter/common_library
Advanced tools
Comparing version 1.6.9 to 1.6.10
@@ -10,4 +10,5 @@ import React, { Component } from 'react'; | ||
context: React.ContextType<typeof HeightModeContext>; | ||
static readonly stylesheet: import("../../StyleSheet").StyleSheet; | ||
render(): JSX.Element; | ||
} | ||
export {}; |
@@ -38,2 +38,3 @@ "use strict"; | ||
ShadowedScroll.contextType = exports.HeightModeContext; | ||
ShadowedScroll.stylesheet = styles; | ||
//# sourceMappingURL=index.js.map |
@@ -11,3 +11,11 @@ import React from "react"; | ||
private readonly styles; | ||
/** Creates a simple React Component for the given style classes */ | ||
element(classes: ClassNamesParam, type?: string, globalClass?: ClassNamesParam): React.HTMLFactory<HTMLElement>; | ||
/** | ||
* Generate a CSS class string (including both local class-name and global class-name - eg "separated boMS4sbCae8GgTcsACMg") using the given local class-name. | ||
* | ||
* As a shortcut, the StyleSheet instance itself can be called as a function with the same parameters - eg `styles('separated')` instead of `styles.class('separated')`. | ||
* | ||
* Accepts any parameters that the `classnames` package accepts. | ||
*/ | ||
class(classes: ClassNamesParam, globalClass?: ClassNamesParam): string; | ||
@@ -14,0 +22,0 @@ } |
@@ -21,2 +21,3 @@ "use strict"; | ||
} | ||
/** Creates a simple React Component for the given style classes */ | ||
element(classes, type = 'div', globalClass) { | ||
@@ -28,2 +29,9 @@ return styledElement(this.styles, classes, { | ||
} | ||
/** | ||
* Generate a CSS class string (including both local class-name and global class-name - eg "separated boMS4sbCae8GgTcsACMg") using the given local class-name. | ||
* | ||
* As a shortcut, the StyleSheet instance itself can be called as a function with the same parameters - eg `styles('separated')` instead of `styles.class('separated')`. | ||
* | ||
* Accepts any parameters that the `classnames` package accepts. | ||
*/ | ||
class(classes, globalClass) { | ||
@@ -30,0 +38,0 @@ return (0, exports.mClassNames)(this.styles, classes, globalClass); |
@@ -10,4 +10,5 @@ import React, { Component } from 'react'; | ||
context: React.ContextType<typeof HeightModeContext>; | ||
static readonly stylesheet: import("../../StyleSheet").StyleSheet; | ||
render(): JSX.Element; | ||
} | ||
export {}; |
@@ -34,2 +34,3 @@ import React, { Component } from 'react'; | ||
ShadowedScroll.contextType = HeightModeContext; | ||
ShadowedScroll.stylesheet = styles; | ||
//# sourceMappingURL=index.js.map |
@@ -11,3 +11,11 @@ import React from "react"; | ||
private readonly styles; | ||
/** Creates a simple React Component for the given style classes */ | ||
element(classes: ClassNamesParam, type?: string, globalClass?: ClassNamesParam): React.HTMLFactory<HTMLElement>; | ||
/** | ||
* Generate a CSS class string (including both local class-name and global class-name - eg "separated boMS4sbCae8GgTcsACMg") using the given local class-name. | ||
* | ||
* As a shortcut, the StyleSheet instance itself can be called as a function with the same parameters - eg `styles('separated')` instead of `styles.class('separated')`. | ||
* | ||
* Accepts any parameters that the `classnames` package accepts. | ||
*/ | ||
class(classes: ClassNamesParam, globalClass?: ClassNamesParam): string; | ||
@@ -14,0 +22,0 @@ } |
@@ -18,2 +18,3 @@ import React from "react"; | ||
} | ||
/** Creates a simple React Component for the given style classes */ | ||
element(classes, type = 'div', globalClass) { | ||
@@ -25,2 +26,9 @@ return styledElement(this.styles, classes, { | ||
} | ||
/** | ||
* Generate a CSS class string (including both local class-name and global class-name - eg "separated boMS4sbCae8GgTcsACMg") using the given local class-name. | ||
* | ||
* As a shortcut, the StyleSheet instance itself can be called as a function with the same parameters - eg `styles('separated')` instead of `styles.class('separated')`. | ||
* | ||
* Accepts any parameters that the `classnames` package accepts. | ||
*/ | ||
class(classes, globalClass) { | ||
@@ -27,0 +35,0 @@ return mClassNames(this.styles, classes, globalClass); |
{ | ||
"name": "@matchlighter/common_library", | ||
"version": "1.6.9", | ||
"version": "1.6.10", | ||
"description": "Shared Functions, Helpers, Patterns & Utilities for Apps and Libraries", | ||
@@ -5,0 +5,0 @@ "author": "Matchlighter", |
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
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
630471
390
11043