@redseed/redseed-ui-vue3 8.27.0 → 8.29.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redseed/redseed-ui-vue3",
3
- "version": "8.27.0",
3
+ "version": "8.29.0",
4
4
  "description": "RedSeed UI Vue 3 components",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/redseedtraining/redseed-ui",
@@ -1,8 +1,23 @@
1
1
  <script setup>
2
+ import { computed } from 'vue'
2
3
  import ButtonSlot from './ButtonSlot.vue'
4
+
5
+ const props = defineProps({
6
+ invert: {
7
+ type: Boolean,
8
+ default: false,
9
+ },
10
+ })
11
+
12
+ const buttonClass = computed(() => [
13
+ 'rsui-button-primary',
14
+ {
15
+ 'rsui-button-primary--invert': props.invert,
16
+ },
17
+ ])
3
18
  </script>
4
19
  <template>
5
- <ButtonSlot class="rsui-button-primary">
20
+ <ButtonSlot :class="buttonClass">
6
21
  <slot></slot>
7
22
  </ButtonSlot>
8
23
  </template>
@@ -1,8 +1,15 @@
1
1
  <script setup>
2
2
  import ButtonPrimary from './ButtonPrimary.vue'
3
+
4
+ defineProps({
5
+ invert: {
6
+ type: Boolean,
7
+ default: false,
8
+ },
9
+ })
3
10
  </script>
4
11
  <template>
5
- <ButtonPrimary full>
12
+ <ButtonPrimary full :invert="invert">
6
13
  <slot></slot>
7
14
  </ButtonPrimary>
8
15
  </template>
@@ -17,6 +17,11 @@ const props = defineProps({
17
17
  type: Boolean,
18
18
  default: false,
19
19
  },
20
+ iconSize: {
21
+ type: String,
22
+ default: 'md',
23
+ validator: (value) => ['sm', 'md', 'lg'].includes(value),
24
+ },
20
25
  })
21
26
 
22
27
  const attrs = useAttrs()
@@ -98,6 +103,8 @@ const uploaderStateIconClass = computed(() => [
98
103
  'rsui-form-field-uploader__state-icon',
99
104
  {
100
105
  'rsui-form-field-uploader__state-icon--success': stateSuccess.value,
106
+ 'rsui-form-field-uploader__state-icon--sm': props.iconSize === 'sm',
107
+ 'rsui-form-field-uploader__state-icon--lg': props.iconSize === 'lg',
101
108
  }
102
109
  ])
103
110