canvas-ui-sdk 0.3.16 → 0.3.18
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/charts.js +5 -1
- package/dist/charts.js.map +1 -1
- package/dist/index.d.ts +126 -78
- package/dist/index.js +612 -1620
- package/dist/index.js.map +1 -1
- package/mcp/dist/index.js +1 -0
- package/package.json +1 -1
- package/registry/blocks/activity-feed.json +3 -2
- package/registry/blocks/circular-progress-bar-list.json +3 -3
- package/registry/blocks/faqs-table.json +3 -2
- package/registry/blocks/filter-popover.json +1 -1
- package/registry/blocks/fixed-column-data-table.json +3 -4
- package/registry/blocks/form-group.json +3 -2
- package/registry/blocks/graph-metric-tiles.json +1 -1
- package/registry/blocks/grid-tiles-list.json +2 -3
- package/registry/blocks/image-feed-with-nested-comments.json +2 -1
- package/registry/blocks/large-image-labels-list.json +2 -2
- package/registry/blocks/menufocus-template.json +1 -1
- package/registry/blocks/nested-comments-table.json +2 -1
- package/registry/blocks/nested-data-table.json +3 -4
- package/registry/blocks/profile-grid-tiles-list.json +2 -3
- package/registry/blocks/reviews-table.json +3 -4
- package/registry/blocks/slideshow-grid-tiles.json +2 -3
- package/registry/blocks/social-feed.json +2 -1
- package/registry/blocks/standard-data-table.json +3 -4
- package/registry/blocks/standard-list-with-image.json +2 -2
- package/registry/blocks/title-group.json +19 -0
- package/registry/blocks/upvoting-posts-table.json +3 -3
- package/registry/blocks/video-chat-controls.json +1 -1
- package/registry/blocks/video-playlist.json +1 -1
- package/registry/index.json +5 -0
- package/registry/layout/header.json +1 -1
- package/registry/ui/checkbox.json +1 -1
- package/registry/ui/dialog.json +1 -1
- package/registry/ui/dropdown-menu.json +1 -1
- package/registry/ui/file-uploader.json +1 -1
- package/registry/ui/image-uploader.json +1 -1
- package/registry/ui/multiselect-checkbox-field.json +1 -1
- package/registry/ui/radio-group.json +1 -1
- package/registry/ui/select.json +1 -1
- package/registry/ui/sheet.json +1 -1
- package/registry/ui/slider.json +1 -1
- package/registry/ui/switch.json +1 -1
- package/styles/tokens.reference.css +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
3
|
+
import React__default, { ReactNode } from 'react';
|
|
4
4
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -817,7 +817,7 @@ interface MobileMenuShellProps {
|
|
|
817
817
|
*/
|
|
818
818
|
declare function MobileMenuShell({ tabs, variant, activeTab, onTabChange, children, contentClassName, }: MobileMenuShellProps): react_jsx_runtime.JSX.Element;
|
|
819
819
|
|
|
820
|
-
interface FilterOption
|
|
820
|
+
interface FilterOption {
|
|
821
821
|
id: string;
|
|
822
822
|
label: string;
|
|
823
823
|
}
|
|
@@ -825,12 +825,12 @@ interface FilterDropdownConfig {
|
|
|
825
825
|
id: string;
|
|
826
826
|
label: string;
|
|
827
827
|
placeholder: string;
|
|
828
|
-
options: FilterOption
|
|
828
|
+
options: FilterOption[];
|
|
829
829
|
}
|
|
830
830
|
interface FilterCheckboxGroupConfig {
|
|
831
831
|
id: string;
|
|
832
832
|
label: string;
|
|
833
|
-
options: FilterOption
|
|
833
|
+
options: FilterOption[];
|
|
834
834
|
}
|
|
835
835
|
interface FilterDateRangeConfig {
|
|
836
836
|
id: string;
|
|
@@ -1538,6 +1538,61 @@ interface PillTabsProps {
|
|
|
1538
1538
|
*/
|
|
1539
1539
|
declare function PillTabs({ tabs, activeTab, onTabChange, className, }: PillTabsProps): react_jsx_runtime.JSX.Element;
|
|
1540
1540
|
|
|
1541
|
+
interface SortOption$c {
|
|
1542
|
+
id: string;
|
|
1543
|
+
label: string;
|
|
1544
|
+
}
|
|
1545
|
+
interface TitleGroupProps {
|
|
1546
|
+
/** Main heading text */
|
|
1547
|
+
title: string;
|
|
1548
|
+
/** Subtitle / description text shown below the title */
|
|
1549
|
+
subtitle?: string;
|
|
1550
|
+
/** Sort dropdown options. If omitted or empty, sort dropdown is hidden. */
|
|
1551
|
+
sortOptions?: SortOption$c[];
|
|
1552
|
+
/** Placeholder text for sort dropdown */
|
|
1553
|
+
sortPlaceholder?: string;
|
|
1554
|
+
/** Callback when sort selection changes */
|
|
1555
|
+
onSort?: (value: string) => void;
|
|
1556
|
+
/** Whether to show the filter control. Defaults to true when sortOptions are provided. */
|
|
1557
|
+
showFilter?: boolean;
|
|
1558
|
+
/** Props forwarded to FilterPopover. triggerVariant defaults to "dropdown". */
|
|
1559
|
+
filterPopoverProps?: Partial<Omit<FilterPopoverProps, "triggerVariant">> & {
|
|
1560
|
+
triggerVariant?: "button" | "dropdown";
|
|
1561
|
+
};
|
|
1562
|
+
/** Placeholder text for the filter trigger */
|
|
1563
|
+
filterPlaceholder?: string;
|
|
1564
|
+
/** Action button label. If omitted, no action button is rendered. */
|
|
1565
|
+
actionButtonText?: string;
|
|
1566
|
+
/** Callback when action button is clicked */
|
|
1567
|
+
onAction?: () => void;
|
|
1568
|
+
/** Additional CSS class names for the root wrapper */
|
|
1569
|
+
className?: string;
|
|
1570
|
+
}
|
|
1571
|
+
/**
|
|
1572
|
+
* Canvas Design System - Title Group Component
|
|
1573
|
+
*
|
|
1574
|
+
* A reusable header section for block components with title, subtitle,
|
|
1575
|
+
* sort dropdown, filter popover (dropdown variant by default), and
|
|
1576
|
+
* optional action button.
|
|
1577
|
+
*
|
|
1578
|
+
* @example
|
|
1579
|
+
* ```tsx
|
|
1580
|
+
* // With sort + filter + action button
|
|
1581
|
+
* <TitleGroup
|
|
1582
|
+
* title="Teammates"
|
|
1583
|
+
* subtitle="12 results"
|
|
1584
|
+
* sortOptions={[{ id: "name-asc", label: "Name (A-Z)" }]}
|
|
1585
|
+
* onSort={(value) => console.log(value)}
|
|
1586
|
+
* actionButtonText="Add new"
|
|
1587
|
+
* onAction={() => console.log("Add new")}
|
|
1588
|
+
* />
|
|
1589
|
+
*
|
|
1590
|
+
* // Title only
|
|
1591
|
+
* <TitleGroup title="Activity" subtitle="Recent updates" />
|
|
1592
|
+
* ```
|
|
1593
|
+
*/
|
|
1594
|
+
declare function TitleGroup({ title, subtitle, sortOptions, sortPlaceholder, onSort, showFilter, filterPopoverProps, filterPlaceholder, actionButtonText, onAction, className, }: TitleGroupProps): react_jsx_runtime.JSX.Element;
|
|
1595
|
+
|
|
1541
1596
|
interface SearchBarProps {
|
|
1542
1597
|
/** Placeholder text for the input */
|
|
1543
1598
|
placeholder?: string;
|
|
@@ -1605,10 +1660,6 @@ interface SortOption$b {
|
|
|
1605
1660
|
id: string;
|
|
1606
1661
|
label: string;
|
|
1607
1662
|
}
|
|
1608
|
-
interface FilterOption$b {
|
|
1609
|
-
id: string;
|
|
1610
|
-
label: string;
|
|
1611
|
-
}
|
|
1612
1663
|
interface StandardDataTableProps {
|
|
1613
1664
|
/** Table title */
|
|
1614
1665
|
title?: string;
|
|
@@ -1623,7 +1674,10 @@ interface StandardDataTableProps {
|
|
|
1623
1674
|
/** Sort options for the sort dropdown */
|
|
1624
1675
|
sortOptions?: SortOption$b[];
|
|
1625
1676
|
/** Filter options for the filter dropdown */
|
|
1626
|
-
filterOptions?:
|
|
1677
|
+
filterOptions?: {
|
|
1678
|
+
id: string;
|
|
1679
|
+
label: string;
|
|
1680
|
+
}[];
|
|
1627
1681
|
/** Primary action button text */
|
|
1628
1682
|
actionButtonText?: string;
|
|
1629
1683
|
/** Callback when add/action button is clicked */
|
|
@@ -1655,7 +1709,7 @@ interface StandardDataTableProps {
|
|
|
1655
1709
|
* />
|
|
1656
1710
|
* ```
|
|
1657
1711
|
*/
|
|
1658
|
-
declare function StandardDataTable({ title, resultCount, resultCountText, columns, data, sortOptions,
|
|
1712
|
+
declare function StandardDataTable({ title, resultCount, resultCountText, columns, data, sortOptions, actionButtonText, onAddNew, onSort, onRowAction, className, }: StandardDataTableProps): react_jsx_runtime.JSX.Element;
|
|
1659
1713
|
|
|
1660
1714
|
type FixedColumnTableStatus = "pending" | "paid" | "overdue";
|
|
1661
1715
|
interface FixedColumnTableRow {
|
|
@@ -1672,10 +1726,6 @@ interface SortOption$a {
|
|
|
1672
1726
|
id: string;
|
|
1673
1727
|
label: string;
|
|
1674
1728
|
}
|
|
1675
|
-
interface FilterOption$a {
|
|
1676
|
-
id: string;
|
|
1677
|
-
label: string;
|
|
1678
|
-
}
|
|
1679
1729
|
interface FixedColumnDataTableProps {
|
|
1680
1730
|
/** Table title */
|
|
1681
1731
|
title?: string;
|
|
@@ -1688,7 +1738,10 @@ interface FixedColumnDataTableProps {
|
|
|
1688
1738
|
/** Sort options for the sort dropdown */
|
|
1689
1739
|
sortOptions?: SortOption$a[];
|
|
1690
1740
|
/** Filter options for the filter dropdown */
|
|
1691
|
-
filterOptions?:
|
|
1741
|
+
filterOptions?: {
|
|
1742
|
+
id: string;
|
|
1743
|
+
label: string;
|
|
1744
|
+
}[];
|
|
1692
1745
|
/** Primary action button text */
|
|
1693
1746
|
actionButtonText?: string;
|
|
1694
1747
|
/** Callback when add/action button is clicked */
|
|
@@ -1720,7 +1773,7 @@ interface FixedColumnDataTableProps {
|
|
|
1720
1773
|
* />
|
|
1721
1774
|
* ```
|
|
1722
1775
|
*/
|
|
1723
|
-
declare function FixedColumnDataTable({ title, resultCount, resultCountText, data, sortOptions,
|
|
1776
|
+
declare function FixedColumnDataTable({ title, resultCount, resultCountText, data, sortOptions, actionButtonText, onAddNew, onSort, onRowAction, className, }: FixedColumnDataTableProps): react_jsx_runtime.JSX.Element;
|
|
1724
1777
|
|
|
1725
1778
|
interface ChildRow {
|
|
1726
1779
|
id: string;
|
|
@@ -1744,10 +1797,6 @@ interface SortOption$9 {
|
|
|
1744
1797
|
id: string;
|
|
1745
1798
|
label: string;
|
|
1746
1799
|
}
|
|
1747
|
-
interface FilterOption$9 {
|
|
1748
|
-
id: string;
|
|
1749
|
-
label: string;
|
|
1750
|
-
}
|
|
1751
1800
|
interface NestedDataTableProps {
|
|
1752
1801
|
/** Table title */
|
|
1753
1802
|
title?: string;
|
|
@@ -1760,7 +1809,10 @@ interface NestedDataTableProps {
|
|
|
1760
1809
|
/** Sort options for the sort dropdown */
|
|
1761
1810
|
sortOptions?: SortOption$9[];
|
|
1762
1811
|
/** Filter options for the filter dropdown */
|
|
1763
|
-
filterOptions?:
|
|
1812
|
+
filterOptions?: {
|
|
1813
|
+
id: string;
|
|
1814
|
+
label: string;
|
|
1815
|
+
}[];
|
|
1764
1816
|
/** Primary action button text */
|
|
1765
1817
|
actionButtonText?: string;
|
|
1766
1818
|
/** Callback when add/action button is clicked */
|
|
@@ -1792,7 +1844,7 @@ interface NestedDataTableProps {
|
|
|
1792
1844
|
* />
|
|
1793
1845
|
* ```
|
|
1794
1846
|
*/
|
|
1795
|
-
declare function NestedDataTable({ title, resultCount, resultCountText, data, sortOptions,
|
|
1847
|
+
declare function NestedDataTable({ title, resultCount, resultCountText, data, sortOptions, actionButtonText, onAddNew, onSort, onRowAction, onChildAction, className, }: NestedDataTableProps): react_jsx_runtime.JSX.Element;
|
|
1796
1848
|
|
|
1797
1849
|
interface ReviewItem {
|
|
1798
1850
|
id: string;
|
|
@@ -1806,10 +1858,6 @@ interface SortOption$8 {
|
|
|
1806
1858
|
id: string;
|
|
1807
1859
|
label: string;
|
|
1808
1860
|
}
|
|
1809
|
-
interface FilterOption$8 {
|
|
1810
|
-
id: string;
|
|
1811
|
-
label: string;
|
|
1812
|
-
}
|
|
1813
1861
|
interface ReviewsTableProps {
|
|
1814
1862
|
/** Table title */
|
|
1815
1863
|
title?: string;
|
|
@@ -1822,7 +1870,10 @@ interface ReviewsTableProps {
|
|
|
1822
1870
|
/** Sort options for the sort dropdown */
|
|
1823
1871
|
sortOptions?: SortOption$8[];
|
|
1824
1872
|
/** Filter options for the filter dropdown */
|
|
1825
|
-
filterOptions?:
|
|
1873
|
+
filterOptions?: {
|
|
1874
|
+
id: string;
|
|
1875
|
+
label: string;
|
|
1876
|
+
}[];
|
|
1826
1877
|
/** Primary action button text */
|
|
1827
1878
|
actionButtonText?: string;
|
|
1828
1879
|
/** Callback when add/action button is clicked */
|
|
@@ -1854,7 +1905,7 @@ interface ReviewsTableProps {
|
|
|
1854
1905
|
* />
|
|
1855
1906
|
* ```
|
|
1856
1907
|
*/
|
|
1857
|
-
declare function ReviewsTable({ title, reviewCount, reviewCountText, reviews, sortOptions,
|
|
1908
|
+
declare function ReviewsTable({ title, reviewCount, reviewCountText, reviews, sortOptions, actionButtonText, onAddNew, onSort, onReadMore, className, }: ReviewsTableProps): react_jsx_runtime.JSX.Element;
|
|
1858
1909
|
|
|
1859
1910
|
interface PostAuthor$2 {
|
|
1860
1911
|
id: string;
|
|
@@ -1885,10 +1936,6 @@ interface SortOption$7 {
|
|
|
1885
1936
|
id: string;
|
|
1886
1937
|
label: string;
|
|
1887
1938
|
}
|
|
1888
|
-
interface FilterOption$7 {
|
|
1889
|
-
id: string;
|
|
1890
|
-
label: string;
|
|
1891
|
-
}
|
|
1892
1939
|
interface UpvotingPostsTableProps {
|
|
1893
1940
|
/** Table title */
|
|
1894
1941
|
title?: string;
|
|
@@ -1901,7 +1948,10 @@ interface UpvotingPostsTableProps {
|
|
|
1901
1948
|
/** Sort options for the sort dropdown */
|
|
1902
1949
|
sortOptions?: SortOption$7[];
|
|
1903
1950
|
/** Filter options for the filter dropdown */
|
|
1904
|
-
filterOptions?:
|
|
1951
|
+
filterOptions?: {
|
|
1952
|
+
id: string;
|
|
1953
|
+
label: string;
|
|
1954
|
+
}[];
|
|
1905
1955
|
/** Primary action button text */
|
|
1906
1956
|
actionButtonText?: string;
|
|
1907
1957
|
/** Callback when add/action button is clicked */
|
|
@@ -1937,7 +1987,7 @@ interface UpvotingPostsTableProps {
|
|
|
1937
1987
|
* />
|
|
1938
1988
|
* ```
|
|
1939
1989
|
*/
|
|
1940
|
-
declare function UpvotingPostsTable({ title, subtitle, posts, currentUser, sortOptions,
|
|
1990
|
+
declare function UpvotingPostsTable({ title, subtitle, posts, currentUser, sortOptions, actionButtonText, onAddNew, onSort, onUpvote, onComment, onReply, onLike, className, }: UpvotingPostsTableProps): react_jsx_runtime.JSX.Element;
|
|
1941
1991
|
|
|
1942
1992
|
interface CommentAuthor {
|
|
1943
1993
|
id: string;
|
|
@@ -2225,10 +2275,6 @@ interface SortOption$6 {
|
|
|
2225
2275
|
id: string;
|
|
2226
2276
|
label: string;
|
|
2227
2277
|
}
|
|
2228
|
-
interface FilterOption$6 {
|
|
2229
|
-
id: string;
|
|
2230
|
-
label: string;
|
|
2231
|
-
}
|
|
2232
2278
|
interface StandardListWithImageProps {
|
|
2233
2279
|
/** Block title */
|
|
2234
2280
|
title?: string;
|
|
@@ -2239,7 +2285,10 @@ interface StandardListWithImageProps {
|
|
|
2239
2285
|
/** Sort options for the sort dropdown */
|
|
2240
2286
|
sortOptions?: SortOption$6[];
|
|
2241
2287
|
/** Filter options for the filter dropdown */
|
|
2242
|
-
filterOptions?:
|
|
2288
|
+
filterOptions?: {
|
|
2289
|
+
id: string;
|
|
2290
|
+
label: string;
|
|
2291
|
+
}[];
|
|
2243
2292
|
/** Callback when sort value changes */
|
|
2244
2293
|
onSort?: (value: string) => void;
|
|
2245
2294
|
/** Callback when filter value changes */
|
|
@@ -2266,7 +2315,7 @@ interface StandardListWithImageProps {
|
|
|
2266
2315
|
* />
|
|
2267
2316
|
* ```
|
|
2268
2317
|
*/
|
|
2269
|
-
declare function StandardListWithImage({ title, subtitle, items, sortOptions,
|
|
2318
|
+
declare function StandardListWithImage({ title, subtitle, items, sortOptions, onSort, onItemClick, className, }: StandardListWithImageProps): react_jsx_runtime.JSX.Element;
|
|
2270
2319
|
|
|
2271
2320
|
interface IconLabelConfig {
|
|
2272
2321
|
id: string;
|
|
@@ -2291,10 +2340,6 @@ interface SortOption$5 {
|
|
|
2291
2340
|
id: string;
|
|
2292
2341
|
label: string;
|
|
2293
2342
|
}
|
|
2294
|
-
interface FilterOption$5 {
|
|
2295
|
-
id: string;
|
|
2296
|
-
label: string;
|
|
2297
|
-
}
|
|
2298
2343
|
interface LargeImageLabelsListProps {
|
|
2299
2344
|
/** Section title */
|
|
2300
2345
|
title?: string;
|
|
@@ -2307,7 +2352,10 @@ interface LargeImageLabelsListProps {
|
|
|
2307
2352
|
/** Sort options for the sort dropdown */
|
|
2308
2353
|
sortOptions?: SortOption$5[];
|
|
2309
2354
|
/** Filter options for the filter dropdown */
|
|
2310
|
-
filterOptions?:
|
|
2355
|
+
filterOptions?: {
|
|
2356
|
+
id: string;
|
|
2357
|
+
label: string;
|
|
2358
|
+
}[];
|
|
2311
2359
|
/** Callback when sort value changes */
|
|
2312
2360
|
onSort?: (value: string) => void;
|
|
2313
2361
|
/** Callback when filter value changes */
|
|
@@ -2349,7 +2397,7 @@ interface LargeImageLabelsListProps {
|
|
|
2349
2397
|
* />
|
|
2350
2398
|
* ```
|
|
2351
2399
|
*/
|
|
2352
|
-
declare function LargeImageLabelsList({ title, resultCount, resultCountText, items, sortOptions,
|
|
2400
|
+
declare function LargeImageLabelsList({ title, resultCount, resultCountText, items, sortOptions, onSort, onFavorite, onItemClick, className, }: LargeImageLabelsListProps): react_jsx_runtime.JSX.Element;
|
|
2353
2401
|
|
|
2354
2402
|
interface ProgressListItem {
|
|
2355
2403
|
id: string;
|
|
@@ -2362,10 +2410,6 @@ interface SortOption$4 {
|
|
|
2362
2410
|
id: string;
|
|
2363
2411
|
label: string;
|
|
2364
2412
|
}
|
|
2365
|
-
interface FilterOption$4 {
|
|
2366
|
-
id: string;
|
|
2367
|
-
label: string;
|
|
2368
|
-
}
|
|
2369
2413
|
interface CircularProgressBarProps {
|
|
2370
2414
|
/** Progress percentage (0-100) */
|
|
2371
2415
|
progress: number;
|
|
@@ -2388,7 +2432,10 @@ interface CircularProgressBarListProps {
|
|
|
2388
2432
|
/** Sort options for the sort dropdown */
|
|
2389
2433
|
sortOptions?: SortOption$4[];
|
|
2390
2434
|
/** Filter options for the filter dropdown */
|
|
2391
|
-
filterOptions?:
|
|
2435
|
+
filterOptions?: {
|
|
2436
|
+
id: string;
|
|
2437
|
+
label: string;
|
|
2438
|
+
}[];
|
|
2392
2439
|
/** Callback when sort value changes */
|
|
2393
2440
|
onSort?: (value: string) => void;
|
|
2394
2441
|
/** Callback when filter value changes */
|
|
@@ -2422,7 +2469,7 @@ declare function CircularProgressBar({ progress, size, strokeWidth, className, }
|
|
|
2422
2469
|
* />
|
|
2423
2470
|
* ```
|
|
2424
2471
|
*/
|
|
2425
|
-
declare function CircularProgressBarList({ title, resultCount, resultCountText, items, sortOptions,
|
|
2472
|
+
declare function CircularProgressBarList({ title, resultCount, resultCountText, items, sortOptions, onSort, onItemAction, className, }: CircularProgressBarListProps): react_jsx_runtime.JSX.Element;
|
|
2426
2473
|
|
|
2427
2474
|
interface ActivityAuthor {
|
|
2428
2475
|
id: string;
|
|
@@ -2998,10 +3045,6 @@ interface SortOption$3 {
|
|
|
2998
3045
|
id: string;
|
|
2999
3046
|
label: string;
|
|
3000
3047
|
}
|
|
3001
|
-
interface FilterOption$3 {
|
|
3002
|
-
id: string;
|
|
3003
|
-
label: string;
|
|
3004
|
-
}
|
|
3005
3048
|
interface SlideshowGridTilesProps {
|
|
3006
3049
|
/** Block title */
|
|
3007
3050
|
title?: string;
|
|
@@ -3012,7 +3055,10 @@ interface SlideshowGridTilesProps {
|
|
|
3012
3055
|
/** Sort options for the sort dropdown */
|
|
3013
3056
|
sortOptions?: SortOption$3[];
|
|
3014
3057
|
/** Filter options for the filter dropdown */
|
|
3015
|
-
filterOptions?:
|
|
3058
|
+
filterOptions?: {
|
|
3059
|
+
id: string;
|
|
3060
|
+
label: string;
|
|
3061
|
+
}[];
|
|
3016
3062
|
/** Primary action button text */
|
|
3017
3063
|
actionButtonText?: string;
|
|
3018
3064
|
/** Callback when action button is clicked */
|
|
@@ -3044,7 +3090,7 @@ interface SlideshowGridTilesProps {
|
|
|
3044
3090
|
* />
|
|
3045
3091
|
* ```
|
|
3046
3092
|
*/
|
|
3047
|
-
declare function SlideshowGridTiles({ title, subtitle, items, sortOptions,
|
|
3093
|
+
declare function SlideshowGridTiles({ title, subtitle, items, sortOptions, actionButtonText, onAddNew, onSort, onSave, onItemClick, className, }: SlideshowGridTilesProps): react_jsx_runtime.JSX.Element;
|
|
3048
3094
|
|
|
3049
3095
|
interface GridTileItem {
|
|
3050
3096
|
id: string;
|
|
@@ -3069,10 +3115,6 @@ interface SortOption$2 {
|
|
|
3069
3115
|
id: string;
|
|
3070
3116
|
label: string;
|
|
3071
3117
|
}
|
|
3072
|
-
interface FilterOption$2 {
|
|
3073
|
-
id: string;
|
|
3074
|
-
label: string;
|
|
3075
|
-
}
|
|
3076
3118
|
interface GridTilesListProps {
|
|
3077
3119
|
/** Block title */
|
|
3078
3120
|
title?: string;
|
|
@@ -3085,7 +3127,10 @@ interface GridTilesListProps {
|
|
|
3085
3127
|
/** Sort options for the sort dropdown */
|
|
3086
3128
|
sortOptions?: SortOption$2[];
|
|
3087
3129
|
/** Filter options for the filter dropdown */
|
|
3088
|
-
filterOptions?:
|
|
3130
|
+
filterOptions?: {
|
|
3131
|
+
id: string;
|
|
3132
|
+
label: string;
|
|
3133
|
+
}[];
|
|
3089
3134
|
/** Primary action button text */
|
|
3090
3135
|
actionButtonText?: string;
|
|
3091
3136
|
/** Callback when action button is clicked */
|
|
@@ -3117,7 +3162,7 @@ interface GridTilesListProps {
|
|
|
3117
3162
|
* />
|
|
3118
3163
|
* ```
|
|
3119
3164
|
*/
|
|
3120
|
-
declare function GridTilesList({ title, subtitle, items, columns, sortOptions,
|
|
3165
|
+
declare function GridTilesList({ title, subtitle, items, columns, sortOptions, actionButtonText, onAddNew, onSort, onFavorite, onItemClick, className, }: GridTilesListProps): react_jsx_runtime.JSX.Element;
|
|
3121
3166
|
|
|
3122
3167
|
interface ProfileTileItem {
|
|
3123
3168
|
id: string;
|
|
@@ -3138,10 +3183,6 @@ interface SortOption$1 {
|
|
|
3138
3183
|
id: string;
|
|
3139
3184
|
label: string;
|
|
3140
3185
|
}
|
|
3141
|
-
interface FilterOption$1 {
|
|
3142
|
-
id: string;
|
|
3143
|
-
label: string;
|
|
3144
|
-
}
|
|
3145
3186
|
interface ProfileGridTilesListProps {
|
|
3146
3187
|
/** Block title */
|
|
3147
3188
|
title?: string;
|
|
@@ -3154,7 +3195,10 @@ interface ProfileGridTilesListProps {
|
|
|
3154
3195
|
/** Sort options for the sort dropdown */
|
|
3155
3196
|
sortOptions?: SortOption$1[];
|
|
3156
3197
|
/** Filter options for the filter dropdown */
|
|
3157
|
-
filterOptions?:
|
|
3198
|
+
filterOptions?: {
|
|
3199
|
+
id: string;
|
|
3200
|
+
label: string;
|
|
3201
|
+
}[];
|
|
3158
3202
|
/** Primary action button text */
|
|
3159
3203
|
actionButtonText?: string;
|
|
3160
3204
|
/** Callback when action button is clicked */
|
|
@@ -3184,7 +3228,7 @@ interface ProfileGridTilesListProps {
|
|
|
3184
3228
|
* />
|
|
3185
3229
|
* ```
|
|
3186
3230
|
*/
|
|
3187
|
-
declare function ProfileGridTilesList({ title, subtitle, items, columns, sortOptions,
|
|
3231
|
+
declare function ProfileGridTilesList({ title, subtitle, items, columns, sortOptions, actionButtonText, onAddNew, onSort, onItemClick, className, }: ProfileGridTilesListProps): react_jsx_runtime.JSX.Element;
|
|
3188
3232
|
|
|
3189
3233
|
interface FormFieldConfig {
|
|
3190
3234
|
id: string;
|
|
@@ -3210,10 +3254,6 @@ interface SortOption {
|
|
|
3210
3254
|
id: string;
|
|
3211
3255
|
label: string;
|
|
3212
3256
|
}
|
|
3213
|
-
interface FilterOption {
|
|
3214
|
-
id: string;
|
|
3215
|
-
label: string;
|
|
3216
|
-
}
|
|
3217
3257
|
interface FormGroupProps {
|
|
3218
3258
|
/** Form title */
|
|
3219
3259
|
title?: string;
|
|
@@ -3224,7 +3264,10 @@ interface FormGroupProps {
|
|
|
3224
3264
|
/** Sort options for the sort dropdown */
|
|
3225
3265
|
sortOptions?: SortOption[];
|
|
3226
3266
|
/** Filter options for the filter dropdown */
|
|
3227
|
-
filterOptions?:
|
|
3267
|
+
filterOptions?: {
|
|
3268
|
+
id: string;
|
|
3269
|
+
label: string;
|
|
3270
|
+
}[];
|
|
3228
3271
|
/** Primary action button text */
|
|
3229
3272
|
actionButtonText?: string;
|
|
3230
3273
|
/** Cancel button text */
|
|
@@ -3269,7 +3312,7 @@ interface FormGroupProps {
|
|
|
3269
3312
|
* />
|
|
3270
3313
|
* ```
|
|
3271
3314
|
*/
|
|
3272
|
-
declare function FormGroup({ title, description, rows, sortOptions,
|
|
3315
|
+
declare function FormGroup({ title, description, rows, sortOptions, actionButtonText, cancelButtonText, saveButtonText, inputSize, onAddNew, onSort, onCancel, onSave, onFieldChange, showHeader, showFooter, className, }: FormGroupProps): react_jsx_runtime.JSX.Element;
|
|
3273
3316
|
|
|
3274
3317
|
interface PricedDate {
|
|
3275
3318
|
date: Date;
|
|
@@ -4742,6 +4785,7 @@ interface ThemeState {
|
|
|
4742
4785
|
setBrandVibrancy: (vibrancy: number) => void;
|
|
4743
4786
|
setSyncRelatedColors: (sync: boolean) => void;
|
|
4744
4787
|
applyBrandHueVibrancy: (hue: number, vibrancy: number, skipPrimary?: boolean) => void;
|
|
4788
|
+
hasCustomizations: boolean;
|
|
4745
4789
|
}
|
|
4746
4790
|
|
|
4747
4791
|
type PanelId = "colors" | "images" | "typography" | "buttons" | "inputs" | "export";
|
|
@@ -4767,8 +4811,12 @@ interface ThemeDrawerProps {
|
|
|
4767
4811
|
storageKey?: string;
|
|
4768
4812
|
title?: string;
|
|
4769
4813
|
width?: number;
|
|
4814
|
+
readOnly?: boolean;
|
|
4815
|
+
docked?: boolean;
|
|
4816
|
+
stickyTopOffset?: number;
|
|
4817
|
+
children?: React__default.ReactNode;
|
|
4770
4818
|
}
|
|
4771
|
-
declare function ThemeDrawer({ devOnly, triggerPosition, defaultOpen, panels: enabledPanels, onThemeChange, onBrandingChange, onImagesChange, onImageUpload, onSave, initialOverrides, initialBranding, initialImages, initialCustomButtonStyles, storageKey, title, width, }: ThemeDrawerProps): react_jsx_runtime.JSX.Element | null;
|
|
4819
|
+
declare function ThemeDrawer({ devOnly, triggerPosition, defaultOpen, panels: enabledPanels, onThemeChange, onBrandingChange, onImagesChange, onImageUpload, onSave, initialOverrides, initialBranding, initialImages, initialCustomButtonStyles, storageKey, title, width, readOnly, docked, stickyTopOffset, children, }: ThemeDrawerProps): react_jsx_runtime.JSX.Element | null;
|
|
4772
4820
|
|
|
4773
4821
|
interface HslColorPickerProps {
|
|
4774
4822
|
value: string;
|
|
@@ -4793,4 +4841,4 @@ interface ColorInputRowProps {
|
|
|
4793
4841
|
*/
|
|
4794
4842
|
declare function ColorInputRow({ label, value, onChange, variableOptions, }: ColorInputRowProps): react_jsx_runtime.JSX.Element;
|
|
4795
4843
|
|
|
4796
|
-
export { AccountSettingsShell, type AccountTab, ActivityFeed, Avatar, AvatarFallback, AvatarImage, BadgesCard, BlogCards, BottomInputChatWidget, type BrandAsset, type BrandingState, Button, Calendar, CanvasItem, CategoryGrid, CenteredHero, ChatBubble, type ChatBubbleMessage, ChatDateSeparator, ChatInput, ChatMessageList, Checkbox, CheckboxWithLabel, CircularProgressBar, CircularProgressBarList, type CircularProgressBarListProps, type CircularProgressBarProps, ColorInputRow, ComponentPalette, ComponentSearch, ContentDropzone, ContentWithImage, CoreValuesGrid, CreditCardDisplay, CtaBanner, type CustomButtonStyle, CustomComponentHelper, DashboardShell, DateInput, DescriptionCard, DestinationCards, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DoubleSidebar, type DoubleSidebarSection, DoubleSidebarShell, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FaqAccordion, FaqsTable, FeatureWithImage, FeaturedNewsCards, FeaturedPlaces, FeaturesComparison, FileUploader, type FilterCheckboxGroupConfig, type FilterDateRangeConfig, type FilterDropdownConfig, type FilterOption
|
|
4844
|
+
export { AccountSettingsShell, type AccountTab, ActivityFeed, Avatar, AvatarFallback, AvatarImage, BadgesCard, BlogCards, BottomInputChatWidget, type BrandAsset, type BrandingState, Button, Calendar, CanvasItem, CategoryGrid, CenteredHero, ChatBubble, type ChatBubbleMessage, ChatDateSeparator, ChatInput, ChatMessageList, Checkbox, CheckboxWithLabel, CircularProgressBar, CircularProgressBarList, type CircularProgressBarListProps, type CircularProgressBarProps, ColorInputRow, ComponentPalette, ComponentSearch, ContentDropzone, ContentWithImage, CoreValuesGrid, CreditCardDisplay, CtaBanner, type CustomButtonStyle, CustomComponentHelper, DashboardShell, DateInput, DescriptionCard, DestinationCards, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DoubleSidebar, type DoubleSidebarSection, DoubleSidebarShell, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FaqAccordion, FaqsTable, FeatureWithImage, FeaturedNewsCards, FeaturedPlaces, FeaturesComparison, FileUploader, type FilterCheckboxGroupConfig, type FilterDateRangeConfig, type FilterDropdownConfig, type FilterOption, FilterPopover, type FilterState, FixedColumnDataTable, FlairBanner, FooterNavbar, FormGroup, GallerySection, GradientBanner, GridTilesList, Header, HeroDarkCentered, HeroDarkWithImage, HeroFullwidthImage, HeroSection, HowItWorks, HslColorPicker, type IconNavItemConfig, type IconShapeId, IconSidebar, IconSidebarShell, ImageFeedWithNestedComments, type ImageKey, ImageUploader, InfoCard, type InfoCardProps, Input, Label, LargeImageLabelsList, Sidebar as LayoutSidebar, type LineTab, LineTabs, type LinkItem, LinksCard, type LinksCardProps, Loader, LoginBrandingPanel, MenuSection, type MenufocusItem, MenufocusTemplate, type MenufocusTemplateProps, MessengerInput, MessengerSidebar, MetricsSection, MobileBottomNav, MobileMenuShell, type MobileNavTabConfig, MonthlyCalendarWidget, MultiselectCheckboxField, MultiselectTags, MultistepProgressBarShell, type MultistepProgressBarShellProps, type MultistepProgressBarStep, MultistepShell, MultistepSidebarShell, type NavItem, type NavSection, type NavTab, NestedCommentsTable, NestedDataTable, OfficeLocations, PageHeaderSection, Pagination, ParticipantList, type Persona, PersonaCard, PersonaGrid, PillTabs, type PillTabsProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortfolioCard, PreviewBrandingContext, PricingCards, PricingCta, ProfileCard, ProfileGridTilesList, ProfileImageUploader, ProgressBar, type ProjectContext, ProjectContextShell, type ProjectContextTab, PromptChipsRow, PromptTemplate, RadioGroup, RadioGroupItem, RangeInput, ReviewsGrid, ReviewsTable, type Screen, type ScreenConnection, ScreenFlowchart, ScreenPromptBuilder, ScreenPromptTemplate, type ScreenStatus, type ScreenType, ScrollArea, ScrollBar, SearchBar, SearchBarShell, SearchSidebar, Searchbox, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectablePills, Separator, SettingsListRow, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar$1 as Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarNav, SidebarProfileCard, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, SkillsCard, Slider, SlideshowGridTiles, SocialFeed, SocialProof, type SortOption$b as SortOption, StandardDataTable, StandardListWithImage, StandardPageShell, StatsCard, type Step, StepTracker, Switch, type TableColumn, type TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TeamCardsGrid, TeamCircularGrid, TestimonialCarousel, TextInput, Textarea, type ThemeBranding, ThemeContext, ThemeDrawer, type ThemeImages, ThemeProvider, type ThemeState, TitleGroup, type TitleGroupProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, UpvotingPostsTable, type VariableOption, VerticalHowItWorks, VerticalMultistepShell, VerticalStepTracker, VideoChatControls, VideoContentSection, VideoPlaylistCard, VideoPlaylistItem, WebcamPreview, YouTubePlayer, accountTabs, allColorVariables, blocks, broadcastCSSVariables, buttonVariants, canvasBlocks, cn, colorVariables, defaultBranding, defaultButtonColorStyles, defaultButtonColors, defaultButtonSizes, defaultColors, defaultCustomButtonStyles, defaultDoubleSidebarSections, defaultIconNavItems, defaultImages, defaultInputSizes, defaultProgressBarSteps, defaultSteps, defaultSupportLinks, defaultTypography, defaultVerticalSteps, getChildScreens, getScreenUrl, getTopLevelScreens, groupModalDrawerBlocks, layoutPrimitives, layoutShells, marketingBlocks, pageTemplates, pricingBlocks, removeCSSVariables, setCSSVariable, setCSSVariables, setupCSSVariableListener, useCSSVariableSync, useIsMobile, usePreviewBranding, useSidebar, useThemeBrandAssets, useThemeBranding, useThemeImages, videoBlocks };
|