@arc-ui/community-mcp 0.2.1 → 0.2.2
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.js +18532 -13525
- package/dist/types/components.d.ts +355 -27
- package/package.json +4 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React$1, { ReactNode, FC } from 'react';
|
|
2
|
+
import { NavigationHeaderActionProps } from '@arc-ui/components/NavigationHeader';
|
|
2
3
|
import { HeadingLevel, HeadingProps } from '@arc-ui/components/Heading';
|
|
3
4
|
import { ImageProps, ImageSourceProps } from '@arc-ui/components/Image';
|
|
4
5
|
import { DisclosureProps } from '@arc-ui/components/Disclosure';
|
|
@@ -16,6 +17,55 @@ import { TemplateBannerProps } from '@arc-ui/components/TemplateBanner';
|
|
|
16
17
|
import { TagProps } from '@arc-ui/components/Tag';
|
|
17
18
|
import { ReactPlayerProps } from 'react-player/types';
|
|
18
19
|
import { VerticalSpaceProps } from '@arc-ui/components/VerticalSpace';
|
|
20
|
+
import { SurfaceBackgroundColor } from '@arc-ui/components/Surface';
|
|
21
|
+
import { TabsItemProps } from '@arc-ui/components/Tabs';
|
|
22
|
+
|
|
23
|
+
declare const HeaderBarNotification: React$1.FC<HeaderBarNotificationProps>;
|
|
24
|
+
interface HeaderBarNotificationProps {
|
|
25
|
+
/**
|
|
26
|
+
* Header Element to attach the notifcation too.
|
|
27
|
+
*/
|
|
28
|
+
headerActionProps: NavigationHeaderActionProps;
|
|
29
|
+
/**
|
|
30
|
+
* Nofication ID used to store dismissal in users session
|
|
31
|
+
*/
|
|
32
|
+
notificationId: string;
|
|
33
|
+
/**
|
|
34
|
+
* Always show on every reload, ignore saving dismissal to users session
|
|
35
|
+
*/
|
|
36
|
+
isPersistant?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Notification Icon
|
|
39
|
+
*/
|
|
40
|
+
icon?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Notification Image
|
|
43
|
+
*/
|
|
44
|
+
image?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Notification Heading
|
|
47
|
+
*/
|
|
48
|
+
heading: string;
|
|
49
|
+
/**
|
|
50
|
+
* Notification tagline
|
|
51
|
+
*/
|
|
52
|
+
tagline?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Notification content
|
|
55
|
+
*/
|
|
56
|
+
children?: React$1.ReactNode;
|
|
57
|
+
/**
|
|
58
|
+
* Data for the button, click events and text
|
|
59
|
+
*/
|
|
60
|
+
button?: {
|
|
61
|
+
handleClick: () => void;
|
|
62
|
+
text: string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Specify a size or mutliple sizes where the notification only appears.
|
|
66
|
+
*/
|
|
67
|
+
showAtSize?: ("s" | "m" | "l" | "xl")[];
|
|
68
|
+
}
|
|
19
69
|
|
|
20
70
|
interface AccordionHeadingProps {
|
|
21
71
|
/**
|
|
@@ -203,7 +253,14 @@ interface CopyLeadProps {
|
|
|
203
253
|
|
|
204
254
|
declare const DownloadList: React$1.FC<DownloadListProps>;
|
|
205
255
|
interface DownloadListProps extends Omit<SectionHeadingProps, "isPadded"> {
|
|
256
|
+
/**
|
|
257
|
+
* Set the list of `Download` components.
|
|
258
|
+
*/
|
|
206
259
|
downloads: DownloadProps[];
|
|
260
|
+
/**
|
|
261
|
+
* Align the `Download` list below or to the right of the `SectionHeading`.
|
|
262
|
+
*/
|
|
263
|
+
alignment?: "below" | "right";
|
|
207
264
|
}
|
|
208
265
|
|
|
209
266
|
declare const FAQs: React$1.FC<FAQsProps>;
|
|
@@ -224,7 +281,8 @@ interface FeaturePostAppButtonFooter {
|
|
|
224
281
|
|
|
225
282
|
interface FeaturePostCtaFooter {
|
|
226
283
|
type: "cta";
|
|
227
|
-
|
|
284
|
+
/** CTA button options. The button style defaults to `secondary`. */
|
|
285
|
+
button: Pick<ButtonV2Props, "label" | "onClick" | "href" | "target" | "ariaLabel" | "buttonStyle">;
|
|
228
286
|
author?: AuthorProps;
|
|
229
287
|
}
|
|
230
288
|
|
|
@@ -318,26 +376,8 @@ interface HighlightsProps extends Omit<SectionHeadingProps, "isPadded"> {
|
|
|
318
376
|
* Optional CTA rendered at the end of Highlights.
|
|
319
377
|
* Only ONE CTA is allowed.
|
|
320
378
|
*/
|
|
321
|
-
cta?:
|
|
379
|
+
cta?: ButtonV2Props;
|
|
322
380
|
}
|
|
323
|
-
/**
|
|
324
|
-
* CTA configuration for Highlights
|
|
325
|
-
*/
|
|
326
|
-
type HighlightsCTAProps = Pick<ButtonV2Props, "label" | "href" | "onClick" | "iconPosition" | "ariaLabel" | "target"> & {
|
|
327
|
-
/**
|
|
328
|
-
* Allowed button styles only.
|
|
329
|
-
* Primary is intentionally NOT supported.
|
|
330
|
-
*/
|
|
331
|
-
buttonStyle: "secondary" | "compact";
|
|
332
|
-
/**
|
|
333
|
-
* Icon override & Active icon override
|
|
334
|
-
* - undefined → uses default BtIconArrowRightFill for compact style
|
|
335
|
-
* - null → icon disabled
|
|
336
|
-
* - string → custom icon
|
|
337
|
-
*/
|
|
338
|
-
icon?: string | null;
|
|
339
|
-
iconActive?: string | null;
|
|
340
|
-
};
|
|
341
381
|
|
|
342
382
|
/**
|
|
343
383
|
* Use `PromoListing` to give supporting information about a page or proposition in the form of the card components (`ImpactCard`, `InformationCard`, `MediaCard` and `TypographyCard`).
|
|
@@ -547,6 +587,11 @@ interface ArticleSidebarProps {
|
|
|
547
587
|
* Sharing options for the article.
|
|
548
588
|
*/
|
|
549
589
|
share?: Share;
|
|
590
|
+
/**
|
|
591
|
+
* The article URL used by the share buttons.
|
|
592
|
+
* If it is not provided, the component uses the current browser URL.
|
|
593
|
+
*/
|
|
594
|
+
url?: string;
|
|
550
595
|
}
|
|
551
596
|
|
|
552
597
|
type ListProps = InformationCardProps;
|
|
@@ -605,7 +650,7 @@ interface ContentInfoWidgetProps {
|
|
|
605
650
|
}
|
|
606
651
|
|
|
607
652
|
declare const ActionTile: React$1.FC<ActionTileProps>;
|
|
608
|
-
interface ActionTileProps
|
|
653
|
+
interface ActionTileProps {
|
|
609
654
|
/**
|
|
610
655
|
* Icon to display in default state
|
|
611
656
|
*/
|
|
@@ -618,6 +663,10 @@ interface ActionTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
618
663
|
* Heading text (required)
|
|
619
664
|
*/
|
|
620
665
|
heading: string;
|
|
666
|
+
/**
|
|
667
|
+
* Whether to use the compact tile variant
|
|
668
|
+
*/
|
|
669
|
+
isCompact?: boolean;
|
|
621
670
|
/**
|
|
622
671
|
* Whether the tile is in active/selected state
|
|
623
672
|
*/
|
|
@@ -625,7 +674,7 @@ interface ActionTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
625
674
|
/**
|
|
626
675
|
* Click handler
|
|
627
676
|
*/
|
|
628
|
-
onClick?:
|
|
677
|
+
onClick?: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
629
678
|
}
|
|
630
679
|
|
|
631
680
|
declare const LinkTile: React$1.FC<LinkTileProps>;
|
|
@@ -636,6 +685,8 @@ interface LinkTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
636
685
|
href?: string;
|
|
637
686
|
/** Whether to show the arrow icon. Defaults to true */
|
|
638
687
|
showIcon?: boolean;
|
|
688
|
+
/** Visual tone variant. Defaults to brand */
|
|
689
|
+
tone?: "brand" | "neutral";
|
|
639
690
|
}
|
|
640
691
|
|
|
641
692
|
declare const InlineLinkGroup: React$1.FC<InlineLinkGroupProps>;
|
|
@@ -646,6 +697,8 @@ interface InlineLinkGroupProps {
|
|
|
646
697
|
headingLevel?: "1" | "2" | "3" | "4" | "5" | "6";
|
|
647
698
|
/** Array of link items to display */
|
|
648
699
|
links: InlineLinkGroupItem[];
|
|
700
|
+
/** When true, removes the underline from links (shown only on focus). Defaults to false */
|
|
701
|
+
isImplied?: boolean;
|
|
649
702
|
}
|
|
650
703
|
interface InlineLinkGroupItem {
|
|
651
704
|
/** Display text for the link */
|
|
@@ -699,11 +752,16 @@ interface VideoCardPlayerProps {
|
|
|
699
752
|
playIconSize: "s" | "l";
|
|
700
753
|
thumbnail?: ReactPlayerProps["light"];
|
|
701
754
|
children?: React$1.ReactNode;
|
|
755
|
+
previewTabIndex?: number;
|
|
756
|
+
wrapper?: React$1.ReactNode;
|
|
757
|
+
fallback?: React$1.ReactNode;
|
|
702
758
|
}
|
|
703
759
|
|
|
704
760
|
interface VideoHeroCardContentProps {
|
|
705
761
|
title: string;
|
|
762
|
+
titleLevel?: HeadingLevel;
|
|
706
763
|
label: string;
|
|
764
|
+
labelLevel?: HeadingLevel;
|
|
707
765
|
description: string | ReactNode;
|
|
708
766
|
background: "dark" | "light";
|
|
709
767
|
videoDate?: string;
|
|
@@ -734,7 +792,9 @@ interface VideoPortraitCardProps {
|
|
|
734
792
|
*/
|
|
735
793
|
thumbnail?: {
|
|
736
794
|
title: string;
|
|
795
|
+
titleLevel?: HeadingLevel;
|
|
737
796
|
label: string;
|
|
797
|
+
labelLevel?: HeadingLevel;
|
|
738
798
|
img: string;
|
|
739
799
|
};
|
|
740
800
|
/**
|
|
@@ -764,16 +824,19 @@ interface BentoMediaCard extends Omit<MediaCardProps, "isContained" | "buttonIco
|
|
|
764
824
|
* Content structure for the bento grid layout within each tab.
|
|
765
825
|
* - card1 & card2: Can be either information or media cards
|
|
766
826
|
* - card3: Optional information card
|
|
767
|
-
* - card4: Typography card with label and url
|
|
827
|
+
* - card4: Typography card with label, heading and url
|
|
768
828
|
*/
|
|
769
829
|
type BentoGridContent = {
|
|
770
830
|
card1: BentoInformationCard | BentoMediaCard;
|
|
771
831
|
card2: BentoInformationCard | BentoMediaCard;
|
|
772
832
|
card3?: BentoInformationCard;
|
|
773
833
|
card4: {
|
|
774
|
-
url:
|
|
775
|
-
label?:
|
|
834
|
+
url: TypographyCardProps["url"];
|
|
835
|
+
label?: TypographyCardProps["label"];
|
|
836
|
+
/** Overrides the default heading if provided and is not falsey. */
|
|
837
|
+
heading?: string;
|
|
776
838
|
text?: TypographyCardProps["text"];
|
|
839
|
+
onClick?: TypographyCardProps["onClick"];
|
|
777
840
|
};
|
|
778
841
|
};
|
|
779
842
|
|
|
@@ -865,5 +928,270 @@ interface PartnerBrandLogosProps {
|
|
|
865
928
|
subgroups: PartnerLogosSubgroup[];
|
|
866
929
|
}
|
|
867
930
|
|
|
868
|
-
|
|
869
|
-
|
|
931
|
+
declare const ProductCard: React$1.FC<ProductCardProps>;
|
|
932
|
+
interface ProductCardProps {
|
|
933
|
+
heading: string;
|
|
934
|
+
headingLevel: HeadingLevel;
|
|
935
|
+
topSlot?: ReactNode;
|
|
936
|
+
bottomSlot?: ReactNode;
|
|
937
|
+
promoted?: {
|
|
938
|
+
content: ReactNode;
|
|
939
|
+
background: SurfaceBackgroundColor;
|
|
940
|
+
};
|
|
941
|
+
divider?: boolean;
|
|
942
|
+
button?: Omit<ButtonV2Props, "buttonStyle" | "isFullWidth">;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
declare const ProductCardBenefits: React$1.FC<ProductCardBenefitsProps>;
|
|
946
|
+
interface ProductCardBenefitsProps {
|
|
947
|
+
/** Heading displayed above the benefits list */
|
|
948
|
+
heading?: string;
|
|
949
|
+
/** heading level for accessibility */
|
|
950
|
+
headingLevel?: HeadingLevel;
|
|
951
|
+
/** List of benefits with associated icons */
|
|
952
|
+
benefits: {
|
|
953
|
+
benefit: string;
|
|
954
|
+
icon: string;
|
|
955
|
+
}[];
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
declare const ProductCardPriceIncrease: React$1.FC<ProductCardPriceIncreaseProps>;
|
|
959
|
+
interface ProductCardPriceIncreaseProps {
|
|
960
|
+
/** Heading displayed above the price increase list */
|
|
961
|
+
heading?: string;
|
|
962
|
+
/** heading level for accessibility */
|
|
963
|
+
headingLevel?: HeadingLevel;
|
|
964
|
+
/** List of price increase entries (e.g. ["£48.99 by April 2027"]) */
|
|
965
|
+
items: string[];
|
|
966
|
+
/** Optional prop to hide the left border */
|
|
967
|
+
hideBorder?: boolean;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
declare const ProductCardPrice: React$1.FC<ProductCardPriceProps>;
|
|
971
|
+
interface ProductCardPriceProps {
|
|
972
|
+
/** Text displayed above the price (e.g. "From") */
|
|
973
|
+
prefix?: string;
|
|
974
|
+
/** The price value (e.g. "£29.99") */
|
|
975
|
+
value: string;
|
|
976
|
+
/** Text displayed below the price (e.g. "a month per user") */
|
|
977
|
+
suffix?: string;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
declare const ProductCardGrid: React$1.FC<ProductCardGridProps>;
|
|
981
|
+
interface Tab extends TabsItemProps {
|
|
982
|
+
cards: React$1.ReactNode[];
|
|
983
|
+
}
|
|
984
|
+
interface ProductCardGridProps extends Omit<SectionHeadingProps, "isPadded" | "isCentered" | "image"> {
|
|
985
|
+
tabs?: Tab[];
|
|
986
|
+
expanded?: boolean;
|
|
987
|
+
hideTabs?: boolean;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
declare const SubHeaderCell: React$1.FC<SubHeaderCellProps>;
|
|
991
|
+
interface SubHeaderCellProps {
|
|
992
|
+
/**
|
|
993
|
+
* Price shown at the top of the sub-header cell (prefix, value, suffix).
|
|
994
|
+
*/
|
|
995
|
+
price: ProductCardPriceProps;
|
|
996
|
+
/**
|
|
997
|
+
* Optional upcoming price-increase details rendered beneath the price.
|
|
998
|
+
*/
|
|
999
|
+
priceIncrease?: ProductCardPriceIncreaseProps;
|
|
1000
|
+
/**
|
|
1001
|
+
* Optional call-to-action button rendered at the bottom of the cell. Rendered full-width.
|
|
1002
|
+
*/
|
|
1003
|
+
button?: ButtonV2Props;
|
|
1004
|
+
/**
|
|
1005
|
+
* Zero-based index of the column this cell belongs to. Used to highlight every other column, starting with the first.
|
|
1006
|
+
*/
|
|
1007
|
+
columnIndex?: number;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
interface ComparisonColumn {
|
|
1011
|
+
/**
|
|
1012
|
+
* Stable identifier for the column; used as a React key.
|
|
1013
|
+
*/
|
|
1014
|
+
id: string;
|
|
1015
|
+
/**
|
|
1016
|
+
* Visible label rendered in the column header cell (e.g. a plan name).
|
|
1017
|
+
*/
|
|
1018
|
+
label: string;
|
|
1019
|
+
/**
|
|
1020
|
+
* Optional promotional text displayed in a branded banner above the column
|
|
1021
|
+
* header label. When set, the banner is rendered inside the header cell with
|
|
1022
|
+
* a dark brand background.
|
|
1023
|
+
*/
|
|
1024
|
+
promoted?: string;
|
|
1025
|
+
/**
|
|
1026
|
+
* Optional sub-header content (price, upcoming price increase, call-to-action) rendered in a row beneath the header. When any column defines this, the sub-header row is shown.
|
|
1027
|
+
*/
|
|
1028
|
+
subheader?: SubHeaderCellProps;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
interface ComparisonSubRow {
|
|
1032
|
+
/**
|
|
1033
|
+
* One cell per column, in the same order as `columns`. Length MUST equal columns.length.
|
|
1034
|
+
*/
|
|
1035
|
+
cells: React$1.ReactNode[];
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
declare const FeatureCell: React$1.FC<FeatureCellProps>;
|
|
1039
|
+
interface FeatureCellProps {
|
|
1040
|
+
/**
|
|
1041
|
+
* Icon shown alongside the package name.
|
|
1042
|
+
*/
|
|
1043
|
+
icon: string;
|
|
1044
|
+
/**
|
|
1045
|
+
* Package / plan title.
|
|
1046
|
+
*/
|
|
1047
|
+
title: string;
|
|
1048
|
+
/**
|
|
1049
|
+
* Optional supporting copy shown beneath the title.
|
|
1050
|
+
*/
|
|
1051
|
+
description?: string;
|
|
1052
|
+
/**
|
|
1053
|
+
* Optional popover content shown when the user interacts with the info icon.
|
|
1054
|
+
*/
|
|
1055
|
+
popoverContent?: string | React$1.ReactNode;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
interface ComparisonRow {
|
|
1059
|
+
/**
|
|
1060
|
+
* Feature label rendered as the row's full-width header, spanning all columns above the content row(s).
|
|
1061
|
+
*/
|
|
1062
|
+
feature: FeatureCellProps;
|
|
1063
|
+
/**
|
|
1064
|
+
* One cell per column for the row's primary content row, in the same order as `columns`. Length MUST equal columns.length.
|
|
1065
|
+
*/
|
|
1066
|
+
cells: React$1.ReactNode[];
|
|
1067
|
+
/**
|
|
1068
|
+
* Optional additional content rows rendered beneath the primary row, for the less common case where a feature spans multiple rows.
|
|
1069
|
+
*/
|
|
1070
|
+
subRows?: ComparisonSubRow[];
|
|
1071
|
+
/**
|
|
1072
|
+
* Id of the `ComparisonSection` this row belongs to. Omit to render the row before all sections. An id with no matching section logs a dev warning and renders the row unsectioned.
|
|
1073
|
+
*/
|
|
1074
|
+
sectionId?: string;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
interface ComparisonSection {
|
|
1078
|
+
/**
|
|
1079
|
+
* Stable identifier for the section; used as a React key and to link the toggle to its content region for accessibility.
|
|
1080
|
+
*/
|
|
1081
|
+
id: string;
|
|
1082
|
+
/**
|
|
1083
|
+
* Heading shown in the section's toggle button.
|
|
1084
|
+
*/
|
|
1085
|
+
heading: React$1.ReactNode;
|
|
1086
|
+
/**
|
|
1087
|
+
* Heading level for the section heading, for correct document outline. Defaults to a sensible level.
|
|
1088
|
+
*/
|
|
1089
|
+
headingLevel?: HeadingLevel;
|
|
1090
|
+
/**
|
|
1091
|
+
* Initial open state when the section is uncontrolled. Defaults to `false`.
|
|
1092
|
+
*/
|
|
1093
|
+
defaultOpen?: boolean;
|
|
1094
|
+
/**
|
|
1095
|
+
* Controlled open state. When provided, the section is controlled and `onOpenChange` should update it.
|
|
1096
|
+
*/
|
|
1097
|
+
open?: boolean;
|
|
1098
|
+
/**
|
|
1099
|
+
* Called with the next open state when the toggle is activated. Required for controlled usage; optional otherwise.
|
|
1100
|
+
*/
|
|
1101
|
+
onOpenChange?: (open: boolean) => void;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
declare const ComparisonTable: React$1.FC<ComparisonTableProps>;
|
|
1105
|
+
interface ComparisonTableProps {
|
|
1106
|
+
/**
|
|
1107
|
+
* Column definitions driving the header cells and the number of content cells
|
|
1108
|
+
* per row. Each `ComparisonColumn` has:
|
|
1109
|
+
*
|
|
1110
|
+
* - `id` (`string`) — Stable identifier; used as a React key.
|
|
1111
|
+
* - `label` (`string`) — Visible text in the column header (e.g. a plan name).
|
|
1112
|
+
* - `promoted` (`string`, optional) — Promotional banner text shown above the label in a branded Surface.
|
|
1113
|
+
* - `subheader` (`SubHeaderCellProps`, optional) — Price, price-increase items, and a CTA button rendered in a row beneath the header.
|
|
1114
|
+
*/
|
|
1115
|
+
columns: ComparisonColumn[];
|
|
1116
|
+
/**
|
|
1117
|
+
* All rows. Rows without `sectionId` render first, before any sections. Rows
|
|
1118
|
+
* with a `sectionId` render inside the matching section, in input order. On
|
|
1119
|
+
* mobile each row is a full-width feature header above its content row(s); on
|
|
1120
|
+
* desktop the feature becomes the left-hand column of the row. Each
|
|
1121
|
+
* `ComparisonRow` has:
|
|
1122
|
+
*
|
|
1123
|
+
* - `feature` (`FeatureCellProps`) — Icon, title, description, and optional popover for the feature label.
|
|
1124
|
+
* - `cells` (`ReactNode[]`) — One cell per column, in the same order as `columns`. Supports strings or rich ReactNode content (e.g. tick/cross icons).
|
|
1125
|
+
* - `subRows` (`ComparisonSubRow[]`, optional) — Additional content rows beneath the primary row, for features spanning multiple rows.
|
|
1126
|
+
* - `sectionId` (`string`, optional) — Id of the section the row belongs to. An unknown id logs a dev warning and the row renders unsectioned.
|
|
1127
|
+
*/
|
|
1128
|
+
rows?: ComparisonRow[];
|
|
1129
|
+
/**
|
|
1130
|
+
* Section metadata only. Sections render in array order, after unsectioned
|
|
1131
|
+
* rows, each with a full-width toggle that expands or collapses the rows whose
|
|
1132
|
+
* `sectionId` matches. A section with no matching rows is hidden. Each `ComparisonSection` has:
|
|
1133
|
+
*
|
|
1134
|
+
* - `id` (`string`) — Stable identifier; used as a React key and for accessibility linking.
|
|
1135
|
+
* - `heading` (`ReactNode`) — Text shown in the section's toggle button.
|
|
1136
|
+
* - `headingLevel` (`HeadingLevel`, optional) — Semantic heading level for the document outline.
|
|
1137
|
+
* - `defaultOpen` (`boolean`, optional) — Initial open state when uncontrolled. Defaults to `false`.
|
|
1138
|
+
* - `open` (`boolean`, optional) — Controlled open state.
|
|
1139
|
+
* - `onOpenChange` (`(open: boolean) => void`, optional) — Callback for controlled usage.
|
|
1140
|
+
*/
|
|
1141
|
+
sections?: ComparisonSection[];
|
|
1142
|
+
/**
|
|
1143
|
+
* Optional controls. On mobile they render in a full-width cell beneath the header; on desktop they render in the left-hand feature column beside the sub-header. Omit to hide the control row entirely.
|
|
1144
|
+
*/
|
|
1145
|
+
controls?: React$1.ReactNode;
|
|
1146
|
+
/**
|
|
1147
|
+
* When `true`, wraps the table in a rounded, clipped container with an inset shadow overlay border. Defaults to `false`.
|
|
1148
|
+
*/
|
|
1149
|
+
hasBorder?: boolean;
|
|
1150
|
+
/**
|
|
1151
|
+
* When `true`, the desktop column header row sticks to the top of the scroll container as the body scrolls. Defaults to `false`.
|
|
1152
|
+
*/
|
|
1153
|
+
hasStickyHeader?: boolean;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
declare const HeaderCell: React$1.FC<HeaderCellProps>;
|
|
1157
|
+
interface HeaderCellProps {
|
|
1158
|
+
/**
|
|
1159
|
+
* Content rendered inside the column header cell (typically a column label).
|
|
1160
|
+
*/
|
|
1161
|
+
children?: string;
|
|
1162
|
+
/**
|
|
1163
|
+
* Zero-based index of the column this header cell belongs to. Used to highlight every other column, starting with the first.
|
|
1164
|
+
*/
|
|
1165
|
+
columnIndex?: number;
|
|
1166
|
+
/**
|
|
1167
|
+
* Optional promotional text displayed in a branded banner above the column label.
|
|
1168
|
+
*/
|
|
1169
|
+
promoted?: string;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
declare const Cell: React$1.FC<CellProps>;
|
|
1173
|
+
interface CellProps {
|
|
1174
|
+
/**
|
|
1175
|
+
* Content rendered inside the content cell (text or an Arc primitive such as a tick/cross).
|
|
1176
|
+
*/
|
|
1177
|
+
children?: React$1.ReactNode;
|
|
1178
|
+
/**
|
|
1179
|
+
* Zero-based index of the column this cell belongs to. Used to highlight every other column, starting with the first.
|
|
1180
|
+
*/
|
|
1181
|
+
columnIndex?: number;
|
|
1182
|
+
/**
|
|
1183
|
+
* Whether this cell sits in the last row of the table. Highlighted cells in the last row get rounded bottom corners.
|
|
1184
|
+
*/
|
|
1185
|
+
isLastRow?: boolean;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
declare const ControlCell: React$1.FC<ControlCellProps>;
|
|
1189
|
+
interface ControlCellProps {
|
|
1190
|
+
/**
|
|
1191
|
+
* Control content rendered for this column.
|
|
1192
|
+
*/
|
|
1193
|
+
children?: React$1.ReactNode;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
export { Accordion, ActionTile, ArticleCarousel, ArticleSidebar, Author, BannerWithTabs, BusinessSegmentSwitcher, Cell, ComparisonTable, ContentInfoWidget, ControlCell, CopyLead, DownloadList, FAQs, FeatureCell, FeaturePost, HeaderBarNotification, HeaderCell, Highlights, InlineLinkGroup, LinkTile, PartnerBrandLogos, ProductCard, ProductCardBenefits, ProductCardGrid, ProductCardPrice, ProductCardPriceIncrease, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, SubHeaderCell, Summary, ThumbnailSignpost, VideoHeroCard, VideoPortraitCard };
|
|
1197
|
+
export type { AccordionProps, ActionTileProps, ArticleCarouselProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, BentoGridContent, BentoInformationCard, BentoMediaCard, BusinessSegmentSwitcherProps, CellProps, ComparisonColumn, ComparisonRow, ComparisonSection, ComparisonSubRow, ComparisonTableProps, ContentInfoWidgetProps, ControlCellProps, CopyLeadProps, DownloadListProps, FAQsProps, FeatureCellProps, FeaturePostProps, HeaderBarNotificationProps, HeaderCellProps, HighlightsProps, InlineLinkGroupItem, InlineLinkGroupProps, LinkTileProps, ListProps, LogoTileItem, PartnerBrandLogosProps, PartnerLogosSubgroup, ProductCardBenefitsProps, ProductCardGridProps, ProductCardPriceIncreaseProps, ProductCardPriceProps, ProductCardProps, ProductNavigationProps, PromoListingProps, PromoListingThumbnailSignpostProps, QuoteProps, SectionHeadingProps, StatisticsProps, SubHeaderCellProps, SummaryProps, Tab, ThumbnailSignpostProps, VideoHeroCardProps, VideoPortraitCardProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arc-ui/community-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"homepage": "https://ui.digital-ent-int.bt.com",
|
|
6
6
|
"author": "BT Business Digital UI Team <ui-digital-ent-int@bt.com>",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"tslib": "^2.8.1",
|
|
31
31
|
"tsup": "^8.3.5",
|
|
32
32
|
"typescript": "^5.6.3",
|
|
33
|
-
"@arc-ui/community-components": "^3.
|
|
34
|
-
"@arc-ui/community-
|
|
35
|
-
"@arc-ui/community-
|
|
33
|
+
"@arc-ui/community-components": "^3.17.0",
|
|
34
|
+
"@arc-ui/community-eslint-config": "^0.1.2",
|
|
35
|
+
"@arc-ui/community-typescript-config": "^0.1.1"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"lint:ts": "eslint .",
|