@bcc-code/component-library-vue 0.0.0-dev.c2cb2dd → 0.0.0-dev.d519e03

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
@@ -1901,6 +1901,14 @@
1901
1901
  z-index: 2;
1902
1902
  }
1903
1903
 
1904
+ .p-dialog-close-button .p-icon {
1905
+ height: var(--icon-size-sm);
1906
+ width: var(--icon-size-sm);
1907
+ }
1908
+ .p-dialog .p-button-icon:empty {
1909
+ display: none;
1910
+ }
1911
+
1904
1912
 
1905
1913
 
1906
1914
 
@@ -1917,6 +1925,9 @@
1917
1925
  .bcc-badge.capital {
1918
1926
  @apply inline-flex;
1919
1927
  }
1928
+ .bcc-badge.gradient {
1929
+ @apply ctx-gradient;
1930
+ }
1920
1931
  .bcc-badge.sm {
1921
1932
  @apply w-4 h-4 text-heading-xs;
1922
1933
  }
@@ -2371,8 +2382,13 @@
2371
2382
  --p-avatar-background: var(--ctx-background);
2372
2383
  --p-avatar-color: var(--ctx-text);
2373
2384
  --bcc-avatar-border: var(--ctx-border);
2374
- @apply overflow-hidden shrink-0 ctx-gray-subtler;
2385
+ @apply overflow-hidden shrink-0 ctx-gray-subtler text-sm;
2375
2386
  }
2387
+
2388
+ .bcc-avatar .icon {
2389
+ height: var(--icon-size-sm);
2390
+ }
2391
+
2376
2392
  .bcc-avatar.male,
2377
2393
  .bcc-avatar.M {
2378
2394
  @apply ctx-blue-subtler;
@@ -2395,36 +2411,44 @@
2395
2411
  .bcc-avatar.xs {
2396
2412
  @apply size-5 text-xs;
2397
2413
  }
2414
+ .bcc-avatar.xs .icon {
2415
+ height: var(--icon-size-xs);
2416
+ }
2398
2417
  .bcc-avatar.sm {
2399
- @apply size-6 text-sm;
2418
+ @apply size-6 text-xs;
2419
+ }
2420
+ .bcc-avatar.sm .icon {
2421
+ height: var(--icon-size-xs);
2400
2422
  }
2401
2423
  .bcc-avatar.md {
2402
- @apply size-8 text-base;
2424
+ /* same as default */
2425
+ }
2426
+ .bcc-avatar.md .icon {
2427
+ /* same as default */
2403
2428
  }
2404
2429
  .bcc-avatar.lg {
2405
- @apply size-10 text-lg;
2430
+ @apply size-10 text-md;
2431
+ }
2432
+ .bcc-avatar.lg .icon {
2433
+ height: var(--icon-size-md);
2406
2434
  }
2407
2435
  .bcc-avatar.xl {
2408
2436
  @apply size-12 text-xl;
2409
2437
  }
2438
+ .bcc-avatar.xl .icon {
2439
+ height: var(--icon-size-lg);
2440
+ }
2410
2441
  .bcc-avatar.xxl {
2411
2442
  @apply size-20 text-3xl;
2412
2443
  }
2444
+ .bcc-avatar.xxl .icon {
2445
+ height: var(--icon-size-xl);
2446
+ }
2413
2447
  .bcc-avatar.xxxl {
2414
2448
  @apply size-24 text-4xl;
2415
2449
  }
2416
-
2417
- .bcc-avatar.squared.lg {
2418
- @apply text-xl;
2419
- }
2420
- .bcc-avatar.squared.xl {
2421
- @apply text-2xl;
2422
- }
2423
- .bcc-avatar.squared.xxl {
2424
- @apply text-4xl;
2425
- }
2426
- .bcc-avatar.squared.xxxl {
2427
- @apply text-5xl;
2450
+ .bcc-avatar.xxxl .icon {
2451
+ height: var(--icon-size-xl);
2428
2452
  }
2429
2453
 
2430
2454
  .p-overlaybadge .bcc-avatar.p-avatar-circle.lg~.p-badge,
@@ -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;
@@ -12,7 +12,7 @@ export type AvatarProps = Omit<PrimeAvatarProps, 'shape' | 'size'> & {
12
12
  /** Adds a visible border around the avatar. */
13
13
  bordered?: boolean;
14
14
  /** Controls the avatar dimensions; maps to CSS size classes (xs through xxl). Default: md */
15
- size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
15
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
16
16
  };
17
17
  declare const __VLS_export: import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
18
  declare const _default: typeof __VLS_export;
@@ -1,14 +1,18 @@
1
1
  import type { VueComponent } from '@/types';
2
+ import { type MenuProps as PrimeMenuProps } from 'primevue/menu';
2
3
  import type { MenuItem } from 'primevue/menuitem';
3
4
  /** Menu item model for BccMenu: icon can be a PrimeVue icon class string or a Vue icon component. */
4
5
  export type BccMenuItem = Omit<MenuItem, 'icon' | 'items'> & {
5
- icon?: string | VueComponent;
6
+ icon?: VueComponent;
6
7
  items?: BccMenuItem[];
7
8
  };
8
- declare const __VLS_export: import("vue").DefineComponent<{}, {
9
+ export type MenuProps = {
10
+ model?: BccMenuItem[];
11
+ } & Omit<PrimeMenuProps, 'model'>;
12
+ declare const __VLS_export: import("vue").DefineComponent<MenuProps, {
9
13
  toggle: (event: Event, target?: unknown) => void | undefined;
10
14
  show: (event: Event, target?: unknown) => void | undefined;
11
15
  hide: () => void | undefined;
12
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
16
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MenuProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
17
  declare const _default: typeof __VLS_export;
14
18
  export default _default;
@@ -15,9 +15,9 @@ export type ToggleProps = ToggleSwitchProps & {
15
15
  useCtx?: boolean;
16
16
  };
17
17
  declare const __VLS_export: import("vue").DefineComponent<ToggleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
18
- "update:modelValue": (value: string | boolean | undefined) => any;
18
+ "update:modelValue": (value: boolean) => any;
19
19
  }, string, import("vue").PublicProps, Readonly<ToggleProps> & Readonly<{
20
- "onUpdate:modelValue"?: ((value: string | boolean | undefined) => any) | undefined;
20
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
21
21
  }>, {
22
22
  defaultValue: string | boolean;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -6,6 +6,7 @@ export { default as BccAvatar } from './BccAvatar/BccAvatar.vue';
6
6
  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
+ export { default as BccConfirmDialog } from './BccConfirmDialog/BccConfirmDialog.vue';
9
10
  export { default as BccInput } from './BccInput.vue';
10
11
  export { default as BccMenu } from './BccMenu/BccMenu.vue';
11
12
  export { default as BccMessage } from './BccMessage.vue';
@@ -17,7 +18,7 @@ export type { ButtonProps } from './BccButton.vue';
17
18
  export type { CheckboxProps } from './BccCheckbox.vue';
18
19
  export type { ChipProps } from './BccChip/BccChip.vue';
19
20
  export type { InputProps } from './BccInput.vue';
20
- export type { BccMenuItem } from './BccMenu/BccMenu.vue';
21
+ export type { BccMenuItem, MenuProps } from './BccMenu/BccMenu.vue';
21
22
  export type { MessageProps } from './BccMessage.vue';
22
23
  export type { TabItem, TabsProps } from './BccTabs/BccTabs.vue';
23
24
  export type { ToggleProps } from './BccToggle/BccToggle.vue';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcc-code/component-library-vue",
3
- "version": "0.0.0-dev.c2cb2dd",
3
+ "version": "0.0.0-dev.d519e03",
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",