@exakt/ui 0.0.4 → 0.0.6

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
@@ -9,8 +9,9 @@ interface ModuleOptions {
9
9
  blue?: string;
10
10
  };
11
11
  breakpoints: {
12
+ sm?: string;
12
13
  md?: string;
13
- l?: string;
14
+ lg?: string;
14
15
  xl?: string;
15
16
  };
16
17
  borderRadius: 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.4"
4
+ "version": "0.0.6"
5
5
  }
package/dist/module.mjs CHANGED
@@ -10,8 +10,9 @@ const defaults = {
10
10
  blue: "#2196f3"
11
11
  },
12
12
  breakpoints: {
13
+ sm: "16em",
13
14
  md: "33em",
14
- l: "48em",
15
+ lg: "48em",
15
16
  xl: "60em"
16
17
  },
17
18
  borderRadius: "8px",
@@ -21,16 +21,23 @@
21
21
  :model-value="props.loading"
22
22
  class="md-and-up-only"
23
23
  />
24
-
25
- <div class="md-and-up-only flex-stretch">
26
- <slot name="center" />
27
- </div>
28
- <slot name="nav-items" />
29
- <div class="md-and-up-only flex-stretch">
30
- <slot
31
- name="right"
32
- class="fullwidth"
33
- />
24
+ <div class="bar-content">
25
+ <div class="bar-section">
26
+ <!-- Normally the logo -->
27
+ <div class="md-and-up-only flex-stretch">
28
+ <slot name="center" />
29
+ </div>
30
+ <!-- All the links-->
31
+ <slot name="nav-items" />
32
+ </div>
33
+
34
+ <!-- Normally the sign in button -->
35
+ <div class="md-and-up-only bar-section">
36
+ <slot
37
+ name="right"
38
+ class="fullwidth"
39
+ />
40
+ </div>
34
41
  </div>
35
42
  </div>
36
43
  </e-container>
@@ -43,7 +50,6 @@ const props = withDefaults(
43
50
  }>(),
44
51
  { loading: false }
45
52
  );
46
-
47
53
  </script>
48
54
 
49
55
  <style lang="scss" scoped>
@@ -76,6 +82,18 @@ const props = withDefaults(
76
82
  z-index: 4;
77
83
  }
78
84
 
85
+ .bar-content{
86
+ display: flex;
87
+ justify-content: space-between;
88
+ align-items: stretch;
89
+ width: 100%;
90
+ }
91
+
92
+ .bar-section{
93
+ display:flex;
94
+ align-items: stretch;
95
+ }
96
+
79
97
  @media screen and (max-width: ($e-md-screen-breakpoint)) {
80
98
  .title-bar {
81
99
  display: unset;
@@ -122,7 +140,17 @@ const props = withDefaults(
122
140
  width: 100%;
123
141
  height: 100%;
124
142
 
125
- padding-bottom: calc(env(safe-area-insee-bottom));
143
+ padding-bottom: calc(env(safe-area-inset-bottom));
144
+ }
145
+
146
+ .bar-content{
147
+ justify-content: stretch;
148
+
149
+ }
150
+
151
+ .bar-section{
152
+ justify-content: stretch;
153
+ width: 100%;
126
154
  }
127
155
  }
128
156
  </style>
@@ -29,11 +29,15 @@ defineProps(["noBtnPadding", "forceFullWidth"]);
29
29
  $padding: 0rem;
30
30
 
31
31
  @media (min-width: $e-md-screen-breakpoint) {
32
- width: calc(85% - $padding);
32
+ width: calc(100% - $padding);
33
+ }
34
+
35
+ @media (min-width: $e-lg-screen-breakpoint) {
36
+ width: calc(95% - $padding);
33
37
  }
34
38
 
35
- @media (min-width: var(--e-l-screen-breakpoint)) {
36
- width: calc(65% - $padding);
39
+ @media (min-width: $e-xl-screen-breakpoint) {
40
+ width: calc(85% - $padding);
37
41
  }
38
42
  }
39
43
 
@@ -2,6 +2,8 @@
2
2
  <e-btn
3
3
  class="a-btn"
4
4
  :loading="loading"
5
+ :solid="false"
6
+ background="transparent"
5
7
  >
6
8
  <e-icon
7
9
  :icon="icon"
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="flex-stretch">
2
+ <div class="flex-stretch nav-btn">
3
3
  <e-link
4
4
  :to="to"
5
5
  class="flex-stretch fullwidth"
@@ -74,6 +74,10 @@ const inactive = computed(() => {
74
74
  </script>
75
75
 
76
76
  <style scoped lang="scss">
77
+
78
+ .nav-btn{
79
+ flex-grow: 1;
80
+ }
77
81
  .button:first-child {
78
82
  aspect-ratio: unset;
79
83
 
@@ -143,6 +143,11 @@ body {
143
143
  width: 100%;
144
144
  }
145
145
 
146
+ .fullsize {
147
+ @extend .fullheight;
148
+ @extend .fullwidth;
149
+ }
150
+
146
151
  .text-center {
147
152
  text-align: center;
148
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exakt/ui",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "A UI library for Nuxt.js",
5
5
  "license": "MIT",
6
6
  "type": "module",