@redseed/redseed-ui-vue3 8.43.0 → 8.44.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
|
@@ -26,6 +26,10 @@ const props = defineProps({
|
|
|
26
26
|
type: Boolean,
|
|
27
27
|
default: true,
|
|
28
28
|
},
|
|
29
|
+
noClamp: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: false,
|
|
32
|
+
},
|
|
29
33
|
/**
|
|
30
34
|
* Heading level (1-6) for the title. When set, the title renders as a real
|
|
31
35
|
* <h1>-<h6> so consuming pages get a correct document outline (WCAG 1.3.1,
|
|
@@ -80,9 +84,9 @@ const titleTag = computed(() => props.headingLevel ? `h${props.headingLevel}` :
|
|
|
80
84
|
>
|
|
81
85
|
<div class="rsui-section-header__header">
|
|
82
86
|
|
|
83
|
-
<!-- Icon slot, optional -->
|
|
87
|
+
<!-- Icon slot, optional — hidden on narrow sections -->
|
|
84
88
|
<div class="rsui-section-header__icon"
|
|
85
|
-
v-if="$slots.icon"
|
|
89
|
+
v-if="$slots.icon && responsiveWidth.specific"
|
|
86
90
|
>
|
|
87
91
|
<slot name="icon"></slot>
|
|
88
92
|
</div>
|
|
@@ -93,8 +97,16 @@ const titleTag = computed(() => props.headingLevel ? `h${props.headingLevel}` :
|
|
|
93
97
|
}">
|
|
94
98
|
|
|
95
99
|
<!-- Title slot, default slot -->
|
|
96
|
-
<div class="
|
|
97
|
-
|
|
100
|
+
<div :class="[
|
|
101
|
+
'rsui-section-header__title',
|
|
102
|
+
{ 'rsui-section-header__title--stacked': !responsiveWidth.specific },
|
|
103
|
+
]">
|
|
104
|
+
<component :is="titleTag"
|
|
105
|
+
:class="[
|
|
106
|
+
'rsui-section-header__title-text',
|
|
107
|
+
{ 'rsui-section-header__title-text--no-clamp': noClamp },
|
|
108
|
+
]"
|
|
109
|
+
>
|
|
98
110
|
<slot></slot>
|
|
99
111
|
</component>
|
|
100
112
|
<div v-if="$slots.badge" class="rsui-section-header__badge">
|