Skip to content

Commit

Permalink
setting up tsup for packege bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
brenocastelo committed Dec 7, 2022
1 parent 13e63f0 commit ab3df8d
Show file tree
Hide file tree
Showing 942 changed files with 192,379 additions and 3 deletions.
79 changes: 79 additions & 0 deletions packages/tokens/dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
declare const colors: {
white: string;
black: string;
gray100: string;
gray200: string;
gray400: string;
gray500: string;
gray600: string;
gray700: string;
gray800: string;
gray900: string;
ignite300: string;
ignite500: string;
ignite700: string;
ignite900: string;
};

declare const fonts: {
default: string;
code: string;
};

declare const fontSizes: {
xxs: string;
xs: string;
sm: string;
md: string;
lg: string;
xl: string;
'2xl': string;
'4xl': string;
'5xl': string;
'6xl': string;
'7xl': string;
'8xl': string;
'9xl': string;
};

declare const fontWeights: {
regular: string;
medium: string;
bold: string;
};

declare const lineHeights: {
shorter: string;
short: string;
base: string;
tall: string;
};

declare const radii: {
px: string;
xs: string;
sm: string;
md: string;
lg: string;
full: string;
};

declare const space: {
1: string;
2: string;
3: string;
4: string;
5: string;
6: string;
7: string;
8: string;
10: string;
12: string;
16: string;
20: string;
40: string;
64: string;
80: string;
};

export { colors, fontSizes, fontWeights, fonts, lineHeights, radii, space };
126 changes: 126 additions & 0 deletions packages/tokens/dist/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/index.ts
var src_exports = {};
__export(src_exports, {
colors: () => colors,
fontSizes: () => fontSizes,
fontWeights: () => fontWeights,
fonts: () => fonts,
lineHeights: () => lineHeights,
radii: () => radii,
space: () => space
});
module.exports = __toCommonJS(src_exports);

// src/colors.ts
var colors = {
white: "#FFF",
black: "#000",
gray100: "#E1E1E6",
gray200: "#A9A9B2",
gray400: "#7C7C8A",
gray500: "#505059",
gray600: "#323238",
gray700: "#29292E",
gray800: "#202024",
gray900: "#121214",
ignite300: "#00B37E",
ignite500: "#00875F",
ignite700: "#015F43",
ignite900: "#00291D"
};

// src/fonts.ts
var fonts = {
default: "Roboto, sans-serif",
code: "monospace"
};

// src/font-sizes.ts
var fontSizes = {
xxs: "0.625rem",
xs: "0.75rem",
sm: "0.875rem",
md: "1rem",
lg: "1.125rem",
xl: "1.25rem",
"2xl": "1.5rem",
"4xl": "2rem",
"5xl": "2.25rem",
"6xl": "3rem",
"7xl": "4rem",
"8xl": "4.5rem",
"9xl": "6rem"
};

// src/font-weight.ts
var fontWeights = {
regular: "400",
medium: "500",
bold: "700"
};

// src/line-heights.ts
var lineHeights = {
shorter: "125%",
short: "140%",
base: "160%",
tall: "180%"
};

// src/radii.ts
var radii = {
px: "1px",
xs: "4px",
sm: "6px",
md: "8px",
lg: "16px",
full: "99999px"
};

// src/space.ts
var space = {
1: "0.25rem",
2: "0.5rem",
3: "0.75rem",
4: "1rem",
5: "1.25rem",
6: "1.5rem",
7: "1.75rem",
8: "2rem",
10: "2.5rem",
12: "3rem",
16: "4rem",
20: "5rem",
40: "10rem",
64: "16rem",
80: "20rem"
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
colors,
fontSizes,
fontWeights,
fonts,
lineHeights,
radii,
space
});
93 changes: 93 additions & 0 deletions packages/tokens/dist/index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
// src/colors.ts
var colors = {
white: "#FFF",
black: "#000",
gray100: "#E1E1E6",
gray200: "#A9A9B2",
gray400: "#7C7C8A",
gray500: "#505059",
gray600: "#323238",
gray700: "#29292E",
gray800: "#202024",
gray900: "#121214",
ignite300: "#00B37E",
ignite500: "#00875F",
ignite700: "#015F43",
ignite900: "#00291D"
};

// src/fonts.ts
var fonts = {
default: "Roboto, sans-serif",
code: "monospace"
};

// src/font-sizes.ts
var fontSizes = {
xxs: "0.625rem",
xs: "0.75rem",
sm: "0.875rem",
md: "1rem",
lg: "1.125rem",
xl: "1.25rem",
"2xl": "1.5rem",
"4xl": "2rem",
"5xl": "2.25rem",
"6xl": "3rem",
"7xl": "4rem",
"8xl": "4.5rem",
"9xl": "6rem"
};

// src/font-weight.ts
var fontWeights = {
regular: "400",
medium: "500",
bold: "700"
};

// src/line-heights.ts
var lineHeights = {
shorter: "125%",
short: "140%",
base: "160%",
tall: "180%"
};

// src/radii.ts
var radii = {
px: "1px",
xs: "4px",
sm: "6px",
md: "8px",
lg: "16px",
full: "99999px"
};

// src/space.ts
var space = {
1: "0.25rem",
2: "0.5rem",
3: "0.75rem",
4: "1rem",
5: "1.25rem",
6: "1.5rem",
7: "1.75rem",
8: "2rem",
10: "2.5rem",
12: "3rem",
16: "4rem",
20: "5rem",
40: "10rem",
64: "16rem",
80: "20rem"
};
export {
colors,
fontSizes,
fontWeights,
fonts,
lineHeights,
radii,
space
};
1 change: 1 addition & 0 deletions packages/tokens/node_modules/.bin/esbuild

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/tokens/node_modules/.bin/node-which

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/tokens/node_modules/.bin/rollup

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/tokens/node_modules/.bin/sucrase

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/tokens/node_modules/.bin/sucrase-node

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/tokens/node_modules/.bin/tree-kill

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/tokens/node_modules/.bin/tsup

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/tokens/node_modules/.bin/tsup-node

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ab3df8d

Please sign in to comment.