@syscore/ui-library 2.0.0-beta-publish-workflow-beta.4 → 2.0.0-beta-publish-workflow-beta.6

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.es.js CHANGED
@@ -17062,6 +17062,592 @@ const SectionHeading = React.forwardRef(
17062
17062
  ] })
17063
17063
  );
17064
17064
  SectionHeading.displayName = "SectionHeading";
17065
+ const sizeClass = {
17066
+ base: "body-base",
17067
+ small: "body-small"
17068
+ };
17069
+ const Copy = React.forwardRef(
17070
+ ({
17071
+ as: Component = "span",
17072
+ tone = "default",
17073
+ size = "base",
17074
+ weight = "regular",
17075
+ align,
17076
+ italic = false,
17077
+ className,
17078
+ ...props
17079
+ }, ref) => /* @__PURE__ */ jsx(
17080
+ Component,
17081
+ {
17082
+ ref,
17083
+ className: cn(
17084
+ sizeClass[size],
17085
+ "copy",
17086
+ `copy--${tone}`,
17087
+ `copy--${weight}`,
17088
+ align && `copy--align-${align}`,
17089
+ italic && "copy--italic",
17090
+ className
17091
+ ),
17092
+ ...props
17093
+ }
17094
+ )
17095
+ );
17096
+ Copy.displayName = "Copy";
17097
+ const InlineNotice = React.forwardRef(
17098
+ ({ tone = "error", children, className, ...props }, ref) => /* @__PURE__ */ jsx(
17099
+ "div",
17100
+ {
17101
+ ref,
17102
+ className: cn("inline-notice", `inline-notice--${tone}`, className),
17103
+ role: tone === "error" ? "alert" : "status",
17104
+ ...props,
17105
+ children: /* @__PURE__ */ jsx("span", { className: "inline-notice__text", children })
17106
+ }
17107
+ )
17108
+ );
17109
+ InlineNotice.displayName = "InlineNotice";
17110
+ const TONES = [
17111
+ "unpaid",
17112
+ "paid",
17113
+ "waived",
17114
+ "void",
17115
+ "neutral"
17116
+ ];
17117
+ function toneForStatus(status) {
17118
+ const value = String(status ?? "").toLowerCase();
17119
+ return TONES.includes(value) ? value : "neutral";
17120
+ }
17121
+ const StatusPill = React.forwardRef(
17122
+ ({ tone = "neutral", children, className, ...props }, ref) => /* @__PURE__ */ jsx(
17123
+ "span",
17124
+ {
17125
+ ref,
17126
+ className: cn("status-pill", `status-pill--${tone}`, className),
17127
+ ...props,
17128
+ children
17129
+ }
17130
+ )
17131
+ );
17132
+ StatusPill.displayName = "StatusPill";
17133
+ const TextLink = React.forwardRef(
17134
+ ({ as: Component = "button", emphasis = "default", className, ...props }, ref) => /* @__PURE__ */ jsx(
17135
+ Component,
17136
+ {
17137
+ ref,
17138
+ className: cn("inline-link", `inline-link--${emphasis}`, className),
17139
+ ...Component === "button" ? { type: props.type ?? "button" } : null,
17140
+ ...props
17141
+ }
17142
+ )
17143
+ );
17144
+ TextLink.displayName = "TextLink";
17145
+ const LegalNote = React.forwardRef(
17146
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("legal-note", className), ...props, children: /* @__PURE__ */ jsx("span", { className: "legal-note__text", children }) })
17147
+ );
17148
+ LegalNote.displayName = "LegalNote";
17149
+ const ChipIcon = () => /* @__PURE__ */ jsxs(
17150
+ "svg",
17151
+ {
17152
+ className: "credit-card-preview__chip",
17153
+ viewBox: "0 0 34 26",
17154
+ role: "presentation",
17155
+ "aria-hidden": "true",
17156
+ children: [
17157
+ /* @__PURE__ */ jsx("rect", { x: "0.5", y: "0.5", width: "33", height: "25", rx: "4.5" }),
17158
+ /* @__PURE__ */ jsx("path", { d: "M0.5 8.5h8m17 0h8m-33 9h8m17 0h8" }),
17159
+ /* @__PURE__ */ jsx("rect", { x: "8.5", y: "0.5", width: "17", height: "25" })
17160
+ ]
17161
+ }
17162
+ );
17163
+ const BrandMark = ({ brand }) => {
17164
+ if (brand === "visa") {
17165
+ return /* @__PURE__ */ jsx("span", { className: "credit-card-preview__brand credit-card-preview__brand--visa", children: "VISA" });
17166
+ }
17167
+ if (brand === "mastercard") {
17168
+ return /* @__PURE__ */ jsxs(
17169
+ "span",
17170
+ {
17171
+ className: "credit-card-preview__brand credit-card-preview__brand--mastercard",
17172
+ "aria-label": "Mastercard",
17173
+ children: [
17174
+ /* @__PURE__ */ jsx("span", { className: "credit-card-preview__mc-circle" }),
17175
+ /* @__PURE__ */ jsx("span", { className: "credit-card-preview__mc-circle" })
17176
+ ]
17177
+ }
17178
+ );
17179
+ }
17180
+ return null;
17181
+ };
17182
+ const CreditCardPreview = React.forwardRef(
17183
+ ({
17184
+ holderName,
17185
+ expiry,
17186
+ brand = "visa",
17187
+ label = "Credit Card",
17188
+ className,
17189
+ ...props
17190
+ }, ref) => /* @__PURE__ */ jsxs(
17191
+ "div",
17192
+ {
17193
+ ref,
17194
+ className: cn("credit-card-preview", className),
17195
+ role: "img",
17196
+ "aria-label": `${label} preview`,
17197
+ ...props,
17198
+ children: [
17199
+ /* @__PURE__ */ jsx("span", { className: "credit-card-preview__label", children: label }),
17200
+ /* @__PURE__ */ jsx(ChipIcon, {}),
17201
+ /* @__PURE__ */ jsx("span", { className: "credit-card-preview__number", "aria-hidden": "true", children: [0, 1, 2, 3].map((group) => /* @__PURE__ */ jsx("span", { className: "credit-card-preview__group", children: [0, 1, 2, 3].map((dot) => /* @__PURE__ */ jsx("span", { className: "credit-card-preview__dot" }, dot)) }, group)) }),
17202
+ /* @__PURE__ */ jsxs("span", { className: "credit-card-preview__footer", children: [
17203
+ /* @__PURE__ */ jsxs("span", { className: "credit-card-preview__identity", children: [
17204
+ /* @__PURE__ */ jsx("span", { className: "credit-card-preview__name", children: (holderName == null ? void 0 : holderName.trim()) ? holderName : "Card holder" }),
17205
+ /* @__PURE__ */ jsxs("span", { className: "credit-card-preview__expiry", children: [
17206
+ "Exp. ",
17207
+ (expiry == null ? void 0 : expiry.trim()) ? expiry : "•• / ••"
17208
+ ] })
17209
+ ] }),
17210
+ /* @__PURE__ */ jsx(BrandMark, { brand })
17211
+ ] })
17212
+ ]
17213
+ }
17214
+ )
17215
+ );
17216
+ CreditCardPreview.displayName = "CreditCardPreview";
17217
+ const FieldGroup = React.forwardRef(
17218
+ ({ as: Component = "div", className, ...props }, ref) => /* @__PURE__ */ jsx(Component, { ref, className: cn("field-group", className), ...props })
17219
+ );
17220
+ FieldGroup.displayName = "FieldGroup";
17221
+ const Field = React.forwardRef(
17222
+ ({ actions, staticValue, staticTone = "value", state = "default", className, ...props }, ref) => /* @__PURE__ */ jsxs(
17223
+ "div",
17224
+ {
17225
+ className: cn("field", state === "invalid" && "field--invalid", className),
17226
+ children: [
17227
+ staticValue !== void 0 ? /* @__PURE__ */ jsx("span", { className: cn("field-static", `field-static--${staticTone}`), children: staticValue }) : /* @__PURE__ */ jsx("input", { ref, className: "field-input", ...props }),
17228
+ actions ? /* @__PURE__ */ jsx("span", { className: "field-actions", children: actions }) : null
17229
+ ]
17230
+ }
17231
+ )
17232
+ );
17233
+ Field.displayName = "Field";
17234
+ const FieldAction = React.forwardRef(
17235
+ ({ static: isStatic, tone = "default", className, children, type = "button", ...props }, ref) => {
17236
+ const classes = cn("field-action", `field-action--${tone}`, className);
17237
+ return isStatic ? /* @__PURE__ */ jsx("span", { className: classes, "aria-hidden": "true", children }) : /* @__PURE__ */ jsx("button", { ref, type, className: classes, ...props, children });
17238
+ }
17239
+ );
17240
+ FieldAction.displayName = "FieldAction";
17241
+ const ModalOverlay = React.forwardRef(
17242
+ ({ zIndex = 50, onScrimClick, align = "center", children, className, style, ...props }, ref) => /* @__PURE__ */ jsx(
17243
+ "div",
17244
+ {
17245
+ ref,
17246
+ className: cn("modal-overlay", align === "top" && "modal-overlay--top", className),
17247
+ style: { zIndex, ...style },
17248
+ onClick: onScrimClick ? (event) => {
17249
+ if (event.target === event.currentTarget) onScrimClick();
17250
+ } : void 0,
17251
+ ...props,
17252
+ children
17253
+ }
17254
+ )
17255
+ );
17256
+ ModalOverlay.displayName = "ModalOverlay";
17257
+ const ModalContainer = React.forwardRef(
17258
+ ({ as: Component = "div", width = 420, className, style, ...props }, ref) => /* @__PURE__ */ jsx(
17259
+ Component,
17260
+ {
17261
+ ref,
17262
+ role: "dialog",
17263
+ "aria-modal": "true",
17264
+ className: cn("modal-container", className),
17265
+ style: { width, ...style },
17266
+ ...props
17267
+ }
17268
+ )
17269
+ );
17270
+ ModalContainer.displayName = "ModalContainer";
17271
+ const ModalCloseRow = React.forwardRef(
17272
+ ({ onClose, label = "Close", icon, className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("modal-close-row", className), ...props, children: /* @__PURE__ */ jsx(
17273
+ "button",
17274
+ {
17275
+ type: "button",
17276
+ className: "modal-close",
17277
+ onClick: onClose,
17278
+ "aria-label": label,
17279
+ children: icon
17280
+ }
17281
+ ) })
17282
+ );
17283
+ ModalCloseRow.displayName = "ModalCloseRow";
17284
+ const ModalPanel = React.forwardRef(
17285
+ ({
17286
+ as: Component = "div",
17287
+ tone = "default",
17288
+ align = "start",
17289
+ angle = 114.72731273771963,
17290
+ height,
17291
+ className,
17292
+ style,
17293
+ ...props
17294
+ }, ref) => /* @__PURE__ */ jsx(
17295
+ Component,
17296
+ {
17297
+ ref,
17298
+ className: cn(
17299
+ "modal-panel",
17300
+ `modal-panel--${tone}`,
17301
+ `modal-panel--align-${align}`,
17302
+ className
17303
+ ),
17304
+ style: {
17305
+ ...tone === "accent" ? { ["--panel-gradient-angle"]: `${angle}deg` } : null,
17306
+ ...height !== void 0 ? { height } : null,
17307
+ ...style
17308
+ },
17309
+ ...props
17310
+ }
17311
+ )
17312
+ );
17313
+ ModalPanel.displayName = "ModalPanel";
17314
+ const ModalTitle = React.forwardRef(
17315
+ ({ as: Component = "h2", children, className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: cn("modal-title", className), children: /* @__PURE__ */ jsx(Component, { ref, className: "modal-title__text heading-xxsmall", ...props, children }) })
17316
+ );
17317
+ ModalTitle.displayName = "ModalTitle";
17318
+ const ModalPromptRow = React.forwardRef(
17319
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("modal-prompt-row", className), ...props })
17320
+ );
17321
+ ModalPromptRow.displayName = "ModalPromptRow";
17322
+ const ProfileAvatar = React.forwardRef(
17323
+ ({
17324
+ src,
17325
+ initials,
17326
+ alt,
17327
+ size = 88,
17328
+ onEdit,
17329
+ editLabel = "Change profile image",
17330
+ editIcon,
17331
+ className,
17332
+ ...props
17333
+ }, ref) => /* @__PURE__ */ jsxs(
17334
+ "div",
17335
+ {
17336
+ ref,
17337
+ className: cn(
17338
+ "profile-avatar",
17339
+ // The disc is pulled up 28px to sit behind the edit badge. Without a
17340
+ // badge that offset would just eat the gap to whatever follows.
17341
+ onEdit && "profile-avatar--editable",
17342
+ className
17343
+ ),
17344
+ style: {
17345
+ ["--avatar-size"]: `${size}px`,
17346
+ // 2.8px ring on the 88px disc; the 32px instance is the same
17347
+ // component scaled, so the stroke scales with it.
17348
+ ["--avatar-ring"]: `${size * 2.8 / 88}px`,
17349
+ ["--avatar-initials"]: `${size * 38.5 / 88}px`,
17350
+ ...props.style
17351
+ },
17352
+ ...props,
17353
+ children: [
17354
+ /* @__PURE__ */ jsxs("span", { className: "profile-avatar__disc", children: [
17355
+ src ? /* @__PURE__ */ jsx("img", { className: "profile-avatar__photo", src, alt: alt ?? "" }) : /* @__PURE__ */ jsxs(Fragment, { children: [
17356
+ /* @__PURE__ */ jsx("span", { className: "profile-avatar__bg", "aria-hidden": "true" }),
17357
+ /* @__PURE__ */ jsx("span", { className: "profile-avatar__initials", "aria-hidden": "true", children: initials })
17358
+ ] }),
17359
+ /* @__PURE__ */ jsx("span", { className: "profile-avatar__ring", "aria-hidden": "true" })
17360
+ ] }),
17361
+ onEdit ? /* @__PURE__ */ jsx(
17362
+ "button",
17363
+ {
17364
+ type: "button",
17365
+ className: "profile-avatar__edit",
17366
+ onClick: onEdit,
17367
+ "aria-label": editLabel,
17368
+ children: editIcon
17369
+ }
17370
+ ) : null
17371
+ ]
17372
+ }
17373
+ )
17374
+ );
17375
+ ProfileAvatar.displayName = "ProfileAvatar";
17376
+ const ProfileRow = React.forwardRef(
17377
+ ({ name, tone = "value", children, className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { ref, className: cn("profile-row", className), ...props, children: [
17378
+ children,
17379
+ /* @__PURE__ */ jsx("span", { className: "profile-row__name", children: /* @__PURE__ */ jsx(
17380
+ "span",
17381
+ {
17382
+ className: cn(
17383
+ "profile-row__name-text heading-xxsmall",
17384
+ `profile-row__name-text--${tone}`
17385
+ ),
17386
+ children: name
17387
+ }
17388
+ ) })
17389
+ ] })
17390
+ );
17391
+ ProfileRow.displayName = "ProfileRow";
17392
+ const AvatarButton = React.forwardRef(
17393
+ ({ src, initials, label = "Your account", size = 32, className, type = "button", ...props }, ref) => /* @__PURE__ */ jsx(
17394
+ "button",
17395
+ {
17396
+ ref,
17397
+ type,
17398
+ className: cn("avatar-button", className),
17399
+ "aria-label": label,
17400
+ ...props,
17401
+ children: /* @__PURE__ */ jsx(ProfileAvatar, { src, initials, size, alt: "" })
17402
+ }
17403
+ )
17404
+ );
17405
+ AvatarButton.displayName = "AvatarButton";
17406
+ const DropZone = React.forwardRef(
17407
+ ({
17408
+ iconSrc,
17409
+ iconWidth = 30,
17410
+ iconHeight = 30,
17411
+ icon,
17412
+ onFiles,
17413
+ active = false,
17414
+ accept,
17415
+ multiple = false,
17416
+ inputRef,
17417
+ children,
17418
+ className,
17419
+ type = "button",
17420
+ onClick,
17421
+ ...props
17422
+ }, ref) => {
17423
+ const [dragging, setDragging] = React.useState(false);
17424
+ const internalInput = React.useRef(null);
17425
+ const mark = icon ?? (iconSrc ? /* @__PURE__ */ jsx("img", { src: iconSrc, alt: "", width: iconWidth, height: iconHeight }) : null);
17426
+ const setInput = (node) => {
17427
+ internalInput.current = node;
17428
+ if (typeof inputRef === "function") inputRef(node);
17429
+ else if (inputRef) {
17430
+ inputRef.current = node;
17431
+ }
17432
+ };
17433
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
17434
+ /* @__PURE__ */ jsxs(
17435
+ "button",
17436
+ {
17437
+ ref,
17438
+ type,
17439
+ className: cn(
17440
+ "drop-zone",
17441
+ (active || dragging) && "drop-zone--active",
17442
+ className
17443
+ ),
17444
+ onClick: (event) => {
17445
+ var _a;
17446
+ onClick == null ? void 0 : onClick(event);
17447
+ if (!event.defaultPrevented) (_a = internalInput.current) == null ? void 0 : _a.click();
17448
+ },
17449
+ onDragOver: (event) => {
17450
+ event.preventDefault();
17451
+ setDragging(true);
17452
+ },
17453
+ onDragLeave: () => setDragging(false),
17454
+ onDrop: (event) => {
17455
+ var _a, _b;
17456
+ event.preventDefault();
17457
+ setDragging(false);
17458
+ if ((_b = (_a = event.dataTransfer) == null ? void 0 : _a.files) == null ? void 0 : _b.length) onFiles == null ? void 0 : onFiles(event.dataTransfer.files);
17459
+ },
17460
+ ...props,
17461
+ children: [
17462
+ mark ? /* @__PURE__ */ jsx("span", { className: "drop-zone__icon", "aria-hidden": "true", children: mark }) : null,
17463
+ /* @__PURE__ */ jsx("span", { className: "drop-zone__label", children })
17464
+ ]
17465
+ }
17466
+ ),
17467
+ /* @__PURE__ */ jsx(
17468
+ "input",
17469
+ {
17470
+ ref: setInput,
17471
+ className: "drop-zone__input",
17472
+ type: "file",
17473
+ accept,
17474
+ multiple,
17475
+ tabIndex: -1,
17476
+ onChange: (event) => {
17477
+ var _a;
17478
+ if ((_a = event.target.files) == null ? void 0 : _a.length) onFiles == null ? void 0 : onFiles(event.target.files);
17479
+ event.target.value = "";
17480
+ }
17481
+ }
17482
+ )
17483
+ ] });
17484
+ }
17485
+ );
17486
+ DropZone.displayName = "DropZone";
17487
+ const PillButton = React.forwardRef(
17488
+ ({
17489
+ tone = "gradient",
17490
+ fill = false,
17491
+ angle = 142.25319251189774,
17492
+ children,
17493
+ className,
17494
+ type = "button",
17495
+ style,
17496
+ ...props
17497
+ }, ref) => /* @__PURE__ */ jsx(
17498
+ "button",
17499
+ {
17500
+ ref,
17501
+ type,
17502
+ className: cn(
17503
+ "pill-button",
17504
+ `pill-button--${tone}`,
17505
+ fill && "pill-button--fill",
17506
+ className
17507
+ ),
17508
+ style: tone === "gradient" ? { ["--pill-gradient-angle"]: `${angle}deg`, ...style } : style,
17509
+ ...props,
17510
+ children: /* @__PURE__ */ jsx("span", { className: "pill-button__label", children })
17511
+ }
17512
+ )
17513
+ );
17514
+ PillButton.displayName = "PillButton";
17515
+ const SocialButton = React.forwardRef(
17516
+ ({
17517
+ iconSrc,
17518
+ iconWidth = 24,
17519
+ iconHeight = 24,
17520
+ icon,
17521
+ children,
17522
+ className,
17523
+ type = "button",
17524
+ ...props
17525
+ }, ref) => {
17526
+ const mark = icon ?? (iconSrc ? /* @__PURE__ */ jsx("img", { src: iconSrc, alt: "", width: iconWidth, height: iconHeight }) : null);
17527
+ return /* @__PURE__ */ jsx(
17528
+ "button",
17529
+ {
17530
+ ref,
17531
+ type,
17532
+ className: cn("social-button", className),
17533
+ ...props,
17534
+ children: /* @__PURE__ */ jsxs("span", { className: "social-button__content", children: [
17535
+ mark ? /* @__PURE__ */ jsx("span", { className: "social-button__icon", "aria-hidden": "true", children: mark }) : null,
17536
+ /* @__PURE__ */ jsx("span", { className: "social-button__label", children })
17537
+ ] })
17538
+ }
17539
+ );
17540
+ }
17541
+ );
17542
+ SocialButton.displayName = "SocialButton";
17543
+ const LabeledDivider = React.forwardRef(
17544
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsxs(
17545
+ "div",
17546
+ {
17547
+ ref,
17548
+ className: cn("labeled-divider", className),
17549
+ role: "separator",
17550
+ ...props,
17551
+ children: [
17552
+ /* @__PURE__ */ jsx("span", { className: "labeled-divider__rule", "aria-hidden": "true" }),
17553
+ /* @__PURE__ */ jsx("span", { className: "labeled-divider__label overline-medium", children }),
17554
+ /* @__PURE__ */ jsx("span", { className: "labeled-divider__rule", "aria-hidden": "true" })
17555
+ ]
17556
+ }
17557
+ )
17558
+ );
17559
+ LabeledDivider.displayName = "LabeledDivider";
17560
+ const MetaRow = React.forwardRef(
17561
+ ({ children, className, ...props }, ref) => {
17562
+ const items = React.Children.toArray(children).filter(Boolean);
17563
+ return /* @__PURE__ */ jsx("div", { ref, className: cn("meta-row", className), ...props, children: items.map((child, index) => (
17564
+ // eslint-disable-next-line react/no-array-index-key
17565
+ /* @__PURE__ */ jsxs(React.Fragment, { children: [
17566
+ index > 0 ? /* @__PURE__ */ jsx("span", { className: "meta-row__dot", "aria-hidden": "true" }) : null,
17567
+ child
17568
+ ] }, index)
17569
+ )) });
17570
+ }
17571
+ );
17572
+ MetaRow.displayName = "MetaRow";
17573
+ const BUTTON_VARIANT_CLASS = {
17574
+ clear: "button--clear",
17575
+ default: "button--default",
17576
+ "primary-gradient": "button--primary-gradient",
17577
+ "primary-dark": "button--primary-dark",
17578
+ "secondary-light": "button--secondary-light",
17579
+ "tertiary-light": "button--tertiary-light"
17580
+ };
17581
+ const BUTTON_SIZE_CLASS = {
17582
+ large: "button--large",
17583
+ utility: "button--utility"
17584
+ };
17585
+ const FileUploadTrigger = React.forwardRef(
17586
+ ({
17587
+ onFiles,
17588
+ accept,
17589
+ multiple = false,
17590
+ variant = "secondary-light",
17591
+ size = "large",
17592
+ children,
17593
+ className,
17594
+ type = "button",
17595
+ onClick,
17596
+ disabled,
17597
+ ...props
17598
+ }, ref) => {
17599
+ const inputRef = React.useRef(null);
17600
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
17601
+ /* @__PURE__ */ jsx(
17602
+ "button",
17603
+ {
17604
+ ref,
17605
+ type,
17606
+ disabled,
17607
+ className: cn("button", BUTTON_VARIANT_CLASS[variant], BUTTON_SIZE_CLASS[size], className),
17608
+ onClick: (event) => {
17609
+ var _a;
17610
+ onClick == null ? void 0 : onClick(event);
17611
+ if (!event.defaultPrevented) (_a = inputRef.current) == null ? void 0 : _a.click();
17612
+ },
17613
+ ...props,
17614
+ children: /* @__PURE__ */ jsx("span", { className: "button-text body-base", children })
17615
+ }
17616
+ ),
17617
+ /* @__PURE__ */ jsx(
17618
+ "input",
17619
+ {
17620
+ ref: inputRef,
17621
+ type: "file",
17622
+ hidden: true,
17623
+ accept,
17624
+ multiple,
17625
+ tabIndex: -1,
17626
+ onChange: (event) => {
17627
+ var _a;
17628
+ if ((_a = event.target.files) == null ? void 0 : _a.length) onFiles == null ? void 0 : onFiles(event.target.files);
17629
+ event.target.value = "";
17630
+ }
17631
+ }
17632
+ )
17633
+ ] });
17634
+ }
17635
+ );
17636
+ FileUploadTrigger.displayName = "FileUploadTrigger";
17637
+ function ResourceThumbnail({
17638
+ src,
17639
+ alt = ""
17640
+ }) {
17641
+ return /* @__PURE__ */ jsx(
17642
+ "img",
17643
+ {
17644
+ className: "resource-thumbnail",
17645
+ src,
17646
+ alt,
17647
+ loading: "lazy"
17648
+ }
17649
+ );
17650
+ }
17065
17651
  export {
17066
17652
  Accordion,
17067
17653
  AccordionContainer,
@@ -17204,6 +17790,8 @@ export {
17204
17790
  ContextMenuSubContent,
17205
17791
  ContextMenuSubTrigger,
17206
17792
  ContextMenuTrigger,
17793
+ Copy,
17794
+ CreditCardPreview,
17207
17795
  DatePicker,
17208
17796
  DateRangePicker,
17209
17797
  Dialog,
@@ -17224,6 +17812,7 @@ export {
17224
17812
  DrawerHeader,
17225
17813
  DrawerTitle,
17226
17814
  DrawerTrigger,
17815
+ DropZone,
17227
17816
  Dropdown,
17228
17817
  DropdownMenu,
17229
17818
  DropdownMenuCheckboxItem,
@@ -17242,7 +17831,11 @@ export {
17242
17831
  DropdownMenuTrigger,
17243
17832
  EmptyState,
17244
17833
  EmptyStateAction,
17834
+ Field,
17835
+ FieldAction,
17836
+ FieldGroup,
17245
17837
  FileUpload,
17838
+ FileUploadTrigger,
17246
17839
  Footer,
17247
17840
  FooterBand,
17248
17841
  FooterCopyright,
@@ -17280,17 +17873,20 @@ export {
17280
17873
  IconConceptSound,
17281
17874
  IconConceptThermalComfort,
17282
17875
  IconConceptWater,
17876
+ InlineNotice,
17283
17877
  Input,
17284
17878
  InputOTP,
17285
17879
  InputOTPGroup,
17286
17880
  InputOTPSeparator,
17287
17881
  InputOTPSlot,
17288
17882
  Label,
17883
+ LabeledDivider,
17289
17884
  Layout,
17290
17885
  LayoutContent,
17291
17886
  LayoutFooter,
17292
17887
  LayoutHeader,
17293
17888
  LayoutPanel,
17889
+ LegalNote,
17294
17890
  List,
17295
17891
  ListItem,
17296
17892
  Menubar,
@@ -17307,10 +17903,17 @@ export {
17307
17903
  MenubarSubContent,
17308
17904
  MenubarSubTrigger,
17309
17905
  MenubarTrigger,
17906
+ MetaRow,
17310
17907
  MobileNav,
17311
17908
  MobileNavBar,
17312
17909
  MobileNavPanel,
17313
17910
  MobileNavTrigger,
17911
+ ModalCloseRow,
17912
+ ModalContainer,
17913
+ ModalOverlay,
17914
+ ModalPanel,
17915
+ ModalPromptRow,
17916
+ ModalTitle,
17314
17917
  NavAccount,
17315
17918
  NavBullet,
17316
17919
  NavLogo,
@@ -17349,16 +17952,20 @@ export {
17349
17952
  PaginationV01Page,
17350
17953
  PaginationV01Previous,
17351
17954
  PasswordFieldV01,
17955
+ PillButton,
17352
17956
  Popover,
17353
17957
  PopoverContent,
17354
17958
  PopoverTrigger,
17355
17959
  Positioned,
17960
+ ProfileAvatar,
17961
+ ProfileRow,
17356
17962
  Progress,
17357
17963
  RadioGroup,
17358
17964
  RadioGroupItem,
17359
17965
  ResizableHandle,
17360
17966
  ResizablePanel,
17361
17967
  ResizablePanelGroup,
17968
+ ResourceThumbnail,
17362
17969
  SPACER_SPACES,
17363
17970
  SPACE_NAMES,
17364
17971
  SPACE_SCALE,
@@ -17432,11 +18039,13 @@ export {
17432
18039
  SidebarTrigger,
17433
18040
  Skeleton,
17434
18041
  Slider,
18042
+ SocialButton,
17435
18043
  Spacer,
17436
18044
  Stack,
17437
18045
  StackItem,
17438
18046
  StandardLogo,
17439
18047
  StandardNavigation,
18048
+ StatusPill,
17440
18049
  Stepper,
17441
18050
  Switch,
17442
18051
  SwitchV01,
@@ -17466,6 +18075,7 @@ export {
17466
18075
  Text,
17467
18076
  TextAreaV01,
17468
18077
  TextFieldV01,
18078
+ TextLink,
17469
18079
  Textarea,
17470
18080
  Timeline,
17471
18081
  TimelineItem,
@@ -17531,6 +18141,7 @@ export {
17531
18141
  tagStatusV02Variants,
17532
18142
  tagV02Variants,
17533
18143
  toastV01Variants,
18144
+ toneForStatus,
17534
18145
  tooltipContentVariants,
17535
18146
  useAccordion,
17536
18147
  useAccordionItem,