@cloudron/pankow 3.2.12 → 3.2.13

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.
@@ -65,7 +65,9 @@ function onClick(event) {
65
65
  padding: var(--pankow-input-vertial-padding) max(12px, var(--pankow-input-horizontal-padding));
66
66
  border-radius: var(--pankow-border-radius);
67
67
  text-decoration: none;
68
- display: inline-block;
68
+ align-items: center;
69
+ justify-content: center;
70
+ display: inline-flex;
69
71
  cursor: pointer;
70
72
  border: 1px solid transparent;
71
73
  transition: background 250ms, border-color 250ms;
@@ -10,7 +10,7 @@
10
10
  <style>
11
11
 
12
12
  .pankow-button-group {
13
- display: inline-block;
13
+ display: inline-flex;
14
14
  white-space: nowrap;
15
15
  }
16
16
 
@@ -2,65 +2,37 @@
2
2
  </script>
3
3
 
4
4
  <template>
5
- <div class="pankow-spinner">
6
- <div class="pankow-spinner-inner"></div>
7
- </div>
5
+ <div class="pankow-spinner"></div>
8
6
  </template>
9
7
 
10
8
  <style>
11
9
 
12
10
  .pankow-spinner {
13
- display: inline-block;
14
- position: relative;
15
11
  width: 1em;
16
12
  height: 1em;
17
- }
18
-
19
- .pankow-spinner.pankow-button-icon-with-text {
20
- margin-right: 6px;
21
- }
22
-
23
- .pankow-spinner-inner {
24
- position: absolute;
25
- top: 1px;
26
- left: 0px;
27
- display: inline-block;
28
- vertical-align: middle;
29
- width: 14px;
30
- height: 14px;
31
13
  border: 1.5px solid rgba(255,255,255,.2);
32
14
  border-radius: 50%;
33
15
  border-top-color: var(--pankow-text-color);
34
16
  border-right-color: var(--pankow-text-color);
35
- animation: pankow-spinner-animation 0.8s linear infinite;
17
+ animation: spin 0.8s linear infinite;
18
+ display: inline-flex;
19
+ margin: 0;
36
20
  }
37
21
 
38
- .pankow-button:not([plain]) .pankow-spinner-inner,
39
- .pankow-button[plain]:hover .pankow-spinner-inner {
22
+ .pankow-button:not([plain]):not([outline]) .pankow-spinner,
23
+ .pankow-button[plain]:hover .pankow-spinner,
24
+ .pankow-button[outline]:hover .pankow-spinner {
40
25
  border-top-color: white;
41
26
  border-right-color: white;
42
27
  }
43
28
 
44
29
  .pankow-spinner-large {
45
- width: 48px;
46
- height: 48px;
30
+ font-size: 40px;
47
31
  }
48
32
 
49
- .pankow-spinner-large .pankow-spinner-inner {
50
- position: absolute;
51
- top: 4px;
52
- left: 4px;
53
- width: 40px;
54
- height: 40px;
55
- border-width: 2px;
56
- }
57
-
58
- @keyframes pankow-spinner-animation {
59
- 0% {
60
- transform: rotateZ(0deg);
61
- }
62
- 100% {
63
- transform: rotateZ(360deg)
33
+ @keyframes spin {
34
+ to {
35
+ transform: rotate(360deg);
64
36
  }
65
37
  }
66
38
 
@@ -28,6 +28,7 @@ const props = defineProps({
28
28
  border-width: 1px;
29
29
  border-color: var(--pankow-input-border-color);
30
30
  transition: border-color 250ms;
31
+ width: 100%;
31
32
  }
32
33
 
33
34
  .pankow-form-group.has-error .pankow-text-input,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudron/pankow",
3
3
  "private": false,
4
- "version": "3.2.12",
4
+ "version": "3.2.13",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "types": "types/index.d.ts",
@@ -1,40 +0,0 @@
1
- <script setup>
2
-
3
- import { computed } from 'vue';
4
-
5
- const props = defineProps({
6
- values: Array,
7
- });
8
-
9
- // const normalizedValue = computed(() => {
10
- // if (props.value < 0) return 0;
11
- // if (props.value > 100) return 100;
12
- // return props.value;
13
- // });
14
-
15
- // we want 100 to be the circumverence so we can neatly use percentage: radius = 100 / ( 3,14159 * 2 ) = 15,9155
16
- const radius = 15.9155;
17
- const stroke = 10;
18
-
19
- function calculateViewbox() {
20
- return `0 0 ${radius*2+stroke} ${radius*2+stroke}`;
21
- }
22
-
23
- function calculateArcPath() {
24
- return `M${radius+stroke/2} ${stroke/2} a ${radius} ${radius} 0 0 1 0 ${radius*2} a ${radius} ${radius} 0 0 1 0 -${radius*2}`;
25
- }
26
-
27
- </script>
28
-
29
- <template>
30
- <div class="pankow-circle-chart">
31
- <svg :viewBox="calculateViewbox()" xmlns="http://www.w3.org/2000/svg">
32
- <path :d="calculateArcPath()" fill="none" stroke="red" :stroke-width="stroke" stroke-dasharray="75, 100" @click.stop="onClick('red')" />
33
- <path :d="calculateArcPath()" fill="none" stroke="green" :stroke-width="stroke" stroke-dasharray="30, 100" @click.stop="onClick('green') "/>
34
- </svg>
35
- </div>
36
- </template>
37
-
38
- <style>
39
-
40
- </style>