@sproutsocial/seeds-react-theme-provider 1.1.22 → 1.1.23
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 +8 -8
- package/CHANGELOG.md +30 -0
- package/dist/index.js +1 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/index.tsx +1 -19
package/.turbo/turbo-build.log
CHANGED
|
@@ -8,14 +8,14 @@ $ tsup --dts
|
|
|
8
8
|
[34mCLI[39m Cleaning output folder
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
10
|
[34mESM[39m Build start
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m1.41 KB[39m
|
|
12
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m969.00 B[39m
|
|
13
|
+
[32mCJS[39m ⚡️ Build success in 12ms
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m451.00 B[39m
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m909.00 B[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 12ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 1332ms
|
|
19
19
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m436.00 B[39m
|
|
20
20
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m436.00 B[39m
|
|
21
|
-
Done in
|
|
21
|
+
Done in 2.06s.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @sproutsocial/seeds-react-theme-provider
|
|
2
2
|
|
|
3
|
+
## 1.1.23
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d21ae54: Fix AI gradient contrast and dark-mode legibility for AI components.
|
|
8
|
+
|
|
9
|
+
- The dark-mode `--color-gradient-ai` / `--color-gradient-ai-subtle` tokens now
|
|
10
|
+
use lighter blue/purple stops (`#679eff → #b984ff → #f282f5`) so AI components
|
|
11
|
+
meet WCAG contrast against the dark surface. Light mode is unchanged.
|
|
12
|
+
- The `ai-secondary` Button base now uses the themed container surface
|
|
13
|
+
(`--color-container-bg-base`) instead of a hardcoded white, and its label text
|
|
14
|
+
now flips to a light neutral in dark mode (previously dark text on a dark
|
|
15
|
+
fill).
|
|
16
|
+
- `container.background.ai_generated` and `text.ai_generated` are now
|
|
17
|
+
token-driven with proper light/dark variants; the hardcoded, light-only
|
|
18
|
+
gradient injection was removed from `seeds-react-theme-provider`.
|
|
19
|
+
|
|
20
|
+
**Contract change:** AI-generated surface tokens now resolve entirely from the
|
|
21
|
+
compiled theme CSS (`--color-gradient-ai-subtle`, `--color-container-bg-base`),
|
|
22
|
+
which is required for these tokens to render. The previous
|
|
23
|
+
`seeds-react-theme-provider` injection that let standalone styled-components
|
|
24
|
+
consumers get the AI surface _without_ loading the compiled theme CSS has been
|
|
25
|
+
removed deliberately, as part of the ongoing migration away from
|
|
26
|
+
styled-components toward CSS/Tailwind. A literal fallback was intentionally not
|
|
27
|
+
added — it could only encode the light-mode value and would render incorrectly
|
|
28
|
+
in dark mode. Consumers rendering AI components must load the compiled theme CSS.
|
|
29
|
+
|
|
30
|
+
- Updated dependencies [d21ae54]
|
|
31
|
+
- @sproutsocial/seeds-react-theme@4.2.1
|
|
32
|
+
|
|
3
33
|
## 1.1.22
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -27,19 +27,6 @@ var React = require("react");
|
|
|
27
27
|
var import_styled_components = require("styled-components");
|
|
28
28
|
var import_seeds_react_theme = require("@sproutsocial/seeds-react-theme");
|
|
29
29
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
-
var
|
|
31
|
-
:root {
|
|
32
|
-
--color-container-bg-ai-generated: radial-gradient(
|
|
33
|
-
circle at bottom left,
|
|
34
|
-
color-mix(in srgb, #205bc3, transparent 80%) 0%,
|
|
35
|
-
color-mix(in srgb, #6f5ed3, transparent 80%) 61%,
|
|
36
|
-
color-mix(in srgb, #f282f5, transparent 80%) 100%
|
|
37
|
-
), #f3f4f4;
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
40
|
-
var ThemeProvider = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled_components.ThemeProvider, { ...props, theme: props.theme || import_seeds_react_theme.theme, children: [
|
|
41
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(GlobalTokenStyles, {}),
|
|
42
|
-
props.children
|
|
43
|
-
] });
|
|
30
|
+
var ThemeProvider = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled_components.ThemeProvider, { ...props, theme: props.theme || import_seeds_react_theme.theme, children: props.children });
|
|
44
31
|
var index_default = ThemeProvider;
|
|
45
32
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.tsx"],"sourcesContent":["import * as React from \"react\";\nimport {
|
|
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 {props.children}\n </BaseThemeProvider>\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,gCACjD,gBAAM,UACT;AAGF,IAAO,gBAAQ;","names":["BaseThemeProvider"]}
|
package/dist/index.mjs
CHANGED
|
@@ -1,25 +1,9 @@
|
|
|
1
1
|
// src/index.tsx
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
4
|
-
ThemeProvider as BaseThemeProvider,
|
|
5
|
-
createGlobalStyle
|
|
6
|
-
} from "styled-components";
|
|
3
|
+
import { ThemeProvider as BaseThemeProvider } from "styled-components";
|
|
7
4
|
import { theme } from "@sproutsocial/seeds-react-theme";
|
|
8
|
-
import { jsx
|
|
9
|
-
var
|
|
10
|
-
:root {
|
|
11
|
-
--color-container-bg-ai-generated: radial-gradient(
|
|
12
|
-
circle at bottom left,
|
|
13
|
-
color-mix(in srgb, #205bc3, transparent 80%) 0%,
|
|
14
|
-
color-mix(in srgb, #6f5ed3, transparent 80%) 61%,
|
|
15
|
-
color-mix(in srgb, #f282f5, transparent 80%) 100%
|
|
16
|
-
), #f3f4f4;
|
|
17
|
-
}
|
|
18
|
-
`;
|
|
19
|
-
var ThemeProvider = (props) => /* @__PURE__ */ jsxs(BaseThemeProvider, { ...props, theme: props.theme || theme, children: [
|
|
20
|
-
/* @__PURE__ */ jsx(GlobalTokenStyles, {}),
|
|
21
|
-
props.children
|
|
22
|
-
] });
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var ThemeProvider = (props) => /* @__PURE__ */ jsx(BaseThemeProvider, { ...props, theme: props.theme || theme, children: props.children });
|
|
23
7
|
var index_default = ThemeProvider;
|
|
24
8
|
export {
|
|
25
9
|
index_default as default
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.tsx"],"sourcesContent":["import * as React from \"react\";\nimport {
|
|
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 {props.children}\n </BaseThemeProvider>\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,OACjD,gBAAM,UACT;AAGF,IAAO,gBAAQ;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sproutsocial/seeds-react-theme-provider",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.23",
|
|
4
4
|
"description": "Seeds React Theme Provider",
|
|
5
5
|
"author": "Sprout Social, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"typecheck": "tsc --noEmit"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@sproutsocial/seeds-react-theme": "^4.2.
|
|
18
|
+
"@sproutsocial/seeds-react-theme": "^4.2.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/styled-components": "^5.1.26",
|
package/src/index.tsx
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import {
|
|
3
|
-
ThemeProvider as BaseThemeProvider,
|
|
4
|
-
createGlobalStyle,
|
|
5
|
-
} from "styled-components";
|
|
2
|
+
import { ThemeProvider as BaseThemeProvider } from "styled-components";
|
|
6
3
|
import { theme } from "@sproutsocial/seeds-react-theme";
|
|
7
4
|
import type {
|
|
8
5
|
TypeSproutTheme,
|
|
@@ -17,23 +14,8 @@ type TypeProps = {
|
|
|
17
14
|
readonly children?: React.ReactNode;
|
|
18
15
|
};
|
|
19
16
|
|
|
20
|
-
// CSS custom properties for token values that cannot be represented in SCSS maps
|
|
21
|
-
// (e.g. radial-gradient + color-mix). These are injected here so styled-components
|
|
22
|
-
// consumers get the values without needing to load the compiled SCSS theme CSS.
|
|
23
|
-
const GlobalTokenStyles = createGlobalStyle`
|
|
24
|
-
:root {
|
|
25
|
-
--color-container-bg-ai-generated: radial-gradient(
|
|
26
|
-
circle at bottom left,
|
|
27
|
-
color-mix(in srgb, #205bc3, transparent 80%) 0%,
|
|
28
|
-
color-mix(in srgb, #6f5ed3, transparent 80%) 61%,
|
|
29
|
-
color-mix(in srgb, #f282f5, transparent 80%) 100%
|
|
30
|
-
), #f3f4f4;
|
|
31
|
-
}
|
|
32
|
-
`;
|
|
33
|
-
|
|
34
17
|
const ThemeProvider = (props: TypeProps) => (
|
|
35
18
|
<BaseThemeProvider {...props} theme={props.theme || theme}>
|
|
36
|
-
<GlobalTokenStyles />
|
|
37
19
|
{props.children}
|
|
38
20
|
</BaseThemeProvider>
|
|
39
21
|
);
|