@bcc-code/component-library-vue 0.0.0-dev.8eba79d → 0.0.0-dev.923fa1b

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.
@@ -1,3 +1,4 @@
1
+ import { BCC_CONTEXT } from '@/contexts';
1
2
  export type CapacityIndicatorProps = {
2
3
  /** Total capacity; use -1 for “unlimited” (shows an infinity-style icon instead of a bar). */
3
4
  total: number;
@@ -11,6 +12,8 @@ export type CapacityIndicatorProps = {
11
12
  squared?: boolean;
12
13
  /** When true, applies warning/full color states (e.g. color change at high usage). */
13
14
  colored?: boolean;
15
+ /** Design context (e.g. neutral, brand) used for background and text color. */
16
+ context?: BCC_CONTEXT;
14
17
  };
15
18
  declare const __VLS_export: import("vue").DefineComponent<CapacityIndicatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CapacityIndicatorProps> & Readonly<{}>, {
16
19
  size: "xs" | "sm" | "base" | "lg";
@@ -1,3 +1,11 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ type __VLS_Props = {
2
+ icon?: string;
3
+ size?: 'sm' | 'md' | 'base' | 'lg' | 'xl' | '2xl' | '3xl';
4
+ left?: boolean;
5
+ right?: boolean;
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
+ size: "sm" | "md" | "base" | "lg" | "xl" | "2xl" | "3xl";
9
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
10
  declare const _default: typeof __VLS_export;
3
11
  export default _default;
@@ -22,13 +22,21 @@ declare var __VLS_1: {
22
22
  title: string;
23
23
  subtitle: string;
24
24
  };
25
- }, __VLS_13: {}, __VLS_20: {};
25
+ }, __VLS_13: {
26
+ title: string;
27
+ }, __VLS_15: {
28
+ subtitle: string;
29
+ }, __VLS_17: {}, __VLS_24: {};
26
30
  type __VLS_Slots = {} & {
27
31
  default?: (props: typeof __VLS_1) => any;
28
32
  } & {
29
- right?: (props: typeof __VLS_13) => any;
33
+ title?: (props: typeof __VLS_13) => any;
30
34
  } & {
31
- bottom?: (props: typeof __VLS_20) => any;
35
+ subtitle?: (props: typeof __VLS_15) => any;
36
+ } & {
37
+ right?: (props: typeof __VLS_17) => any;
38
+ } & {
39
+ bottom?: (props: typeof __VLS_24) => any;
32
40
  };
33
41
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
34
42
  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 const __VLS_export: import("vue").DefineComponent<MenuProps, PrimeMenuMethods, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MenuProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
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
+ };
@@ -3,10 +3,12 @@ import { type MessageProps as PrimeMessageProps } from 'primevue/message';
3
3
  export type MessageProps = Omit<PrimeMessageProps, 'icon'> & {
4
4
  icon?: boolean | VueComponent;
5
5
  iconRight?: VueComponent | boolean;
6
+ title?: string;
7
+ message?: string;
6
8
  };
7
- declare var __VLS_14: {};
9
+ declare var __VLS_19: {};
8
10
  type __VLS_Slots = {} & {
9
- default?: (props: typeof __VLS_14) => any;
11
+ default?: (props: typeof __VLS_19) => any;
10
12
  };
11
13
  declare const __VLS_base: import("vue").DefineComponent<MessageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MessageProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -0,0 +1,19 @@
1
+ import { type RadioButtonProps as PrimeRadioButtonProps } from 'primevue/radiobutton';
2
+ export type RadioButtonProps = PrimeRadioButtonProps & {
3
+ label?: string;
4
+ labelLeft?: boolean;
5
+ justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
6
+ };
7
+ declare var __VLS_6: {};
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_6) => any;
10
+ };
11
+ declare const __VLS_base: import("vue").DefineComponent<RadioButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RadioButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,17 @@
1
+ import { type SelectButtonProps as PrimeSelectButtonProps } from 'primevue/selectbutton';
2
+ export type SelectButtonProps = PrimeSelectButtonProps;
3
+ declare var __VLS_9: {
4
+ option: any;
5
+ };
6
+ type __VLS_Slots = {} & {
7
+ option?: (props: typeof __VLS_9) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<PrimeSelectButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PrimeSelectButtonProps> & 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
+ };
@@ -11,6 +11,8 @@ export { default as BccImage } from './BccImage.vue';
11
11
  export { default as BccInput } from './BccInput.vue';
12
12
  export { default as BccMenu } from './BccMenu/BccMenu.vue';
13
13
  export { default as BccMessage } from './BccMessage.vue';
14
+ export { default as BccRadioButton } from './BccRadioButton.vue';
15
+ export { default as BccSelectButton } from './BccSelectButton.vue';
14
16
  export { default as BccTabs } from './BccTabs/BccTabs.vue';
15
17
  export { default as BccToggle } from './BccToggle/BccToggle.vue';
16
18
  export { default as BccToggleButton } from './BccToggleButton.vue';
@@ -22,6 +24,8 @@ export type { ImageProps } from './BccImage.vue';
22
24
  export type { InputProps } from './BccInput.vue';
23
25
  export type { BccMenuItem, MenuProps } from './BccMenu/BccMenu.vue';
24
26
  export type { MessageProps } from './BccMessage.vue';
27
+ export type { RadioButtonProps } from './BccRadioButton.vue';
28
+ export type { SelectButtonProps } from './BccSelectButton.vue';
25
29
  export type { TabItem, TabsProps } from './BccTabs/BccTabs.vue';
26
30
  export type { ToggleProps } from './BccToggle/BccToggle.vue';
27
31
  export type { ToggleButtonProps } from './BccToggleButton.vue';
@@ -94,7 +94,6 @@ export { default as BccPopover } from 'primevue/popover';
94
94
  export { default as BccPortal } from 'primevue/portal';
95
95
  export { default as BccProgressBar } from 'primevue/progressbar';
96
96
  export { default as BccProgressSpinner } from 'primevue/progressspinner';
97
- export { default as BccRadioButton } from 'primevue/radiobutton';
98
97
  export { default as BccRadioButtonGroup } from 'primevue/radiobuttongroup';
99
98
  export { default as BccRating } from 'primevue/rating';
100
99
  export { default as BccRipple } from 'primevue/ripple';
@@ -102,7 +101,6 @@ export { default as BccRow } from 'primevue/row';
102
101
  export { default as BccScrollPanel } from 'primevue/scrollpanel';
103
102
  export { default as BccScrollTop } from 'primevue/scrolltop';
104
103
  export { default as BccSelect } from 'primevue/select';
105
- export { default as BccSelectButton } from 'primevue/selectbutton';
106
104
  export { default as BccSkeleton } from 'primevue/skeleton';
107
105
  export { default as BccSlider } from 'primevue/slider';
108
106
  export { default as BccSpeedDial } from 'primevue/speeddial';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcc-code/component-library-vue",
3
- "version": "0.0.0-dev.8eba79d",
3
+ "version": "0.0.0-dev.923fa1b",
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.45",
56
+ "@bcc-code/design-tokens": "^5.1.60",
57
57
  "@bcc-code/icons-vue": "^1.4.0",
58
58
  "@primeuix/themes": "^2.0.3",
59
59
  "@tailwindcss/vite": "^4.1.18",