@bcc-code/component-library-vue 0.0.0-dev.04e49df → 0.0.0-dev.06d31a8

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/theme.css CHANGED
@@ -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
  }
@@ -1901,14 +1902,26 @@
1901
1902
  z-index: 2;
1902
1903
  }
1903
1904
 
1904
- .p-dialog-close-button .p-icon {
1905
- height: var(--icon-size-sm);
1906
- width: var(--icon-size-sm);
1905
+ .p-dialog-close-button {
1906
+ --p-icon-size: var(--icon-size-sm);
1907
1907
  }
1908
1908
  .p-dialog .p-button-icon:empty {
1909
1909
  display: none;
1910
1910
  }
1911
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
+
1912
1925
 
1913
1926
 
1914
1927
 
@@ -1917,57 +1930,36 @@
1917
1930
  /* from ./BccAppNavigation/BccAppNavigation.css */
1918
1931
  @layer components {
1919
1932
  .bcc-app-nav {
1920
- @apply pb-inset-bottom-2 absolute inset-x-0 bottom-0 z-20 flex w-full items-center justify-center overflow-visible;
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;
1921
1941
  }
1922
- .bcc-app-nav .bcc-app-nav-container {
1923
- @apply dark:border-default mx-auto flex items-center justify-center border border-white p-0.5;
1924
-
1925
- border-radius: 20px;
1926
- background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(243, 244, 246, 0.4) 100%);
1927
- backdrop-filter: blur(12px) saturate(160%);
1928
- -webkit-backdrop-filter: blur(12px) saturate(160%);
1929
-
1930
- max-width: min(96%, var(--container-lg));
1931
- box-shadow:
1932
- /* inner bevel (top-left highlight, bottom-right shade) */
1933
- inset 0 0 32px white,
1934
- inset 1px 0 4px -1px rgba(0, 0, 0, 0.3),
1935
- inset 1px -2px 0 -1px white,
1936
- inset -1px 2px 0 -1px white,
1937
- 0px -1px 1px -2px rgba(16, 24, 40, 0.05),
1938
- 0px 4px 6px -2px rgba(16, 24, 40, 0.05),
1939
- 0px 12px 16px -4px rgba(16, 24, 40, 0.1);
1942
+
1943
+ .bcc-nav-item-icon {
1944
+ @apply size-6 opacity-50;
1940
1945
  }
1941
- .dark .bcc-app-nav {
1942
- @apply backdrop-blur-sm;
1943
- background: transparent;
1944
- box-shadow: none;
1946
+
1947
+ .bcc-nav-item-badge {
1948
+ @apply absolute top-0 right-1 opacity-75;
1945
1949
  }
1946
1950
 
1947
- .bcc-app-nav .bcc-app-nav-item {
1948
- @apply col text-text-subtlest relative h-12 min-w-16 cursor-pointer rounded-xl border border-transparent px-2 opacity-90 transition-all select-none focus:outline-none;
1951
+ .bcc-nav-item-title {
1952
+ @apply text-heading-xs text-center opacity-50;
1949
1953
  }
1950
1954
 
1951
- .bcc-app-nav .bcc-app-nav-item--active {
1952
- @apply text-brand-default bg-dark-neutral-alpha-500-a border-white opacity-100;
1953
- box-shadow:
1954
- /* inner bevel (top-left highlight, bottom-right shade) */
1955
- inset 1px 0 4px -1px rgba(0, 100, 50, 0.3),
1956
- inset 1px 2px 0 -1px white,
1957
- inset -1px -2px 0 -1px white,
1958
- inset 0 0 1px 0 rgba(0, 100, 50, 0.1),
1959
- inset 0 -3px 2px 0 rgba(0, 100, 50, 0.1);
1955
+ .bcc-app-nav-item--active {
1956
+ @apply text-selected;
1960
1957
  }
1961
1958
 
1962
- .dark .bcc-app-nav .bcc-app-nav-item--active {
1963
- @apply bg-neutral-alpha-500-a text-brand-bold border-transparent;
1964
- box-shadow:
1965
- /* inner bevel (top-left highlight, bottom-right shade) */
1966
- inset 1px 0 4px -1px var(--blue-500),
1967
- inset 1px 2px 0 -1px var(--blue-900),
1968
- inset -1px -2px 0 -1px var(--blue-900),
1969
- inset 0 0 1px 0 var(--blue-300),
1970
- inset 0 -3px 2px 0 var(--blue-300);
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;
1971
1963
  }
1972
1964
  }
1973
1965
 
@@ -1975,67 +1967,70 @@
1975
1967
 
1976
1968
  /* from ./BccBadge/BccBadge.css */
1977
1969
  @layer components {
1978
- .bcc-badge {
1979
- @apply inline-flex shrink-0 gap-1 items-center justify-center rounded-full leading-none whitespace-nowrap;
1980
-
1981
- @apply bg-ctx text-ctx;
1982
- }
1970
+ .bcc-badge {
1971
+ @apply inline-flex shrink-0 items-center justify-center gap-1 rounded-full leading-none whitespace-nowrap;
1983
1972
 
1984
- .bcc-badge.capital {
1985
- @apply inline-flex;
1986
- }
1987
- .bcc-badge.gradient {
1988
- @apply ctx-gradient;
1989
- }
1990
- .bcc-badge.sm {
1991
- @apply w-4 h-4 text-heading-xs;
1992
- }
1993
- .bcc-badge.md {
1994
- @apply h-5 w-5 text-heading-sm;
1995
- }
1996
- .bcc-badge.lg {
1997
- @apply w-6 h-6 text-heading-md;
1998
- }
1999
- .bcc-badge.xl {
2000
- @apply w-8 h-8 text-heading-md;
2001
- }
1973
+ @apply bg-ctx text-ctx;
1974
+ }
2002
1975
 
2003
- .bcc-badge .bcc-badge-icon {
2004
- @apply size-4;
2005
- }
2006
- .bcc-badge.lg .bcc-badge-icon {
2007
- @apply size-5;
2008
- }
2009
- .bcc-badge.xl .bcc-badge-icon {
2010
- @apply size-6;
2011
- }
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
+ }
2012
1994
 
2013
- .bcc-badge.bcc-badge-text {
2014
- @apply w-auto px-2;
2015
- }
2016
- .bcc-badge-text.lg, .bcc-badge-text.xl {
2017
- @apply px-3;
2018
- }
2019
- .bcc-badge-text.border.lg, .bcc-badge-text.border.xl {
2020
- @apply px-2;
2021
- }
2022
- .bcc-badge-text.bordered.lg, .bcc-badge-text.bordered.xl {
2023
- @apply px-1;
2024
- }
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
+ }
2025
2004
 
2026
- .bcc-badge.border {
2027
- @apply border-1;
2028
- border-color: var(--ctx-background-pressed);
2029
- }
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
+ }
2030
2020
 
2031
- .bcc-badge.bordered {
2032
- @apply border-2;
2033
- border-color: var(--ctx-background-pressed);
2034
- }
2021
+ .bcc-badge.border {
2022
+ @apply border-1;
2023
+ border-color: var(--ctx-background-pressed);
2024
+ }
2035
2025
 
2036
- .bcc-badge.squared {
2037
- @apply rounded-sm;
2038
- }
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
+ }
2039
2034
  }
2040
2035
 
2041
2036
 
@@ -2084,6 +2079,7 @@
2084
2079
 
2085
2080
  .bcc-capacity-indicator.is-warning {
2086
2081
  @apply ctx-yellow-subtlest;
2082
+ --bcc-capacity-indicator-circle: var(--ctx-background);
2087
2083
  }
2088
2084
 
2089
2085
  .bcc-capacity-indicator.is-full {
@@ -2523,6 +2519,9 @@
2523
2519
  height: 100%;
2524
2520
  overflow: auto;
2525
2521
  }
2522
+ .bcc-tabs-fluid.p-tabs {
2523
+ width: 100%;
2524
+ }
2526
2525
  }
2527
2526
 
2528
2527
 
@@ -2551,6 +2550,8 @@
2551
2550
  @apply m-0 p-0 font-sans antialiased;
2552
2551
  -webkit-font-smoothing: antialiased;
2553
2552
  -moz-osx-font-smoothing: grayscale;
2553
+ line-height: 1.2;
2554
+ font-kerning: normal;
2554
2555
  }
2555
2556
 
2556
2557
  hr {
@@ -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";
@@ -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,18 @@
1
+ import { type RadioButtonProps as PrimeRadioButtonProps } from 'primevue/radiobutton';
2
+ export type RadioButtonProps = PrimeRadioButtonProps & {
3
+ label?: string;
4
+ labelLeft?: boolean;
5
+ };
6
+ declare var __VLS_6: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_6) => any;
9
+ };
10
+ 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>;
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
+ };
@@ -13,6 +13,8 @@ export type TabsProps = Omit<PrimeTabsProps, 'value'> & {
13
13
  fill?: boolean;
14
14
  modelValue?: number;
15
15
  noPanels?: boolean;
16
+ fluid?: boolean;
17
+ bold?: boolean;
16
18
  };
17
19
  type __VLS_Props = TabsProps;
18
20
  type __VLS_ModelProps = {
@@ -11,6 +11,7 @@ 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';
14
15
  export { default as BccTabs } from './BccTabs/BccTabs.vue';
15
16
  export { default as BccToggle } from './BccToggle/BccToggle.vue';
16
17
  export { default as BccToggleButton } from './BccToggleButton.vue';
@@ -22,6 +23,7 @@ export type { ImageProps } from './BccImage.vue';
22
23
  export type { InputProps } from './BccInput.vue';
23
24
  export type { BccMenuItem, MenuProps } from './BccMenu/BccMenu.vue';
24
25
  export type { MessageProps } from './BccMessage.vue';
26
+ export type { RadioButtonProps } from './BccRadioButton.vue';
25
27
  export type { TabItem, TabsProps } from './BccTabs/BccTabs.vue';
26
28
  export type { ToggleProps } from './BccToggle/BccToggle.vue';
27
29
  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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcc-code/component-library-vue",
3
- "version": "0.0.0-dev.04e49df",
3
+ "version": "0.0.0-dev.06d31a8",
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.42",
56
+ "@bcc-code/design-tokens": "^5.1.50",
57
57
  "@bcc-code/icons-vue": "^1.4.0",
58
58
  "@primeuix/themes": "^2.0.3",
59
59
  "@tailwindcss/vite": "^4.1.18",