@appscode/design-system 2.0.42 → 2.0.43-alpha.2

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.0.42",
3
+ "version": "2.0.43-alpha.2",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -544,7 +544,13 @@
544
544
  .file-cta {
545
545
  color: $color-heading;
546
546
  height: 100%;
547
- background-color: $primary-95;
547
+ background-color: $primary-light-grey;
548
+ }
549
+ &:hover {
550
+ .file-cta,
551
+ .file-name {
552
+ border-color: $ac-primary;
553
+ }
548
554
  }
549
555
  }
550
556
 
@@ -554,6 +560,7 @@
554
560
  border-radius: 4px;
555
561
  &:hover {
556
562
  background-color: $primary-97;
563
+ border-color: $ac-primary;
557
564
 
558
565
  label {
559
566
  .upload-icon {
@@ -0,0 +1,30 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <div class="ac-color-input-wrapper">
5
+ <label class="ac-color-input" for="color-select">
6
+ <input type="color" id="color-select" />
7
+ <span>#1c1c1c</span>
8
+ </label>
9
+ <p class="has-text-danger">Error message</p>
10
+ </div>
11
+ </template>
12
+
13
+ <style lang="scss">
14
+ .ac-color-input-wrapper {
15
+ .ac-color-input {
16
+ border: 1px solid $color-border-dark;
17
+ display: inline-flex;
18
+ cursor: pointer;
19
+ gap: 8px;
20
+ padding: 8px 15px;
21
+ border-radius: 4px;
22
+ span {
23
+ font-weight: 500;
24
+ }
25
+ &:hover {
26
+ border-color: $ac-primary;
27
+ }
28
+ }
29
+ }
30
+ </style>
@@ -0,0 +1,30 @@
1
+ <script setup lang="ts">
2
+ import { defineAsyncComponent } from "vue";
3
+ interface Props {
4
+ modelValue?: string;
5
+ }
6
+
7
+ withDefaults(defineProps<Props>(), {
8
+ modelValue: "",
9
+ });
10
+
11
+ const HeroiconsArrowUpTray20Solid = defineAsyncComponent(
12
+ () => import("~icons/heroicons/arrow-up-tray-20-solid")
13
+ );
14
+ </script>
15
+ <template>
16
+ <div class="file has-name ac-file">
17
+ <label class="file-label">
18
+ <input class="file-input" type="file" name="resume" />
19
+ <span class="file-cta">
20
+ <span class="file-icon">
21
+ <HeroiconsArrowUpTray20Solid />
22
+ </span>
23
+ <span class="file-label"> Choose a file… </span>
24
+ </span>
25
+ <span class="file-name"> Screen Shot 2017-07-29 at 15.54.25.png </span>
26
+ </label>
27
+ </div>
28
+ </template>
29
+
30
+ <style lang="scss"></style>