@bcc-code/component-library-vue 0.0.0-dev.5db7362 → 0.0.0-dev.63bb37d
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/component-library.js +33139 -32740
- package/dist/component-library.umd.cjs +420 -407
- package/dist/index.css +1 -1
- package/dist/theme.css +69 -28
- package/dist-types/components/custom/BccBadge/BccBadge.vue.d.ts +2 -0
- package/dist-types/components/custom/BccStepIndicator/BccStepIndicator.vue.d.ts +5 -5
- package/dist-types/components/wrapped/BccAvatar/BccAvatar.vue.d.ts +1 -1
- package/dist-types/components/wrapped/BccImage.vue.d.ts +17 -0
- package/dist-types/components/wrapped/BccMenu/BccMenu.vue.d.ts +7 -3
- package/dist-types/components/wrapped/BccToggle/BccToggle.vue.d.ts +7 -1
- package/dist-types/components/wrapped/index.d.ts +4 -1
- package/dist-types/index.d.ts +0 -2
- package/package.json +2 -2
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
|
|
3
|
+
@import '@bcc-code/design-tokens/css';
|
|
4
4
|
|
|
5
|
-
@import
|
|
6
|
-
@import
|
|
7
|
-
@import
|
|
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
|
}
|
|
@@ -1888,6 +1894,21 @@
|
|
|
1888
1894
|
--p-select-placeholder-color: var(--color-dark-neutral-1000);
|
|
1889
1895
|
}
|
|
1890
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;
|
|
1902
|
+
}
|
|
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
|
+
|
|
1891
1912
|
|
|
1892
1913
|
|
|
1893
1914
|
|
|
@@ -1904,6 +1925,9 @@
|
|
|
1904
1925
|
.bcc-badge.capital {
|
|
1905
1926
|
@apply inline-flex;
|
|
1906
1927
|
}
|
|
1928
|
+
.bcc-badge.gradient {
|
|
1929
|
+
@apply ctx-gradient;
|
|
1930
|
+
}
|
|
1907
1931
|
.bcc-badge.sm {
|
|
1908
1932
|
@apply w-4 h-4 text-heading-xs;
|
|
1909
1933
|
}
|
|
@@ -2358,8 +2382,13 @@
|
|
|
2358
2382
|
--p-avatar-background: var(--ctx-background);
|
|
2359
2383
|
--p-avatar-color: var(--ctx-text);
|
|
2360
2384
|
--bcc-avatar-border: var(--ctx-border);
|
|
2361
|
-
@apply overflow-hidden shrink-0 ctx-gray-subtler;
|
|
2385
|
+
@apply overflow-hidden shrink-0 ctx-gray-subtler text-sm;
|
|
2362
2386
|
}
|
|
2387
|
+
|
|
2388
|
+
.bcc-avatar .icon {
|
|
2389
|
+
height: var(--icon-size-sm);
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2363
2392
|
.bcc-avatar.male,
|
|
2364
2393
|
.bcc-avatar.M {
|
|
2365
2394
|
@apply ctx-blue-subtler;
|
|
@@ -2382,36 +2411,44 @@
|
|
|
2382
2411
|
.bcc-avatar.xs {
|
|
2383
2412
|
@apply size-5 text-xs;
|
|
2384
2413
|
}
|
|
2414
|
+
.bcc-avatar.xs .icon {
|
|
2415
|
+
height: var(--icon-size-xs);
|
|
2416
|
+
}
|
|
2385
2417
|
.bcc-avatar.sm {
|
|
2386
|
-
@apply size-6 text-
|
|
2418
|
+
@apply size-6 text-xs;
|
|
2419
|
+
}
|
|
2420
|
+
.bcc-avatar.sm .icon {
|
|
2421
|
+
height: var(--icon-size-xs);
|
|
2387
2422
|
}
|
|
2388
2423
|
.bcc-avatar.md {
|
|
2389
|
-
|
|
2424
|
+
/* same as default */
|
|
2425
|
+
}
|
|
2426
|
+
.bcc-avatar.md .icon {
|
|
2427
|
+
/* same as default */
|
|
2390
2428
|
}
|
|
2391
2429
|
.bcc-avatar.lg {
|
|
2392
|
-
@apply size-10 text-
|
|
2430
|
+
@apply size-10 text-md;
|
|
2431
|
+
}
|
|
2432
|
+
.bcc-avatar.lg .icon {
|
|
2433
|
+
height: var(--icon-size-md);
|
|
2393
2434
|
}
|
|
2394
2435
|
.bcc-avatar.xl {
|
|
2395
2436
|
@apply size-12 text-xl;
|
|
2396
2437
|
}
|
|
2438
|
+
.bcc-avatar.xl .icon {
|
|
2439
|
+
height: var(--icon-size-lg);
|
|
2440
|
+
}
|
|
2397
2441
|
.bcc-avatar.xxl {
|
|
2398
2442
|
@apply size-20 text-3xl;
|
|
2399
2443
|
}
|
|
2444
|
+
.bcc-avatar.xxl .icon {
|
|
2445
|
+
height: var(--icon-size-xl);
|
|
2446
|
+
}
|
|
2400
2447
|
.bcc-avatar.xxxl {
|
|
2401
2448
|
@apply size-24 text-4xl;
|
|
2402
2449
|
}
|
|
2403
|
-
|
|
2404
|
-
|
|
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;
|
|
2450
|
+
.bcc-avatar.xxxl .icon {
|
|
2451
|
+
height: var(--icon-size-xl);
|
|
2415
2452
|
}
|
|
2416
2453
|
|
|
2417
2454
|
.p-overlaybadge .bcc-avatar.p-avatar-circle.lg~.p-badge,
|
|
@@ -2466,24 +2503,28 @@
|
|
|
2466
2503
|
|
|
2467
2504
|
|
|
2468
2505
|
|
|
2469
|
-
:root,
|
|
2506
|
+
:root,
|
|
2507
|
+
:host {
|
|
2470
2508
|
--font-sans: 'Archivo', system-ui, sans-serif;
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2509
|
+
@apply m-0 p-0 font-sans antialiased;
|
|
2510
|
+
-webkit-font-smoothing: antialiased;
|
|
2511
|
+
-moz-osx-font-smoothing: grayscale;
|
|
2512
|
+
}
|
|
2474
2513
|
|
|
2514
|
+
hr {
|
|
2515
|
+
border-color: var(--color-border-default);
|
|
2475
2516
|
}
|
|
2476
2517
|
|
|
2477
2518
|
b,
|
|
2478
2519
|
strong,
|
|
2479
2520
|
.bold {
|
|
2480
|
-
|
|
2481
|
-
|
|
2521
|
+
font-weight: bold;
|
|
2522
|
+
--ctx-text: var(--ctx-text-bold);
|
|
2482
2523
|
}
|
|
2483
2524
|
|
|
2484
2525
|
/* Disable state */
|
|
2485
2526
|
:disabled,
|
|
2486
2527
|
.disabled {
|
|
2487
|
-
|
|
2488
|
-
|
|
2528
|
+
cursor: not-allowed;
|
|
2529
|
+
pointer-events: none;
|
|
2489
2530
|
}
|
|
@@ -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;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type BCC_CONTEXT } from '@/contexts';
|
|
2
2
|
export type StepIndicatorProps = {
|
|
3
|
-
steps: string[];
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
24
|
-
|
|
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,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,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?:
|
|
6
|
+
icon?: VueComponent;
|
|
6
7
|
items?: BccMenuItem[];
|
|
7
8
|
};
|
|
8
|
-
|
|
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<
|
|
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;
|
|
@@ -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, {}
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<ToggleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
|
+
"update:modelValue": (value: boolean) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<ToggleProps> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((value: boolean) => 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,6 +6,8 @@ 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';
|
|
10
|
+
export { default as BccImage } from './BccImage.vue';
|
|
9
11
|
export { default as BccInput } from './BccInput.vue';
|
|
10
12
|
export { default as BccMenu } from './BccMenu/BccMenu.vue';
|
|
11
13
|
export { default as BccMessage } from './BccMessage.vue';
|
|
@@ -16,8 +18,9 @@ export type { AvatarProps } from './BccAvatar/BccAvatar.vue';
|
|
|
16
18
|
export type { ButtonProps } from './BccButton.vue';
|
|
17
19
|
export type { CheckboxProps } from './BccCheckbox.vue';
|
|
18
20
|
export type { ChipProps } from './BccChip/BccChip.vue';
|
|
21
|
+
export type { ImageProps } from './BccImage.vue';
|
|
19
22
|
export type { InputProps } from './BccInput.vue';
|
|
20
|
-
export type { BccMenuItem } from './BccMenu/BccMenu.vue';
|
|
23
|
+
export type { BccMenuItem, MenuProps } from './BccMenu/BccMenu.vue';
|
|
21
24
|
export type { MessageProps } from './BccMessage.vue';
|
|
22
25
|
export type { TabItem, TabsProps } from './BccTabs/BccTabs.vue';
|
|
23
26
|
export type { ToggleProps } from './BccToggle/BccToggle.vue';
|
package/dist-types/index.d.ts
CHANGED
|
@@ -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';
|
|
@@ -80,7 +79,6 @@ export { default as BccKeyFilter } from 'primevue/keyfilter';
|
|
|
80
79
|
export { default as BccKnob } from 'primevue/knob';
|
|
81
80
|
export { default as BccListbox } from 'primevue/listbox';
|
|
82
81
|
export { default as BccMegaMenu } from 'primevue/megamenu';
|
|
83
|
-
export { BccMenu, type BccMenuItem } from './components/wrapped';
|
|
84
82
|
export { default as BccMenubar } from 'primevue/menubar';
|
|
85
83
|
export { default as BccMeterGroup } from 'primevue/metergroup';
|
|
86
84
|
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.
|
|
3
|
+
"version": "0.0.0-dev.63bb37d",
|
|
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.
|
|
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",
|