lm-web-controls 1.2.28 → 1.2.29
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import e,{useState as t}from"react";import a from"moment";function i(i){var l=i.blogs,n=i.icon,c=i.title,r=t("grid"),
|
|
2
|
+
import e,{useState as t}from"react";import a from"moment";function i(i){var l=i.blogs,n=i.icon,c=i.title,o=i.nestedUrl,r=t("grid"),m=r[0],s=r[1],d=function(e){s(e)};return e.createElement("section",{className:"blog-list-main-container"},e.createElement("div",{className:"blog-list-top-container"},c&&e.createElement("h2",{className:"blog-list-main-title"},c),e.createElement("div",{className:"blog-list-icons-container"},n.grid&&e.createElement("div",{className:"blog-list-icon ".concat("grid"===m?"active":""),onClick:function(){return d("grid")},title:"Grid View"},n.grid),n.list&&e.createElement("div",{className:"blog-list-icon ".concat("list"===m?"active":""),onClick:function(){return d("list")},title:"List View"},n.list))),e.createElement("div",{className:"".concat("grid"===m?"blogs-grid-view":"blogs-list-view")},l.map((function(t){var i,l,c;return e.createElement("div",{key:t.slug,className:"".concat("grid"===m?"blog-item-grid":"blog-item-list")},e.createElement("a",{href:"".concat(o||"","/post/").concat(t.slug)},e.createElement("img",{src:t.featuredImage,alt:t.title,className:"".concat("grid"===m?"blog-item-grid-image":"blog-item-list-image")})),e.createElement("div",{className:"blog-details"},e.createElement("a",{href:"".concat(o||"","/post/").concat(t.slug)},e.createElement("h3",{className:"blog-item-title"},t.title)),e.createElement("div",{className:"blog-item-avatar-main-container"},e.createElement("div",{className:"blog-item-avatar"},(null===(i=t.author)||void 0===i?void 0:i.name)?null===(l=t.author)||void 0===l?void 0:l.name[0]:""),e.createElement("div",{className:"blog-item-author-container"},e.createElement("h3",{className:"blog-item-author-name"},(null===(c=t.author)||void 0===c?void 0:c.name)||""),e.createElement("div",{className:"blog-item-date-read"},"On ".concat(a(t.publishedOn).format("ddd, MMM DD, YYYY"),", ").concat(t.readTime?"".concat(t.readTime," Min read"):"3 Min read")))),e.createElement("p",{className:"blog-item-preview-content"},t.previewContent),e.createElement("a",{className:"blog-item-read-more-container",href:"".concat(o||"","/post/").concat(t.slug)},e.createElement("p",null,"Read More"),n.link?n.link:null)))}))))}export{i as BlogList};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import e from"react";import a from"moment";function t(t){var r,l,
|
|
2
|
+
import e from"react";import a from"moment";function t(t){var r,n,l,o,c=t.featured,m=t.icon,d=t.nestedUrl;return e.createElement("section",{className:"featured-blog-main-container"},e.createElement("div",{className:"featured-blog-image-container"},e.createElement("img",{src:c.featuredImage,alt:c.title,className:"featured-blog-image"}),e.createElement("span",{className:"post-category"},(null===(r=null==c?void 0:c.categoryInfo)||void 0===r?void 0:r.name)||"General")),e.createElement("div",{className:"featured-blog-data-container"},e.createElement("a",{href:"".concat(d||"","/post/").concat(c.slug),className:"featured-blog-title-link"},e.createElement("h2",{className:"featured-blog-title"},c.title)),e.createElement("div",{className:"featured-blog-avatar-main-container"},e.createElement("div",{className:"featured-blog-avatar"},(null===(n=c.author)||void 0===n?void 0:n.name)?null===(l=c.author)||void 0===l?void 0:l.name[0]:""),e.createElement("div",{className:"featured-blog-author-container"},e.createElement("h3",{className:"featured-blog-author-name"},(null===(o=c.author)||void 0===o?void 0:o.name)||""),e.createElement("div",{className:"featured-blog-date-read"},"On ".concat(a(c.publishedOn).format("ddd, MMM DD, YYYY"),", ").concat(c.readTime?"".concat(c.readTime," Min read"):"3 Min read")))),e.createElement("p",{className:"featured-blog-preview-content"},c.previewContent),e.createElement("a",{className:"read-more-container",href:"".concat(d||"","/post/").concat(c.slug)},e.createElement("p",null,"Read More"),m||null)))}export{t as FeaturedBlog};
|