@bcc-code/component-library-vue 0.8.8 → 0.8.10

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
@@ -1909,6 +1909,19 @@
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,19 +1930,36 @@
1917
1930
  /* from ./BccAppNavigation/BccAppNavigation.css */
1918
1931
  @layer components {
1919
1932
  .bcc-app-nav {
1920
- @apply sticky inset-x-0 bottom-0 z-20 overflow-visible bg-elevation-surface-default shadow-md sm:rounded-t-xl;
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;
1921
1934
  }
1922
- .bcc-app-nav .bcc-app-nav-container {
1935
+ .bcc-app-nav-container {
1923
1936
  @apply center pb-inset-bottom-1 mx-auto max-w-lg pt-1;
1924
1937
  }
1925
1938
 
1926
- .bcc-app-nav .bcc-app-nav-item {
1927
- @apply flex flex-col items-center justify-center relative h-12 flex-1 gap-1 ctx-gray-subtlest transition-colors focus:outline-none focus:ring-0 text-ctx;
1928
- @apply opacity-50;
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;
1929
1941
  }
1930
1942
 
1931
- .bcc-app-nav .bcc-app-nav-item--active {
1932
- @apply text-selected opacity-100;
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;
1933
1963
  }
1934
1964
  }
1935
1965
 
@@ -1937,67 +1967,70 @@
1937
1967
 
1938
1968
  /* from ./BccBadge/BccBadge.css */
1939
1969
  @layer components {
1940
- .bcc-badge {
1941
- @apply inline-flex shrink-0 gap-1 items-center justify-center rounded-full leading-none whitespace-nowrap;
1942
-
1943
- @apply bg-ctx text-ctx;
1944
- }
1970
+ .bcc-badge {
1971
+ @apply inline-flex shrink-0 items-center justify-center gap-1 rounded-full leading-none whitespace-nowrap;
1945
1972
 
1946
- .bcc-badge.capital {
1947
- @apply inline-flex;
1948
- }
1949
- .bcc-badge.gradient {
1950
- @apply ctx-gradient;
1951
- }
1952
- .bcc-badge.sm {
1953
- @apply w-4 h-4 text-heading-xs;
1954
- }
1955
- .bcc-badge.md {
1956
- @apply h-5 w-5 text-heading-sm;
1957
- }
1958
- .bcc-badge.lg {
1959
- @apply w-6 h-6 text-heading-md;
1960
- }
1961
- .bcc-badge.xl {
1962
- @apply w-8 h-8 text-heading-md;
1963
- }
1973
+ @apply bg-ctx text-ctx;
1974
+ }
1964
1975
 
1965
- .bcc-badge .bcc-badge-icon {
1966
- @apply size-4;
1967
- }
1968
- .bcc-badge.lg .bcc-badge-icon {
1969
- @apply size-5;
1970
- }
1971
- .bcc-badge.xl .bcc-badge-icon {
1972
- @apply size-6;
1973
- }
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
+ }
1974
1994
 
1975
- .bcc-badge.bcc-badge-text {
1976
- @apply w-auto px-2;
1977
- }
1978
- .bcc-badge-text.lg, .bcc-badge-text.xl {
1979
- @apply px-3;
1980
- }
1981
- .bcc-badge-text.border.lg, .bcc-badge-text.border.xl {
1982
- @apply px-2;
1983
- }
1984
- .bcc-badge-text.bordered.lg, .bcc-badge-text.bordered.xl {
1985
- @apply px-1;
1986
- }
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
+ }
1987
2004
 
1988
- .bcc-badge.border {
1989
- @apply border-1;
1990
- border-color: var(--ctx-background-pressed);
1991
- }
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
+ }
1992
2020
 
1993
- .bcc-badge.bordered {
1994
- @apply border-2;
1995
- border-color: var(--ctx-background-pressed);
1996
- }
2021
+ .bcc-badge.border {
2022
+ @apply border-1;
2023
+ border-color: var(--ctx-background-pressed);
2024
+ }
1997
2025
 
1998
- .bcc-badge.squared {
1999
- @apply rounded-sm;
2000
- }
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
+ }
2001
2034
  }
2002
2035
 
2003
2036
 
@@ -2517,6 +2550,8 @@
2517
2550
  @apply m-0 p-0 font-sans antialiased;
2518
2551
  -webkit-font-smoothing: antialiased;
2519
2552
  -moz-osx-font-smoothing: grayscale;
2553
+ line-height: 1.2;
2554
+ font-kerning: normal;
2520
2555
  }
2521
2556
 
2522
2557
  hr {
@@ -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
+ };
@@ -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.8.8",
3
+ "version": "0.8.10",
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.45",
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",