@indielayer/ui 1.7.2 → 1.7.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/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "1.7.2";
1
+ declare const _default: "1.7.3";
2
2
  export default _default;
package/lib/version.js CHANGED
@@ -1,4 +1,4 @@
1
- const e = "1.7.2";
1
+ const e = "1.7.3";
2
2
  export {
3
3
  e as default
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indielayer/ui",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "Indielayer UI Components with Tailwind CSS build for Vue 3",
5
5
  "author": {
6
6
  "name": "João Teixeira",
@@ -4,7 +4,7 @@ const modalPosition = ['top', 'center', 'bottom'] as const
4
4
  const modalProps = {
5
5
  size: {
6
6
  type: String as PropType<ModalSize>,
7
- default: 'xl',
7
+ default: 'lg',
8
8
  },
9
9
  position: {
10
10
  type: String as PropType<ModalPosition>,
@@ -214,6 +214,9 @@ defineExpose({ open, close })
214
214
  <x-scroll
215
215
  v-if="$slots.default"
216
216
  :scrollbar="false"
217
+ :class="{
218
+ 'h-full': size === 'full',
219
+ }"
217
220
  vertical
218
221
  >
219
222
  <div :class="classes.content">
@@ -14,7 +14,7 @@ const theme: ModalTheme = {
14
14
  },
15
15
 
16
16
  modalWrapper: ({ props }) => {
17
- const classes = ['flex justify-center p-4 sm:p-8 md:py-20 h-screen']
17
+ const classes = ['flex justify-center p-4 sm:p-8 h-screen']
18
18
 
19
19
  if (props.position === 'top') classes.push('items-start')
20
20
  else if (props.position === 'bottom') classes.push('items-end')
@@ -34,6 +34,7 @@ const theme: ModalTheme = {
34
34
  else if (props.size === 'md') classes.push('sm:max-w-lg')
35
35
  else if (props.size === 'lg') classes.push('sm:max-w-3xl')
36
36
  else if (props.size === 'xl') classes.push('sm:max-w-6xl')
37
+ else if (props.size === 'full') classes.push('h-full')
37
38
 
38
39
  return classes
39
40
  },
@@ -24,6 +24,7 @@ const theme: ModalTheme = {
24
24
  else if (props.size === 'md') classes.push('sm:max-w-lg')
25
25
  else if (props.size === 'lg') classes.push('sm:max-w-3xl')
26
26
  else if (props.size === 'xl') classes.push('sm:max-w-6xl')
27
+ else if (props.size === 'full') classes.push('h-full')
27
28
 
28
29
  return classes
29
30
  },
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export default '1.7.2'
1
+ export default '1.7.3'