myoperator-ui 0.0.202 → 0.0.203

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.
Files changed (2) hide show
  1. package/dist/index.js +34 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9114,6 +9114,8 @@ export interface PaymentSummaryProps {
9114
9114
  subtotal?: { label: string; value: string };
9115
9115
  /** Light-blue bordered breakdown card shown below the subtotal */
9116
9116
  breakdownCard?: PaymentSummaryBreakdownCard;
9117
+ /** Credit limit row shown at the bottom, separated by a top border */
9118
+ creditLimit?: { value: string; tooltip?: string };
9117
9119
  }
9118
9120
 
9119
9121
  const valueColorMap: Record<string, string> = {
@@ -9243,7 +9245,7 @@ const BreakdownCardRow = ({ item }: { item: BreakdownCardItem }) => (
9243
9245
  * \`\`\`
9244
9246
  */
9245
9247
  export const PaymentSummary = React.forwardRef<HTMLDivElement, PaymentSummaryProps>(
9246
- ({ items = [], summaryItems, className, title, headerInfo, subtotal, breakdownCard }, ref) => {
9248
+ ({ items = [], summaryItems, className, title, headerInfo, subtotal, breakdownCard, creditLimit }, ref) => {
9247
9249
  const hasItemsBorder =
9248
9250
  items.length > 0 &&
9249
9251
  (!!subtotal || !!breakdownCard || (summaryItems && summaryItems.length > 0));
@@ -9344,6 +9346,37 @@ export const PaymentSummary = React.forwardRef<HTMLDivElement, PaymentSummaryPro
9344
9346
  ))}
9345
9347
  </div>
9346
9348
  )}
9349
+
9350
+ {/* Credit limit row */}
9351
+ {creditLimit && (
9352
+ <div className="flex items-center justify-between border-t border-semantic-border-layout pt-3">
9353
+ <div className="flex items-center gap-1.5">
9354
+ <span className="text-sm text-semantic-text-primary tracking-[0.035px]">
9355
+ Credit limit
9356
+ </span>
9357
+ {creditLimit.tooltip && (
9358
+ <Tooltip>
9359
+ <TooltipTrigger asChild>
9360
+ <button
9361
+ type="button"
9362
+ className="inline-flex items-center justify-center rounded-full w-5 h-5 text-semantic-text-muted hover:text-semantic-text-primary hover:bg-semantic-bg-ui transition-colors"
9363
+ aria-label="Info about Credit limit"
9364
+ >
9365
+ <Info className="h-3.5 w-3.5" />
9366
+ </button>
9367
+ </TooltipTrigger>
9368
+ <TooltipContent>
9369
+ <TooltipArrow />
9370
+ {creditLimit.tooltip}
9371
+ </TooltipContent>
9372
+ </Tooltip>
9373
+ )}
9374
+ </div>
9375
+ <span className="text-sm text-semantic-text-primary tracking-[0.035px]">
9376
+ {creditLimit.value}
9377
+ </span>
9378
+ </div>
9379
+ )}
9347
9380
  </div>
9348
9381
  </div>
9349
9382
  </TooltipProvider>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-ui",
3
- "version": "0.0.202",
3
+ "version": "0.0.203",
4
4
  "description": "CLI for adding myOperator UI components to your project",
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",