@sproutsocial/seeds-react-theme-provider 1.0.1 → 1.1.1
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.
- package/.turbo/turbo-build.log +21 -16
- package/CHANGELOG.md +19 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +10 -6
- package/src/index.tsx +4 -1
- package/tsconfig.json +2 -8
- package/tsup.config.ts +5 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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.2
|
|
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
|
+
CJS dist/index.js 1.38 KB
|
|
12
|
+
CJS dist/index.js.map 913.00 B
|
|
13
|
+
CJS ⚡️ Build success in 48ms
|
|
14
|
+
ESM dist/index.mjs 421.00 B
|
|
15
|
+
ESM dist/index.mjs.map 853.00 B
|
|
16
|
+
ESM ⚡️ Build success in 48ms
|
|
17
|
+
DTS Build start
|
|
18
|
+
DTS ⚡️ Build success in 10742ms
|
|
19
|
+
DTS dist/index.d.ts 436.00 B
|
|
20
|
+
DTS dist/index.d.mts 436.00 B
|
|
21
|
+
Done in 13.57s.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @sproutsocial/seeds-react-theme-provider
|
|
2
2
|
|
|
3
|
+
## 1.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 57648a5: All packages now depend on the latest seed component builds
|
|
8
|
+
- Updated dependencies [57648a5]
|
|
9
|
+
- @sproutsocial/seeds-react-theme@2.0.1
|
|
10
|
+
|
|
11
|
+
## 1.1.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- e5df935: Add React 18 support
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [e5df935]
|
|
20
|
+
- @sproutsocial/seeds-react-theme@1.4.0
|
|
21
|
+
|
|
3
22
|
## 1.0.1
|
|
4
23
|
|
|
5
24
|
### 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
|
@@ -23,8 +23,10 @@ __export(src_exports, {
|
|
|
23
23
|
default: () => src_default
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(src_exports);
|
|
26
|
+
var React = require("react");
|
|
26
27
|
var import_styled_components = require("styled-components");
|
|
27
28
|
var import_seeds_react_theme = require("@sproutsocial/seeds-react-theme");
|
|
28
29
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
29
30
|
var ThemeProvider = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled_components.ThemeProvider, { ...props, theme: props.theme || import_seeds_react_theme.theme });
|
|
30
31
|
var src_default = ThemeProvider;
|
|
32
|
+
//# 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 type {\n TypeSproutTheme,\n TypeTheme,\n} 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;AAAA,YAAuB;AACvB,+BAAmD;AACnD,+BAAsB;AAepB;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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// src/index.tsx
|
|
2
|
+
import "react";
|
|
2
3
|
import { ThemeProvider as BaseThemeProvider } from "styled-components";
|
|
3
4
|
import { theme } from "@sproutsocial/seeds-react-theme";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -7,3 +8,4 @@ var src_default = ThemeProvider;
|
|
|
7
8
|
export {
|
|
8
9
|
src_default as default
|
|
9
10
|
};
|
|
11
|
+
//# 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 type {\n TypeSproutTheme,\n TypeTheme,\n} 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,OAAuB;AACvB,SAAS,iBAAiB,yBAAyB;AACnD,SAAS,aAAa;AAepB;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.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Seeds React Theme Provider",
|
|
5
5
|
"author": "Sprout Social, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,18 +8,22 @@
|
|
|
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
|
-
"@sproutsocial/seeds-react-theme": "
|
|
17
|
+
"@sproutsocial/seeds-react-theme": "*"
|
|
15
18
|
},
|
|
16
19
|
"devDependencies": {
|
|
17
20
|
"@types/styled-components": "^5.1.26",
|
|
18
21
|
"@sproutsocial/eslint-config-seeds": "*",
|
|
19
|
-
"react": "^
|
|
22
|
+
"react": "^18.0.0",
|
|
20
23
|
"styled-components": "^5.2.3",
|
|
21
|
-
"tsup": "^8.0.
|
|
22
|
-
"typescript": "^5.
|
|
24
|
+
"tsup": "^8.0.2",
|
|
25
|
+
"typescript": "^5.6.2",
|
|
26
|
+
"@sproutsocial/seeds-tsconfig": "*"
|
|
23
27
|
},
|
|
24
28
|
"peerDependencies": {
|
|
25
29
|
"styled-components": "^5.2.3"
|
package/src/index.tsx
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ThemeProvider as BaseThemeProvider } from "styled-components";
|
|
3
3
|
import { theme } from "@sproutsocial/seeds-react-theme";
|
|
4
|
-
import {
|
|
4
|
+
import type {
|
|
5
|
+
TypeSproutTheme,
|
|
6
|
+
TypeTheme,
|
|
7
|
+
} from "@sproutsocial/seeds-react-theme";
|
|
5
8
|
|
|
6
9
|
// We can append additional themes types here
|
|
7
10
|
type TypeAllThemes = TypeTheme | TypeSproutTheme;
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "@sproutsocial/seeds-tsconfig/
|
|
2
|
+
"extends": "@sproutsocial/seeds-tsconfig/bundler/dom/library-monorepo",
|
|
3
3
|
"compilerOptions": {
|
|
4
|
-
"
|
|
5
|
-
"noUncheckedIndexedAccess": false,
|
|
6
|
-
"baseUrl": ".",
|
|
7
|
-
"paths": {
|
|
8
|
-
"@src": ["src"],
|
|
9
|
-
"@src*": ["src*"]
|
|
10
|
-
}
|
|
4
|
+
"jsx": "react-jsx"
|
|
11
5
|
},
|
|
12
6
|
"include": ["src/**/*"],
|
|
13
7
|
"exclude": ["node_modules", "dist"]
|
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:
|
|
6
|
+
dts: options.dts,
|
|
7
7
|
target: "es2020",
|
|
8
8
|
external: ["react"],
|
|
9
|
-
|
|
9
|
+
sourcemap: true,
|
|
10
|
+
clean: true,
|
|
11
|
+
}));
|