hds-web 1.17.0 → 1.17.2
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,3 +1,3 @@
|
|
1
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
2
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.89706 1.5C5.82599 1.5 4.14706 3.17893 4.14706 5.25V8.64585C4.14706 9.42051 3.74856 10.1407 3.09223 10.5522L1.85161 11.33C1.63283 11.4671 1.5 11.7072 1.5 11.9654C1.5 12.2236 1.63283 12.4637 1.85161 12.6009L3.09223 13.3787C3.74856 13.7902 4.14706 14.5103 4.14706 15.285V18.75C4.14706 20.8211 5.82599 22.5 7.89706 22.5H9.75C10.1642 22.5 10.5 22.1642 10.5 21.75C10.5 21.3358 10.1642 21 9.75 21H7.89706C6.65442 21 5.64706 19.9926 5.64706 18.75V15.285C5.64706 13.9939 4.98289 12.7936 3.88901 12.1078L3.66193 11.9654L3.88901 11.8231C4.9829 11.1372 5.64706 9.93695 5.64706 8.64585V5.25C5.64706 4.00736 6.65442 3 7.89706 3H9.75C10.1642 3 10.5 2.66421 10.5 2.25C10.5 1.83579 10.1642 1.5 9.75 1.5H7.89706ZM16.3676 1.5C18.4387 1.5 20.1176 3.17893 20.1176 5.25V8.73954C20.1176 9.47556 20.4776 10.165 21.0816 10.5857L22.1787 11.35C22.38 11.4903 22.5 11.7201 22.5 11.9654C22.5 12.2108 22.38 12.4406 22.1787 12.5808L21.0816 13.3451C20.4776 13.7658 20.1176 14.4553 20.1176 15.1913V18.75C20.1176 20.8211 18.4387 22.5 16.3676 22.5H15C14.5858 22.5 14.25 22.1642 14.25 21.75C14.25 21.3358 14.5858 21 15 21H16.3676C17.6103 21 18.6176 19.9926 18.6176 18.75V15.1913C18.6176 13.9646 19.2176 12.8155 20.2242 12.1143L20.4379 11.9654L20.2242 11.8165C19.2176 11.1154 18.6176 9.96623 18.6176 8.73954V5.25C18.6176 4.00736 17.6103 3 16.3676 3H15C14.5858 3 14.25 2.66421 14.25 2.25C14.25 1.83579 14.5858 1.5 15 1.5H16.3676Z" fill="#1F2A37"/>
|
3
3
|
</svg>
|
@@ -54,7 +54,7 @@ export default function TalkCard2(props) {
|
|
54
54
|
props.para && (
|
55
55
|
<a href={props.readUrl}>
|
56
56
|
<HDSButton
|
57
|
-
label={props.videoUrl ? 'Watch
|
57
|
+
label={props.videoUrl ? 'Watch Recording': 'Read more'}
|
58
58
|
type='secondaryLink'
|
59
59
|
leftIconVariant='none'
|
60
60
|
rightIconVariant='none'
|
@@ -770,10 +770,12 @@ const HDSColors = {
|
|
770
770
|
};
|
771
771
|
|
772
772
|
export default function HDSColor(color = '') {
|
773
|
-
|
774
|
-
|
773
|
+
const modifiedColor = color.replace(/_/g, '-');
|
774
|
+
|
775
|
+
if (!HDSColors[modifiedColor]) {
|
776
|
+
HDSColors[modifiedColor] = modifiedColor;
|
775
777
|
}
|
776
|
-
return HDSColors[
|
778
|
+
return HDSColors[modifiedColor];
|
777
779
|
}
|
778
780
|
|
779
781
|
|