Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial cssProps feature #389

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f5b68d6
Initial cssProps feature
B-Teague Nov 10, 2021
3a924ed
Merge branch 'master' into cssProps
cristianbote Nov 22, 2021
ab3d317
Merge branch 'master' into cssProps
cristianbote Nov 22, 2021
bc7095a
Add mustache templates and regen
B-Teague Nov 28, 2021
c0a797c
Finish creating mustache templates
B-Teague Nov 28, 2021
02a3f69
Merge branch 'cristianbote:master' into cssProps
B-Teague Nov 28, 2021
2e9d0d6
Merge branch 'cssProps' of github.com:B-Teague/goober into cssProps
B-Teague Nov 28, 2021
ec5c294
Create dedicated syntax files
B-Teague Dec 9, 2021
58e67fe
Merge branch 'master' into cssProps
cristianbote Dec 10, 2021
14158a6
creating peggy css syntax parser
B-Teague Dec 11, 2021
987bba5
Merge branch 'cssProps' of github.com:B-Teague/goober into cssProps
B-Teague Dec 11, 2021
2347192
Merge branch 'master' into cssProps
cristianbote Jan 14, 2022
8888225
Updated template generators
B-Teague Feb 2, 2023
b656ee4
Merge branch 'cristianbote:master' into cssProps
B-Teague Feb 2, 2023
9127d2f
Reformat mdn data
B-Teague Feb 4, 2023
e435719
Updating template generators with using cssMdnData
B-Teague Feb 9, 2023
cd26ce4
Update template generators with simpler syntax using cssMsnData
B-Teague Feb 9, 2023
8c1eb88
delete tests
B-Teague Feb 10, 2023
7ca4a9d
generators and templates
B-Teague Feb 10, 2023
8acd2a2
updated indices
B-Teague Feb 10, 2023
fdd8454
updated indices
B-Teague Feb 10, 2023
f6fb511
updated indices
B-Teague Feb 10, 2023
413ac09
Merge branch 'cristianbote:master' into cssProps
B-Teague Feb 10, 2023
c2f95fd
Generate README
B-Teague Feb 10, 2023
6092ff2
Finish units
B-Teague Feb 10, 2023
b395825
Remove jsdocs
B-Teague Feb 11, 2023
d8b2735
Remove jsdocs
B-Teague Feb 11, 2023
f23d677
Remove jsdocs
B-Teague Feb 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Next Next commit
Initial cssProps feature
  • Loading branch information
B-Teague committed Nov 13, 2021
commit f5b68d67ebb72382e887afbecc8b4b1afeb64b2d
20 changes: 20 additions & 0 deletions cssProps/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
plugins: [
[
'@babel/plugin-transform-react-jsx',
{
pragma: 'h'
}
]
],
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current'
}
}
]
]
};
25 changes: 25 additions & 0 deletions cssProps/cssProps.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { Properties as CSSProperties } from 'csstype';
import { Theme, DefaultTheme } from 'goober';

export = gooberGlobal;

export as namespace gooberGlobal;

declare namespace gooberGlobal {
interface CSSAttribute extends CSSProperties {
[key: string]: CSSAttribute | string | number | undefined;
}

function createGlobalStyles(
tag: CSSAttribute | TemplateStringsArray | string,
...props: Array<
| string
| number
| ((props: Theme<DefaultTheme>) => CSSAttribute | string | number | false | undefined)
>
): Function;
function glob(
tag: CSSAttribute | TemplateStringsArray | string,
...props: Array<string | number>
): void;
}
Loading