@griffel/react 1.4.0 → 1.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/README.md CHANGED
@@ -1,4 +1,36 @@
1
- # Griffel for React
1
+ # Griffel for React.js
2
+
3
+ A package with wrappers and APIs to be used with React.js.
4
+
5
+ <!-- START doctoc generated TOC please keep comment here to allow auto update -->
6
+ <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
7
+
8
+ - [Install](#install)
9
+ - [`makeStyles()`](#makestyles)
10
+ - [Pseudo & class selectors, at-rules, global styles](#pseudo--class-selectors-at-rules-global-styles)
11
+ - [Keyframes (animations)](#keyframes-animations)
12
+ - [CSS Fallback Properties](#css-fallback-properties)
13
+ - [`mergeClasses()`](#mergeclasses)
14
+ - [`makeStaticStyles()`](#makestaticstyles)
15
+ - [`makeResetStyles()`](#makeresetstyles)
16
+ - [`createDOMRenderer()`, `RendererProvider`](#createdomrenderer-rendererprovider)
17
+ - [styleElementAttributes](#styleelementattributes)
18
+ - [Shorthands](#shorthands)
19
+ - [`shorthands.border`](#shorthandsborder)
20
+ - [`shorthands.borderBottom`, `shorthands.borderTop`, `shorthands.borderLeft`, `shorthands.borderRight`](#shorthandsborderbottom-shorthandsbordertop-shorthandsborderleft-shorthandsborderright)
21
+ - [`shorthands.borderColor`](#shorthandsbordercolor)
22
+ - [`shorthands.borderStyle`](#shorthandsborderstyle)
23
+ - [`shorthands.borderWidth`](#shorthandsborderwidth)
24
+ - [`shorthands.flex`](#shorthandsflex)
25
+ - [`shorthands.gap`](#shorthandsgap)
26
+ - [`shorthands.gridArea`](#shorthandsgridarea)
27
+ - [`shorthands.inset`](#shorthandsinset)
28
+ - [`shorthands.margin`](#shorthandsmargin)
29
+ - [`shorthands.overflow`](#shorthandsoverflow)
30
+ - [`shorthands.padding`](#shorthandspadding)
31
+ - [`shorthands.transition`](#shorthandstransition)
32
+
33
+ <!-- END doctoc generated TOC please keep comment here to allow auto update -->
2
34
 
3
35
  ## Install
4
36
 
@@ -8,9 +40,7 @@ npm install @griffel/react
8
40
  yarn add @griffel/react
9
41
  ```
10
42
 
11
- ## API
12
-
13
- ### `makeStyles()`
43
+ ## `makeStyles()`
14
44
 
15
45
  Is used to define styles, returns a React hook that should be called inside a component:
16
46
 
@@ -34,7 +64,93 @@ function Component() {
34
64
  }
35
65
  ```
36
66
 
37
- ### `mergeClasses()`
67
+ ### Pseudo & class selectors, at-rules, global styles
68
+
69
+ `makeStyles()` supports pseudo, class selectors and at-rules.
70
+
71
+ ```ts
72
+ import { makeStyles } from '@griffel/react';
73
+
74
+ const useClasses = makeStyles({
75
+ root: {
76
+ ':active': { color: 'pink' },
77
+ ':hover': { color: 'blue' },
78
+ // :link, :focus, etc.
79
+
80
+ '.foo': { color: 'black' },
81
+ ':nth-child(2n)': { backgroundColor: '#fafafa' },
82
+
83
+ '@media screen and (max-width: 992px)': { color: 'orange' },
84
+ '@supports (display: grid)': { color: 'red' },
85
+ '@layer utility': { marginBottom: '1em' },
86
+ },
87
+ });
88
+ ```
89
+
90
+ Another useful feature is `:global()` selector, it allows connecting local styles with global selectors.
91
+
92
+ ```ts
93
+ import { makeStyles } from '@griffel/react';
94
+
95
+ const useClasses = makeStyles({
96
+ root: {
97
+ ':global(html[data-whatintent="mouse"])': { backgroundColor: 'yellow' },
98
+ // outputs: html[data-whatintent="mouse"] .abcd { background-color: yellow }
99
+ },
100
+ });
101
+ ```
102
+
103
+ ### Keyframes (animations)
104
+
105
+ `keyframes` are supported via `animationName` property that can be defined as an object or an array of objects:
106
+
107
+ ```tsx
108
+ import { makeStyles } from '@griffel/react';
109
+
110
+ const useClasses = makeStyles({
111
+ root: {
112
+ animationIterationCount: 'infinite',
113
+ animationDuration: '3s',
114
+ animationName: {
115
+ from: { transform: 'rotate(0deg)' },
116
+ to: { transform: 'rotate(360deg)' },
117
+ },
118
+ },
119
+ array: {
120
+ animationIterationCount: 'infinite',
121
+ animationDuration: '3s',
122
+ animationName: [
123
+ {
124
+ from: { transform: 'rotate(0deg)' },
125
+ to: { transform: 'rotate(360deg)' },
126
+ },
127
+ {
128
+ from: { height: '100px' },
129
+ to: { height: '200px' },
130
+ },
131
+ ],
132
+ },
133
+ });
134
+ ```
135
+
136
+
137
+
138
+ ### CSS Fallback Properties
139
+
140
+ Any CSS property accepts an array of values which are all added to the styles.
141
+ Every browser will use the latest valid value (which might be a different one in different browsers, based on supported CSS in that browser):
142
+
143
+ ```js
144
+ import { makeStyles } from '@griffel/react';
145
+
146
+ const useClasses = makeStyles({
147
+ root: {
148
+ overflowY: ['scroll', 'overlay'],
149
+ },
150
+ });
151
+ ```
152
+
153
+ ## `mergeClasses()`
38
154
 
39
155
  > 💡 **It is not possible to simply concatenate classes returned by `useClasses()`.**
40
156
 
@@ -70,7 +186,162 @@ function Component() {
70
186
  }
71
187
  ```
72
188
 
73
- ## `shorthands`
189
+ ## `makeStaticStyles()`
190
+
191
+ Creates styles attached to a global selector. Styles can be defined via objects:
192
+
193
+ ```tsx
194
+ import { makeStaticStyles } from '@griffel/react';
195
+
196
+ const useStaticStyles = makeStaticStyles({
197
+ '@font-face': {
198
+ fontFamily: 'Open Sans',
199
+ src: `url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
200
+ url("/fonts/OpenSans-Regular-webfont.woff") format("woff")`,
201
+ },
202
+ body: {
203
+ background: 'red',
204
+ },
205
+
206
+ /**
207
+ * ⚠️ nested and pseudo selectors are not supported for this scenario via nesting
208
+ *
209
+ * Not supported:
210
+ * .some {
211
+ * .class { ... },
212
+ * ':hover': { ... }
213
+ * }
214
+ *
215
+ * Supported:
216
+ * '.some.class': { ... }
217
+ * '.some.class:hover': { ... }
218
+ */
219
+ });
220
+
221
+ function App() {
222
+ useStaticStyles();
223
+
224
+ return <div />;
225
+ }
226
+ ```
227
+
228
+ Or with string & arrays of strings/objects:
229
+
230
+ ```tsx
231
+ import { makeStaticStyles } from '@griffel/react';
232
+
233
+ const useStaticStyles1 = makeStaticStyles('body { background: red; } .foo { color: green; }');
234
+ const useStaticStyles2 = makeStaticStyles([
235
+ {
236
+ '@font-face': {
237
+ fontFamily: 'My Font',
238
+ src: `url(my_font.woff)`,
239
+ },
240
+ },
241
+ 'html { line-height: 20px; }',
242
+ ]);
243
+
244
+ function App() {
245
+ useStaticStyles1();
246
+ useStaticStyles2();
247
+
248
+ return <div />;
249
+ }
250
+ ```
251
+
252
+ ## `makeResetStyles()`
253
+
254
+ Atomic CSS has [tradeoffs](https://griffel.js.org/react/guides/atomic-css#trade-offs).
255
+ Once an element has many HTML class names each pointing to different CSS rules, browser layout times slow down.
256
+
257
+ There are cases when it's reasonable to flatten multiple declarations into monolithic CSS. For example, base styles for components in a UI library.
258
+ Rules generated by `makeResetStyles()` are inserted into the CSS style sheet before all the Atomic CSS, so styles from `makeStyles()` will always override these rules.
259
+
260
+ `makeResetStyles` returns a React hook that should be called inside a component:
261
+
262
+ > 💡`makeResetStyles` supports all features from `makeStyles()` and allows to use [CSS shorthands](https://griffel.js.org/react/guides/limitations#css-shorthands-are-not-supported).
263
+
264
+ ```jsx
265
+ import { makeStyles, makeResetStyles, shorthands } from '@griffel/react';
266
+ import { mergeClasses } from './mergeClasses';
267
+
268
+ const useBaseClass = makeResetStyles({
269
+ color: 'red',
270
+ padding: 0,
271
+ // etc.
272
+ });
273
+
274
+ const useClasses = makeStyles({
275
+ primary: { color: 'blue' },
276
+ circular: {
277
+ ...shorthands.padding('5px'),
278
+ ...shorthands.borderRadius('5px'),
279
+ },
280
+ });
281
+
282
+ function Component(props) {
283
+ const baseClass = useBaseClass();
284
+ const classes = useClasses();
285
+
286
+ return (
287
+ <button className={mergeClasses(baseClass, props.primary && classes.primary, props.circular && classes.circular)} />
288
+ );
289
+ }
290
+ ```
291
+
292
+ > ⚠️ Only one class generated by `makeResetStyles()` can be applied to an element. Otherwise, behavior will be non-deterministic as classes merging will not be done for this case and results depend on order of insertion.
293
+
294
+ ```jsx
295
+ import { makeStyles } from '@griffel/react';
296
+
297
+ const useClassA = makeResetStyles({
298
+ /* styles */
299
+ });
300
+ const useClassB = makeResetStyles({
301
+ /* styles */
302
+ });
303
+
304
+ function Component(props) {
305
+ /* 💣 Never apply multiple rules from makeResetStyles() to the same element */
306
+ return <button className={mergeClasses(useClassA(), useClassB())} />;
307
+ }
308
+ ```
309
+
310
+ ## `createDOMRenderer()`, `RendererProvider`
311
+
312
+ `createDOMRenderer` is paired with `RendererProvider` component and is useful for child window rendering and SSR scenarios. This is the default renderer for web, and will make sure that styles are injected to a document.
313
+
314
+ ```jsx
315
+ import { createDOMRenderer, RendererProvider } from '@griffel/react';
316
+
317
+ function App(props) {
318
+ const { targetDocument } = props;
319
+ const renderer = React.useMemo(() => createDOMRenderer(targetDocument), [targetDocument]);
320
+
321
+ return (
322
+ <RendererProvider renderer={renderer} targetDocument={targetDocument}>
323
+ {/* Children components */}
324
+ {/* ... */}
325
+ </RendererProvider>
326
+ );
327
+ }
328
+ ```
329
+
330
+ ### styleElementAttributes
331
+
332
+ A map of attributes that's passed to the generated style elements. For example, is useful to set ["nonce" attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/nonce).
333
+
334
+ ```js
335
+ import { createDOMRenderer } from '@griffel/react';
336
+
337
+ const renderer = createDOMRenderer(targetDocument, {
338
+ styleElementAttributes: {
339
+ nonce: 'random',
340
+ },
341
+ });
342
+ ```
343
+
344
+ ## Shorthands
74
345
 
75
346
  `shorthands` provides a set of functions to mimic [CSS shorthands](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties) and improve developer experience as [CSS shorthands are not supported](https://griffel.js.org/react/guides/limitations#css-shorthands-are-not-supported) by Griffel.
76
347
 
@@ -266,186 +537,3 @@ const useClasses = makeStyles({
266
537
  },
267
538
  });
268
539
  ```
269
-
270
- ## `makeStaticStyles()`
271
-
272
- Creates styles attached to a global selector. Styles can be defined via objects:
273
-
274
- ```tsx
275
- import { makeStaticStyles } from '@griffel/react';
276
-
277
- const useStaticStyles = makeStaticStyles({
278
- '@font-face': {
279
- fontFamily: 'Open Sans',
280
- src: `url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
281
- url("/fonts/OpenSans-Regular-webfont.woff") format("woff")`,
282
- },
283
- body: {
284
- background: 'red',
285
- },
286
-
287
- /**
288
- * ⚠️ nested and pseudo selectors are not supported for this scenario via nesting
289
- *
290
- * Not supported:
291
- * .some {
292
- * .class { ... },
293
- * ':hover': { ... }
294
- * }
295
- *
296
- * Supported:
297
- * '.some.class': { ... }
298
- * '.some.class:hover': { ... }
299
- */
300
- });
301
-
302
- function App() {
303
- useStaticStyles();
304
-
305
- return <div />;
306
- }
307
- ```
308
-
309
- Or with string & arrays of strings/objects:
310
-
311
- ```tsx
312
- import { makeStaticStyles } from '@griffel/react';
313
-
314
- const useStaticStyles1 = makeStaticStyles('body { background: red; } .foo { color: green; }');
315
- const useStaticStyles2 = makeStaticStyles([
316
- {
317
- '@font-face': {
318
- fontFamily: 'My Font',
319
- src: `url(my_font.woff)`,
320
- },
321
- },
322
- 'html { line-height: 20px; }',
323
- ]);
324
-
325
- function App() {
326
- useStaticStyles1();
327
- useStaticStyles2();
328
-
329
- return <div />;
330
- }
331
- ```
332
-
333
- ## `createDOMRenderer()`, `RendererProvider`
334
-
335
- `createDOMRenderer` is paired with `RendererProvider` component and is useful for child window rendering and SSR scenarios. This is the default renderer for web, and will make sure that styles are injected to a document.
336
-
337
- ```jsx
338
- import { createDOMRenderer, RendererProvider } from '@griffel/react';
339
-
340
- function App(props) {
341
- const { targetDocument } = props;
342
- const renderer = React.useMemo(() => createDOMRenderer(targetDocument), [targetDocument]);
343
-
344
- return (
345
- <RendererProvider renderer={renderer} targetDocument={targetDocument}>
346
- {/* Children components */}
347
- {/* ... */}
348
- </RendererProvider>
349
- );
350
- }
351
- ```
352
-
353
- ### styleElementAttributes
354
-
355
- A map of attributes that's passed to the generated style elements. For example, is useful to set ["nonce" attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/nonce).
356
-
357
- ```js
358
- import { createDOMRenderer } from '@griffel/react';
359
-
360
- const renderer = createDOMRenderer(targetDocument, {
361
- styleElementAttributes: {
362
- nonce: 'random',
363
- },
364
- });
365
- ```
366
-
367
- ## Features support
368
-
369
- ### 📃 pseudo & class selectors, at-rules, global styles
370
-
371
- `makeStyles()` supports pseudo, class selectors and at-rules.
372
-
373
- ```ts
374
- import { makeStyles } from '@griffel/react';
375
-
376
- const useClasses = makeStyles({
377
- root: {
378
- ':active': { color: 'pink' },
379
- ':hover': { color: 'blue' },
380
- // :link, :focus, etc.
381
-
382
- '.foo': { color: 'black' },
383
- ':nth-child(2n)': { backgroundColor: '#fafafa' },
384
-
385
- '@media screen and (max-width: 992px)': { color: 'orange' },
386
- '@supports (display: grid)': { color: 'red' },
387
- '@layer utility': { marginBottom: '1em' },
388
- },
389
- });
390
- ```
391
-
392
- Another useful feature is `:global()` selector, it allows connecting local styles with global selectors.
393
-
394
- ```ts
395
- import { makeStyles } from '@griffel/react';
396
-
397
- const useClasses = makeStyles({
398
- root: {
399
- ':global(html[data-whatintent="mouse"])': { backgroundColor: 'yellow' },
400
- // outputs: html[data-whatintent="mouse"] .abcd { background-color: yellow }
401
- },
402
- });
403
- ```
404
-
405
- ### 🎞 `keyframes` (animations)
406
-
407
- `keyframes` are supported via `animationName` property that can be defined as an object or an array of objects:
408
-
409
- ```tsx
410
- import { makeStyles } from '@griffel/react';
411
-
412
- const useClasses = makeStyles({
413
- root: {
414
- animationIterationCount: 'infinite',
415
- animationDuration: '3s',
416
- animationName: {
417
- from: { transform: 'rotate(0deg)' },
418
- to: { transform: 'rotate(360deg)' },
419
- },
420
- },
421
- array: {
422
- animationIterationCount: 'infinite',
423
- animationDuration: '3s',
424
- animationName: [
425
- {
426
- from: { transform: 'rotate(0deg)' },
427
- to: { transform: 'rotate(360deg)' },
428
- },
429
- {
430
- from: { height: '100px' },
431
- to: { height: '200px' },
432
- },
433
- ],
434
- },
435
- });
436
- ```
437
-
438
- ### CSS Fallback Properties
439
-
440
- Any CSS property accepts an array of values which are all added to the styles.
441
- Every browser will use the latest valid value (which might be a different one in different browsers, based on supported CSS in that browser):
442
-
443
- ```js
444
- import { makeStyles } from '@griffel/react';
445
-
446
- const useClasses = makeStyles({
447
- root: {
448
- overflowY: ['scroll', 'overlay'],
449
- },
450
- });
451
- ```
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A version of makeResetStyles() that accepts build output as an input and skips all runtime transforms & DOM insertion.
3
+ *
4
+ * @internal
5
+ */
6
+ export declare function __resetStyles(ltrClassName: string, rtlClassName: string | null): () => string;
@@ -0,0 +1,29 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var core = require('@griffel/core');
6
+ var RendererContext = require('./RendererContext.cjs.js');
7
+ var TextDirectionContext = require('./TextDirectionContext.cjs.js');
8
+
9
+ /**
10
+ * A version of makeResetStyles() that accepts build output as an input and skips all runtime transforms.
11
+ *
12
+ * @internal
13
+ */
14
+ // eslint-disable-next-line @typescript-eslint/naming-convention
15
+
16
+ function __resetStyles(ltrClassName, rtlClassName, cssRules) {
17
+ const getStyles = core.__resetStyles(ltrClassName, rtlClassName, cssRules);
18
+ return function useClasses() {
19
+ const dir = TextDirectionContext.useTextDirection();
20
+ const renderer = RendererContext.useRenderer();
21
+ return getStyles({
22
+ dir,
23
+ renderer
24
+ });
25
+ };
26
+ }
27
+
28
+ exports.__resetStyles = __resetStyles;
29
+ //# sourceMappingURL=__resetStyles.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"__resetStyles.cjs.js","sources":["../../../packages/react/src/__resetStyles.ts"],"sourcesContent":["import { __resetStyles as vanillaResetStyles } from '@griffel/core';\n\nimport { useRenderer } from './RendererContext';\nimport { useTextDirection } from './TextDirectionContext';\n\n/**\n * A version of makeResetStyles() that accepts build output as an input and skips all runtime transforms.\n *\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function __resetStyles(ltrClassName: string, rtlClassName: string | null, cssRules: string[]) {\n const getStyles = vanillaResetStyles(ltrClassName, rtlClassName, cssRules);\n\n return function useClasses(): string {\n const dir = useTextDirection();\n const renderer = useRenderer();\n\n return getStyles({ dir, renderer });\n };\n}\n"],"names":["__resetStyles","ltrClassName","rtlClassName","cssRules","getStyles","vanillaResetStyles","useClasses","dir","useTextDirection","renderer","useRenderer"],"mappings":";;;;;;;;AAKA;;;;;AAKA;;SACgBA,cAAcC,cAAsBC,cAA6BC;EAC/E,MAAMC,SAAS,GAAGC,kBAAkB,CAACJ,YAAD,EAAeC,YAAf,EAA6BC,QAA7B,CAApC;EAEA,OAAO,SAASG,UAAT;IACL,MAAMC,GAAG,GAAGC,qCAAgB,EAA5B;IACA,MAAMC,QAAQ,GAAGC,2BAAW,EAA5B;IAEA,OAAON,SAAS,CAAC;MAAEG,GAAF;MAAOE;KAAR,CAAhB;GAJF;AAMD;;;;"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A version of makeResetStyles() that accepts build output as an input and skips all runtime transforms.
3
+ *
4
+ * @internal
5
+ */
6
+ export declare function __resetStyles(ltrClassName: string, rtlClassName: string | null, cssRules: string[]): () => string;
@@ -0,0 +1,25 @@
1
+ import { __resetStyles as __resetStyles$1 } from '@griffel/core';
2
+ import { useRenderer } from './RendererContext.esm.js';
3
+ import { useTextDirection } from './TextDirectionContext.esm.js';
4
+
5
+ /**
6
+ * A version of makeResetStyles() that accepts build output as an input and skips all runtime transforms.
7
+ *
8
+ * @internal
9
+ */
10
+ // eslint-disable-next-line @typescript-eslint/naming-convention
11
+
12
+ function __resetStyles(ltrClassName, rtlClassName, cssRules) {
13
+ const getStyles = __resetStyles$1(ltrClassName, rtlClassName, cssRules);
14
+ return function useClasses() {
15
+ const dir = useTextDirection();
16
+ const renderer = useRenderer();
17
+ return getStyles({
18
+ dir,
19
+ renderer
20
+ });
21
+ };
22
+ }
23
+
24
+ export { __resetStyles };
25
+ //# sourceMappingURL=__resetStyles.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"__resetStyles.esm.js","sources":["../../../packages/react/src/__resetStyles.ts"],"sourcesContent":["import { __resetStyles as vanillaResetStyles } from '@griffel/core';\n\nimport { useRenderer } from './RendererContext';\nimport { useTextDirection } from './TextDirectionContext';\n\n/**\n * A version of makeResetStyles() that accepts build output as an input and skips all runtime transforms.\n *\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function __resetStyles(ltrClassName: string, rtlClassName: string | null, cssRules: string[]) {\n const getStyles = vanillaResetStyles(ltrClassName, rtlClassName, cssRules);\n\n return function useClasses(): string {\n const dir = useTextDirection();\n const renderer = useRenderer();\n\n return getStyles({ dir, renderer });\n };\n}\n"],"names":["__resetStyles","ltrClassName","rtlClassName","cssRules","getStyles","vanillaResetStyles","useClasses","dir","useTextDirection","renderer","useRenderer"],"mappings":";;;;AAKA;;;;;AAKA;;SACgBA,cAAcC,cAAsBC,cAA6BC;EAC/E,MAAMC,SAAS,GAAGC,eAAkB,CAACJ,YAAD,EAAeC,YAAf,EAA6BC,QAA7B,CAApC;EAEA,OAAO,SAASG,UAAT;IACL,MAAMC,GAAG,GAAGC,gBAAgB,EAA5B;IACA,MAAMC,QAAQ,GAAGC,WAAW,EAA5B;IAEA,OAAON,SAAS,CAAC;MAAEG,GAAF;MAAOE;KAAR,CAAhB;GAJF;AAMD;;;;"}
package/index.cjs.js CHANGED
@@ -11,6 +11,7 @@ var RendererContext = require('./RendererContext.cjs.js');
11
11
  var TextDirectionContext = require('./TextDirectionContext.cjs.js');
12
12
  var __css = require('./__css.cjs.js');
13
13
  var __styles = require('./__styles.cjs.js');
14
+ var __resetStyles = require('./__resetStyles.cjs.js');
14
15
 
15
16
 
16
17
 
@@ -35,4 +36,5 @@ exports.useRenderer_unstable = RendererContext.useRenderer;
35
36
  exports.TextDirectionProvider = TextDirectionContext.TextDirectionProvider;
36
37
  exports.__css = __css.__css;
37
38
  exports.__styles = __styles.__styles;
39
+ exports.__resetStyles = __resetStyles.__resetStyles;
38
40
  //# sourceMappingURL=index.cjs.js.map
package/index.cjs.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/index.d.ts CHANGED
@@ -8,3 +8,4 @@ export { RendererProvider, useRenderer as useRenderer_unstable } from './Rendere
8
8
  export { TextDirectionProvider } from './TextDirectionContext';
9
9
  export { __css } from './__css';
10
10
  export { __styles } from './__styles';
11
+ export { __resetStyles } from './__resetStyles';
package/index.esm.js CHANGED
@@ -7,4 +7,5 @@ export { RendererProvider, useRenderer as useRenderer_unstable } from './Rendere
7
7
  export { TextDirectionProvider } from './TextDirectionContext.esm.js';
8
8
  export { __css } from './__css.esm.js';
9
9
  export { __styles } from './__styles.esm.js';
10
+ export { __resetStyles } from './__resetStyles.esm.js';
10
11
  //# sourceMappingURL=index.esm.js.map
package/index.esm.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@griffel/react",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "React implementation of Atomic CSS-in-JS",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "sideEffects": false,
11
11
  "dependencies": {
12
- "@griffel/core": "^1.7.0",
12
+ "@griffel/core": "^1.8.0",
13
13
  "tslib": "^2.1.0"
14
14
  },
15
15
  "peerDependencies": {