@thairath/tr-design-system 0.2.9 → 0.2.10
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/dist/index.cjs +41 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +41 -16
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6654,14 +6654,18 @@ var TROENHeader = _ref => {
|
|
|
6654
6654
|
return () => window.removeEventListener('scroll', handleScroll);
|
|
6655
6655
|
}, [isMobileView]);
|
|
6656
6656
|
if (!data) return /*#__PURE__*/React.createElement("div", null, loading);
|
|
6657
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TROEN_Header,
|
|
6657
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TROEN_Header, {
|
|
6658
|
+
className: "troen--header"
|
|
6659
|
+
}, /*#__PURE__*/React.createElement(TROEN_HeaderTOP, null, /*#__PURE__*/React.createElement(TROEN_WrapIcon, null, /*#__PURE__*/React.createElement(Logo, {
|
|
6658
6660
|
fill: logoColor,
|
|
6659
6661
|
mode: "auto-width",
|
|
6660
6662
|
name: "tr_online_en",
|
|
6661
6663
|
size: "24"
|
|
6662
6664
|
})), isMobileView && /*#__PURE__*/React.createElement(HamburgerButton, {
|
|
6663
6665
|
onClick: () => setIsOpen(!isOpen)
|
|
6664
|
-
}))), /*#__PURE__*/React.createElement(TROEN_NavigatorBar,
|
|
6666
|
+
}))), /*#__PURE__*/React.createElement(TROEN_NavigatorBar, {
|
|
6667
|
+
className: "troen--navigator-bar"
|
|
6668
|
+
}, !isMobileView && /*#__PURE__*/React.createElement(TROEN_WrapIcon, {
|
|
6665
6669
|
className: "hide ".concat(showStickyLogo ? 'show' : '')
|
|
6666
6670
|
}, /*#__PURE__*/React.createElement(Logo, {
|
|
6667
6671
|
fill: "Color",
|
|
@@ -6681,8 +6685,11 @@ var TROENHeader = _ref => {
|
|
|
6681
6685
|
isOpen: isOpen,
|
|
6682
6686
|
onClick: () => setIsOpen(false)
|
|
6683
6687
|
}), /*#__PURE__*/React.createElement(TROEN_SlideNavigatore, {
|
|
6684
|
-
isOpen: isOpen
|
|
6685
|
-
|
|
6688
|
+
isOpen: isOpen,
|
|
6689
|
+
className: "troen--slide-navigator"
|
|
6690
|
+
}, /*#__PURE__*/React.createElement(TROEN_SlidebarTop, {
|
|
6691
|
+
className: "troen--slide-bar-top"
|
|
6692
|
+
}, /*#__PURE__*/React.createElement(TROEN_WrapIcon, {
|
|
6686
6693
|
onClick: () => setIsOpen(false)
|
|
6687
6694
|
}, /*#__PURE__*/React.createElement("svg", {
|
|
6688
6695
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6756,7 +6763,8 @@ var TROENHeader = _ref => {
|
|
|
6756
6763
|
d: "M11.6342 20.1378C11.8461 20.1378 12.0788 19.9753 12.1513 19.778L12.5109 18.7919C12.5834 18.5933 12.4691 18.4308 12.2572 18.4308H11.8893C11.6774 18.4308 11.5631 18.2683 11.6356 18.0697L13.8754 11.9697C13.9479 11.7711 14.1472 11.5072 14.3187 11.3822L14.465 11.2753C14.6364 11.1503 14.9487 11.0489 15.1619 11.0489H16.5195C16.7313 11.0489 16.9975 11.1947 17.1118 11.3725L17.332 11.7169C17.4463 11.8947 17.6791 11.9392 17.8505 11.8142L19.4269 10.6628C19.5984 10.5378 19.6444 10.2905 19.5315 10.1114L18.8847 9.09888C18.7704 8.9211 18.5042 8.77527 18.2924 8.77527H13.7068C13.4949 8.77527 13.1813 8.87805 13.0113 9.00305L11.3039 10.253C11.1324 10.378 10.9345 10.6433 10.862 10.8405L8.20964 18.0697C8.13716 18.2683 7.9044 18.4308 7.69254 18.4308H7.12108C7.06812 18.4308 7.01376 18.4405 6.96079 18.46C6.8019 18.5141 6.65695 18.6433 6.60259 18.7919L6.24299 19.778C6.17051 19.9766 6.2848 20.1391 6.49666 20.1391H11.6342V20.1378Z",
|
|
6757
6764
|
fill: "white"
|
|
6758
6765
|
})))), /*#__PURE__*/React.createElement(TROEN_SlidebarContainer, {
|
|
6759
|
-
onClick: () => setIsOpen(false)
|
|
6766
|
+
onClick: () => setIsOpen(false),
|
|
6767
|
+
className: "troen--slide-container"
|
|
6760
6768
|
}, /*#__PURE__*/React.createElement(SlidebarNavLink, {
|
|
6761
6769
|
href: "/",
|
|
6762
6770
|
label: "Home"
|
|
@@ -6764,7 +6772,9 @@ var TROENHeader = _ref => {
|
|
|
6764
6772
|
key: index,
|
|
6765
6773
|
href: item.link,
|
|
6766
6774
|
label: item.catergory
|
|
6767
|
-
}))), /*#__PURE__*/React.createElement(TROEN_SlidebarNavOther,
|
|
6775
|
+
}))), /*#__PURE__*/React.createElement(TROEN_SlidebarNavOther, {
|
|
6776
|
+
className: "troen--slide-nav-other"
|
|
6777
|
+
}, /*#__PURE__*/React.createElement("h3", null, "Thairath Website"), /*#__PURE__*/React.createElement("ul", {
|
|
6768
6778
|
className: "troen--slidebar-website-menu"
|
|
6769
6779
|
}, data.thairathWebsite.map((item, index) => /*#__PURE__*/React.createElement("li", {
|
|
6770
6780
|
key: index
|
|
@@ -6782,7 +6792,9 @@ var TROENHeader = _ref => {
|
|
|
6782
6792
|
target: "_blank",
|
|
6783
6793
|
rel: "noopener noreferrer",
|
|
6784
6794
|
onClick: () => setIsOpen(false)
|
|
6785
|
-
}, item.name))))), /*#__PURE__*/React.createElement(TROEN_SlidebarNavOther,
|
|
6795
|
+
}, item.name))))), /*#__PURE__*/React.createElement(TROEN_SlidebarNavOther, {
|
|
6796
|
+
className: "troen--slide-nav-other"
|
|
6797
|
+
}, /*#__PURE__*/React.createElement("ul", {
|
|
6786
6798
|
className: "troen--slidebar-website-menu"
|
|
6787
6799
|
}, data.otherLinks.map((item, index) => /*#__PURE__*/React.createElement("li", {
|
|
6788
6800
|
key: index
|
|
@@ -6870,7 +6882,6 @@ var TROENFooter = _ref => {
|
|
|
6870
6882
|
loading
|
|
6871
6883
|
} = _ref;
|
|
6872
6884
|
var [data, setData] = React.useState(null);
|
|
6873
|
-
var [error, setError] = React.useState(false);
|
|
6874
6885
|
React.useEffect(() => {
|
|
6875
6886
|
var controller = new AbortController();
|
|
6876
6887
|
fetch(dataFile, {
|
|
@@ -6881,14 +6892,20 @@ var TROENFooter = _ref => {
|
|
|
6881
6892
|
return () => controller.abort();
|
|
6882
6893
|
}, [dataFile]);
|
|
6883
6894
|
if (!data) return /*#__PURE__*/React.createElement("div", null, loading);
|
|
6884
|
-
return /*#__PURE__*/React.createElement(TRO_FooterWrap,
|
|
6895
|
+
return /*#__PURE__*/React.createElement(TRO_FooterWrap, {
|
|
6896
|
+
className: "troen--footer"
|
|
6897
|
+
}, /*#__PURE__*/React.createElement(TRO_FooterTop, null, /*#__PURE__*/React.createElement(Logo, {
|
|
6885
6898
|
fill: "Color",
|
|
6886
6899
|
mode: "auto-width",
|
|
6887
6900
|
name: "tr_online_en",
|
|
6888
6901
|
size: "30"
|
|
6889
|
-
})), /*#__PURE__*/React.createElement(TRO_FooterContainer,
|
|
6902
|
+
})), /*#__PURE__*/React.createElement(TRO_FooterContainer, {
|
|
6903
|
+
className: "troen--footer-container"
|
|
6904
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6890
6905
|
className: "troen--footer-wrap-main-manu"
|
|
6891
|
-
}, /*#__PURE__*/React.createElement(TRO_FooterMenu,
|
|
6906
|
+
}, /*#__PURE__*/React.createElement(TRO_FooterMenu, {
|
|
6907
|
+
className: "troen--footer-menu"
|
|
6908
|
+
}, /*#__PURE__*/React.createElement("h3", null, "Sections"), /*#__PURE__*/React.createElement("ul", {
|
|
6892
6909
|
className: "troen--footer-menu"
|
|
6893
6910
|
}, data.naviMenu.map((item, index) => /*#__PURE__*/React.createElement("li", {
|
|
6894
6911
|
key: index
|
|
@@ -6896,7 +6913,9 @@ var TROENFooter = _ref => {
|
|
|
6896
6913
|
href: item.link,
|
|
6897
6914
|
target: "_blank",
|
|
6898
6915
|
rel: "noopener noreferrer"
|
|
6899
|
-
}, item.catergory))))), /*#__PURE__*/React.createElement(TRO_FooterMenu,
|
|
6916
|
+
}, item.catergory))))), /*#__PURE__*/React.createElement(TRO_FooterMenu, {
|
|
6917
|
+
className: "troen--footer-menu"
|
|
6918
|
+
}, /*#__PURE__*/React.createElement("h3", null, "Thairath Website"), /*#__PURE__*/React.createElement("ul", {
|
|
6900
6919
|
className: "troen--footer-menu"
|
|
6901
6920
|
}, data.thairathWebsite.map((item, index) => /*#__PURE__*/React.createElement("li", {
|
|
6902
6921
|
key: index
|
|
@@ -6904,7 +6923,9 @@ var TROENFooter = _ref => {
|
|
|
6904
6923
|
href: item.link,
|
|
6905
6924
|
target: "_blank",
|
|
6906
6925
|
rel: "noopener noreferrer"
|
|
6907
|
-
}, item.name)))))), /*#__PURE__*/React.createElement(TRO_FooterMenu,
|
|
6926
|
+
}, item.name)))))), /*#__PURE__*/React.createElement(TRO_FooterMenu, {
|
|
6927
|
+
className: "troen--footer-menu"
|
|
6928
|
+
}, /*#__PURE__*/React.createElement("h3", null, "Follow Us"), /*#__PURE__*/React.createElement("ul", {
|
|
6908
6929
|
className: "troen--footer-menu-followus"
|
|
6909
6930
|
}, data.social.map((item, index) => /*#__PURE__*/React.createElement("li", {
|
|
6910
6931
|
key: index
|
|
@@ -6935,7 +6956,9 @@ var TROENFooter = _ref => {
|
|
|
6935
6956
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
6936
6957
|
name: "desktop",
|
|
6937
6958
|
size: 26
|
|
6938
|
-
}))))), /*#__PURE__*/React.createElement(TRO_FooterMenu,
|
|
6959
|
+
}))))), /*#__PURE__*/React.createElement(TRO_FooterMenu, {
|
|
6960
|
+
className: "troen--footer-menu"
|
|
6961
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6939
6962
|
className: "trorn--footer-myapp"
|
|
6940
6963
|
}, /*#__PURE__*/React.createElement("i", null, /*#__PURE__*/React.createElement(Icon, {
|
|
6941
6964
|
fill: "#00B400",
|
|
@@ -6999,7 +7022,9 @@ var TROENFooter = _ref => {
|
|
|
6999
7022
|
mode: "auto-width",
|
|
7000
7023
|
name: "inet",
|
|
7001
7024
|
size: "24"
|
|
7002
|
-
})))))), /*#__PURE__*/React.createElement(TRO_FooterBottom,
|
|
7025
|
+
})))))), /*#__PURE__*/React.createElement(TRO_FooterBottom, {
|
|
7026
|
+
className: "troen--footer-bottom"
|
|
7027
|
+
}, /*#__PURE__*/React.createElement("ul", {
|
|
7003
7028
|
className: "troen--footer-website-menu"
|
|
7004
7029
|
}, data.otherLinks.map((item, index) => /*#__PURE__*/React.createElement("li", {
|
|
7005
7030
|
key: index
|
|
@@ -8032,6 +8057,7 @@ exports.TROENHeader = TROENHeader;
|
|
|
8032
8057
|
exports.TROFooter = TROFooter;
|
|
8033
8058
|
exports.TROHeader = TROHeader;
|
|
8034
8059
|
exports.TROLThemeProvider = TROLThemeProvider;
|
|
8060
|
+
exports.Text = Text;
|
|
8035
8061
|
exports.Textarea = Textarea;
|
|
8036
8062
|
exports.Textbox = Textbox;
|
|
8037
8063
|
exports.add_circle = AddCircleIcon;
|
|
@@ -8112,7 +8138,6 @@ exports.share = ShareIcon;
|
|
|
8112
8138
|
exports.share_filled = ShareFilledIcon;
|
|
8113
8139
|
exports.social_x = SocilaXIcon;
|
|
8114
8140
|
exports.sonp = SOPNLogo;
|
|
8115
|
-
exports.text = Text;
|
|
8116
8141
|
exports.thumbmail = Thumbnail;
|
|
8117
8142
|
exports.tiktok = TiktokIcon;
|
|
8118
8143
|
exports.tiktok_color = TiktokColorIcon;
|