@mptw/skylens-ui 1.4.63 → 1.4.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.
@@ -7,10 +7,10 @@ button(:type='type', :class='btnClass' :disabled="disabled")
7
7
  SLIcon.btn-icon(v-if='postIcon !== ""', :icon='postIcon')
8
8
  .btn-loading
9
9
  .loading
10
- div
11
- div
12
- div
13
- div
10
+ div
11
+ div
12
+ div
13
+ div
14
14
  </template>
15
15
 
16
16
  <script lang="ts">
@@ -40,6 +40,7 @@ export default defineComponent({
40
40
  "pgray-5",
41
41
  "pgray-2",
42
42
  "secondary",
43
+ "secondary-200",
43
44
  "secondary-600",
44
45
  "blue-1",
45
46
  "insight-title-line",
@@ -237,6 +238,17 @@ export default defineComponent({
237
238
  div
238
239
  border-color theme('colors.secondary.500') transparent transparent transparent
239
240
 
241
+ &-secondary-200
242
+ @apply bg-secondary-200 border-secondary-200 text-secondary s("hover:bg-secondary") s("hover:border-secondary") s("hover:text-white")
243
+
244
+ &.btn-outline
245
+ @apply text-secondary-200 s("hover:text-secondary")
246
+
247
+ .btn-loading
248
+ .loading
249
+ div
250
+ border-color theme('colors.secondary.500') transparent transparent transparent
251
+
240
252
  &-secondary-600
241
253
  @apply bg-secondary-600 border-secondary-600 text-white s("hover:bg-secondary") s("hover:border-secondary")
242
254
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mptw/skylens-ui",
3
3
  "type": "module",
4
- "version": "1.4.63",
4
+ "version": "1.4.65",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",
package/utils/index.ts CHANGED
@@ -533,6 +533,13 @@ export const httpUrlToHost = (url: string) => {
533
533
 
534
534
  return url;
535
535
  }
536
+ export const hostToHttpUrl = (host: string) => {
537
+ if (/^https?:\/\//.test(host)) {
538
+ return host;
539
+ }
540
+
541
+ return `https://${host}`;
542
+ }
536
543
 
537
544
  export const isValidDate = (d: any) => {
538
545
  if (Object.prototype.toString.call(d) === "[object Date]") {