@bcc-code/component-library-vue 1.3.24 → 1.3.25

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 +1 @@
1
- .p-button.useCtx{--p-button-primary-color:var(--ctx-text);--p-button-primary-background:var(--ctx-background);--p-button-primary-border-color:var(--ctx-border);--p-button-primary-hover-background:var(--ctx-background-hover);--p-button-primary-hover-border-color:var(--ctx-border-hover);--p-button-primary-hover-color:var(--ctx-text-hover);--p-button-primary-active-background:var(--ctx-background-pressed);--p-button-primary-active-border-color:var(--ctx-border-pressed);--p-button-primary-active-color:var(--ctx-text-pressed)}.p-inputicon{--icon-size: 20px;font-size:var(--icon-size);width:var(--icon-size);height:var(--icon-size);margin-top:calc(-1 * (var(--icon-size) / 2))}.p-iconfield:has(.p-inputfield-sm) .p-inputicon{--icon-size: 16px}.p-iconfield:has(.p-inputfield-lg) .p-inputicon{--icon-size: 24px}
1
+ .p-button.useCtx{--p-button-primary-color:var(--ctx-text);--p-button-primary-background:var(--ctx-background);--p-button-primary-border-color:var(--ctx-border);--p-button-primary-hover-background:var(--ctx-background-hover);--p-button-primary-hover-border-color:var(--ctx-border-hover);--p-button-primary-hover-color:var(--ctx-text-hover);--p-button-primary-active-background:var(--ctx-background-pressed);--p-button-primary-active-border-color:var(--ctx-border-pressed);--p-button-primary-active-color:var(--ctx-text-pressed)}.p-inputicon{--icon-size: 20px;font-size:var(--icon-size);width:var(--icon-size);height:var(--icon-size);margin-top:calc(-1 * (var(--icon-size) / 2))}.p-iconfield:has(.p-inputfield-sm) .p-inputicon{--icon-size: 16px}.p-iconfield:has(.p-inputfield-lg) .p-inputicon{--icon-size: 24px}.p-message.no-shadow{box-shadow:none}
package/dist/theme.css CHANGED
@@ -1798,84 +1798,6 @@
1798
1798
 
1799
1799
 
1800
1800
 
1801
- /* === ./lightbox/BccLightbox.css === */
1802
- @layer components {
1803
- .bcc-lightbox {
1804
- @apply fixed inset-0 z-9999 flex touch-none items-center justify-center;
1805
- }
1806
-
1807
- .bcc-lightbox__backdrop {
1808
- @apply absolute inset-0 bg-black/75;
1809
- }
1810
-
1811
- .bcc-lightbox__header {
1812
- @apply top-inset-top pointer-events-none absolute inset-x-0 z-20 flex items-center justify-end gap-3 p-3;
1813
- }
1814
-
1815
- .bcc-lightbox__counter {
1816
- @apply body-sm pointer-events-none mr-auto rounded-md bg-black/50 px-2.5 py-1 text-white;
1817
- }
1818
-
1819
- .bcc-lightbox__control {
1820
- @apply pointer-events-auto flex cursor-pointer items-center justify-center rounded-md border-0 bg-black/50 p-2 text-white transition-colors hover:bg-black/65;
1821
- }
1822
-
1823
- .bcc-lightbox__icon {
1824
- @apply size-6 shrink-0;
1825
- }
1826
-
1827
- .bcc-lightbox__nav {
1828
- @apply absolute top-1/2 z-20 -translate-y-1/2;
1829
- }
1830
-
1831
- .bcc-lightbox__nav--prev {
1832
- @apply left-1 sm:left-3;
1833
- }
1834
-
1835
- .bcc-lightbox__nav--next {
1836
- @apply right-1 sm:right-3;
1837
- }
1838
-
1839
- .bcc-lightbox__stage {
1840
- @apply relative z-10 box-border flex h-full w-full max-w-6xl items-center justify-center px-2 py-14 sm:px-12;
1841
- }
1842
-
1843
- .bcc-lightbox__toolbar {
1844
- @apply center bottom-inset-bottom-4 pointer-events-none absolute z-20 flex gap-1 rounded-md bg-black/50 p-1;
1845
- }
1846
-
1847
- .bcc-lightbox__toolbar-btn {
1848
- @apply pointer-events-auto flex cursor-pointer items-center justify-center rounded-sm border-0 bg-transparent px-3 py-2 text-white transition-colors hover:bg-white/12;
1849
- }
1850
-
1851
- .bcc-lightbox__media {
1852
- @apply flex max-h-[calc(100vh-7rem)] w-full touch-none flex-col items-center justify-center;
1853
- }
1854
-
1855
- .bcc-lightbox__media--zoomable {
1856
- @apply cursor-grab active:cursor-grabbing;
1857
- }
1858
-
1859
- .bcc-lightbox__transform {
1860
- @apply flex origin-center items-center justify-center will-change-transform;
1861
- }
1862
-
1863
- .bcc-lightbox__image,
1864
- .bcc-lightbox__video {
1865
- @apply block h-auto max-h-[calc(100vh-8rem)] w-auto max-w-[min(92vw,68rem)] object-contain select-none;
1866
- }
1867
-
1868
- .bcc-lightbox__video {
1869
- @apply bg-black;
1870
- }
1871
-
1872
- .bcc-lightbox__caption {
1873
- @apply body-sm mt-3 max-w-[min(92vw,40rem)] text-center text-white;
1874
- }
1875
- }
1876
-
1877
-
1878
-
1879
1801
  /* === ./components/custom/styles.css === */
1880
1802
 
1881
1803
  /* from ./BccAppNavigation/BccAppNavigation.css */
@@ -2162,7 +2084,7 @@
2162
2084
  /* from ./BccImage/BccImage.css */
2163
2085
  @layer components {
2164
2086
  .bcc-image {
2165
- @apply relative inline-block leading-none;
2087
+ @apply relative inline-block overflow-hidden leading-none;
2166
2088
  }
2167
2089
 
2168
2090
  .bcc-image__img {
@@ -2185,11 +2107,83 @@
2185
2107
  .bcc-image__preview-icon {
2186
2108
  @apply size-6 text-white;
2187
2109
  }
2110
+ }
2188
2111
 
2189
- @media (width < 750px) {
2190
- .bcc-image--preview .bcc-image__preview-mask {
2191
- @apply opacity-100;
2192
- }
2112
+
2113
+
2114
+ /* from ./BccLightbox/BccLightbox.css */
2115
+ @layer components {
2116
+ .bcc-lightbox {
2117
+ @apply fixed inset-0 z-9999 flex touch-none items-center justify-center;
2118
+ }
2119
+
2120
+ .bcc-lightbox__backdrop {
2121
+ @apply absolute inset-0 bg-black/75;
2122
+ }
2123
+
2124
+ .bcc-lightbox__header {
2125
+ @apply top-inset-top pointer-events-none absolute inset-x-0 z-20 flex items-center justify-end gap-3 p-3;
2126
+ }
2127
+
2128
+ .bcc-lightbox__counter {
2129
+ @apply body-sm pointer-events-none mr-auto rounded-md bg-black/50 px-2.5 py-1 text-white;
2130
+ }
2131
+
2132
+ .bcc-lightbox__control {
2133
+ @apply pointer-events-auto flex cursor-pointer items-center justify-center rounded-md border-0 bg-black/50 p-2 text-white transition-colors hover:bg-black/65;
2134
+ }
2135
+
2136
+ .bcc-lightbox__icon {
2137
+ @apply size-6 shrink-0;
2138
+ }
2139
+
2140
+ .bcc-lightbox__nav {
2141
+ @apply absolute top-1/2 z-20 -translate-y-1/2;
2142
+ }
2143
+
2144
+ .bcc-lightbox__nav--prev {
2145
+ @apply left-1 sm:left-3;
2146
+ }
2147
+
2148
+ .bcc-lightbox__nav--next {
2149
+ @apply right-1 sm:right-3;
2150
+ }
2151
+
2152
+ .bcc-lightbox__stage {
2153
+ @apply relative z-10 box-border flex h-full w-full max-w-6xl items-center justify-center px-2 py-14 sm:px-12;
2154
+ }
2155
+
2156
+ .bcc-lightbox__toolbar {
2157
+ @apply center bottom-inset-bottom-4 pointer-events-none absolute z-20 flex gap-1 rounded-md bg-black/50 p-1;
2158
+ }
2159
+
2160
+ .bcc-lightbox__toolbar-btn {
2161
+ @apply pointer-events-auto flex cursor-pointer items-center justify-center rounded-sm border-0 bg-transparent px-3 py-2 text-white transition-colors hover:bg-white/12;
2162
+ }
2163
+
2164
+ .bcc-lightbox__media {
2165
+ @apply flex max-h-[calc(100vh-7rem)] w-full touch-none flex-col items-center justify-center;
2166
+ }
2167
+
2168
+ .bcc-lightbox__media--zoomable {
2169
+ @apply cursor-grab active:cursor-grabbing;
2170
+ }
2171
+
2172
+ .bcc-lightbox__transform {
2173
+ @apply flex origin-center items-center justify-center will-change-transform;
2174
+ }
2175
+
2176
+ .bcc-lightbox__image,
2177
+ .bcc-lightbox__video {
2178
+ @apply block h-auto max-h-[calc(100vh-8rem)] w-auto max-w-[min(92vw,68rem)] object-contain select-none;
2179
+ }
2180
+
2181
+ .bcc-lightbox__video {
2182
+ @apply bg-black;
2183
+ }
2184
+
2185
+ .bcc-lightbox__caption {
2186
+ @apply body-sm mt-3 max-w-[min(92vw,40rem)] text-center text-white;
2193
2187
  }
2194
2188
  }
2195
2189
 
@@ -2429,6 +2423,7 @@
2429
2423
 
2430
2424
 
2431
2425
 
2426
+
2432
2427
  /* === ./components/wrapped/styles.css === */
2433
2428
 
2434
2429
  /* from ./BccAvatar/BccAvatar.css */
@@ -1,6 +1,6 @@
1
1
  import { type StyleValue } from 'vue';
2
- import type { LightboxItemInput } from '../../../lightbox/types';
3
- export type { LightboxItem, LightboxItemInput, LightboxMediaType } from '../../../lightbox/types';
2
+ import type { LightboxItemInput } from '../BccLightbox/types';
3
+ export type { LightboxItem, LightboxItemInput, LightboxMediaType } from '../BccLightbox/types';
4
4
  export type ImageProps = {
5
5
  /** Image URL for the thumbnail and lightbox (when `imgs` is not set). */
6
6
  src?: string;
@@ -1,7 +1,6 @@
1
1
  export { default as BccLightbox } from './BccLightbox.vue';
2
2
  export { closeBccLightbox, openBccLightbox, useLightbox, usePinchPan } from './composables';
3
3
  export { detectMediaType, normalizeLightboxItem, normalizeLightboxItems } from './detectMedia';
4
- export { canGoNext, canGoPrevious, closeLightbox, goToNextItem, goToPreviousItem, installLightbox, lightboxState, openLightbox, setLightboxIndex, } from './state';
5
- export type { LightboxState } from './state';
4
+ export { installBccLightbox, LightboxStore } from './state';
6
5
  export { LIGHTBOX_KEY } from './types';
7
- export type { LightboxApi, LightboxItem, LightboxItemInput, LightboxMediaType, LightboxOpenOptions } from './types';
6
+ export type { LightboxApi, LightboxItem, LightboxItemInput, LightboxMediaType, LightboxOpenOptions, LightboxState, } from './types';
@@ -0,0 +1,33 @@
1
+ import type { App } from 'vue';
2
+ import { type LightboxOpenOptions } from './types';
3
+ export declare function openLightbox(options: LightboxOpenOptions): void;
4
+ export declare function closeLightbox(): void;
5
+ declare function setLightboxIndex(index: number): void;
6
+ declare function goToPreviousItem(): void;
7
+ declare function goToNextItem(): void;
8
+ declare function canGoPrevious(): boolean;
9
+ declare function canGoNext(): boolean;
10
+ export declare const LightboxStore: {
11
+ state: {
12
+ readonly visible: boolean;
13
+ readonly items: readonly {
14
+ readonly src: string;
15
+ readonly type?: import("./types").LightboxMediaType | undefined;
16
+ readonly alt?: string | undefined;
17
+ readonly title?: string | undefined;
18
+ readonly poster?: string | undefined;
19
+ }[];
20
+ readonly index: number;
21
+ readonly loop: boolean;
22
+ readonly maskClosable: boolean;
23
+ };
24
+ openLightbox: typeof openLightbox;
25
+ closeLightbox: typeof closeLightbox;
26
+ setLightboxIndex: typeof setLightboxIndex;
27
+ goToPreviousItem: typeof goToPreviousItem;
28
+ goToNextItem: typeof goToNextItem;
29
+ canGoPrevious: typeof canGoPrevious;
30
+ canGoNext: typeof canGoNext;
31
+ };
32
+ export declare function installBccLightbox(app: App): void;
33
+ export {};
@@ -17,6 +17,13 @@ export type LightboxOpenOptions = {
17
17
  onShow?: () => void;
18
18
  onHide?: () => void;
19
19
  };
20
+ export type LightboxState = {
21
+ visible: boolean;
22
+ items: LightboxItem[];
23
+ index: number;
24
+ loop: boolean;
25
+ maskClosable: boolean;
26
+ };
20
27
  export type LightboxApi = {
21
28
  open: (options: LightboxOpenOptions) => void;
22
29
  close: () => void;
@@ -2,6 +2,7 @@
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 * from './BccLightbox';
5
6
  export { default as BccAppNavigation } from './BccAppNavigation/BccAppNavigation.vue';
6
7
  export { default as BccBadge } from './BccBadge/BccBadge.vue';
7
8
  export { default as BccCapacityIndicator } from './BccCapacityIndicator/BccCapacityIndicator.vue';
@@ -5,6 +5,7 @@ export type MessageProps = Omit<PrimeMessageProps, 'icon'> & {
5
5
  iconRight?: VueComponent | boolean;
6
6
  title?: string;
7
7
  message?: string;
8
+ noShadow?: boolean;
8
9
  };
9
10
  declare var __VLS_19: {}, __VLS_21: {}, __VLS_23: {};
10
11
  type __VLS_Slots = {} & {
@@ -23,7 +23,6 @@ export { BCC_CONTEXTS, type BCC_CONTEXT } from './contexts';
23
23
  export { default as BccComponentLibrary } from './setup';
24
24
  export * from './types';
25
25
  export * from './components/custom';
26
- export * from './lightbox';
27
26
  export * from './components/wrapped';
28
27
  export { default as BccAccordion } from 'primevue/accordion';
29
28
  export { default as BccAccordionContent } from 'primevue/accordioncontent';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcc-code/component-library-vue",
3
- "version": "1.3.24",
3
+ "version": "1.3.25",
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",
@@ -1,30 +0,0 @@
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;