@bcc-code/component-library-vue 0.0.0-dev.b82d660 → 0.0.0-dev.edf8c5a

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.
@@ -0,0 +1,28 @@
1
+ import { type BCC_CONTEXT } from '@/contexts';
2
+ export type StepIndicatorProps = {
3
+ steps: string[];
4
+ additionalText?: boolean;
5
+ showStepLabel?: boolean;
6
+ left?: boolean;
7
+ right?: boolean;
8
+ context?: BCC_CONTEXT;
9
+ headingFn?: (currentStep: number, totalSteps: number) => string;
10
+ clickable?: boolean;
11
+ };
12
+ type __VLS_Props = StepIndicatorProps;
13
+ type __VLS_ModelProps = {
14
+ modelValue?: number;
15
+ };
16
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
17
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ "update:modelValue": (value: number) => any;
19
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
21
+ }>, {
22
+ context: BCC_CONTEXT;
23
+ additionalText: boolean;
24
+ showStepLabel: boolean;
25
+ headingFn: (currentStep: number, totalSteps: number) => string;
26
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
@@ -2,7 +2,6 @@
2
2
  * Custom BCC components (not based on PrimeVue).
3
3
  * Add new custom components here and export them from this file.
4
4
  */
5
- export { default as BccAvatar } from './BccAvatar/BccAvatar.vue';
6
5
  export { default as BccBadge } from './BccBadge/BccBadge.vue';
7
6
  export { default as BccCapacityIndicator } from './BccCapacityIndicator/BccCapacityIndicator.vue';
8
7
  export { default as BccCircleLoader } from './BccCircleLoader/BccCircleLoader.vue';
@@ -13,10 +12,8 @@ export { default as BccNpsResult } from './BccNpsResult/BccNpsResult.vue';
13
12
  export { default as BccNpsScore } from './BccNpsScore/BccNpsScore.vue';
14
13
  export { default as BccReact } from './BccReact/BccReact.vue';
15
14
  export { default as BccReactEmoji } from './BccReact/BccReactEmoji.vue';
16
- export { default as BccTabs } from './BccTabs/BccTabs.vue';
15
+ export { default as BccStepIndicator } from './BccStepIndicator/BccStepIndicator.vue';
17
16
  export { default as BccTag } from './BccTag/BccTag.vue';
18
- export { default as BccToggle } from './BccToggle/BccToggle.vue';
19
- export type { AvatarProps } from './BccAvatar/BccAvatar.vue';
20
17
  export type { BadgeProps } from './BccBadge/BccBadge.vue';
21
18
  export type { CapacityIndicatorProps } from './BccCapacityIndicator/BccCapacityIndicator.vue';
22
19
  export type { KnobProps, KnobSlots } from './BccDialKnob/BccDialKnob.vue';
@@ -25,6 +22,5 @@ export type { GraphicProps } from './BccGraphic/BccGraphic.vue';
25
22
  export type { NpsResultProps } from './BccNpsResult/BccNpsResult.vue';
26
23
  export type { NpsScoreProps } from './BccNpsScore/BccNpsScore.vue';
27
24
  export type { ReactInfo, ReactProps } from './BccReact/types';
28
- export type { TabItem, TabsProps } from './BccTabs/BccTabs.vue';
25
+ export type { StepIndicatorProps } from './BccStepIndicator/BccStepIndicator.vue';
29
26
  export type { TagProps } from './BccTag/BccTag.vue';
30
- export type { ToggleProps } from './BccToggle/BccToggle.vue';
@@ -1,6 +1,7 @@
1
1
  import { type CheckboxProps as PrimeCheckboxProps } from 'primevue/checkbox';
2
2
  export type CheckboxProps = PrimeCheckboxProps & {
3
3
  label?: string;
4
+ labelLeft?: boolean;
4
5
  };
5
6
  declare var __VLS_18: {};
6
7
  type __VLS_Slots = {} & {
@@ -0,0 +1,18 @@
1
+ import type { VueComponent } from '@/types';
2
+ import { type ChipProps as PrimeChipProps } from 'primevue/chip';
3
+ export type ChipProps = {
4
+ icon?: VueComponent;
5
+ } & /* @vue-ignore */ Omit<PrimeChipProps, 'icon' | 'iconPos'>;
6
+ declare var __VLS_14: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_14) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<ChipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChipProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -1,6 +1,6 @@
1
1
  import type { VueComponent } from '@/types';
2
2
  import { type TabsProps as PrimeTabsProps } from 'primevue/tabs';
3
- import { type BadgeProps } from '../BccBadge/BccBadge.vue';
3
+ import { type BadgeProps } from '../../custom';
4
4
  export interface TabItem {
5
5
  title: string;
6
6
  icon?: VueComponent;
@@ -2,13 +2,19 @@
2
2
  * Wrapped PrimeVue components with BCC defaults or extensions.
3
3
  * Add new wrapped components here and export them from this file.
4
4
  */
5
+ export { default as BccAvatar } from './BccAvatar/BccAvatar.vue';
5
6
  export { default as BccButton } from './BccButton.vue';
6
7
  export { default as BccCheckbox } from './BccCheckbox.vue';
7
8
  export { default as BccInput } from './BccInput.vue';
8
9
  export { default as BccMessage } from './BccMessage.vue';
10
+ export { default as BccTabs } from './BccTabs/BccTabs.vue';
11
+ export { default as BccToggle } from './BccToggle/BccToggle.vue';
9
12
  export { default as BccToggleButton } from './BccToggleButton.vue';
13
+ export type { AvatarProps } from './BccAvatar/BccAvatar.vue';
10
14
  export type { ButtonProps } from './BccButton.vue';
11
15
  export type { CheckboxProps } from './BccCheckbox.vue';
12
16
  export type { InputProps } from './BccInput.vue';
13
17
  export type { MessageProps } from './BccMessage.vue';
18
+ export type { TabItem, TabsProps } from './BccTabs/BccTabs.vue';
19
+ export type { ToggleProps } from './BccToggle/BccToggle.vue';
14
20
  export type { ToggleButtonProps } from './BccToggleButton.vue';
@@ -116,7 +116,6 @@ export { default as BccStepItem } from 'primevue/stepitem';
116
116
  export { default as BccStepList } from 'primevue/steplist';
117
117
  export { default as BccStepPanel } from 'primevue/steppanel';
118
118
  export { default as BccStepPanels } from 'primevue/steppanels';
119
- export { default as BccStepper } from 'primevue/stepper';
120
119
  export { default as BccSteps } from 'primevue/steps';
121
120
  export { default as BccStyleClass } from 'primevue/styleclass';
122
121
  export { default as BccTab } from 'primevue/tab';
@@ -133,7 +132,6 @@ export { default as BccTieredMenu } from 'primevue/tieredmenu';
133
132
  export { default as BccTimeline } from 'primevue/timeline';
134
133
  export { default as BccToast } from 'primevue/toast';
135
134
  export { default as BccToastService } from 'primevue/toastservice';
136
- export { default as BccToggleSwitch } from 'primevue/toggleswitch';
137
135
  export { default as BccToolbar } from 'primevue/toolbar';
138
136
  export { default as BccTooltip } from 'primevue/tooltip';
139
137
  export { default as BccTree } from 'primevue/tree';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcc-code/component-library-vue",
3
- "version": "0.0.0-dev.b82d660",
3
+ "version": "0.0.0-dev.edf8c5a",
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,6 +53,7 @@
53
53
  "create-version": "node ./scripts/version.cjs"
54
54
  },
55
55
  "dependencies": {
56
+ "@bcc-code/design-tokens": "^5.1.2",
56
57
  "@bcc-code/icons-vue": "^1.4.0",
57
58
  "@primeuix/themes": "^2.0.3",
58
59
  "@tailwindcss/vite": "^4.1.18",
@@ -60,11 +61,9 @@
60
61
  "tailwindcss": "^4.0.0"
61
62
  },
62
63
  "peerDependencies": {
63
- "@bcc-code/design-tokens": "^5.1.0",
64
64
  "vue": "^3.5.0"
65
65
  },
66
66
  "devDependencies": {
67
- "@bcc-code/design-tokens": "^5.1.0",
68
67
  "@eslint/js": "^9.39.2",
69
68
  "@primevue/auto-import-resolver": "^4.5.4",
70
69
  "@storybook/addon-docs": "^10.2.8",