@sproutsocial/seeds-react-theme-provider 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.tsx
3
- CLI Using tsconfig: tsconfig.json
4
- CLI tsup v8.0.1
5
- CLI Using tsup config: /home/runner/work/seeds/seeds/seeds-react/seeds-react-theme-provider/tsup.config.ts
6
- CLI Target: es2020
7
- CJS Build start
8
- ESM Build start
9
- CJS dist/index.js 1.32 KB
10
- CJS ⚡️ Build success in 39ms
11
- ESM dist/index.mjs 371.00 B
12
- ESM ⚡️ Build success in 40ms
13
- DTS Build start
14
- DTS ⚡️ Build success in 10162ms
15
- DTS dist/index.d.ts 362.00 B
16
- DTS dist/index.d.mts 362.00 B
1
+ yarn run v1.22.22
2
+ $ tsup --dts
3
+ CLI Building entry: src/index.tsx
4
+ CLI Using tsconfig: tsconfig.json
5
+ CLI tsup v8.0.1
6
+ CLI Using tsup config: /home/runner/work/seeds/seeds/seeds-react/seeds-react-theme-provider/tsup.config.ts
7
+ CLI Target: es2020
8
+ CLI Cleaning output folder
9
+ CJS Build start
10
+ ESM Build start
11
+ ESM dist/index.mjs 405.00 B
12
+ ESM dist/index.mjs.map 828.00 B
13
+ ESM ⚡️ Build success in 38ms
14
+ CJS dist/index.js 1.35 KB
15
+ CJS dist/index.js.map 888.00 B
16
+ CJS ⚡️ Build success in 40ms
17
+ DTS Build start
18
+ DTS ⚡️ Build success in 9884ms
19
+ DTS dist/index.d.ts 436.00 B
20
+ DTS dist/index.d.mts 436.00 B
21
+ Done in 12.67s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @sproutsocial/seeds-react-theme-provider
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-theme@1.4.0
13
+
3
14
  ## 1.0.1
4
15
 
5
16
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import * as React from 'react';
2
3
  import { TypeTheme, TypeSproutTheme } from '@sproutsocial/seeds-react-theme';
3
4
 
@@ -6,6 +7,6 @@ type TypeProps = {
6
7
  readonly theme?: TypeAllThemes;
7
8
  readonly children?: React.ReactNode;
8
9
  };
9
- declare const ThemeProvider: (props: TypeProps) => JSX.Element;
10
+ declare const ThemeProvider: (props: TypeProps) => react_jsx_runtime.JSX.Element;
10
11
 
11
12
  export { ThemeProvider as default };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import * as React from 'react';
2
3
  import { TypeTheme, TypeSproutTheme } from '@sproutsocial/seeds-react-theme';
3
4
 
@@ -6,6 +7,6 @@ type TypeProps = {
6
7
  readonly theme?: TypeAllThemes;
7
8
  readonly children?: React.ReactNode;
8
9
  };
9
- declare const ThemeProvider: (props: TypeProps) => JSX.Element;
10
+ declare const ThemeProvider: (props: TypeProps) => react_jsx_runtime.JSX.Element;
10
11
 
11
12
  export { ThemeProvider as default };
package/dist/index.js CHANGED
@@ -28,3 +28,4 @@ var import_seeds_react_theme = require("@sproutsocial/seeds-react-theme");
28
28
  var import_jsx_runtime = require("react/jsx-runtime");
29
29
  var ThemeProvider = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled_components.ThemeProvider, { ...props, theme: props.theme || import_seeds_react_theme.theme });
30
30
  var src_default = ThemeProvider;
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { ThemeProvider as BaseThemeProvider } from \"styled-components\";\nimport { theme } from \"@sproutsocial/seeds-react-theme\";\nimport { TypeSproutTheme, TypeTheme } from \"@sproutsocial/seeds-react-theme\";\n\n// We can append additional themes types here\ntype TypeAllThemes = TypeTheme | TypeSproutTheme;\n\ntype TypeProps = {\n readonly theme?: TypeAllThemes;\n readonly children?: React.ReactNode;\n};\n\nconst ThemeProvider = (props: TypeProps) => (\n <BaseThemeProvider {...props} theme={props.theme || theme} />\n);\n\nexport default ThemeProvider;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,+BAAmD;AACnD,+BAAsB;AAYpB;AADF,IAAM,gBAAgB,CAAC,UACrB,4CAAC,yBAAAA,eAAA,EAAmB,GAAG,OAAO,OAAO,MAAM,SAAS,gCAAO;AAG7D,IAAO,cAAQ;","names":["BaseThemeProvider"]}
package/dist/index.mjs CHANGED
@@ -7,3 +7,4 @@ var src_default = ThemeProvider;
7
7
  export {
8
8
  src_default as default
9
9
  };
10
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { ThemeProvider as BaseThemeProvider } from \"styled-components\";\nimport { theme } from \"@sproutsocial/seeds-react-theme\";\nimport { TypeSproutTheme, TypeTheme } from \"@sproutsocial/seeds-react-theme\";\n\n// We can append additional themes types here\ntype TypeAllThemes = TypeTheme | TypeSproutTheme;\n\ntype TypeProps = {\n readonly theme?: TypeAllThemes;\n readonly children?: React.ReactNode;\n};\n\nconst ThemeProvider = (props: TypeProps) => (\n <BaseThemeProvider {...props} theme={props.theme || theme} />\n);\n\nexport default ThemeProvider;\n"],"mappings":";AACA,SAAS,iBAAiB,yBAAyB;AACnD,SAAS,aAAa;AAYpB;AADF,IAAM,gBAAgB,CAAC,UACrB,oBAAC,qBAAmB,GAAG,OAAO,OAAO,MAAM,SAAS,OAAO;AAG7D,IAAO,cAAQ;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/seeds-react-theme-provider",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "Seeds React Theme Provider",
5
5
  "author": "Sprout Social, Inc.",
6
6
  "license": "MIT",
@@ -8,7 +8,10 @@
8
8
  "module": "dist/index.mjs",
9
9
  "types": "dist/index.d.ts",
10
10
  "scripts": {
11
- "build": "tsup"
11
+ "build": "tsup --dts",
12
+ "clean": "rm -rf .turbo dist",
13
+ "clean:modules": "rm -rf node_modules",
14
+ "typecheck": "tsc --noEmit"
12
15
  },
13
16
  "dependencies": {
14
17
  "@sproutsocial/seeds-react-theme": "^1.0.0"
@@ -16,7 +19,7 @@
16
19
  "devDependencies": {
17
20
  "@types/styled-components": "^5.1.26",
18
21
  "@sproutsocial/eslint-config-seeds": "*",
19
- "react": "^17.0.2",
22
+ "react": "^18.0.0",
20
23
  "styled-components": "^5.2.3",
21
24
  "tsup": "^8.0.1",
22
25
  "typescript": "^5.1.6"
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.tsx"],
5
5
  format: ["cjs", "esm"],
6
- dts: true,
6
+ dts: options.dts,
7
7
  target: "es2020",
8
8
  external: ["react"],
9
- });
9
+ sourcemap: true,
10
+ clean: true,
11
+ }));