@redseed/redseed-ui-vue3 2.3.1 → 2.4.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/package.json +1 -1
- package/src/components/Button/ButtonDanger.vue +3 -21
- package/src/components/Button/ButtonDangerFull.vue +1 -9
- package/src/components/Button/ButtonDangerFullRounded.vue +1 -10
- package/src/components/Button/ButtonDangerRounded.vue +1 -9
- package/src/components/Button/ButtonPrimary.vue +3 -18
- package/src/components/Button/ButtonPrimaryFull.vue +1 -9
- package/src/components/Button/ButtonPrimaryFullRounded.vue +1 -10
- package/src/components/Button/ButtonPrimaryRounded.vue +1 -9
- package/src/components/Button/ButtonSecondary.vue +3 -19
- package/src/components/Button/ButtonSecondaryFull.vue +1 -9
- package/src/components/Button/ButtonSecondaryFullRounded.vue +1 -10
- package/src/components/Button/ButtonSecondaryRounded.vue +1 -9
- package/src/components/Button/ButtonSlot.vue +8 -5
- package/src/components/Button/ButtonTertiary.vue +3 -21
- package/src/components/Button/ButtonTertiaryFull.vue +1 -9
- package/src/components/Button/ButtonTertiaryFullRounded.vue +1 -10
- package/src/components/Button/ButtonTertiaryRounded.vue +1 -9
- package/src/components/ButtonGroup/ButtonGroupItem.vue +5 -5
package/package.json
CHANGED
|
@@ -1,34 +1,16 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from 'vue'
|
|
3
2
|
import ButtonSlot from './ButtonSlot.vue'
|
|
4
|
-
|
|
5
|
-
defineOptions({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
const buttonClass = computed(() => [
|
|
10
|
-
'rsui-button-danger',
|
|
11
|
-
])
|
|
12
3
|
</script>
|
|
13
4
|
<template>
|
|
14
|
-
<ButtonSlot
|
|
15
|
-
:class="buttonClass"
|
|
16
|
-
v-bind="$attrs"
|
|
17
|
-
>
|
|
5
|
+
<ButtonSlot class="rsui-button-danger">
|
|
18
6
|
<slot></slot>
|
|
19
7
|
</ButtonSlot>
|
|
20
8
|
</template>
|
|
21
9
|
<style lang="scss" scoped>
|
|
22
10
|
.rsui-button-danger {
|
|
23
11
|
// default colors
|
|
24
|
-
@apply bg-danger-content text-danger
|
|
25
|
-
// default hover state
|
|
26
|
-
@apply hover:border-danger;
|
|
27
|
-
// default focus state
|
|
28
|
-
@apply focus-visible:border-danger/30;
|
|
12
|
+
@apply bg-danger-content text-danger border-danger;
|
|
29
13
|
// default active state
|
|
30
|
-
@apply active:border-danger active:bg-danger
|
|
31
|
-
// default disabled state
|
|
32
|
-
@apply disabled:text-danger/20 disabled:border-danger/20 disabled:bg-danger-content;
|
|
14
|
+
@apply active:border-danger active:bg-danger-content;
|
|
33
15
|
}
|
|
34
16
|
</style>
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from 'vue'
|
|
3
2
|
import ButtonDanger from './ButtonDanger.vue'
|
|
4
|
-
|
|
5
|
-
defineOptions({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
})
|
|
8
3
|
</script>
|
|
9
4
|
<template>
|
|
10
|
-
<ButtonDanger
|
|
11
|
-
full
|
|
12
|
-
v-bind="$attrs"
|
|
13
|
-
>
|
|
5
|
+
<ButtonDanger full>
|
|
14
6
|
<slot></slot>
|
|
15
7
|
</ButtonDanger>
|
|
16
8
|
</template>
|
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from 'vue'
|
|
3
2
|
import ButtonDanger from './ButtonDanger.vue'
|
|
4
|
-
|
|
5
|
-
defineOptions({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
})
|
|
8
3
|
</script>
|
|
9
4
|
<template>
|
|
10
|
-
<ButtonDanger
|
|
11
|
-
full
|
|
12
|
-
rounded
|
|
13
|
-
v-bind="$attrs"
|
|
14
|
-
>
|
|
5
|
+
<ButtonDanger full rounded>
|
|
15
6
|
<slot></slot>
|
|
16
7
|
</ButtonDanger>
|
|
17
8
|
</template>
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from 'vue'
|
|
3
2
|
import ButtonDanger from './ButtonDanger.vue'
|
|
4
|
-
|
|
5
|
-
defineOptions({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
})
|
|
8
3
|
</script>
|
|
9
4
|
<template>
|
|
10
|
-
<ButtonDanger
|
|
11
|
-
rounded
|
|
12
|
-
v-bind="$attrs"
|
|
13
|
-
>
|
|
5
|
+
<ButtonDanger rounded>
|
|
14
6
|
<slot></slot>
|
|
15
7
|
</ButtonDanger>
|
|
16
8
|
</template>
|
|
@@ -1,32 +1,17 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
import ButtonSlot from './ButtonSlot.vue'
|
|
4
|
-
|
|
5
|
-
defineOptions({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
const buttonClass = computed(() => [
|
|
10
|
-
'rsui-button-primary',
|
|
11
|
-
])
|
|
12
4
|
</script>
|
|
13
5
|
<template>
|
|
14
|
-
<ButtonSlot
|
|
15
|
-
:class="buttonClass"
|
|
16
|
-
v-bind="$attrs"
|
|
17
|
-
>
|
|
6
|
+
<ButtonSlot class="rsui-button-primary">
|
|
18
7
|
<slot></slot>
|
|
19
8
|
</ButtonSlot>
|
|
20
9
|
</template>
|
|
21
10
|
<style lang="scss" scoped>
|
|
22
11
|
.rsui-button-primary {
|
|
23
12
|
// default colors
|
|
24
|
-
@apply bg-primary text-primary-content
|
|
25
|
-
// default focus state
|
|
26
|
-
@apply focus-visible:border-primary/30;
|
|
13
|
+
@apply bg-primary text-primary-content border-primary;
|
|
27
14
|
// default active state
|
|
28
|
-
@apply active:border-primary active:bg-primary
|
|
29
|
-
// default disabled state
|
|
30
|
-
@apply disabled:text-primary-content disabled:border-transparent disabled:bg-primary/30;
|
|
15
|
+
@apply active:border-primary active:bg-primary;
|
|
31
16
|
}
|
|
32
17
|
</style>
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from 'vue'
|
|
3
2
|
import ButtonPrimary from './ButtonPrimary.vue'
|
|
4
|
-
|
|
5
|
-
defineOptions({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
})
|
|
8
3
|
</script>
|
|
9
4
|
<template>
|
|
10
|
-
<ButtonPrimary
|
|
11
|
-
full
|
|
12
|
-
v-bind="$attrs"
|
|
13
|
-
>
|
|
5
|
+
<ButtonPrimary full>
|
|
14
6
|
<slot></slot>
|
|
15
7
|
</ButtonPrimary>
|
|
16
8
|
</template>
|
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from 'vue'
|
|
3
2
|
import ButtonPrimary from './ButtonPrimary.vue'
|
|
4
|
-
|
|
5
|
-
defineOptions({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
})
|
|
8
3
|
</script>
|
|
9
4
|
<template>
|
|
10
|
-
<ButtonPrimary
|
|
11
|
-
full
|
|
12
|
-
rounded
|
|
13
|
-
v-bind="$attrs"
|
|
14
|
-
>
|
|
5
|
+
<ButtonPrimary full rounded>
|
|
15
6
|
<slot></slot>
|
|
16
7
|
</ButtonPrimary>
|
|
17
8
|
</template>
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from 'vue'
|
|
3
2
|
import ButtonPrimary from './ButtonPrimary.vue'
|
|
4
|
-
|
|
5
|
-
defineOptions({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
})
|
|
8
3
|
</script>
|
|
9
4
|
<template>
|
|
10
|
-
<ButtonPrimary
|
|
11
|
-
rounded
|
|
12
|
-
v-bind="$attrs"
|
|
13
|
-
>
|
|
5
|
+
<ButtonPrimary rounded>
|
|
14
6
|
<slot></slot>
|
|
15
7
|
</ButtonPrimary>
|
|
16
8
|
</template>
|
|
@@ -1,32 +1,16 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from 'vue'
|
|
3
2
|
import ButtonSlot from './ButtonSlot.vue'
|
|
4
|
-
|
|
5
|
-
defineOptions({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
const buttonClass = computed(() => [
|
|
10
|
-
'rsui-button-secondary',
|
|
11
|
-
])
|
|
12
3
|
</script>
|
|
13
4
|
<template>
|
|
14
|
-
<ButtonSlot
|
|
15
|
-
:class="buttonClass"
|
|
16
|
-
v-bind="$attrs"
|
|
17
|
-
>
|
|
5
|
+
<ButtonSlot class="rsui-button-secondary">
|
|
18
6
|
<slot></slot>
|
|
19
7
|
</ButtonSlot>
|
|
20
8
|
</template>
|
|
21
9
|
<style lang="scss" scoped>
|
|
22
10
|
.rsui-button-secondary {
|
|
23
11
|
// default colors
|
|
24
|
-
@apply bg-secondary text-secondary-content
|
|
25
|
-
// default focus state
|
|
26
|
-
@apply focus-visible:border-secondary/30;
|
|
12
|
+
@apply bg-secondary text-secondary-content border-secondary;
|
|
27
13
|
// default active state
|
|
28
|
-
@apply active:border-secondary active:bg-secondary
|
|
29
|
-
// default disabled state
|
|
30
|
-
@apply disabled:text-secondary-content disabled:border-transparent disabled:bg-secondary/30;
|
|
14
|
+
@apply active:border-secondary active:bg-secondary;
|
|
31
15
|
}
|
|
32
16
|
</style>
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from 'vue'
|
|
3
2
|
import ButtonSecondary from './ButtonSecondary.vue'
|
|
4
|
-
|
|
5
|
-
defineOptions({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
})
|
|
8
3
|
</script>
|
|
9
4
|
<template>
|
|
10
|
-
<ButtonSecondary
|
|
11
|
-
full
|
|
12
|
-
v-bind="$attrs"
|
|
13
|
-
>
|
|
5
|
+
<ButtonSecondary full>
|
|
14
6
|
<slot></slot>
|
|
15
7
|
</ButtonSecondary>
|
|
16
8
|
</template>
|
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from 'vue'
|
|
3
2
|
import ButtonSecondary from './ButtonSecondary.vue'
|
|
4
|
-
|
|
5
|
-
defineOptions({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
})
|
|
8
3
|
</script>
|
|
9
4
|
<template>
|
|
10
|
-
<ButtonSecondary
|
|
11
|
-
full
|
|
12
|
-
rounded
|
|
13
|
-
v-bind="$attrs"
|
|
14
|
-
>
|
|
5
|
+
<ButtonSecondary full rounded>
|
|
15
6
|
<slot></slot>
|
|
16
7
|
</ButtonSecondary>
|
|
17
8
|
</template>
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from 'vue'
|
|
3
2
|
import ButtonSecondary from './ButtonSecondary.vue'
|
|
4
|
-
|
|
5
|
-
defineOptions({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
})
|
|
8
3
|
</script>
|
|
9
4
|
<template>
|
|
10
|
-
<ButtonSecondary
|
|
11
|
-
rounded
|
|
12
|
-
v-bind="$attrs"
|
|
13
|
-
>
|
|
5
|
+
<ButtonSecondary rounded>
|
|
14
6
|
<slot></slot>
|
|
15
7
|
</ButtonSecondary>
|
|
16
8
|
</template>
|
|
@@ -85,14 +85,17 @@ const buttonSlotClass = computed(() => [
|
|
|
85
85
|
// default shape
|
|
86
86
|
@apply font-semibold gap-2 rounded-md border transition;
|
|
87
87
|
// default colors
|
|
88
|
-
@apply bg-
|
|
88
|
+
@apply bg-white text-rsui-default ring-highlight border-rsui-default;
|
|
89
|
+
// default hover state
|
|
90
|
+
@apply hover:brightness-110;
|
|
89
91
|
// default focus state
|
|
90
|
-
@apply focus-visible:ring-4;
|
|
92
|
+
@apply focus-visible:ring-4 focus-visible:ring-highlight focus-visible:border-highlight;
|
|
91
93
|
// default active state
|
|
92
|
-
@apply active:ring-0 active:bg-
|
|
94
|
+
@apply active:ring-0 active:bg-white active:filter-none;
|
|
93
95
|
// default disabled state
|
|
94
|
-
@apply disabled:bg-
|
|
95
|
-
@apply disabled:active:ring-0 disabled:
|
|
96
|
+
@apply disabled:bg-rsui-grey-200 disabled:border-transparent disabled:text-white disabled:filter-none;
|
|
97
|
+
@apply disabled:active:bg-rsui-grey-200 disabled:active:ring-0 disabled:active:border-transparent;
|
|
98
|
+
@apply disabled:focus-visible:ring-0;
|
|
96
99
|
// modifier full width
|
|
97
100
|
&--full {
|
|
98
101
|
@apply w-full;
|
|
@@ -1,34 +1,16 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from 'vue'
|
|
3
2
|
import ButtonSlot from './ButtonSlot.vue'
|
|
4
|
-
|
|
5
|
-
defineOptions({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
const buttonClass = computed(() => [
|
|
10
|
-
'rsui-button-tertiary',
|
|
11
|
-
])
|
|
12
3
|
</script>
|
|
13
4
|
<template>
|
|
14
|
-
<ButtonSlot
|
|
15
|
-
:class="buttonClass"
|
|
16
|
-
v-bind="$attrs"
|
|
17
|
-
>
|
|
5
|
+
<ButtonSlot class="rsui-button-tertiary">
|
|
18
6
|
<slot></slot>
|
|
19
7
|
</ButtonSlot>
|
|
20
8
|
</template>
|
|
21
9
|
<style lang="scss" scoped>
|
|
22
10
|
.rsui-button-tertiary {
|
|
23
11
|
// default colors
|
|
24
|
-
@apply bg-tertiary text-tertiary-content
|
|
25
|
-
// default hover state
|
|
26
|
-
@apply hover:border-tertiary-content;
|
|
27
|
-
// default focus state
|
|
28
|
-
@apply focus-visible:border-tertiary-content/30;
|
|
12
|
+
@apply bg-tertiary text-tertiary-content border-tertiary-content;
|
|
29
13
|
// default active state
|
|
30
|
-
@apply active:border-tertiary-content active:bg-tertiary
|
|
31
|
-
// default disabled state
|
|
32
|
-
@apply disabled:text-tertiary-content/20 disabled:border-tertiary-content/20 disabled:bg-tertiary;
|
|
14
|
+
@apply active:border-tertiary-content active:bg-tertiary;
|
|
33
15
|
}
|
|
34
16
|
</style>
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from 'vue'
|
|
3
2
|
import ButtonTertiary from './ButtonTertiary.vue'
|
|
4
|
-
|
|
5
|
-
defineOptions({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
})
|
|
8
3
|
</script>
|
|
9
4
|
<template>
|
|
10
|
-
<ButtonTertiary
|
|
11
|
-
full
|
|
12
|
-
v-bind="$attrs"
|
|
13
|
-
>
|
|
5
|
+
<ButtonTertiary full>
|
|
14
6
|
<slot></slot>
|
|
15
7
|
</ButtonTertiary>
|
|
16
8
|
</template>
|
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from 'vue'
|
|
3
2
|
import ButtonTertiary from './ButtonTertiary.vue'
|
|
4
|
-
|
|
5
|
-
defineOptions({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
})
|
|
8
3
|
</script>
|
|
9
4
|
<template>
|
|
10
|
-
<ButtonTertiary
|
|
11
|
-
full
|
|
12
|
-
rounded
|
|
13
|
-
v-bind="$attrs"
|
|
14
|
-
>
|
|
5
|
+
<ButtonTertiary full rounded>
|
|
15
6
|
<slot></slot>
|
|
16
7
|
</ButtonTertiary>
|
|
17
8
|
</template>
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from 'vue'
|
|
3
2
|
import ButtonTertiary from './ButtonTertiary.vue'
|
|
4
|
-
|
|
5
|
-
defineOptions({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
})
|
|
8
3
|
</script>
|
|
9
4
|
<template>
|
|
10
|
-
<ButtonTertiary
|
|
11
|
-
rounded
|
|
12
|
-
v-bind="$attrs"
|
|
13
|
-
>
|
|
5
|
+
<ButtonTertiary rounded>
|
|
14
6
|
<slot></slot>
|
|
15
7
|
</ButtonTertiary>
|
|
16
8
|
</template>
|
|
@@ -38,15 +38,15 @@ const buttonClass = computed(() => [
|
|
|
38
38
|
// default shape
|
|
39
39
|
@apply first:rounded-l-md last:rounded-r-md first:border-l border-r border-y ring-0;
|
|
40
40
|
// default colors
|
|
41
|
-
@apply bg-
|
|
41
|
+
@apply bg-segment text-segment-content border-rsui-grey-300;
|
|
42
42
|
// default hover state
|
|
43
|
-
@apply hover:bg-
|
|
43
|
+
@apply hover:bg-rsui-grey-200;
|
|
44
44
|
// default active/pressed state
|
|
45
|
-
@apply active:ring-0 active:bg-
|
|
45
|
+
@apply active:ring-0 active:bg-segment;
|
|
46
46
|
// default disabled state
|
|
47
|
-
@apply disabled:text-
|
|
47
|
+
@apply disabled:text-rsui-grey-200 disabled:bg-white;
|
|
48
48
|
&--selected {
|
|
49
|
-
@apply bg-
|
|
49
|
+
@apply bg-rsui-grey-200 active:bg-rsui-grey-200 cursor-default;
|
|
50
50
|
}
|
|
51
51
|
&__label {
|
|
52
52
|
@apply gap-x-2 px-1 inline-flex items-center;
|