@citruslime/ui 2.0.0-beta.2 → 2.0.0-beta.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citruslime/ui",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.0-beta.3",
4
4
  "author": {
5
5
  "name": "Citrus-Lime Ltd",
6
6
  "url": "https://citruslime.com"
@@ -3,6 +3,12 @@ import { computed, useSlots } from 'vue';
3
3
 
4
4
  import ClUiNotification from '../notification/cl-ui-notification.vue';
5
5
 
6
+ withDefaults(defineProps<{
7
+ removePadding?: boolean;
8
+ }>(), {
9
+ removePadding: false
10
+ });
11
+
6
12
  const slots = useSlots();
7
13
 
8
14
  const hasAppHeader = computed(() => slots?.header !== undefined);
@@ -18,7 +24,10 @@ const hasAppHeader = computed(() => slots?.header !== undefined);
18
24
  :class="{ 'pt-20' : hasAppHeader }">
19
25
  <slot name="navigation"></slot>
20
26
 
21
- <div class="flex-grow max-h-full md:p-8 overflow-x-hidden overflow-y-auto w-auto">
27
+ <div class="flex-grow max-h-full overflow-x-hidden overflow-y-auto w-auto"
28
+ :class="{
29
+ 'md:p-8': !removePadding
30
+ }">
22
31
  <slot></slot>
23
32
  </div>
24
33
  </div>