@bcc-code/component-library-vue 0.0.0-dev.7eb462c → 0.0.0-dev.8d92bd0
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 +29150 -26340
- package/dist/component-library.umd.cjs +631 -618
- package/dist/index.css +1 -1
- package/dist/theme.css +214 -130
- package/dist-types/components/custom/BccAppNavigation/BccAppNavigation.vue.d.ts +32 -0
- package/dist-types/components/custom/BccBadge/BccBadge.vue.d.ts +2 -0
- package/dist-types/components/custom/BccCapacityIndicator/BccCapacityIndicator.vue.d.ts +3 -0
- package/dist-types/components/custom/BccDialKnob/BccDialKnob.vue.d.ts +1 -1
- package/dist-types/components/custom/BccReact/BccReact.vue.d.ts +1 -1
- package/dist-types/components/custom/BccStepIndicator/BccStepIndicator.vue.d.ts +5 -5
- package/dist-types/components/custom/BccTopNavigation/BccTopNavigation.vue.d.ts +47 -0
- package/dist-types/components/custom/index.d.ts +4 -0
- package/dist-types/components/wrapped/BccAvatar/BccAvatar.vue.d.ts +1 -1
- package/dist-types/components/wrapped/BccImage.vue.d.ts +17 -0
- package/dist-types/components/wrapped/BccMenu/BccMenu.vue.d.ts +6 -6
- package/dist-types/components/wrapped/BccMessage.vue.d.ts +4 -2
- package/dist-types/components/wrapped/BccRadioButton.vue.d.ts +18 -0
- package/dist-types/components/wrapped/BccTabs/BccTabs.vue.d.ts +2 -0
- package/dist-types/components/wrapped/BccToggle/BccToggle.vue.d.ts +12 -1
- package/dist-types/components/wrapped/index.d.ts +6 -1
- package/dist-types/index.d.ts +0 -3
- package/package.json +2 -2
package/dist/theme.css
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* Layer order: Tailwind base/utilities first, then PrimeVue so component styles win */
|
|
2
2
|
@layer theme, base, tailwind, primevue;
|
|
3
|
-
@import
|
|
3
|
+
@import '@bcc-code/design-tokens/css';
|
|
4
4
|
|
|
5
|
-
@import
|
|
6
|
-
@import
|
|
7
|
-
@import
|
|
5
|
+
@import 'tailwindcss';
|
|
6
|
+
@import '@bcc-code/design-tokens/tailwind';
|
|
7
|
+
@import '@bcc-code/design-tokens/primevue/overrides';
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
/* === ./styles/theme.css === */
|
|
@@ -1832,6 +1832,7 @@
|
|
|
1832
1832
|
.p-menu-overlay,
|
|
1833
1833
|
.p-multiselect-overlay,
|
|
1834
1834
|
.p-select-overlay,
|
|
1835
|
+
.p-datepicker-panel,
|
|
1835
1836
|
.p-treeselect-overlay {
|
|
1836
1837
|
margin: var(--p-anchor-gutter) 0;
|
|
1837
1838
|
}
|
|
@@ -1852,6 +1853,12 @@
|
|
|
1852
1853
|
--p-form-field-lg-font-size: var(--icon-size-md);
|
|
1853
1854
|
}
|
|
1854
1855
|
|
|
1856
|
+
.p-autocomplete .p-autocomplete-clear-icon {
|
|
1857
|
+
/** middle-align the icon */
|
|
1858
|
+
top: calc(50% - var(--icon-size-sm) / 2);
|
|
1859
|
+
margin-top: 0;
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1855
1862
|
.p-autocomplete-clearable .p-inputtext {
|
|
1856
1863
|
flex-grow: 1;
|
|
1857
1864
|
}
|
|
@@ -1888,71 +1895,142 @@
|
|
|
1888
1895
|
--p-select-placeholder-color: var(--color-dark-neutral-1000);
|
|
1889
1896
|
}
|
|
1890
1897
|
|
|
1898
|
+
/**
|
|
1899
|
+
* Fix issue with icons inside Input within an InputGroup being hidden when Input is in focus
|
|
1900
|
+
**/
|
|
1901
|
+
.p-inputicon {
|
|
1902
|
+
z-index: 2;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
.p-dialog-close-button {
|
|
1906
|
+
--p-icon-size: var(--icon-size-sm);
|
|
1907
|
+
}
|
|
1908
|
+
.p-dialog .p-button-icon:empty {
|
|
1909
|
+
display: none;
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
.p-togglebutton {
|
|
1913
|
+
font-size: var(--text-sm);
|
|
1914
|
+
border: 0;
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
.p-togglebutton-sm {
|
|
1918
|
+
font-size: var(--text-sm);
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
.p-togglebutton-lg {
|
|
1922
|
+
font-size: var(--text-md);
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1891
1925
|
|
|
1892
1926
|
|
|
1893
1927
|
|
|
1894
1928
|
/* === ./components/custom/styles.css === */
|
|
1895
1929
|
|
|
1930
|
+
/* from ./BccAppNavigation/BccAppNavigation.css */
|
|
1931
|
+
@layer components {
|
|
1932
|
+
.bcc-app-nav {
|
|
1933
|
+
@apply bg-elevation-surface-default dark:border-brand-800 sticky inset-x-0 bottom-0 z-20 overflow-visible shadow-md sm:rounded-t-xl dark:border-t;
|
|
1934
|
+
}
|
|
1935
|
+
.bcc-app-nav-container {
|
|
1936
|
+
@apply center pb-inset-bottom-1 mx-auto max-w-lg pt-1;
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
.bcc-app-nav-item {
|
|
1940
|
+
@apply ctx-gray-subtlest text-ctx relative flex h-12 flex-1 flex-col items-center justify-center gap-1 transition-colors focus:ring-0 focus:outline-none;
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
.bcc-nav-item-icon {
|
|
1944
|
+
@apply size-6 opacity-50;
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
.bcc-nav-item-badge {
|
|
1948
|
+
@apply absolute top-0 right-1 opacity-75;
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
.bcc-nav-item-title {
|
|
1952
|
+
@apply text-heading-xs text-center opacity-50;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
.bcc-app-nav-item--active {
|
|
1956
|
+
@apply text-selected;
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
.bcc-app-nav-item--active .bcc-nav-item-icon,
|
|
1960
|
+
.bcc-app-nav-item--active .bcc-nav-item-badge,
|
|
1961
|
+
.bcc-app-nav-item--active .bcc-nav-item-title {
|
|
1962
|
+
@apply opacity-100;
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
|
|
1967
|
+
|
|
1896
1968
|
/* from ./BccBadge/BccBadge.css */
|
|
1897
1969
|
@layer components {
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
@apply bg-ctx text-ctx;
|
|
1902
|
-
}
|
|
1970
|
+
.bcc-badge {
|
|
1971
|
+
@apply inline-flex shrink-0 items-center justify-center gap-1 rounded-full leading-none whitespace-nowrap;
|
|
1903
1972
|
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
}
|
|
1907
|
-
.bcc-badge.sm {
|
|
1908
|
-
@apply w-4 h-4 text-heading-xs;
|
|
1909
|
-
}
|
|
1910
|
-
.bcc-badge.md {
|
|
1911
|
-
@apply h-5 w-5 text-heading-sm;
|
|
1912
|
-
}
|
|
1913
|
-
.bcc-badge.lg {
|
|
1914
|
-
@apply w-6 h-6 text-heading-md;
|
|
1915
|
-
}
|
|
1916
|
-
.bcc-badge.xl {
|
|
1917
|
-
@apply w-8 h-8 text-heading-md;
|
|
1918
|
-
}
|
|
1973
|
+
@apply bg-ctx text-ctx;
|
|
1974
|
+
}
|
|
1919
1975
|
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1976
|
+
.bcc-badge.capital {
|
|
1977
|
+
@apply inline-flex;
|
|
1978
|
+
}
|
|
1979
|
+
.bcc-badge.gradient {
|
|
1980
|
+
@apply ctx-gradient;
|
|
1981
|
+
}
|
|
1982
|
+
.bcc-badge.sm {
|
|
1983
|
+
@apply text-heading-xs h-4 w-4;
|
|
1984
|
+
}
|
|
1985
|
+
.bcc-badge.md {
|
|
1986
|
+
@apply text-heading-sm h-5 w-5;
|
|
1987
|
+
}
|
|
1988
|
+
.bcc-badge.lg {
|
|
1989
|
+
@apply text-heading-md h-6 w-6;
|
|
1990
|
+
}
|
|
1991
|
+
.bcc-badge.xl {
|
|
1992
|
+
@apply text-heading-md h-8 w-8;
|
|
1993
|
+
}
|
|
1929
1994
|
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
.bcc-badge-text.bordered.lg, .bcc-badge-text.bordered.xl {
|
|
1940
|
-
@apply px-1;
|
|
1941
|
-
}
|
|
1995
|
+
.bcc-badge .bcc-badge-icon {
|
|
1996
|
+
@apply size-4;
|
|
1997
|
+
}
|
|
1998
|
+
.bcc-badge.lg .bcc-badge-icon {
|
|
1999
|
+
@apply size-5;
|
|
2000
|
+
}
|
|
2001
|
+
.bcc-badge.xl .bcc-badge-icon {
|
|
2002
|
+
@apply size-6;
|
|
2003
|
+
}
|
|
1942
2004
|
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
2005
|
+
.bcc-badge.bcc-badge-text {
|
|
2006
|
+
@apply w-auto px-2;
|
|
2007
|
+
}
|
|
2008
|
+
.bcc-badge-text.lg,
|
|
2009
|
+
.bcc-badge-text.xl {
|
|
2010
|
+
@apply px-3;
|
|
2011
|
+
}
|
|
2012
|
+
.bcc-badge-text.border.lg,
|
|
2013
|
+
.bcc-badge-text.border.xl {
|
|
2014
|
+
@apply px-2;
|
|
2015
|
+
}
|
|
2016
|
+
.bcc-badge-text.bordered.lg,
|
|
2017
|
+
.bcc-badge-text.bordered.xl {
|
|
2018
|
+
@apply px-1;
|
|
2019
|
+
}
|
|
1947
2020
|
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
2021
|
+
.bcc-badge.border {
|
|
2022
|
+
@apply border-1;
|
|
2023
|
+
border-color: var(--ctx-background-pressed);
|
|
2024
|
+
}
|
|
1952
2025
|
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
2026
|
+
.bcc-badge.bordered {
|
|
2027
|
+
@apply border-2;
|
|
2028
|
+
border-color: var(--ctx-background-pressed);
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
.bcc-badge.squared {
|
|
2032
|
+
@apply rounded-sm;
|
|
2033
|
+
}
|
|
1956
2034
|
}
|
|
1957
2035
|
|
|
1958
2036
|
|
|
@@ -2001,6 +2079,7 @@
|
|
|
2001
2079
|
|
|
2002
2080
|
.bcc-capacity-indicator.is-warning {
|
|
2003
2081
|
@apply ctx-yellow-subtlest;
|
|
2082
|
+
--bcc-capacity-indicator-circle: var(--ctx-background);
|
|
2004
2083
|
}
|
|
2005
2084
|
|
|
2006
2085
|
.bcc-capacity-indicator.is-full {
|
|
@@ -2354,78 +2433,74 @@
|
|
|
2354
2433
|
|
|
2355
2434
|
/* from ./BccAvatar/BccAvatar.css */
|
|
2356
2435
|
@layer components {
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
.bcc-avatar.M {
|
|
2365
|
-
@apply ctx-blue-subtler;
|
|
2366
|
-
}
|
|
2367
|
-
.bcc-avatar.female,
|
|
2368
|
-
.bcc-avatar.F {
|
|
2369
|
-
@apply ctx-purple-subtler;
|
|
2370
|
-
}
|
|
2371
|
-
.bcc-avatar.male.child,
|
|
2372
|
-
.bcc-avatar.M.child {
|
|
2373
|
-
@apply ctx-teal-subtler;
|
|
2374
|
-
}
|
|
2375
|
-
.bcc-avatar.female.child,
|
|
2376
|
-
.bcc-avatar.F.child {
|
|
2377
|
-
@apply ctx-magenta-subtler;
|
|
2378
|
-
}
|
|
2379
|
-
.bcc-avatar.bordered {
|
|
2380
|
-
@apply border-2 border-ctx;
|
|
2381
|
-
}
|
|
2382
|
-
.bcc-avatar.xs {
|
|
2383
|
-
@apply size-5 text-xs;
|
|
2384
|
-
}
|
|
2385
|
-
.bcc-avatar.sm {
|
|
2386
|
-
@apply size-6 text-sm;
|
|
2387
|
-
}
|
|
2388
|
-
.bcc-avatar.md {
|
|
2389
|
-
@apply size-8 text-base;
|
|
2390
|
-
}
|
|
2391
|
-
.bcc-avatar.lg {
|
|
2392
|
-
@apply size-10 text-lg;
|
|
2393
|
-
}
|
|
2394
|
-
.bcc-avatar.xl {
|
|
2395
|
-
@apply size-12 text-xl;
|
|
2396
|
-
}
|
|
2397
|
-
.bcc-avatar.xxl {
|
|
2398
|
-
@apply size-20 text-3xl;
|
|
2399
|
-
}
|
|
2400
|
-
.bcc-avatar.xxxl {
|
|
2401
|
-
@apply size-24 text-4xl;
|
|
2402
|
-
}
|
|
2436
|
+
.bcc-avatar {
|
|
2437
|
+
--p-avatar-background: var(--ctx-background);
|
|
2438
|
+
--p-avatar-color: var(--ctx-text);
|
|
2439
|
+
--bcc-avatar-border: var(--ctx-border);
|
|
2440
|
+
--p-icon-size: var(--icon-size-sm);
|
|
2441
|
+
@apply ctx-gray-subtler shrink-0 overflow-hidden text-sm;
|
|
2442
|
+
}
|
|
2403
2443
|
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2444
|
+
.bcc-avatar.male,
|
|
2445
|
+
.bcc-avatar.M {
|
|
2446
|
+
@apply ctx-blue-subtler;
|
|
2447
|
+
}
|
|
2448
|
+
.bcc-avatar.female,
|
|
2449
|
+
.bcc-avatar.F {
|
|
2450
|
+
@apply ctx-purple-subtler;
|
|
2451
|
+
}
|
|
2452
|
+
.bcc-avatar.male.child,
|
|
2453
|
+
.bcc-avatar.M.child {
|
|
2454
|
+
@apply ctx-teal-subtler;
|
|
2455
|
+
}
|
|
2456
|
+
.bcc-avatar.female.child,
|
|
2457
|
+
.bcc-avatar.F.child {
|
|
2458
|
+
@apply ctx-magenta-subtler;
|
|
2459
|
+
}
|
|
2460
|
+
.bcc-avatar.bordered {
|
|
2461
|
+
@apply border-ctx border-2;
|
|
2462
|
+
}
|
|
2463
|
+
.bcc-avatar.xs {
|
|
2464
|
+
@apply size-5 text-xs;
|
|
2465
|
+
--p-icon-size: var(--icon-size-xs);
|
|
2466
|
+
}
|
|
2467
|
+
.bcc-avatar.sm {
|
|
2468
|
+
@apply size-6 text-xs;
|
|
2469
|
+
--p-icon-size: var(--icon-size-xs);
|
|
2470
|
+
}
|
|
2471
|
+
/* .bcc-avatar.md {
|
|
2472
|
+
same as default
|
|
2473
|
+
}*/
|
|
2474
|
+
.bcc-avatar.lg {
|
|
2475
|
+
@apply text-md size-10;
|
|
2476
|
+
--p-icon-size: var(--icon-size-md);
|
|
2477
|
+
}
|
|
2478
|
+
.bcc-avatar.xl {
|
|
2479
|
+
@apply size-12 text-xl;
|
|
2480
|
+
--p-icon-size: var(--icon-size-lg);
|
|
2481
|
+
}
|
|
2482
|
+
.bcc-avatar.xxl {
|
|
2483
|
+
@apply size-20 text-3xl;
|
|
2484
|
+
--p-icon-size: var(--icon-size-xl);
|
|
2485
|
+
}
|
|
2486
|
+
.bcc-avatar.xxxl {
|
|
2487
|
+
@apply size-24 text-4xl;
|
|
2488
|
+
--p-icon-size: var(--icon-size-xl);
|
|
2489
|
+
}
|
|
2416
2490
|
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2491
|
+
.p-overlaybadge .bcc-avatar.p-avatar-circle.lg ~ .p-badge,
|
|
2492
|
+
.p-overlaybadge .bcc-avatar.p-avatar-circle.xl ~ .p-badge {
|
|
2493
|
+
transform: translate(40%, -40%);
|
|
2494
|
+
}
|
|
2421
2495
|
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2496
|
+
.p-overlaybadge .bcc-avatar.p-avatar-circle.xxxl ~ .p-badge,
|
|
2497
|
+
.p-overlaybadge .bcc-avatar.p-avatar-circle.xxl ~ .p-badge {
|
|
2498
|
+
transform: translate(20%, -20%);
|
|
2499
|
+
}
|
|
2426
2500
|
}
|
|
2427
2501
|
|
|
2428
2502
|
|
|
2503
|
+
|
|
2429
2504
|
/* from ./BccTabs/BccTabs.css */
|
|
2430
2505
|
@layer components {
|
|
2431
2506
|
.bcc-tabs-fill.p-tabs {
|
|
@@ -2444,6 +2519,9 @@
|
|
|
2444
2519
|
height: 100%;
|
|
2445
2520
|
overflow: auto;
|
|
2446
2521
|
}
|
|
2522
|
+
.bcc-tabs-fluid.p-tabs {
|
|
2523
|
+
width: 100%;
|
|
2524
|
+
}
|
|
2447
2525
|
}
|
|
2448
2526
|
|
|
2449
2527
|
|
|
@@ -2466,24 +2544,30 @@
|
|
|
2466
2544
|
|
|
2467
2545
|
|
|
2468
2546
|
|
|
2469
|
-
:root,
|
|
2547
|
+
:root,
|
|
2548
|
+
:host {
|
|
2470
2549
|
--font-sans: 'Archivo', system-ui, sans-serif;
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2550
|
+
@apply m-0 p-0 font-sans antialiased;
|
|
2551
|
+
-webkit-font-smoothing: antialiased;
|
|
2552
|
+
-moz-osx-font-smoothing: grayscale;
|
|
2553
|
+
line-height: 1.2;
|
|
2554
|
+
font-kerning: normal;
|
|
2555
|
+
}
|
|
2474
2556
|
|
|
2557
|
+
hr {
|
|
2558
|
+
border-color: var(--color-border-default);
|
|
2475
2559
|
}
|
|
2476
2560
|
|
|
2477
2561
|
b,
|
|
2478
2562
|
strong,
|
|
2479
2563
|
.bold {
|
|
2480
|
-
|
|
2481
|
-
|
|
2564
|
+
font-weight: bold;
|
|
2565
|
+
--ctx-text: var(--ctx-text-bold);
|
|
2482
2566
|
}
|
|
2483
2567
|
|
|
2484
2568
|
/* Disable state */
|
|
2485
2569
|
:disabled,
|
|
2486
2570
|
.disabled {
|
|
2487
|
-
|
|
2488
|
-
|
|
2571
|
+
cursor: not-allowed;
|
|
2572
|
+
pointer-events: none;
|
|
2489
2573
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { VueComponent } from '@/types';
|
|
2
|
+
import { type Component } from 'vue';
|
|
3
|
+
export type BccAppNavigationItem = {
|
|
4
|
+
key: string;
|
|
5
|
+
title: string;
|
|
6
|
+
icon: Component;
|
|
7
|
+
pin?: number;
|
|
8
|
+
/** Any additional properties will be passed to the component.
|
|
9
|
+
* @example
|
|
10
|
+
* {
|
|
11
|
+
* href: '/',
|
|
12
|
+
* target: '_blank',
|
|
13
|
+
* } or for router link:
|
|
14
|
+
* {
|
|
15
|
+
* to: '/',
|
|
16
|
+
* replace: true,
|
|
17
|
+
* }
|
|
18
|
+
*/
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_Props = {
|
|
22
|
+
items: BccAppNavigationItem[];
|
|
23
|
+
linkComponent?: VueComponent;
|
|
24
|
+
activeKey?: BccAppNavigationItem['key'] | null;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
27
|
+
select: (item: BccAppNavigationItem) => any;
|
|
28
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
29
|
+
onSelect?: ((item: BccAppNavigationItem) => any) | undefined;
|
|
30
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
32
|
+
export default _default;
|
|
@@ -13,6 +13,7 @@ export type BadgeProps = {
|
|
|
13
13
|
squared?: boolean;
|
|
14
14
|
/** Design context (e.g. neutral, brand) used for background and text color. */
|
|
15
15
|
context?: BCC_CONTEXT;
|
|
16
|
+
gradient?: boolean;
|
|
16
17
|
};
|
|
17
18
|
declare var __VLS_1: {};
|
|
18
19
|
type __VLS_Slots = {} & {
|
|
@@ -21,6 +22,7 @@ type __VLS_Slots = {} & {
|
|
|
21
22
|
declare const __VLS_base: import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
|
|
22
23
|
size: "sm" | "md" | "lg" | "xl";
|
|
23
24
|
context: BCC_CONTEXT;
|
|
25
|
+
gradient: boolean;
|
|
24
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
28
|
declare const _default: typeof __VLS_export;
|
|
@@ -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";
|
|
@@ -44,6 +44,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
44
44
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
45
45
|
}>, {
|
|
46
46
|
size: number;
|
|
47
|
+
duration: number;
|
|
47
48
|
colored: boolean;
|
|
48
49
|
arcWidth: number;
|
|
49
50
|
min: number;
|
|
@@ -51,7 +52,6 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
51
52
|
steps: number;
|
|
52
53
|
showHandle: boolean;
|
|
53
54
|
hideArrows: boolean;
|
|
54
|
-
duration: number;
|
|
55
55
|
animateRotations: number;
|
|
56
56
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
57
57
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -4,8 +4,8 @@ declare const __VLS_export: import("vue").DefineComponent<ReactProps, {}, {}, {}
|
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<ReactProps> & Readonly<{
|
|
5
5
|
onToggle?: ((id: string) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
|
-
top: boolean;
|
|
8
7
|
placeholder: string;
|
|
8
|
+
top: boolean;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const _default: typeof __VLS_export;
|
|
11
11
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type BCC_CONTEXT } from '@/contexts';
|
|
2
2
|
export type StepIndicatorProps = {
|
|
3
|
-
steps: string[];
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
steps: string[] | number;
|
|
4
|
+
hideText?: boolean;
|
|
5
|
+
hideLabel?: boolean;
|
|
6
6
|
left?: boolean;
|
|
7
7
|
right?: boolean;
|
|
8
8
|
context?: BCC_CONTEXT;
|
|
@@ -20,8 +20,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
20
20
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
22
|
context: BCC_CONTEXT;
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
hideText: boolean;
|
|
24
|
+
hideLabel: boolean;
|
|
25
25
|
headingFn: (currentStep: number, totalSteps: number) => string;
|
|
26
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
export type TopNavigationProps = {
|
|
3
|
+
title?: string | (() => string);
|
|
4
|
+
subtitle?: string | (() => string);
|
|
5
|
+
left?: ((...args: unknown[]) => Component | null) | Component | string | 'event-logo';
|
|
6
|
+
right?: ((...args: unknown[]) => Component | null) | Component | string;
|
|
7
|
+
hideBack?: boolean;
|
|
8
|
+
backTitle?: string;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Props = TopNavigationProps & {
|
|
11
|
+
relative?: boolean;
|
|
12
|
+
fixed?: boolean;
|
|
13
|
+
padded?: boolean;
|
|
14
|
+
transparent?: boolean;
|
|
15
|
+
glass?: boolean;
|
|
16
|
+
backTitle?: string;
|
|
17
|
+
force?: boolean;
|
|
18
|
+
titleLeft?: boolean;
|
|
19
|
+
};
|
|
20
|
+
declare var __VLS_1: {
|
|
21
|
+
title: {
|
|
22
|
+
title: string;
|
|
23
|
+
subtitle: string;
|
|
24
|
+
};
|
|
25
|
+
}, __VLS_13: {}, __VLS_20: {};
|
|
26
|
+
type __VLS_Slots = {} & {
|
|
27
|
+
default?: (props: typeof __VLS_1) => any;
|
|
28
|
+
} & {
|
|
29
|
+
right?: (props: typeof __VLS_13) => any;
|
|
30
|
+
} & {
|
|
31
|
+
bottom?: (props: typeof __VLS_20) => any;
|
|
32
|
+
};
|
|
33
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
34
|
+
back: () => any;
|
|
35
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
36
|
+
onBack?: (() => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
hideBack: boolean;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
41
|
+
declare const _default: typeof __VLS_export;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -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 { default as BccAppNavigation } from './BccAppNavigation/BccAppNavigation.vue';
|
|
5
6
|
export { default as BccBadge } from './BccBadge/BccBadge.vue';
|
|
6
7
|
export { default as BccCapacityIndicator } from './BccCapacityIndicator/BccCapacityIndicator.vue';
|
|
7
8
|
export { default as BccCircleLoader } from './BccCircleLoader/BccCircleLoader.vue';
|
|
@@ -14,6 +15,8 @@ export { default as BccReact } from './BccReact/BccReact.vue';
|
|
|
14
15
|
export { default as BccReactEmoji } from './BccReact/BccReactEmoji.vue';
|
|
15
16
|
export { default as BccStepIndicator } from './BccStepIndicator/BccStepIndicator.vue';
|
|
16
17
|
export { default as BccTag } from './BccTag/BccTag.vue';
|
|
18
|
+
export { default as BccTopNavigation } from './BccTopNavigation/BccTopNavigation.vue';
|
|
19
|
+
export type { BccAppNavigationItem } from './BccAppNavigation/BccAppNavigation.vue';
|
|
17
20
|
export type { BadgeProps } from './BccBadge/BccBadge.vue';
|
|
18
21
|
export type { CapacityIndicatorProps } from './BccCapacityIndicator/BccCapacityIndicator.vue';
|
|
19
22
|
export type { KnobProps, KnobSlots } from './BccDialKnob/BccDialKnob.vue';
|
|
@@ -24,3 +27,4 @@ export type { NpsScoreProps } from './BccNpsScore/BccNpsScore.vue';
|
|
|
24
27
|
export type { ReactInfo, ReactProps } from './BccReact/types';
|
|
25
28
|
export type { StepIndicatorProps } from './BccStepIndicator/BccStepIndicator.vue';
|
|
26
29
|
export type { TagProps } from './BccTag/BccTag.vue';
|
|
30
|
+
export type { TopNavigationProps } from './BccTopNavigation/BccTopNavigation.vue';
|
|
@@ -12,7 +12,7 @@ export type AvatarProps = Omit<PrimeAvatarProps, 'shape' | 'size'> & {
|
|
|
12
12
|
/** Adds a visible border around the avatar. */
|
|
13
13
|
bordered?: boolean;
|
|
14
14
|
/** Controls the avatar dimensions; maps to CSS size classes (xs through xxl). Default: md */
|
|
15
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
15
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_export: import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ImageProps as PrimeImageProps } from 'primevue/image';
|
|
2
|
+
export type ImageProps = PrimeImageProps;
|
|
3
|
+
declare var __VLS_9: {}, __VLS_17: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
refresh?: (props: typeof __VLS_9) => any;
|
|
6
|
+
} & {
|
|
7
|
+
undo?: (props: typeof __VLS_17) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<PrimeImageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PrimeImageProps> & 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
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { VueComponent } from '@/types';
|
|
2
|
+
import { type MenuMethods as PrimeMenuMethods, type MenuProps as PrimeMenuProps } from 'primevue/menu';
|
|
2
3
|
import type { MenuItem } from 'primevue/menuitem';
|
|
3
4
|
/** Menu item model for BccMenu: icon can be a PrimeVue icon class string or a Vue icon component. */
|
|
4
5
|
export type BccMenuItem = Omit<MenuItem, 'icon' | 'items'> & {
|
|
5
|
-
icon?:
|
|
6
|
+
icon?: VueComponent;
|
|
6
7
|
items?: BccMenuItem[];
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export type MenuProps = {
|
|
10
|
+
model?: BccMenuItem[];
|
|
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>;
|
|
13
13
|
declare const _default: typeof __VLS_export;
|
|
14
14
|
export default _default;
|
|
@@ -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
|
|
9
|
+
declare var __VLS_19: {};
|
|
8
10
|
type __VLS_Slots = {} & {
|
|
9
|
-
default?: (props: typeof
|
|
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>;
|