@fanvue/ui 3.14.1 → 3.16.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/cjs/components/AudioRecordButton/AudioRecordButton.cjs +54 -0
- package/dist/cjs/components/AudioRecordButton/AudioRecordButton.cjs.map +1 -0
- package/dist/cjs/components/AudioUpload/AudioUpload.cjs +5 -5
- package/dist/cjs/components/AudioUpload/AudioUpload.cjs.map +1 -1
- package/dist/cjs/components/ChatInput/ChatInput.cjs +6 -11
- package/dist/cjs/components/ChatInput/ChatInput.cjs.map +1 -1
- package/dist/cjs/components/ChatMessage/ChatMessage.cjs +228 -0
- package/dist/cjs/components/ChatMessage/ChatMessage.cjs.map +1 -0
- package/dist/cjs/components/Dialog/Dialog.cjs +1 -1
- package/dist/cjs/components/Dialog/Dialog.cjs.map +1 -1
- package/dist/cjs/components/DropdownMenu/DropdownMenu.cjs +160 -71
- package/dist/cjs/components/DropdownMenu/DropdownMenu.cjs.map +1 -1
- package/dist/cjs/components/IconButton/IconButton.cjs +110 -20
- package/dist/cjs/components/IconButton/IconButton.cjs.map +1 -1
- package/dist/cjs/components/Icons/DenseGridViewIcon.cjs +52 -0
- package/dist/cjs/components/Icons/DenseGridViewIcon.cjs.map +1 -0
- package/dist/cjs/components/MediaStatusIndicator/MediaStatusIndicator.cjs +66 -0
- package/dist/cjs/components/MediaStatusIndicator/MediaStatusIndicator.cjs.map +1 -0
- package/dist/cjs/components/Select/Select.cjs +61 -17
- package/dist/cjs/components/Select/Select.cjs.map +1 -1
- package/dist/cjs/components/SubscribeButton/SubscribeButton.cjs +53 -0
- package/dist/cjs/components/SubscribeButton/SubscribeButton.cjs.map +1 -0
- package/dist/cjs/index.cjs +10 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/components/AudioRecordButton/AudioRecordButton.mjs +37 -0
- package/dist/components/AudioRecordButton/AudioRecordButton.mjs.map +1 -0
- package/dist/components/AudioUpload/AudioUpload.mjs +5 -5
- package/dist/components/AudioUpload/AudioUpload.mjs.map +1 -1
- package/dist/components/ChatInput/ChatInput.mjs +6 -11
- package/dist/components/ChatInput/ChatInput.mjs.map +1 -1
- package/dist/components/ChatMessage/ChatMessage.mjs +211 -0
- package/dist/components/ChatMessage/ChatMessage.mjs.map +1 -0
- package/dist/components/Dialog/Dialog.mjs +1 -1
- package/dist/components/Dialog/Dialog.mjs.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.mjs +161 -72
- package/dist/components/DropdownMenu/DropdownMenu.mjs.map +1 -1
- package/dist/components/IconButton/IconButton.mjs +110 -20
- package/dist/components/IconButton/IconButton.mjs.map +1 -1
- package/dist/components/Icons/DenseGridViewIcon.mjs +35 -0
- package/dist/components/Icons/DenseGridViewIcon.mjs.map +1 -0
- package/dist/components/MediaStatusIndicator/MediaStatusIndicator.mjs +49 -0
- package/dist/components/MediaStatusIndicator/MediaStatusIndicator.mjs.map +1 -0
- package/dist/components/Select/Select.mjs +61 -17
- package/dist/components/Select/Select.mjs.map +1 -1
- package/dist/components/SubscribeButton/SubscribeButton.mjs +36 -0
- package/dist/components/SubscribeButton/SubscribeButton.mjs.map +1 -0
- package/dist/index.d.ts +272 -11
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -1
- package/dist/styles/theme.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -380,6 +380,37 @@ export declare interface AudioPlayerProps extends Omit<React_2.HTMLAttributes<HT
|
|
|
380
380
|
/** Height of the audio player row, in pixels. Matches both the Vault card overlay and the "Generated Audio" modal row in Figma — both use an identical 32px play button and 40px row. */
|
|
381
381
|
export declare type AudioPlayerSize = "40";
|
|
382
382
|
|
|
383
|
+
/**
|
|
384
|
+
* A circular icon button that toggles audio recording. It owns the record
|
|
385
|
+
* lifecycle so consumers flip a single `status` prop instead of swapping an
|
|
386
|
+
* {@link IconButton}'s icon and colour: `idle` shows the microphone to start,
|
|
387
|
+
* `recording` turns destructive with a stop glyph to end. Used by
|
|
388
|
+
* {@link AudioUpload} for its in-progress stop control.
|
|
389
|
+
*
|
|
390
|
+
* @example
|
|
391
|
+
* ```tsx
|
|
392
|
+
* <AudioRecordButton status={recording ? "recording" : "idle"} onClick={toggle} />
|
|
393
|
+
* ```
|
|
394
|
+
*/
|
|
395
|
+
export declare const AudioRecordButton: React_2.ForwardRefExoticComponent<AudioRecordButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
396
|
+
|
|
397
|
+
export declare interface AudioRecordButtonProps extends Omit<IconButtonProps, "icon" | "variant" | "aria-label"> {
|
|
398
|
+
/** Recording state; drives the icon and colour. @default "idle" */
|
|
399
|
+
status?: AudioRecordButtonStatus;
|
|
400
|
+
/**
|
|
401
|
+
* Accessible name. Falls back to a status-aware default ("Record" /
|
|
402
|
+
* "Stop recording") when omitted so screen readers announce the action.
|
|
403
|
+
*/
|
|
404
|
+
"aria-label"?: string;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Recording state of the button. Drives the icon and colour: `idle` shows the
|
|
409
|
+
* microphone to start a recording, `recording` shows the stop glyph with the
|
|
410
|
+
* destructive treatment to end it.
|
|
411
|
+
*/
|
|
412
|
+
export declare type AudioRecordButtonStatus = "idle" | "recording";
|
|
413
|
+
|
|
383
414
|
/**
|
|
384
415
|
* Audio file upload with drag-and-drop and optional in-browser recording.
|
|
385
416
|
* Supports file validation, multiple files, and real-time waveform visualization during recording.
|
|
@@ -1255,6 +1286,82 @@ export declare interface ChatInputSelectOption {
|
|
|
1255
1286
|
icon?: React_2.ReactNode;
|
|
1256
1287
|
}
|
|
1257
1288
|
|
|
1289
|
+
/**
|
|
1290
|
+
* A single chat message rendered as a bubble. Sender messages sit on the right
|
|
1291
|
+
* with a green bubble and a delivery tick; receiver messages sit on the left
|
|
1292
|
+
* with a grey bubble and an avatar. Supports plain text, a typing indicator, a
|
|
1293
|
+
* voice message with waveform, and a deleted-message placeholder.
|
|
1294
|
+
*
|
|
1295
|
+
* Text bubbles place the timestamp inline after short messages and drop it to
|
|
1296
|
+
* the bottom-right corner once the text wraps, so no variant switch is needed
|
|
1297
|
+
* for short versus long content.
|
|
1298
|
+
*
|
|
1299
|
+
* @example
|
|
1300
|
+
* ```tsx
|
|
1301
|
+
* <ChatMessage user="sender" message="On my way!" time="16:00" status="read" />
|
|
1302
|
+
* <ChatMessage user="receiver" message="See you soon" time="16:01" avatarSrc="/jane.jpg" online />
|
|
1303
|
+
* <ChatMessage user="receiver" variant="typing" avatarSrc="/jane.jpg" />
|
|
1304
|
+
* ```
|
|
1305
|
+
*/
|
|
1306
|
+
export declare const ChatMessage: React_2.ForwardRefExoticComponent<ChatMessageProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1307
|
+
|
|
1308
|
+
export declare interface ChatMessageProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
1309
|
+
/**
|
|
1310
|
+
* Who sent the message. `"sender"` is the current user (right-aligned, green
|
|
1311
|
+
* bubble, delivery tick). `"receiver"` is the other party (left-aligned, grey
|
|
1312
|
+
* bubble, with avatar). @default "receiver"
|
|
1313
|
+
*/
|
|
1314
|
+
user?: ChatMessageUser;
|
|
1315
|
+
/** The kind of content the message carries. @default "text" */
|
|
1316
|
+
variant?: ChatMessageVariant;
|
|
1317
|
+
/** Message body for the `"text"` variant. Keep it to inline content. */
|
|
1318
|
+
message?: React_2.ReactNode;
|
|
1319
|
+
/** Timestamp shown with the message, e.g. `"16:00"`. */
|
|
1320
|
+
time?: string;
|
|
1321
|
+
/**
|
|
1322
|
+
* Delivery status shown on sender messages (a double tick). Ignored for
|
|
1323
|
+
* receiver messages. `"read"` renders the tick in the read colour. @default "delivered"
|
|
1324
|
+
*/
|
|
1325
|
+
status?: ChatMessageStatus;
|
|
1326
|
+
/** Duration label for the `"audio"` variant, e.g. `"0:05"`. @default "0:00" */
|
|
1327
|
+
audioDuration?: string;
|
|
1328
|
+
/**
|
|
1329
|
+
* Relative bar heights (values `0`–`1`) for the `"audio"` waveform. Defaults
|
|
1330
|
+
* to a flat row of dots matching the unplayed design state.
|
|
1331
|
+
*/
|
|
1332
|
+
waveform?: number[];
|
|
1333
|
+
/** Whether the audio is playing (controlled). Pairs with {@link onPlayingChange}. */
|
|
1334
|
+
playing?: boolean;
|
|
1335
|
+
/** Initial playing state when uncontrolled. @default false */
|
|
1336
|
+
defaultPlaying?: boolean;
|
|
1337
|
+
/** Fired when the audio play/pause button is pressed, with the next playing state. */
|
|
1338
|
+
onPlayingChange?: (playing: boolean) => void;
|
|
1339
|
+
/** Render the receiver avatar. Reserves the avatar space when `false` so grouped bubbles stay aligned. @default true */
|
|
1340
|
+
showAvatar?: boolean;
|
|
1341
|
+
/** Avatar image URL for receiver messages. */
|
|
1342
|
+
avatarSrc?: string;
|
|
1343
|
+
/** Avatar alt text. @default "Avatar" */
|
|
1344
|
+
avatarAlt?: string;
|
|
1345
|
+
/** Avatar fallback (initials or icon) shown before the image loads. */
|
|
1346
|
+
avatarFallback?: React_2.ReactNode;
|
|
1347
|
+
/** Show the online indicator on the receiver avatar. @default false */
|
|
1348
|
+
online?: boolean;
|
|
1349
|
+
/** Accessible label for the typing indicator. @default "Typing" */
|
|
1350
|
+
typingLabel?: string;
|
|
1351
|
+
/** Text shown for the `"deleted"` variant. @default "Message deleted" */
|
|
1352
|
+
deletedLabel?: string;
|
|
1353
|
+
/** Accessible label for the audio play button. @default "Play" */
|
|
1354
|
+
playLabel?: string;
|
|
1355
|
+
/** Accessible label for the audio pause button. @default "Pause" */
|
|
1356
|
+
pauseLabel?: string;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
export declare type ChatMessageStatus = "delivered" | "read";
|
|
1360
|
+
|
|
1361
|
+
export declare type ChatMessageUser = "sender" | "receiver";
|
|
1362
|
+
|
|
1363
|
+
export declare type ChatMessageVariant = "text" | "typing" | "audio" | "deleted";
|
|
1364
|
+
|
|
1258
1365
|
/**
|
|
1259
1366
|
* A checkbox input with optional label and helper text. Supports checked,
|
|
1260
1367
|
* unchecked, and indeterminate states.
|
|
@@ -1779,6 +1886,20 @@ export declare interface CyclingTextProps extends Omit<React_2.HTMLAttributes<HT
|
|
|
1779
1886
|
/** How the wrapper should be sized to accommodate variable-length items. */
|
|
1780
1887
|
export declare type CyclingTextSizing = "longest" | "current";
|
|
1781
1888
|
|
|
1889
|
+
/**
|
|
1890
|
+
* Dense grid view icon (3×3 tiles) — the compact-grid counterpart of
|
|
1891
|
+
* {@link GridViewIcon}. Renders at sizes 16, 24, or 32 px.
|
|
1892
|
+
*
|
|
1893
|
+
* @example
|
|
1894
|
+
* ```tsx
|
|
1895
|
+
* <DenseGridViewIcon size={24} />
|
|
1896
|
+
* ```
|
|
1897
|
+
*/
|
|
1898
|
+
export declare const DenseGridViewIcon: React_2.ForwardRefExoticComponent<BaseIconProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
1899
|
+
|
|
1900
|
+
/** Props for {@link DenseGridViewIcon}. See {@link BaseIconProps} for the shared shape. */
|
|
1901
|
+
export declare type DenseGridViewIconProps = BaseIconProps;
|
|
1902
|
+
|
|
1782
1903
|
/** Root component that manages open/close state for a dialog. */
|
|
1783
1904
|
export declare const Dialog: React_2.FC<DialogPrimitive.DialogProps>;
|
|
1784
1905
|
|
|
@@ -2221,7 +2342,7 @@ export declare type DrawerTriggerProps = React_2.ComponentPropsWithoutRef<typeof
|
|
|
2221
2342
|
export declare type DrawerVariant = "panel" | "sheet";
|
|
2222
2343
|
|
|
2223
2344
|
/** Root component that manages open/close state for a dropdown menu. */
|
|
2224
|
-
export declare function DropdownMenu({ open: openProp, defaultOpen, onOpenChange, children, ...props }: DropdownMenuProps): JSX.Element;
|
|
2345
|
+
export declare function DropdownMenu({ open: openProp, defaultOpen, onOpenChange, variant, children, ...props }: DropdownMenuProps): JSX.Element;
|
|
2225
2346
|
|
|
2226
2347
|
/**
|
|
2227
2348
|
* The positioned content panel rendered inside a portal.
|
|
@@ -2248,7 +2369,11 @@ export declare const DropdownMenuContent: React_2.ForwardRefExoticComponent<Drop
|
|
|
2248
2369
|
export declare interface DropdownMenuContentProps extends React_2.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> {
|
|
2249
2370
|
}
|
|
2250
2371
|
|
|
2251
|
-
/**
|
|
2372
|
+
/**
|
|
2373
|
+
* Groups related menu items. Accepts an optional `DropdownMenuLabel`.
|
|
2374
|
+
*
|
|
2375
|
+
* Requires Radix menu context — not supported inside a `variant="sheet"` menu.
|
|
2376
|
+
*/
|
|
2252
2377
|
export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
2253
2378
|
|
|
2254
2379
|
/** Props for the {@link DropdownMenuGroup} component. */
|
|
@@ -2345,7 +2470,13 @@ export declare interface DropdownMenuItemProps extends React_2.ComponentPropsWit
|
|
|
2345
2470
|
* Takes precedence over `leadingIcon`.
|
|
2346
2471
|
*/
|
|
2347
2472
|
avatar?: React_2.ReactNode;
|
|
2348
|
-
/**
|
|
2473
|
+
/**
|
|
2474
|
+
* Icon (or other node) rendered after the label. When
|
|
2475
|
+
* {@link DropdownMenuItemProps.selected} is true and no `trailingIcon` is
|
|
2476
|
+
* given, the built-in selected check indicator renders in this slot
|
|
2477
|
+
* instead — pass a `trailingIcon` to use a custom selected indicator (e.g.
|
|
2478
|
+
* a themed tick) rather than the default one.
|
|
2479
|
+
*/
|
|
2349
2480
|
trailingIcon?: React_2.ReactNode;
|
|
2350
2481
|
/** Trailing count or number (e.g. an unread total) rendered before {@link DropdownMenuItemProps.trailingIcon}. */
|
|
2351
2482
|
count?: React_2.ReactNode;
|
|
@@ -2390,6 +2521,8 @@ export declare interface DropdownMenuLabelProps extends React_2.ComponentPropsWi
|
|
|
2390
2521
|
|
|
2391
2522
|
/** Props for the {@link DropdownMenu} root component. */
|
|
2392
2523
|
export declare interface DropdownMenuProps extends React_2.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root> {
|
|
2524
|
+
/** How the menu presents its content. @default "menu" */
|
|
2525
|
+
variant?: DropdownMenuVariant;
|
|
2393
2526
|
}
|
|
2394
2527
|
|
|
2395
2528
|
/**
|
|
@@ -2403,6 +2536,8 @@ export declare interface DropdownMenuProps extends React_2.ComponentPropsWithout
|
|
|
2403
2536
|
* <DropdownMenuRadioItem value="oldest">Oldest first</DropdownMenuRadioItem>
|
|
2404
2537
|
* </DropdownMenuRadioGroup>
|
|
2405
2538
|
* ```
|
|
2539
|
+
*
|
|
2540
|
+
* Requires Radix menu context — not supported inside a `variant="sheet"` menu.
|
|
2406
2541
|
*/
|
|
2407
2542
|
export declare const DropdownMenuRadioGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
2408
2543
|
|
|
@@ -2447,6 +2582,16 @@ export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<Omit
|
|
|
2447
2582
|
/** Props for the {@link DropdownMenuTrigger} component. */
|
|
2448
2583
|
export declare type DropdownMenuTriggerProps = React_2.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>;
|
|
2449
2584
|
|
|
2585
|
+
/**
|
|
2586
|
+
* How a {@link DropdownMenu} presents its content.
|
|
2587
|
+
* - `"menu"` (default) — a Radix-positioned panel anchored to the trigger.
|
|
2588
|
+
* - `"sheet"` — a bottom drawer (via {@link Drawer}), for mobile/touch viewports.
|
|
2589
|
+
*
|
|
2590
|
+
* The viewport decision belongs to the consumer (it owns the breakpoint
|
|
2591
|
+
* source of truth), so pass e.g. `variant={isDesktop ? "menu" : "sheet"}`.
|
|
2592
|
+
*/
|
|
2593
|
+
declare type DropdownMenuVariant = "menu" | "sheet";
|
|
2594
|
+
|
|
2450
2595
|
/**
|
|
2451
2596
|
* Edit icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
|
|
2452
2597
|
*
|
|
@@ -2858,9 +3003,14 @@ export declare const HourglassIcon: React_2.ForwardRefExoticComponent<BaseIconPr
|
|
|
2858
3003
|
export declare type HourglassIconProps = BaseIconProps;
|
|
2859
3004
|
|
|
2860
3005
|
/**
|
|
2861
|
-
* A
|
|
2862
|
-
*
|
|
2863
|
-
*
|
|
3006
|
+
* A button containing only an icon. Use when an action can be represented by an
|
|
3007
|
+
* icon alone (e.g. close, send). Always pair with an `aria-label` for
|
|
3008
|
+
* accessibility.
|
|
3009
|
+
*
|
|
3010
|
+
* Shape is size-driven for the standard variants: the `24` size is squared
|
|
3011
|
+
* (`rounded-xs`), every larger size is circular. Bespoke variants (`brand`,
|
|
3012
|
+
* `contrast`, `messaging`, `navTray`, `tertiaryDestructive`, `stop`,
|
|
3013
|
+
* `microphone`) stay circular at all sizes.
|
|
2864
3014
|
*
|
|
2865
3015
|
* @example
|
|
2866
3016
|
* ```tsx
|
|
@@ -2876,15 +3026,30 @@ export declare interface IconButtonProps extends React_2.ButtonHTMLAttributes<HT
|
|
|
2876
3026
|
size?: IconButtonSize;
|
|
2877
3027
|
/** Icon element to render inside the button. */
|
|
2878
3028
|
icon: React_2.ReactNode;
|
|
2879
|
-
/**
|
|
3029
|
+
/**
|
|
3030
|
+
* Forces the dark-surface treatment regardless of theme. Only honoured on the
|
|
3031
|
+
* `primary`, `secondary`, `tertiary`, and `outline` variants. @default false
|
|
3032
|
+
*/
|
|
3033
|
+
negative?: boolean;
|
|
3034
|
+
/** When provided, displays a {@link Count} badge at the top-right corner. */
|
|
2880
3035
|
counterValue?: number;
|
|
2881
3036
|
}
|
|
2882
3037
|
|
|
2883
3038
|
/** Icon button size in pixels. */
|
|
2884
|
-
export declare type IconButtonSize = "24" | "32" | "40" | "52" | "72";
|
|
3039
|
+
export declare type IconButtonSize = "24" | "32" | "40" | "48" | "52" | "72";
|
|
2885
3040
|
|
|
2886
|
-
/**
|
|
2887
|
-
|
|
3041
|
+
/**
|
|
3042
|
+
* Visual style variant of the icon button.
|
|
3043
|
+
*
|
|
3044
|
+
* `primary`, `secondary`, `tertiary`, `outline`, `error`, `white` and `black`
|
|
3045
|
+
* use the shared button colour tokens and a size-driven shape (squared at the
|
|
3046
|
+
* `24` size, circular otherwise). Of these, `primary`, `secondary`, `tertiary`
|
|
3047
|
+
* and `outline` also honour the {@link IconButtonProps.negative} prop.
|
|
3048
|
+
*
|
|
3049
|
+
* `brand`, `contrast`, `messaging`, `navTray`, `tertiaryDestructive`, `stop` and
|
|
3050
|
+
* `microphone` are bespoke variants that stay circular at every size.
|
|
3051
|
+
*/
|
|
3052
|
+
export declare type IconButtonVariant = "primary" | "secondary" | "tertiary" | "outline" | "error" | "white" | "black" | "brand" | "contrast" | "messaging" | "navTray" | "tertiaryDestructive" | "stop" | "microphone";
|
|
2888
3053
|
|
|
2889
3054
|
/** A single drawable path within an icon variant. */
|
|
2890
3055
|
export declare type IconPath = {
|
|
@@ -3306,6 +3471,40 @@ export declare const MassMessageIcon: React_2.ForwardRefExoticComponent<BaseIcon
|
|
|
3306
3471
|
/** Props for {@link MassMessageIcon}. See {@link BaseIconProps} for the shared shape. */
|
|
3307
3472
|
export declare type MassMessageIconProps = BaseIconProps;
|
|
3308
3473
|
|
|
3474
|
+
/**
|
|
3475
|
+
* A compact circular indicator that surfaces the moderation state of a piece of
|
|
3476
|
+
* media — flagged, removed, or sensitive. Typically overlaid on a thumbnail or
|
|
3477
|
+
* attachment.
|
|
3478
|
+
*
|
|
3479
|
+
* Renders as `role="img"` with a descriptive `aria-label`; the inner glyph is
|
|
3480
|
+
* decorative.
|
|
3481
|
+
*
|
|
3482
|
+
* @example
|
|
3483
|
+
* ```tsx
|
|
3484
|
+
* <MediaStatusIndicator status="sensitive" />
|
|
3485
|
+
* <MediaStatusIndicator status="removed" label="Removed for violating guidelines" />
|
|
3486
|
+
* ```
|
|
3487
|
+
*/
|
|
3488
|
+
export declare const MediaStatusIndicator: React_2.ForwardRefExoticComponent<MediaStatusIndicatorProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
3489
|
+
|
|
3490
|
+
export declare interface MediaStatusIndicatorProps extends Omit<React_2.HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
3491
|
+
/** Which media state to represent. @default "default" */
|
|
3492
|
+
status?: MediaStatusIndicatorStatus;
|
|
3493
|
+
/**
|
|
3494
|
+
* Accessible label announced by assistive tech. Defaults to a per-status
|
|
3495
|
+
* description; pass your own for localisation or extra context.
|
|
3496
|
+
*/
|
|
3497
|
+
label?: string;
|
|
3498
|
+
}
|
|
3499
|
+
|
|
3500
|
+
/**
|
|
3501
|
+
* State represented by the indicator.
|
|
3502
|
+
* - `"default"`: media flagged / pending review (amber).
|
|
3503
|
+
* - `"removed"`: media removed for a policy violation (red).
|
|
3504
|
+
* - `"sensitive"`: sensitive content hidden behind an overlay (dark).
|
|
3505
|
+
*/
|
|
3506
|
+
export declare type MediaStatusIndicatorStatus = "default" | "removed" | "sensitive";
|
|
3507
|
+
|
|
3309
3508
|
/**
|
|
3310
3509
|
* Megaphone icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
|
|
3311
3510
|
*
|
|
@@ -4278,13 +4477,38 @@ export declare const SelectGroup: React_2.ForwardRefExoticComponent<SelectPrimit
|
|
|
4278
4477
|
export declare type SelectGroupProps = React_2.ComponentPropsWithoutRef<typeof SelectPrimitive.Group>;
|
|
4279
4478
|
|
|
4280
4479
|
/**
|
|
4281
|
-
* An individual option inside {@link SelectContent}.
|
|
4480
|
+
* An individual option inside {@link SelectContent}, following the V2 Menu Item spec.
|
|
4481
|
+
*
|
|
4482
|
+
* Supports a leading icon or avatar, an optional two-line layout via `description`,
|
|
4483
|
+
* and the standard hover / selected / disabled states. The selected row is marked
|
|
4484
|
+
* with a trailing check indicator.
|
|
4485
|
+
*
|
|
4486
|
+
* @example
|
|
4487
|
+
* ```tsx
|
|
4488
|
+
* <SelectItem value="jane" avatar={<Avatar size={24} fallback="JD" />} description="Product designer">
|
|
4489
|
+
* Jane Doe
|
|
4490
|
+
* </SelectItem>
|
|
4491
|
+
* ```
|
|
4282
4492
|
*/
|
|
4283
4493
|
export declare const SelectItem: React_2.ForwardRefExoticComponent<SelectItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
4284
4494
|
|
|
4285
4495
|
export declare interface SelectItemProps extends React_2.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> {
|
|
4496
|
+
/** Row height. Defaults to the parent {@link Select} size (`48`/`40` → `40`, `32` → `32`). */
|
|
4497
|
+
size?: SelectItemSize;
|
|
4498
|
+
/** Icon (or other node) rendered before the label. Ignored when {@link SelectItemProps.avatar} is set. */
|
|
4499
|
+
leadingIcon?: React_2.ReactNode;
|
|
4500
|
+
/**
|
|
4501
|
+
* Leading avatar rendered in place of {@link SelectItemProps.leadingIcon}, for rows
|
|
4502
|
+
* representing a person or account. Pass an `Avatar` sized to `24`. Takes precedence over `leadingIcon`.
|
|
4503
|
+
*/
|
|
4504
|
+
avatar?: React_2.ReactNode;
|
|
4505
|
+
/** Optional secondary text rendered on a second line below the label. */
|
|
4506
|
+
description?: React_2.ReactNode;
|
|
4286
4507
|
}
|
|
4287
4508
|
|
|
4509
|
+
/** Dropdown row height in pixels, matching the V2 Menu Item spec. */
|
|
4510
|
+
export declare type SelectItemSize = "40" | "32";
|
|
4511
|
+
|
|
4288
4512
|
/**
|
|
4289
4513
|
* A non-interactive label shown above a {@link SelectGroup}.
|
|
4290
4514
|
*/
|
|
@@ -4612,6 +4836,43 @@ export declare const StopIcon: React_2.ForwardRefExoticComponent<BaseIconProps &
|
|
|
4612
4836
|
/** Props for {@link StopIcon}. See {@link BaseIconProps} for the shared shape. */
|
|
4613
4837
|
export declare type StopIconProps = BaseIconProps;
|
|
4614
4838
|
|
|
4839
|
+
/**
|
|
4840
|
+
* A subscription / purchase button pairing an action label with the current
|
|
4841
|
+
* price and an optional struck-through previous price. Built on {@link Button},
|
|
4842
|
+
* so it inherits the same variants, sizes, `negative` dark-surface treatment,
|
|
4843
|
+
* `fullWidth`, loading, and disabled behaviour.
|
|
4844
|
+
*
|
|
4845
|
+
* The accessible name defaults to the label plus pricing (e.g. `"Join now, $9.99,
|
|
4846
|
+
* was $19.99"`); pass `aria-label` to override.
|
|
4847
|
+
*
|
|
4848
|
+
* @example
|
|
4849
|
+
* ```tsx
|
|
4850
|
+
* <SubscribeButton price="$9.99/mo" discount="$19.99" variant="brand" fullWidth>
|
|
4851
|
+
* Join now
|
|
4852
|
+
* </SubscribeButton>
|
|
4853
|
+
* ```
|
|
4854
|
+
*/
|
|
4855
|
+
export declare const SubscribeButton: React_2.ForwardRefExoticComponent<SubscribeButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
4856
|
+
|
|
4857
|
+
export declare interface SubscribeButtonProps extends Omit<ButtonProps, "variant" | "size" | "price" | "discount" | "leftIcon" | "rightIcon" | "asChild"> {
|
|
4858
|
+
/** Visual style variant. `brand` is the Figma "Upsell" (green) type. @default "primary" */
|
|
4859
|
+
variant?: SubscribeButtonVariant;
|
|
4860
|
+
/** Height of the button in pixels. @default "48" */
|
|
4861
|
+
size?: SubscribeButtonSize;
|
|
4862
|
+
/** Current price shown on the trailing side (e.g. `"$9.99/mo"`). */
|
|
4863
|
+
price: string;
|
|
4864
|
+
/** Previous price rendered struck-through before {@link SubscribeButtonProps.price}. */
|
|
4865
|
+
discount?: string;
|
|
4866
|
+
/** Leading action label. @default "Join now" */
|
|
4867
|
+
children?: React_2.ReactNode;
|
|
4868
|
+
}
|
|
4869
|
+
|
|
4870
|
+
/** Height of the subscribe button in pixels. */
|
|
4871
|
+
export declare type SubscribeButtonSize = "48" | "40" | "32";
|
|
4872
|
+
|
|
4873
|
+
/** Visual style variant of the subscribe button. Mirrors the V2 Subscribe Button "Type" set (`brand` is Figma's "Upsell"). */
|
|
4874
|
+
export declare type SubscribeButtonVariant = "primary" | "secondary" | "tertiary" | "outline" | "brand";
|
|
4875
|
+
|
|
4615
4876
|
/** A checkmark inside a filled circle icon for success states (20 × 20). */
|
|
4616
4877
|
export declare const SuccessIcon: default_2.ForwardRefExoticComponent<default_2.SVGAttributes<SVGSVGElement> & {
|
|
4617
4878
|
className?: string;
|
package/dist/index.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import { AccordionItem } from "./components/Accordion/AccordionItem.mjs";
|
|
|
6
6
|
import { AccordionTrigger } from "./components/Accordion/AccordionTrigger.mjs";
|
|
7
7
|
import { Alert } from "./components/Alert/Alert.mjs";
|
|
8
8
|
import { AudioPlayer } from "./components/AudioPlayer/AudioPlayer.mjs";
|
|
9
|
+
import { AudioRecordButton } from "./components/AudioRecordButton/AudioRecordButton.mjs";
|
|
9
10
|
import { AudioUpload } from "./components/AudioUpload/AudioUpload.mjs";
|
|
10
11
|
import { useAudioRecorder } from "./components/AudioUpload/useAudioRecorder.mjs";
|
|
11
12
|
import { Autocomplete } from "./components/Autocomplete/Autocomplete.mjs";
|
|
@@ -18,6 +19,7 @@ import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbP
|
|
|
18
19
|
import { Button } from "./components/Button/Button.mjs";
|
|
19
20
|
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./components/Card/Card.mjs";
|
|
20
21
|
import { ChatInput } from "./components/ChatInput/ChatInput.mjs";
|
|
22
|
+
import { ChatMessage } from "./components/ChatMessage/ChatMessage.mjs";
|
|
21
23
|
import { Checkbox } from "./components/Checkbox/Checkbox.mjs";
|
|
22
24
|
import { Chip } from "./components/Chip/Chip.mjs";
|
|
23
25
|
import { Count } from "./components/Count/Count.mjs";
|
|
@@ -77,6 +79,7 @@ import { CopyIcon } from "./components/Icons/CopyIcon.mjs";
|
|
|
77
79
|
import { CrossCircleIcon } from "./components/Icons/CrossCircleIcon.mjs";
|
|
78
80
|
import { CrossIcon } from "./components/Icons/CrossIcon.mjs";
|
|
79
81
|
import { CrownIcon } from "./components/Icons/CrownIcon.mjs";
|
|
82
|
+
import { DenseGridViewIcon } from "./components/Icons/DenseGridViewIcon.mjs";
|
|
80
83
|
import { DiamondIcon } from "./components/Icons/DiamondIcon.mjs";
|
|
81
84
|
import { DiscordIcon } from "./components/Icons/DiscordIcon.mjs";
|
|
82
85
|
import { DiscountIcon } from "./components/Icons/DiscountIcon.mjs";
|
|
@@ -204,6 +207,7 @@ import { InlineEdit } from "./components/InlineEdit/InlineEdit.mjs";
|
|
|
204
207
|
import { Link } from "./components/Link/Link.mjs";
|
|
205
208
|
import { Loader } from "./components/Loader/Loader.mjs";
|
|
206
209
|
import { Logo } from "./components/Logo/Logo.mjs";
|
|
210
|
+
import { MediaStatusIndicator } from "./components/MediaStatusIndicator/MediaStatusIndicator.mjs";
|
|
207
211
|
import { MobileStepper } from "./components/MobileStepper/MobileStepper.mjs";
|
|
208
212
|
import { OnlineBlinkingIcon } from "./components/OnlineBlinkingIcon/OnlineBlinkingIcon.mjs";
|
|
209
213
|
import { PageSelector } from "./components/PageSelector/PageSelector.mjs";
|
|
@@ -227,6 +231,7 @@ import { Slider } from "./components/Slider/Slider.mjs";
|
|
|
227
231
|
import { Snackbar } from "./components/Snackbar/Snackbar.mjs";
|
|
228
232
|
import { Stepper } from "./components/Stepper/Stepper.mjs";
|
|
229
233
|
import { StepperStep } from "./components/Stepper/StepperStep.mjs";
|
|
234
|
+
import { SubscribeButton } from "./components/SubscribeButton/SubscribeButton.mjs";
|
|
230
235
|
import { Switch } from "./components/Switch/Switch.mjs";
|
|
231
236
|
import { SwitchField } from "./components/SwitchField/SwitchField.mjs";
|
|
232
237
|
import { SwitchToggle } from "./components/SwitchToggle/SwitchToggle.mjs";
|
|
@@ -267,6 +272,7 @@ export {
|
|
|
267
272
|
ArrowUpRightIcon,
|
|
268
273
|
AtSignIcon,
|
|
269
274
|
AudioPlayer,
|
|
275
|
+
AudioRecordButton,
|
|
270
276
|
AudioUpload,
|
|
271
277
|
AutoMessageIcon,
|
|
272
278
|
Autocomplete,
|
|
@@ -302,6 +308,7 @@ export {
|
|
|
302
308
|
CardTitle,
|
|
303
309
|
ChartIcon,
|
|
304
310
|
ChatInput,
|
|
311
|
+
ChatMessage,
|
|
305
312
|
CheckBoxOffIcon,
|
|
306
313
|
CheckBoxOnIcon,
|
|
307
314
|
CheckCircleIcon,
|
|
@@ -328,6 +335,7 @@ export {
|
|
|
328
335
|
CrossIcon,
|
|
329
336
|
CrownIcon,
|
|
330
337
|
CyclingText,
|
|
338
|
+
DenseGridViewIcon,
|
|
331
339
|
Dialog,
|
|
332
340
|
DialogBody,
|
|
333
341
|
DialogClose,
|
|
@@ -418,6 +426,7 @@ export {
|
|
|
418
426
|
LogoutIcon,
|
|
419
427
|
LoveIcon,
|
|
420
428
|
MassMessageIcon,
|
|
429
|
+
MediaStatusIndicator,
|
|
421
430
|
MegaphoneIcon,
|
|
422
431
|
MenuCloseIcon,
|
|
423
432
|
MenuIcon,
|
|
@@ -482,6 +491,7 @@ export {
|
|
|
482
491
|
Stepper,
|
|
483
492
|
StepperStep,
|
|
484
493
|
StopIcon,
|
|
494
|
+
SubscribeButton,
|
|
485
495
|
SuccessIcon,
|
|
486
496
|
SunIcon,
|
|
487
497
|
Support2Icon,
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/styles/theme.css
CHANGED
|
@@ -637,7 +637,7 @@
|
|
|
637
637
|
|
|
638
638
|
.dark {
|
|
639
639
|
--color-neutral-alphas-50: var(--primitives-color-whitealpha-100);
|
|
640
|
-
--color-neutral-alphas-100:
|
|
640
|
+
--color-neutral-alphas-100: #ffffff26;
|
|
641
641
|
--color-neutral-alphas-150: #ffffffcc;
|
|
642
642
|
--color-neutral-alphas-200: var(--primitives-color-whitealpha-200);
|
|
643
643
|
--color-neutral-alphas-300: var(--primitives-color-whitealpha-300);
|