@sproutsocial/seeds-react-theme-provider 1.0.0 → 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.
- package/.turbo/turbo-build.log +21 -16
- package/CHANGELOG.md +17 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -4409
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +3 -4428
- package/dist/index.mjs.map +1 -0
- package/package.json +7 -5
- package/tsup.config.ts +5 -3
|
@@ -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.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Seeds React Theme Provider",
|
|
5
5
|
"author": "Sprout Social, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,16 +8,18 @@
|
|
|
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-
|
|
17
|
+
"@sproutsocial/seeds-react-theme": "^1.0.0"
|
|
15
18
|
},
|
|
16
19
|
"devDependencies": {
|
|
17
20
|
"@types/styled-components": "^5.1.26",
|
|
18
21
|
"@sproutsocial/eslint-config-seeds": "*",
|
|
19
|
-
"
|
|
20
|
-
"react": "^17.0.2",
|
|
22
|
+
"react": "^18.0.0",
|
|
21
23
|
"styled-components": "^5.2.3",
|
|
22
24
|
"tsup": "^8.0.1",
|
|
23
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:
|
|
6
|
+
dts: options.dts,
|
|
7
7
|
target: "es2020",
|
|
8
8
|
external: ["react"],
|
|
9
|
-
|
|
9
|
+
sourcemap: true,
|
|
10
|
+
clean: true,
|
|
11
|
+
}));
|