@redseed/redseed-ui-vue3 1.6.0 → 1.7.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 CHANGED
@@ -39,7 +39,7 @@ import LogoRedSeedCoach from './src/components/Logo/LogoRedSeedCoach.vue'
39
39
  import LogoRedSeedCourses from './src/components/Logo/LogoRedSeedCourses.vue'
40
40
  import LogoRedSeedLMS from './src/components/Logo/LogoRedSeedLMS.vue'
41
41
  import MessageBox from './src/components/MessageBox/MessageBox.vue'
42
- import MetaItem from './src/components/PageHeading/MetaItem.vue'
42
+ import MetaInfo from './src/components/MetaInfo/MetaInfo.vue'
43
43
  import Modal from './src/components/Modal/Modal.vue'
44
44
  import PageHeading from './src/components/PageHeading/PageHeading.vue'
45
45
  import ProgressCircle from './src/components/Progress/ProgressCircle.vue'
@@ -51,9 +51,9 @@ export {
51
51
  ButtonDanger,
52
52
  ButtonDangerFull,
53
53
  ButtonDangerFullRounded,
54
- ButtonDangerRounded,
54
+ ButtonDangerRounded,
55
55
  ButtonGroup,
56
- ButtonSlot,
56
+ ButtonGroupItem,
57
57
  ButtonPrimary,
58
58
  ButtonPrimaryFull,
59
59
  ButtonPrimaryFullRounded,
@@ -62,7 +62,7 @@ export {
62
62
  ButtonSecondaryFull,
63
63
  ButtonSecondaryFullRounded,
64
64
  ButtonSecondaryRounded,
65
- ButtonGroupItem,
65
+ ButtonSlot,
66
66
  ButtonTertiary,
67
67
  ButtonTertiaryFull,
68
68
  ButtonTertiaryFullRounded,
@@ -89,7 +89,7 @@ export {
89
89
  LogoRedSeedCourses,
90
90
  LogoRedSeedLMS,
91
91
  MessageBox,
92
- MetaItem,
92
+ MetaInfo,
93
93
  Modal,
94
94
  PageHeading,
95
95
  ProgressCircle,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redseed/redseed-ui-vue3",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "RedSeed UI Vue 3 components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -26,7 +26,7 @@ const buttonClass = computed(() => [
26
26
  <style lang="scss" scoped>
27
27
  .rsui-button-tertiary {
28
28
  // default colors
29
- @apply bg-white text-default-black ring-tertiary-dark/20 border-tertiary-dark;
29
+ @apply bg-white text-default-dark ring-tertiary-dark/20 border-tertiary-dark;
30
30
  // default hover state
31
31
  @apply hover:bg-white hover:text-tertiary-dark hover:border-tertiary-dark;
32
32
  // default focus state
@@ -39,13 +39,13 @@ const buttonClass = computed(() => [
39
39
  // default shape and control
40
40
  @apply inline-flex justify-center items-center select-none outline-none p-2 font-semibold text-sm transition first:rounded-l first:border-l last:rounded-r last:border-r;
41
41
  // default colors
42
- @apply bg-white border-r text-default-black ring-tertiary border-y border-tertiary ;
42
+ @apply bg-white border-r text-default-dark ring-tertiary border-y border-tertiary ;
43
43
  // default hover state
44
- @apply hover:border-tertiary hover:bg-tertiary/10 hover:text-default-black;
44
+ @apply hover:border-tertiary hover:bg-tertiary/10 hover:text-default-dark;
45
45
  // default focus state unapplied
46
46
  // @apply focus-visible:border-tertiary focus-visible:text-tertiary focus-visible:ring-4 focus-visible:outline-none focus-visible:ring-gray-100 focus-visible:z-10 relative;
47
47
  // default active/pressed state
48
- @apply active:ring-0 active:bg-tertiary-dark/10 active:text-default-black;
48
+ @apply active:ring-0 active:bg-tertiary-dark/10 active:text-default-dark;
49
49
  // default disabled state
50
50
  @apply disabled:text-tertiary-dark/10;
51
51
  :deep(svg) {
@@ -10,7 +10,7 @@ const emit = defineEmits(['click'])
10
10
  </template>
11
11
  <style lang="scss" scoped>
12
12
  .rsui-dropdown-option {
13
- @apply cursor-pointer p-4 bg-white rounded-md text-base text-default-black transition;
13
+ @apply cursor-pointer p-4 bg-white rounded-md text-base text-default-dark transition;
14
14
  @apply hover:bg-gray-200;
15
15
  }
16
16
  </style>
@@ -0,0 +1,52 @@
1
+ <script setup>
2
+ import { QuestionMarkCircleIcon } from '@heroicons/vue/24/outline'
3
+
4
+ const props = defineProps({
5
+ help: {
6
+ type: Boolean,
7
+ default: false
8
+ }
9
+ })
10
+
11
+ const emit = defineEmits(['click'])
12
+ </script>
13
+ <template>
14
+ <div class="rsui-meta-info">
15
+ <div class="rsui-meta-info__top">
16
+ <div class="rsui-meta-info__label">
17
+ <slot name="label"></slot>
18
+ </div>
19
+ <div v-if="help"
20
+ class="rsui-meta-info__help"
21
+ @click="$emit('click')"
22
+ >
23
+ <slot name="help">
24
+ <QuestionMarkCircleIcon></QuestionMarkCircleIcon>
25
+ </slot>
26
+ </div>
27
+ </div>
28
+ <div class="rsui-meta-info__value">
29
+ <slot name="value"></slot>
30
+ </div>
31
+ </div>
32
+ </template>
33
+ <style lang="scss" scoped>
34
+ .rsui-meta-info {
35
+ @apply flex flex-col space-y-1;
36
+ &__top {
37
+ @apply flex space-x-1 items-center;
38
+ }
39
+ &__label {
40
+ @apply font-semibold text-sm text-default-dark leading-4;
41
+ }
42
+ &__help {
43
+ @apply text-gray-400 size-4;
44
+ svg {
45
+ @apply size-full;
46
+ }
47
+ }
48
+ &__value {
49
+ @apply text-xs text-medium leading-5;
50
+ }
51
+ }
52
+ </style>
@@ -1,22 +0,0 @@
1
- <script setup>
2
- </script>
3
- <template>
4
- <div class="rsui-meta-item">
5
- <div class="rsui-meta-item__label">
6
- <slot name="label"></slot>
7
- </div>
8
- <div class="rsui-meta-item__value">
9
- <slot name="value"></slot>
10
- </div>
11
- </div>
12
- </template>
13
- <style lang="scss" scoped>
14
- .rsui-meta-item {
15
- &__label {
16
- @apply text-xs text-gray-400;
17
- }
18
- &__value {
19
- @apply text-base;
20
- }
21
- }
22
- </style>