@bcc-code/component-library-vue 0.0.0-dev.95bf9c4 → 0.0.0-dev.9a9ab63

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/dist/theme.css CHANGED
@@ -1925,6 +1925,9 @@
1925
1925
  .bcc-badge.capital {
1926
1926
  @apply inline-flex;
1927
1927
  }
1928
+ .bcc-badge.gradient {
1929
+ @apply ctx-gradient;
1930
+ }
1928
1931
  .bcc-badge.sm {
1929
1932
  @apply w-4 h-4 text-heading-xs;
1930
1933
  }
@@ -2375,91 +2378,76 @@
2375
2378
 
2376
2379
  /* from ./BccAvatar/BccAvatar.css */
2377
2380
  @layer components {
2378
- .bcc-avatar {
2379
- --p-avatar-background: var(--ctx-background);
2380
- --p-avatar-color: var(--ctx-text);
2381
- --bcc-avatar-border: var(--ctx-border);
2382
- @apply overflow-hidden shrink-0 ctx-gray-subtler text-sm;
2383
- }
2384
-
2385
- .bcc-avatar .icon {
2386
- height: var(--icon-size-sm);
2387
- }
2381
+ .bcc-avatar {
2382
+ --p-avatar-background: var(--ctx-background);
2383
+ --p-avatar-color: var(--ctx-text);
2384
+ --bcc-avatar-border: var(--ctx-border);
2385
+ --p-icon-size: var(--icon-size-sm);
2386
+ @apply ctx-gray-subtler shrink-0 overflow-hidden text-sm;
2387
+ }
2388
2388
 
2389
- .bcc-avatar.male,
2390
- .bcc-avatar.M {
2391
- @apply ctx-blue-subtler;
2392
- }
2393
- .bcc-avatar.female,
2394
- .bcc-avatar.F {
2395
- @apply ctx-purple-subtler;
2396
- }
2397
- .bcc-avatar.male.child,
2398
- .bcc-avatar.M.child {
2399
- @apply ctx-teal-subtler;
2400
- }
2401
- .bcc-avatar.female.child,
2402
- .bcc-avatar.F.child {
2403
- @apply ctx-magenta-subtler;
2404
- }
2405
- .bcc-avatar.bordered {
2406
- @apply border-2 border-ctx;
2407
- }
2408
- .bcc-avatar.xs {
2409
- @apply size-5 text-xs;
2410
- }
2411
- .bcc-avatar.xs .icon {
2412
- height: var(--icon-size-xs);
2413
- }
2414
- .bcc-avatar.sm {
2415
- @apply size-6 text-xs;
2416
- }
2417
- .bcc-avatar.sm .icon {
2418
- height: var(--icon-size-xs);
2419
- }
2420
- .bcc-avatar.md {
2421
- /* same as default */
2422
- }
2423
- .bcc-avatar.md .icon {
2424
- /* same as default */
2425
- }
2426
- .bcc-avatar.lg {
2427
- @apply size-10 text-md;
2428
- }
2429
- .bcc-avatar.lg .icon {
2430
- height: var(--icon-size-md);
2431
- }
2432
- .bcc-avatar.xl {
2433
- @apply size-12 text-xl;
2434
- }
2435
- .bcc-avatar.xl .icon {
2436
- height: var(--icon-size-lg);
2437
- }
2438
- .bcc-avatar.xxl {
2439
- @apply size-20 text-3xl;
2440
- }
2441
- .bcc-avatar.xxl .icon {
2442
- height: var(--icon-size-xl);
2443
- }
2444
- .bcc-avatar.xxxl {
2445
- @apply size-24 text-4xl;
2446
- }
2447
- .bcc-avatar.xxxl .icon {
2448
- height: var(--icon-size-xl);
2449
- }
2389
+ .bcc-avatar.male,
2390
+ .bcc-avatar.M {
2391
+ @apply ctx-blue-subtler;
2392
+ }
2393
+ .bcc-avatar.female,
2394
+ .bcc-avatar.F {
2395
+ @apply ctx-purple-subtler;
2396
+ }
2397
+ .bcc-avatar.male.child,
2398
+ .bcc-avatar.M.child {
2399
+ @apply ctx-teal-subtler;
2400
+ }
2401
+ .bcc-avatar.female.child,
2402
+ .bcc-avatar.F.child {
2403
+ @apply ctx-magenta-subtler;
2404
+ }
2405
+ .bcc-avatar.bordered {
2406
+ @apply border-ctx border-2;
2407
+ }
2408
+ .bcc-avatar.xs {
2409
+ @apply size-5 text-xs;
2410
+ }
2411
+ .bcc-avatar.xs .icon {
2412
+ --p-icon-size: var(--icon-size-xs);
2413
+ }
2414
+ .bcc-avatar.sm {
2415
+ @apply size-6 text-xs;
2416
+ --p-icon-size: var(--icon-size-xs);
2417
+ }
2418
+ /* .bcc-avatar.md {
2419
+ same as default
2420
+ }*/
2421
+ .bcc-avatar.lg {
2422
+ @apply text-md size-10;
2423
+ --p-icon-size: var(--icon-size-md);
2424
+ }
2425
+ .bcc-avatar.xl {
2426
+ @apply size-12 text-xl;
2427
+ --p-icon-size: var(--icon-size-lg);
2428
+ }
2429
+ .bcc-avatar.xxl {
2430
+ @apply size-20 text-3xl;
2431
+ --p-icon-size: var(--icon-size-xl);
2432
+ }
2433
+ .bcc-avatar.xxxl {
2434
+ @apply size-24 text-4xl;
2435
+ --p-icon-size: var(--icon-size-xl);
2436
+ }
2450
2437
 
2451
- .p-overlaybadge .bcc-avatar.p-avatar-circle.lg~.p-badge,
2452
- .p-overlaybadge .bcc-avatar.p-avatar-circle.xl~.p-badge {
2453
- transform: translate(40%, -40%);
2454
- }
2438
+ .p-overlaybadge .bcc-avatar.p-avatar-circle.lg ~ .p-badge,
2439
+ .p-overlaybadge .bcc-avatar.p-avatar-circle.xl ~ .p-badge {
2440
+ transform: translate(40%, -40%);
2441
+ }
2455
2442
 
2456
- .p-overlaybadge .bcc-avatar.p-avatar-circle.xxxl~.p-badge,
2457
- .p-overlaybadge .bcc-avatar.p-avatar-circle.xxl~.p-badge {
2458
- transform: translate(20%, -20%);
2459
- }
2443
+ .p-overlaybadge .bcc-avatar.p-avatar-circle.xxxl ~ .p-badge,
2444
+ .p-overlaybadge .bcc-avatar.p-avatar-circle.xxl ~ .p-badge {
2445
+ transform: translate(20%, -20%);
2446
+ }
2460
2447
  }
2461
2448
 
2462
2449
 
2450
+
2463
2451
  /* from ./BccTabs/BccTabs.css */
2464
2452
  @layer components {
2465
2453
  .bcc-tabs-fill.p-tabs {
@@ -13,6 +13,7 @@ export type BadgeProps = {
13
13
  squared?: boolean;
14
14
  /** Design context (e.g. neutral, brand) used for background and text color. */
15
15
  context?: BCC_CONTEXT;
16
+ gradient?: boolean;
16
17
  };
17
18
  declare var __VLS_1: {};
18
19
  type __VLS_Slots = {} & {
@@ -21,6 +22,7 @@ type __VLS_Slots = {} & {
21
22
  declare const __VLS_base: import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
22
23
  size: "sm" | "md" | "lg" | "xl";
23
24
  context: BCC_CONTEXT;
25
+ gradient: boolean;
24
26
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
27
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
28
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,17 @@
1
+ import { type ImageProps as PrimeImageProps } from 'primevue/image';
2
+ export type ImageProps = PrimeImageProps;
3
+ declare var __VLS_9: {}, __VLS_17: {};
4
+ type __VLS_Slots = {} & {
5
+ refresh?: (props: typeof __VLS_9) => any;
6
+ } & {
7
+ undo?: (props: typeof __VLS_17) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<PrimeImageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PrimeImageProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -1,5 +1,5 @@
1
1
  import type { VueComponent } from '@/types';
2
- import { type MenuProps as PrimeMenuProps } from 'primevue/menu';
2
+ import { type MenuMethods as PrimeMenuMethods, type MenuProps as PrimeMenuProps } from 'primevue/menu';
3
3
  import type { MenuItem } from 'primevue/menuitem';
4
4
  /** Menu item model for BccMenu: icon can be a PrimeVue icon class string or a Vue icon component. */
5
5
  export type BccMenuItem = Omit<MenuItem, 'icon' | 'items'> & {
@@ -9,10 +9,6 @@ export type BccMenuItem = Omit<MenuItem, 'icon' | 'items'> & {
9
9
  export type MenuProps = {
10
10
  model?: BccMenuItem[];
11
11
  } & Omit<PrimeMenuProps, 'model'>;
12
- declare const __VLS_export: import("vue").DefineComponent<MenuProps, {
13
- toggle: (event: Event, target?: unknown) => void | undefined;
14
- show: (event: Event, target?: unknown) => void | undefined;
15
- hide: () => void | undefined;
16
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MenuProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_export: import("vue").DefineComponent<MenuProps, PrimeMenuMethods, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MenuProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
13
  declare const _default: typeof __VLS_export;
18
14
  export default _default;
@@ -14,10 +14,15 @@ export type ToggleProps = ToggleSwitchProps & {
14
14
  /** When true, applies context-aware styling (e.g. from design tokens/theme). */
15
15
  useCtx?: boolean;
16
16
  };
17
- declare const __VLS_export: import("vue").DefineComponent<ToggleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
18
- "update:modelValue": (value: string | boolean | undefined) => any;
19
- }, string, import("vue").PublicProps, Readonly<ToggleProps> & Readonly<{
20
- "onUpdate:modelValue"?: ((value: string | boolean | undefined) => any) | undefined;
17
+ type __VLS_Props = ToggleProps;
18
+ type __VLS_ModelProps = {
19
+ modelValue: boolean;
20
+ };
21
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
22
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ "update:modelValue": (value: boolean) => any;
24
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
25
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
21
26
  }>, {
22
27
  defaultValue: string | boolean;
23
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -7,6 +7,7 @@ export { default as BccButton } from './BccButton.vue';
7
7
  export { default as BccCheckbox } from './BccCheckbox.vue';
8
8
  export { default as BccChip } from './BccChip/BccChip.vue';
9
9
  export { default as BccConfirmDialog } from './BccConfirmDialog/BccConfirmDialog.vue';
10
+ export { default as BccImage } from './BccImage.vue';
10
11
  export { default as BccInput } from './BccInput.vue';
11
12
  export { default as BccMenu } from './BccMenu/BccMenu.vue';
12
13
  export { default as BccMessage } from './BccMessage.vue';
@@ -17,6 +18,7 @@ export type { AvatarProps } from './BccAvatar/BccAvatar.vue';
17
18
  export type { ButtonProps } from './BccButton.vue';
18
19
  export type { CheckboxProps } from './BccCheckbox.vue';
19
20
  export type { ChipProps } from './BccChip/BccChip.vue';
21
+ export type { ImageProps } from './BccImage.vue';
20
22
  export type { InputProps } from './BccInput.vue';
21
23
  export type { BccMenuItem, MenuProps } from './BccMenu/BccMenu.vue';
22
24
  export type { MessageProps } from './BccMessage.vue';
@@ -65,7 +65,6 @@ export { default as BccFocusTrap } from 'primevue/focustrap';
65
65
  export { default as BccGalleria } from 'primevue/galleria';
66
66
  export { default as BccIconField } from 'primevue/iconfield';
67
67
  export { default as BccIftaLabel } from 'primevue/iftalabel';
68
- export { default as BccImage } from 'primevue/image';
69
68
  export { default as BccImageCompare } from 'primevue/imagecompare';
70
69
  export { default as BccInplace } from 'primevue/inplace';
71
70
  export { default as BccInputChips } from 'primevue/inputchips';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcc-code/component-library-vue",
3
- "version": "0.0.0-dev.95bf9c4",
3
+ "version": "0.0.0-dev.9a9ab63",
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",
@@ -53,7 +53,7 @@
53
53
  "create-version": "node ./scripts/version.cjs"
54
54
  },
55
55
  "dependencies": {
56
- "@bcc-code/design-tokens": "^5.1.34",
56
+ "@bcc-code/design-tokens": "^5.1.42",
57
57
  "@bcc-code/icons-vue": "^1.4.0",
58
58
  "@primeuix/themes": "^2.0.3",
59
59
  "@tailwindcss/vite": "^4.1.18",