@bcc-code/component-library-vue 0.7.8 → 0.7.9

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 === */
@@ -1852,6 +1852,12 @@
1852
1852
  --p-form-field-lg-font-size: var(--icon-size-md);
1853
1853
  }
1854
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
+
1855
1861
  .p-autocomplete-clearable .p-inputtext {
1856
1862
  flex-grow: 1;
1857
1863
  }
@@ -2466,24 +2472,28 @@
2466
2472
 
2467
2473
 
2468
2474
 
2469
- :root, :host {
2475
+ :root,
2476
+ :host {
2470
2477
  --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;
2478
+ @apply m-0 p-0 font-sans antialiased;
2479
+ -webkit-font-smoothing: antialiased;
2480
+ -moz-osx-font-smoothing: grayscale;
2481
+ }
2474
2482
 
2483
+ hr {
2484
+ border-color: var(--color-border-default);
2475
2485
  }
2476
2486
 
2477
2487
  b,
2478
2488
  strong,
2479
2489
  .bold {
2480
- font-weight: bold;
2481
- --ctx-text: var(--ctx-text-bold);
2490
+ font-weight: bold;
2491
+ --ctx-text: var(--ctx-text-bold);
2482
2492
  }
2483
2493
 
2484
2494
  /* Disable state */
2485
2495
  :disabled,
2486
2496
  .disabled {
2487
- cursor: not-allowed;
2488
- pointer-events: none;
2497
+ cursor: not-allowed;
2498
+ pointer-events: none;
2489
2499
  }
@@ -1,8 +1,8 @@
1
1
  import { type BCC_CONTEXT } from '@/contexts';
2
2
  export type StepIndicatorProps = {
3
3
  steps: string[];
4
- additionalText?: boolean;
5
- showStepLabel?: boolean;
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;
@@ -0,0 +1,14 @@
1
+ import type { VueComponent } from '@/types';
2
+ import type { MenuItem } from 'primevue/menuitem';
3
+ /** Menu item model for BccMenu: icon can be a PrimeVue icon class string or a Vue icon component. */
4
+ export type BccMenuItem = Omit<MenuItem, 'icon' | 'items'> & {
5
+ icon?: string | VueComponent;
6
+ items?: BccMenuItem[];
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<{}, {
9
+ toggle: (event: Event, target?: unknown) => void | undefined;
10
+ show: (event: Event, target?: unknown) => void | undefined;
11
+ hide: () => void | undefined;
12
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -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 BccInput } from './BccInput.vue';
10
+ export { default as BccMenu } from './BccMenu/BccMenu.vue';
10
11
  export { default as BccMessage } from './BccMessage.vue';
11
12
  export { default as BccTabs } from './BccTabs/BccTabs.vue';
12
13
  export { default as BccToggle } from './BccToggle/BccToggle.vue';
@@ -16,6 +17,7 @@ export type { ButtonProps } from './BccButton.vue';
16
17
  export type { CheckboxProps } from './BccCheckbox.vue';
17
18
  export type { ChipProps } from './BccChip/BccChip.vue';
18
19
  export type { InputProps } from './BccInput.vue';
20
+ export type { BccMenuItem } from './BccMenu/BccMenu.vue';
19
21
  export type { MessageProps } from './BccMessage.vue';
20
22
  export type { TabItem, TabsProps } from './BccTabs/BccTabs.vue';
21
23
  export type { ToggleProps } from './BccToggle/BccToggle.vue';
@@ -80,7 +80,7 @@ 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';
83
+ export { BccMenu, type BccMenuItem } from './components/wrapped';
84
84
  export { default as BccMenubar } from 'primevue/menubar';
85
85
  export { default as BccMeterGroup } from 'primevue/metergroup';
86
86
  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.7.8",
3
+ "version": "0.7.9",
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",