@bcc-code/component-library-vue 0.0.0-dev.aab0e5c → 0.0.0-dev.b02dfbe

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
@@ -1,10 +1,10 @@
1
1
  /* Layer order: Tailwind base/utilities first, then PrimeVue so component styles win */
2
2
  @layer theme, base, tailwind, primevue;
3
- @import "@bcc-code/design-tokens/css";
3
+ @import '@bcc-code/design-tokens/css';
4
4
 
5
- @import "tailwindcss";
6
- @import "@bcc-code/design-tokens/tailwind";
7
- @import "@bcc-code/design-tokens/primevue/overrides";
5
+ @import 'tailwindcss';
6
+ @import '@bcc-code/design-tokens/tailwind';
7
+ @import '@bcc-code/design-tokens/primevue/overrides';
8
8
 
9
9
 
10
10
  /* === ./styles/theme.css === */
@@ -1824,7 +1824,6 @@
1824
1824
  /* === ./styles/component-overrides.css === */
1825
1825
  /** Custom styles to fix primevue components that are not custom or wrapped. */
1826
1826
 
1827
-
1828
1827
  /**
1829
1828
  * GUTTER FIX
1830
1829
  * Primevue's dropwdown components are all missing the gap between input and dropdown
@@ -1853,6 +1852,12 @@
1853
1852
  --p-form-field-lg-font-size: var(--icon-size-md);
1854
1853
  }
1855
1854
 
1855
+ .p-autocomplete .p-autocomplete-clear-icon {
1856
+ /** middle-align the icon */
1857
+ top: calc(50% - var(--icon-size-sm) / 2);
1858
+ margin-top: 0;
1859
+ }
1860
+
1856
1861
  .p-autocomplete-clearable .p-inputtext {
1857
1862
  flex-grow: 1;
1858
1863
  }
@@ -1865,32 +1870,40 @@
1865
1870
 
1866
1871
  /**
1867
1872
  * BccSelect
1868
- **/
1873
+ **/
1869
1874
  .p-select {
1870
1875
  --p-icon-size: var(--icon-size-sm);
1871
1876
  }
1872
1877
 
1873
- .p-select.inline {
1874
- @apply inline-flex items-center mx-auto w-auto border-0 bg-transparent shadow-none;
1878
+ .p-select.inline-select {
1879
+ @apply mx-auto inline-flex w-auto items-center border-0 bg-transparent shadow-none;
1875
1880
  --p-icon-size: 1.25em;
1876
- --p-select-dropdown-width: 1.5em;
1877
- --p-select-min-height: auto;
1881
+ --p-select-dropdown-width: 1.5em;
1882
+ --p-select-min-height: auto;
1878
1883
  }
1879
1884
 
1880
- .p-select.inline .p-select-label {
1881
- @apply font-semibold inline-block;
1882
- font-size: inherit;
1883
- padding: 0 0 0 0.25em;
1885
+ .p-select.inline-select .p-select-label {
1886
+ @apply inline-block font-semibold;
1887
+ font-size: inherit;
1888
+ padding: 0 0 0 0.25em;
1884
1889
  }
1885
1890
 
1886
- .p-select.inline.inverse {
1887
- --p-select-color: var(--color-neutral-0);
1891
+ .p-select.inline-select.inverse {
1892
+ --p-select-color: var(--color-neutral-0);
1888
1893
  --p-select-dropdown-color: var(--color-neutral-0);
1889
- --p-select-placeholder-color: var(--color-dark-neutral-1000);
1894
+ --p-select-placeholder-color: var(--color-dark-neutral-1000);
1895
+ }
1896
+
1897
+ /**
1898
+ * Fix issue with icons inside Input within an InputGroup being hidden when Input is in focus
1899
+ **/
1900
+ .p-inputicon {
1901
+ z-index: 2;
1890
1902
  }
1891
1903
 
1892
1904
 
1893
1905
 
1906
+
1894
1907
  /* === ./components/custom/styles.css === */
1895
1908
 
1896
1909
  /* from ./BccBadge/BccBadge.css */
@@ -2358,8 +2371,13 @@
2358
2371
  --p-avatar-background: var(--ctx-background);
2359
2372
  --p-avatar-color: var(--ctx-text);
2360
2373
  --bcc-avatar-border: var(--ctx-border);
2361
- @apply overflow-hidden shrink-0 ctx-gray-subtler;
2374
+ @apply overflow-hidden shrink-0 ctx-gray-subtler text-sm;
2375
+ }
2376
+
2377
+ .bcc-avatar .icon {
2378
+ height: var(--icon-size-sm);
2362
2379
  }
2380
+
2363
2381
  .bcc-avatar.male,
2364
2382
  .bcc-avatar.M {
2365
2383
  @apply ctx-blue-subtler;
@@ -2382,36 +2400,44 @@
2382
2400
  .bcc-avatar.xs {
2383
2401
  @apply size-5 text-xs;
2384
2402
  }
2403
+ .bcc-avatar.xs .icon {
2404
+ height: var(--icon-size-xs);
2405
+ }
2385
2406
  .bcc-avatar.sm {
2386
- @apply size-6 text-sm;
2407
+ @apply size-6 text-xs;
2408
+ }
2409
+ .bcc-avatar.sm .icon {
2410
+ height: var(--icon-size-xs);
2387
2411
  }
2388
2412
  .bcc-avatar.md {
2389
- @apply size-8 text-base;
2413
+ /* same as default */
2414
+ }
2415
+ .bcc-avatar.md .icon {
2416
+ /* same as default */
2390
2417
  }
2391
2418
  .bcc-avatar.lg {
2392
- @apply size-10 text-lg;
2419
+ @apply size-10 text-md;
2420
+ }
2421
+ .bcc-avatar.lg .icon {
2422
+ height: var(--icon-size-md);
2393
2423
  }
2394
2424
  .bcc-avatar.xl {
2395
2425
  @apply size-12 text-xl;
2396
2426
  }
2427
+ .bcc-avatar.xl .icon {
2428
+ height: var(--icon-size-lg);
2429
+ }
2397
2430
  .bcc-avatar.xxl {
2398
2431
  @apply size-20 text-3xl;
2399
2432
  }
2433
+ .bcc-avatar.xxl .icon {
2434
+ height: var(--icon-size-xl);
2435
+ }
2400
2436
  .bcc-avatar.xxxl {
2401
2437
  @apply size-24 text-4xl;
2402
2438
  }
2403
-
2404
- .bcc-avatar.squared.lg {
2405
- @apply text-xl;
2406
- }
2407
- .bcc-avatar.squared.xl {
2408
- @apply text-2xl;
2409
- }
2410
- .bcc-avatar.squared.xxl {
2411
- @apply text-4xl;
2412
- }
2413
- .bcc-avatar.squared.xxxl {
2414
- @apply text-5xl;
2439
+ .bcc-avatar.xxxl .icon {
2440
+ height: var(--icon-size-xl);
2415
2441
  }
2416
2442
 
2417
2443
  .p-overlaybadge .bcc-avatar.p-avatar-circle.lg~.p-badge,
@@ -2466,24 +2492,28 @@
2466
2492
 
2467
2493
 
2468
2494
 
2469
- :root, :host {
2495
+ :root,
2496
+ :host {
2470
2497
  --font-sans: 'Archivo', system-ui, sans-serif;
2471
- @apply font-sans antialiased p-0 m-0;
2472
- -webkit-font-smoothing: antialiased;
2473
- -moz-osx-font-smoothing: grayscale;
2498
+ @apply m-0 p-0 font-sans antialiased;
2499
+ -webkit-font-smoothing: antialiased;
2500
+ -moz-osx-font-smoothing: grayscale;
2501
+ }
2474
2502
 
2503
+ hr {
2504
+ border-color: var(--color-border-default);
2475
2505
  }
2476
2506
 
2477
2507
  b,
2478
2508
  strong,
2479
2509
  .bold {
2480
- font-weight: bold;
2481
- --ctx-text: var(--ctx-text-bold);
2510
+ font-weight: bold;
2511
+ --ctx-text: var(--ctx-text-bold);
2482
2512
  }
2483
2513
 
2484
2514
  /* Disable state */
2485
2515
  :disabled,
2486
2516
  .disabled {
2487
- cursor: not-allowed;
2488
- pointer-events: none;
2517
+ cursor: not-allowed;
2518
+ pointer-events: none;
2489
2519
  }
@@ -1,8 +1,8 @@
1
1
  import { type BCC_CONTEXT } from '@/contexts';
2
2
  export type StepIndicatorProps = {
3
- steps: string[];
4
- additionalText?: boolean;
5
- showStepLabel?: boolean;
3
+ steps: string[] | number;
4
+ hideText?: boolean;
5
+ hideLabel?: boolean;
6
6
  left?: boolean;
7
7
  right?: boolean;
8
8
  context?: BCC_CONTEXT;
@@ -20,8 +20,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
20
20
  "onUpdate:modelValue"?: ((value: number) => any) | undefined;
21
21
  }>, {
22
22
  context: BCC_CONTEXT;
23
- additionalText: boolean;
24
- showStepLabel: boolean;
23
+ hideText: boolean;
24
+ hideLabel: boolean;
25
25
  headingFn: (currentStep: number, totalSteps: number) => string;
26
26
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
27
  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;
@@ -0,0 +1,18 @@
1
+ import type { VueComponent } from '@/types';
2
+ import { type MenuProps as PrimeMenuProps } from 'primevue/menu';
3
+ import type { MenuItem } from 'primevue/menuitem';
4
+ /** Menu item model for BccMenu: icon can be a PrimeVue icon class string or a Vue icon component. */
5
+ export type BccMenuItem = Omit<MenuItem, 'icon' | 'items'> & {
6
+ icon?: VueComponent;
7
+ items?: BccMenuItem[];
8
+ };
9
+ export type MenuProps = {
10
+ model?: BccMenuItem[];
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>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
@@ -14,6 +14,12 @@ 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, {}, string, import("vue").PublicProps, Readonly<ToggleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
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;
21
+ }>, {
22
+ defaultValue: string | boolean;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
24
  declare const _default: typeof __VLS_export;
19
25
  export default _default;
@@ -6,7 +6,9 @@ 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';
11
+ export { default as BccMenu } from './BccMenu/BccMenu.vue';
10
12
  export { default as BccMessage } from './BccMessage.vue';
11
13
  export { default as BccTabs } from './BccTabs/BccTabs.vue';
12
14
  export { default as BccToggle } from './BccToggle/BccToggle.vue';
@@ -16,6 +18,7 @@ export type { ButtonProps } from './BccButton.vue';
16
18
  export type { CheckboxProps } from './BccCheckbox.vue';
17
19
  export type { ChipProps } from './BccChip/BccChip.vue';
18
20
  export type { InputProps } from './BccInput.vue';
21
+ export type { BccMenuItem, MenuProps } from './BccMenu/BccMenu.vue';
19
22
  export type { MessageProps } from './BccMessage.vue';
20
23
  export type { TabItem, TabsProps } from './BccTabs/BccTabs.vue';
21
24
  export type { ToggleProps } from './BccToggle/BccToggle.vue';
@@ -80,7 +80,6 @@ export { default as BccKeyFilter } from 'primevue/keyfilter';
80
80
  export { default as BccKnob } from 'primevue/knob';
81
81
  export { default as BccListbox } from 'primevue/listbox';
82
82
  export { default as BccMegaMenu } from 'primevue/megamenu';
83
- export { default as BccMenu } from 'primevue/menu';
84
83
  export { default as BccMenubar } from 'primevue/menubar';
85
84
  export { default as BccMeterGroup } from 'primevue/metergroup';
86
85
  export { default as BccMultiSelect } from 'primevue/multiselect';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcc-code/component-library-vue",
3
- "version": "0.0.0-dev.aab0e5c",
3
+ "version": "0.0.0-dev.b02dfbe",
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",