From b268cf7b96d96e189925eb707477e32970d8ece4 Mon Sep 17 00:00:00 2001 From: Andrea Moretti Date: Thu, 8 Apr 2021 18:14:26 +0200 Subject: [PATCH] hack: export var instead of const (#51) * hack: export var instead of const * bump version * update integration tests --- .../packages/atoms/colors/index.esm.js.snap | 290 +++++++++--------- .../deeply/nested/atom/index.esm.js.snap | 2 +- .../packages/atoms/for/index.esm.js.snap | 114 +++---- .../packages/atoms/global/index.esm.js.snap | 6 +- .../atoms/icss-import/index.esm.js.snap | 10 +- .../atoms/keyframes/index.esm.js.snap | 4 +- .../atoms/media-queries/index.esm.js.snap | 8 +- .../packages/atoms/nested/index.esm.js.snap | 26 +- .../atoms/preset-env/index.esm.js.snap | 4 +- .../atoms/pseudo-classes/index.esm.js.snap | 8 +- .../atoms/simple-class/index.esm.js.snap | 4 +- .../atoms/variables/index.esm.js.snap | 4 +- package.json | 2 +- src/action/generate-atom-esm.ts | 2 +- 14 files changed, 242 insertions(+), 242 deletions(-) diff --git a/integration-test/packages/atoms/colors/index.esm.js.snap b/integration-test/packages/atoms/colors/index.esm.js.snap index ea0c0cf..006225d 100644 --- a/integration-test/packages/atoms/colors/index.esm.js.snap +++ b/integration-test/packages/atoms/colors/index.esm.js.snap @@ -1,145 +1,145 @@ -export const transparent = "_7XVRfh"; -export const black = "_1RrCqF"; -export const white = "hKG3ag"; -export const transparent_hover = "_8o7AdB"; -export const black_hover = "DJ9tNH"; -export const white_hover = "pQ96hs"; -export const bg_transparent = "QFK-pd"; -export const bg_black = "vLhOdO"; -export const bg_white = "BB3914"; -export const bg_transparent_hover = "OW2t12"; -export const bg_black_hover = "p0K3V_"; -export const bg_white_hover = "u5CoHT"; -export const bg_transparent_active = "XMShGx"; -export const bg_black_active = "pYWOaW"; -export const bg_white_active = "YvQoMS"; -export const bd_transparent = "ccA3wc"; -export const bd_black = "_9OMGCZ"; -export const bd_white = "Y1sI0i"; -export const bd_transparent_hover = "DdLERB"; -export const bd_black_hover = "sSTi9U"; -export const bd_white_hover = "SrlG4o"; -export const bd_transparent_focus = "WrGzoU"; -export const bd_black_focus = "iSk3wh"; -export const bd_white_focus = "DiF_NF"; -export const transparent_mobile = "Rvp04b"; -export const black_mobile = "Lp5Coj"; -export const white_mobile = "HCs9Zk"; -export const transparent_hover_mobile = "MpFFe4"; -export const black_hover_mobile = "sWWlLj"; -export const white_hover_mobile = "o6Le8p"; -export const bg_transparent_mobile = "n9uP8O"; -export const bg_black_mobile = "JGmk2f"; -export const bg_white_mobile = "SrYDfc"; -export const bg_transparent_hover_mobile = "_3A_tYX"; -export const bg_black_hover_mobile = "EWb8dI"; -export const bg_white_hover_mobile = "ZNbZad"; -export const bg_transparent_active_mobile = "_09Y3xY"; -export const bg_black_active_mobile = "_0yvfVT"; -export const bg_white_active_mobile = "Nqx5Tu"; -export const bd_transparent_mobile = "Z7zfNt"; -export const bd_black_mobile = "l7cM29"; -export const bd_white_mobile = "W9KYDX"; -export const bd_transparent_hover_mobile = "itJNZE"; -export const bd_black_hover_mobile = "frDhwD"; -export const bd_white_hover_mobile = "_-3tIbX"; -export const bd_transparent_focus_mobile = "z2U-id"; -export const bd_black_focus_mobile = "_47a4aF"; -export const bd_white_focus_mobile = "VDNH3K"; -export const transparent_phablet = "ZG5UC9"; -export const black_phablet = "_G9XCO"; -export const white_phablet = "qP7xSn"; -export const transparent_hover_phablet = "_17TE5"; -export const black_hover_phablet = "f_hjdE"; -export const white_hover_phablet = "egCwcL"; -export const bg_transparent_phablet = "cT83fW"; -export const bg_black_phablet = "cTzk67"; -export const bg_white_phablet = "d87drd"; -export const bg_transparent_hover_phablet = "aR3Ubx"; -export const bg_black_hover_phablet = "OkiZx1"; -export const bg_white_hover_phablet = "KNhFJA"; -export const bg_transparent_active_phablet = "b_MwVS"; -export const bg_black_active_phablet = "PpdrMK"; -export const bg_white_active_phablet = "zi47D5"; -export const bd_transparent_phablet = "ZaHZcI"; -export const bd_black_phablet = "WZPKju"; -export const bd_white_phablet = "tFW0c4"; -export const bd_transparent_hover_phablet = "JS26Ed"; -export const bd_black_hover_phablet = "vjwfDZ"; -export const bd_white_hover_phablet = "PIMcZH"; -export const bd_transparent_focus_phablet = "Yy_yhi"; -export const bd_black_focus_phablet = "k2XnVf"; -export const bd_white_focus_phablet = "_2_NizD"; -export const transparent_tablet = "Aw2D45"; -export const black_tablet = "_4b92dm"; -export const white_tablet = "o8qdX5"; -export const transparent_hover_tablet = "VmcM14"; -export const black_hover_tablet = "_4pdGQt"; -export const white_hover_tablet = "_8MyiUe"; -export const bg_transparent_tablet = "_8eHx03"; -export const bg_black_tablet = "ltaYW3"; -export const bg_white_tablet = "BhFfzx"; -export const bg_transparent_hover_tablet = "rlsckE"; -export const bg_black_hover_tablet = "VtITcW"; -export const bg_white_hover_tablet = "MVQf1m"; -export const bg_transparent_active_tablet = "HV1jTO"; -export const bg_black_active_tablet = "x3vCBC"; -export const bg_white_active_tablet = "_8D7pd9"; -export const bd_transparent_tablet = "mwSZUD"; -export const bd_black_tablet = "_-9Btvy"; -export const bd_white_tablet = "yGe1Ir"; -export const bd_transparent_hover_tablet = "fXkby9"; -export const bd_black_hover_tablet = "gnRIud"; -export const bd_white_hover_tablet = "fFoYjL"; -export const bd_transparent_focus_tablet = "_9q2qP5"; -export const bd_black_focus_tablet = "_11iKz3"; -export const bd_white_focus_tablet = "HIkC1B"; -export const transparent_desktop = "PBhfKy"; -export const black_desktop = "CgYuy9"; -export const white_desktop = "HNuXy3"; -export const transparent_hover_desktop = "XhfU7x"; -export const black_hover_desktop = "K7oBMw"; -export const white_hover_desktop = "WumQPC"; -export const bg_transparent_desktop = "jZWNUM"; -export const bg_black_desktop = "Ya3qdL"; -export const bg_white_desktop = "nnqEoI"; -export const bg_transparent_hover_desktop = "ZyQBE3"; -export const bg_black_hover_desktop = "_3-idl1"; -export const bg_white_hover_desktop = "uUQ62H"; -export const bg_transparent_active_desktop = "AoVx-4"; -export const bg_black_active_desktop = "JFpWQB"; -export const bg_white_active_desktop = "eWCHpU"; -export const bd_transparent_desktop = "_8z2-Ts"; -export const bd_black_desktop = "p0zb6v"; -export const bd_white_desktop = "CaVPgM"; -export const bd_transparent_hover_desktop = "wz8Ybj"; -export const bd_black_hover_desktop = "yFX9Bt"; -export const bd_white_hover_desktop = "G_Ks9n"; -export const bd_transparent_focus_desktop = "MQxQG6"; -export const bd_black_focus_desktop = "j1NZTt"; -export const bd_white_focus_desktop = "qn6vfj"; -export const transparent_wideDesktop = "Y4hs5_"; -export const black_wideDesktop = "BEwYdP"; -export const white_wideDesktop = "oLHsDL"; -export const transparent_hover_wideDesktop = "Tv9kwZ"; -export const black_hover_wideDesktop = "_3Yc9VP"; -export const white_hover_wideDesktop = "QvUeTY"; -export const bg_transparent_wideDesktop = "gFn7y6"; -export const bg_black_wideDesktop = "_5_fipl"; -export const bg_white_wideDesktop = "VBoBXH"; -export const bg_transparent_hover_wideDesktop = "B2ZYP6"; -export const bg_black_hover_wideDesktop = "XSzgJm"; -export const bg_white_hover_wideDesktop = "GdsyI9"; -export const bg_transparent_active_wideDesktop = "sp6-_K"; -export const bg_black_active_wideDesktop = "m1dGmX"; -export const bg_white_active_wideDesktop = "F8ABi0"; -export const bd_transparent_wideDesktop = "ycqC89"; -export const bd_black_wideDesktop = "zwPMh8"; -export const bd_white_wideDesktop = "nHkSni"; -export const bd_transparent_hover_wideDesktop = "IJQNcS"; -export const bd_black_hover_wideDesktop = "vwenav"; -export const bd_white_hover_wideDesktop = "EDikIT"; -export const bd_transparent_focus_wideDesktop = "aqBpwF"; -export const bd_black_focus_wideDesktop = "u97qUL"; -export const bd_white_focus_wideDesktop = "zzHwgX"; -export const inverted = "inverted" \ No newline at end of file +export var transparent = "_7XVRfh"; +export var black = "_1RrCqF"; +export var white = "hKG3ag"; +export var transparent_hover = "_8o7AdB"; +export var black_hover = "DJ9tNH"; +export var white_hover = "pQ96hs"; +export var bg_transparent = "QFK-pd"; +export var bg_black = "vLhOdO"; +export var bg_white = "BB3914"; +export var bg_transparent_hover = "OW2t12"; +export var bg_black_hover = "p0K3V_"; +export var bg_white_hover = "u5CoHT"; +export var bg_transparent_active = "XMShGx"; +export var bg_black_active = "pYWOaW"; +export var bg_white_active = "YvQoMS"; +export var bd_transparent = "ccA3wc"; +export var bd_black = "_9OMGCZ"; +export var bd_white = "Y1sI0i"; +export var bd_transparent_hover = "DdLERB"; +export var bd_black_hover = "sSTi9U"; +export var bd_white_hover = "SrlG4o"; +export var bd_transparent_focus = "WrGzoU"; +export var bd_black_focus = "iSk3wh"; +export var bd_white_focus = "DiF_NF"; +export var transparent_mobile = "Rvp04b"; +export var black_mobile = "Lp5Coj"; +export var white_mobile = "HCs9Zk"; +export var transparent_hover_mobile = "MpFFe4"; +export var black_hover_mobile = "sWWlLj"; +export var white_hover_mobile = "o6Le8p"; +export var bg_transparent_mobile = "n9uP8O"; +export var bg_black_mobile = "JGmk2f"; +export var bg_white_mobile = "SrYDfc"; +export var bg_transparent_hover_mobile = "_3A_tYX"; +export var bg_black_hover_mobile = "EWb8dI"; +export var bg_white_hover_mobile = "ZNbZad"; +export var bg_transparent_active_mobile = "_09Y3xY"; +export var bg_black_active_mobile = "_0yvfVT"; +export var bg_white_active_mobile = "Nqx5Tu"; +export var bd_transparent_mobile = "Z7zfNt"; +export var bd_black_mobile = "l7cM29"; +export var bd_white_mobile = "W9KYDX"; +export var bd_transparent_hover_mobile = "itJNZE"; +export var bd_black_hover_mobile = "frDhwD"; +export var bd_white_hover_mobile = "_-3tIbX"; +export var bd_transparent_focus_mobile = "z2U-id"; +export var bd_black_focus_mobile = "_47a4aF"; +export var bd_white_focus_mobile = "VDNH3K"; +export var transparent_phablet = "ZG5UC9"; +export var black_phablet = "_G9XCO"; +export var white_phablet = "qP7xSn"; +export var transparent_hover_phablet = "_17TE5"; +export var black_hover_phablet = "f_hjdE"; +export var white_hover_phablet = "egCwcL"; +export var bg_transparent_phablet = "cT83fW"; +export var bg_black_phablet = "cTzk67"; +export var bg_white_phablet = "d87drd"; +export var bg_transparent_hover_phablet = "aR3Ubx"; +export var bg_black_hover_phablet = "OkiZx1"; +export var bg_white_hover_phablet = "KNhFJA"; +export var bg_transparent_active_phablet = "b_MwVS"; +export var bg_black_active_phablet = "PpdrMK"; +export var bg_white_active_phablet = "zi47D5"; +export var bd_transparent_phablet = "ZaHZcI"; +export var bd_black_phablet = "WZPKju"; +export var bd_white_phablet = "tFW0c4"; +export var bd_transparent_hover_phablet = "JS26Ed"; +export var bd_black_hover_phablet = "vjwfDZ"; +export var bd_white_hover_phablet = "PIMcZH"; +export var bd_transparent_focus_phablet = "Yy_yhi"; +export var bd_black_focus_phablet = "k2XnVf"; +export var bd_white_focus_phablet = "_2_NizD"; +export var transparent_tablet = "Aw2D45"; +export var black_tablet = "_4b92dm"; +export var white_tablet = "o8qdX5"; +export var transparent_hover_tablet = "VmcM14"; +export var black_hover_tablet = "_4pdGQt"; +export var white_hover_tablet = "_8MyiUe"; +export var bg_transparent_tablet = "_8eHx03"; +export var bg_black_tablet = "ltaYW3"; +export var bg_white_tablet = "BhFfzx"; +export var bg_transparent_hover_tablet = "rlsckE"; +export var bg_black_hover_tablet = "VtITcW"; +export var bg_white_hover_tablet = "MVQf1m"; +export var bg_transparent_active_tablet = "HV1jTO"; +export var bg_black_active_tablet = "x3vCBC"; +export var bg_white_active_tablet = "_8D7pd9"; +export var bd_transparent_tablet = "mwSZUD"; +export var bd_black_tablet = "_-9Btvy"; +export var bd_white_tablet = "yGe1Ir"; +export var bd_transparent_hover_tablet = "fXkby9"; +export var bd_black_hover_tablet = "gnRIud"; +export var bd_white_hover_tablet = "fFoYjL"; +export var bd_transparent_focus_tablet = "_9q2qP5"; +export var bd_black_focus_tablet = "_11iKz3"; +export var bd_white_focus_tablet = "HIkC1B"; +export var transparent_desktop = "PBhfKy"; +export var black_desktop = "CgYuy9"; +export var white_desktop = "HNuXy3"; +export var transparent_hover_desktop = "XhfU7x"; +export var black_hover_desktop = "K7oBMw"; +export var white_hover_desktop = "WumQPC"; +export var bg_transparent_desktop = "jZWNUM"; +export var bg_black_desktop = "Ya3qdL"; +export var bg_white_desktop = "nnqEoI"; +export var bg_transparent_hover_desktop = "ZyQBE3"; +export var bg_black_hover_desktop = "_3-idl1"; +export var bg_white_hover_desktop = "uUQ62H"; +export var bg_transparent_active_desktop = "AoVx-4"; +export var bg_black_active_desktop = "JFpWQB"; +export var bg_white_active_desktop = "eWCHpU"; +export var bd_transparent_desktop = "_8z2-Ts"; +export var bd_black_desktop = "p0zb6v"; +export var bd_white_desktop = "CaVPgM"; +export var bd_transparent_hover_desktop = "wz8Ybj"; +export var bd_black_hover_desktop = "yFX9Bt"; +export var bd_white_hover_desktop = "G_Ks9n"; +export var bd_transparent_focus_desktop = "MQxQG6"; +export var bd_black_focus_desktop = "j1NZTt"; +export var bd_white_focus_desktop = "qn6vfj"; +export var transparent_wideDesktop = "Y4hs5_"; +export var black_wideDesktop = "BEwYdP"; +export var white_wideDesktop = "oLHsDL"; +export var transparent_hover_wideDesktop = "Tv9kwZ"; +export var black_hover_wideDesktop = "_3Yc9VP"; +export var white_hover_wideDesktop = "QvUeTY"; +export var bg_transparent_wideDesktop = "gFn7y6"; +export var bg_black_wideDesktop = "_5_fipl"; +export var bg_white_wideDesktop = "VBoBXH"; +export var bg_transparent_hover_wideDesktop = "B2ZYP6"; +export var bg_black_hover_wideDesktop = "XSzgJm"; +export var bg_white_hover_wideDesktop = "GdsyI9"; +export var bg_transparent_active_wideDesktop = "sp6-_K"; +export var bg_black_active_wideDesktop = "m1dGmX"; +export var bg_white_active_wideDesktop = "F8ABi0"; +export var bd_transparent_wideDesktop = "ycqC89"; +export var bd_black_wideDesktop = "zwPMh8"; +export var bd_white_wideDesktop = "nHkSni"; +export var bd_transparent_hover_wideDesktop = "IJQNcS"; +export var bd_black_hover_wideDesktop = "vwenav"; +export var bd_white_hover_wideDesktop = "EDikIT"; +export var bd_transparent_focus_wideDesktop = "aqBpwF"; +export var bd_black_focus_wideDesktop = "u97qUL"; +export var bd_white_focus_wideDesktop = "zzHwgX"; +export var inverted = "inverted" \ No newline at end of file diff --git a/integration-test/packages/atoms/deeply/nested/atom/index.esm.js.snap b/integration-test/packages/atoms/deeply/nested/atom/index.esm.js.snap index 3fac349..9990760 100644 --- a/integration-test/packages/atoms/deeply/nested/atom/index.esm.js.snap +++ b/integration-test/packages/atoms/deeply/nested/atom/index.esm.js.snap @@ -1 +1 @@ -export const foo = "lQb_Er" \ No newline at end of file +export var foo = "lQb_Er" \ No newline at end of file diff --git a/integration-test/packages/atoms/for/index.esm.js.snap b/integration-test/packages/atoms/for/index.esm.js.snap index a1a92ba..96fd2f4 100644 --- a/integration-test/packages/atoms/for/index.esm.js.snap +++ b/integration-test/packages/atoms/for/index.esm.js.snap @@ -1,57 +1,57 @@ -export const foo_1 = "ZlJtcH"; -export const bar_1 = "ZXM7RA"; -export const foo_2 = "pUJQIY"; -export const bar_2 = "Z3doKH"; -export const foo_3 = "aGea0b"; -export const bar_3 = "t8cRql"; -export const size_1 = "oPlD0W"; -export const size_1_sibling = "NRaoKv"; -export const lineHeight_1 = "oi5tdf"; -export const lineHeight_1_sibling = "W1CcjX"; -export const size_2 = "FCG5GQ"; -export const size_2_sibling = "H9WShg"; -export const lineHeight_2 = "_7x3EPh"; -export const lineHeight_2_sibling = "WO37ya"; -export const size_3 = "d8yso7"; -export const size_3_sibling = "uGM3oi"; -export const lineHeight_3 = "_3Ft6ps"; -export const lineHeight_3_sibling = "NbUW8z"; -export const calc1 = "Y9lrZy"; -export const child_1_1 = "_8Urr0R"; -export const modifier_1_1 = "e2agTq"; -export const anotherChild_1_1 = "_5v4SSH"; -export const anotherModifier_1_1 = "iS88X_"; -export const child_1_2 = "vlAfUd"; -export const modifier_1_2 = "PgUB93"; -export const anotherChild_1_2 = "KjddK4"; -export const anotherModifier_1_2 = "GZomQK"; -export const child_1_3 = "utNk9X"; -export const modifier_1_3 = "bwOLNP"; -export const anotherChild_1_3 = "_5UlDUQ"; -export const anotherModifier_1_3 = "vA0LhQ"; -export const calc2 = "gPZ5T-"; -export const child_2_1 = "SnZr3u"; -export const modifier_2_1 = "tNdUvj"; -export const anotherChild_2_1 = "RTwpt_"; -export const anotherModifier_2_1 = "aiCnKv"; -export const child_2_2 = "bUAlDZ"; -export const modifier_2_2 = "lpuLLH"; -export const anotherChild_2_2 = "k5RQse"; -export const anotherModifier_2_2 = "CmX6W8"; -export const child_2_3 = "MdYjYw"; -export const modifier_2_3 = "YK_gQZ"; -export const anotherChild_2_3 = "_2W8BKO"; -export const anotherModifier_2_3 = "F3eX_U"; -export const calc3 = "_75_9PU"; -export const child_3_1 = "KCb6ES"; -export const modifier_3_1 = "_2PGpjA"; -export const anotherChild_3_1 = "Y66lQo"; -export const anotherModifier_3_1 = "sHxrAr"; -export const child_3_2 = "_4_kJbH"; -export const modifier_3_2 = "eCH6U5"; -export const anotherChild_3_2 = "cx5ofG"; -export const anotherModifier_3_2 = "iAQisI"; -export const child_3_3 = "LSjKrm"; -export const modifier_3_3 = "RYF8kF"; -export const anotherChild_3_3 = "XKZMXH"; -export const anotherModifier_3_3 = "Btd_L7" \ No newline at end of file +export var foo_1 = "ZlJtcH"; +export var bar_1 = "ZXM7RA"; +export var foo_2 = "pUJQIY"; +export var bar_2 = "Z3doKH"; +export var foo_3 = "aGea0b"; +export var bar_3 = "t8cRql"; +export var size_1 = "oPlD0W"; +export var size_1_sibling = "NRaoKv"; +export var lineHeight_1 = "oi5tdf"; +export var lineHeight_1_sibling = "W1CcjX"; +export var size_2 = "FCG5GQ"; +export var size_2_sibling = "H9WShg"; +export var lineHeight_2 = "_7x3EPh"; +export var lineHeight_2_sibling = "WO37ya"; +export var size_3 = "d8yso7"; +export var size_3_sibling = "uGM3oi"; +export var lineHeight_3 = "_3Ft6ps"; +export var lineHeight_3_sibling = "NbUW8z"; +export var calc1 = "Y9lrZy"; +export var child_1_1 = "_8Urr0R"; +export var modifier_1_1 = "e2agTq"; +export var anotherChild_1_1 = "_5v4SSH"; +export var anotherModifier_1_1 = "iS88X_"; +export var child_1_2 = "vlAfUd"; +export var modifier_1_2 = "PgUB93"; +export var anotherChild_1_2 = "KjddK4"; +export var anotherModifier_1_2 = "GZomQK"; +export var child_1_3 = "utNk9X"; +export var modifier_1_3 = "bwOLNP"; +export var anotherChild_1_3 = "_5UlDUQ"; +export var anotherModifier_1_3 = "vA0LhQ"; +export var calc2 = "gPZ5T-"; +export var child_2_1 = "SnZr3u"; +export var modifier_2_1 = "tNdUvj"; +export var anotherChild_2_1 = "RTwpt_"; +export var anotherModifier_2_1 = "aiCnKv"; +export var child_2_2 = "bUAlDZ"; +export var modifier_2_2 = "lpuLLH"; +export var anotherChild_2_2 = "k5RQse"; +export var anotherModifier_2_2 = "CmX6W8"; +export var child_2_3 = "MdYjYw"; +export var modifier_2_3 = "YK_gQZ"; +export var anotherChild_2_3 = "_2W8BKO"; +export var anotherModifier_2_3 = "F3eX_U"; +export var calc3 = "_75_9PU"; +export var child_3_1 = "KCb6ES"; +export var modifier_3_1 = "_2PGpjA"; +export var anotherChild_3_1 = "Y66lQo"; +export var anotherModifier_3_1 = "sHxrAr"; +export var child_3_2 = "_4_kJbH"; +export var modifier_3_2 = "eCH6U5"; +export var anotherChild_3_2 = "cx5ofG"; +export var anotherModifier_3_2 = "iAQisI"; +export var child_3_3 = "LSjKrm"; +export var modifier_3_3 = "RYF8kF"; +export var anotherChild_3_3 = "XKZMXH"; +export var anotherModifier_3_3 = "Btd_L7" \ No newline at end of file diff --git a/integration-test/packages/atoms/global/index.esm.js.snap b/integration-test/packages/atoms/global/index.esm.js.snap index 1a9745b..19c5bf3 100644 --- a/integration-test/packages/atoms/global/index.esm.js.snap +++ b/integration-test/packages/atoms/global/index.esm.js.snap @@ -1,3 +1,3 @@ -export const globalClass = "globalClass"; -export const child = "v5Vpzq"; -export const modifier = "ado0HJ" \ No newline at end of file +export var globalClass = "globalClass"; +export var child = "v5Vpzq"; +export var modifier = "ado0HJ" \ No newline at end of file diff --git a/integration-test/packages/atoms/icss-import/index.esm.js.snap b/integration-test/packages/atoms/icss-import/index.esm.js.snap index 740d95e..c654552 100644 --- a/integration-test/packages/atoms/icss-import/index.esm.js.snap +++ b/integration-test/packages/atoms/icss-import/index.esm.js.snap @@ -1,5 +1,5 @@ -export const localClass = "n4oS1I"; -export const localComposes = "i6EUck n4oS1I dgII7d"; -export const simpleComposes = ""; -export const complexComposes = "i6EUck n4oS1I dgII7d _1RrCqF pQ96hs"; -export const extend = "_8F86eH" \ No newline at end of file +export var localClass = "n4oS1I"; +export var localComposes = "i6EUck n4oS1I dgII7d"; +export var simpleComposes = ""; +export var complexComposes = "i6EUck n4oS1I dgII7d _1RrCqF pQ96hs"; +export var extend = "_8F86eH" \ No newline at end of file diff --git a/integration-test/packages/atoms/keyframes/index.esm.js.snap b/integration-test/packages/atoms/keyframes/index.esm.js.snap index 4df4a90..7f7a28e 100644 --- a/integration-test/packages/atoms/keyframes/index.esm.js.snap +++ b/integration-test/packages/atoms/keyframes/index.esm.js.snap @@ -1,2 +1,2 @@ -export const fadeIn = "_4bsdl"; -export const alias = "C0hAH1" \ No newline at end of file +export var fadeIn = "_4bsdl"; +export var alias = "C0hAH1" \ No newline at end of file diff --git a/integration-test/packages/atoms/media-queries/index.esm.js.snap b/integration-test/packages/atoms/media-queries/index.esm.js.snap index 6dbffbc..7b4ba74 100644 --- a/integration-test/packages/atoms/media-queries/index.esm.js.snap +++ b/integration-test/packages/atoms/media-queries/index.esm.js.snap @@ -1,4 +1,4 @@ -export const responsiveClass = "_1b2v1R"; -export const responsiveClassMixedOrder = "xXc9fo"; -export const responsiveElectrons = "Lp5Coj HNuXy3"; -export const responsiveElectronsWithCustomDelcaration = "_6gjVlf Lp5Coj HNuXy3" \ No newline at end of file +export var responsiveClass = "_1b2v1R"; +export var responsiveClassMixedOrder = "xXc9fo"; +export var responsiveElectrons = "Lp5Coj HNuXy3"; +export var responsiveElectronsWithCustomDelcaration = "_6gjVlf Lp5Coj HNuXy3" \ No newline at end of file diff --git a/integration-test/packages/atoms/nested/index.esm.js.snap b/integration-test/packages/atoms/nested/index.esm.js.snap index 9dd93f3..9a2ae00 100644 --- a/integration-test/packages/atoms/nested/index.esm.js.snap +++ b/integration-test/packages/atoms/nested/index.esm.js.snap @@ -1,13 +1,13 @@ -export const singleNesting = "mHJuMv"; -export const child = "qhqOPF"; -export const sibling = "B_oqE3"; -export const deepNesting = "_9q-zqg"; -export const grandchild = "oLzZ_N"; -export const classCombination = "nHROCZ"; -export const modifier = "YZP-Tu"; -export const complex = "HbTeo6"; -export const childModifier = "_6cCOB0"; -export const nested = "vruPji"; -export const nestedPseudo = "XPMGYZ"; -export const hoverChild = "QMsI4n"; -export const hoverChildModifier = "fc23Jo" \ No newline at end of file +export var singleNesting = "mHJuMv"; +export var child = "qhqOPF"; +export var sibling = "B_oqE3"; +export var deepNesting = "_9q-zqg"; +export var grandchild = "oLzZ_N"; +export var classCombination = "nHROCZ"; +export var modifier = "YZP-Tu"; +export var complex = "HbTeo6"; +export var childModifier = "_6cCOB0"; +export var nested = "vruPji"; +export var nestedPseudo = "XPMGYZ"; +export var hoverChild = "QMsI4n"; +export var hoverChildModifier = "fc23Jo" \ No newline at end of file diff --git a/integration-test/packages/atoms/preset-env/index.esm.js.snap b/integration-test/packages/atoms/preset-env/index.esm.js.snap index 2ba32d9..00f7755 100644 --- a/integration-test/packages/atoms/preset-env/index.esm.js.snap +++ b/integration-test/packages/atoms/preset-env/index.esm.js.snap @@ -1,2 +1,2 @@ -export const hero = "ZlgcWo"; -export const main = "uvJREe" \ No newline at end of file +export var hero = "ZlgcWo"; +export var main = "uvJREe" \ No newline at end of file diff --git a/integration-test/packages/atoms/pseudo-classes/index.esm.js.snap b/integration-test/packages/atoms/pseudo-classes/index.esm.js.snap index fd659e0..590732c 100644 --- a/integration-test/packages/atoms/pseudo-classes/index.esm.js.snap +++ b/integration-test/packages/atoms/pseudo-classes/index.esm.js.snap @@ -1,4 +1,4 @@ -export const hover = "l-ITF2"; -export const focus = "x7QluR"; -export const button = "gPy6Qt"; -export const hoverElectron = "_1RrCqF DJ9tNH" \ No newline at end of file +export var hover = "l-ITF2"; +export var focus = "x7QluR"; +export var button = "gPy6Qt"; +export var hoverElectron = "_1RrCqF DJ9tNH" \ No newline at end of file diff --git a/integration-test/packages/atoms/simple-class/index.esm.js.snap b/integration-test/packages/atoms/simple-class/index.esm.js.snap index 6ef4d01..b797faf 100644 --- a/integration-test/packages/atoms/simple-class/index.esm.js.snap +++ b/integration-test/packages/atoms/simple-class/index.esm.js.snap @@ -1,2 +1,2 @@ -export const singleDeclaration = "_9M8f-j"; -export const multipleDeclarations = "o3-BnE" \ No newline at end of file +export var singleDeclaration = "_9M8f-j"; +export var multipleDeclarations = "o3-BnE" \ No newline at end of file diff --git a/integration-test/packages/atoms/variables/index.esm.js.snap b/integration-test/packages/atoms/variables/index.esm.js.snap index 8044b7c..c617e4e 100644 --- a/integration-test/packages/atoms/variables/index.esm.js.snap +++ b/integration-test/packages/atoms/variables/index.esm.js.snap @@ -1,2 +1,2 @@ -export const withVariable = "V_ma2j"; -export const withElectronAndVariables = "YfpiAb vLhOdO YzVv9y" \ No newline at end of file +export var withVariable = "V_ma2j"; +export var withElectronAndVariables = "YfpiAb vLhOdO YzVv9y" \ No newline at end of file diff --git a/package.json b/package.json index aab73f5..8af76ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@utilitycss/atomic", - "version": "0.16.1", + "version": "0.16.2", "author": "Andrea Moretti (@axyz) ", "description": "Atomic CSS composition for yarn workspaces", "repository": "utilitycss/atomic", diff --git a/src/action/generate-atom-esm.ts b/src/action/generate-atom-esm.ts index ea7344d..2ba5727 100644 --- a/src/action/generate-atom-esm.ts +++ b/src/action/generate-atom-esm.ts @@ -7,7 +7,7 @@ const generateAtomESM = async ( ): Promise => { const keys = Object.keys(json); const exports = keys - .map((k) => `export const ${k} = "${json[k]}"`) + .map((k) => `export var ${k} = "${json[k]}"`) .join(";\n"); const content = `${exports}`;