@zohodesk/icons 1.0.0-beta.10 → 1.0.0-beta.102
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/README.md +361 -0
- package/{assets → assets_final}/fonts/gs-zdfonts.svg +0 -0
- package/{assets → assets_final}/fonts/gs-zdfonts.woff +0 -0
- package/assets_final/fonts/webfonts/ZohoPuvi/ZohoPuviBold.woff +0 -0
- package/assets_final/fonts/webfonts/ZohoPuvi/ZohoPuviBold.woff2 +0 -0
- package/assets_final/fonts/webfonts/ZohoPuvi/ZohoPuviExtrabold.woff +0 -0
- package/assets_final/fonts/webfonts/ZohoPuvi/ZohoPuviExtrabold.woff2 +0 -0
- package/assets_final/fonts/webfonts/ZohoPuvi/ZohoPuviLight.woff +0 -0
- package/assets_final/fonts/webfonts/ZohoPuvi/ZohoPuviLight.woff2 +0 -0
- package/assets_final/fonts/webfonts/ZohoPuvi/ZohoPuviMedium.woff +0 -0
- package/assets_final/fonts/webfonts/ZohoPuvi/ZohoPuviMedium.woff2 +0 -0
- package/assets_final/fonts/webfonts/ZohoPuvi/ZohoPuviRegular.woff +0 -0
- package/assets_final/fonts/webfonts/ZohoPuvi/ZohoPuviRegular.woff2 +0 -0
- package/assets_final/fonts/webfonts/ZohoPuvi/ZohoPuviSemibold.woff +0 -0
- package/assets_final/fonts/webfonts/ZohoPuvi/ZohoPuviSemibold.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-addforms +0 -0
- package/{assets → assets_final}/fonts/zd-addforms.svg +0 -0
- package/{assets → assets_final}/fonts/zd-addforms.woff +0 -0
- package/{assets → assets_final}/fonts/zd-addforms.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-automate.svg +0 -0
- package/{assets → assets_final}/fonts/zd-automate.woff +0 -0
- package/{assets → assets_final}/fonts/zd-automate.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-channels.svg +6 -0
- package/{assets → assets_final}/fonts/zd-channels.woff +0 -0
- package/assets_final/fonts/zd-channels.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-common.svg +5 -3
- package/{assets → assets_final}/fonts/zd-common.woff +0 -0
- package/assets_final/fonts/zd-common.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-community.svg +1 -0
- package/{assets → assets_final}/fonts/zd-community.woff +0 -0
- package/assets_final/fonts/zd-community.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-customers.svg +0 -0
- package/{assets → assets_final}/fonts/zd-customers.woff +0 -0
- package/{assets → assets_final}/fonts/zd-customers.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-customize.svg +2 -0
- package/{assets → assets_final}/fonts/zd-customize.woff +0 -0
- package/assets_final/fonts/zd-customize.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-font-icon-portallist.svg +0 -0
- package/{assets → assets_final}/fonts/zd-font-icon-portallist.woff +0 -0
- package/{assets → assets_final}/fonts/zd-font-icon-portallist.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-gamescope.svg +0 -0
- package/{assets → assets_final}/fonts/zd-gamescope.woff +0 -0
- package/{assets → assets_final}/fonts/zd-gamescope.woff2 +0 -0
- package/assets_final/fonts/zd-gcFonts.svg +242 -0
- package/assets_final/fonts/zd-gcFonts.woff +0 -0
- package/assets_final/fonts/zd-gcFonts.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-gettingstarted.svg +2 -2
- package/{assets → assets_final}/fonts/zd-gettingstarted.woff +0 -0
- package/assets_final/fonts/zd-gettingstarted.woff2 +0 -0
- package/assets_final/fonts/zd-integrations.svg +17 -0
- package/assets_final/fonts/zd-integrations.woff +0 -0
- package/assets_final/fonts/zd-integrations.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-kb.svg +0 -0
- package/{assets → assets_final}/fonts/zd-kb.woff +0 -0
- package/{assets → assets_final}/fonts/zd-kb.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-kbeditortools.svg +0 -0
- package/{assets → assets_final}/fonts/zd-kbeditortools.woff +0 -0
- package/{assets → assets_final}/fonts/zd-kbeditortools.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-logo.svg +1 -1
- package/{assets → assets_final}/fonts/zd-logo.woff +0 -0
- package/assets_final/fonts/zd-logo.woff2 +0 -0
- package/assets_final/fonts/zd-mobile-marketplace.svg +14 -0
- package/assets_final/fonts/zd-mobile-marketplace.woff +0 -0
- package/assets_final/fonts/zd-mobile-marketplace.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-organization.svg +0 -0
- package/{assets → assets_final}/fonts/zd-organization.woff +0 -0
- package/{assets → assets_final}/fonts/zd-organization.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-others.svg +4 -0
- package/{assets → assets_final}/fonts/zd-others.woff +0 -0
- package/assets_final/fonts/zd-others.woff2 +0 -0
- package/assets_final/fonts/zd-rCallBar.svg +22 -0
- package/assets_final/fonts/zd-rCallBar.woff +0 -0
- package/assets_final/fonts/zd-rCallBar.woff2 +0 -0
- package/assets_final/fonts/zd-rChannels.svg +56 -0
- package/assets_final/fonts/zd-rChannels.woff +0 -0
- package/assets_final/fonts/zd-rChannels.woff2 +0 -0
- package/assets_final/fonts/zd-rCustomize.svg +30 -0
- package/assets_final/fonts/zd-rCustomize.woff +0 -0
- package/assets_final/fonts/zd-rCustomize.woff2 +0 -0
- package/assets_final/fonts/zd-rExportFiles.svg +161 -0
- package/assets_final/fonts/zd-rExportFiles.woff +0 -0
- package/assets_final/fonts/zd-rExportFiles.woff2 +0 -0
- package/assets_final/fonts/zd-rGeneral.svg +181 -0
- package/assets_final/fonts/zd-rGeneral.woff +0 -0
- package/assets_final/fonts/zd-rGeneral.woff2 +0 -0
- package/assets_final/fonts/zd-rIntegrations.svg +49 -0
- package/assets_final/fonts/zd-rIntegrations.woff +0 -0
- package/assets_final/fonts/zd-rIntegrations.woff2 +0 -0
- package/assets_final/fonts/zd-rLhs.svg +84 -0
- package/assets_final/fonts/zd-rLhs.woff +0 -0
- package/assets_final/fonts/zd-rLhs.woff2 +0 -0
- package/assets_final/fonts/zd-rMarketplace.svg +40 -0
- package/assets_final/fonts/zd-rMarketplace.woff +0 -0
- package/assets_final/fonts/zd-rMarketplace.woff2 +0 -0
- package/assets_final/fonts/zd-rReports.svg +55 -0
- package/assets_final/fonts/zd-rReports.woff +0 -0
- package/assets_final/fonts/zd-rReports.woff2 +0 -0
- package/assets_final/fonts/zd-rSetup.svg +63 -0
- package/assets_final/fonts/zd-rSetup.woff +0 -0
- package/assets_final/fonts/zd-rSetup.woff2 +0 -0
- package/assets_final/fonts/zd-rTickets.svg +108 -0
- package/assets_final/fonts/zd-rTickets.woff +0 -0
- package/assets_final/fonts/zd-rTickets.woff2 +0 -0
- package/assets_final/fonts/zd-rTopband.svg +51 -0
- package/assets_final/fonts/zd-rTopband.woff +0 -0
- package/assets_final/fonts/zd-rTopband.woff2 +0 -0
- package/assets_final/fonts/zd-rTwotone.svg +204 -0
- package/assets_final/fonts/zd-rTwotone.woff +0 -0
- package/assets_final/fonts/zd-rTwotone.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-reports.svg +50 -1
- package/{assets → assets_final}/fonts/zd-reports.woff +0 -0
- package/assets_final/fonts/zd-reports.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-setup.svg +3 -1
- package/{assets → assets_final}/fonts/zd-setup.woff +0 -0
- package/assets_final/fonts/zd-setup.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-social.svg +0 -0
- package/{assets → assets_final}/fonts/zd-social.woff +0 -0
- package/assets_final/fonts/zd-social.woff2 +0 -0
- package/assets_final/fonts/zd-ticket-channels.svg +68 -0
- package/assets_final/fonts/zd-ticket-channels.woff +0 -0
- package/assets_final/fonts/zd-ticket-channels.woff2 +0 -0
- package/assets_final/fonts/zd-tickets.svg +281 -0
- package/{assets → assets_final}/fonts/zd-tickets.woff +0 -0
- package/assets_final/fonts/zd-tickets.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-topband.svg +3 -1
- package/{assets → assets_final}/fonts/zd-topband.woff +0 -0
- package/assets_final/fonts/zd-topband.woff2 +0 -0
- package/{assets → assets_final}/fonts/zd-zohohc-kb-articlenotes-font-icon.svg +0 -0
- package/{assets → assets_final}/fonts/zd-zohohc-kb-articlenotes-font-icon.woff +0 -0
- package/{assets → assets_final}/fonts/zd-zohohc-kb-articlenotes-font-icon.woff2 +0 -0
- package/assets_final/react/zd-font-rCallBar.module.css +53 -0
- package/assets_final/react/zd-font-rChannels.module.css +209 -0
- package/assets_final/react/zd-font-rCustomize.module.css +77 -0
- package/assets_final/react/zd-font-rExportFiles.module.css +716 -0
- package/assets_final/react/zd-font-rGeneral.module.css +632 -0
- package/assets_final/react/zd-font-rIntegrations.module.css +197 -0
- package/assets_final/react/zd-font-rLhs.module.css +387 -0
- package/assets_final/react/zd-font-rMarketplace.module.css +154 -0
- package/assets_final/react/zd-font-rReports.module.css +196 -0
- package/assets_final/react/zd-font-rSetup.module.css +206 -0
- package/assets_final/react/zd-font-rTickets.module.css +350 -0
- package/assets_final/react/zd-font-rTopband.module.css +165 -0
- package/assets_final/react/zd-font-rTwotone.module.css +909 -0
- package/{assets/css/zd-font-addforms.module.css → assets_final/react/zd-font-react-addforms.module.css} +3 -2
- package/{assets/css/zd-font-automate.module.css → assets_final/react/zd-font-react-automate.module.css} +3 -2
- package/{assets/css/zd-font-channels.module.css → assets_final/react/zd-font-react-channels.module.css} +28 -3
- package/{assets/css/zd-font-channels.plain.css → assets_final/react/zd-font-react-channels.plain.css} +28 -3
- package/{assets/css/zd-font-common.module.css → assets_final/react/zd-font-react-common.module.css} +11 -3
- package/{assets/css/zd-font-common.plain.css → assets_final/react/zd-font-react-common.plain.css} +11 -3
- package/{assets/css/zd-font-community.module.css → assets_final/react/zd-font-react-community.module.css} +7 -3
- package/{assets/css/zd-font-customers.module.css → assets_final/react/zd-font-react-customers.module.css} +3 -2
- package/{assets/css/zd-font-customize.module.css → assets_final/react/zd-font-react-customize.module.css} +10 -3
- package/{assets/css/zd-font-gamescope.module.css → assets_final/react/zd-font-react-gamescope.module.css} +3 -2
- package/assets_final/react/zd-font-react-gcFonts.module.css +1026 -0
- package/{assets/css/zd-font-gettingstarted.module.css → assets_final/react/zd-font-react-gettingstarted.module.css} +4 -2
- package/assets_final/react/zd-font-react-integrations.module.css +50 -0
- package/{assets/css/zd-font-kb.module.css → assets_final/react/zd-font-react-kb.module.css} +3 -2
- package/{assets/css/zd-font-logo.module.css → assets_final/react/zd-font-react-logo.module.css} +3 -2
- package/{assets/css/zd-font-organization.module.css → assets_final/react/zd-font-react-organization.module.css} +3 -2
- package/{assets/css/zd-font-organization.plain.css → assets_final/react/zd-font-react-organization.plain.css} +3 -2
- package/{assets/css/zd-font-others.module.css → assets_final/react/zd-font-react-others.module.css} +22 -3
- package/{assets/css/zd-font-reports.module.css → assets_final/react/zd-font-react-reports.module.css} +211 -3
- package/{assets/css/zd-font-setup.plain.css → assets_final/react/zd-font-react-setup.module.css} +10 -3
- package/{assets/css/zd-font-setup.module.css → assets_final/react/zd-font-react-setup.plain.css} +10 -3
- package/{assets/css/zd-font-social.module.css → assets_final/react/zd-font-react-social.module.css} +3 -2
- package/assets_final/react/zd-font-react-ticket-channels.module.css +259 -0
- package/{assets/css/zd-font-tickets.plain.css → assets_final/react/zd-font-react-tickets.module.css} +329 -265
- package/{assets/css/zd-font-tickets.module.css → assets_final/react/zd-font-react-tickets.plain.css} +329 -265
- package/{assets/css/zd-font-topband.plain.css → assets_final/react/zd-font-react-topband.module.css} +11 -3
- package/{assets/css/zd-font-topband.module.css → assets_final/react/zd-font-react-topband.plain.css} +11 -3
- package/es/Icon/CustomIcons.js +111 -0
- package/es/Icon/FontFactory.js +848 -40
- package/es/Icon/FontIcon.js +68 -58
- package/es/Icon/Icon.module.css +43 -0
- package/es/Icon/asyncComponent.js +53 -69
- package/es/Icon/index.js +188 -70
- package/es/common/{docStyle.module.css → IcondocStyle.module.css} +2 -4
- package/es/index.js +2 -4
- package/lib/Icon/CustomIcons.js +97 -0
- package/lib/Icon/FontFactory.js +730 -42
- package/lib/Icon/FontIcon.js +95 -59
- package/lib/Icon/Icon.module.css +43 -0
- package/lib/Icon/asyncComponent.js +45 -27
- package/lib/Icon/index.js +193 -67
- package/lib/common/{docStyle.module.css → IcondocStyle.module.css} +2 -4
- package/lib/index.js +22 -37
- package/package.json +72 -9
- package/assets/css/font-icon-portallist.module.css +0 -25
- package/assets/css/kbeditortools.module.css +0 -359
- package/assets/css/zd-font-common-styles.module.css +0 -15
- package/assets/css/zohohc-kb-articlenotes-font-icon.module.css +0 -44
- package/assets/fonts/zd-channels.woff2 +0 -0
- package/assets/fonts/zd-common.woff2 +0 -0
- package/assets/fonts/zd-community.woff2 +0 -0
- package/assets/fonts/zd-customize.woff2 +0 -0
- package/assets/fonts/zd-gettingstarted.woff2 +0 -0
- package/assets/fonts/zd-logo.woff2 +0 -0
- package/assets/fonts/zd-others.woff2 +0 -0
- package/assets/fonts/zd-reports.woff2 +0 -0
- package/assets/fonts/zd-setup.woff2 +0 -0
- package/assets/fonts/zd-social.woff2 +0 -0
- package/assets/fonts/zd-tickets.svg +0 -266
- package/assets/fonts/zd-tickets.woff2 +0 -0
- package/assets/fonts/zd-topband.woff2 +0 -0
- package/es/FontIcon/AddformsFontIcon.js +0 -123
- package/es/FontIcon/AutomateFontIcon.js +0 -106
- package/es/FontIcon/ChannelsFontIcon.js +0 -166
- package/es/FontIcon/CommonFontIcon.js +0 -230
- package/es/FontIcon/CommunityFontIcon.js +0 -134
- package/es/FontIcon/CustomersFontIcon.js +0 -95
- package/es/FontIcon/CustomizeFontIcon.js +0 -157
- package/es/FontIcon/FontFactory.js +0 -1234
- package/es/FontIcon/FontIcon.js +0 -412
- package/es/FontIcon/FontIcon.module.css +0 -35
- package/es/FontIcon/FontIconAll.js +0 -115
- package/es/FontIcon/GamescopeFontIcon.js +0 -111
- package/es/FontIcon/GettingstartedFontIcon.js +0 -153
- package/es/FontIcon/KnowledgeBaseFontIcon.js +0 -429
- package/es/FontIcon/LogoFontIcon.js +0 -96
- package/es/FontIcon/OrganizationFontIcon.js +0 -113
- package/es/FontIcon/OthersFontIcon.js +0 -125
- package/es/FontIcon/ReportsFontIcon.js +0 -148
- package/es/FontIcon/SetupFontIcon.js +0 -192
- package/es/FontIcon/SocialFontIcon.js +0 -191
- package/es/FontIcon/TicketsFontIcon.js +0 -285
- package/es/FontIcon/TopbandFontIcon.js +0 -283
- package/es/FontIcon/__tests__/FontIcon.spec.js +0 -274
- package/es/FontIcon/__tests__/__snapshots__/FontIcon.spec.js.snap +0 -241
- package/es/FontIcon/docs/AddformsFontIcon__default.docs.js +0 -64
- package/es/FontIcon/docs/AutomateFontIcon__default.docs.js +0 -63
- package/es/FontIcon/docs/ChannelsFontIcon__default.docs.js +0 -62
- package/es/FontIcon/docs/CommonFontIcon__default.docs.js +0 -62
- package/es/FontIcon/docs/CommunityFontIcon__default.docs.js +0 -62
- package/es/FontIcon/docs/CustomersFontIcon__default.docs.js +0 -62
- package/es/FontIcon/docs/CustomizeFontIcon__default.docs.js +0 -62
- package/es/FontIcon/docs/FontIconAll__All.docs.js +0 -81
- package/es/FontIcon/docs/GamescopeFontIcon__default.docs.js +0 -63
- package/es/FontIcon/docs/GettingstartedFontIcon__default.docs.js +0 -62
- package/es/FontIcon/docs/KnowledgeBaseFontIcon__default.docs.js +0 -62
- package/es/FontIcon/docs/LogoFontIcon__default.docs.js +0 -62
- package/es/FontIcon/docs/OrganizationFontIcon__default.docs.js +0 -62
- package/es/FontIcon/docs/OthersFontIcon__default.docs.js +0 -62
- package/es/FontIcon/docs/ReportsFontIcon__default.docs.js +0 -62
- package/es/FontIcon/docs/SetupFontIcon__default.docs.js +0 -62
- package/es/FontIcon/docs/SocialFontIcon__default.docs.js +0 -62
- package/es/FontIcon/docs/TicketsFontIcon__default.docs.js +0 -62
- package/es/FontIcon/docs/TopbandFontIcon__default.docs.js +0 -62
- package/es/FontIcon/index.js +0 -18
- package/es/Icon/AddformsFontIcon.js +0 -113
- package/es/Icon/AutomateFontIcon.js +0 -96
- package/es/Icon/ChannelsFontIcon.js +0 -156
- package/es/Icon/CommonFontIcon.js +0 -222
- package/es/Icon/CommunityFontIcon.js +0 -124
- package/es/Icon/CustomersFontIcon.js +0 -85
- package/es/Icon/CustomizeFontIcon.js +0 -147
- package/es/Icon/FontIcon.module.css +0 -19
- package/es/Icon/GamescopeFontIcon.js +0 -101
- package/es/Icon/GettingstartedFontIcon.js +0 -144
- package/es/Icon/KnowledgeBaseFontIcon.js +0 -419
- package/es/Icon/OrganizationFontIcon.js +0 -103
- package/es/Icon/OthersFontIcon.js +0 -116
- package/es/Icon/ReportsFontIcon.js +0 -138
- package/es/Icon/SetupFontIcon.js +0 -182
- package/es/Icon/SocialFontIcon.js +0 -183
- package/es/Icon/TicketsFontIcon.js +0 -282
- package/es/Icon/TopbandFontIcon.js +0 -273
- package/es/Icon/docs/Icon__default.docs.js +0 -77
- package/es/docs.js +0 -20
- package/lib/FontIcon/AddformsFontIcon.js +0 -147
- package/lib/FontIcon/AutomateFontIcon.js +0 -128
- package/lib/FontIcon/ChannelsFontIcon.js +0 -188
- package/lib/FontIcon/CommonFontIcon.js +0 -254
- package/lib/FontIcon/CommunityFontIcon.js +0 -158
- package/lib/FontIcon/CustomersFontIcon.js +0 -119
- package/lib/FontIcon/CustomizeFontIcon.js +0 -181
- package/lib/FontIcon/FontFactory.js +0 -1239
- package/lib/FontIcon/FontIcon.js +0 -437
- package/lib/FontIcon/FontIcon.module.css +0 -35
- package/lib/FontIcon/FontIconAll.js +0 -128
- package/lib/FontIcon/GamescopeFontIcon.js +0 -133
- package/lib/FontIcon/GettingstartedFontIcon.js +0 -175
- package/lib/FontIcon/KnowledgeBaseFontIcon.js +0 -453
- package/lib/FontIcon/LogoFontIcon.js +0 -118
- package/lib/FontIcon/OrganizationFontIcon.js +0 -137
- package/lib/FontIcon/OthersFontIcon.js +0 -149
- package/lib/FontIcon/ReportsFontIcon.js +0 -172
- package/lib/FontIcon/SetupFontIcon.js +0 -216
- package/lib/FontIcon/SocialFontIcon.js +0 -215
- package/lib/FontIcon/TicketsFontIcon.js +0 -310
- package/lib/FontIcon/TopbandFontIcon.js +0 -305
- package/lib/FontIcon/__tests__/FontIcon.spec.js +0 -342
- package/lib/FontIcon/__tests__/__snapshots__/FontIcon.spec.js.snap +0 -241
- package/lib/FontIcon/docs/AddformsFontIcon__default.docs.js +0 -84
- package/lib/FontIcon/docs/AutomateFontIcon__default.docs.js +0 -83
- package/lib/FontIcon/docs/ChannelsFontIcon__default.docs.js +0 -82
- package/lib/FontIcon/docs/CommonFontIcon__default.docs.js +0 -82
- package/lib/FontIcon/docs/CommunityFontIcon__default.docs.js +0 -82
- package/lib/FontIcon/docs/CustomersFontIcon__default.docs.js +0 -82
- package/lib/FontIcon/docs/CustomizeFontIcon__default.docs.js +0 -82
- package/lib/FontIcon/docs/FontIconAll__All.docs.js +0 -100
- package/lib/FontIcon/docs/GamescopeFontIcon__default.docs.js +0 -83
- package/lib/FontIcon/docs/GettingstartedFontIcon__default.docs.js +0 -82
- package/lib/FontIcon/docs/KnowledgeBaseFontIcon__default.docs.js +0 -82
- package/lib/FontIcon/docs/LogoFontIcon__default.docs.js +0 -82
- package/lib/FontIcon/docs/OrganizationFontIcon__default.docs.js +0 -82
- package/lib/FontIcon/docs/OthersFontIcon__default.docs.js +0 -82
- package/lib/FontIcon/docs/ReportsFontIcon__default.docs.js +0 -82
- package/lib/FontIcon/docs/SetupFontIcon__default.docs.js +0 -82
- package/lib/FontIcon/docs/SocialFontIcon__default.docs.js +0 -82
- package/lib/FontIcon/docs/TicketsFontIcon__default.docs.js +0 -82
- package/lib/FontIcon/docs/TopbandFontIcon__default.docs.js +0 -82
- package/lib/FontIcon/index.js +0 -169
- package/lib/Icon/AddformsFontIcon.js +0 -137
- package/lib/Icon/AutomateFontIcon.js +0 -118
- package/lib/Icon/ChannelsFontIcon.js +0 -178
- package/lib/Icon/CommonFontIcon.js +0 -246
- package/lib/Icon/CommunityFontIcon.js +0 -148
- package/lib/Icon/CustomersFontIcon.js +0 -109
- package/lib/Icon/CustomizeFontIcon.js +0 -171
- package/lib/Icon/FontIcon.module.css +0 -19
- package/lib/Icon/GamescopeFontIcon.js +0 -123
- package/lib/Icon/GettingstartedFontIcon.js +0 -166
- package/lib/Icon/KnowledgeBaseFontIcon.js +0 -443
- package/lib/Icon/OrganizationFontIcon.js +0 -127
- package/lib/Icon/OthersFontIcon.js +0 -140
- package/lib/Icon/ReportsFontIcon.js +0 -162
- package/lib/Icon/SetupFontIcon.js +0 -206
- package/lib/Icon/SocialFontIcon.js +0 -207
- package/lib/Icon/TicketsFontIcon.js +0 -307
- package/lib/Icon/TopbandFontIcon.js +0 -295
- package/lib/Icon/docs/Icon__default.docs.js +0 -99
- package/lib/docs.js +0 -178
package/es/FontIcon/FontIcon.js
DELETED
|
@@ -1,412 +0,0 @@
|
|
|
1
|
-
import _typeof from 'babel-runtime/helpers/typeof';
|
|
2
|
-
import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-prototype-of';
|
|
3
|
-
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
|
|
4
|
-
import _createClass from 'babel-runtime/helpers/createClass';
|
|
5
|
-
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
|
6
|
-
import _inherits from 'babel-runtime/helpers/inherits';
|
|
7
|
-
/* eslint css-modules/no-unused-class: [2, { markAsUsed: [
|
|
8
|
-
'size1',
|
|
9
|
-
'size2',
|
|
10
|
-
'size3',
|
|
11
|
-
'size4',
|
|
12
|
-
'size5',
|
|
13
|
-
'size6',
|
|
14
|
-
'size7',
|
|
15
|
-
'size8',
|
|
16
|
-
'size9',
|
|
17
|
-
'size10',
|
|
18
|
-
'size11',
|
|
19
|
-
'size12',
|
|
20
|
-
'size13',
|
|
21
|
-
'size14',
|
|
22
|
-
'size15',
|
|
23
|
-
'size16',
|
|
24
|
-
'size17',
|
|
25
|
-
'size18',
|
|
26
|
-
'size19',
|
|
27
|
-
'size20',
|
|
28
|
-
'size21',
|
|
29
|
-
'size22',
|
|
30
|
-
'size23',
|
|
31
|
-
'size24',
|
|
32
|
-
'size25',
|
|
33
|
-
'size26',
|
|
34
|
-
'size27',
|
|
35
|
-
'size28',
|
|
36
|
-
'size29',
|
|
37
|
-
'size30',
|
|
38
|
-
'size31',
|
|
39
|
-
'size32',
|
|
40
|
-
'size33',
|
|
41
|
-
'size34',
|
|
42
|
-
'size35',
|
|
43
|
-
'size36',
|
|
44
|
-
'size37',
|
|
45
|
-
'size38',
|
|
46
|
-
'size39',
|
|
47
|
-
'size40',
|
|
48
|
-
'size41',
|
|
49
|
-
'size42',
|
|
50
|
-
'size43',
|
|
51
|
-
'size44',
|
|
52
|
-
'size45',
|
|
53
|
-
'size46',
|
|
54
|
-
'size47',
|
|
55
|
-
'size48',
|
|
56
|
-
'size49',
|
|
57
|
-
'size50',
|
|
58
|
-
'size55',
|
|
59
|
-
'size57',
|
|
60
|
-
'size60',
|
|
61
|
-
'size61',
|
|
62
|
-
'size65',
|
|
63
|
-
'size70',
|
|
64
|
-
'size73',
|
|
65
|
-
'size80',
|
|
66
|
-
'size86',
|
|
67
|
-
'size88',
|
|
68
|
-
'size90',
|
|
69
|
-
'size95',
|
|
70
|
-
'size100',
|
|
71
|
-
'size110',
|
|
72
|
-
'size120',
|
|
73
|
-
'size132',
|
|
74
|
-
'size140',
|
|
75
|
-
'size160',
|
|
76
|
-
'size170',
|
|
77
|
-
'size180',
|
|
78
|
-
'size181',
|
|
79
|
-
'size200',
|
|
80
|
-
'size220',
|
|
81
|
-
'size225',
|
|
82
|
-
'size250',
|
|
83
|
-
'size280',
|
|
84
|
-
'size304',
|
|
85
|
-
'size350',
|
|
86
|
-
'size364',
|
|
87
|
-
'size400',
|
|
88
|
-
'size468',
|
|
89
|
-
'pure',
|
|
90
|
-
'hover_pure',
|
|
91
|
-
'athensgray',
|
|
92
|
-
'hover_athensgray',
|
|
93
|
-
'alabaster',
|
|
94
|
-
'hover_alabaster',
|
|
95
|
-
'gallery1',
|
|
96
|
-
'hover_gallery1',
|
|
97
|
-
'smoke2',
|
|
98
|
-
'hover_smoke2',
|
|
99
|
-
'smoke5',
|
|
100
|
-
'hover_smoke5',
|
|
101
|
-
'smoke12',
|
|
102
|
-
'hover_smoke12',
|
|
103
|
-
'smoke14',
|
|
104
|
-
'hover_smoke14',
|
|
105
|
-
'smoke15',
|
|
106
|
-
'hover_smoke15',
|
|
107
|
-
'smoke17',
|
|
108
|
-
'hover_smoke17',
|
|
109
|
-
'smoke18',
|
|
110
|
-
'hover_smoke18',
|
|
111
|
-
'smoke19',
|
|
112
|
-
'hover_smoke19',
|
|
113
|
-
'smoke20',
|
|
114
|
-
'hover_smoke20',
|
|
115
|
-
'smoke21',
|
|
116
|
-
'hover_smoke21',
|
|
117
|
-
'smoke23',
|
|
118
|
-
'hover_smoke23',
|
|
119
|
-
'smoke24',
|
|
120
|
-
'hover_smoke24',
|
|
121
|
-
'smoke25',
|
|
122
|
-
'hover_smoke25',
|
|
123
|
-
'smoke27',
|
|
124
|
-
'hover_smoke27',
|
|
125
|
-
'smoke31',
|
|
126
|
-
'hover_smoke31',
|
|
127
|
-
'smoke32',
|
|
128
|
-
'hover_smoke32',
|
|
129
|
-
'smoke35',
|
|
130
|
-
'hover_smoke35',
|
|
131
|
-
'smoke36',
|
|
132
|
-
'hover_smoke36',
|
|
133
|
-
'smoke37',
|
|
134
|
-
'hover_smoke37',
|
|
135
|
-
'smoke38',
|
|
136
|
-
'hover_smoke38',
|
|
137
|
-
'smoke39',
|
|
138
|
-
'hover_smoke39',
|
|
139
|
-
'smoke48',
|
|
140
|
-
'hover_smoke48',
|
|
141
|
-
'smoke50',
|
|
142
|
-
'hover_smoke50',
|
|
143
|
-
'smoke51',
|
|
144
|
-
'hover_smoke51',
|
|
145
|
-
'smoke52',
|
|
146
|
-
'hover_smoke52',
|
|
147
|
-
'smoke54',
|
|
148
|
-
'hover_smoke54',
|
|
149
|
-
'smoke55',
|
|
150
|
-
'hover_smoke55',
|
|
151
|
-
'smoke56',
|
|
152
|
-
'hover_smoke56',
|
|
153
|
-
'smoke58',
|
|
154
|
-
'hover_smoke58',
|
|
155
|
-
'smoke60',
|
|
156
|
-
'hover_smoke60',
|
|
157
|
-
'smoke61',
|
|
158
|
-
'hover_smoke61',
|
|
159
|
-
'smoke62',
|
|
160
|
-
'hover_smoke62',
|
|
161
|
-
'smoke65',
|
|
162
|
-
'hover_smoke65',
|
|
163
|
-
'smoke66',
|
|
164
|
-
'hover_smoke66',
|
|
165
|
-
'smoke67',
|
|
166
|
-
'hover_smoke67',
|
|
167
|
-
'smoke73',
|
|
168
|
-
'hover_smoke73',
|
|
169
|
-
'smoke74',
|
|
170
|
-
'hover_smoke74',
|
|
171
|
-
'smoke79',
|
|
172
|
-
'hover_smoke79',
|
|
173
|
-
'smoke86',
|
|
174
|
-
'hover_smoke86',
|
|
175
|
-
'smoke89',
|
|
176
|
-
'hover_smoke89',
|
|
177
|
-
'smoke90',
|
|
178
|
-
'hover_smoke90',
|
|
179
|
-
'smoke99',
|
|
180
|
-
'hover_smoke99',
|
|
181
|
-
'shark',
|
|
182
|
-
'hover_shark',
|
|
183
|
-
'shark1',
|
|
184
|
-
'hover_shark1',
|
|
185
|
-
'dark',
|
|
186
|
-
'hover_dark',
|
|
187
|
-
'dark2',
|
|
188
|
-
'hover_dark2',
|
|
189
|
-
'dark4',
|
|
190
|
-
'hover_dark4',
|
|
191
|
-
'dark5',
|
|
192
|
-
'hover_dark5',
|
|
193
|
-
'dark6',
|
|
194
|
-
'hover_dark6',
|
|
195
|
-
'dark13',
|
|
196
|
-
'hover_dark13',
|
|
197
|
-
'dark15',
|
|
198
|
-
'hover_dark15',
|
|
199
|
-
'dark17',
|
|
200
|
-
'hover_dark17',
|
|
201
|
-
'dark18',
|
|
202
|
-
'hover_dark18',
|
|
203
|
-
'dark20',
|
|
204
|
-
'hover_dark20',
|
|
205
|
-
'dark21',
|
|
206
|
-
'hover_dark21',
|
|
207
|
-
'dark24',
|
|
208
|
-
'hover_dark24',
|
|
209
|
-
'dark27',
|
|
210
|
-
'hover_dark27',
|
|
211
|
-
'dark28',
|
|
212
|
-
'hover_dark28',
|
|
213
|
-
'blue4',
|
|
214
|
-
'hover_blue4',
|
|
215
|
-
'blue5',
|
|
216
|
-
'hover_blue5',
|
|
217
|
-
'blue10',
|
|
218
|
-
'hover_blue10',
|
|
219
|
-
'blue11',
|
|
220
|
-
'hover_blue11',
|
|
221
|
-
'prime',
|
|
222
|
-
'hover_prime',
|
|
223
|
-
'primary',
|
|
224
|
-
'hover_primary',
|
|
225
|
-
'primary1',
|
|
226
|
-
'hover_primary1',
|
|
227
|
-
'primary2',
|
|
228
|
-
'hover_primary2',
|
|
229
|
-
'primary9',
|
|
230
|
-
'hover_primary9',
|
|
231
|
-
'primary10',
|
|
232
|
-
'hover_primary10',
|
|
233
|
-
'primary19',
|
|
234
|
-
'hover_primary19',
|
|
235
|
-
'danger',
|
|
236
|
-
'hover_danger',
|
|
237
|
-
'danger1',
|
|
238
|
-
'hover_danger1',
|
|
239
|
-
'danger4',
|
|
240
|
-
'hover_danger4',
|
|
241
|
-
'danger6',
|
|
242
|
-
'hover_danger6',
|
|
243
|
-
'danger8',
|
|
244
|
-
'hover_danger8',
|
|
245
|
-
'danger11',
|
|
246
|
-
'hover_danger11',
|
|
247
|
-
'danger12',
|
|
248
|
-
'hover_danger12',
|
|
249
|
-
'danger14',
|
|
250
|
-
'hover_danger14',
|
|
251
|
-
'danger15',
|
|
252
|
-
'hover_danger15',
|
|
253
|
-
'danger20',
|
|
254
|
-
'hover_danger20',
|
|
255
|
-
'mandatory',
|
|
256
|
-
'hover_mandatory',
|
|
257
|
-
'orange',
|
|
258
|
-
'hover_orange',
|
|
259
|
-
'error',
|
|
260
|
-
'hover_error',
|
|
261
|
-
'vermilion',
|
|
262
|
-
'hover_vermilion',
|
|
263
|
-
'olive',
|
|
264
|
-
'hover_olive',
|
|
265
|
-
'olive3',
|
|
266
|
-
'hover_olive3',
|
|
267
|
-
'olive4',
|
|
268
|
-
'hover_olive4',
|
|
269
|
-
'olive5',
|
|
270
|
-
'hover_olive5',
|
|
271
|
-
'olive6',
|
|
272
|
-
'hover_olive6',
|
|
273
|
-
'olive7',
|
|
274
|
-
'hover_olive7',
|
|
275
|
-
'olive8',
|
|
276
|
-
'hover_olive8',
|
|
277
|
-
'olive9',
|
|
278
|
-
'hover_olive9',
|
|
279
|
-
'olive10',
|
|
280
|
-
'hover_olive10',
|
|
281
|
-
'olive12',
|
|
282
|
-
'hover_olive12',
|
|
283
|
-
'olive13',
|
|
284
|
-
'hover_olive13',
|
|
285
|
-
'olive14',
|
|
286
|
-
'hover_olive14',
|
|
287
|
-
'olive15',
|
|
288
|
-
'hover_olive15',
|
|
289
|
-
'olive16',
|
|
290
|
-
'hover_olive16',
|
|
291
|
-
'gold',
|
|
292
|
-
'hover_gold',
|
|
293
|
-
'goldyellow',
|
|
294
|
-
'hover_goldyellow',
|
|
295
|
-
'yellow',
|
|
296
|
-
'hover_yellow',
|
|
297
|
-
'yellow1',
|
|
298
|
-
'hover_yellow1',
|
|
299
|
-
'yellow3',
|
|
300
|
-
'hover_yellow3',
|
|
301
|
-
'yellow5',
|
|
302
|
-
'hover_yellow5',
|
|
303
|
-
'info',
|
|
304
|
-
'hover_info',
|
|
305
|
-
'small',
|
|
306
|
-
'medium',
|
|
307
|
-
'large',
|
|
308
|
-
'xlarge',
|
|
309
|
-
'missed'
|
|
310
|
-
]}] */
|
|
311
|
-
|
|
312
|
-
import React from 'react';
|
|
313
|
-
import PropTypes from 'prop-types';
|
|
314
|
-
import fsize from '@zohodesk/variables/lib/fontsize.module.css';
|
|
315
|
-
import colors from '@zohodesk/variables/lib/colors.module.css';
|
|
316
|
-
import style from './FontIcon.module.css';
|
|
317
|
-
var defSizes = {
|
|
318
|
-
small: '10',
|
|
319
|
-
medium: '13',
|
|
320
|
-
large: '14',
|
|
321
|
-
xlarge: '15',
|
|
322
|
-
heading4: '16',
|
|
323
|
-
heading3: '18',
|
|
324
|
-
heading2: '22',
|
|
325
|
-
heading1: '24'
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
var FontIcon = function (_React$Component) {
|
|
329
|
-
_inherits(FontIcon, _React$Component);
|
|
330
|
-
|
|
331
|
-
function FontIcon() {
|
|
332
|
-
_classCallCheck(this, FontIcon);
|
|
333
|
-
|
|
334
|
-
return _possibleConstructorReturn(this, (FontIcon.__proto__ || _Object$getPrototypeOf(FontIcon)).apply(this, arguments));
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
_createClass(FontIcon, [{
|
|
338
|
-
key: 'render',
|
|
339
|
-
value: function render() {
|
|
340
|
-
var _props = this.props,
|
|
341
|
-
name = _props.name,
|
|
342
|
-
size = _props.size,
|
|
343
|
-
color = _props.color,
|
|
344
|
-
hoverColor = _props.hoverColor,
|
|
345
|
-
onClick = _props.onClick,
|
|
346
|
-
isBold = _props.isBold,
|
|
347
|
-
pathName = _props.pathName,
|
|
348
|
-
iconContent = _props.iconContent,
|
|
349
|
-
iconClass = _props.iconClass,
|
|
350
|
-
title = _props.title,
|
|
351
|
-
dataId = _props.dataId;
|
|
352
|
-
|
|
353
|
-
var hoverColorClass = hoverColor ? colors['hover_' + hoverColor] + ' ' : '';
|
|
354
|
-
var bolder = isBold ? style.fbold : '';
|
|
355
|
-
var fcolor = color ? colors[color] : '';
|
|
356
|
-
var fontSize = fsize['size' + (defSizes[size] || size)];
|
|
357
|
-
if ((typeof name === 'undefined' ? 'undefined' : _typeof(name)) === 'object') {
|
|
358
|
-
var classname = style.basic + ' ' + pathName + ' ' + fontSize + ' ' + fcolor + ' ' + hoverColorClass + ' ' + (iconClass ? iconClass : '');
|
|
359
|
-
var childArray = [];
|
|
360
|
-
for (var i = 1; i < name[1] + 1; i++) {
|
|
361
|
-
var pathClass = iconContent['path' + i] + ' ' + (iconClass ? 'path' + i : '');
|
|
362
|
-
childArray.push(React.createElement('span', { className: pathClass, key: i }));
|
|
363
|
-
}
|
|
364
|
-
return React.createElement(
|
|
365
|
-
'i',
|
|
366
|
-
{
|
|
367
|
-
className: classname + ' ' + (onClick ? style.cursor : ''),
|
|
368
|
-
'data-title': title,
|
|
369
|
-
onClick: onClick,
|
|
370
|
-
'data-id': dataId
|
|
371
|
-
},
|
|
372
|
-
childArray
|
|
373
|
-
);
|
|
374
|
-
}
|
|
375
|
-
var fontClass = style.basic + ' ' + pathName + ' ' + bolder + ' ' + fontSize + ' ' + fcolor + ' ' + hoverColorClass + ' ' + (iconClass ? iconClass : '');
|
|
376
|
-
return React.createElement('i', {
|
|
377
|
-
className: fontClass + ' ' + (onClick ? style.cursor : ''),
|
|
378
|
-
'data-title': title,
|
|
379
|
-
onClick: onClick,
|
|
380
|
-
'data-id': dataId
|
|
381
|
-
});
|
|
382
|
-
}
|
|
383
|
-
}]);
|
|
384
|
-
|
|
385
|
-
return FontIcon;
|
|
386
|
-
}(React.Component);
|
|
387
|
-
|
|
388
|
-
export default FontIcon;
|
|
389
|
-
|
|
390
|
-
FontIcon.propTypes = {
|
|
391
|
-
color: PropTypes.string,
|
|
392
|
-
dataId: PropTypes.string,
|
|
393
|
-
hoverColor: PropTypes.string,
|
|
394
|
-
iconClass: PropTypes.string,
|
|
395
|
-
iconContent: PropTypes.object,
|
|
396
|
-
isBold: PropTypes.bool,
|
|
397
|
-
name: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
|
|
398
|
-
onClick: PropTypes.func,
|
|
399
|
-
pathName: PropTypes.string,
|
|
400
|
-
size: PropTypes.string,
|
|
401
|
-
title: PropTypes.string
|
|
402
|
-
};
|
|
403
|
-
FontIcon.defaultProps = {
|
|
404
|
-
size: '10',
|
|
405
|
-
dataId: 'fontIcon'
|
|
406
|
-
};
|
|
407
|
-
if (false) {
|
|
408
|
-
FontIcon.docs = {
|
|
409
|
-
componentGroup: 'FontIcon',
|
|
410
|
-
folderName: 'Style Guide'
|
|
411
|
-
};
|
|
412
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/* $Id$ */
|
|
2
|
-
.basic {
|
|
3
|
-
speak: none;
|
|
4
|
-
font-style: normal;
|
|
5
|
-
font-weight: normal;
|
|
6
|
-
font-variant: normal;
|
|
7
|
-
text-transform: none;
|
|
8
|
-
line-height: 1;
|
|
9
|
-
-webkit-font-smoothing: antialiased;
|
|
10
|
-
-moz-osx-font-smoothing: grayscale;
|
|
11
|
-
display: inline-block;
|
|
12
|
-
vertical-align: middle;
|
|
13
|
-
}
|
|
14
|
-
.fbold {
|
|
15
|
-
font-weight: bold;
|
|
16
|
-
}
|
|
17
|
-
/* size units */
|
|
18
|
-
.small {
|
|
19
|
-
font-size: var(--zd_size10);
|
|
20
|
-
}
|
|
21
|
-
.medium {
|
|
22
|
-
font-size: var(--zd_size13);
|
|
23
|
-
}
|
|
24
|
-
.large {
|
|
25
|
-
font-size: var(--zd_size14);
|
|
26
|
-
}
|
|
27
|
-
.xlarge {
|
|
28
|
-
font-size: var(--zd_size15);
|
|
29
|
-
}
|
|
30
|
-
.missed :global .path2::before {
|
|
31
|
-
color: #d63a3a !important;
|
|
32
|
-
}
|
|
33
|
-
.cursor {
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import _Object$keys from 'babel-runtime/core-js/object/keys';
|
|
2
|
-
import _Promise from 'babel-runtime/core-js/promise';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import asyncComponent from '../Icon/asyncComponent';
|
|
5
|
-
import { FontFactory } from './FontFactory';
|
|
6
|
-
|
|
7
|
-
function getAddformsFontIcon() {
|
|
8
|
-
return require('./AddformsFontIcon').default;
|
|
9
|
-
}
|
|
10
|
-
function getAutomateFontIcon() {
|
|
11
|
-
return require('./AutomateFontIcon').default;
|
|
12
|
-
}
|
|
13
|
-
function getChannelsFontIcon() {
|
|
14
|
-
return require('./ChannelsFontIcon').default;
|
|
15
|
-
}
|
|
16
|
-
function getCommonFontIcon() {
|
|
17
|
-
return require('./CommonFontIcon').default;
|
|
18
|
-
}
|
|
19
|
-
function getCommunityFontIcon() {
|
|
20
|
-
return require('./CommunityFontIcon').default;
|
|
21
|
-
}
|
|
22
|
-
function getCustomersFontIcon() {
|
|
23
|
-
return require('./CustomersFontIcon').default;
|
|
24
|
-
}
|
|
25
|
-
function getCustomizeFontIcon() {
|
|
26
|
-
return require('./CustomizeFontIcon').default;
|
|
27
|
-
}
|
|
28
|
-
function getGamescopeFontIcon() {
|
|
29
|
-
return require('./GamescopeFontIcon').default;
|
|
30
|
-
}
|
|
31
|
-
function getGettingstartedFontIcon() {
|
|
32
|
-
return require('./GettingstartedFontIcon').default;
|
|
33
|
-
}
|
|
34
|
-
function getKnowledgeBaseFontIcon() {
|
|
35
|
-
return require('./KnowledgeBaseFontIcon').default;
|
|
36
|
-
}
|
|
37
|
-
function getLogoFontIcon() {
|
|
38
|
-
return require('./LogoFontIcon').default;
|
|
39
|
-
}
|
|
40
|
-
function getOrganizationFontIcon() {
|
|
41
|
-
return require('./OrganizationFontIcon').default;
|
|
42
|
-
}
|
|
43
|
-
function getOthersFontIcon() {
|
|
44
|
-
return require('./OthersFontIcon').default;
|
|
45
|
-
}
|
|
46
|
-
function getReportsFontIcon() {
|
|
47
|
-
return require('./ReportsFontIcon').default;
|
|
48
|
-
}
|
|
49
|
-
function getSetupFontIcon() {
|
|
50
|
-
return require('./SetupFontIcon').default;
|
|
51
|
-
}
|
|
52
|
-
function getSocialFontIcon() {
|
|
53
|
-
return require('./SocialFontIcon').default;
|
|
54
|
-
}
|
|
55
|
-
function getTicketsFontIcon() {
|
|
56
|
-
return require('./TicketsFontIcon').default;
|
|
57
|
-
}
|
|
58
|
-
function getTopbandFontIcon() {
|
|
59
|
-
return require('./TopbandFontIcon').default;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function getIcon(props) {
|
|
63
|
-
var iconName = void 0;
|
|
64
|
-
var filesMap = {
|
|
65
|
-
AddformsFontIcon: getAddformsFontIcon,
|
|
66
|
-
AutomateFontIcon: getAutomateFontIcon,
|
|
67
|
-
ChannelsFontIcon: getChannelsFontIcon,
|
|
68
|
-
CommonFontIcon: getCommonFontIcon,
|
|
69
|
-
CommunityFontIcon: getCommunityFontIcon,
|
|
70
|
-
CustomersFontIcon: getCustomersFontIcon,
|
|
71
|
-
CustomizeFontIcon: getCustomizeFontIcon,
|
|
72
|
-
GamescopeFontIcon: getGamescopeFontIcon,
|
|
73
|
-
GettingstartedFontIcon: getGettingstartedFontIcon,
|
|
74
|
-
KnowledgeBaseFontIcon: getKnowledgeBaseFontIcon,
|
|
75
|
-
LogoFontIcon: getLogoFontIcon,
|
|
76
|
-
OrganizationFontIcon: getOrganizationFontIcon,
|
|
77
|
-
OthersFontIcon: getOthersFontIcon,
|
|
78
|
-
ReportsFontIcon: getReportsFontIcon,
|
|
79
|
-
SetupFontIcon: getSetupFontIcon,
|
|
80
|
-
SocialFontIcon: getSocialFontIcon,
|
|
81
|
-
TicketsFontIcon: getTicketsFontIcon,
|
|
82
|
-
TopbandFontIcon: getTopbandFontIcon
|
|
83
|
-
};
|
|
84
|
-
return new _Promise(function (res) {
|
|
85
|
-
require.ensure([], function () {
|
|
86
|
-
_Object$keys(FontFactory).map(function (name) {
|
|
87
|
-
if (typeof FontFactory[name][props.name] !== 'undefined') {
|
|
88
|
-
iconName = name;
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
if (iconName) {
|
|
92
|
-
var Icon = filesMap[iconName]();
|
|
93
|
-
var response = {
|
|
94
|
-
Icon: Icon
|
|
95
|
-
};
|
|
96
|
-
res(response);
|
|
97
|
-
}
|
|
98
|
-
}, 'IconFactory');
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
var FontIconAll = asyncComponent(function (props) {
|
|
103
|
-
return getIcon(props).then(function (res) {
|
|
104
|
-
return res.Icon;
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
export default FontIconAll;
|
|
109
|
-
|
|
110
|
-
if (false) {
|
|
111
|
-
FontIconAll.docs = {
|
|
112
|
-
componentGroup: 'FontIcon',
|
|
113
|
-
folderName: 'Style Guide'
|
|
114
|
-
};
|
|
115
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import _typeof from 'babel-runtime/helpers/typeof';
|
|
2
|
-
import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-prototype-of';
|
|
3
|
-
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
|
|
4
|
-
import _createClass from 'babel-runtime/helpers/createClass';
|
|
5
|
-
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
|
6
|
-
import _inherits from 'babel-runtime/helpers/inherits';
|
|
7
|
-
/* eslint css-modules/no-unused-class: [2, { markAsUsed: [
|
|
8
|
-
'icon-circular-minus',
|
|
9
|
-
'icon-game01',
|
|
10
|
-
'icon-game02',
|
|
11
|
-
'icon-game03',
|
|
12
|
-
'icon-game04',
|
|
13
|
-
'icon-game05',
|
|
14
|
-
'icon-game07',
|
|
15
|
-
'icon-game08',
|
|
16
|
-
'icon-zdshield1',
|
|
17
|
-
'icon-zdshield2',
|
|
18
|
-
'icon-zdshield3',
|
|
19
|
-
'icon-zdshield4',
|
|
20
|
-
'path1',
|
|
21
|
-
'path2',
|
|
22
|
-
'path3'
|
|
23
|
-
]}]
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
import React from 'react';
|
|
27
|
-
import PropTypes from 'prop-types';
|
|
28
|
-
import iconContent from '../../assets/css/zd-font-gamescope.module.css';
|
|
29
|
-
import FontIcon from './FontIcon';
|
|
30
|
-
import { FontFactory } from './FontFactory';
|
|
31
|
-
|
|
32
|
-
var GamescopeFontIcon = function (_React$Component) {
|
|
33
|
-
_inherits(GamescopeFontIcon, _React$Component);
|
|
34
|
-
|
|
35
|
-
function GamescopeFontIcon() {
|
|
36
|
-
_classCallCheck(this, GamescopeFontIcon);
|
|
37
|
-
|
|
38
|
-
return _possibleConstructorReturn(this, (GamescopeFontIcon.__proto__ || _Object$getPrototypeOf(GamescopeFontIcon)).apply(this, arguments));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
_createClass(GamescopeFontIcon, [{
|
|
42
|
-
key: 'render',
|
|
43
|
-
value: function render() {
|
|
44
|
-
var _props = this.props,
|
|
45
|
-
name = _props.name,
|
|
46
|
-
size = _props.size,
|
|
47
|
-
color = _props.color,
|
|
48
|
-
hoverColor = _props.hoverColor,
|
|
49
|
-
onClick = _props.onClick,
|
|
50
|
-
iconClass = _props.iconClass,
|
|
51
|
-
isBold = _props.isBold,
|
|
52
|
-
title = _props.title,
|
|
53
|
-
dataId = _props.dataId;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
var pathName = _typeof(FontFactory.GamescopeFontIcon[name]) === 'object' ? FontFactory.GamescopeFontIcon[name][0] : FontFactory.GamescopeFontIcon[name];
|
|
57
|
-
return React.createElement(FontIcon, {
|
|
58
|
-
color: color,
|
|
59
|
-
hoverColor: hoverColor,
|
|
60
|
-
iconClass: iconClass,
|
|
61
|
-
iconContent: iconContent,
|
|
62
|
-
isBold: isBold,
|
|
63
|
-
name: FontFactory.GamescopeFontIcon[name],
|
|
64
|
-
onClick: onClick,
|
|
65
|
-
pathName: iconContent[pathName],
|
|
66
|
-
size: size,
|
|
67
|
-
title: title,
|
|
68
|
-
dataId: dataId
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}]);
|
|
72
|
-
|
|
73
|
-
return GamescopeFontIcon;
|
|
74
|
-
}(React.Component);
|
|
75
|
-
|
|
76
|
-
export default GamescopeFontIcon;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
GamescopeFontIcon.defaultProps = {
|
|
80
|
-
isBold: false,
|
|
81
|
-
size: '10'
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
GamescopeFontIcon.propTypes = {
|
|
85
|
-
color: PropTypes.string,
|
|
86
|
-
dataId: PropTypes.string,
|
|
87
|
-
hoverColor: PropTypes.string,
|
|
88
|
-
iconClass: PropTypes.string,
|
|
89
|
-
isBold: PropTypes.bool,
|
|
90
|
-
name: PropTypes.string.isRequired,
|
|
91
|
-
onClick: PropTypes.func,
|
|
92
|
-
size: PropTypes.string,
|
|
93
|
-
title: PropTypes.string
|
|
94
|
-
};
|
|
95
|
-
GamescopeFontIcon.propTypesDescription = {
|
|
96
|
-
name: ' ',
|
|
97
|
-
isBold: ' ',
|
|
98
|
-
hoverColor: ' ',
|
|
99
|
-
size: ' ',
|
|
100
|
-
color: ' ',
|
|
101
|
-
iconClass: ' ',
|
|
102
|
-
onClick: ' ',
|
|
103
|
-
title: ' '
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
if (false) {
|
|
107
|
-
GamescopeFontIcon.docs = {
|
|
108
|
-
componentGroup: 'FontIcon',
|
|
109
|
-
folderName: 'Style Guide'
|
|
110
|
-
};
|
|
111
|
-
}
|