@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.esm.js
CHANGED
|
@@ -6652,14 +6652,18 @@ var TROENHeader = _ref => {
|
|
|
6652
6652
|
return () => window.removeEventListener('scroll', handleScroll);
|
|
6653
6653
|
}, [isMobileView]);
|
|
6654
6654
|
if (!data) return /*#__PURE__*/React.createElement("div", null, loading);
|
|
6655
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TROEN_Header,
|
|
6655
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TROEN_Header, {
|
|
6656
|
+
className: "troen--header"
|
|
6657
|
+
}, /*#__PURE__*/React.createElement(TROEN_HeaderTOP, null, /*#__PURE__*/React.createElement(TROEN_WrapIcon, null, /*#__PURE__*/React.createElement(Logo, {
|
|
6656
6658
|
fill: logoColor,
|
|
6657
6659
|
mode: "auto-width",
|
|
6658
6660
|
name: "tr_online_en",
|
|
6659
6661
|
size: "24"
|
|
6660
6662
|
})), isMobileView && /*#__PURE__*/React.createElement(HamburgerButton, {
|
|
6661
6663
|
onClick: () => setIsOpen(!isOpen)
|
|
6662
|
-
}))), /*#__PURE__*/React.createElement(TROEN_NavigatorBar,
|
|
6664
|
+
}))), /*#__PURE__*/React.createElement(TROEN_NavigatorBar, {
|
|
6665
|
+
className: "troen--navigator-bar"
|
|
6666
|
+
}, !isMobileView && /*#__PURE__*/React.createElement(TROEN_WrapIcon, {
|
|
6663
6667
|
className: "hide ".concat(showStickyLogo ? 'show' : '')
|
|
6664
6668
|
}, /*#__PURE__*/React.createElement(Logo, {
|
|
6665
6669
|
fill: "Color",
|
|
@@ -6679,8 +6683,11 @@ var TROENHeader = _ref => {
|
|
|
6679
6683
|
isOpen: isOpen,
|
|
6680
6684
|
onClick: () => setIsOpen(false)
|
|
6681
6685
|
}), /*#__PURE__*/React.createElement(TROEN_SlideNavigatore, {
|
|
6682
|
-
isOpen: isOpen
|
|
6683
|
-
|
|
6686
|
+
isOpen: isOpen,
|
|
6687
|
+
className: "troen--slide-navigator"
|
|
6688
|
+
}, /*#__PURE__*/React.createElement(TROEN_SlidebarTop, {
|
|
6689
|
+
className: "troen--slide-bar-top"
|
|
6690
|
+
}, /*#__PURE__*/React.createElement(TROEN_WrapIcon, {
|
|
6684
6691
|
onClick: () => setIsOpen(false)
|
|
6685
6692
|
}, /*#__PURE__*/React.createElement("svg", {
|
|
6686
6693
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6754,7 +6761,8 @@ var TROENHeader = _ref => {
|
|
|
6754
6761
|
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",
|
|
6755
6762
|
fill: "white"
|
|
6756
6763
|
})))), /*#__PURE__*/React.createElement(TROEN_SlidebarContainer, {
|
|
6757
|
-
onClick: () => setIsOpen(false)
|
|
6764
|
+
onClick: () => setIsOpen(false),
|
|
6765
|
+
className: "troen--slide-container"
|
|
6758
6766
|
}, /*#__PURE__*/React.createElement(SlidebarNavLink, {
|
|
6759
6767
|
href: "/",
|
|
6760
6768
|
label: "Home"
|
|
@@ -6762,7 +6770,9 @@ var TROENHeader = _ref => {
|
|
|
6762
6770
|
key: index,
|
|
6763
6771
|
href: item.link,
|
|
6764
6772
|
label: item.catergory
|
|
6765
|
-
}))), /*#__PURE__*/React.createElement(TROEN_SlidebarNavOther,
|
|
6773
|
+
}))), /*#__PURE__*/React.createElement(TROEN_SlidebarNavOther, {
|
|
6774
|
+
className: "troen--slide-nav-other"
|
|
6775
|
+
}, /*#__PURE__*/React.createElement("h3", null, "Thairath Website"), /*#__PURE__*/React.createElement("ul", {
|
|
6766
6776
|
className: "troen--slidebar-website-menu"
|
|
6767
6777
|
}, data.thairathWebsite.map((item, index) => /*#__PURE__*/React.createElement("li", {
|
|
6768
6778
|
key: index
|
|
@@ -6780,7 +6790,9 @@ var TROENHeader = _ref => {
|
|
|
6780
6790
|
target: "_blank",
|
|
6781
6791
|
rel: "noopener noreferrer",
|
|
6782
6792
|
onClick: () => setIsOpen(false)
|
|
6783
|
-
}, item.name))))), /*#__PURE__*/React.createElement(TROEN_SlidebarNavOther,
|
|
6793
|
+
}, item.name))))), /*#__PURE__*/React.createElement(TROEN_SlidebarNavOther, {
|
|
6794
|
+
className: "troen--slide-nav-other"
|
|
6795
|
+
}, /*#__PURE__*/React.createElement("ul", {
|
|
6784
6796
|
className: "troen--slidebar-website-menu"
|
|
6785
6797
|
}, data.otherLinks.map((item, index) => /*#__PURE__*/React.createElement("li", {
|
|
6786
6798
|
key: index
|
|
@@ -6868,7 +6880,6 @@ var TROENFooter = _ref => {
|
|
|
6868
6880
|
loading
|
|
6869
6881
|
} = _ref;
|
|
6870
6882
|
var [data, setData] = useState(null);
|
|
6871
|
-
var [error, setError] = useState(false);
|
|
6872
6883
|
useEffect(() => {
|
|
6873
6884
|
var controller = new AbortController();
|
|
6874
6885
|
fetch(dataFile, {
|
|
@@ -6879,14 +6890,20 @@ var TROENFooter = _ref => {
|
|
|
6879
6890
|
return () => controller.abort();
|
|
6880
6891
|
}, [dataFile]);
|
|
6881
6892
|
if (!data) return /*#__PURE__*/React.createElement("div", null, loading);
|
|
6882
|
-
return /*#__PURE__*/React.createElement(TRO_FooterWrap,
|
|
6893
|
+
return /*#__PURE__*/React.createElement(TRO_FooterWrap, {
|
|
6894
|
+
className: "troen--footer"
|
|
6895
|
+
}, /*#__PURE__*/React.createElement(TRO_FooterTop, null, /*#__PURE__*/React.createElement(Logo, {
|
|
6883
6896
|
fill: "Color",
|
|
6884
6897
|
mode: "auto-width",
|
|
6885
6898
|
name: "tr_online_en",
|
|
6886
6899
|
size: "30"
|
|
6887
|
-
})), /*#__PURE__*/React.createElement(TRO_FooterContainer,
|
|
6900
|
+
})), /*#__PURE__*/React.createElement(TRO_FooterContainer, {
|
|
6901
|
+
className: "troen--footer-container"
|
|
6902
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6888
6903
|
className: "troen--footer-wrap-main-manu"
|
|
6889
|
-
}, /*#__PURE__*/React.createElement(TRO_FooterMenu,
|
|
6904
|
+
}, /*#__PURE__*/React.createElement(TRO_FooterMenu, {
|
|
6905
|
+
className: "troen--footer-menu"
|
|
6906
|
+
}, /*#__PURE__*/React.createElement("h3", null, "Sections"), /*#__PURE__*/React.createElement("ul", {
|
|
6890
6907
|
className: "troen--footer-menu"
|
|
6891
6908
|
}, data.naviMenu.map((item, index) => /*#__PURE__*/React.createElement("li", {
|
|
6892
6909
|
key: index
|
|
@@ -6894,7 +6911,9 @@ var TROENFooter = _ref => {
|
|
|
6894
6911
|
href: item.link,
|
|
6895
6912
|
target: "_blank",
|
|
6896
6913
|
rel: "noopener noreferrer"
|
|
6897
|
-
}, item.catergory))))), /*#__PURE__*/React.createElement(TRO_FooterMenu,
|
|
6914
|
+
}, item.catergory))))), /*#__PURE__*/React.createElement(TRO_FooterMenu, {
|
|
6915
|
+
className: "troen--footer-menu"
|
|
6916
|
+
}, /*#__PURE__*/React.createElement("h3", null, "Thairath Website"), /*#__PURE__*/React.createElement("ul", {
|
|
6898
6917
|
className: "troen--footer-menu"
|
|
6899
6918
|
}, data.thairathWebsite.map((item, index) => /*#__PURE__*/React.createElement("li", {
|
|
6900
6919
|
key: index
|
|
@@ -6902,7 +6921,9 @@ var TROENFooter = _ref => {
|
|
|
6902
6921
|
href: item.link,
|
|
6903
6922
|
target: "_blank",
|
|
6904
6923
|
rel: "noopener noreferrer"
|
|
6905
|
-
}, item.name)))))), /*#__PURE__*/React.createElement(TRO_FooterMenu,
|
|
6924
|
+
}, item.name)))))), /*#__PURE__*/React.createElement(TRO_FooterMenu, {
|
|
6925
|
+
className: "troen--footer-menu"
|
|
6926
|
+
}, /*#__PURE__*/React.createElement("h3", null, "Follow Us"), /*#__PURE__*/React.createElement("ul", {
|
|
6906
6927
|
className: "troen--footer-menu-followus"
|
|
6907
6928
|
}, data.social.map((item, index) => /*#__PURE__*/React.createElement("li", {
|
|
6908
6929
|
key: index
|
|
@@ -6933,7 +6954,9 @@ var TROENFooter = _ref => {
|
|
|
6933
6954
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
6934
6955
|
name: "desktop",
|
|
6935
6956
|
size: 26
|
|
6936
|
-
}))))), /*#__PURE__*/React.createElement(TRO_FooterMenu,
|
|
6957
|
+
}))))), /*#__PURE__*/React.createElement(TRO_FooterMenu, {
|
|
6958
|
+
className: "troen--footer-menu"
|
|
6959
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6937
6960
|
className: "trorn--footer-myapp"
|
|
6938
6961
|
}, /*#__PURE__*/React.createElement("i", null, /*#__PURE__*/React.createElement(Icon, {
|
|
6939
6962
|
fill: "#00B400",
|
|
@@ -6997,7 +7020,9 @@ var TROENFooter = _ref => {
|
|
|
6997
7020
|
mode: "auto-width",
|
|
6998
7021
|
name: "inet",
|
|
6999
7022
|
size: "24"
|
|
7000
|
-
})))))), /*#__PURE__*/React.createElement(TRO_FooterBottom,
|
|
7023
|
+
})))))), /*#__PURE__*/React.createElement(TRO_FooterBottom, {
|
|
7024
|
+
className: "troen--footer-bottom"
|
|
7025
|
+
}, /*#__PURE__*/React.createElement("ul", {
|
|
7001
7026
|
className: "troen--footer-website-menu"
|
|
7002
7027
|
}, data.otherLinks.map((item, index) => /*#__PURE__*/React.createElement("li", {
|
|
7003
7028
|
key: index
|
|
@@ -8013,5 +8038,5 @@ var TROLThemeProvider = _ref => {
|
|
|
8013
8038
|
};
|
|
8014
8039
|
var useThemeMode = () => useContext(ThemeContext);
|
|
8015
8040
|
|
|
8016
|
-
export { Button, ButtonWithIcon, CardArticle, Checkbox, Icon, Logo, NavigatorBar, NavigatorFollowUs, NavigatorSlide, RadioButton, Search, Select, TROENFooter, TROENHeader, TROFooter, TROHeader, TROLThemeProvider, Textarea, Textbox, AddCircleIcon as add_circle, AddCircleFilledIcon as add_circle_filled, AppleAppStoreLogo as appleAppStore, ArrowCircleDownIcon as arrow_circle_down, ArrowCircleDownFilledIcon as arrow_circle_down_filled, ArrowCircleLeftIcon as arrow_circle_left, ArrowCircleLeftFilledIcon as arrow_circle_left_filled, ArrowCircleRightIcon as arrow_circle_right, ArrowCircleRightFilledIcon as arrow_circle_right_filled, ArrowCircleUpIcon as arrow_circle_up, ArrowCircleUpFilledIcon as arrow_circle_up_filled, ArrowDownwardAltIcon as arrow_downward_alt, ArrowLeftAltIcon as arrow_left_alt, ArrowRightAltIcon as arrow_right_alt, ArrowUpwardAltIcon as arrow_upward_alt, BedtimeIcon as bedtime, BedtimeFilledIcon as bedtime_filled, BookmarkIcon as bookmark, BookmarkFilledIcon as bookmark_filled, CalendarIcon as calendar, CalendarFilledIcon as calendar_filled, ClearDayIcon as clear_day, ClearDayFilledIcon as clear_day_filled, CloudDoneIcon as cloud_done, CloudDoneFilledIcon as cloud_done_filled, CloudDownloadIcon as cloud_download, CloudDownloadFilledIcon as cloud_download_filled, CloudUpLoadIcon as cloud_upload, CloudUpLoadFilledIcon as cloud_upload_filled, DesktopIcon as desktop, DesktopFilledIcon as desktop_filled, FacebookIcon as facebook, FacebookColorIcon as facebook_color, FeedIcon as feed, FirstPageIcon as first_page, GoogleIcon as google, GooglePlayStoreLogo as googlePlayStore, GoogleColorIcon as google_color, HamburgerIcon as hamburger, HomeIcon as home, HomeFilledIcon as home_filled, HuaweiAppGalleryLogo as huaweiAppGallery, InetLogo as inet, InfoIcon as info, InstagramIcon as instagram, InstagramColorIcon as instagram_color, KeyboardArrowDownIcon as keyboard_arrow_down, KeyboardArrowLeftIcon as keyboard_arrow_left, KeyboardArrowRightIcon as keyboard_arrow_right, KeyboardArrowUpIcon as keyboard_arrow_up, LastPageIcon as last_page, LineAppIcon as line_app, LineAppColorIcon as line_app_color, LinkIcon as link, LockIcon as lock, LockFilledIcon as lock_filled, LogoutIcon as logout, MailIcon as mail, MailFilledIcon as mail_filled, MessagerIcon as messager, MessagerColorIcon as messager_color, MirrorLogo as mirror, MobileIcon as mobile, MobileFilledIcon as mobile_filled, NotifationIcon as notifation, NotifationFilledIcon as notifation_filled, NotificationsActiveIcon as notifications_active, NotificationsActiveFilledIcon as notifications_active_filled, NotificationsOffIcon as notifications_off, NotificationsOffFilledIcon as notifications_off_filled, NotificationsUnreadIcon as notifications_unread, NotificationsUnreadFilledIcon as notifications_unread_filled, PublicIcon as public, SearchIcon as search, ShareIcon as share, ShareFilledIcon as share_filled, SocilaXIcon as social_x, SOPNLogo as sonp,
|
|
8041
|
+
export { Button, ButtonWithIcon, CardArticle, Checkbox, Icon, Logo, NavigatorBar, NavigatorFollowUs, NavigatorSlide, RadioButton, Search, Select, TROENFooter, TROENHeader, TROFooter, TROHeader, TROLThemeProvider, Text, Textarea, Textbox, AddCircleIcon as add_circle, AddCircleFilledIcon as add_circle_filled, AppleAppStoreLogo as appleAppStore, ArrowCircleDownIcon as arrow_circle_down, ArrowCircleDownFilledIcon as arrow_circle_down_filled, ArrowCircleLeftIcon as arrow_circle_left, ArrowCircleLeftFilledIcon as arrow_circle_left_filled, ArrowCircleRightIcon as arrow_circle_right, ArrowCircleRightFilledIcon as arrow_circle_right_filled, ArrowCircleUpIcon as arrow_circle_up, ArrowCircleUpFilledIcon as arrow_circle_up_filled, ArrowDownwardAltIcon as arrow_downward_alt, ArrowLeftAltIcon as arrow_left_alt, ArrowRightAltIcon as arrow_right_alt, ArrowUpwardAltIcon as arrow_upward_alt, BedtimeIcon as bedtime, BedtimeFilledIcon as bedtime_filled, BookmarkIcon as bookmark, BookmarkFilledIcon as bookmark_filled, CalendarIcon as calendar, CalendarFilledIcon as calendar_filled, ClearDayIcon as clear_day, ClearDayFilledIcon as clear_day_filled, CloudDoneIcon as cloud_done, CloudDoneFilledIcon as cloud_done_filled, CloudDownloadIcon as cloud_download, CloudDownloadFilledIcon as cloud_download_filled, CloudUpLoadIcon as cloud_upload, CloudUpLoadFilledIcon as cloud_upload_filled, DesktopIcon as desktop, DesktopFilledIcon as desktop_filled, FacebookIcon as facebook, FacebookColorIcon as facebook_color, FeedIcon as feed, FirstPageIcon as first_page, GoogleIcon as google, GooglePlayStoreLogo as googlePlayStore, GoogleColorIcon as google_color, HamburgerIcon as hamburger, HomeIcon as home, HomeFilledIcon as home_filled, HuaweiAppGalleryLogo as huaweiAppGallery, InetLogo as inet, InfoIcon as info, InstagramIcon as instagram, InstagramColorIcon as instagram_color, KeyboardArrowDownIcon as keyboard_arrow_down, KeyboardArrowLeftIcon as keyboard_arrow_left, KeyboardArrowRightIcon as keyboard_arrow_right, KeyboardArrowUpIcon as keyboard_arrow_up, LastPageIcon as last_page, LineAppIcon as line_app, LineAppColorIcon as line_app_color, LinkIcon as link, LockIcon as lock, LockFilledIcon as lock_filled, LogoutIcon as logout, MailIcon as mail, MailFilledIcon as mail_filled, MessagerIcon as messager, MessagerColorIcon as messager_color, MirrorLogo as mirror, MobileIcon as mobile, MobileFilledIcon as mobile_filled, NotifationIcon as notifation, NotifationFilledIcon as notifation_filled, NotificationsActiveIcon as notifications_active, NotificationsActiveFilledIcon as notifications_active_filled, NotificationsOffIcon as notifications_off, NotificationsOffFilledIcon as notifications_off_filled, NotificationsUnreadIcon as notifications_unread, NotificationsUnreadFilledIcon as notifications_unread_filled, PublicIcon as public, SearchIcon as search, ShareIcon as share, ShareFilledIcon as share_filled, SocilaXIcon as social_x, SOPNLogo as sonp, Thumbnail as thumbmail, TiktokIcon as tiktok, TiktokColorIcon as tiktok_color, TRFutureperfectLogo as trFuturePerfect, TRLogisticsLogo as trLogistics, TRMoneyLogo as trMoney, TROlineLogo as trOnline, TROlineENLogo as trOnlineEN, TRPlusLogo as trPlus, TRSportLogo as trSport, TRTVLogo as trTV, TrenVG3Logo as trendVG3, TROAppIcon as tro_app, useThemeMode, UserIcon as user, UserFilledIcon as user_filled, VisibilityIcon as visibility, VisibilityFilledIcon as visibility_filled, VisibilityOffIcon as visibility_off, VisibilityOffFilledIcon as visibility_off_filled, YoutubeIcon as youtube };
|
|
8017
8042
|
//# sourceMappingURL=index.esm.js.map
|