@appscode/design-system 2.5.6 → 2.5.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "2.5.6",
3
+ "version": "2.5.7",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -6,12 +6,14 @@ import AcButton from "../button/Button.vue";
6
6
  interface Props {
7
7
  spacing?: string;
8
8
  copyBtn?: boolean;
9
+ custom?: boolean;
9
10
  code?: string;
10
11
  }
11
12
 
12
13
  const props = withDefaults(defineProps<Props>(), {
13
14
  spacing: "pr-48",
14
15
  copyBtn: true,
16
+ custom: false,
15
17
  code: "",
16
18
  });
17
19
  const source = computed(() => props.code);
@@ -30,7 +32,8 @@ const { copy, copied } = useClipboard({ source, legacy: true });
30
32
  @click="copy()"
31
33
  />
32
34
  </div>
33
- <pre class="ac-hscrollbar is-border-none">
35
+ <slot v-if="custom" name="body" />
36
+ <pre v-else class="ac-hscrollbar is-border-none">
34
37
  {{ source }}
35
38
  </pre>
36
39
  </div>