@bcc-code/component-library-vue 0.0.0-dev.f3b912b → 0.0.0-dev.f421703
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 +3430 -3374
- package/dist/component-library.umd.cjs +152 -152
- package/dist/index.css +1 -1
- package/dist/theme.css +99 -98
- package/dist-types/components/custom/BccReact/BccReact.vue.d.ts +2 -1
- package/dist-types/components/custom/BccStepIndicator/BccStepIndicator.vue.d.ts +3 -3
- package/dist-types/components/custom/BccTag/BccTag.vue.d.ts +1 -0
- package/dist-types/components/custom/BccTopNavigation/BccTopNavigation.vue.d.ts +13 -3
- package/dist-types/components/wrapped/BccMenu/BccMenu.vue.d.ts +15 -1
- package/dist-types/components/wrapped/BccRadioButton.vue.d.ts +1 -0
- package/dist-types/components/wrapped/BccSelectButton.vue.d.ts +5 -2
- package/package.json +2 -2
package/dist/theme.css
CHANGED
|
@@ -774,18 +774,18 @@
|
|
|
774
774
|
}
|
|
775
775
|
|
|
776
776
|
@utility ctx-brand-bolder {
|
|
777
|
-
--ctx-text: var(--color-default-
|
|
777
|
+
--ctx-text: var(--color-default-neutral-0);
|
|
778
778
|
--ctx-text-bold: var(--color-default-neutral-0);
|
|
779
|
-
--ctx-background: var(--color-default-bcc-
|
|
780
|
-
--ctx-gradient: var(--color-default-bcc-
|
|
779
|
+
--ctx-background: var(--color-default-bcc-800);
|
|
780
|
+
--ctx-gradient: var(--color-default-bcc-900);
|
|
781
781
|
--ctx-border: var(--color-default-bcc-700);
|
|
782
782
|
--ctx-shadow: var(--color-neutral-alpha-500A);
|
|
783
|
-
--ctx-text-hover: var(--color-default-
|
|
784
|
-
--ctx-text-pressed: var(--color-default-
|
|
785
|
-
--ctx-background-hover: var(--color-default-bcc-
|
|
786
|
-
--ctx-background-pressed: var(--color-default-bcc-
|
|
787
|
-
--ctx-gradient-hover: var(--color-default-bcc-
|
|
788
|
-
--ctx-gradient-pressed: var(--color-default-bcc-
|
|
783
|
+
--ctx-text-hover: var(--color-default-neutral-0);
|
|
784
|
+
--ctx-text-pressed: var(--color-default-neutral-0);
|
|
785
|
+
--ctx-background-hover: var(--color-default-bcc-900);
|
|
786
|
+
--ctx-background-pressed: var(--color-default-bcc-1000);
|
|
787
|
+
--ctx-gradient-hover: var(--color-default-bcc-1000);
|
|
788
|
+
--ctx-gradient-pressed: var(--color-default-bcc-1000);
|
|
789
789
|
--ctx-border-hover: var(--color-default-bcc-700);
|
|
790
790
|
--ctx-border-pressed: var(--color-default-bcc-700);
|
|
791
791
|
}
|
|
@@ -980,16 +980,16 @@
|
|
|
980
980
|
@utility ctx-gray-bolder {
|
|
981
981
|
--ctx-text: var(--color-default-neutral-200);
|
|
982
982
|
--ctx-text-bold: var(--color-default-neutral-100);
|
|
983
|
-
--ctx-background: var(--color-default-neutral-
|
|
984
|
-
--ctx-gradient: var(--color-default-neutral-
|
|
983
|
+
--ctx-background: var(--color-default-neutral-700);
|
|
984
|
+
--ctx-gradient: var(--color-default-neutral-800);
|
|
985
985
|
--ctx-border: var(--color-default-neutral-700);
|
|
986
986
|
--ctx-shadow: var(--color-neutral-alpha-500A);
|
|
987
987
|
--ctx-text-hover: var(--color-default-neutral-200);
|
|
988
988
|
--ctx-text-pressed: var(--color-default-neutral-200);
|
|
989
|
-
--ctx-background-hover: var(--color-default-neutral-
|
|
990
|
-
--ctx-background-pressed: var(--color-default-neutral-
|
|
991
|
-
--ctx-gradient-hover: var(--color-default-neutral-
|
|
992
|
-
--ctx-gradient-pressed: var(--color-default-neutral-
|
|
989
|
+
--ctx-background-hover: var(--color-default-neutral-800);
|
|
990
|
+
--ctx-background-pressed: var(--color-default-neutral-900);
|
|
991
|
+
--ctx-gradient-hover: var(--color-default-neutral-900);
|
|
992
|
+
--ctx-gradient-pressed: var(--color-default-neutral-900);
|
|
993
993
|
--ctx-border-hover: var(--color-default-neutral-700);
|
|
994
994
|
--ctx-border-pressed: var(--color-default-neutral-700);
|
|
995
995
|
}
|
|
@@ -1962,29 +1962,27 @@
|
|
|
1962
1962
|
}
|
|
1963
1963
|
|
|
1964
1964
|
.bcc-app-nav-item {
|
|
1965
|
-
@apply
|
|
1965
|
+
@apply relative flex h-12 flex-1 flex-col items-center justify-center gap-1 transition-colors focus:ring-0 focus:outline-none;
|
|
1966
1966
|
}
|
|
1967
1967
|
|
|
1968
1968
|
.bcc-nav-item-icon {
|
|
1969
|
-
@apply size-6
|
|
1969
|
+
@apply size-6 icon-subtlest;
|
|
1970
1970
|
}
|
|
1971
1971
|
|
|
1972
1972
|
.bcc-nav-item-badge {
|
|
1973
|
-
@apply absolute top-0 right-1
|
|
1973
|
+
@apply absolute top-0 right-1;
|
|
1974
1974
|
}
|
|
1975
1975
|
|
|
1976
1976
|
.bcc-nav-item-title {
|
|
1977
|
-
@apply text-heading-xs text-center opacity-
|
|
1977
|
+
@apply text-heading-xs text-center text-subtlest opacity-75;
|
|
1978
1978
|
}
|
|
1979
1979
|
|
|
1980
|
-
.bcc-app-nav-item--active {
|
|
1981
|
-
@apply text-selected;
|
|
1980
|
+
.bcc-app-nav-item--active .bcc-nav-item-title {
|
|
1981
|
+
@apply text-selected opacity-100;
|
|
1982
1982
|
}
|
|
1983
1983
|
|
|
1984
|
-
.bcc-app-nav-item--active .bcc-nav-item-icon
|
|
1985
|
-
|
|
1986
|
-
.bcc-app-nav-item--active .bcc-nav-item-title {
|
|
1987
|
-
@apply opacity-100;
|
|
1984
|
+
.bcc-app-nav-item--active .bcc-nav-item-icon {
|
|
1985
|
+
@apply text-selected;
|
|
1988
1986
|
}
|
|
1989
1987
|
}
|
|
1990
1988
|
|
|
@@ -2339,91 +2337,94 @@
|
|
|
2339
2337
|
|
|
2340
2338
|
/* from ./BccReact/BccReact.css */
|
|
2341
2339
|
@layer components {
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2340
|
+
.bcc-react {
|
|
2341
|
+
@apply relative flex w-full items-center overflow-visible;
|
|
2342
|
+
}
|
|
2343
|
+
.bcc-react-toggle {
|
|
2344
|
+
@apply mr-1 flex shrink-0 cursor-pointer items-center justify-center rounded-full p-1 transition;
|
|
2345
|
+
}
|
|
2346
|
+
.bcc-react-list {
|
|
2347
|
+
@apply hide-scrollbar flex flex-1 items-center gap-1 overflow-x-auto overflow-y-hidden rounded-full p-1;
|
|
2348
|
+
}
|
|
2349
|
+
.bcc-react-empty {
|
|
2350
|
+
@apply heading-xs flex items-center;
|
|
2351
|
+
}
|
|
2354
2352
|
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2353
|
+
.bcc-react-selector-container {
|
|
2354
|
+
@apply absolute z-50 h-9;
|
|
2355
|
+
@apply top-11 origin-top-left;
|
|
2356
|
+
}
|
|
2359
2357
|
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2358
|
+
.bcc-react-selector-container--top {
|
|
2359
|
+
@apply -top-10 origin-bottom-left;
|
|
2360
|
+
}
|
|
2363
2361
|
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2362
|
+
.bcc-react-selector {
|
|
2363
|
+
@apply flex h-9 flex-col overflow-hidden bg-neutral-100 px-0 shadow-md;
|
|
2364
|
+
border-radius: 18px;
|
|
2365
|
+
}
|
|
2368
2366
|
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2367
|
+
.bcc-react-selector-emojis-container {
|
|
2368
|
+
@apply flex items-center bg-neutral-100 px-1;
|
|
2369
|
+
}
|
|
2372
2370
|
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2371
|
+
.bcc-react-selector-more {
|
|
2372
|
+
@apply flex w-9 items-center justify-center;
|
|
2373
|
+
}
|
|
2374
|
+
.bcc-react-selector-more-btn {
|
|
2375
|
+
@apply flex h-7 w-7 items-center justify-center rounded-full bg-slate-200;
|
|
2376
|
+
}
|
|
2379
2377
|
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2378
|
+
.bcc-react-dropdown-container {
|
|
2379
|
+
@apply top-0 left-0 -z-10 w-full max-w-full;
|
|
2380
|
+
width: 296px;
|
|
2381
|
+
}
|
|
2382
|
+
.bcc-react-dropdown-container--top {
|
|
2383
|
+
@apply top-auto bottom-0 pb-0;
|
|
2384
|
+
}
|
|
2387
2385
|
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2386
|
+
.bcc-react-dropdown {
|
|
2387
|
+
@apply -z-10 flex w-full flex-wrap overflow-hidden px-1;
|
|
2388
|
+
}
|
|
2391
2389
|
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2390
|
+
.bcc-react-arrow-down-icon {
|
|
2391
|
+
@apply h-6 w-6 text-slate-600;
|
|
2392
|
+
transition: transform 0.3s ease;
|
|
2393
|
+
}
|
|
2394
|
+
.bcc-react-arrow-down-icon.open {
|
|
2395
|
+
transform: rotate(-180deg);
|
|
2396
|
+
}
|
|
2399
2397
|
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2398
|
+
.bcc-react-selector-item {
|
|
2399
|
+
@apply relative h-9 w-9 p-2 text-xl leading-none transition-transform duration-200 ease-out;
|
|
2400
|
+
}
|
|
2403
2401
|
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2402
|
+
.bcc-react-selector-item--clicked {
|
|
2403
|
+
animation: scaleFadeOut 300ms forwards;
|
|
2404
|
+
}
|
|
2407
2405
|
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2406
|
+
@keyframes scaleFadeOut {
|
|
2407
|
+
0% {
|
|
2408
|
+
transform: scale(1);
|
|
2409
|
+
opacity: 1;
|
|
2410
|
+
}
|
|
2411
|
+
100% {
|
|
2412
|
+
transform: scale(1.4);
|
|
2413
|
+
opacity: 0;
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2418
2416
|
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2417
|
+
.bcc-react-emoji-list-item {
|
|
2418
|
+
@apply ctx clickable center h-7 min-w-7 shrink-0 rounded-full p-1 text-lg leading-none drop-shadow transition-all hover:scale-105;
|
|
2419
|
+
/* Default --not-selected */
|
|
2420
|
+
@apply ctx-neutral-subtlest;
|
|
2421
|
+
}
|
|
2422
|
+
.bcc-react-emoji-list-item span {
|
|
2423
|
+
@apply leading-none;
|
|
2424
|
+
}
|
|
2425
|
+
.bcc-react-emoji-list-item.selected {
|
|
2426
|
+
@apply ctx-neutral-subtle;
|
|
2427
|
+
}
|
|
2427
2428
|
}
|
|
2428
2429
|
|
|
2429
2430
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactProps } from './types';
|
|
1
|
+
import type { ReactInfo, ReactProps } from './types';
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<ReactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
3
|
toggle: (id: string) => any;
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<ReactProps> & Readonly<{
|
|
@@ -6,6 +6,7 @@ declare const __VLS_export: import("vue").DefineComponent<ReactProps, {}, {}, {}
|
|
|
6
6
|
}>, {
|
|
7
7
|
placeholder: string;
|
|
8
8
|
top: boolean;
|
|
9
|
+
emojis: ReactInfo[];
|
|
9
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
11
|
declare const _default: typeof __VLS_export;
|
|
11
12
|
export default _default;
|
|
@@ -11,13 +11,13 @@ export type StepIndicatorProps = {
|
|
|
11
11
|
};
|
|
12
12
|
type __VLS_Props = StepIndicatorProps;
|
|
13
13
|
type __VLS_ModelProps = {
|
|
14
|
-
modelValue?: number;
|
|
14
|
+
modelValue?: number | null;
|
|
15
15
|
};
|
|
16
16
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
17
17
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
-
"update:modelValue": (value: number) => any;
|
|
18
|
+
"update:modelValue": (value: number | null) => any;
|
|
19
19
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
20
|
+
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
22
|
context: BCC_CONTEXT;
|
|
23
23
|
hideText: boolean;
|
|
@@ -22,13 +22,23 @@ declare var __VLS_1: {
|
|
|
22
22
|
title: string;
|
|
23
23
|
subtitle: string;
|
|
24
24
|
};
|
|
25
|
-
},
|
|
25
|
+
}, __VLS_8: {}, __VLS_15: {
|
|
26
|
+
title: string;
|
|
27
|
+
}, __VLS_17: {
|
|
28
|
+
subtitle: string;
|
|
29
|
+
}, __VLS_19: {}, __VLS_26: {};
|
|
26
30
|
type __VLS_Slots = {} & {
|
|
27
31
|
default?: (props: typeof __VLS_1) => any;
|
|
28
32
|
} & {
|
|
29
|
-
|
|
33
|
+
left?: (props: typeof __VLS_8) => any;
|
|
30
34
|
} & {
|
|
31
|
-
|
|
35
|
+
title?: (props: typeof __VLS_15) => any;
|
|
36
|
+
} & {
|
|
37
|
+
subtitle?: (props: typeof __VLS_17) => any;
|
|
38
|
+
} & {
|
|
39
|
+
right?: (props: typeof __VLS_19) => any;
|
|
40
|
+
} & {
|
|
41
|
+
bottom?: (props: typeof __VLS_26) => any;
|
|
32
42
|
};
|
|
33
43
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
34
44
|
back: () => any;
|
|
@@ -9,6 +9,20 @@ export type BccMenuItem = Omit<MenuItem, 'icon' | 'items'> & {
|
|
|
9
9
|
export type MenuProps = {
|
|
10
10
|
model?: BccMenuItem[];
|
|
11
11
|
} & Omit<PrimeMenuProps, 'model'>;
|
|
12
|
-
declare
|
|
12
|
+
declare var __VLS_16: {
|
|
13
|
+
item: MenuItem;
|
|
14
|
+
label: string | ((...args: any) => string) | undefined;
|
|
15
|
+
props: import("primevue").MenuRouterBindProps;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
item?: (props: typeof __VLS_16) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<MenuProps, PrimeMenuMethods, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MenuProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
22
|
declare const _default: typeof __VLS_export;
|
|
14
23
|
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -2,6 +2,7 @@ import { type RadioButtonProps as PrimeRadioButtonProps } from 'primevue/radiobu
|
|
|
2
2
|
export type RadioButtonProps = PrimeRadioButtonProps & {
|
|
3
3
|
label?: string;
|
|
4
4
|
labelLeft?: boolean;
|
|
5
|
+
justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
5
6
|
};
|
|
6
7
|
declare var __VLS_6: {};
|
|
7
8
|
type __VLS_Slots = {} & {
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import type { VueComponent } from '@/types';
|
|
1
2
|
import { type SelectButtonProps as PrimeSelectButtonProps } from 'primevue/selectbutton';
|
|
2
|
-
export type SelectButtonProps = PrimeSelectButtonProps
|
|
3
|
+
export type SelectButtonProps = PrimeSelectButtonProps & {
|
|
4
|
+
optionIcon?: string | ((option: unknown) => VueComponent | null);
|
|
5
|
+
};
|
|
3
6
|
declare var __VLS_9: {
|
|
4
7
|
option: any;
|
|
5
8
|
};
|
|
6
9
|
type __VLS_Slots = {} & {
|
|
7
10
|
option?: (props: typeof __VLS_9) => any;
|
|
8
11
|
};
|
|
9
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<SelectButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SelectButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
13
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
14
|
declare const _default: typeof __VLS_export;
|
|
12
15
|
export default _default;
|
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.f421703",
|
|
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.66",
|
|
57
57
|
"@bcc-code/icons-vue": "^1.4.0",
|
|
58
58
|
"@primeuix/themes": "^2.0.3",
|
|
59
59
|
"@tailwindcss/vite": "^4.1.18",
|