@sproutsocial/seeds-react-theme 4.2.1 → 4.3.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.
@@ -186,6 +186,11 @@ function _buildCSSVariables() {
186
186
  combinedCSS = generateCombinedCSS();
187
187
  _fs.default.writeFileSync(_path.default.join(distDir, "theme-all.css"), combinedCSS, "utf-8");
188
188
  console.log(" \u2713 Written combined theme to dist/theme-all.css");
189
+
190
+ // Copy static utility stylesheets into dist (dist is generated + cleaned, so
191
+ // hand-authored CSS must be copied in during the build).
192
+ _fs.default.copyFileSync(_path.default.join(__dirname, "../css/scrollbar.css"), _path.default.join(distDir, "scrollbar.css"));
193
+ console.log(" \u2713 Copied scrollbar utility to dist/scrollbar.css");
189
194
  console.log("\n✅ CSS variables built successfully!\n");
190
195
  case 1:
191
196
  return _context.a(2);
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Seeds thin-scrollbar utility.
3
+ *
4
+ * Tailwind-hybrid replacement for the legacy styled-components `thinScrollbar`
5
+ * mixin. Apply `seeds-scrollbar-thin` to any scrollable element.
6
+ *
7
+ * Requires @sproutsocial/seeds-react-theme/dist/theme-all.css (or theme.css)
8
+ * loaded for the --color-menuItem-bg-active variable and dark-mode support.
9
+ *
10
+ * Wrapped in `@layer components` so consumer Tailwind utilities (unlayered) win
11
+ * the cascade over this component-level style.
12
+ */
13
+
14
+ @layer components {
15
+ .seeds-scrollbar-thin {
16
+ scrollbar-width: thin;
17
+ scrollbar-color: var(--color-menuItem-bg-active) transparent;
18
+ }
19
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"buildCSS.d.ts","sourceRoot":"","sources":["../../../src/builders/buildCSS.ts"],"names":[],"mappings":"AAAA;;GAEG;AA4JH;;GAEG;AACH,wBAAsB,iBAAiB,kBA0BtC"}
1
+ {"version":3,"file":"buildCSS.d.ts","sourceRoot":"","sources":["../../../src/builders/buildCSS.ts"],"names":[],"mappings":"AAAA;;GAEG;AA4JH;;GAEG;AACH,wBAAsB,iBAAiB,kBAkCtC"}
@@ -184,6 +184,11 @@ function _buildCSSVariables() {
184
184
  combinedCSS = generateCombinedCSS();
185
185
  fs.writeFileSync(path.join(distDir, "theme-all.css"), combinedCSS, "utf-8");
186
186
  console.log(" \u2713 Written combined theme to dist/theme-all.css");
187
+
188
+ // Copy static utility stylesheets into dist (dist is generated + cleaned, so
189
+ // hand-authored CSS must be copied in during the build).
190
+ fs.copyFileSync(path.join(__dirname, "../css/scrollbar.css"), path.join(distDir, "scrollbar.css"));
191
+ console.log(" \u2713 Copied scrollbar utility to dist/scrollbar.css");
187
192
  console.log("\n✅ CSS variables built successfully!\n");
188
193
  case 1:
189
194
  return _context.a(2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/seeds-react-theme",
3
- "version": "4.2.1",
3
+ "version": "4.3.0",
4
4
  "description": "Seeds Theme",
5
5
  "main": "commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -23,6 +23,7 @@
23
23
  "./css/theme": "./dist/theme.css",
24
24
  "./css/theme-dark": "./dist/theme-dark.css",
25
25
  "./css/theme-all": "./dist/theme-all.css",
26
+ "./css/scrollbar": "./dist/scrollbar.css",
26
27
  "./css/tailwind-preset": "./dist/tailwind-preset.css"
27
28
  },
28
29
  "scripts": {