-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
480aba5
commit 8fb9de8
Showing
125 changed files
with
2,161 additions
and
2,715 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
change/@griffel-babel-preset-b40a43d0-1b08-4469-8ac1-c1d56a93523d.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "major", | ||
"comment": "BREAKING: migrate to to wyw-in-js", | ||
"packageName": "@griffel/babel-preset", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@griffel-linaria-processor-b20f4e52-7e3f-4efc-ac1d-6157f9fb99ee.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "major", | ||
"comment": "chore: initial release", | ||
"packageName": "@griffel/tag-processor", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@griffel-react-0d6fd156-25c5-453b-a0d6-633a6c4adcb8.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "chore: add meta to package.json for @griffel/tag-processor", | ||
"packageName": "@griffel/react", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@griffel-webpack-loader-294e1c0f-f12b-4129-b5dc-27cdebd726d0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "major", | ||
"comment": "BREAKING: migrate to to wyw-in-js", | ||
"packageName": "@griffel/webpack-loader", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
packages/babel-preset/__fixtures__/assets-multiple-declarations/output.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import { __styles as _styles } from '@griffel/react'; | ||
import _asset2 from './empty.jpg'; | ||
import _asset from './blank.jpg'; | ||
import { __styles } from '@griffel/react'; | ||
import blank from './blank.jpg'; | ||
import empty from './empty.jpg'; | ||
export const useStyles = __styles( | ||
export const useStyles = /*#__PURE__*/ _styles( | ||
{ | ||
root: { | ||
Bcmaq0h: 'fp00rh9', | ||
Bcmaq0h: 'f1surbjy', | ||
}, | ||
}, | ||
{ | ||
d: [`.fp00rh9{background-image:url(${_asset}),url(${_asset2});}`], | ||
d: [`.f1surbjy{background-image:url(${_asset}),url(${_asset2});}`], | ||
}, | ||
); |
16 changes: 7 additions & 9 deletions
16
packages/babel-preset/__fixtures__/assets-reset-styles/output.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
import _asset2 from './empty.jpg'; | ||
import { __resetStyles as _resetStyles } from '@griffel/react'; | ||
import _asset3 from './empty.jpg'; | ||
import _asset2 from './blank.jpg'; | ||
import _asset from './blank.jpg'; | ||
import { __resetStyles } from '@griffel/react'; | ||
import blank from './blank.jpg'; | ||
import blankDuplicate from './blank.jpg'; | ||
import empty from './empty.jpg'; | ||
export const useStyles = __resetStyles('ra9m047', null, [ | ||
`.ra9m047{background-image:url(${_asset});}`, | ||
`.ra9m047:hover{background-image:url(${_asset});}`, | ||
`.ra9m047:focus{background-image:url(${_asset2});}`, | ||
export const useStyles = /*#__PURE__*/ _resetStyles('rzkd6zb', null, [ | ||
`.rzkd6zb{background-image:url(${_asset});}`, | ||
`.rzkd6zb:hover{background-image:url(${_asset2});}`, | ||
`.rzkd6zb:focus{background-image:url(${_asset3});}`, | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,26 @@ | ||
import _asset3 from './a.svg'; | ||
import { __styles as _styles } from '@griffel/react'; | ||
import _asset2 from './empty.jpg'; | ||
import _asset from './blank.jpg'; | ||
import { __styles } from '@griffel/react'; | ||
import blank from './blank.jpg'; | ||
import blankDuplicate from './blank.jpg'; | ||
import empty from './empty.jpg'; | ||
export const useStyles = __styles( | ||
export const useStyles = /*#__PURE__*/ _styles( | ||
{ | ||
rootA: { | ||
Bcmaq0h: 'fnwsaxv', | ||
Bcmaq0h: 'f1lg9ji5', | ||
}, | ||
rootB: { | ||
Bcmaq0h: 'fnwsaxv', | ||
Bcmaq0h: 'f1lg9ji5', | ||
}, | ||
rootC: { | ||
Bcmaq0h: 'f1ryfumh', | ||
Bcmaq0h: 'feire57', | ||
}, | ||
assetWithHash: { | ||
Bhu2qc9: 'fv04sme', | ||
Bhu2qc9: 'f12vvth1', | ||
}, | ||
}, | ||
{ | ||
d: [ | ||
`.fnwsaxv{background-image:url(${_asset});}`, | ||
`.f1ryfumh{background-image:url(${_asset2});}`, | ||
`.fv04sme{filter:url(${_asset3}#a);}`, | ||
`.f1lg9ji5{background-image:url(${_asset});}`, | ||
`.feire57{background-image:url(${_asset2});}`, | ||
`.f12vvth1{filter:url(./a.svg#a);}`, | ||
], | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 2 additions & 10 deletions
12
packages/babel-preset/__fixtures__/config-babel-options/output.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
packages/babel-preset/__fixtures__/config-evaluation-rules/output.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 13 additions & 6 deletions
19
packages/babel-preset/__fixtures__/config-evaluation-rules/sampleEvaluator.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
// @ts-check | ||
|
||
/** @type {import("@linaria/babel-preset").Evaluator} */ | ||
const sampleEvaluator = () => { | ||
// Evaluators transform input code to something that will be evaluated by Node later. In evaluatePathsInVM() we expect | ||
// that results will be available as "exports.__mkPreval", this evaluator mocks it | ||
const result = `exports.__mkPreval = [{ root: { color: 'blue' } }]`; | ||
/** @type {import("@linaria/utils").Evaluator} */ | ||
const sampleEvaluator = (babelOptions, ast) => { | ||
// Evaluators transform input code to something that will be evaluated by Node | ||
// later. Linaria expects that results will be available as | ||
// "exports.__linariaPreval", this evaluator mocks it | ||
const result = ` | ||
exports.__linariaPreval = { | ||
_exp: () => ({ | ||
root: { color: 'blue' } | ||
}) | ||
}; | ||
`; | ||
|
||
return [result, null]; | ||
return [ast, result, null]; | ||
}; | ||
|
||
module.exports.default = sampleEvaluator; |
10 changes: 4 additions & 6 deletions
10
packages/babel-preset/__fixtures__/duplicated-imports/code.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
// @ts-expect-error This module does not exist, but will be resolved via aliases | ||
import { createStylesA } from 'custom-package'; | ||
// @ts-expect-error This module does not exist, but will be resolved via aliases | ||
import { createStylesB } from 'custom-package'; | ||
import { makeStyles as makeStylesA } from '@griffel/react'; | ||
import { makeStyles as makeStylesB } from '@griffel/react'; | ||
|
||
export const useClassesA = createStylesA({ | ||
export const useClassesA = makeStylesA({ | ||
root: { color: 'red' }, | ||
}); | ||
|
||
export const useClassesB = createStylesB({ | ||
export const useClassesB = makeStylesB({ | ||
root: { color: 'yellow' }, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.