shineout 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +1 -1
- package/cjs/tests/utils.d.ts +1 -0
- package/cjs/tests/utils.js +4 -0
- package/dist/shineout.js +40 -16
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/esm/tests/utils.d.ts +1 -0
- package/esm/tests/utils.js +3 -0
- package/package.json +5 -5
package/esm/index.js
CHANGED
package/esm/tests/utils.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export type ReactComponentType = React.ComponentType<BaseTestProps>;
|
|
|
22
22
|
export declare function baseTest(Component: ReactComponentType | JSX.Element, selector: string, styleV?: StyleProps, styleRender?: string, className?: string, data?: any): void;
|
|
23
23
|
export declare function childrenTest(Component: React.ComponentType<BaseTestProps>, selector: string): void;
|
|
24
24
|
export declare function inputValueTest(element: Element, value: string): void;
|
|
25
|
+
export declare function inputPlaceholderTest(element: Element, value: string): void;
|
|
25
26
|
export declare function displayTest(Component: React.FC, displayName: string): void;
|
|
26
27
|
export declare const delay: (time: number) => Promise<void>;
|
|
27
28
|
type classNamesMapType = {
|
package/esm/tests/utils.js
CHANGED
|
@@ -114,6 +114,9 @@ export function childrenTest(Component, selector) {
|
|
|
114
114
|
export function inputValueTest(element, value) {
|
|
115
115
|
attributesTest(element, 'value', value);
|
|
116
116
|
}
|
|
117
|
+
export function inputPlaceholderTest(element, value) {
|
|
118
|
+
attributesTest(element, 'placeholder', value);
|
|
119
|
+
}
|
|
117
120
|
export function displayTest(Component, displayName) {
|
|
118
121
|
test('should start with Shineout display', function () {
|
|
119
122
|
expect(Component.displayName).toBe(displayName);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shineout",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"description": "A components library for React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"module": "./esm/index.js",
|
|
17
17
|
"typings": "./cjs/index.d.ts",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@sheinx/base": "3.4.
|
|
20
|
-
"@sheinx/hooks": "3.4.
|
|
21
|
-
"@sheinx/shineout-style": "3.4.
|
|
22
|
-
"@sheinx/theme": "3.4.
|
|
19
|
+
"@sheinx/base": "3.4.1",
|
|
20
|
+
"@sheinx/hooks": "3.4.1",
|
|
21
|
+
"@sheinx/shineout-style": "3.4.1",
|
|
22
|
+
"@sheinx/theme": "3.4.1",
|
|
23
23
|
"classnames": "^2.0.0",
|
|
24
24
|
"immer": "^10.0.0",
|
|
25
25
|
"deep-eql": "^4.0.0"
|