@exakt/ui 0.0.33 → 0.0.35

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/dist/module.d.ts CHANGED
@@ -7,6 +7,7 @@ interface ModuleOptions {
7
7
  light?: string;
8
8
  red?: string;
9
9
  blue?: string;
10
+ yellow?: string;
10
11
  };
11
12
  breakpoints: {
12
13
  sm?: string;
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "exakt-ui",
3
3
  "configKey": "exakt",
4
- "version": "0.0.33"
4
+ "version": "0.0.35"
5
5
  }
package/dist/module.mjs CHANGED
@@ -5,9 +5,10 @@ const defaults = {
5
5
  colors: {
6
6
  primary: "#008dff",
7
7
  dark: "#212121",
8
- light: "#f5f5f5",
8
+ light: "#ffffff",
9
9
  red: "#f44336",
10
- blue: "#2196f3"
10
+ blue: "#2196f3",
11
+ yellow: "#FFA000"
11
12
  },
12
13
  breakpoints: {
13
14
  sm: "16em",
@@ -37,9 +37,11 @@
37
37
  </div>
38
38
  <span
39
39
  class="actual-content d-flex"
40
- :class="{fullwidth: props.justify == 'space-between'}"
41
- :style="{justifyContent:
42
- justify, alignContent: props.align, alignItems: props.align}"
40
+ :class="{ fullwidth: props.justify == 'space-between' }"
41
+ :style="{
42
+ justifyContent:
43
+ justify, alignContent: props.align, alignItems: props.align
44
+ }"
43
45
  >
44
46
  <slot />
45
47
  </span>
@@ -113,7 +115,9 @@ const textColor = computed(() => {
113
115
  if (props.color) {
114
116
  return props.color;
115
117
  }
116
-
118
+ if (props.background == 'transparent') {
119
+ return 'var(--e-color-dark)'
120
+ }
117
121
  const rgb = backgroundColorRgb.value;
118
122
 
119
123
  const brightness = Math.round(
@@ -177,10 +181,12 @@ const hoverColor = computed(() => {
177
181
  box-sizing: border-box;
178
182
 
179
183
  border: transparent solid 0.1rem;
184
+
180
185
  &:focus-visible {
181
186
  transition: border-width 0.2s;
182
187
  border: var(--e-color-dark) solid 0.1rem;
183
188
  }
189
+
184
190
  &.loading {
185
191
  pointer-events: none;
186
192
 
@@ -37,7 +37,7 @@ const emit = defineEmits(["update:modelValue"]);
37
37
  .dialog-wrap {
38
38
  position: fixed;
39
39
  pointer-events: none;
40
- z-index: 4;
40
+ z-index: 6;
41
41
  width: 100%;
42
42
  height: 100%;
43
43
  top: 0px;
@@ -197,7 +197,7 @@ const onActivatorClick = () => {
197
197
 
198
198
  background-color: var(--e-color-elev-2);
199
199
  color: var(--e-color-dark);
200
- z-index: 4;
200
+ z-index: 6;
201
201
 
202
202
  flex-shrink: 1;
203
203
  flex-direction: column;
@@ -25,17 +25,17 @@ const emit = defineEmits(["update:modelValue"]);
25
25
  height: 100%;
26
26
  left: 0px;
27
27
  top: 0px;
28
- z-index: 3;
28
+ z-index: 5;
29
29
  //background-color: red;
30
30
 
31
31
  &.opaque-on-desktop {
32
- background-color: rgba(var(--e-color-light-rgb), 0.5);
32
+ background-color: rgba(var(--e-color-light-rgb), 0.7);
33
33
  }
34
34
  }
35
35
 
36
36
  @media screen and (max-width: $e-md-screen-breakpoint) {
37
37
  .focus-sheet {
38
- background-color: rgba(var(--e-color-light-rgb), 0.5);
38
+ background-color: rgba(var(--e-color-light-rgb), 0.7);
39
39
  }
40
40
  }
41
41
  </style>
@@ -6,10 +6,13 @@ $root-light-rgb: red($root-light), green($root-light), blue($root-light);
6
6
  $root-primary-rgb: red($root-primary), green($root-primary), blue($root-primary);
7
7
  $root-red-rgb: red($root-red), green($root-red), blue($root-red);
8
8
  $root-blue-rgb: red($root-blue), green($root-blue), blue($root-blue);
9
+ $root-yellow-rgb: red($root-yellow), green($root-yellow), blue($root-yellow);
10
+
9
11
 
10
12
  .rounded {
11
13
  border-radius: var(--e-rounded-border-radius);
12
14
  }
15
+
13
16
  .rounded-top {
14
17
  border-top-left-radius: var(--e-rounded-border-radius);
15
18
  border-top-right-radius: var(--e-rounded-border-radius);
@@ -30,15 +33,18 @@ $color-map: (
30
33
  "primary": $root-primary,
31
34
  "dark": $root-dark,
32
35
  "light": $root-light,
36
+ "yellow": $root-yellow,
33
37
  );
34
38
 
35
39
  @each $name, $color in $color-map {
36
40
  :root {
37
41
  #{'--e-color-'+$name}: $color;
38
42
  }
43
+
39
44
  .bg-#{$name} {
40
45
  background: $color;
41
46
  }
47
+
42
48
  .color-#{$name} {
43
49
  color: $color;
44
50
  }
@@ -51,6 +57,7 @@ a,
51
57
  &:visited {
52
58
  color: color.scale($root-blue, $lightness: -10%);
53
59
  }
60
+
54
61
  &:active,
55
62
  .e-link-active {
56
63
  color: color.scale($root-blue, $lightness: 10%);
@@ -66,7 +73,10 @@ a,
66
73
 
67
74
  --e-color-elev-2: #{$root-elev-2};
68
75
  --e-color-elev-2-rgb: #{red($root-elev-2), green($root-elev-2),
69
- blue($root-elev-2)};
76
+ blue($root-elev-2)
77
+ }
78
+
79
+ ;
70
80
  }
71
81
 
72
82
  :root {
@@ -88,7 +98,7 @@ a,
88
98
 
89
99
  --e-color-dark: #{$root-light};
90
100
  --e-color-dark-rgb: #{$root-light-rgb};
91
- color-scheme: dark;
101
+ color-scheme: dark;
92
102
  @include elev($root-dark, 5%);
93
103
  }
94
- }
104
+ }
@@ -184,8 +184,9 @@ body {
184
184
  }
185
185
 
186
186
  .e-disabled {
187
- opacity: 0.7;
187
+ opacity: 0.5;
188
188
  pointer-events: none;
189
+ cursor: not-allowed !important;
189
190
  }
190
191
 
191
192
  router-link,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exakt/ui",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "description": "A UI library for Nuxt.js",
5
5
  "license": "MIT",
6
6
  "type": "module",