@sproutsocial/seeds-react-box 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,21 @@
1
- $ tsup
2
- CLI Building entry: src/index.ts
3
- CLI Using tsconfig: tsconfig.json
4
- CLI tsup v8.0.2
5
- CLI Using tsup config: /home/runner/work/seeds/seeds/seeds-react/seeds-react-box/tsup.config.ts
6
- CLI Target: es2020
7
- CJS Build start
8
- ESM Build start
9
- ESM dist/index.mjs 816.00 B
10
- ESM ⚡️ Build success in 39ms
11
- CJS dist/index.js 2.58 KB
12
- CJS ⚡️ Build success in 42ms
13
- DTS Build start
14
- DTS ⚡️ Build success in 5548ms
15
- DTS dist/index.d.ts 800.00 B
16
- DTS dist/index.d.mts 800.00 B
1
+ yarn run v1.22.22
2
+ $ tsup --dts
3
+ CLI Building entry: src/index.ts
4
+ CLI Using tsconfig: tsconfig.json
5
+ CLI tsup v8.0.2
6
+ CLI Using tsup config: /home/runner/work/seeds/seeds/seeds-react/seeds-react-box/tsup.config.ts
7
+ CLI Target: es2022
8
+ CLI Cleaning output folder
9
+ CJS Build start
10
+ ESM Build start
11
+ CJS dist/index.js 2.61 KB
12
+ CJS dist/index.js.map 1.76 KB
13
+ CJS ⚡️ Build success in 108ms
14
+ ESM dist/esm/index.js 849.00 B
15
+ ESM dist/esm/index.js.map 1.76 KB
16
+ ESM ⚡️ Build success in 106ms
17
+ DTS Build start
18
+ DTS ⚡️ Build success in 11403ms
19
+ DTS dist/index.d.ts 800.00 B
20
+ DTS dist/index.d.mts 800.00 B
21
+ Done in 15.08s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @sproutsocial/seeds-react-box
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e5df935: Add React 18 support
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [e5df935]
12
+ - @sproutsocial/seeds-react-system-props@2.3.0
13
+ - @sproutsocial/seeds-react-theme@1.4.0
14
+
15
+ ## 1.0.2
16
+
17
+ ### Patch Changes
18
+
19
+ - c7b905b: - Update `module` field to point to correct ES Module entry point
20
+ - Fix package build so ESM exports are imported properly by web pack
21
+
3
22
  ## 1.0.1
4
23
 
5
24
  ### Patch Changes
@@ -46,3 +46,4 @@ export {
46
46
  Box_default as Box,
47
47
  src_default as default
48
48
  };
49
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Box.tsx","../../src/styles.tsx","../../src/index.ts"],"sourcesContent":["import * as React from \"react\";\nimport Container from \"./styles\";\nimport type { TypeBoxProps } from \"./BoxTypes\";\n\nconst Box = React.forwardRef<HTMLDivElement, TypeBoxProps>(\n ({ color, ...props }, ref) => {\n return (\n <Container\n {...props}\n ref={ref}\n // TODO: fix this type since `color` should be valid here. TS can't resolve the correct type.\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n color={color}\n />\n );\n }\n);\n\nBox.displayName = \"Box\";\n\nexport default Box;\n","import styled from \"styled-components\";\nimport {\n COMMON,\n BORDER,\n LAYOUT,\n POSITION,\n FLEXBOX,\n GRID,\n} from \"@sproutsocial/seeds-react-system-props\";\nimport { TypeContainerProps } from \"./BoxTypes\";\n\nconst Container = styled.div<TypeContainerProps>`\n box-sizing: border-box;\n font-family: ${({ theme }) => theme.fontFamily};\n\n ${COMMON}\n ${BORDER}\n ${LAYOUT}\n ${POSITION}\n ${FLEXBOX}\n ${GRID}\n`;\n\nexport default Container;\n","import Box from \"./Box\";\n\nexport default Box;\nexport { Box };\nexport * from \"./BoxTypes\";\n"],"mappings":";AAAA,YAAY,WAAW;;;ACAvB,OAAO,YAAY;AACnB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,IAAM,YAAY,OAAO;AAAA;AAAA,iBAER,CAAC,EAAE,MAAM,MAAM,MAAM,UAAU;AAAA;AAAA,IAE5C,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,IAAI;AAAA;AAGR,IAAO,iBAAQ;;;ADnBf,IAAM,MAAY;AAAA,EAChB,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ;AAC5B,WACE;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ;AAAA,QAIA;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,IAAI,cAAc;AAElB,IAAO,cAAQ;;;AEnBf,IAAO,cAAQ;","names":[]}
package/dist/index.js CHANGED
@@ -76,3 +76,4 @@ var src_default = Box_default;
76
76
  0 && (module.exports = {
77
77
  Box
78
78
  });
79
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/Box.tsx","../src/styles.tsx"],"sourcesContent":["import Box from \"./Box\";\n\nexport default Box;\nexport { Box };\nexport * from \"./BoxTypes\";\n","import * as React from \"react\";\nimport Container from \"./styles\";\nimport type { TypeBoxProps } from \"./BoxTypes\";\n\nconst Box = React.forwardRef<HTMLDivElement, TypeBoxProps>(\n ({ color, ...props }, ref) => {\n return (\n <Container\n {...props}\n ref={ref}\n // TODO: fix this type since `color` should be valid here. TS can't resolve the correct type.\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n color={color}\n />\n );\n }\n);\n\nBox.displayName = \"Box\";\n\nexport default Box;\n","import styled from \"styled-components\";\nimport {\n COMMON,\n BORDER,\n LAYOUT,\n POSITION,\n FLEXBOX,\n GRID,\n} from \"@sproutsocial/seeds-react-system-props\";\nimport { TypeContainerProps } from \"./BoxTypes\";\n\nconst Container = styled.div<TypeContainerProps>`\n box-sizing: border-box;\n font-family: ${({ theme }) => theme.fontFamily};\n\n ${COMMON}\n ${BORDER}\n ${LAYOUT}\n ${POSITION}\n ${FLEXBOX}\n ${GRID}\n`;\n\nexport default Container;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,YAAuB;;;ACAvB,+BAAmB;AACnB,sCAOO;AAGP,IAAM,YAAY,yBAAAA,QAAO;AAAA;AAAA,iBAER,CAAC,EAAE,MAAM,MAAM,MAAM,UAAU;AAAA;AAAA,IAE5C,sCAAM;AAAA,IACN,sCAAM;AAAA,IACN,sCAAM;AAAA,IACN,wCAAQ;AAAA,IACR,uCAAO;AAAA,IACP,oCAAI;AAAA;AAGR,IAAO,iBAAQ;;;ADnBf,IAAM,MAAY;AAAA,EAChB,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ;AAC5B,WACE;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ;AAAA,QAIA;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,IAAI,cAAc;AAElB,IAAO,cAAQ;;;ADnBf,IAAO,cAAQ;","names":["styled"]}
package/package.json CHANGED
@@ -1,23 +1,28 @@
1
1
  {
2
2
  "name": "@sproutsocial/seeds-react-box",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "Seeds React Box",
5
5
  "author": "Sprout Social, Inc.",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
+ "module": "dist/esm/index.js",
8
9
  "types": "dist/index.d.ts",
9
10
  "scripts": {
10
- "build": "tsup"
11
+ "build": "tsup --dts",
12
+ "dev": "tsup --watch --dts",
13
+ "clean": "rm -rf .turbo dist",
14
+ "clean:modules": "rm -rf node_modules",
15
+ "typecheck": "tsc --noEmit"
11
16
  },
12
17
  "dependencies": {
13
18
  "@sproutsocial/seeds-react-theme": "^1.0.0",
14
- "@sproutsocial/seeds-react-system-props": "^2.1.0"
19
+ "@sproutsocial/seeds-react-system-props": "^2.2.0"
15
20
  },
16
21
  "devDependencies": {
17
- "@types/react": "^17.0.0",
22
+ "@types/react": "^18.0.0",
18
23
  "@types/styled-components": "^5.1.26",
19
24
  "@sproutsocial/eslint-config-seeds": "*",
20
- "react": "^17.0.2",
25
+ "react": "^18.0.0",
21
26
  "styled-components": "^5.2.3",
22
27
  "typescript": "^5.1.6"
23
28
  },
package/tsup.config.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  import { defineConfig } from "tsup";
2
2
 
3
- export default defineConfig({
3
+ export default defineConfig((options) => ({
4
4
  entry: ["src/index.ts"],
5
5
  format: ["cjs", "esm"],
6
- dts: true,
7
- target: "es2020",
6
+ clean: true,
7
+ legacyOutput: true,
8
+ dts: options.dts,
8
9
  external: ["react"],
9
- });
10
+ sourcemap: true,
11
+ }));