@bcc-code/component-library-vue 1.3.15 → 1.3.16

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/README.md CHANGED
@@ -64,10 +64,12 @@ export default defineConfig({
64
64
  @import '@bcc-code/component-library-vue/theme.css';
65
65
  ```
66
66
 
67
- That single import is enough. `theme.css` does two things:
67
+ That single import is enough. `theme.css` includes:
68
68
 
69
- - It exposes the BCC design tokens and Tailwind utilities.
70
- - It also imports `library-utilities.css`, the pre-compiled CSS for the utility classes used **inside** the library's own components.
69
+ - BCC design tokens, `@theme` / `@utility` definitions, and the rest of the design-system CSS inlined from `src/style.css` (including component-specific rules such as `BccInput` icon sizing and `BccButton` context tokens).
70
+ - `library-utilities.css`, the pre-compiled Tailwind **utility class** rules used inside library templates (which your build cannot infer from the published JS).
71
+
72
+ Do **not** rely on `library-utilities.css` alone with a minimal “base” import: you still need the full `theme.css` (or `style.css` for Option 2) so non-utility component styles and tokens are present.
71
73
 
72
74
  ### Styles Option 2 — Pre-built CSS only
73
75
 
@@ -0,0 +1 @@
1
+ .p-button.useCtx[data-v-c57d52aa]{--p-button-primary-color:var(--ctx-text);--p-button-primary-background:var(--ctx-background);--p-button-primary-border-color:var(--ctx-border);--p-button-primary-hover-background:var(--ctx-background-hover);--p-button-primary-hover-border-color:var(--ctx-border-hover);--p-button-primary-hover-color:var(--ctx-text-hover);--p-button-primary-active-background:var(--ctx-background-pressed);--p-button-primary-active-border-color:var(--ctx-border-pressed);--p-button-primary-active-color:var(--ctx-text-pressed)}.p-inputicon{--icon-size: 20px;font-size:var(--icon-size);width:var(--icon-size);height:var(--icon-size);margin-top:calc(-1 * (var(--icon-size) / 2))}.p-iconfield:has(.p-inputfield-sm) .p-inputicon{--icon-size: 16px}.p-iconfield:has(.p-inputfield-lg) .p-inputicon{--icon-size: 24px}
package/dist/theme.css CHANGED
@@ -2618,7 +2618,10 @@ strong,
2618
2618
  }
2619
2619
 
2620
2620
 
2621
+ /* SFC <style> blocks extracted all .vue components
2622
+ @import './sfc-styles.css';
2623
+
2621
2624
  /* Library utility classes, compiled from the library's own components.
2622
- Contains only the utility class rules used inside the library — no preflight, no @theme
2623
- variables, no design tokens, since theme.css already provides those. */
2625
+ Contains only the utility class rules used inside the library — no preflight,
2626
+ no @theme variables, no design tokens, since theme.css already provides those. */
2624
2627
  @import './library-utilities.css';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcc-code/component-library-vue",
3
- "version": "1.3.15",
3
+ "version": "1.3.16",
4
4
  "type": "module",
5
5
  "description": "Extended Vue component library based on PrimeVue and BCC design tokens",
6
6
  "repository": "https://github.com/bcc-code/bcc-design.git",
@@ -30,6 +30,7 @@
30
30
  },
31
31
  "./style.css": "./dist/index.css",
32
32
  "./theme.css": "./dist/theme.css",
33
+ "./sfc-styles.css": "./dist/sfc-styles.css",
33
34
  "./library-utilities.css": "./dist/library-utilities.css",
34
35
  "./archivo-font.css": "./dist/archivo-font.css",
35
36
  "./tailwind.css": "./dist-css/tailwind.css"
@@ -38,7 +39,8 @@
38
39
  "start": "storybook dev -p 6006",
39
40
  "build-storybook": "storybook build",
40
41
  "build": "run-p typecheck build:types build:vite",
41
- "build:vite": "rimraf dist && vite build && pnpm run build:library-utilities && node scripts/build-theme-css.mjs",
42
+ "build:vite": "rimraf dist && vite build && pnpm run build:sfc-styles && pnpm run build:library-utilities && node scripts/build-theme-css.mjs",
43
+ "build:sfc-styles": "vite build --config vite.config.sfc-styles.ts && rimraf dist/sfc-styles.js",
42
44
  "build:library-utilities": "tailwindcss -i src/library-utilities-input.css -o dist/library-utilities.css --minify",
43
45
  "build:types": "rimraf dist-types && vue-tsc -p tsconfig.build.json",
44
46
  "generate:semantic": "node scripts/restructure-semantic-primitives.mjs",