@designbasekorea/figma-ui 0.1.91 → 0.1.92
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.d.ts +2 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -126,8 +126,9 @@ interface FigmaFooterProps {
|
|
|
126
126
|
paymentStatus?: 'PAID' | 'FREE' | 'TRIAL';
|
|
127
127
|
usageCount?: number;
|
|
128
128
|
isLoading?: boolean;
|
|
129
|
-
|
|
129
|
+
showUsageInfo?: boolean;
|
|
130
130
|
maxDailyUsage?: number;
|
|
131
|
+
showPaymentBadge?: boolean;
|
|
131
132
|
showDonation?: boolean;
|
|
132
133
|
donationUrl?: string;
|
|
133
134
|
donationText?: I18nText;
|
package/dist/index.esm.js
CHANGED
|
@@ -485,7 +485,7 @@ const defaultTranslations = {
|
|
|
485
485
|
donationPrompt: '이 플러그인이 유용했나요?',
|
|
486
486
|
};
|
|
487
487
|
const defaultT = (key) => defaultTranslations[key] || key;
|
|
488
|
-
const FigmaFooter = ({ onLicensePageClick, paymentStatus = 'FREE', usageCount = 0, isLoading = false, showPaymentStatus = true, maxDailyUsage = 20, showDonation = true, donationUrl = 'https://buymeacoffee.com/designbase', donationText = 'Buy me a coffee', showDonationText = true, donationPromptText, showLanguageSelector = false, currentLanguage = 'ko', languages, onLanguageChange, logoSrc, logoAlt = 'DesignBase', logoType = 'designbase', logoSize = 'xs', logoLinks, className, t = defaultT, children, }) => {
|
|
488
|
+
const FigmaFooter = ({ onLicensePageClick, paymentStatus = 'FREE', usageCount = 0, isLoading = false, showPaymentStatus = true, showUsageInfo = true, maxDailyUsage = 20, showPaymentBadge = true, showDonation = true, donationUrl = 'https://buymeacoffee.com/designbase', donationText = 'Buy me a coffee', showDonationText = true, donationPromptText, showLanguageSelector = false, currentLanguage = 'ko', languages, onLanguageChange, logoSrc, logoAlt = 'DesignBase', logoType = 'designbase', logoSize = 'xs', logoLinks, className, t = defaultT, children, }) => {
|
|
489
489
|
const isActive = paymentStatus === 'PAID';
|
|
490
490
|
const hasChildren = React.Children.count(children) > 0;
|
|
491
491
|
const classes = clsx('designbase-figma-footer', {
|
|
@@ -497,7 +497,7 @@ const FigmaFooter = ({ onLicensePageClick, paymentStatus = 'FREE', usageCount =
|
|
|
497
497
|
React.createElement(LogoDropdown, { logoSrc: logoSrc, logoAlt: logoAlt, logoType: logoType, logoSize: logoSize, links: logoLinks, t: t }),
|
|
498
498
|
showLanguageSelector && (React.createElement(LanguageSelector, { currentLanguage: currentLanguage, languages: languages, onLanguageChange: onLanguageChange, size: "s" }))),
|
|
499
499
|
showPaymentStatus && (React.createElement("div", { className: "designbase-figma-footer__payment-states" },
|
|
500
|
-
!isLoading && (React.createElement("div", { className: "designbase-figma-footer__usage-info" }, isActive ? (React.createElement("span", { className: "designbase-figma-footer__unlimited-usage designbase-figma-footer__unlimited-usage--tooltip", title: t('unlimitedUsageTooltip') }, t('unlimitedUsage'))) : (React.createElement(React.Fragment, null,
|
|
500
|
+
showUsageInfo && !isLoading && (React.createElement("div", { className: "designbase-figma-footer__usage-info" }, isActive ? (React.createElement("span", { className: "designbase-figma-footer__unlimited-usage designbase-figma-footer__unlimited-usage--tooltip", title: t('unlimitedUsageTooltip') }, t('unlimitedUsage'))) : (React.createElement(React.Fragment, null,
|
|
501
501
|
React.createElement("span", { className: "designbase-figma-footer__usage-info designbase-figma-footer__usage-info--tooltip", title: t('resetsDaily') },
|
|
502
502
|
React.createElement("span", { className: "designbase-figma-footer__usage-count" }, usageCount),
|
|
503
503
|
React.createElement("span", { className: "designbase-figma-footer__max-daily-usage" },
|
|
@@ -505,7 +505,7 @@ const FigmaFooter = ({ onLicensePageClick, paymentStatus = 'FREE', usageCount =
|
|
|
505
505
|
maxDailyUsage,
|
|
506
506
|
" ",
|
|
507
507
|
t('perDay'))))))),
|
|
508
|
-
React.createElement(PaymentBadge, { isActive: isActive, onClick: onLicensePageClick, isLoading: isLoading, t: t }))),
|
|
508
|
+
showPaymentBadge && (React.createElement(PaymentBadge, { isActive: isActive, onClick: onLicensePageClick, isLoading: isLoading, t: t })))),
|
|
509
509
|
showDonation && (React.createElement("div", { className: "designbase-figma-footer__donation" },
|
|
510
510
|
React.createElement(DonationBadge, { donationUrl: donationUrl, text: donationText, iconType: "heart", size: "s", showPrompt: showDonationText && !isActive, promptText: donationPromptText, t: t })))),
|
|
511
511
|
children));
|