@griffel/react 1.7.0 → 1.7.2

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
@@ -79,6 +79,10 @@ const useClasses = makeStyles({
79
79
  '@container foo (max-width: 992px)': { color: 'orange' },
80
80
  '@supports (display: grid)': { color: 'red' },
81
81
  '@layer utility': { marginBottom: '1em' },
82
+ '@scope to (.boundary)': {
83
+ ':hover': { color: 'cyan' },
84
+ '& p': { color: 'red' },
85
+ },
82
86
  },
83
87
  });
84
88
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@griffel/react",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "description": "React implementation of Atomic CSS-in-JS",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -27,7 +27,7 @@
27
27
  }
28
28
  },
29
29
  "dependencies": {
30
- "@griffel/core": "^1.20.2",
30
+ "@griffel/core": "^1.21.0",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
33
  "peerDependencies": {
package/src/__css.d.ts CHANGED
@@ -1 +1,7 @@
1
- export {};
1
+ import type { CSSClassesMapBySlot } from '@griffel/core';
2
+ /**
3
+ * A version of makeStyles() that accepts build output as an input and skips all runtime transforms & DOM insertion.
4
+ *
5
+ * @private
6
+ */
7
+ export declare function __css<Slots extends string>(classesMapBySlot: CSSClassesMapBySlot<Slots>): () => Record<Slots, string>;
package/src/__css.js CHANGED
@@ -4,7 +4,7 @@ import { useTextDirection } from './TextDirectionContext.js';
4
4
  /**
5
5
  * A version of makeStyles() that accepts build output as an input and skips all runtime transforms & DOM insertion.
6
6
  *
7
- * @internal
7
+ * @private
8
8
  */
9
9
  // eslint-disable-next-line @typescript-eslint/naming-convention
10
10
  export function __css(classesMapBySlot) {
@@ -1 +1,6 @@
1
- export {};
1
+ /**
2
+ * A version of makeResetStyles() that accepts build output as an input and skips all runtime transforms & DOM insertion.
3
+ *
4
+ * @private
5
+ */
6
+ export declare function __resetCSS(ltrClassName: string, rtlClassName: string | null): () => string;
package/src/__resetCSS.js CHANGED
@@ -4,7 +4,7 @@ import { useTextDirection } from './TextDirectionContext.js';
4
4
  /**
5
5
  * A version of makeResetStyles() that accepts build output as an input and skips all runtime transforms & DOM insertion.
6
6
  *
7
- * @internal
7
+ * @private
8
8
  */
9
9
  // eslint-disable-next-line @typescript-eslint/naming-convention
10
10
  export function __resetCSS(ltrClassName, rtlClassName) {
@@ -1 +1,7 @@
1
- export {};
1
+ import type { CSSRulesByBucket } from '@griffel/core';
2
+ /**
3
+ * A version of makeResetStyles() that accepts build output as an input and skips all runtime transforms.
4
+ *
5
+ * @private
6
+ */
7
+ export declare function __resetStyles(ltrClassName: string, rtlClassName: string | null, cssRules: CSSRulesByBucket | string[]): () => string;
@@ -6,7 +6,7 @@ import { useTextDirection } from './TextDirectionContext.js';
6
6
  /**
7
7
  * A version of makeResetStyles() that accepts build output as an input and skips all runtime transforms.
8
8
  *
9
- * @internal
9
+ * @private
10
10
  */
11
11
  // eslint-disable-next-line @typescript-eslint/naming-convention
12
12
  export function __resetStyles(ltrClassName, rtlClassName, cssRules) {
@@ -1 +1,6 @@
1
- export {};
1
+ /**
2
+ * A version of makeStaticStyles() that accepts build output as an input and skips all runtime transforms & DOM insertion.
3
+ *
4
+ * @private
5
+ */
6
+ export declare function __staticCSS(): () => void;
@@ -3,7 +3,7 @@ import { __staticCSS as vanillaStaticCSS } from '@griffel/core';
3
3
  /**
4
4
  * A version of makeStaticStyles() that accepts build output as an input and skips all runtime transforms & DOM insertion.
5
5
  *
6
- * @internal
6
+ * @private
7
7
  */
8
8
  // eslint-disable-next-line @typescript-eslint/naming-convention
9
9
  export function __staticCSS() {
@@ -1 +1,7 @@
1
- export {};
1
+ import type { CSSRulesByBucket } from '@griffel/core';
2
+ /**
3
+ * A version of makeStaticStyles() that accepts build output as an input and skips all runtime transforms.
4
+ *
5
+ * @private
6
+ */
7
+ export declare function __staticStyles(cssRules: CSSRulesByBucket): () => void;
@@ -5,7 +5,7 @@ import { useRenderer } from './RendererContext.js';
5
5
  /**
6
6
  * A version of makeStaticStyles() that accepts build output as an input and skips all runtime transforms.
7
7
  *
8
- * @internal
8
+ * @private
9
9
  */
10
10
  // eslint-disable-next-line @typescript-eslint/naming-convention
11
11
  export function __staticStyles(cssRules) {
package/src/__styles.d.ts CHANGED
@@ -1 +1,7 @@
1
- export {};
1
+ import type { CSSClassesMapBySlot, CSSRulesByBucket } from '@griffel/core';
2
+ /**
3
+ * A version of makeStyles() that accepts build output as an input and skips all runtime transforms.
4
+ *
5
+ * @private
6
+ */
7
+ export declare function __styles<Slots extends string>(classesMapBySlot: CSSClassesMapBySlot<Slots>, cssRules: CSSRulesByBucket): () => Record<Slots, string>;
package/src/__styles.js CHANGED
@@ -6,7 +6,7 @@ import { useTextDirection } from './TextDirectionContext.js';
6
6
  /**
7
7
  * A version of makeStyles() that accepts build output as an input and skips all runtime transforms.
8
8
  *
9
- * @internal
9
+ * @private
10
10
  */
11
11
  // eslint-disable-next-line @typescript-eslint/naming-convention
12
12
  export function __styles(classesMapBySlot, cssRules) {