@redseed/redseed-ui-vue3 1.0.0

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/index.js ADDED
@@ -0,0 +1,5 @@
1
+ import TwoColumnLayout from './src/components/TwoColumnLayout.vue'
2
+
3
+ export {
4
+ TwoColumnLayout,
5
+ }
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@redseed/redseed-ui-vue3",
3
+ "version": "1.0.0",
4
+ "description": "RedSeed UI Vue 3 components",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "devDependencies": {
13
+ "vue": "^3.4.21"
14
+ }
15
+ }
@@ -0,0 +1,37 @@
1
+ <script setup>
2
+ const props = defineProps({
3
+ leftAside: {
4
+ type: Boolean,
5
+ required: false,
6
+ },
7
+ })
8
+ </script>
9
+ <template>
10
+ <div :class="[
11
+ 'two-column-layout',
12
+ leftAside ? 'two-column-layout--left-aside' : '',
13
+ ]">
14
+ <div class="two-column-layout__main">
15
+ <slot name="main"></slot>
16
+ </div>
17
+ <div class="two-column-layout__aside">
18
+ <slot name="aside"></slot>
19
+ </div>
20
+ </div>
21
+ </template>
22
+ <style lang="scss">
23
+ .two-column-layout {
24
+ @apply flex flex-col space-y-6;
25
+ @apply lg:flex-row lg:space-y-0 lg:space-x-8;
26
+ &--left-aside {
27
+ @apply flex-col-reverse space-y-reverse;
28
+ @apply lg:flex-row-reverse lg:space-x-reverse;
29
+ }
30
+ &__main{
31
+ @apply space-y-6 lg:space-y-4 flex-1;
32
+ }
33
+ &__aside{
34
+ @apply space-y-6 lg:w-72 xl:w-100;
35
+ }
36
+ }
37
+ </style>