@fishawack/lab-velocity 0.9.2 → 0.9.4

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.
@@ -13,4 +13,10 @@
13
13
  .el-input-group__append, .el-input-group__prepend {
14
14
  padding: 0 2 * $spacing;
15
15
  }
16
+ }
17
+
18
+ .vel-basic {
19
+ &__error {
20
+ color: $colorAlert;
21
+ }
16
22
  }
@@ -25,6 +25,7 @@
25
25
  &__error {
26
26
  order: 3;
27
27
  flex-basis: 100%;
28
+ color: $colorAlert;
28
29
  }
29
30
  }
30
31
 
@@ -6,6 +6,10 @@
6
6
  // &.el-input--large {
7
7
  --el-input-height:46px;
8
8
  // }
9
+
10
+ &__error {
11
+ color: $colorAlert;
12
+ }
9
13
  }
10
14
 
11
15
  .vel-popper {
@@ -3,6 +3,7 @@
3
3
  label {
4
4
  margin-bottom: $spacing;
5
5
  display: inline-block;
6
+ font-weight: 500;
6
7
  }
7
8
 
8
9
  &:not(:last-child) {
@@ -13,9 +14,9 @@
13
14
  .form__group--error {
14
15
 
15
16
  .el-select__wrapper, .el-select__wrapper:hover, .el-input__wrapper, .el-input__wrapper:hover {
16
- box-shadow: 0 0 0 1px $color9 inset;
17
+ box-shadow: 0 0 0 1px $colorAlert inset;
17
18
  .el-select__icon {
18
- color: $color9;
19
+ color: $colorAlert;
19
20
  }
20
21
  }
21
22
  }
@@ -14,4 +14,8 @@
14
14
  .el-input-group__append, .el-input-group__prepend {
15
15
  padding: 0 2 * $spacing;
16
16
  }
17
+
18
+ &__error {
19
+ color: $colorAlert;
20
+ }
17
21
  }
@@ -22,4 +22,7 @@
22
22
  .el-select__selection.is-near {
23
23
  margin-left: 0px;
24
24
  }
25
+ &__error {
26
+ color: $colorAlert;
27
+ }
25
28
  }
@@ -1 +1,7 @@
1
- @import "element-plus/theme-chalk/el-switch";
1
+ @import "element-plus/theme-chalk/el-switch";
2
+
3
+ .vel-switch {
4
+ &__error {
5
+ color: $colorAlert;
6
+ }
7
+ }
@@ -1 +1,15 @@
1
- @import "element-plus/theme-chalk/el-upload";
1
+ @import "element-plus/theme-chalk/el-upload";
2
+
3
+ .vel-upload {
4
+ .el-upload__tip {
5
+ color: $color11;
6
+ }
7
+ &.form__group--error {
8
+ .el-upload__tip {
9
+ color: $colorAlert;
10
+ }
11
+ }
12
+ &__error {
13
+ color: $colorAlert;
14
+ }
15
+ }
@@ -16,12 +16,14 @@
16
16
  v-model="content"
17
17
  @change="handleInput"
18
18
  :value-format="valueFormat"
19
+ :date-format="dateFormat"
20
+ :time-format="timeFormat"
19
21
  :format="format"
20
- popper-class="vel-popper"
22
+ :popper-class="popperClass"
23
+ :prefix-icon="prefixIcon"
21
24
  />
22
25
  </XInput>
23
26
  </template>
24
-
25
27
  <script>
26
28
  import dayjs from "dayjs";
27
29
  import { ElDatePicker } from "element-plus";
@@ -44,6 +46,12 @@ export default {
44
46
  valueFormat: {
45
47
  type: String
46
48
  },
49
+ dateFormat: {
50
+ type: String
51
+ },
52
+ timeFormat: {
53
+ type: String
54
+ },
47
55
  baseClass: {
48
56
  type: String,
49
57
  default: "vel-datepicker",
@@ -62,6 +70,13 @@ export default {
62
70
  type: String,
63
71
  default: "default",
64
72
  },
73
+ popperClass: {
74
+ type: String,
75
+ default: "vel-popper",
76
+ },
77
+ prefixIcon: {
78
+ type: String,
79
+ },
65
80
  },
66
81
  components: {
67
82
  XInput,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fishawack/lab-velocity",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "description": "Avalere Health branded style system",
5
5
  "scripts": {
6
6
  "setup": "npm ci || npm i && npm run content",