@fishawack/lab-velocity 0.7.0 → 0.8.0

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/_variables.scss CHANGED
@@ -28,4 +28,5 @@ $color8: #f2f2f2; //Used
28
28
  $color9: #ff0000;
29
29
  $color10: #dcdbdb;
30
30
  $color11: #8C8C8C; //Used
31
- $color12: #5C5C5C;
31
+ $color12: #5C5C5C;
32
+ $colorAlert: #D53A3A;
package/basic/Button.vue CHANGED
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <el-button
3
- :class="[`button ${baseClass}__button`]"
3
+ :class="[`vel-button button ${baseClass}__button`]"
4
4
  :name="name"
5
5
  :id="name"
6
6
  :disabled="disabled"
@@ -0,0 +1,5 @@
1
+ @import "element-plus/theme-chalk/el-alert";
2
+
3
+ .vel-alert {
4
+ --el-color-error: #D53A3A;
5
+ }
@@ -8,7 +8,7 @@
8
8
  }
9
9
 
10
10
  .el-input__inner {
11
- --el-input-inner-height:38px
11
+ --el-input-inner-height:46px
12
12
  }
13
13
  .el-input-group__append, .el-input-group__prepend {
14
14
  padding: 0 2 * $spacing;
@@ -1,6 +1,8 @@
1
1
  @import "element-plus/theme-chalk/el-button";
2
2
 
3
-
3
+ .vel-button {
4
+ --el-font-size-base:get-ratio(16px);
5
+ }
4
6
  .el-button--default {
5
7
  border: solid get-ratio(1px) $color5;
6
8
  &:hover {
@@ -17,6 +19,7 @@
17
19
  .el-button--primary {
18
20
  background-color: $color1;
19
21
  color: $color0;
22
+ border-width: 0px;
20
23
 
21
24
  &:hover, &.is-loading {
22
25
  background-color: #5C5C5C;
@@ -105,11 +108,11 @@
105
108
  .el-button--default {
106
109
  font-size: get-ratio(16px);
107
110
  line-height: get-ratio(24px);
108
- padding: $spacing 2 * $spacing;
111
+ padding: get-ratio(7px) get-ratio(16px);
109
112
  }
110
113
 
111
114
  .el-button--large {
112
- padding: 1.5 * $spacing 2.5 * $spacing;
115
+ padding: get-ratio(15px) get-ratio(24px);
113
116
  }
114
117
 
115
118
  .el-button--small {
@@ -0,0 +1,25 @@
1
+
2
+ @import "element-plus/theme-chalk/el-collapse";
3
+ @import "element-plus/theme-chalk/el-collapse-item";
4
+
5
+ .el-collapse-item__header {
6
+ align-items: center;
7
+ --el-collapse-header-font-size:get-ratio(16px);
8
+ .vel-icon {
9
+ vertical-align: middle;
10
+ width: 13px;
11
+ min-width: 13px;
12
+ fill: currentColor;
13
+ margin-right: 0.25rem;
14
+
15
+ svg {
16
+ vertical-align: middle;
17
+ }
18
+ }
19
+ }
20
+
21
+ .el-collapse {
22
+ --el-collapse-header-bg-color: transparent;
23
+ --el-collapse-content-bg-color: transparent;
24
+ --el-collapse-border-color: transparent;
25
+ }
@@ -1,8 +1,31 @@
1
1
  @import "element-plus/theme-chalk/el-date-picker";
2
2
 
3
- .vel-datepicker {
3
+ .vel-datepicker {
4
+ // --el-input-height:38px;
5
+
6
+ // &.el-input--large {
7
+ --el-input-height:46px;
8
+ // }
4
9
  }
5
10
 
6
11
  .vel-popper {
7
12
  border-color: red !important;
13
+ }
14
+
15
+ .vel-date-picker, .el-date-picker {
16
+ &.has-sidebar {
17
+ width: auto;
18
+
19
+ .el-picker-panel__body-wrapper {
20
+ display: flex;
21
+ }
22
+ }
23
+ .el-picker-panel__sidebar {
24
+ width: auto;
25
+ position: relative;
26
+ }
27
+ .el-picker-panel__body {
28
+ margin-left: 0px;
29
+ position: relative !important;
30
+ }
8
31
  }
@@ -2,9 +2,15 @@
2
2
 
3
3
  .vel-icon {
4
4
 
5
- .el-link &, .el-button &, .vel-side-bar__button &, .vel-basic & {
6
- width: 1em;
7
- min-width: 1em;
5
+ .el-link &, .el-button &, .vel-basic & {
6
+ width: get-ratio(16px);
7
+ min-width: get-ratio(16px);
8
+ padding-bottom: 0px;
9
+ line-height: 0px;
10
+ }
11
+ .vel-side-bar__button & {
12
+ width: get-ratio(20px);
13
+ min-width: get-ratio(20px);
8
14
  padding-bottom: 0px;
9
15
  line-height: 0px;
10
16
  }
@@ -42,3 +42,9 @@
42
42
  transform: rotate(2turn);
43
43
  }
44
44
  }
45
+
46
+
47
+ .loading {
48
+ animation: 4s spinning cubic-bezier(0.41, 0.26, 0.2, 0.62) infinite;
49
+ transform-origin: center;
50
+ }
@@ -1,8 +1,8 @@
1
1
  .vel-page-title {
2
- padding: 2.5 * $spacing 3 * $spacing;
2
+ padding: 3 * $spacing 6 * $spacing;
3
3
  background-color: $color0;
4
4
  border-bottom: .5 * $spacing solid;
5
5
  border-image: linear-gradient(90deg, #FF558F 0%, #856DF6 100%) 1;
6
6
  box-shadow: .5 * $spacing .5 * $spacing $spacing 0px #00000040;
7
7
  margin-bottom: 2.5 * $spacing;
8
- }
8
+ }
@@ -8,7 +8,7 @@
8
8
  .vel-select {
9
9
  .el-select__wrapper {
10
10
  font-size: get-ratio(16px);
11
- padding: 1.5 * $spacing;
11
+ padding: get-ratio(16px);
12
12
  }
13
13
  .el-select__input, .el-select__selected-item {
14
14
  line-height: get-ratio(16px);
@@ -3,7 +3,7 @@
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  box-shadow: 0px $spacing * .5 $spacing * .5 0px hsla(0, 0%, 0%, 0.251);
6
- min-height: 94.5vh;
6
+ min-height: 10vh;
7
7
  max-height: 100vh;
8
8
  overflow: hidden;
9
9
  transition: flex-basis .3s ease-in-out;
@@ -11,10 +11,12 @@
11
11
 
12
12
  position: sticky;
13
13
  top: 0vh;
14
+ padding-top: 2 * $spacing;
15
+
14
16
 
15
17
  > div {
16
18
  &:first-child {
17
- flex-grow: .98;
19
+ flex-grow: .80;
18
20
  }
19
21
  &:last-child {
20
22
  margin-bottom: 5.5vh;
@@ -23,6 +25,7 @@
23
25
 
24
26
  &.active {
25
27
  flex-basis: 31.5 * $spacing;
28
+ min-width: 31.5 * $spacing;
26
29
 
27
30
  .vel-side-bar__button {
28
31
  transform: rotateY(180deg);
@@ -40,6 +43,13 @@
40
43
  }
41
44
  }
42
45
 
46
+ .vel-side-bar__bottom {
47
+ display: flex;
48
+ justify-content: flex-end;
49
+ border-top: solid 1px #E6E6E6;
50
+ padding: $spacing $spacing * 1.5;
51
+ }
52
+
43
53
  main {
44
54
  overflow: hidden;
45
55
  }
@@ -0,0 +1 @@
1
+ @import "element-plus/theme-chalk/el-tooltip";
@@ -86,13 +86,13 @@
86
86
  h1,.h1 {
87
87
  font-size: get-ratio(48px);
88
88
  line-height: get-ratio(56px);
89
- font-family: $secondaryFont;
89
+ font-family: $primaryFont;
90
90
  }
91
91
 
92
92
  h2, .h2 {
93
93
  font-size: get-ratio(36px);
94
94
  line-height: get-ratio(48px);
95
- font-family : $primaryFont;
95
+ font-family : $secondaryFont;
96
96
  }
97
97
 
98
98
  h3, .h3 {
@@ -119,6 +119,15 @@ h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5 {
119
119
  }
120
120
 
121
121
  // may be project specific
122
+
123
+ .font-secondary {
124
+ font-family: $secondaryFont;
125
+ }
126
+
127
+ .font-primary {
128
+ font-family: $primaryFont;
129
+ }
130
+
122
131
  .text-10 {
123
132
  font-size: get-ratio(10px);
124
133
  line-height: get-ratio(16px);
@@ -131,10 +140,14 @@ h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5 {
131
140
  font-size: get-ratio(14px);
132
141
  line-height: get-ratio(20px);
133
142
  }
143
+ .font-16 {
144
+ font-size: get-ratio(16px);
145
+ line-height: get-ratio(24px);
146
+ }
134
147
 
135
148
  .text-60 {
136
149
  font-size: get-ratio(60px);
137
150
  line-height: get-ratio(68px);
138
151
  font-weight: 500;
139
152
  font-family : $primaryFont;
140
- }
153
+ }
@@ -11,7 +11,8 @@
11
11
  :disabled-date="disabledDate"
12
12
  - :placeholder="placeholder"
13
13
  :shortcuts="shortcuts"
14
- class="w-100"
14
+ :size="size"
15
+ class="w-100 vel-datepicker"
15
16
  v-model="content"
16
17
  @change="handleInput"
17
18
  :value-format="valueFormat"
@@ -56,6 +57,10 @@ export default {
56
57
  type: Array,
57
58
  default: [],
58
59
  },
60
+ size: {
61
+ type: String,
62
+ default: "default",
63
+ },
59
64
  },
60
65
  components: {
61
66
  XInput,
package/general.scss CHANGED
@@ -24,6 +24,9 @@
24
24
  @import "./components/_header.scss";
25
25
  @import "./components/_pageTitle.scss";
26
26
  @import "./components/_form.scss";
27
+ @import "./components/_alert.scss";
28
+ @import "./components/_collapse.scss";
29
+ @import "./components/_tooltip.scss";
27
30
 
28
31
 
29
32
  @import "./_base.scss";
package/index.js CHANGED
@@ -14,9 +14,12 @@ export { default as Upload } from "./form/Upload.vue";
14
14
  export { default as InputNumber } from "./form/InputNumber.vue";
15
15
 
16
16
  export { default as SideBar } from "./layout/sideBar.vue";
17
+ export { default as Tooltip } from "./layout/Tooltip.vue";
17
18
  export { default as Footer } from "./layout/Footer.vue";
18
19
  export { default as Header } from "./layout/Header.vue";
19
20
  export { default as PageTitle } from "./layout/pageTitle.vue";
21
+ export { default as Alert } from "./layout/Alert.vue";
22
+ export { default as Tooltip } from "./layout/Tooltip.vue";
20
23
  export { default as Menu } from "./navigation/Menu.vue";
21
24
  export { default as MenuItem } from "./navigation/MenuItem.vue";
22
25
  export { default as MenuItemGroup } from "./navigation/MenuItemGroup.vue";
@@ -0,0 +1,38 @@
1
+ <template>
2
+ <el-alert
3
+ class="mb-4 vel-alert"
4
+ :effect="effect"
5
+ :title="title"
6
+ :type="type"
7
+ :show-icon="showIcon"
8
+ />
9
+ </template>
10
+
11
+ <script>
12
+ import { ElAlert } from "element-plus";
13
+ export default {
14
+ name: "VPageTitle",
15
+
16
+ props: {
17
+ effect: {
18
+ type:String,
19
+ default:'dark'
20
+ },
21
+ title: {
22
+ type:String
23
+ },
24
+ type: {
25
+ type:String,
26
+ default:'error'
27
+ },
28
+ showIcon: {
29
+ type:Boolean,
30
+ default:true,
31
+ }
32
+ },
33
+
34
+ components: {
35
+ ElAlert,
36
+ },
37
+ }
38
+ </script>
package/layout/Footer.vue CHANGED
@@ -7,9 +7,9 @@
7
7
  </div>
8
8
  <div class="vel-footer__bottom">
9
9
  <div class="vel-footer__bottom__links">
10
- <p class="color-0">&copy; 2024 Avalere. Part of Avalere Health</p>
10
+ <p class="color-0">&copy;2025 Avalere Health.</p>
11
11
  <el-link underline class="color-0 ml" href="https://avalerehealth.com/privacy-policy/" target="_blank">Privacy Policy</el-link>
12
- <el-link underline class="color-0 ml" href="https://avalerehealth.com/privacy-policy/" target="_blank">Terms of Use</el-link>
12
+ <el-link underline class="color-0 ml" href="https://avalerehealth.com/corporate-policies/" target="_blank">Corporate policies and compliance</el-link>
13
13
  </div>
14
14
  <div class="vel-footer__bottom__end">
15
15
  <p class="color-0">Have a question?</p><el-link underline class="color-0 ml" :href="contact">Contact our Support Team</el-link>
@@ -0,0 +1,36 @@
1
+ <template>
2
+ <el-tooltip
3
+ class="vel-tooltip"
4
+ :trigger="trigger"
5
+ :placement="placement"
6
+ >
7
+ <template #content><slot name="content"></slot></template>
8
+ <slot/>
9
+ </el-tooltip>
10
+ </template>
11
+
12
+ <script>
13
+ import { ElTooltip } from "element-plus";
14
+ export default {
15
+ name: "Tooltip",
16
+
17
+ props: {
18
+ width: {
19
+ type:Number,
20
+ default:100
21
+ },
22
+ trigger: {
23
+ type:String,
24
+ default:'hover'
25
+ },
26
+ placement: {
27
+ type:String,
28
+ default:'top'
29
+ }
30
+ },
31
+
32
+ components: {
33
+ ElTooltip,
34
+ },
35
+ }
36
+ </script>
@@ -4,8 +4,8 @@
4
4
  <slot name="navigation" />
5
5
  </div>
6
6
 
7
- <div class="flex justify-end border-t-color-1 border-t-solid py px-1.5">
8
- <button class="vel-side-bar__button pointer" @click="active = !active">
7
+ <div class="vel-side-bar__bottom">
8
+ <button class="vel-side-bar__button" @click="active = !active">
9
9
  <slot name="expand">
10
10
  >
11
11
  </slot>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fishawack/lab-velocity",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Avalere Health branded style system",
5
5
  "scripts": {
6
6
  "setup": "npm ci || npm i && npm run content",