@appscode/design-system 2.6.36 → 2.6.38

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.6.36",
3
+ "version": "2.6.38",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -623,3 +623,62 @@ $whitespace-values: normal, nowrap, pre, pre-line, pre-wrap, break-spaces;
623
623
  white-space: #{$value};
624
624
  }
625
625
  }
626
+ // Whats New
627
+ .whats-new {
628
+ --right: -25px;
629
+ --top: 2px;
630
+ --width: 1.5rem;
631
+ --status-color: #cc002a;
632
+ position: absolute;
633
+ z-index: 1;
634
+ top: var(--top);
635
+ right: var(--right);
636
+ font-size: 0.8rem;
637
+ color: $white-100;
638
+ padding: 0.2rem 0.3rem;
639
+ line-height: 1.2;
640
+ display: none;
641
+ border-radius: 8px;
642
+
643
+ &:before {
644
+ content: "";
645
+ position: absolute;
646
+ z-index: -1;
647
+ left: 50%;
648
+ top: 50%;
649
+ transform: translateX(-50%) translateY(-50%);
650
+ display: block;
651
+ width: var(--width);
652
+ height: 1.2rem;
653
+ background: var(--status-color);
654
+ border-radius: 8px;
655
+ animation: pulse-border 1500ms ease-out infinite;
656
+ }
657
+
658
+ &:after {
659
+ content: "";
660
+ position: absolute;
661
+ z-index: -1;
662
+ left: 50%;
663
+ top: 50%;
664
+ transform: translateX(-50%) translateY(-50%);
665
+ display: block;
666
+ width: var(--width);
667
+ height: 1.2rem;
668
+ background: var(--status-color);
669
+ transition: all 200ms;
670
+ border-radius: 8px;
671
+ }
672
+
673
+ @keyframes pulse-border {
674
+ 0% {
675
+ transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
676
+ opacity: 1;
677
+ }
678
+
679
+ 100% {
680
+ transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
681
+ opacity: 0;
682
+ }
683
+ }
684
+ }
@@ -31,6 +31,7 @@ const { copy, copied } = useClipboard({ source, legacy: true });
31
31
  :icon-class="copied ? 'check' : 'copy'"
32
32
  @click="copy()"
33
33
  />
34
+ <slot name="right" />
34
35
  </div>
35
36
  <slot v-if="custom" name="body" />
36
37
  <pre v-else class="ac-hscrollbar is-border-none">
@@ -16,11 +16,5 @@ const handleInput = (e: Event) => {
16
16
  </script>
17
17
 
18
18
  <template>
19
- <input
20
- class="ac-input"
21
- data-testid="ac-input"
22
- :class="{ 'width-200': modelValue }"
23
- :value="modelValue"
24
- @input="handleInput"
25
- />
19
+ <input class="ac-input" data-testid="ac-input" :value="modelValue" @input="handleInput" />
26
20
  </template>