Skip to content

Commit eb70c90

Browse files
committed
Update snapshot
1 parent f0dec4d commit eb70c90

17 files changed

+1528
-0
lines changed

libs/extractor/src/lib.rs

Lines changed: 498 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
source: libs/extractor/src/lib.rs
3+
expression: "ToBTreeSet::from(extract(\"test.tsx\",\nr#\"import { css } from \"@devup-ui/core\";\n<div className={css({\n \"@container\": {\n \"(min-width: 500px)\": {\n background: \"blue\"\n }\n }\n})} />;\n\"#,\nExtractOption\n{\n package: \"@devup-ui/core\".to_string(), css_dir:\n \"@devup-ui/core\".to_string(), single_css: true, import_main_css: false\n}).unwrap())"
4+
---
5+
ToBTreeSet {
6+
styles: {
7+
Static(
8+
ExtractStaticStyle {
9+
property: "background",
10+
value: "blue",
11+
level: 0,
12+
selector: Some(
13+
At {
14+
kind: Container,
15+
query: "(min-width: 500px)",
16+
selector: None,
17+
},
18+
),
19+
style_order: None,
20+
layer: None,
21+
},
22+
),
23+
},
24+
code: "import \"@devup-ui/core/devup-ui.css\";\n<div className={\"a\"} />;\n",
25+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
source: libs/extractor/src/lib.rs
3+
expression: "ToBTreeSet::from(extract(\"test.tsx\",\nr#\"import { css } from \"@devup-ui/core\";\n<div className={css({\n _container: {\n \"(min-width: 400px)\": {\n display: \"flex\"\n }\n }\n})} />;\n\"#,\nExtractOption\n{\n package: \"@devup-ui/core\".to_string(), css_dir:\n \"@devup-ui/core\".to_string(), single_css: true, import_main_css: false\n}).unwrap())"
4+
---
5+
ToBTreeSet {
6+
styles: {
7+
Static(
8+
ExtractStaticStyle {
9+
property: "display",
10+
value: "flex",
11+
level: 0,
12+
selector: Some(
13+
At {
14+
kind: Container,
15+
query: "(min-width: 400px)",
16+
selector: None,
17+
},
18+
),
19+
style_order: None,
20+
layer: None,
21+
},
22+
),
23+
},
24+
code: "import \"@devup-ui/core/devup-ui.css\";\n<div className={\"a\"} />;\n",
25+
}
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
---
2+
source: libs/extractor/src/lib.rs
3+
expression: "ToBTreeSet::from(extract(\"all-imports.css.ts\",\nr#\"import { style, globalStyle, keyframes, createTheme } from '@devup-ui/react'\nexport const [theme, vars] = createTheme({\n color: { primary: 'blue' }\n})\nexport const fadeIn = keyframes({\n from: { opacity: 0 },\n to: { opacity: 1 }\n})\nglobalStyle('body', {\n margin: 0\n})\nexport const box = style({\n animation: 'fadeIn 1s'\n})\n\"#,\nExtractOption\n{\n package: \"@devup-ui/react\".to_string(), css_dir:\n \"@devup-ui/react\".to_string(), single_css: true, import_main_css: false\n}).unwrap())"
4+
---
5+
ToBTreeSet {
6+
styles: {
7+
Static(
8+
ExtractStaticStyle {
9+
property: "--color-primary-style_0-0",
10+
value: "blue",
11+
level: 0,
12+
selector: Some(
13+
Global(
14+
".f0_theme",
15+
"all-imports.css.ts",
16+
),
17+
),
18+
style_order: Some(
19+
0,
20+
),
21+
layer: None,
22+
},
23+
),
24+
Static(
25+
ExtractStaticStyle {
26+
property: "animation",
27+
value: "fadeIn 1s",
28+
level: 0,
29+
selector: None,
30+
style_order: None,
31+
layer: None,
32+
},
33+
),
34+
Static(
35+
ExtractStaticStyle {
36+
property: "margin",
37+
value: "0",
38+
level: 0,
39+
selector: Some(
40+
Global(
41+
"body",
42+
"all-imports.css.ts",
43+
),
44+
),
45+
style_order: Some(
46+
0,
47+
),
48+
layer: None,
49+
},
50+
),
51+
Keyframes(
52+
ExtractKeyframes {
53+
keyframes: {
54+
"from": [
55+
ExtractStaticStyle {
56+
property: "opacity",
57+
value: "0",
58+
level: 0,
59+
selector: None,
60+
style_order: None,
61+
layer: None,
62+
},
63+
],
64+
"to": [
65+
ExtractStaticStyle {
66+
property: "opacity",
67+
value: "1",
68+
level: 0,
69+
selector: None,
70+
style_order: None,
71+
layer: None,
72+
},
73+
],
74+
},
75+
},
76+
),
77+
},
78+
code: "import \"@devup-ui/react/devup-ui.css\";\nexport const box = \"a\";\nexport const [theme, vars] = [\"f0_theme\", { \"color\": { \"primary\": \"var(--color-primary-style_0-0)\" } }];\n;\n;\nexport const fadeIn = \"b\";\n",
79+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
source: libs/extractor/src/lib.rs
3+
expression: "ToBTreeSet::from(extract(\"constants.css.ts\",\nr#\"import { style } from '@devup-ui/react'\nexport const SPACING = 8;\nexport const COLORS = { primary: 'blue', secondary: 'green' };\nexport const box = style({ padding: SPACING })\n\"#,\nExtractOption\n{\n package: \"@devup-ui/react\".to_string(), css_dir:\n \"@devup-ui/react\".to_string(), single_css: true, import_main_css: false\n}).unwrap())"
4+
---
5+
ToBTreeSet {
6+
styles: {
7+
Static(
8+
ExtractStaticStyle {
9+
property: "padding",
10+
value: "32px",
11+
level: 0,
12+
selector: None,
13+
style_order: None,
14+
layer: None,
15+
},
16+
),
17+
},
18+
code: "import \"@devup-ui/react/devup-ui.css\";\nexport const box = \"a\";\nexport const COLORS = {\n\tprimary: \"blue\",\n\tsecondary: \"green\"\n};\nexport const SPACING = 8;\n",
19+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
source: libs/extractor/src/lib.rs
3+
expression: "ToBTreeSet::from(extract(\"font-usage.css.ts\",\nr#\"import { fontFace, style } from '@devup-ui/react'\nexport const myFont = fontFace({\n src: 'local(\"Comic Sans MS\")',\n fontWeight: 400\n})\nexport const text = style({\n fontFamily: myFont\n})\n\"#,\nExtractOption\n{\n package: \"@devup-ui/react\".to_string(), css_dir:\n \"@devup-ui/react\".to_string(), single_css: true, import_main_css: false\n}).unwrap())"
4+
---
5+
ToBTreeSet {
6+
styles: {
7+
Static(
8+
ExtractStaticStyle {
9+
property: "font-family",
10+
value: "__devup_font_0_0",
11+
level: 0,
12+
selector: None,
13+
style_order: None,
14+
layer: None,
15+
},
16+
),
17+
FontFace(
18+
ExtractFontFace {
19+
file: "font-usage.css.ts",
20+
properties: {
21+
"font-family": "__devup_font_0_0",
22+
"font-weight": "400",
23+
"src": "local(\"Comic Sans MS\")",
24+
},
25+
},
26+
),
27+
},
28+
code: "import \"@devup-ui/react/devup-ui.css\";\nexport const text = \"a\";\n;\nexport const myFont = \"__devup_font_0_0\";\n",
29+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
source: libs/extractor/src/lib.rs
3+
expression: "ToBTreeSet::from(extract(\"global-theme-empty.css.ts\",\nr#\"import { createGlobalTheme, style } from '@devup-ui/react'\nexport const emptyVars = createGlobalTheme(':root', {})\nexport const box = style({ padding: 8 })\n\"#,\nExtractOption\n{\n package: \"@devup-ui/react\".to_string(), css_dir:\n \"@devup-ui/react\".to_string(), single_css: true, import_main_css: false\n}).unwrap())"
4+
---
5+
ToBTreeSet {
6+
styles: {
7+
Static(
8+
ExtractStaticStyle {
9+
property: "padding",
10+
value: "32px",
11+
level: 0,
12+
selector: None,
13+
style_order: None,
14+
layer: None,
15+
},
16+
),
17+
},
18+
code: "import \"@devup-ui/react/devup-ui.css\";\nexport const box = \"a\";\nexport const emptyVars = {};\n",
19+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
source: libs/extractor/src/lib.rs
3+
expression: "ToBTreeSet::from(extract(\"layer-container.css.ts\",\nr#\"import { layer, createContainer, style } from '@devup-ui/react'\nexport const resetLayer = layer('reset')\nexport const baseLayer = layer('base')\nexport const myContainer = createContainer()\nexport const containerStyle = style({\n containerName: myContainer,\n containerType: 'inline-size'\n})\n\"#,\nExtractOption\n{\n package: \"@devup-ui/react\".to_string(), css_dir:\n \"@devup-ui/react\".to_string(), single_css: true, import_main_css: false\n}).unwrap())"
4+
---
5+
ToBTreeSet {
6+
styles: {
7+
Static(
8+
ExtractStaticStyle {
9+
property: "container-name",
10+
value: "__container_0__",
11+
level: 0,
12+
selector: None,
13+
style_order: None,
14+
layer: None,
15+
},
16+
),
17+
Static(
18+
ExtractStaticStyle {
19+
property: "container-type",
20+
value: "inline-size",
21+
level: 0,
22+
selector: None,
23+
style_order: None,
24+
layer: None,
25+
},
26+
),
27+
},
28+
code: "import \"@devup-ui/react/devup-ui.css\";\nexport const containerStyle = \"a b\";\nexport const myContainer = \"__container_0__\";\nexport const baseLayer = \"base\";\nexport const resetLayer = \"reset\";\n",
29+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
source: libs/extractor/src/lib.rs
3+
expression: "ToBTreeSet::from(extract(\"mixed-exports.css.ts\",\nr#\"import { style, keyframes, createVar, createContainer, layer } from '@devup-ui/react'\nconst internalStyle = style({ padding: 4 })\nconst internalKeyframe = keyframes({ from: { opacity: 0 }, to: { opacity: 1 } })\nconst internalVar = createVar()\nconst internalContainer = createContainer()\nconst internalLayer = layer('internal')\nexport const publicStyle = style({ margin: 8 })\n\"#,\nExtractOption\n{\n package: \"@devup-ui/react\".to_string(), css_dir:\n \"@devup-ui/react\".to_string(), single_css: true, import_main_css: false\n}).unwrap())"
4+
---
5+
ToBTreeSet {
6+
styles: {
7+
Static(
8+
ExtractStaticStyle {
9+
property: "margin",
10+
value: "32px",
11+
level: 0,
12+
selector: None,
13+
style_order: None,
14+
layer: None,
15+
},
16+
),
17+
Static(
18+
ExtractStaticStyle {
19+
property: "padding",
20+
value: "16px",
21+
level: 0,
22+
selector: None,
23+
style_order: None,
24+
layer: None,
25+
},
26+
),
27+
Keyframes(
28+
ExtractKeyframes {
29+
keyframes: {
30+
"from": [
31+
ExtractStaticStyle {
32+
property: "opacity",
33+
value: "0",
34+
level: 0,
35+
selector: None,
36+
style_order: None,
37+
layer: None,
38+
},
39+
],
40+
"to": [
41+
ExtractStaticStyle {
42+
property: "opacity",
43+
value: "1",
44+
level: 0,
45+
selector: None,
46+
style_order: None,
47+
layer: None,
48+
},
49+
],
50+
},
51+
},
52+
),
53+
},
54+
code: "import \"@devup-ui/react/devup-ui.css\";\nconst internalStyle = \"a\";\nexport const publicStyle = \"b\";\nconst internalKeyframe = \"c\";\nconst internalVar = \"--var-0\";\nconst internalContainer = \"__container_0__\";\nconst internalLayer = \"internal\";\n",
55+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
source: libs/extractor/src/lib.rs
3+
expression: "ToBTreeSet::from(extract(\"internal-theme.css.ts\",\nr#\"import { createTheme, style } from '@devup-ui/react'\nconst [internalTheme, themeVars] = createTheme({\n colors: {\n bg: 'white',\n text: 'black'\n }\n})\nexport const themed = style({\n background: 'red'\n})\n\"#,\nExtractOption\n{\n package: \"@devup-ui/react\".to_string(), css_dir:\n \"@devup-ui/react\".to_string(), single_css: true, import_main_css: false\n}).unwrap())"
4+
---
5+
ToBTreeSet {
6+
styles: {
7+
Static(
8+
ExtractStaticStyle {
9+
property: "--colors-bg-style_0-0",
10+
value: "white",
11+
level: 0,
12+
selector: Some(
13+
Global(
14+
".f0_internalTheme",
15+
"internal-theme.css.ts",
16+
),
17+
),
18+
style_order: Some(
19+
0,
20+
),
21+
layer: None,
22+
},
23+
),
24+
Static(
25+
ExtractStaticStyle {
26+
property: "--colors-text-style_0-1",
27+
value: "black",
28+
level: 0,
29+
selector: Some(
30+
Global(
31+
".f0_internalTheme",
32+
"internal-theme.css.ts",
33+
),
34+
),
35+
style_order: Some(
36+
0,
37+
),
38+
layer: None,
39+
},
40+
),
41+
Static(
42+
ExtractStaticStyle {
43+
property: "background",
44+
value: "red",
45+
level: 0,
46+
selector: None,
47+
style_order: None,
48+
layer: None,
49+
},
50+
),
51+
},
52+
code: "import \"@devup-ui/react/devup-ui.css\";\nexport const themed = \"a\";\nconst [internalTheme, themeVars] = [\"f0_internalTheme\", { \"colors\": {\n\t\"bg\": \"var(--colors-bg-style_0-0)\",\n\t\"text\": \"var(--colors-text-style_0-1)\"\n} }];\n;\n",
53+
}

0 commit comments

Comments
 (0)