@rocket.chat/styled 0.28.0 → 0.30.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/LICENSE +1 -1
- package/package.json +10 -18
- package/dist/ts3.4/index.d.ts +0 -2
- package/dist/ts3.4/styled.d.ts +0 -13
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rocket.chat/styled",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.1",
|
|
4
4
|
"description": "A simple styled API for React components",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Rocket.Chat",
|
|
@@ -22,22 +22,14 @@
|
|
|
22
22
|
"main": "dist/cjs/index.js",
|
|
23
23
|
"module": "dist/esm/index.js",
|
|
24
24
|
"types": "dist/esm/index.d.ts",
|
|
25
|
-
"typesVersions": {
|
|
26
|
-
"<4.1": {
|
|
27
|
-
"*": [
|
|
28
|
-
"dist/ts3.4/*"
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
25
|
"files": [
|
|
33
26
|
"/dist"
|
|
34
27
|
],
|
|
35
28
|
"scripts": {
|
|
36
|
-
"build": "run-s .:build:clean .:build:esm .:build:cjs
|
|
29
|
+
"build": "run-s .:build:clean .:build:esm .:build:cjs",
|
|
37
30
|
".:build:clean": "rimraf dist",
|
|
38
31
|
".:build:esm": "tsc -p tsconfig-esm.json",
|
|
39
32
|
".:build:cjs": "tsc -p tsconfig-cjs.json",
|
|
40
|
-
".:build:ts3.4": "downlevel-dts dist/esm/ dist/ts3.4/ --to=3.4",
|
|
41
33
|
"lint": "eslint src",
|
|
42
34
|
"lint-fix": "eslint --fix src",
|
|
43
35
|
"lint-staged": "lint-staged",
|
|
@@ -45,22 +37,22 @@
|
|
|
45
37
|
"docs": "typedoc"
|
|
46
38
|
},
|
|
47
39
|
"devDependencies": {
|
|
48
|
-
"@rocket.chat/eslint-config-alt": "^0.
|
|
49
|
-
"@rocket.chat/prettier-config": "^0.
|
|
50
|
-
"@types/jest": "^
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"jest": "^27.0.6",
|
|
40
|
+
"@rocket.chat/eslint-config-alt": "^0.30.0",
|
|
41
|
+
"@rocket.chat/prettier-config": "^0.30.0",
|
|
42
|
+
"@types/jest": "^27.0.2",
|
|
43
|
+
"eslint": "^7.32.0",
|
|
44
|
+
"jest": "^27.2.1",
|
|
54
45
|
"lint-staged": "^11.0.0",
|
|
55
46
|
"npm-run-all": "^4.1.5",
|
|
56
47
|
"prettier": "^2.3.2",
|
|
57
48
|
"rimraf": "^3.0.2",
|
|
58
|
-
"ts-jest": "^27.0.
|
|
49
|
+
"ts-jest": "^27.0.5",
|
|
59
50
|
"typedoc": "^0.21.2",
|
|
60
51
|
"typescript": "^4.3.4"
|
|
61
52
|
},
|
|
62
53
|
"dependencies": {
|
|
54
|
+
"@rocket.chat/css-in-js": "^0.30.0",
|
|
63
55
|
"tslib": "^2.3.0"
|
|
64
56
|
},
|
|
65
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "0cbfad9f3508f5cddbfc50eb7c4cb7ea4aba4aa2"
|
|
66
58
|
}
|
package/dist/ts3.4/index.d.ts
DELETED
package/dist/ts3.4/styled.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DetailedHTMLProps, ForwardRefExoticComponent, HTMLAttributes, PropsWithoutRef, RefAttributes, SVGProps } from 'react';
|
|
2
|
-
export declare const attachClassName: <P extends {
|
|
3
|
-
className?: string | undefined;
|
|
4
|
-
}>(props: P, additionalClassName: string) => P;
|
|
5
|
-
declare type RefTypes = {
|
|
6
|
-
[K in keyof JSX.IntrinsicElements]: JSX.IntrinsicElements[K] extends DetailedHTMLProps<HTMLAttributes<infer T>, any> ? T : JSX.IntrinsicElements[K] extends SVGProps<infer T> ? T : never;
|
|
7
|
-
};
|
|
8
|
-
declare type PropsTypes = {
|
|
9
|
-
[K in keyof JSX.IntrinsicElements]: JSX.IntrinsicElements[K];
|
|
10
|
-
};
|
|
11
|
-
declare const styled: <K extends keyof JSX.IntrinsicElements, P>(type: K, filter?: ((p: P) => PropsTypes[K]) | undefined) => (slices: TemplateStringsArray, ...values: readonly (string | ((props: P) => string))[]) => ForwardRefExoticComponent<PropsWithoutRef<PropsTypes[K] & P> & RefAttributes<RefTypes[K]>>;
|
|
12
|
-
export default styled;
|
|
13
|
-
//# sourceMappingURL=styled.d.ts.map
|