@@ -27,40 +27,33 @@ yarn test
27
27
28
28
#### Table of Contents
29
29
30
- - [ css ] ( #css )
30
+ - [ createSelector ] ( #createselector )
31
31
- [ Parameters] ( #parameters )
32
- - [ keyframes] ( #keyframes )
33
- - [ Parameters] ( #parameters-1 )
34
32
- [ attachRules] ( #attachrules )
35
- - [ Parameters] ( #parameters-2 )
33
+ - [ Parameters] ( #parameters-1 )
36
34
- [ referenceRules] ( #referencerules )
35
+ - [ Parameters] ( #parameters-2 )
36
+ - [ css] ( #css )
37
37
- [ Parameters] ( #parameters-3 )
38
- - [ transpile ] ( #transpile )
38
+ - [ className ] ( #classname )
39
39
- [ Parameters] ( #parameters-4 )
40
- - [ createSelector ] ( #createselector )
40
+ - [ keyframes ] ( #keyframes )
41
41
- [ Parameters] ( #parameters-5 )
42
+ - [ toClassName] ( #toclassname )
43
+ - [ Parameters] ( #parameters-6 )
44
+ - [ transpile] ( #transpile )
45
+ - [ Parameters] ( #parameters-7 )
42
46
43
- ### css
44
-
45
- Template string tag to declare CSS content chunks.
46
-
47
- #### Parameters
48
-
49
- - ` slices ` ** TemplateStringsArray**
50
- - ` values ` ** ...[ Array] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array ) < ; [ string] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String ) >**
51
-
52
- Returns ** any** a callback to render the CSS content
53
-
54
- ### keyframes
47
+ ### createSelector
55
48
56
- Template string tag to declare CSS ` @keyframe ` at-rules .
49
+ Creates a pair of selector and escaped selector for a CSS Modules content .
57
50
58
51
#### Parameters
59
52
60
- - ` slices ` ** TemplateStringsArray**
61
- - ` values ` ** ...[ Array] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array ) < ; [ string] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String ) >**
53
+ - ` content ` ** [ string] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String ) **
62
54
63
- Returns ** any** a callback to render the CSS at-rule content
55
+ Returns ** \[ [ string] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String ) , [ string] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String )] ** a pair of selectors in the format ` rcx-@<content hash> ` ; the second element is escaped
56
+ for use in CSS content
64
57
65
58
### attachRules
66
59
@@ -87,27 +80,58 @@ style sheet.
87
80
88
81
Returns ** any** a callback to unreference the rules
89
82
90
- ### transpile
83
+ ### css
91
84
92
- Transpiles CSS Modules content to CSS rules .
85
+ Template string tag to declare CSS content chunks .
93
86
94
87
#### Parameters
95
88
96
- - ` selector ` ** [ string ] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String ) **
97
- - ` content ` ** [ string] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String ) **
89
+ - ` slices ` ** TemplateStringsArray **
90
+ - ` values ` ** ... [ Array ] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array ) & lt ; [ string] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String ) > **
98
91
99
- Returns ** [ string ] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String ) **
92
+ Returns ** cssFn ** a callback to render the CSS content
100
93
101
- ### createSelector
94
+ ### className
102
95
103
- Creates a pair of selector and escaped selector for a CSS Modules content .
96
+ Template string tag to declare CSS content within a className .
104
97
105
98
#### Parameters
106
99
100
+ - ` className ` ** [ string] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String ) **
101
+
102
+ Returns ** any** a callback to render the CSS content
103
+
104
+ ### keyframes
105
+
106
+ Template string tag to declare CSS ` @keyframe ` at-rules.
107
+
108
+ #### Parameters
109
+
110
+ - ` slices ` ** TemplateStringsArray**
111
+ - ` values ` ** ...[ Array] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array ) < ; [ string] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String ) >**
112
+
113
+ Returns ** any** a callback to render the CSS at-rule content
114
+
115
+ ### toClassName
116
+
117
+ Process a value as a className.
118
+
119
+ #### Parameters
120
+
121
+ - ` value ` ** (cssFn | classNameFn | [ string] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String ) )**
122
+
123
+ Returns ** [ string] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String ) ?** a string containing a className or undefined
124
+
125
+ ### transpile
126
+
127
+ Transpiles CSS Modules content to CSS rules.
128
+
129
+ #### Parameters
130
+
131
+ - ` selector ` ** [ string] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String ) **
107
132
- ` content ` ** [ string] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String ) **
108
133
109
- Returns ** \[ [ string] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String ) , [ string] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String )] ** a pair of selectors in the format ` rcx-@<content hash> ` ; the second element is escaped
110
- for use in CSS content
134
+ Returns ** [ string] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String ) **
111
135
112
136
## Author
113
137
0 commit comments