@fanvue/ui 3.40.1 → 3.42.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/Checkbox/Checkbox.cjs +6 -6
- package/dist/cjs/components/Checkbox/Checkbox.cjs.map +1 -1
- package/dist/cjs/components/Dialog/Dialog.cjs +63 -55
- package/dist/cjs/components/Dialog/Dialog.cjs.map +1 -1
- package/dist/cjs/components/Icons/CommentIcon.cjs +74 -0
- package/dist/cjs/components/Icons/CommentIcon.cjs.map +1 -0
- package/dist/cjs/components/Tabs/Tabs.cjs +26 -1
- package/dist/cjs/components/Tabs/Tabs.cjs.map +1 -1
- package/dist/cjs/components/Tabs/TabsList.cjs +163 -22
- package/dist/cjs/components/Tabs/TabsList.cjs.map +1 -1
- package/dist/cjs/components/Tabs/TabsOverflow.cjs +123 -0
- package/dist/cjs/components/Tabs/TabsOverflow.cjs.map +1 -0
- package/dist/cjs/components/Tabs/TabsTrigger.cjs +27 -14
- package/dist/cjs/components/Tabs/TabsTrigger.cjs.map +1 -1
- package/dist/cjs/index.cjs +5 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.mjs +6 -6
- package/dist/components/Checkbox/Checkbox.mjs.map +1 -1
- package/dist/components/Dialog/Dialog.mjs +63 -55
- package/dist/components/Dialog/Dialog.mjs.map +1 -1
- package/dist/components/Icons/CommentIcon.mjs +57 -0
- package/dist/components/Icons/CommentIcon.mjs.map +1 -0
- package/dist/components/Tabs/Tabs.mjs +26 -2
- package/dist/components/Tabs/Tabs.mjs.map +1 -1
- package/dist/components/Tabs/TabsList.mjs +164 -23
- package/dist/components/Tabs/TabsList.mjs.map +1 -1
- package/dist/components/Tabs/TabsOverflow.mjs +106 -0
- package/dist/components/Tabs/TabsOverflow.mjs.map +1 -0
- package/dist/components/Tabs/TabsTrigger.mjs +27 -14
- package/dist/components/Tabs/TabsTrigger.mjs.map +1 -1
- package/dist/index.d.ts +103 -19
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2109,6 +2109,19 @@ export declare const CoinIcon: React_2.ForwardRefExoticComponent<BaseIconProps &
|
|
|
2109
2109
|
/** Props for {@link CoinIcon}. See {@link BaseIconProps} for the shared shape. */
|
|
2110
2110
|
export declare type CoinIconProps = BaseIconProps;
|
|
2111
2111
|
|
|
2112
|
+
/**
|
|
2113
|
+
* Comment icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
|
|
2114
|
+
*
|
|
2115
|
+
* @example
|
|
2116
|
+
* ```tsx
|
|
2117
|
+
* <CommentIcon size={24} filled />
|
|
2118
|
+
* ```
|
|
2119
|
+
*/
|
|
2120
|
+
export declare const CommentIcon: React_2.ForwardRefExoticComponent<BaseIconProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
2121
|
+
|
|
2122
|
+
/** Props for {@link CommentIcon}. See {@link BaseIconProps} for the shared shape. */
|
|
2123
|
+
export declare type CommentIconProps = BaseIconProps;
|
|
2124
|
+
|
|
2112
2125
|
/**
|
|
2113
2126
|
* Compass icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.
|
|
2114
2127
|
*
|
|
@@ -2548,6 +2561,9 @@ export declare type DialogCloseProps = React_2.ComponentPropsWithoutRef<typeof D
|
|
|
2548
2561
|
* render a centered floating card instead (used for small confirmation dialogs).
|
|
2549
2562
|
* On larger viewports it renders centered with full border radius.
|
|
2550
2563
|
*
|
|
2564
|
+
* It animates in and out. While the closing animation plays the panel stays
|
|
2565
|
+
* mounted but ignores pointer input, so a second click can't act on it.
|
|
2566
|
+
*
|
|
2551
2567
|
* @example
|
|
2552
2568
|
* ```tsx
|
|
2553
2569
|
* <Dialog>
|
|
@@ -6469,25 +6485,7 @@ export declare const TableToolbar: React_2.ForwardRefExoticComponent<TableToolba
|
|
|
6469
6485
|
export declare interface TableToolbarProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
6470
6486
|
}
|
|
6471
6487
|
|
|
6472
|
-
|
|
6473
|
-
* Root container for a tabbed interface. Manages the active tab state and
|
|
6474
|
-
* coordinates {@link TabsList}, {@link TabsTrigger}, and {@link TabsContent}.
|
|
6475
|
-
*
|
|
6476
|
-
* Built on Radix UI `Tabs`.
|
|
6477
|
-
*
|
|
6478
|
-
* @example
|
|
6479
|
-
* ```tsx
|
|
6480
|
-
* <Tabs defaultValue="tab1">
|
|
6481
|
-
* <TabsList>
|
|
6482
|
-
* <TabsTrigger value="tab1">Tab 1</TabsTrigger>
|
|
6483
|
-
* <TabsTrigger value="tab2">Tab 2</TabsTrigger>
|
|
6484
|
-
* </TabsList>
|
|
6485
|
-
* <TabsContent value="tab1">Content 1</TabsContent>
|
|
6486
|
-
* <TabsContent value="tab2">Content 2</TabsContent>
|
|
6487
|
-
* </Tabs>
|
|
6488
|
-
* ```
|
|
6489
|
-
*/
|
|
6490
|
-
export declare const Tabs: React_2.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
6488
|
+
export declare const Tabs: React_2.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
6491
6489
|
|
|
6492
6490
|
/** Renders the content panel for a given tab `value`. Only visible when its value matches the active tab. */
|
|
6493
6491
|
export declare const TabsContent: React_2.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -6530,8 +6528,30 @@ export declare const TabsList: React_2.ForwardRefExoticComponent<Omit<TabsPrimit
|
|
|
6530
6528
|
* @default false
|
|
6531
6529
|
*/
|
|
6532
6530
|
scrollable?: boolean;
|
|
6531
|
+
/**
|
|
6532
|
+
* `"underline"` marks the active tab with a line under the row. `"pill"` sits
|
|
6533
|
+
* the tabs in a rounded track, sized to its tabs, and slides a filled pill
|
|
6534
|
+
* behind the active one. A pill list is horizontal and ignores `fullWidth`,
|
|
6535
|
+
* `alignLeft`, `variant` and `flushLeft`; it scrolls when it doesn't fit.
|
|
6536
|
+
* @default "underline"
|
|
6537
|
+
*/
|
|
6538
|
+
appearance?: TabsListAppearance;
|
|
6539
|
+
/** Height of each tab in a pill list. Ignored by the underline appearance. @default "32" */
|
|
6540
|
+
size?: TabsListPillSize;
|
|
6541
|
+
/**
|
|
6542
|
+
* Pill only: the pill follows the mouse across the tabs and settles back on the
|
|
6543
|
+
* selected one when the pointer leaves. Mouse only, and off when the user prefers
|
|
6544
|
+
* reduced motion. @default false
|
|
6545
|
+
*/
|
|
6546
|
+
followHover?: boolean;
|
|
6533
6547
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
6534
6548
|
|
|
6549
|
+
/** Visual style of a {@link TabsList}. */
|
|
6550
|
+
export declare type TabsListAppearance = "underline" | "pill";
|
|
6551
|
+
|
|
6552
|
+
/** Height in pixels of each tab in a pill {@link TabsList}. */
|
|
6553
|
+
export declare type TabsListPillSize = "32" | "36";
|
|
6554
|
+
|
|
6535
6555
|
/** Props for the {@link TabsList} component. */
|
|
6536
6556
|
export declare type TabsListProps = React_2.ComponentPropsWithoutRef<typeof TabsPrimitive.List> & {
|
|
6537
6557
|
/** When `true` (the default), the tab list spans the full width of its container and each tab grows equally. Set to `false` for inline sizing. */
|
|
@@ -6567,8 +6587,70 @@ export declare type TabsListProps = React_2.ComponentPropsWithoutRef<typeof Tabs
|
|
|
6567
6587
|
* @default false
|
|
6568
6588
|
*/
|
|
6569
6589
|
scrollable?: boolean;
|
|
6590
|
+
/**
|
|
6591
|
+
* `"underline"` marks the active tab with a line under the row. `"pill"` sits
|
|
6592
|
+
* the tabs in a rounded track, sized to its tabs, and slides a filled pill
|
|
6593
|
+
* behind the active one. A pill list is horizontal and ignores `fullWidth`,
|
|
6594
|
+
* `alignLeft`, `variant` and `flushLeft`; it scrolls when it doesn't fit.
|
|
6595
|
+
* @default "underline"
|
|
6596
|
+
*/
|
|
6597
|
+
appearance?: TabsListAppearance;
|
|
6598
|
+
/** Height of each tab in a pill list. Ignored by the underline appearance. @default "32" */
|
|
6599
|
+
size?: TabsListPillSize;
|
|
6600
|
+
/**
|
|
6601
|
+
* Pill only: the pill follows the mouse across the tabs and settles back on the
|
|
6602
|
+
* selected one when the pointer leaves. Mouse only, and off when the user prefers
|
|
6603
|
+
* reduced motion. @default false
|
|
6604
|
+
*/
|
|
6605
|
+
followHover?: boolean;
|
|
6570
6606
|
};
|
|
6571
6607
|
|
|
6608
|
+
/**
|
|
6609
|
+
* The last tab in a {@link TabsList}, opening a menu of the tabs that don't fit
|
|
6610
|
+
* the row. It sits in the row's arrow-key order, opens with click, Enter, Space
|
|
6611
|
+
* or ArrowDown, and never selects anything itself. While one of its items is
|
|
6612
|
+
* active it shows that item's label and is the selected tab.
|
|
6613
|
+
*
|
|
6614
|
+
* Reads and sets the value of the surrounding {@link Tabs}, controlled or not.
|
|
6615
|
+
* Renders nothing when it has no items.
|
|
6616
|
+
*
|
|
6617
|
+
* @example
|
|
6618
|
+
* ```tsx
|
|
6619
|
+
* <Tabs value={tab} onValueChange={setTab}>
|
|
6620
|
+
* <TabsList appearance="pill">
|
|
6621
|
+
* <TabsTrigger value="all">All</TabsTrigger>
|
|
6622
|
+
* <TabsOverflow label="More">
|
|
6623
|
+
* <TabsOverflowItem value="tips">Tips</TabsOverflowItem>
|
|
6624
|
+
* </TabsOverflow>
|
|
6625
|
+
* </TabsList>
|
|
6626
|
+
* </Tabs>
|
|
6627
|
+
* ```
|
|
6628
|
+
*/
|
|
6629
|
+
export declare const TabsOverflow: React_2.ForwardRefExoticComponent<TabsOverflowProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
6630
|
+
|
|
6631
|
+
/**
|
|
6632
|
+
* A tab listed in a {@link TabsOverflow} menu. The active one takes the menu's
|
|
6633
|
+
* selected style and is announced as the checked option.
|
|
6634
|
+
*/
|
|
6635
|
+
export declare const TabsOverflowItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuItemProps, "onSelect" | "selected"> & {
|
|
6636
|
+
/** The tab's value, as on a {@link TabsTrigger}. */
|
|
6637
|
+
value: string;
|
|
6638
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
6639
|
+
|
|
6640
|
+
/** Props for the {@link TabsOverflowItem} component. */
|
|
6641
|
+
export declare type TabsOverflowItemProps = Omit<DropdownMenuItemProps, "selected" | "onSelect"> & {
|
|
6642
|
+
/** The tab's value, as on a {@link TabsTrigger}. */
|
|
6643
|
+
value: string;
|
|
6644
|
+
};
|
|
6645
|
+
|
|
6646
|
+
/** Props for the {@link TabsOverflow} component. */
|
|
6647
|
+
export declare interface TabsOverflowProps extends Omit<TabsTriggerProps, "value" | "children" | "asChild"> {
|
|
6648
|
+
/** Text shown on the tab while none of its items is active, e.g. "More". */
|
|
6649
|
+
label: React_2.ReactNode;
|
|
6650
|
+
/** {@link TabsOverflowItem} elements, one per tab that doesn't fit the row. */
|
|
6651
|
+
children?: React_2.ReactNode;
|
|
6652
|
+
}
|
|
6653
|
+
|
|
6572
6654
|
/** Props for the {@link Tabs} root component. Extends Radix `Tabs.Root` props. */
|
|
6573
6655
|
export declare type TabsProps = React_2.ComponentPropsWithoutRef<typeof TabsPrimitive.Root>;
|
|
6574
6656
|
|
|
@@ -6580,6 +6662,8 @@ export declare type TabsProps = React_2.ComponentPropsWithoutRef<typeof TabsPrim
|
|
|
6580
6662
|
* href="…">…</Link></TabsTrigger>`). With `asChild` the child element becomes
|
|
6581
6663
|
* the tab itself (receiving `role="tab"` and focus management), so the tab
|
|
6582
6664
|
* stays a single interactive control rather than nesting one inside the other.
|
|
6665
|
+
*
|
|
6666
|
+
* Inside a `TabsList appearance="pill"` the tab takes the pill styling.
|
|
6583
6667
|
*/
|
|
6584
6668
|
export declare const TabsTrigger: React_2.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
6585
6669
|
|
package/dist/index.mjs
CHANGED
|
@@ -84,6 +84,7 @@ import { CloseIcon } from "./components/Icons/CloseIcon.mjs";
|
|
|
84
84
|
import { CodeIcon } from "./components/Icons/CodeIcon.mjs";
|
|
85
85
|
import { CogIcon } from "./components/Icons/CogIcon.mjs";
|
|
86
86
|
import { CoinIcon } from "./components/Icons/CoinIcon.mjs";
|
|
87
|
+
import { CommentIcon } from "./components/Icons/CommentIcon.mjs";
|
|
87
88
|
import { CompassIcon } from "./components/Icons/CompassIcon.mjs";
|
|
88
89
|
import { CopyIcon } from "./components/Icons/CopyIcon.mjs";
|
|
89
90
|
import { CrossCircleIcon } from "./components/Icons/CrossCircleIcon.mjs";
|
|
@@ -258,6 +259,7 @@ import { TablePagination } from "./components/Table/TablePagination.mjs";
|
|
|
258
259
|
import { Tabs } from "./components/Tabs/Tabs.mjs";
|
|
259
260
|
import { TabsContent } from "./components/Tabs/TabsContent.mjs";
|
|
260
261
|
import { TabsList } from "./components/Tabs/TabsList.mjs";
|
|
262
|
+
import { TabsOverflow, TabsOverflowItem } from "./components/Tabs/TabsOverflow.mjs";
|
|
261
263
|
import { TabsTrigger } from "./components/Tabs/TabsTrigger.mjs";
|
|
262
264
|
import { TextArea } from "./components/TextArea/TextArea.mjs";
|
|
263
265
|
import { TextField } from "./components/TextField/TextField.mjs";
|
|
@@ -366,6 +368,7 @@ export {
|
|
|
366
368
|
CodeIcon,
|
|
367
369
|
CogIcon,
|
|
368
370
|
CoinIcon,
|
|
371
|
+
CommentIcon,
|
|
369
372
|
CompassIcon,
|
|
370
373
|
CopyIcon,
|
|
371
374
|
Count,
|
|
@@ -578,6 +581,8 @@ export {
|
|
|
578
581
|
Tabs,
|
|
579
582
|
TabsContent,
|
|
580
583
|
TabsList,
|
|
584
|
+
TabsOverflow,
|
|
585
|
+
TabsOverflowItem,
|
|
581
586
|
TabsTrigger,
|
|
582
587
|
TagIcon,
|
|
583
588
|
TaskIcon,
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|