@bcc-code/component-library-vue 0.0.0-dev.96d1ef2 → 0.0.0-dev.9702651
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/README.md +31 -35
- package/dist/component-library.js +7078 -5839
- package/dist/component-library.umd.cjs +1214 -186
- package/dist/index.css +1 -1
- package/dist/library-utilities.css +2 -0
- package/dist/quill-BfNQeuzX.js +7524 -0
- package/dist/sfc-styles.css +1 -0
- package/dist/theme.css +84 -74
- package/dist-types/components/custom/BccAppNavigation/BccAppNavigation.vue.d.ts +1 -0
- package/dist-types/components/custom/BccCircleLoader/BccCircleLoader.vue.d.ts +1 -3
- package/dist-types/components/custom/BccReact/BccReact.vue.d.ts +1 -1
- package/dist-types/components/wrapped/BccButton.vue.d.ts +4 -3
- package/dist-types/components/wrapped/BccCheckbox.vue.d.ts +3 -0
- package/dist-types/components/wrapped/BccMessage.vue.d.ts +5 -1
- package/dist-types/components/wrapped/BccRadioButton.vue.d.ts +1 -0
- package/dist-types/index.d.ts +1 -0
- package/package.json +9 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.p-button.useCtx[data-v-6d2be694]{--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}
|
package/dist/theme.css
CHANGED
|
@@ -1704,27 +1704,12 @@
|
|
|
1704
1704
|
|
|
1705
1705
|
|
|
1706
1706
|
|
|
1707
|
-
/* === ./styles/fonts.css === */
|
|
1708
|
-
@utility heading-xs { font: var(--heading-xs); }
|
|
1709
|
-
@utility heading-sm { font: var(--heading-sm); }
|
|
1710
|
-
@utility heading-md { font: var(--heading-md); }
|
|
1711
|
-
@utility heading-lg { font: var(--heading-lg); }
|
|
1712
|
-
@utility heading-xl { font: var(--heading-xl); }
|
|
1713
|
-
@utility heading-2xl { font: var(--heading-2xl); }
|
|
1714
|
-
@utility heading-3xl { font: var(--heading-3xl); }
|
|
1715
|
-
@utility heading-4xl { font: var(--heading-4xl); }
|
|
1716
|
-
@utility heading-5xl { font: var(--heading-5xl); }
|
|
1717
|
-
@utility body-sm { font: var(--body-sm); }
|
|
1718
|
-
@utility body-md { font: var(--body-md); }
|
|
1719
|
-
@utility body-lg { font: var(--body-lg); }
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
1707
|
/* === ./styles/component-overrides.css === */
|
|
1724
1708
|
/** Custom styles to fix primevue components that are not custom or wrapped. */
|
|
1725
1709
|
|
|
1726
1710
|
:root {
|
|
1727
|
-
--p-toast-width: min(85vw,
|
|
1711
|
+
--p-toast-width: min(85vw, calc(var(--spacing) * 100));
|
|
1712
|
+
--p-tooltip-max-width: min(85vw, calc(var(--spacing) * 100));
|
|
1728
1713
|
}
|
|
1729
1714
|
|
|
1730
1715
|
/**
|
|
@@ -1885,7 +1870,8 @@
|
|
|
1885
1870
|
}
|
|
1886
1871
|
|
|
1887
1872
|
.p-message-text {
|
|
1888
|
-
line-height:
|
|
1873
|
+
line-height: 1;
|
|
1874
|
+
flex: 1 1 0;
|
|
1889
1875
|
}
|
|
1890
1876
|
|
|
1891
1877
|
.p-multiselect {
|
|
@@ -2022,6 +2008,9 @@
|
|
|
2022
2008
|
|
|
2023
2009
|
@apply bg-ctx text-ctx;
|
|
2024
2010
|
}
|
|
2011
|
+
.bcc-badge span:empty {
|
|
2012
|
+
display: none;
|
|
2013
|
+
}
|
|
2025
2014
|
.bcc-badge.gradient {
|
|
2026
2015
|
@apply ctx-gradient;
|
|
2027
2016
|
}
|
|
@@ -2137,31 +2126,31 @@
|
|
|
2137
2126
|
|
|
2138
2127
|
/* from ./BccDialKnob/BccDialKnob.css */
|
|
2139
2128
|
@layer components {
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
--bcc-knob-arc-bg: var(--color-background-neutral-default);
|
|
2144
|
-
--bcc-knob-head: var(--color-background-brand-bolder-default);
|
|
2145
|
-
--bcc-knob-tail: var(--color-background-brand-subtle-default);
|
|
2146
|
-
|
|
2147
|
-
--bcc-knob-left-head: var(--color-background-accent-red-bolder-default);
|
|
2148
|
-
--bcc-knob-left-tail: var(--color-background-accent-red-subtle-default);
|
|
2149
|
-
|
|
2150
|
-
--bcc-knob-right-head: var(--color-background-accent-green-bolder-default);
|
|
2151
|
-
--bcc-knob-right-tail: var(--color-background-accent-green-subtle-default);
|
|
2152
|
-
}
|
|
2129
|
+
.bcc-knob {
|
|
2130
|
+
@apply relative mx-auto inline-flex touch-none items-center justify-center p-2 select-none;
|
|
2153
2131
|
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2132
|
+
--bcc-knob-arc-bg: var(--color-background-accent-gray-default);
|
|
2133
|
+
--bcc-knob-head: var(--color-background-brand-bolder-default);
|
|
2134
|
+
--bcc-knob-tail: var(--color-background-brand-subtle-default);
|
|
2157
2135
|
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
}
|
|
2136
|
+
--bcc-knob-left-head: var(--color-background-accent-red-bolder-default);
|
|
2137
|
+
--bcc-knob-left-tail: var(--color-background-accent-red-subtle-default);
|
|
2161
2138
|
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2139
|
+
--bcc-knob-right-head: var(--color-background-accent-green-bolder-default);
|
|
2140
|
+
--bcc-knob-right-tail: var(--color-background-accent-green-subtle-default);
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
.bcc-knob-label {
|
|
2144
|
+
@apply pointer-events-none absolute inset-0 flex flex-col items-center justify-center select-none;
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
.bcc-knob-top-left {
|
|
2148
|
+
@apply absolute top-0 left-0 text-left;
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
.bcc-knob-top-right {
|
|
2152
|
+
@apply absolute top-0 right-0 text-right;
|
|
2153
|
+
}
|
|
2165
2154
|
}
|
|
2166
2155
|
|
|
2167
2156
|
|
|
@@ -2207,43 +2196,52 @@
|
|
|
2207
2196
|
|
|
2208
2197
|
/* from ./BccGraphic/BccGraphic.css */
|
|
2209
2198
|
@layer components {
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2199
|
+
.bcc-graphic .corner,
|
|
2200
|
+
.bcc-graphic .center-slot {
|
|
2201
|
+
@apply absolute z-10;
|
|
2202
|
+
}
|
|
2203
|
+
.bcc-graphic .corner.top-left {
|
|
2204
|
+
@apply top-4 left-4;
|
|
2205
|
+
}
|
|
2206
|
+
.bcc-graphic .corner.top-right {
|
|
2207
|
+
@apply top-4 right-4;
|
|
2208
|
+
}
|
|
2209
|
+
.bcc-graphic .corner.bottom-right {
|
|
2210
|
+
@apply right-4 bottom-4;
|
|
2211
|
+
}
|
|
2212
|
+
.bcc-graphic .corner.bottom-left {
|
|
2213
|
+
@apply bottom-4 left-4;
|
|
2214
|
+
}
|
|
2215
|
+
.bcc-graphic .center-slot {
|
|
2216
|
+
@apply inset-1/4 flex h-1/2 w-1/2 items-center justify-center;
|
|
2217
|
+
}
|
|
2229
2218
|
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2219
|
+
.bcc-graphic {
|
|
2220
|
+
@apply from-background-brand-bolder-default to-background-brand-subtle-default relative flex max-h-full w-full bg-linear-to-tr;
|
|
2221
|
+
}
|
|
2233
2222
|
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2223
|
+
.bcc-graphic-banner {
|
|
2224
|
+
@apply absolute inset-0 h-full w-full object-cover object-center;
|
|
2225
|
+
}
|
|
2226
|
+
.bcc-graphic-banner--loading {
|
|
2227
|
+
@apply from-background-brand-bolder-default to-background-brand-subtle-default animate-pulse bg-linear-to-tr;
|
|
2228
|
+
}
|
|
2240
2229
|
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2230
|
+
.bcc-graphic-logo {
|
|
2231
|
+
@apply absolute inset-1/4 h-1/2 w-1/2 object-contain object-center;
|
|
2232
|
+
}
|
|
2233
|
+
.bcc-graphic-logo--loading {
|
|
2234
|
+
@apply animate-pulse bg-black opacity-10 blur-sm;
|
|
2235
|
+
}
|
|
2236
|
+
|
|
2237
|
+
.bcc-graphic.bcc-gb-grayscale .bcc-graphic-banner,
|
|
2238
|
+
.bcc-graphic.bcc-gb-grayscale .bcc-graphic-logo {
|
|
2239
|
+
@apply brightness-75 grayscale;
|
|
2240
|
+
}
|
|
2241
|
+
.bcc-graphic.bcc-gb-highlight .bcc-graphic-banner,
|
|
2242
|
+
.bcc-graphic.bcc-gb-highlight .bcc-graphic-logo {
|
|
2243
|
+
@apply brightness-150;
|
|
2244
|
+
}
|
|
2247
2245
|
}
|
|
2248
2246
|
|
|
2249
2247
|
|
|
@@ -2575,6 +2573,9 @@
|
|
|
2575
2573
|
.bcc-tabs-fluid.p-tabs {
|
|
2576
2574
|
width: 100%;
|
|
2577
2575
|
}
|
|
2576
|
+
.p-tabs .p-tab {
|
|
2577
|
+
@apply heading-sm;
|
|
2578
|
+
}
|
|
2578
2579
|
}
|
|
2579
2580
|
|
|
2580
2581
|
|
|
@@ -2624,3 +2625,12 @@ strong,
|
|
|
2624
2625
|
cursor: not-allowed;
|
|
2625
2626
|
pointer-events: none;
|
|
2626
2627
|
}
|
|
2628
|
+
|
|
2629
|
+
|
|
2630
|
+
/* SFC <style> blocks extracted all .vue components
|
|
2631
|
+
@import './sfc-styles.css';
|
|
2632
|
+
|
|
2633
|
+
/* Library utility classes, compiled from the library's own components.
|
|
2634
|
+
Contains only the utility class rules used inside the library — no preflight,
|
|
2635
|
+
no @theme variables, no design tokens, since theme.css already provides those. */
|
|
2636
|
+
@import './library-utilities.css';
|
|
@@ -4,8 +4,6 @@ type __VLS_Props = {
|
|
|
4
4
|
left?: boolean;
|
|
5
5
|
right?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
-
size: "sm" | "md" | "base" | "lg" | "xl" | "2xl" | "3xl";
|
|
9
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
8
|
declare const _default: typeof __VLS_export;
|
|
11
9
|
export default _default;
|
|
@@ -4,9 +4,9 @@ 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
|
-
placeholder: string;
|
|
8
7
|
top: boolean;
|
|
9
8
|
emojis: ReactInfo[];
|
|
9
|
+
placeholder: string;
|
|
10
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
export default _default;
|
|
@@ -5,11 +5,12 @@ export type ButtonProps = {
|
|
|
5
5
|
iconRight?: boolean;
|
|
6
6
|
iconClass?: PrimeButtonProps['iconClass'];
|
|
7
7
|
size?: PrimeButtonProps['size'];
|
|
8
|
+
loadingIcon?: VueComponent;
|
|
8
9
|
useCtx?: boolean;
|
|
9
|
-
} & /* @vue-ignore */ Omit<PrimeButtonProps, 'icon' | 'iconPos'>;
|
|
10
|
-
declare var
|
|
10
|
+
} & /* @vue-ignore */ Omit<PrimeButtonProps, 'icon' | 'iconPos' | 'loadingIcon'>;
|
|
11
|
+
declare var __VLS_20: {};
|
|
11
12
|
type __VLS_Slots = {} & {
|
|
12
|
-
default?: (props: typeof
|
|
13
|
+
default?: (props: typeof __VLS_20) => any;
|
|
13
14
|
};
|
|
14
15
|
declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -2,6 +2,9 @@ import { type CheckboxProps as PrimeCheckboxProps } from 'primevue/checkbox';
|
|
|
2
2
|
export type CheckboxProps = PrimeCheckboxProps & {
|
|
3
3
|
label?: string;
|
|
4
4
|
labelLeft?: boolean;
|
|
5
|
+
justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
6
|
+
labelClass?: string;
|
|
7
|
+
fluid?: boolean;
|
|
5
8
|
};
|
|
6
9
|
declare var __VLS_18: {};
|
|
7
10
|
type __VLS_Slots = {} & {
|
|
@@ -6,9 +6,13 @@ export type MessageProps = Omit<PrimeMessageProps, 'icon'> & {
|
|
|
6
6
|
title?: string;
|
|
7
7
|
message?: string;
|
|
8
8
|
};
|
|
9
|
-
declare var __VLS_19: {};
|
|
9
|
+
declare var __VLS_19: {}, __VLS_21: {}, __VLS_23: {};
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
11
|
default?: (props: typeof __VLS_19) => any;
|
|
12
|
+
} & {
|
|
13
|
+
title?: (props: typeof __VLS_21) => any;
|
|
14
|
+
} & {
|
|
15
|
+
message?: (props: typeof __VLS_23) => any;
|
|
12
16
|
};
|
|
13
17
|
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>;
|
|
14
18
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
package/dist-types/index.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export { default as BccDivider } from 'primevue/divider';
|
|
|
57
57
|
export { default as BccDock } from 'primevue/dock';
|
|
58
58
|
export { default as BccDrawer } from 'primevue/drawer';
|
|
59
59
|
export { default as BccDynamicDialog } from 'primevue/dynamicdialog';
|
|
60
|
+
export { default as BccEditor } from 'primevue/editor';
|
|
60
61
|
export { default as BccFieldset } from 'primevue/fieldset';
|
|
61
62
|
export { default as BccFileUpload } from 'primevue/fileupload';
|
|
62
63
|
export { default as BccFloatLabel } from 'primevue/floatlabel';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bcc-code/component-library-vue",
|
|
3
|
-
"version": "0.0.0-dev.
|
|
3
|
+
"version": "0.0.0-dev.9702651",
|
|
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",
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"./style.css": "./dist/index.css",
|
|
32
32
|
"./theme.css": "./dist/theme.css",
|
|
33
|
+
"./sfc-styles.css": "./dist/sfc-styles.css",
|
|
34
|
+
"./library-utilities.css": "./dist/library-utilities.css",
|
|
33
35
|
"./archivo-font.css": "./dist/archivo-font.css",
|
|
34
36
|
"./tailwind.css": "./dist-css/tailwind.css"
|
|
35
37
|
},
|
|
@@ -37,7 +39,9 @@
|
|
|
37
39
|
"start": "storybook dev -p 6006",
|
|
38
40
|
"build-storybook": "storybook build",
|
|
39
41
|
"build": "run-p typecheck build:types build:vite",
|
|
40
|
-
"build:vite": "rimraf dist && vite build && node scripts/build-theme-css.mjs",
|
|
42
|
+
"build:vite": "rimraf dist && vite build && pnpm run build:sfc-styles && pnpm run build:library-utilities && 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",
|
|
41
45
|
"build:types": "rimraf dist-types && vue-tsc -p tsconfig.build.json",
|
|
42
46
|
"generate:semantic": "node scripts/restructure-semantic-primitives.mjs",
|
|
43
47
|
"generate:semantic-css": "node scripts/generate-semantic-css.mjs",
|
|
@@ -54,7 +58,7 @@
|
|
|
54
58
|
"create-version": "node ./scripts/version.cjs"
|
|
55
59
|
},
|
|
56
60
|
"dependencies": {
|
|
57
|
-
"@bcc-code/design-tokens": "^5.2.
|
|
61
|
+
"@bcc-code/design-tokens": "^5.2.5",
|
|
58
62
|
"@bcc-code/icons-vue": "^1.4.0",
|
|
59
63
|
"@primeuix/themes": "^2.0.3",
|
|
60
64
|
"@tailwindcss/vite": "^4.1.18",
|
|
@@ -70,6 +74,7 @@
|
|
|
70
74
|
"@primevue/auto-import-resolver": "^4.5.4",
|
|
71
75
|
"@storybook/addon-docs": "^10.3.5",
|
|
72
76
|
"@storybook/vue3-vite": "^10.3.5",
|
|
77
|
+
"@tailwindcss/cli": "^4.2.4",
|
|
73
78
|
"@types/node": "^22.0.0",
|
|
74
79
|
"@vitejs/plugin-vue": "^6.0.0",
|
|
75
80
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
@@ -87,6 +92,7 @@
|
|
|
87
92
|
"postcss": "^8.4.49",
|
|
88
93
|
"prettier": "^3.8.1",
|
|
89
94
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
95
|
+
"quill": "^2.0.3",
|
|
90
96
|
"remark-gfm": "^4.0.0",
|
|
91
97
|
"rimraf": "^6.0.0",
|
|
92
98
|
"storybook": "^10.3.5",
|