@bcc-code/component-library-vue 0.0.0-dev.680941c → 0.0.0-dev.6c4e9f3

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.
@@ -0,0 +1 @@
1
+ .p-button.useCtx{--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
@@ -1704,27 +1704,12 @@
1704
1704
 
1705
1705
 
1706
1706
 
1707
- /* === ./styles/fonts.css === */
1708
- @utility heading-xs { font: var(--heading-xs); }
1709
- @utility heading-sm { font: var(--heading-sm); }
1710
- @utility heading-md { font: var(--heading-md); }
1711
- @utility heading-lg { font: var(--heading-lg); }
1712
- @utility heading-xl { font: var(--heading-xl); }
1713
- @utility heading-2xl { font: var(--heading-2xl); }
1714
- @utility heading-3xl { font: var(--heading-3xl); }
1715
- @utility heading-4xl { font: var(--heading-4xl); }
1716
- @utility heading-5xl { font: var(--heading-5xl); }
1717
- @utility body-sm { font: var(--body-sm); }
1718
- @utility body-md { font: var(--body-md); }
1719
- @utility body-lg { font: var(--body-lg); }
1720
-
1721
-
1722
-
1723
1707
  /* === ./styles/component-overrides.css === */
1724
1708
  /** Custom styles to fix primevue components that are not custom or wrapped. */
1725
1709
 
1726
1710
  :root {
1727
- --p-toast-width: min(85vw, 400px);
1711
+ --p-toast-width: min(85vw, calc(var(--spacing) * 100));
1712
+ --p-tooltip-max-width: min(85vw, calc(var(--spacing) * 100));
1728
1713
  }
1729
1714
 
1730
1715
  /**
@@ -1885,7 +1870,8 @@
1885
1870
  }
1886
1871
 
1887
1872
  .p-message-text {
1888
- line-height: var(--p-message-text-line-height);
1873
+ line-height: 1;
1874
+ flex: 1 1 0;
1889
1875
  }
1890
1876
 
1891
1877
  .p-multiselect {
@@ -2018,7 +2004,7 @@
2018
2004
  /* from ./BccBadge/BccBadge.css */
2019
2005
  @layer components {
2020
2006
  .bcc-badge {
2021
- @apply inline-flex shrink-0 items-center justify-center gap-1 rounded-full leading-none whitespace-nowrap;
2007
+ @apply inline-flex shrink-0 items-center justify-center gap-1 rounded-full leading-none font-medium! whitespace-nowrap;
2022
2008
 
2023
2009
  @apply bg-ctx text-ctx;
2024
2010
  }
@@ -2210,43 +2196,52 @@
2210
2196
 
2211
2197
  /* from ./BccGraphic/BccGraphic.css */
2212
2198
  @layer components {
2213
- .bcc-graphic .corner,
2214
- .bcc-graphic .center-slot {
2215
- @apply absolute z-10;
2216
- }
2217
- .bcc-graphic .corner.top-left {
2218
- @apply left-4 top-4;
2219
- }
2220
- .bcc-graphic .corner.top-right {
2221
- @apply right-4 top-4;
2222
- }
2223
- .bcc-graphic .corner.bottom-right {
2224
- @apply bottom-4 right-4;
2225
- }
2226
- .bcc-graphic .corner.bottom-left {
2227
- @apply bottom-4 left-4;
2228
- }
2229
- .bcc-graphic .center-slot {
2230
- @apply inset-1/4 h-1/2 w-1/2 flex items-center justify-center;
2231
- }
2199
+ .bcc-graphic .corner,
2200
+ .bcc-graphic .center-slot {
2201
+ @apply absolute z-10;
2202
+ }
2203
+ .bcc-graphic .corner.top-left {
2204
+ @apply top-4 left-4;
2205
+ }
2206
+ .bcc-graphic .corner.top-right {
2207
+ @apply top-4 right-4;
2208
+ }
2209
+ .bcc-graphic .corner.bottom-right {
2210
+ @apply right-4 bottom-4;
2211
+ }
2212
+ .bcc-graphic .corner.bottom-left {
2213
+ @apply bottom-4 left-4;
2214
+ }
2215
+ .bcc-graphic .center-slot {
2216
+ @apply inset-1/4 flex h-1/2 w-1/2 items-center justify-center;
2217
+ }
2232
2218
 
2233
- .bcc-graphic {
2234
- @apply relative flex max-h-full w-full bg-linear-to-tr from-background-brand-bolder-default to-background-brand-subtle-default;
2235
- }
2219
+ .bcc-graphic {
2220
+ @apply from-background-brand-bolder-default to-background-brand-subtle-default relative flex max-h-full w-full bg-linear-to-tr;
2221
+ }
2236
2222
 
2237
- .bcc-graphic-banner {
2238
- @apply absolute inset-0 h-full w-full object-cover object-center;
2239
- }
2240
- .bcc-graphic-banner--loading {
2241
- @apply animate-pulse bg-linear-to-tr from-background-brand-bolder-default to-background-brand-subtle-default;
2242
- }
2223
+ .bcc-graphic-banner {
2224
+ @apply absolute inset-0 h-full w-full object-cover object-center;
2225
+ }
2226
+ .bcc-graphic-banner--loading {
2227
+ @apply from-background-brand-bolder-default to-background-brand-subtle-default animate-pulse bg-linear-to-tr;
2228
+ }
2243
2229
 
2244
- .bcc-graphic-logo {
2245
- @apply absolute inset-1/4 h-1/2 w-1/2 object-contain object-center;
2246
- }
2247
- .bcc-graphic-logo--loading {
2248
- @apply animate-pulse bg-black opacity-10 blur-sm;
2249
- }
2230
+ .bcc-graphic-logo {
2231
+ @apply absolute inset-1/4 h-1/2 w-1/2 object-contain object-center;
2232
+ }
2233
+ .bcc-graphic-logo--loading {
2234
+ @apply animate-pulse bg-black opacity-10 blur-sm;
2235
+ }
2236
+
2237
+ .bcc-graphic.bcc-gb-grayscale .bcc-graphic-banner,
2238
+ .bcc-graphic.bcc-gb-grayscale .bcc-graphic-logo {
2239
+ @apply brightness-75 grayscale;
2240
+ }
2241
+ .bcc-graphic.bcc-gb-highlight .bcc-graphic-banner,
2242
+ .bcc-graphic.bcc-gb-highlight .bcc-graphic-logo {
2243
+ @apply brightness-150;
2244
+ }
2250
2245
  }
2251
2246
 
2252
2247
 
@@ -2630,3 +2625,12 @@ strong,
2630
2625
  cursor: not-allowed;
2631
2626
  pointer-events: none;
2632
2627
  }
2628
+
2629
+
2630
+ /* SFC <style> blocks extracted all .vue components */
2631
+ @import './sfc-styles.css';
2632
+
2633
+ /* Library utility classes, compiled from the library's own components.
2634
+ Contains only the utility class rules used inside the library — no preflight,
2635
+ no @theme variables, no design tokens, since theme.css already provides those. */
2636
+ @import './library-utilities.css';
@@ -5,6 +5,7 @@ export type BccAppNavigationItem = {
5
5
  title: string;
6
6
  icon: Component;
7
7
  pin?: number;
8
+ is?: VueComponent;
8
9
  /** Any additional properties will be passed to the component.
9
10
  * @example
10
11
  * {
@@ -4,9 +4,9 @@ declare const __VLS_export: import("vue").DefineComponent<ReactProps, {}, {}, {}
4
4
  }, string, import("vue").PublicProps, Readonly<ReactProps> & Readonly<{
5
5
  onToggle?: ((id: string) => any) | undefined;
6
6
  }>, {
7
- placeholder: string;
8
7
  top: boolean;
9
8
  emojis: ReactInfo[];
9
+ placeholder: string;
10
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
11
  declare const _default: typeof __VLS_export;
12
12
  export default _default;
@@ -5,7 +5,6 @@
5
5
  export { default as BccAppNavigation } from './BccAppNavigation/BccAppNavigation.vue';
6
6
  export { default as BccBadge } from './BccBadge/BccBadge.vue';
7
7
  export { default as BccCapacityIndicator } from './BccCapacityIndicator/BccCapacityIndicator.vue';
8
- export { default as BccCircleLoader } from './BccCircleLoader/BccCircleLoader.vue';
9
8
  export { default as BccDialKnob } from './BccDialKnob/BccDialKnob.vue';
10
9
  export { default as BccFrame } from './BccFrame/BccFrame.vue';
11
10
  export { default as BccGraphic } from './BccGraphic/BccGraphic.vue';
@@ -5,11 +5,12 @@ export type ButtonProps = {
5
5
  iconRight?: boolean;
6
6
  iconClass?: PrimeButtonProps['iconClass'];
7
7
  size?: PrimeButtonProps['size'];
8
+ loadingIcon?: VueComponent;
8
9
  useCtx?: boolean;
9
- } & /* @vue-ignore */ Omit<PrimeButtonProps, 'icon' | 'iconPos'>;
10
- declare var __VLS_14: {};
10
+ } & /* @vue-ignore */ Omit<PrimeButtonProps, 'icon' | 'iconPos' | 'loadingIcon'>;
11
+ declare var __VLS_20: {};
11
12
  type __VLS_Slots = {} & {
12
- default?: (props: typeof __VLS_14) => any;
13
+ default?: (props: typeof __VLS_20) => any;
13
14
  };
14
15
  declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
16
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -2,6 +2,9 @@ import { type CheckboxProps as PrimeCheckboxProps } from 'primevue/checkbox';
2
2
  export type CheckboxProps = PrimeCheckboxProps & {
3
3
  label?: string;
4
4
  labelLeft?: boolean;
5
+ justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
6
+ labelClass?: string;
7
+ fluid?: boolean;
5
8
  };
6
9
  declare var __VLS_18: {};
7
10
  type __VLS_Slots = {} & {
@@ -6,9 +6,13 @@ export type MessageProps = Omit<PrimeMessageProps, 'icon'> & {
6
6
  title?: string;
7
7
  message?: string;
8
8
  };
9
- declare var __VLS_19: {};
9
+ declare var __VLS_19: {}, __VLS_21: {}, __VLS_23: {};
10
10
  type __VLS_Slots = {} & {
11
11
  default?: (props: typeof __VLS_19) => any;
12
+ } & {
13
+ title?: (props: typeof __VLS_21) => any;
14
+ } & {
15
+ message?: (props: typeof __VLS_23) => any;
12
16
  };
13
17
  declare const __VLS_base: import("vue").DefineComponent<MessageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MessageProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -4,6 +4,7 @@ export type RadioButtonProps = PrimeRadioButtonProps & {
4
4
  labelLeft?: boolean;
5
5
  justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
6
6
  labelClass?: string;
7
+ fluid?: boolean;
7
8
  };
8
9
  declare var __VLS_6: {};
9
10
  type __VLS_Slots = {} & {
@@ -57,6 +57,7 @@ export { default as BccDivider } from 'primevue/divider';
57
57
  export { default as BccDock } from 'primevue/dock';
58
58
  export { default as BccDrawer } from 'primevue/drawer';
59
59
  export { default as BccDynamicDialog } from 'primevue/dynamicdialog';
60
+ export { default as BccEditor } from 'primevue/editor';
60
61
  export { default as BccFieldset } from 'primevue/fieldset';
61
62
  export { default as BccFileUpload } from 'primevue/fileupload';
62
63
  export { default as BccFloatLabel } from 'primevue/floatlabel';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcc-code/component-library-vue",
3
- "version": "0.0.0-dev.680941c",
3
+ "version": "0.0.0-dev.6c4e9f3",
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,8 @@
30
30
  },
31
31
  "./style.css": "./dist/index.css",
32
32
  "./theme.css": "./dist/theme.css",
33
+ "./sfc-styles.css": "./dist/sfc-styles.css",
34
+ "./library-utilities.css": "./dist/library-utilities.css",
33
35
  "./archivo-font.css": "./dist/archivo-font.css",
34
36
  "./tailwind.css": "./dist-css/tailwind.css"
35
37
  },
@@ -37,7 +39,9 @@
37
39
  "start": "storybook dev -p 6006",
38
40
  "build-storybook": "storybook build",
39
41
  "build": "run-p typecheck build:types build:vite",
40
- "build:vite": "rimraf dist && vite build && 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-archivo-font.mjs && node scripts/build-theme-css.mjs",
43
+ "build:sfc-styles": "vite build --config vite.config.sfc-styles.ts && rimraf dist/sfc-styles.js",
44
+ "build:library-utilities": "tailwindcss -i src/library-utilities-input.css -o dist/library-utilities.css --minify",
41
45
  "build:types": "rimraf dist-types && vue-tsc -p tsconfig.build.json",
42
46
  "generate:semantic": "node scripts/restructure-semantic-primitives.mjs",
43
47
  "generate:semantic-css": "node scripts/generate-semantic-css.mjs",
@@ -54,7 +58,7 @@
54
58
  "create-version": "node ./scripts/version.cjs"
55
59
  },
56
60
  "dependencies": {
57
- "@bcc-code/design-tokens": "^5.2.4",
61
+ "@bcc-code/design-tokens": "^5.2.5",
58
62
  "@bcc-code/icons-vue": "^1.4.0",
59
63
  "@primeuix/themes": "^2.0.3",
60
64
  "@tailwindcss/vite": "^4.1.18",
@@ -70,6 +74,7 @@
70
74
  "@primevue/auto-import-resolver": "^4.5.4",
71
75
  "@storybook/addon-docs": "^10.3.5",
72
76
  "@storybook/vue3-vite": "^10.3.5",
77
+ "@tailwindcss/cli": "^4.2.4",
73
78
  "@types/node": "^22.0.0",
74
79
  "@vitejs/plugin-vue": "^6.0.0",
75
80
  "@vue/eslint-config-prettier": "^10.2.0",
@@ -87,6 +92,7 @@
87
92
  "postcss": "^8.4.49",
88
93
  "prettier": "^3.8.1",
89
94
  "prettier-plugin-tailwindcss": "^0.7.2",
95
+ "quill": "^2.0.3",
90
96
  "remark-gfm": "^4.0.0",
91
97
  "rimraf": "^6.0.0",
92
98
  "storybook": "^10.3.5",
@@ -1,11 +0,0 @@
1
- type __VLS_Props = {
2
- icon?: string;
3
- size?: 'sm' | 'md' | 'base' | 'lg' | 'xl' | '2xl' | '3xl';
4
- left?: boolean;
5
- right?: boolean;
6
- };
7
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
- size: "sm" | "md" | "base" | "lg" | "xl" | "2xl" | "3xl";
9
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
- declare const _default: typeof __VLS_export;
11
- export default _default;