File tree Expand file tree Collapse file tree
src/vue/components/button Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525import { computed , defineProps , useSlots } from ' vue' ;
2626import Icon from ' ../icon/Icon.vue' ;
2727
28+ /**
29+ * Import red theme for destructive button style.
30+ * This is marked as external in vite config, so consumers need to import
31+ * '@codexteam/ui/styles/themes/red' in their app.
32+ */
33+ import ' @codexteam/ui/styles/themes/red' ;
34+
2835const props = withDefaults (
2936 defineProps <{
3037 /**
Original file line number Diff line number Diff line change @@ -86,6 +86,11 @@ export default defineConfig({
8686 '@vueuse/shared' ,
8787 '@editorjs/editorjs' ,
8888 '@codexteam/icons' ,
89+ /**
90+ * Theme red is used by Button component for destructive style.
91+ * Mark as external so it's not bundled into component but imported separately.
92+ */
93+ '@codexteam/ui/styles/themes/red' ,
8994 ] ,
9095 } ,
9196 } ,
You can’t perform that action at this time.
0 commit comments