@bcc-code/component-library-vue 0.0.0-dev.ce91d1a → 0.0.0-dev.d10219f

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.
Files changed (45) hide show
  1. package/README.md +33 -35
  2. package/dist/archivo-font/archivo-v25-latin-500.woff2 +0 -0
  3. package/dist/archivo-font/archivo-v25-latin-600.woff2 +0 -0
  4. package/dist/archivo-font/archivo-v25-latin-600italic.woff2 +0 -0
  5. package/dist/archivo-font/archivo-v25-latin-italic.woff2 +0 -0
  6. package/dist/archivo-font/archivo-v25-latin-regular.woff2 +0 -0
  7. package/dist/archivo-font.css +40 -0
  8. package/dist/component-library.js +32738 -28794
  9. package/dist/component-library.umd.cjs +4289 -3381
  10. package/dist/index.css +1 -1
  11. package/dist/library-utilities.css +2 -0
  12. package/dist/quill-BfNQeuzX.js +7524 -0
  13. package/dist/sfc-styles.css +1 -0
  14. package/dist/theme.css +1192 -941
  15. package/dist-types/components/custom/BccAppNavigation/BccAppNavigation.vue.d.ts +33 -0
  16. package/dist-types/components/custom/BccBadge/BccBadge.vue.d.ts +2 -0
  17. package/dist-types/components/custom/BccCapacityIndicator/BccCapacityIndicator.vue.d.ts +3 -0
  18. package/dist-types/components/custom/BccDialKnob/BccDialKnob.vue.d.ts +1 -1
  19. package/dist-types/components/custom/BccGraphic/BccGraphic.vue.d.ts +7 -4
  20. package/dist-types/components/custom/BccImage/BccImage.vue.d.ts +54 -0
  21. package/dist-types/components/custom/BccNpsScore/BccNpsScore.vue.d.ts +1 -1
  22. package/dist-types/components/custom/BccReact/BccReact.vue.d.ts +2 -1
  23. package/dist-types/components/custom/BccStepIndicator/BccStepIndicator.vue.d.ts +3 -3
  24. package/dist-types/components/custom/BccTag/BccTag.vue.d.ts +1 -0
  25. package/dist-types/components/custom/BccTopNavigation/BccTopNavigation.vue.d.ts +57 -0
  26. package/dist-types/components/custom/index.d.ts +6 -1
  27. package/dist-types/components/wrapped/BccAvatar/BccAvatar.vue.d.ts +1 -1
  28. package/dist-types/components/wrapped/BccButton.vue.d.ts +4 -3
  29. package/dist-types/components/wrapped/BccCheckbox.vue.d.ts +3 -0
  30. package/dist-types/components/wrapped/BccMenu/BccMenu.vue.d.ts +20 -6
  31. package/dist-types/components/wrapped/BccMessage.vue.d.ts +8 -2
  32. package/dist-types/components/wrapped/BccRadioButton.vue.d.ts +21 -0
  33. package/dist-types/components/wrapped/BccSelectButton.vue.d.ts +20 -0
  34. package/dist-types/components/wrapped/BccTabs/BccTabs.vue.d.ts +2 -0
  35. package/dist-types/components/wrapped/BccToggle/BccToggle.vue.d.ts +12 -1
  36. package/dist-types/components/wrapped/index.d.ts +6 -1
  37. package/dist-types/index.d.ts +2 -4
  38. package/dist-types/lightbox/BccLightboxMedia.vue.d.ts +18 -0
  39. package/dist-types/lightbox/composables.d.ts +23 -0
  40. package/dist-types/lightbox/detectMedia.d.ts +4 -0
  41. package/dist-types/lightbox/index.d.ts +7 -0
  42. package/dist-types/lightbox/state.d.ts +30 -0
  43. package/dist-types/lightbox/types.d.ts +24 -0
  44. package/package.json +111 -103
  45. /package/dist-types/{components/custom/BccCircleLoader/BccCircleLoader.vue.d.ts → lightbox/BccLightbox.vue.d.ts} +0 -0
@@ -0,0 +1,30 @@
1
+ import type { App } from 'vue';
2
+ import { type LightboxItem, type LightboxOpenOptions } from './types';
3
+ export type LightboxState = {
4
+ visible: boolean;
5
+ items: LightboxItem[];
6
+ index: number;
7
+ loop: boolean;
8
+ maskClosable: boolean;
9
+ };
10
+ export declare const lightboxState: {
11
+ readonly visible: boolean;
12
+ readonly items: readonly {
13
+ readonly src: string;
14
+ readonly type?: import("./types").LightboxMediaType | undefined;
15
+ readonly alt?: string | undefined;
16
+ readonly title?: string | undefined;
17
+ readonly poster?: string | undefined;
18
+ }[];
19
+ readonly index: number;
20
+ readonly loop: boolean;
21
+ readonly maskClosable: boolean;
22
+ };
23
+ export declare function openLightbox(options: LightboxOpenOptions): void;
24
+ export declare function closeLightbox(): void;
25
+ export declare function setLightboxIndex(index: number): void;
26
+ export declare function goToPreviousItem(): void;
27
+ export declare function goToNextItem(): void;
28
+ export declare function canGoPrevious(): boolean;
29
+ export declare function canGoNext(): boolean;
30
+ export declare function installLightbox(app: App): void;
@@ -0,0 +1,24 @@
1
+ import type { InjectionKey } from 'vue';
2
+ export type LightboxMediaType = 'image' | 'video';
3
+ export type LightboxItem = {
4
+ src: string;
5
+ type?: LightboxMediaType;
6
+ alt?: string;
7
+ title?: string;
8
+ /** Poster image for video items. */
9
+ poster?: string;
10
+ };
11
+ export type LightboxItemInput = string | LightboxItem;
12
+ export type LightboxOpenOptions = {
13
+ items: LightboxItemInput[];
14
+ index?: number;
15
+ loop?: boolean;
16
+ maskClosable?: boolean;
17
+ onShow?: () => void;
18
+ onHide?: () => void;
19
+ };
20
+ export type LightboxApi = {
21
+ open: (options: LightboxOpenOptions) => void;
22
+ close: () => void;
23
+ };
24
+ export declare const LIGHTBOX_KEY: InjectionKey<LightboxApi>;
package/package.json CHANGED
@@ -1,105 +1,113 @@
1
1
  {
2
- "name": "@bcc-code/component-library-vue",
3
- "version": "0.0.0-dev.ce91d1a",
4
- "type": "module",
5
- "description": "Extended Vue component library based on PrimeVue and BCC design tokens",
6
- "repository": "https://github.com/bcc-code/bcc-design.git",
7
- "license": "Apache-2.0",
8
- "publishConfig": {
9
- "access": "public"
10
- },
11
- "packageManager": "pnpm@9.15.0",
12
- "files": [
13
- "dist",
14
- "dist-types",
15
- "dist-css"
16
- ],
17
- "main": "./dist/component-library.umd.cjs",
18
- "module": "./dist/component-library.js",
19
- "types": "./dist-types/index.d.ts",
20
- "exports": {
21
- ".": {
22
- "import": {
23
- "types": "./dist-types/index.d.ts",
24
- "default": "./dist/component-library.js"
25
- },
26
- "require": {
27
- "types": "./dist-types/index.d.ts",
28
- "default": "./dist/component-library.umd.cjs"
29
- }
30
- },
31
- "./style.css": "./dist/index.css",
32
- "./theme.css": "./dist/theme.css",
33
- "./archivo-font.css": "./dist/archivo-font.css",
34
- "./tailwind.css": "./dist-css/tailwind.css"
35
- },
36
- "scripts": {
37
- "start": "storybook dev -p 6006",
38
- "build-storybook": "storybook build",
39
- "build": "run-p typecheck build:types build:vite",
40
- "build:vite": "rimraf dist && vite build && node scripts/build-theme-css.mjs",
41
- "build:types": "rimraf dist-types && vue-tsc -p tsconfig.build.json",
42
- "generate:semantic": "node scripts/restructure-semantic-primitives.mjs",
43
- "generate:semantic-css": "node scripts/generate-semantic-css.mjs",
44
- "generate:context-modes": "node scripts/generate-context-modes.mjs",
45
- "generate:context-css": "node scripts/generate-context-css.mjs",
46
- "generate": "pnpm run generate:semantic && pnpm run generate:semantic-css && pnpm run generate:context-modes && pnpm run generate:context-css",
47
- "sync:primevue-icon-patches": "node scripts/sync-primevue-icon-patches.mjs",
48
- "typecheck": "vue-tsc --noEmit",
49
- "lint": "eslint src/**/*.ts src/**/*.vue",
50
- "lint:fix": "eslint --fix src/**/*.ts src/**/*.vue",
51
- "test:unit": "vitest run",
52
- "release-channel": "node ./scripts/release-channel.cjs",
53
- "create-version": "node ./scripts/version.cjs"
54
- },
55
- "dependencies": {
56
- "@bcc-code/design-tokens": "^5.1.34",
57
- "@bcc-code/icons-vue": "^1.4.0",
58
- "@primeuix/themes": "^2.0.3",
59
- "@tailwindcss/vite": "^4.1.18",
60
- "primevue": "^4.5.4",
61
- "tailwindcss": "^4.0.0"
62
- },
63
- "peerDependencies": {
64
- "vue": "^3.5.0"
65
- },
66
- "devDependencies": {
67
- "@eslint/js": "^9.39.2",
68
- "@primevue/auto-import-resolver": "^4.5.4",
69
- "@storybook/addon-docs": "^10.2.8",
70
- "@storybook/manager-api": "^8.6.14",
71
- "@storybook/theming": "^8.6.14",
72
- "@storybook/vue3": "^10.0.0",
73
- "@storybook/vue3-vite": "^10.0.0",
74
- "@types/node": "^22.0.0",
75
- "@vitejs/plugin-vue": "^6.0.0",
76
- "@vue/eslint-config-prettier": "^10.2.0",
77
- "@vue/test-utils": "^2.4.6",
78
- "@vue/tsconfig": "^0.7.0",
79
- "autoprefixer": "^10.4.20",
80
- "eslint": "^9.39.2",
81
- "eslint-plugin-prettier": "^5.5.5",
82
- "eslint-plugin-vue": "^10.7.0",
83
- "globals": "^17.3.0",
84
- "jiti": "^2.6.1",
85
- "npm-run-all": "^4.1.5",
86
- "postcss": "^8.4.49",
87
- "prettier": "^3.8.1",
88
- "prettier-plugin-tailwindcss": "^0.7.2",
89
- "remark-gfm": "^4.0.0",
90
- "rimraf": "^6.0.0",
91
- "storybook": "^10.0.0",
92
- "typescript": "~5.7.0",
93
- "typescript-eslint": "^8.54.0",
94
- "unplugin-vue-components": "^31.0.0",
95
- "vite": "^7.3.0",
96
- "vitest": "^4.0.18",
97
- "vue": "^3.5.0",
98
- "vue-tsc": "^3.2.4"
99
- },
100
- "pnpm": {
101
- "patchedDependencies": {
102
- "@primevue/icons": "patches/@primevue__icons.patch"
103
- }
104
- }
2
+ "name": "@bcc-code/component-library-vue",
3
+ "version": "0.0.0-dev.d10219f",
4
+ "type": "module",
5
+ "description": "Extended Vue component library based on PrimeVue and BCC design tokens",
6
+ "repository": "https://github.com/bcc-code/bcc-design.git",
7
+ "license": "Apache-2.0",
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
11
+ "packageManager": "pnpm@9.15.0",
12
+ "files": [
13
+ "dist",
14
+ "dist-types",
15
+ "dist-css"
16
+ ],
17
+ "main": "./dist/component-library.umd.cjs",
18
+ "module": "./dist/component-library.js",
19
+ "types": "./dist-types/index.d.ts",
20
+ "exports": {
21
+ ".": {
22
+ "import": {
23
+ "types": "./dist-types/index.d.ts",
24
+ "default": "./dist/component-library.js"
25
+ },
26
+ "require": {
27
+ "types": "./dist-types/index.d.ts",
28
+ "default": "./dist/component-library.umd.cjs"
29
+ }
30
+ },
31
+ "./style.css": "./dist/index.css",
32
+ "./theme.css": "./dist/theme.css",
33
+ "./sfc-styles.css": "./dist/sfc-styles.css",
34
+ "./library-utilities.css": "./dist/library-utilities.css",
35
+ "./archivo-font.css": "./dist/archivo-font.css",
36
+ "./tailwind.css": "./dist-css/tailwind.css"
37
+ },
38
+ "scripts": {
39
+ "start": "storybook dev -p 6006",
40
+ "build-storybook": "storybook build",
41
+ "build": "run-p typecheck build:types build:vite",
42
+ "build:vite": "rimraf dist && vite build && pnpm run build:sfc-styles && pnpm run build:library-utilities && node scripts/build-archivo-font.mjs && node scripts/build-theme-css.mjs",
43
+ "build:sfc-styles": "vite build --config vite.config.sfc-styles.ts && rimraf dist/sfc-styles.js",
44
+ "build:library-utilities": "tailwindcss -i src/library-utilities-input.css -o dist/library-utilities.css --minify",
45
+ "build:types": "rimraf dist-types && vue-tsc -p tsconfig.build.json",
46
+ "generate:semantic": "node scripts/restructure-semantic-primitives.mjs",
47
+ "generate:semantic-css": "node scripts/generate-semantic-css.mjs",
48
+ "generate:context-modes": "node scripts/generate-context-modes.mjs",
49
+ "generate:context-css": "node scripts/generate-context-css.mjs",
50
+ "generate": "pnpm run generate:semantic && pnpm run generate:semantic-css && pnpm run generate:context-modes && pnpm run generate:context-css",
51
+ "sync:primevue-icon-patches": "node scripts/sync-primevue-icon-patches.mjs",
52
+ "typecheck": "vue-tsc --noEmit",
53
+ "lint": "eslint src/**/*.ts src/**/*.vue",
54
+ "lint:fix": "eslint --fix src/**/*.ts src/**/*.vue",
55
+ "test:unit": "vitest run",
56
+ "test:e2e": "playwright test",
57
+ "release-channel": "node ./scripts/release-channel.cjs",
58
+ "create-version": "node ./scripts/version.cjs"
59
+ },
60
+ "dependencies": {
61
+ "@bcc-code/design-tokens": "^5.2.5",
62
+ "@bcc-code/icons-vue": "^1.4.0",
63
+ "@primeuix/themes": "^2.0.3",
64
+ "@tailwindcss/vite": "^4.1.18",
65
+ "primevue": "^4.5.4",
66
+ "tailwindcss": "^4.0.0"
67
+ },
68
+ "peerDependencies": {
69
+ "vue": "^3.5.0"
70
+ },
71
+ "devDependencies": {
72
+ "@eslint/js": "^9.39.2",
73
+ "@playwright/test": "^1.59.1",
74
+ "@primevue/auto-import-resolver": "^4.5.4",
75
+ "@storybook/addon-docs": "^10.3.5",
76
+ "@storybook/vue3-vite": "^10.3.5",
77
+ "@tailwindcss/cli": "^4.2.4",
78
+ "@types/node": "^22.0.0",
79
+ "@vitejs/plugin-vue": "^6.0.0",
80
+ "@vue/eslint-config-prettier": "^10.2.0",
81
+ "@vue/test-utils": "^2.4.6",
82
+ "@vue/tsconfig": "^0.7.0",
83
+ "autoprefixer": "^10.4.20",
84
+ "eslint": "^9.39.2",
85
+ "eslint-plugin-prettier": "^5.5.5",
86
+ "eslint-plugin-storybook": "10.3.5",
87
+ "eslint-plugin-vue": "^10.7.0",
88
+ "globals": "^17.3.0",
89
+ "http-server": "^14.1.1",
90
+ "jiti": "^2.6.1",
91
+ "npm-run-all": "^4.1.5",
92
+ "postcss": "^8.4.49",
93
+ "prettier": "^3.8.1",
94
+ "prettier-plugin-tailwindcss": "^0.7.2",
95
+ "quill": "^2.0.3",
96
+ "remark-gfm": "^4.0.0",
97
+ "rimraf": "^6.0.0",
98
+ "storybook": "^10.3.5",
99
+ "tippy.js": "^6.3.7",
100
+ "typescript": "~5.7.0",
101
+ "typescript-eslint": "^8.54.0",
102
+ "unplugin-vue-components": "^31.0.0",
103
+ "vite": "^7.3.0",
104
+ "vitest": "^4.0.18",
105
+ "vue": "^3.5.0",
106
+ "vue-tsc": "^3.2.4"
107
+ },
108
+ "pnpm": {
109
+ "patchedDependencies": {
110
+ "@primevue/icons": "patches/@primevue__icons.patch"
111
+ }
112
+ }
105
113
  }