@designbasekorea/figma-ui 0.6.10 → 0.7.0

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 CHANGED
@@ -162,10 +162,20 @@ interface FigmaFooterProps {
162
162
  onLicensePageClick?: () => void;
163
163
  paymentStatus?: 'PAID' | 'FREE' | 'TRIAL' | 'BETA';
164
164
  usageCount?: number;
165
+ remainingUsage?: number;
166
+ listenForUsageMessages?: boolean;
165
167
  isLoading?: boolean;
166
168
  showPaymentStatus?: boolean;
167
169
  showUsageInfo?: boolean;
168
170
  maxDailyUsage?: number;
171
+ showLowUsageWarning?: boolean;
172
+ lowUsageThresholdPercent?: number;
173
+ lowUsageWarningText?: I18nText;
174
+ onLowUsageWarning?: (details: {
175
+ remaining: number;
176
+ percent: number;
177
+ limit: number;
178
+ }) => void;
169
179
  showPaymentBadge?: boolean;
170
180
  showDonation?: boolean;
171
181
  donationUrl?: string;
@@ -221,7 +231,7 @@ interface FigmaToastProps {
221
231
  }
222
232
  declare const FigmaToast: React.FC<FigmaToastProps>;
223
233
  declare const useFigmaToast: () => {
224
- showToast: (message: string, _type?: ToastStatus) => void;
234
+ showToast: (message: string, type?: ToastStatus) => void;
225
235
  toastComponent: React.JSX.Element | null;
226
236
  };
227
237
 
@@ -527,6 +537,7 @@ type UsagePaymentStatus = 'PAID' | 'FREE' | 'TRIAL' | 'BETA';
527
537
  interface UsageStatusPopoverProps {
528
538
  paymentStatus: UsagePaymentStatus;
529
539
  usageCount?: number;
540
+ remainingUsage?: number;
530
541
  maxDailyUsage?: number;
531
542
  showUsage?: boolean;
532
543
  showPlan?: boolean;