@appscode/design-system 2.17.63 → 2.17.65

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.17.63",
3
+ "version": "2.17.65",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -620,7 +620,7 @@ em {
620
620
  $whitespace-values: normal, nowrap, pre, pre-line, pre-wrap, break-spaces;
621
621
  @each $value in $whitespace-values {
622
622
  .is-whitespace-#{$value} {
623
- white-space: #{$value};
623
+ white-space: #{$value} !important;
624
624
  }
625
625
  }
626
626
  // Whats New
@@ -9,8 +9,8 @@
9
9
  transition: 0.3s ease-in-out;
10
10
  position: relative;
11
11
  z-index: 1;
12
- min-width: 200px;
13
- max-width: 250px;
12
+ width: 250px;
13
+ height: 100%;
14
14
  margin-bottom: 0 !important;
15
15
  &.ac-radio [type="radio"] + label {
16
16
  color: $color-heading;
@@ -33,8 +33,8 @@ function hideAlert() {
33
33
  <p v-if="message">{{ message }}</p>
34
34
  <slot name="custom-text"></slot>
35
35
  </div>
36
- <slot name="buttons"></slot>
37
36
  <slot name="custom-code"></slot>
37
+ <slot name="buttons"></slot>
38
38
  </div>
39
39
 
40
40
  <button v-if="hasCrossIcon" class="button is-text" @click="hideAlert">
@@ -8,6 +8,7 @@ interface Props {
8
8
  downloadBtn?: boolean;
9
9
  code?: string;
10
10
  copyBtn?: boolean;
11
+ whiteSpaceClass?: string;
11
12
  }
12
13
 
13
14
  const props = withDefaults(defineProps<Props>(), {
@@ -15,6 +16,7 @@ const props = withDefaults(defineProps<Props>(), {
15
16
  downloadBtn: false,
16
17
  code: "",
17
18
  copyBtn: true,
19
+ whiteSpaceClass: "is-whitespace-normal",
18
20
  });
19
21
 
20
22
  const source = computed(() => props.code);
@@ -24,7 +26,7 @@ const { copy, copied } = useClipboard({ source, legacy: true });
24
26
 
25
27
  <template>
26
28
  <div class="code-container p-0">
27
- <pre class="ac-hscrollbar" :class="spacing">{{ source }}</pre>
29
+ <pre class="ac-hscrollbar" :class="[spacing, whiteSpaceClass]">{{ source }}</pre>
28
30
  <div class="buttons">
29
31
  <ac-button v-if="downloadBtn" modifier-classes="is-primary small-button" icon-class="download" />
30
32
  <ac-button