Skip to content

Commit a2693c9

Browse files
committed
Work around tsup bug
1 parent 07469d5 commit a2693c9

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

Diff for: src/Layout/createBleed.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ export function createBleed<AtomsFn extends typeof bentoSprinkles>(Box: BoxType<
1919

2020
function negateSpace(space: ResponsiveSpace | undefined): ResponsiveNegativeSpace | undefined {
2121
if (typeof space === "number") {
22-
return `-${space}`;
22+
return `negative${space}`;
2323
} else if (!!space) {
2424
return {
25-
desktop: space.desktop ? `-${space.desktop}` : undefined,
26-
tablet: space.tablet ? `-${space.tablet}` : undefined,
27-
mobile: space.mobile ? `-${space.mobile}` : undefined,
25+
desktop: space.desktop ? `negative${space.desktop}` : undefined,
26+
tablet: space.tablet ? `negative${space.tablet}` : undefined,
27+
mobile: space.mobile ? `negative${space.mobile}` : undefined,
2828
};
2929
} else {
3030
return undefined;

Diff for: src/vars.css.ts

+9-7
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,15 @@ export const vars = createThemeContract({
5858
},
5959
negativeSpace: {
6060
"0": null,
61-
"-4": null,
62-
"-8": null,
63-
"-16": null,
64-
"-24": null,
65-
"-32": null,
66-
"-40": null,
67-
"-80": null,
61+
// NOTE(gabro): ideally we would use "-4" and so on here, but we can't due to
62+
// https://github.com/Swatinem/rollup-plugin-dts/issues/201
63+
negative4: null,
64+
negative8: null,
65+
negative16: null,
66+
negative24: null,
67+
negative32: null,
68+
negative40: null,
69+
negative80: null,
6870
},
6971
radius: {
7072
4: null,

Diff for: stories/theme.css.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ const commonTheme = {
121121
},
122122
negativeSpace: {
123123
"0": "0",
124-
"-4": "-4px",
125-
"-8": "-8px",
126-
"-16": "-16px",
127-
"-24": "-24px",
128-
"-32": "-32px",
129-
"-40": "-40px",
130-
"-80": "-80px",
124+
negative4: "-4px",
125+
negative8: "-8px",
126+
negative16: "-16px",
127+
negative24: "-24px",
128+
negative32: "-32px",
129+
negative40: "-40px",
130+
negative80: "-80px",
131131
},
132132
radius: {
133133
"4": "4px",

0 commit comments

Comments
 (0)