@baseline-ui/mcp 1.0.0 → 1.2.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/CHANGELOG.md +4 -0
- package/dist/index.cjs +327 -21
- package/dist/index.js +327 -21
- package/package.json +1 -1
- package/sbom.json +13 -13
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -3085,7 +3085,11 @@ headerVariant?: | "title"
|
|
|
3085
3085
|
size="sm"
|
|
3086
3086
|
aria-label="Event date"
|
|
3087
3087
|
headerVariant="selectMonthAndYear"
|
|
3088
|
-
title="Date" />;`},{id:"core-forms-calendar--select-month-and-year-extra-small",name:"Select Month And Year Extra Small",snippet:'const SelectMonthAndYearExtraSmall = () => <Calendar size="xs" aria-label="Event date" headerVariant="selectMonthAndYear" />;'},{id:"core-forms-calendar--
|
|
3088
|
+
title="Date" />;`},{id:"core-forms-calendar--select-month-and-year-extra-small",name:"Select Month And Year Extra Small",snippet:'const SelectMonthAndYearExtraSmall = () => <Calendar size="xs" aria-label="Event date" headerVariant="selectMonthAndYear" />;'},{id:"core-forms-calendar--fixed-weeks",name:"Fixed Weeks",snippet:`const FixedWeeks = () => <Calendar
|
|
3089
|
+
size="sm"
|
|
3090
|
+
aria-label="Event date"
|
|
3091
|
+
defaultValue={parseDate("2024-09-15")}
|
|
3092
|
+
weeksInMonth={6} />;`},{id:"core-forms-calendar--international-calendar",name:"International Calendar",snippet:`const InternationalCalendar = () => {
|
|
3089
3093
|
const [locale, setLocale] = React.useState("th-TH");
|
|
3090
3094
|
|
|
3091
3095
|
return (
|
|
@@ -3141,6 +3145,23 @@ export const MinMaxCalendarExample: React.FC<
|
|
|
3141
3145
|
);
|
|
3142
3146
|
};
|
|
3143
3147
|
|
|
3148
|
+
export const HeaderCalendarExample: React.FC<
|
|
3149
|
+
Omit<CalendarProps, "defaultValue" | "value" | "minValue" | "maxValue"> & {
|
|
3150
|
+
defaultValue?: string;
|
|
3151
|
+
minValue?: string;
|
|
3152
|
+
maxValue?: string;
|
|
3153
|
+
}
|
|
3154
|
+
> = ({ defaultValue, minValue, maxValue, ...rest }) => {
|
|
3155
|
+
return (
|
|
3156
|
+
<Calendar
|
|
3157
|
+
{...rest}
|
|
3158
|
+
defaultValue={defaultValue ? parseDate(defaultValue) : undefined}
|
|
3159
|
+
minValue={minValue ? parseDate(minValue) : undefined}
|
|
3160
|
+
maxValue={maxValue ? parseDate(maxValue) : undefined}
|
|
3161
|
+
/>
|
|
3162
|
+
);
|
|
3163
|
+
};
|
|
3164
|
+
|
|
3144
3165
|
export const UnavailableCalendarExample: React.FC<
|
|
3145
3166
|
Omit<CalendarProps, "defaultValue" | "value" | "isDateUnavailable"> & {
|
|
3146
3167
|
defaultValue?: string;
|
|
@@ -3194,6 +3215,32 @@ export const InternationalRangeCalendarExample: React.FC<
|
|
|
3194
3215
|
);
|
|
3195
3216
|
};
|
|
3196
3217
|
|
|
3218
|
+
export const AnchorDateRangeCalendarExample: React.FC<
|
|
3219
|
+
Omit<RangeCalendarProps, "defaultValue" | "value" | "isDateUnavailable"> & {
|
|
3220
|
+
defaultValue?: { start: string; end: string };
|
|
3221
|
+
}
|
|
3222
|
+
> = ({ defaultValue, ...rest }) => {
|
|
3223
|
+
return (
|
|
3224
|
+
<RangeCalendar
|
|
3225
|
+
{...rest}
|
|
3226
|
+
defaultValue={
|
|
3227
|
+
defaultValue
|
|
3228
|
+
? {
|
|
3229
|
+
start: parseDate(defaultValue.start),
|
|
3230
|
+
end: parseDate(defaultValue.end),
|
|
3231
|
+
}
|
|
3232
|
+
: undefined
|
|
3233
|
+
}
|
|
3234
|
+
// Marks dates more than a week from the in-progress selection anchor as
|
|
3235
|
+
// unavailable. \`anchorDate\` is null until a start date is picked, so this
|
|
3236
|
+
// exercises the second argument react-aria passes to \`isDateUnavailable\`.
|
|
3237
|
+
isDateUnavailable={(date, anchorDate) =>
|
|
3238
|
+
anchorDate ? Math.abs(date.compare(anchorDate)) > 7 : false
|
|
3239
|
+
}
|
|
3240
|
+
/>
|
|
3241
|
+
);
|
|
3242
|
+
};
|
|
3243
|
+
|
|
3197
3244
|
export const RangeCalendarExample: React.FC<
|
|
3198
3245
|
Omit<RangeCalendarProps, "defaultValue" | "value"> & {
|
|
3199
3246
|
defaultValue?: { start: string; end: string };
|
|
@@ -3476,7 +3523,14 @@ headerVariant?: | "title"
|
|
|
3476
3523
|
size="sm"
|
|
3477
3524
|
aria-label="Trip dates"
|
|
3478
3525
|
minValue={today(getLocalTimeZone())}
|
|
3479
|
-
maxValue={today(getLocalTimeZone()).add({ months: 1 })} />;`},{id:"core-forms-rangecalendar--
|
|
3526
|
+
maxValue={today(getLocalTimeZone()).add({ months: 1 })} />;`},{id:"core-forms-rangecalendar--fixed-weeks",name:"Fixed Weeks",snippet:`const FixedWeeks = () => <RangeCalendar
|
|
3527
|
+
size="sm"
|
|
3528
|
+
aria-label="Trip dates"
|
|
3529
|
+
defaultValue={{
|
|
3530
|
+
start: parseDate("2024-09-02"),
|
|
3531
|
+
end: parseDate("2024-09-11"),
|
|
3532
|
+
}}
|
|
3533
|
+
weeksInMonth={6} />;`},{id:"core-forms-rangecalendar--unavailable-dates",name:"Unavailable Dates",snippet:`const UnavailableDates = () => <RangeCalendar
|
|
3480
3534
|
size="sm"
|
|
3481
3535
|
aria-label="Trip dates"
|
|
3482
3536
|
defaultValue={{
|
|
@@ -3553,6 +3607,23 @@ export const MinMaxCalendarExample: React.FC<
|
|
|
3553
3607
|
);
|
|
3554
3608
|
};
|
|
3555
3609
|
|
|
3610
|
+
export const HeaderCalendarExample: React.FC<
|
|
3611
|
+
Omit<CalendarProps, "defaultValue" | "value" | "minValue" | "maxValue"> & {
|
|
3612
|
+
defaultValue?: string;
|
|
3613
|
+
minValue?: string;
|
|
3614
|
+
maxValue?: string;
|
|
3615
|
+
}
|
|
3616
|
+
> = ({ defaultValue, minValue, maxValue, ...rest }) => {
|
|
3617
|
+
return (
|
|
3618
|
+
<Calendar
|
|
3619
|
+
{...rest}
|
|
3620
|
+
defaultValue={defaultValue ? parseDate(defaultValue) : undefined}
|
|
3621
|
+
minValue={minValue ? parseDate(minValue) : undefined}
|
|
3622
|
+
maxValue={maxValue ? parseDate(maxValue) : undefined}
|
|
3623
|
+
/>
|
|
3624
|
+
);
|
|
3625
|
+
};
|
|
3626
|
+
|
|
3556
3627
|
export const UnavailableCalendarExample: React.FC<
|
|
3557
3628
|
Omit<CalendarProps, "defaultValue" | "value" | "isDateUnavailable"> & {
|
|
3558
3629
|
defaultValue?: string;
|
|
@@ -3606,6 +3677,32 @@ export const InternationalRangeCalendarExample: React.FC<
|
|
|
3606
3677
|
);
|
|
3607
3678
|
};
|
|
3608
3679
|
|
|
3680
|
+
export const AnchorDateRangeCalendarExample: React.FC<
|
|
3681
|
+
Omit<RangeCalendarProps, "defaultValue" | "value" | "isDateUnavailable"> & {
|
|
3682
|
+
defaultValue?: { start: string; end: string };
|
|
3683
|
+
}
|
|
3684
|
+
> = ({ defaultValue, ...rest }) => {
|
|
3685
|
+
return (
|
|
3686
|
+
<RangeCalendar
|
|
3687
|
+
{...rest}
|
|
3688
|
+
defaultValue={
|
|
3689
|
+
defaultValue
|
|
3690
|
+
? {
|
|
3691
|
+
start: parseDate(defaultValue.start),
|
|
3692
|
+
end: parseDate(defaultValue.end),
|
|
3693
|
+
}
|
|
3694
|
+
: undefined
|
|
3695
|
+
}
|
|
3696
|
+
// Marks dates more than a week from the in-progress selection anchor as
|
|
3697
|
+
// unavailable. \`anchorDate\` is null until a start date is picked, so this
|
|
3698
|
+
// exercises the second argument react-aria passes to \`isDateUnavailable\`.
|
|
3699
|
+
isDateUnavailable={(date, anchorDate) =>
|
|
3700
|
+
anchorDate ? Math.abs(date.compare(anchorDate)) > 7 : false
|
|
3701
|
+
}
|
|
3702
|
+
/>
|
|
3703
|
+
);
|
|
3704
|
+
};
|
|
3705
|
+
|
|
3609
3706
|
export const RangeCalendarExample: React.FC<
|
|
3610
3707
|
Omit<RangeCalendarProps, "defaultValue" | "value"> & {
|
|
3611
3708
|
defaultValue?: { start: string; end: string };
|
|
@@ -6006,6 +6103,7 @@ By default, the \`Dialog\` component traps focus within the dialog. This means t
|
|
|
6006
6103
|
| <kbd>Tab</kbd> | Move focus to the next focusable element in the dialog. If focus is on the last element, move focus to the first focusable element. |`,props:`interface DialogProps {
|
|
6007
6104
|
/**
|
|
6008
6105
|
* The accessibility role for the dialog.
|
|
6106
|
+
*
|
|
6009
6107
|
* @default 'dialog'
|
|
6010
6108
|
*/
|
|
6011
6109
|
role?: 'dialog' | 'alertdialog'
|
|
@@ -6811,6 +6909,7 @@ className?: string
|
|
|
6811
6909
|
style?: React.CSSProperties
|
|
6812
6910
|
/**
|
|
6813
6911
|
* The accessibility role for the dialog.
|
|
6912
|
+
*
|
|
6814
6913
|
* @default 'dialog'
|
|
6815
6914
|
*/
|
|
6816
6915
|
role?: 'dialog' | 'alertdialog'
|
|
@@ -9406,6 +9505,22 @@ export const GridListExample: React.FC<GridListExampleProps> = (props) => {
|
|
|
9406
9505
|
);
|
|
9407
9506
|
};
|
|
9408
9507
|
|
|
9508
|
+
// Renders a focusable element before the grid so a spec can Tab into the grid
|
|
9509
|
+
// from a known in-frame origin (reliable across normal/shadow/iframe DOM
|
|
9510
|
+
// modes), exercising the keyboard-entry behavior of \`UNSTABLE_focusOnEntry\`.
|
|
9511
|
+
export const GridListFocusOnEntryExample: React.FC<GridListExampleProps> = (
|
|
9512
|
+
props,
|
|
9513
|
+
) => {
|
|
9514
|
+
return (
|
|
9515
|
+
<>
|
|
9516
|
+
<button type="button" data-testid="before-grid">
|
|
9517
|
+
before
|
|
9518
|
+
</button>
|
|
9519
|
+
<GridListExample {...props} />
|
|
9520
|
+
</>
|
|
9521
|
+
);
|
|
9522
|
+
};
|
|
9523
|
+
|
|
9409
9524
|
export const GridListControlledExample: React.FC<GridListExampleProps> = (
|
|
9410
9525
|
props,
|
|
9411
9526
|
) => {
|
|
@@ -11862,6 +11977,7 @@ shouldUseSymbol?: boolean
|
|
|
11862
11977
|
isDisabled?: boolean
|
|
11863
11978
|
/**
|
|
11864
11979
|
* The HTML element used to render the link, e.g. 'a', or 'span'.
|
|
11980
|
+
*
|
|
11865
11981
|
* @default 'a'
|
|
11866
11982
|
*/
|
|
11867
11983
|
elementType?: string
|
|
@@ -12067,10 +12183,13 @@ renderDragPreview?: (items: DragItem[]) => React.JSX.Element
|
|
|
12067
12183
|
*
|
|
12068
12184
|
* @param section ListSection
|
|
12069
12185
|
* @param ref React.RefObject<HTMLDivElement>
|
|
12186
|
+
* @param headingProps ARIA props for the heading element \u2014 spread these onto the header's
|
|
12187
|
+
* root (and attach \`ref\`) so the section group's \`aria-labelledby\` resolves to it.
|
|
12070
12188
|
*/
|
|
12071
12189
|
renderSectionHeader?: (
|
|
12072
12190
|
section: Node<ListItem>,
|
|
12073
12191
|
ref: React.Ref<HTMLSpanElement>,
|
|
12192
|
+
headingProps?: React.HTMLAttributes<HTMLElement>,
|
|
12074
12193
|
) => React.ReactNode
|
|
12075
12194
|
/**
|
|
12076
12195
|
* Whether to show the selected checkmark icon.
|
|
@@ -12828,6 +12947,7 @@ defaultOpen?: boolean
|
|
|
12828
12947
|
onOpenChange?: (isOpen: boolean) => void
|
|
12829
12948
|
/**
|
|
12830
12949
|
* How the menu is triggered.
|
|
12950
|
+
*
|
|
12831
12951
|
* @default 'press'
|
|
12832
12952
|
*/
|
|
12833
12953
|
trigger?: 'press' | 'longPress'
|
|
@@ -12935,6 +13055,7 @@ placement?: any
|
|
|
12935
13055
|
)} />;`}],implementation:`import React from "react";
|
|
12936
13056
|
|
|
12937
13057
|
import { Menu } from "../Menu";
|
|
13058
|
+
import { items } from "./data";
|
|
12938
13059
|
|
|
12939
13060
|
import type { MenuProps } from "../Menu.types";
|
|
12940
13061
|
|
|
@@ -12944,6 +13065,28 @@ export const MenuExample: React.FC<
|
|
|
12944
13065
|
}
|
|
12945
13066
|
> = ({ label, ...props }) => {
|
|
12946
13067
|
return <Menu {...props} triggerLabel={label} />;
|
|
13068
|
+
};
|
|
13069
|
+
|
|
13070
|
+
// Renders the (key, value) pair react-aria now passes to \`onAction\` so a spec
|
|
13071
|
+
// can assert the activated item's value is forwarded alongside its key.
|
|
13072
|
+
export const MenuActionValueExample: React.FC<{ label: string }> = ({
|
|
13073
|
+
label,
|
|
13074
|
+
}) => {
|
|
13075
|
+
const [received, setReceived] = React.useState("");
|
|
13076
|
+
return (
|
|
13077
|
+
<>
|
|
13078
|
+
<Menu
|
|
13079
|
+
items={items}
|
|
13080
|
+
triggerLabel={label}
|
|
13081
|
+
onAction={(key, value) => {
|
|
13082
|
+
setReceived(
|
|
13083
|
+
\`\${String(key)}:\${value && "label" in value ? value.label : ""}\`,
|
|
13084
|
+
);
|
|
13085
|
+
}}
|
|
13086
|
+
/>
|
|
13087
|
+
<div data-testid="menu-action-value">{received}</div>
|
|
13088
|
+
</>
|
|
13089
|
+
);
|
|
12947
13090
|
};`},similarTo:[],figmaUrl:null},MessageFormat:{id:"core-utilities-messageformat",breadcrumb:"Core/Utilities/MessageFormat",importStatement:'import { MessageFormat } from "@baseline-ui/core";',description:"`MessageFormat` is a component for formatting messages. This is built on top of [react-intl](https://formatjs.io/docs/react-intl/).",documentation:`\`MessageFormat\` is a component for formatting messages. This is built on top of [react-intl](https://formatjs.io/docs/react-intl/).
|
|
12948
13091
|
|
|
12949
13092
|
\`\`\`jsx
|
|
@@ -15746,6 +15889,31 @@ export const PopoverExample: React.FC<{
|
|
|
15746
15889
|
);
|
|
15747
15890
|
};
|
|
15748
15891
|
|
|
15892
|
+
export const PopoverGetTargetRectExample: React.FC = () => {
|
|
15893
|
+
const [called, setCalled] = useState(false);
|
|
15894
|
+
|
|
15895
|
+
return (
|
|
15896
|
+
<Popover type="dialog" defaultOpen={true}>
|
|
15897
|
+
<PopoverTrigger>
|
|
15898
|
+
<ActionButton label="Open" />
|
|
15899
|
+
</PopoverTrigger>
|
|
15900
|
+
<PopoverContent
|
|
15901
|
+
// Returns the trigger's own rect (so positioning is unchanged) while
|
|
15902
|
+
// recording that react-aria invoked the forwarded callback.
|
|
15903
|
+
getTargetRect={(target) => {
|
|
15904
|
+
setCalled(true);
|
|
15905
|
+
return target.getBoundingClientRect();
|
|
15906
|
+
}}
|
|
15907
|
+
>
|
|
15908
|
+
<Dialog size="content" aria-label="content">
|
|
15909
|
+
<Text type="label">getTargetRect content</Text>
|
|
15910
|
+
{called ? <span data-testid="popover-target-rect-called" /> : null}
|
|
15911
|
+
</Dialog>
|
|
15912
|
+
</PopoverContent>
|
|
15913
|
+
</Popover>
|
|
15914
|
+
);
|
|
15915
|
+
};
|
|
15916
|
+
|
|
15749
15917
|
export const PopoverWithScrollableContentExample: React.FC<{
|
|
15750
15918
|
popoverProps: Omit<PopoverProps, "children">;
|
|
15751
15919
|
popoverContentProps?: Omit<PopoverContentProps, "children">;
|
|
@@ -16794,6 +16962,7 @@ export const PopoverHorizontalBoundaryBehaviorDemo: React.FC<{
|
|
|
16794
16962
|
};`},similarTo:[],figmaUrl:null},Portal:{id:"core-utilities-portal",breadcrumb:"Core/Utilities/Portal",importStatement:'import { Portal } from "@baseline-ui/core";',description:"`Portal` renders its children into an overlay portal outside the normal React DOM hierarchy. It integrates with `ThemeProvider` so that the portal content inherits the current theme and virtual keyboard handling configuration.",documentation:'`Portal` renders its children into an overlay portal outside the normal React DOM hierarchy. It integrates with `ThemeProvider` so that the portal content inherits the current theme and virtual keyboard handling configuration.\n\n* Renders children into an overlay container managed by React Aria\n* Automatically wraps children in a `ThemeProvider` to propagate the active theme into the portal\n* Respects a custom `portalContainer` provided via prop or the nearest `PortalContainerProvider` in context\n* Supports all standard `StylingProps` (`className`, `style`, `data-block-id`, `data-block-class`)\n\n```jsx\nimport { Portal } from "@baseline-ui/core";\n\nexport default function App() {\n return (\n <Portal>\n <div>I am rendered in a portal</div>\n </Portal>\n );\n}\n```\n\nPass a `portalContainer` element to render the portal inside a specific DOM node instead of the default overlay container. This is useful when rendering inside Shadow DOM or other isolated subtrees.\n\n```jsx\nimport { Portal } from "@baseline-ui/core";\n\nconst shadowRoot = document.querySelector("#shadow-host").shadowRoot;\nconst container = shadowRoot.querySelector(".portal-root");\n\nexport default function App() {\n return (\n <Portal portalContainer={container}>\n <div>Rendered inside shadow DOM</div>\n </Portal>\n );\n}\n```',props:`interface PortalProps {
|
|
16795
16963
|
/**
|
|
16796
16964
|
* The container element in which the overlay portal will be placed.
|
|
16965
|
+
*
|
|
16797
16966
|
* @default document.body
|
|
16798
16967
|
*/
|
|
16799
16968
|
portalContainer?: Element
|
|
@@ -18779,6 +18948,28 @@ export const SelectExample: React.FC<
|
|
|
18779
18948
|
);
|
|
18780
18949
|
};
|
|
18781
18950
|
|
|
18951
|
+
export const SelectGetTargetRectExample: React.FC = () => {
|
|
18952
|
+
const [called, setCalled] = React.useState(false);
|
|
18953
|
+
|
|
18954
|
+
return (
|
|
18955
|
+
<>
|
|
18956
|
+
<Select
|
|
18957
|
+
aria-label="Choose an item"
|
|
18958
|
+
placeholder="Choose an item"
|
|
18959
|
+
items={items}
|
|
18960
|
+
defaultOpen={true}
|
|
18961
|
+
// Returns the trigger's own rect (so positioning is unchanged) while
|
|
18962
|
+
// recording that the popover invoked the forwarded callback.
|
|
18963
|
+
getTargetRect={(target) => {
|
|
18964
|
+
setCalled(true);
|
|
18965
|
+
return target.getBoundingClientRect();
|
|
18966
|
+
}}
|
|
18967
|
+
/>
|
|
18968
|
+
{called ? <span data-testid="select-target-rect-called" /> : null}
|
|
18969
|
+
</>
|
|
18970
|
+
);
|
|
18971
|
+
};
|
|
18972
|
+
|
|
18782
18973
|
export const SelectCustomTriggerExample: React.FC<
|
|
18783
18974
|
Omit<React.ComponentProps<typeof Select>, "items">
|
|
18784
18975
|
> = (args) => {
|
|
@@ -18886,6 +19077,7 @@ import { Separator } from "../../utils";
|
|
|
18886
19077
|
| \\[data-orientation] | The orientation of the separator. It can be \`horizontal\` or \`vertical\`. |`,props:`interface SeparatorProps {
|
|
18887
19078
|
/**
|
|
18888
19079
|
* The orientation of the separator.
|
|
19080
|
+
*
|
|
18889
19081
|
* @default 'horizontal'
|
|
18890
19082
|
*/
|
|
18891
19083
|
orientation?: "horizontal" | "vertical"
|
|
@@ -20747,22 +20939,32 @@ Use the \`renderEmptyState\` prop on \`TableBody\` to display a message when the
|
|
|
20747
20939
|
*
|
|
20748
20940
|
* Requirements:
|
|
20749
20941
|
*
|
|
20750
|
-
*
|
|
20751
|
-
*
|
|
20752
|
-
*
|
|
20942
|
+
* - You must render the expected element type (e.g. if \`<button>\` is expected, you cannot render an
|
|
20943
|
+
* \`<a>\`).
|
|
20944
|
+
* - Only a single root DOM element can be rendered (no fragments).
|
|
20945
|
+
* - You must pass through props and ref to the underlying DOM element, merging with your own prop
|
|
20946
|
+
* as appropriate.
|
|
20753
20947
|
*/
|
|
20754
|
-
render?: (
|
|
20948
|
+
render?: (
|
|
20949
|
+
props: React.JSX.IntrinsicElements[E],
|
|
20950
|
+
renderProps: T
|
|
20951
|
+
) => ReactElement
|
|
20755
20952
|
/**
|
|
20756
|
-
* The CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the
|
|
20953
|
+
* The CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the
|
|
20954
|
+
* element. A function may be provided to compute the class based on component state.
|
|
20757
20955
|
*/
|
|
20758
|
-
className?:
|
|
20956
|
+
className?: | string
|
|
20957
|
+
| ((values: T & {defaultClassName: string | undefined}) => string)
|
|
20759
20958
|
/**
|
|
20760
|
-
* The inline [style](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style) for the
|
|
20959
|
+
* The inline [style](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style) for the
|
|
20960
|
+
* element. A function may be provided to compute the style based on component state.
|
|
20761
20961
|
*/
|
|
20762
|
-
style?:
|
|
20962
|
+
style?: | CSSProperties
|
|
20963
|
+
| ((values: T & {defaultStyle: CSSProperties}) => CSSProperties | undefined)
|
|
20763
20964
|
/**
|
|
20764
|
-
* A slot name for the component. Slots allow the component to receive props from a parent
|
|
20765
|
-
* An explicit \`null\` value indicates that the local props completely override all
|
|
20965
|
+
* A slot name for the component. Slots allow the component to receive props from a parent
|
|
20966
|
+
* component. An explicit \`null\` value indicates that the local props completely override all
|
|
20967
|
+
* props received from a parent.
|
|
20766
20968
|
*/
|
|
20767
20969
|
slot?: string | null
|
|
20768
20970
|
/**
|
|
@@ -20771,12 +20973,14 @@ slot?: string | null
|
|
|
20771
20973
|
children?: ReactNode
|
|
20772
20974
|
/**
|
|
20773
20975
|
* How multiple selection should behave in the collection.
|
|
20774
|
-
*
|
|
20976
|
+
*
|
|
20977
|
+
* @default 'toggle'
|
|
20775
20978
|
*/
|
|
20776
20979
|
selectionBehavior?: SelectionBehavior
|
|
20777
20980
|
/**
|
|
20778
20981
|
* Whether \`disabledKeys\` applies to all interactions, or only selection.
|
|
20779
|
-
*
|
|
20982
|
+
*
|
|
20983
|
+
* @default 'all'
|
|
20780
20984
|
*/
|
|
20781
20985
|
disabledBehavior?: DisabledBehavior
|
|
20782
20986
|
/**
|
|
@@ -20784,7 +20988,8 @@ disabledBehavior?: DisabledBehavior
|
|
|
20784
20988
|
*/
|
|
20785
20989
|
onRowAction?: (key: Key) => void
|
|
20786
20990
|
/**
|
|
20787
|
-
* The drag and drop hooks returned by \`useDragAndDrop\` used to enable drag and drop behavior for
|
|
20991
|
+
* The drag and drop hooks returned by \`useDragAndDrop\` used to enable drag and drop behavior for
|
|
20992
|
+
* the Table.
|
|
20788
20993
|
*/
|
|
20789
20994
|
dragAndDropHooks?: DragHooks<T> & DropHooks
|
|
20790
20995
|
}`,stories:{usage:[{id:"core-collections-table--default",name:"Default",snippet:"const Default = () => <BasicTableExample />;",description:"Basic table with columns and rows, no interactivity"},{id:"core-collections-table--single-selection",name:"Single Selection",snippet:"const SingleSelection = () => <SingleSelectionTableExample />;",description:"Single selection mode with controlled state"},{id:"core-collections-table--multiple-selection",name:"Multiple Selection",snippet:"const MultipleSelection = () => <MultipleSelectionTableExample />;",description:"Multiple selection mode with checkbox column and select-all header"},{id:"core-collections-table--sorting",name:"Sorting",snippet:"const Sorting = () => <SortableTableExample />;",description:"Sortable columns with sort descriptor and client-side sorting"},{id:"core-collections-table--empty",name:"Empty",snippet:"const Empty = () => <EmptyTableExample />;",description:"Empty table with no rows"},{id:"core-collections-table--row-action",name:"Row Action",snippet:`const RowAction = () => (
|
|
@@ -25761,22 +25966,28 @@ onOpenChange?: (isOpen: boolean) => void
|
|
|
25761
25966
|
*/
|
|
25762
25967
|
isDisabled?: boolean
|
|
25763
25968
|
/**
|
|
25764
|
-
* The delay time for the tooltip to show up. [See
|
|
25969
|
+
* The delay time for the tooltip to show up. [See
|
|
25970
|
+
* guidelines](https://spectrum.adobe.com/page/tooltip/#Immediate-or-delayed-appearance).
|
|
25971
|
+
*
|
|
25765
25972
|
* @default 1500
|
|
25766
25973
|
*/
|
|
25767
25974
|
delay?: number
|
|
25768
25975
|
/**
|
|
25769
|
-
* The delay time for the tooltip to close. [See
|
|
25976
|
+
* The delay time for the tooltip to close. [See
|
|
25977
|
+
* guidelines](https://spectrum.adobe.com/page/tooltip/#Warmup-and-cooldown).
|
|
25978
|
+
*
|
|
25770
25979
|
* @default 500
|
|
25771
25980
|
*/
|
|
25772
25981
|
closeDelay?: number
|
|
25773
25982
|
/**
|
|
25774
25983
|
* By default, opens for both focus and hover. Can be made to open only for focus.
|
|
25984
|
+
*
|
|
25775
25985
|
* @default 'hover'
|
|
25776
25986
|
*/
|
|
25777
25987
|
trigger?: 'hover' | 'focus'
|
|
25778
25988
|
/**
|
|
25779
25989
|
* Whether the tooltip should close when the trigger is pressed.
|
|
25990
|
+
*
|
|
25780
25991
|
* @default true
|
|
25781
25992
|
*/
|
|
25782
25993
|
shouldCloseOnPress?: boolean
|
|
@@ -25897,9 +26108,10 @@ placement?: any
|
|
|
25897
26108
|
<Text>Tooltip is: {isOpen ? "open" : "closed"}</Text>
|
|
25898
26109
|
</div>
|
|
25899
26110
|
);
|
|
25900
|
-
};`}],implementation:`import {
|
|
26111
|
+
};`}],implementation:`import React, { useState } from "react";
|
|
25901
26112
|
|
|
25902
|
-
import
|
|
26113
|
+
import { ActionButton } from "../../ActionButton";
|
|
26114
|
+
import { Tooltip } from "../Tooltip";
|
|
25903
26115
|
|
|
25904
26116
|
export const CustomElementTooltip = () => (
|
|
25905
26117
|
<Tooltip text="Tooltip content" delay={0}>
|
|
@@ -25910,7 +26122,29 @@ export const CustomElementTooltip = () => (
|
|
|
25910
26122
|
/>
|
|
25911
26123
|
)}
|
|
25912
26124
|
</Tooltip>
|
|
25913
|
-
)
|
|
26125
|
+
);
|
|
26126
|
+
|
|
26127
|
+
export const TooltipGetTargetRectExample = () => {
|
|
26128
|
+
const [called, setCalled] = useState(false);
|
|
26129
|
+
|
|
26130
|
+
return (
|
|
26131
|
+
<>
|
|
26132
|
+
<Tooltip
|
|
26133
|
+
text="Tooltip content"
|
|
26134
|
+
delay={0}
|
|
26135
|
+
// Returns the trigger's own rect (so positioning is unchanged) while
|
|
26136
|
+
// recording that react-aria invoked the forwarded callback.
|
|
26137
|
+
getTargetRect={(target) => {
|
|
26138
|
+
setCalled(true);
|
|
26139
|
+
return target.getBoundingClientRect();
|
|
26140
|
+
}}
|
|
26141
|
+
>
|
|
26142
|
+
<ActionButton label="Show Tooltip" />
|
|
26143
|
+
</Tooltip>
|
|
26144
|
+
{called ? <span data-testid="tooltip-target-rect-called" /> : null}
|
|
26145
|
+
</>
|
|
26146
|
+
);
|
|
26147
|
+
};`},similarTo:[],figmaUrl:null},TreeView:{id:"core-collections-treeview",breadcrumb:"Core/Collections/TreeView",importStatement:`import {
|
|
25914
26148
|
TreeView,
|
|
25915
26149
|
VirtualizedTreeViewExample,
|
|
25916
26150
|
VirtualizedTreeViewWithActionsExample,
|
|
@@ -30248,6 +30482,31 @@ export const PopoverExample: React.FC<{
|
|
|
30248
30482
|
);
|
|
30249
30483
|
};
|
|
30250
30484
|
|
|
30485
|
+
export const PopoverGetTargetRectExample: React.FC = () => {
|
|
30486
|
+
const [called, setCalled] = useState(false);
|
|
30487
|
+
|
|
30488
|
+
return (
|
|
30489
|
+
<Popover type="dialog" defaultOpen={true}>
|
|
30490
|
+
<PopoverTrigger>
|
|
30491
|
+
<ActionButton label="Open" />
|
|
30492
|
+
</PopoverTrigger>
|
|
30493
|
+
<PopoverContent
|
|
30494
|
+
// Returns the trigger's own rect (so positioning is unchanged) while
|
|
30495
|
+
// recording that react-aria invoked the forwarded callback.
|
|
30496
|
+
getTargetRect={(target) => {
|
|
30497
|
+
setCalled(true);
|
|
30498
|
+
return target.getBoundingClientRect();
|
|
30499
|
+
}}
|
|
30500
|
+
>
|
|
30501
|
+
<Dialog size="content" aria-label="content">
|
|
30502
|
+
<Text type="label">getTargetRect content</Text>
|
|
30503
|
+
{called ? <span data-testid="popover-target-rect-called" /> : null}
|
|
30504
|
+
</Dialog>
|
|
30505
|
+
</PopoverContent>
|
|
30506
|
+
</Popover>
|
|
30507
|
+
);
|
|
30508
|
+
};
|
|
30509
|
+
|
|
30251
30510
|
export const PopoverWithScrollableContentExample: React.FC<{
|
|
30252
30511
|
popoverProps: Omit<PopoverProps, "children">;
|
|
30253
30512
|
popoverContentProps?: Omit<PopoverContentProps, "children">;
|
|
@@ -31383,6 +31642,31 @@ export const PopoverExample: React.FC<{
|
|
|
31383
31642
|
);
|
|
31384
31643
|
};
|
|
31385
31644
|
|
|
31645
|
+
export const PopoverGetTargetRectExample: React.FC = () => {
|
|
31646
|
+
const [called, setCalled] = useState(false);
|
|
31647
|
+
|
|
31648
|
+
return (
|
|
31649
|
+
<Popover type="dialog" defaultOpen={true}>
|
|
31650
|
+
<PopoverTrigger>
|
|
31651
|
+
<ActionButton label="Open" />
|
|
31652
|
+
</PopoverTrigger>
|
|
31653
|
+
<PopoverContent
|
|
31654
|
+
// Returns the trigger's own rect (so positioning is unchanged) while
|
|
31655
|
+
// recording that react-aria invoked the forwarded callback.
|
|
31656
|
+
getTargetRect={(target) => {
|
|
31657
|
+
setCalled(true);
|
|
31658
|
+
return target.getBoundingClientRect();
|
|
31659
|
+
}}
|
|
31660
|
+
>
|
|
31661
|
+
<Dialog size="content" aria-label="content">
|
|
31662
|
+
<Text type="label">getTargetRect content</Text>
|
|
31663
|
+
{called ? <span data-testid="popover-target-rect-called" /> : null}
|
|
31664
|
+
</Dialog>
|
|
31665
|
+
</PopoverContent>
|
|
31666
|
+
</Popover>
|
|
31667
|
+
);
|
|
31668
|
+
};
|
|
31669
|
+
|
|
31386
31670
|
export const PopoverWithScrollableContentExample: React.FC<{
|
|
31387
31671
|
popoverProps: Omit<PopoverProps, "children">;
|
|
31388
31672
|
popoverContentProps?: Omit<PopoverContentProps, "children">;
|
|
@@ -32503,6 +32787,28 @@ export const SelectExample: React.FC<
|
|
|
32503
32787
|
);
|
|
32504
32788
|
};
|
|
32505
32789
|
|
|
32790
|
+
export const SelectGetTargetRectExample: React.FC = () => {
|
|
32791
|
+
const [called, setCalled] = React.useState(false);
|
|
32792
|
+
|
|
32793
|
+
return (
|
|
32794
|
+
<>
|
|
32795
|
+
<Select
|
|
32796
|
+
aria-label="Choose an item"
|
|
32797
|
+
placeholder="Choose an item"
|
|
32798
|
+
items={items}
|
|
32799
|
+
defaultOpen={true}
|
|
32800
|
+
// Returns the trigger's own rect (so positioning is unchanged) while
|
|
32801
|
+
// recording that the popover invoked the forwarded callback.
|
|
32802
|
+
getTargetRect={(target) => {
|
|
32803
|
+
setCalled(true);
|
|
32804
|
+
return target.getBoundingClientRect();
|
|
32805
|
+
}}
|
|
32806
|
+
/>
|
|
32807
|
+
{called ? <span data-testid="select-target-rect-called" /> : null}
|
|
32808
|
+
</>
|
|
32809
|
+
);
|
|
32810
|
+
};
|
|
32811
|
+
|
|
32506
32812
|
export const SelectCustomTriggerExample: React.FC<
|
|
32507
32813
|
Omit<React.ComponentProps<typeof Select>, "items">
|
|
32508
32814
|
> = (args) => {
|
|
@@ -33920,7 +34226,7 @@ padding={[null, "lg", "xl"]}
|
|
|
33920
34226
|
|
|
33921
34227
|
* [vanilla-extract sprinkles documentation](https://vanilla-extract.style/documentation/packages/sprinkles/) - Learn about the underlying sprinkles framework
|
|
33922
34228
|
* [Box component documentation](/docs/core-utilities-box--docs) - Detailed information about the Box component
|
|
33923
|
-
* [Theme documentation](/docs/theming--docs) - Learn about Baseline UI's theming system`};var c={"8":["CaretDownIcon","CaretLeftIcon","CaretRightIcon","CaretUpIcon","ChevronRightFilledIcon","ChevronRightIcon","EllipseIcon","MinusIcon","PlusIcon","XIcon"],"12":["CaretDownIcon","CaretLeftIcon","CaretRightIcon","CaretUpIcon","CheckmarkIcon","DragIndicatorIcon","DragIndicatorVerticalIcon","EditIcon","EllipseIcon","EnterKeyIcon","LockFilledIcon","LockIcon","MinusIcon","MoreVIcon","MoreIcon","PlaceholderIcon","PlusIcon","SearchIcon","SizeIcon","TrashIcon","XIcon","ZoomIcon"],"16":["AlignBottomIcon","AlignMiddleIcon","AlignTopIcon","AnonymousIcon","ArrowDiagonalTopLeftBottomRightIcon","ArrowDownCircleFilledIcon","ArrowDownIcon","ArrowIcon","ArrowLeftRightIcon","ArrowRightIcon","ArrowUpArrowDownIcon","ArrowUpIcon","AtIcon","AttachmentsIcon","AvatarIcon","BoldIcon","BookmarkFilledIcon","BookmarkIcon","BulletListIcon","CalendarIcon","CaretLeftIcon","CaretRightIcon","CheckmarkCircleFilledIcon","CheckmarkCircleIcon","CheckmarkIcon","CircleFilledIcon","ClockIcon","CopyIcon","CustomizeIcon","DocumentEditIcon","DownloadIcon","DuplicateIcon","EditIcon","ElipseAreaIcon","EllipseCloudyIcon","EllipseDashedIcon","EllipseIcon","EmbedIcon","EmojiSmileIcon","ErrorAltCircleFilledIcon","ErrorCircleFilledIcon","ErrorCircleIcon","ExpandIcon","FilterAltIcon","FolderIcon","FormButtonIcon","FormChoiceIcon","FormComboboxIcon","FormDateIcon","FormListboxIcon","FormRadioButtonIcon","FormSignatureIcon","FormTextFieldIcon","FullScreenIcon","HelpCircleIcon","HelpIcon","HereIcon","HideIcon","HighlightTextAltIcon","HighlightTextIcon","HorizontalScrollIcon","ImageIcon","InfoCircleFilledIcon","InsertIcon","ItalicIcon","LightBulbIcon","LineIcon","LinkIcon","ListIcon","LockIcon","MagicIcon","MeasureIcon","MinusIcon","MoreIcon","MoreVerticalIcon","NoteArrowRightIcon","NoteCheckIcon","NoteCircleIcon","NoteCloudIcon","NoteCrossIcon","NoteHelpIcon","NoteInsetIcon","NoteKeyIcon","NoteNewParagraphAltIcon","NoteNewParagraphIcon","NoteNoteIcon","NotePointerRightIcon","NoteSpeechBubbleIcon","NoteStarIcon","NumberedListIcon","OpenIcon","PageFittingFillIcon","PageFittingFitIcon","PageHorizontalScrollIcon","PageLayoutDoubleIcon","PageLayoutSingleIcon","PageVerticalScrollIcon","PauseIcon","PenHighlighterIcon","PenIcon","PerimeterIcon","PlaceholderIcon","PlayIcon","PlusIcon","PolygonAreaIcon","PolygonCloudyIcon","PolygonDashedIcon","PolygonIcon","PolylineIcon","ReadOnlyIcon","RectangleAreaIcon","RectangleCloudyIcon","RectangleDashedIcon","RectangleIcon","RedoIcon","RemoveFormattingIcon","ReorderIcon","RotateClockwiseIcon","RotateCounterClockwiseIcon","RulerIcon","SearchIcon","SettingsIcon","ShowIcon","SlashCommandsIcon","SoundRecordIcon","StampIcon","StarFilledIcon","StarIcon","StrikeoutTextAltIcon","TableCellIcon","TableColumnIcon","TableHeaderIcon","TableIcon","TableRowIcon","TextAlignCenterIcon","TextAlignJustifyIcon","TextAlignLeftIcon","TextAlignRightIcon","TextCalloutIcon","TextDecreaseIndentIcon","TextIcon","TextIncreaseIndentIcon","TextMarkIcon","ThumbnailsIcon","ThumbsDownIcon","ThumbsUpIcon","TrashIcon","TypeTextIcon","UnderlineIcon","UndoIcon","UnlockIcon","VerticalScrollIcon","VideoIcon","WarningFilledIcon","WarningIcon","WindowedIcon","WorkflowIcon","XCircleFilledIcon","XIcon"],"20":["AddPageIcon","AnonymousIcon","ArrowLeftIcon","ArrowRightIcon","ArrowUpCircleFilledIcon","AtIcon","AvatarFilledIcon","BoldIcon","CalloutIcon","CaretDownIcon","CaretLeftIcon","CaretRightIcon","CaretUpIcon","CheckCircleFilledIcon","CheckmarkCircleIcon","CheckmarkIcon","ClockIcon","CollapseIcon","CommentIcon","CopyIcon","CutIcon","DistanceIcon","DownloadIcon","DuplicateIcon","EditIcon","EllipseIcon","EmojiSmileIcon","ErrorAltCircleFilledIcon","ErrorAlternativeCircleIcon","ErrorCircleFilledIcon","ErrorCircleIcon","ExpandIcon","FormDateIcon","FormSignatureIcon","FormTextFieldIcon","HelpCircleIcon","HighlightTextIcon","HomeIcon","ImageIcon","InfoCircleFilledIcon","InfoCircleIcon","ItalicIcon","LinkIcon","ListIcon","LockIcon","MagicIcon","MinusIcon","MoreIcon","MoreVerticalIcon","MoveIcon","NoteArrowRightIcon","NoteCheckIcon","NoteCircleIcon","NoteCrossIcon","NoteHelpIcon","NoteInsetIcon","NoteKeyIcon","NoteNewParagraphAltIcon","NoteNewParagraphIcon","NoteNoteIcon","NotePointerRightIcon","NoteSpeechBubbleIcon","NoteStarIcon","OpenIcon","PageMoveLeftIcon","PageMoveRightIcon","PagesInsertIcon","PasteIcon","PipetteIcon","PlusIcon","PrintIcon","RotateClockwiseIcon","SearchIcon","SettingsIcon","ShapeIcon","ShareIcon","SoundIcon","SoundRecordIcon","StarFilledIcon","StarIcon","StyleIcon","TextAlignCenterIcon","TextAlignJustifyIcon","TextAlignLeftIcon","TextAlignRightIcon","TextIcon","ThumbnailsIcon","ThumbsDownIcon","ThumbsUpIcon","TrashIcon","TypeTextIcon","UnderlineIcon","UploadIcon","WarningFilledIcon","WarningIcon","XCircleFilledIcon","XCircleIcon","XIcon"],"24":["AddNoteCloudIcon","AddNoteIcon","AddTextSerifIcon","AiIcon","AirplaneIcon","AlignBottomIcon","AlignHorizontalCenterIcon","AlignMiddleIcon","AlignTopIcon","AnonymousIcon","ArrowDownIcon","ArrowIcon","ArrowLeftIcon","ArrowRightIcon","ArrowUpIcon","AtIcon","AttachmentIcon","AvatarFilledIcon","AvatarIcon","BlendModeIcon","BoldIcon","BookmarkFilledIcon","BookmarkIcon","BorderColorIcon","BottomBorderIcon","BulletListIcon","CalibrateIcon","CaptureAddIcon","CaretDownIcon","CaretIcon","CaretLeftIcon","CaretRightIcon","CaretUpIcon","CheckmarkCircleFilledIcon","CheckmarkCircleIcon","CheckmarkIcon","ChevronListIcon","ClockIcon","CloudyBorderIcon","CollapseIcon","ColorPaletteIcon","ColorSwatchIcon","CommentIcon","CommentInSidebarIcon","CommentOnPageIcon","CompareDocumentsIcon","CopyIcon","CopyPageIcon","CropIcon","CustomizeIcon","CutIcon","DateModifiedIcon","DatePlusIcon","DebugIcon","DocumentArrowDownCircleIcon","DocumentArrowDownIcon","DocumentArrowRightIcon","DocumentFilledIcon","DocumentLockIcon","DocumentPdfIcon","DownloadIcon","DragIndicatorIcon","DragIndicatorVerticalIcon","DuplicateIcon","EditAnnotationsIcon","EditContentIcon","EditDocumentIcon","EditIcon","EditThumbnailsIcon","EllipseAreaIcon","EllipseCloudyIcon","EllipseDashedIcon","EllipseIcon","EmbedIcon","EmojiSmileIcon","EndCapArrowFilledIcon","EndCapArrowIcon","EndCapChevronFilledIcon","EndCapChevronIcon","EndCapCircleIcon","EndCapDiamondIcon","EndCapNoneIcon","EndCapSlantedIcon","EndCapSquareIcon","EndCapStraightIcon","EraserIcon","ErrorAltCircleFilledIcon","ErrorAltIcon","ErrorCircleFilledIcon","ErrorCircleIcon","ExpandIcon","ExpandVerticalIcon","FillColorIcon","FilterIcon","FitToHeightIcon","FivePagesHorizontalFilledIcon","FivePagesVerticalFilledIcon","FolderAddIcon","FolderIcon","FontListIcon","FontSizeIcon","FormButtonIcon","FormChoiceIcon","FormComboboxIcon","FormDateIcon","FormListboxIcon","FormPageIcon","FormRadioButtonIcon","FormSignatureIcon","FormTextFieldIcon","FormTwoRadioButtonsIcon","FourPagesGridFilledIcon","FourPagesHorizontalFilledIcon","FourPagesStackedFilledIcon","FourPagesVerticalFilledIcon","GroupIcon","HamburgerMenuIcon","HandIcon","HeartIcon","HideIcon","HideRevealIcon","HighlightTextIcon","HomeIcon","HorizontalScollIcon","ImageIcon","InfoCircleFilledIcon","InfoCircleIcon","InitialsIcon","InnerHorizontalBorderIcon","InnerVerticalBorderIcon","InsertIcon","ItalicIcon","LayerBottomIcon","LayerDownIcon","LayerTopIcon","LayerUpIcon","LayersIcon","LeftBindingIcon","LeftBorderIcon","LineCapsIcon","LineIcon","LineSpacingIcon","LineStyleCloudyIcon","LineStyleDashedDoubleDashIcon","LineStyleDashedDoubleGapIcon","LineStyleDashedQuadrupleDashIcon","LineStyleDashedSingleGapIcon","LineStyleIcon","LineStyleSolidIcon","LineWidthIcon","LinkIcon","LockFilledIcon","LockIcon","MagicIcon","MagicPenIcon","MailIcon","MarkupIcon","MarqueeZoomIcon","MeasureIcon","MergeIcon","MessageCloudIcon","MinusIcon","MoonIcon","MoreCircleIcon","MoreIcon","MoreVerticalIcon","MoveAllDirectionsIcon","MoveLeftIcon","MoveLeftRightIcon","MoveRightIcon","MultiplePagesIcon","NonEditableIcon","NoteArrowRightIcon","NoteCheckIcon","NoteCircleIcon","NoteCloudIcon","NoteCrossIcon","NoteHelpIcon","NoteIcon","NoteInsetIcon","NoteKeyIcon","NoteNewParagraphAltIcon","NoteNewParagraphIcon","NoteNoteIcon","NotePointerRightIcon","NoteSpeechBubbleIcon","NoteStarIcon","OcrIcon","OpacityIcon","PageAddIcon","PageCurlIcon","PageDuplicateIcon","PageFittingFillIcon","PageFittingFitIcon","PageHorizontalScrollIcon","PageLandscapeIcon","PageLayoutDoubleIcon","PageLayoutSingleIcon","PageMoveLeftIcon","PageMoveRightIcon","PageNumberCircleIcon","PageNumberIcon","PagePortraitIcon","PageRemoveIcon","PageVerticalScrollIcon","PagesInsertAltIcon","PagesInsertIcon","PagesNewFromSelectionAltIcon","PagesNewFromSelectionIcon","PagesSelectAllIcon","PagesSelectNoneIcon","PasteBoardIcon","PastePageIcon","PauseIcon","PenHighlighterIcon","PenIcon","PerimeterIcon","PinDropFilledIcon","PinDropIcon","PipetteIcon","PlayIcon","PlusCircleFilledIcon","PlusCircleIcon","PlusIcon","PointerIcon","PolygonAreaIcon","PolygonCloudyIcon","PolygonDashedIcon","PolygonIcon","PolylineIcon","PrecisionIcon","PrintIcon","PrivateModeIcon","PushPinIcon","QuestionmarkCircleIcon","ReaderViewIcon","RectangleAreaIcon","RectangleCloudyIcon","RectangleDashedIcon","RectangleIcon","RedactIcon","RedactRectangleIcon","RedactTextHighlighterIcon","RedactionTextRepeatingIcon","RedactionTextSingleIcon","RedoAllIcon","RedoIcon","RegexIcon","ReplaceIcon","RightBindingIcon","RightBorderIcon","RotateClockwiseIcon","RotateCounterClockwiseIcon","RotateObjectClockwiseIcon","RotateObjectCounterClockwiseIcon","RulerIcon","ScaleIcon","SearchCircleIcon","SearchIcon","SearchSelectionIcon","SelectAllIcon","SelectionToolIcon","SettingsIcon","ShapesIcon","ShareAltIcon","ShareIcon","ShieldAddIcon","ShieldCheckmarkIcon","ShieldWarningIcon","ShieldXIcon","ShowIcon","SidebarIcon","SignOutIcon","SignatureDigitalIcon","SignatureIcon","SinglePageFilledIcon","SoundIcon","SquigglyTextIcon","StampAddIcon","StampIcon","StarFilledIcon","StarIcon","StartCapArrowFilledIcon","StartCapArrowIcon","StartCapChevronFilledIcon","StartCapChevronIcon","StartCapCircleIcon","StartCapDiamondIcon","StartCapNoneIcon","StartCapSlantedIcon","StartCapSquareIcon","StartCapStraightIcon","StrikeoutTextIcon","StyleFilledIcon","StyleIcon","StylusFilledIcon","StylusIcon","SunIcon","TableCellIcon","TextAlignCenterIcon","TextAlignJustifyIcon","TextAlignLeftIcon","TextAlignRightIcon","TextCalloutIcon","TextColorIcon","TextIcon","TextPropertiesHideIcon","TextPropertiesShowIcon","TextSerifIcon","TextSmallerIcon","ThreePagesHorizontalFilledIcon","ThreePagesStackedFilledIcon","ThreePagesVerticalFilledIcon","ThumbnailsIcon","ThumbsDownIcon","ThumbsUpIcon","TopBorderIcon","TrashIcon","TwoPagesHorizontalFilledIcon","TwoPagesVerticalFilledIcon","TypeTextIcon","UnderlineIcon","UnderlineTextIcon","UndoAllIcon","UndoIcon","UndoRedoIcon","UngroupIcon","UnlockIcon","UploadIcon","UserIcon","VerticalScrollIcon","VideoIcon","WarningFilledIcon","WarningIcon","WidgetIcon","WorkflowIcon","XCircleFilledIcon","XCircleIcon","XIcon","ZoomInIcon","ZoomOutIcon"],"36":["ArrowRight","Check","Circle","Cross","Help","Inset","Key","NewParagraphAlt","NewParagraph","Note","PointerRight","SpeechBubble","Star"]};var p={version:"1.0.0"};var u=`
|
|
34229
|
+
* [Theme documentation](/docs/theming--docs) - Learn about Baseline UI's theming system`};var c={"8":["CaretDownIcon","CaretLeftIcon","CaretRightIcon","CaretUpIcon","ChevronRightFilledIcon","ChevronRightIcon","EllipseIcon","MinusIcon","PlusIcon","XIcon"],"12":["CaretDownIcon","CaretLeftIcon","CaretRightIcon","CaretUpIcon","CheckmarkIcon","DragIndicatorIcon","DragIndicatorVerticalIcon","EditIcon","EllipseIcon","EnterKeyIcon","LockFilledIcon","LockIcon","MinusIcon","MoreVIcon","MoreIcon","PlaceholderIcon","PlusIcon","SearchIcon","SizeIcon","TrashIcon","XIcon","ZoomIcon"],"16":["AlignBottomIcon","AlignMiddleIcon","AlignTopIcon","AnonymousIcon","ArrowDiagonalTopLeftBottomRightIcon","ArrowDownCircleFilledIcon","ArrowDownIcon","ArrowIcon","ArrowLeftRightIcon","ArrowRightIcon","ArrowUpArrowDownIcon","ArrowUpIcon","AtIcon","AttachmentsIcon","AvatarIcon","BoldIcon","BookmarkFilledIcon","BookmarkIcon","BulletListIcon","CalendarIcon","CaretLeftIcon","CaretRightIcon","CheckmarkCircleFilledIcon","CheckmarkCircleIcon","CheckmarkIcon","CircleFilledIcon","ClockIcon","CopyIcon","CustomizeIcon","DocumentEditIcon","DownloadIcon","DuplicateIcon","EditIcon","ElipseAreaIcon","EllipseCloudyIcon","EllipseDashedIcon","EllipseIcon","EmbedIcon","EmojiSmileIcon","ErrorAltCircleFilledIcon","ErrorCircleFilledIcon","ErrorCircleIcon","ExpandIcon","FilterAltIcon","FolderIcon","FormButtonIcon","FormChoiceIcon","FormComboboxIcon","FormDateIcon","FormListboxIcon","FormRadioButtonIcon","FormSignatureIcon","FormTextFieldIcon","FullScreenIcon","HelpCircleIcon","HelpIcon","HereIcon","HideIcon","HighlightTextAltIcon","HighlightTextIcon","HorizontalScrollIcon","ImageIcon","InfoCircleFilledIcon","InsertIcon","ItalicIcon","LightBulbIcon","LineIcon","LinkIcon","ListIcon","LockIcon","MagicIcon","MeasureIcon","MinusIcon","MoreIcon","MoreVerticalIcon","NoteArrowRightIcon","NoteCheckIcon","NoteCircleIcon","NoteCloudIcon","NoteCrossIcon","NoteHelpIcon","NoteInsetIcon","NoteKeyIcon","NoteNewParagraphAltIcon","NoteNewParagraphIcon","NoteNoteIcon","NotePointerRightIcon","NoteSpeechBubbleIcon","NoteStarIcon","NumberedListIcon","OpenIcon","PageFittingFillIcon","PageFittingFitIcon","PageHorizontalScrollIcon","PageLayoutDoubleIcon","PageLayoutSingleIcon","PageVerticalScrollIcon","PauseIcon","PenHighlighterIcon","PenIcon","PerimeterIcon","PlaceholderIcon","PlayIcon","PlusIcon","PolygonAreaIcon","PolygonCloudyIcon","PolygonDashedIcon","PolygonIcon","PolylineIcon","ReadOnlyIcon","RectangleAreaIcon","RectangleCloudyIcon","RectangleDashedIcon","RectangleIcon","RedoIcon","RemoveFormattingIcon","ReorderIcon","RotateClockwiseIcon","RotateCounterClockwiseIcon","RulerIcon","SearchIcon","SettingsIcon","ShowIcon","SlashCommandsIcon","SoundRecordIcon","StampIcon","StarFilledIcon","StarIcon","StrikeoutTextAltIcon","TableCellIcon","TableColumnIcon","TableHeaderIcon","TableIcon","TableRowIcon","TextAlignCenterIcon","TextAlignJustifyIcon","TextAlignLeftIcon","TextAlignRightIcon","TextCalloutIcon","TextDecreaseIndentIcon","TextIcon","TextIncreaseIndentIcon","TextMarkIcon","ThumbnailsIcon","ThumbsDownIcon","ThumbsUpIcon","TrashIcon","TypeTextIcon","UnderlineIcon","UndoIcon","UnlockIcon","VerticalScrollIcon","VideoIcon","WarningFilledIcon","WarningIcon","WindowedIcon","WorkflowIcon","XCircleFilledIcon","XIcon"],"20":["AddPageIcon","AnonymousIcon","ArrowLeftIcon","ArrowRightIcon","ArrowUpCircleFilledIcon","AtIcon","AvatarFilledIcon","BoldIcon","CalloutIcon","CaretDownIcon","CaretLeftIcon","CaretRightIcon","CaretUpIcon","CheckCircleFilledIcon","CheckmarkCircleIcon","CheckmarkIcon","ClockIcon","CollapseIcon","CommentIcon","CopyIcon","CutIcon","DistanceIcon","DownloadIcon","DuplicateIcon","EditIcon","EllipseIcon","EmojiSmileIcon","ErrorAltCircleFilledIcon","ErrorAlternativeCircleIcon","ErrorCircleFilledIcon","ErrorCircleIcon","ExpandIcon","FormDateIcon","FormSignatureIcon","FormTextFieldIcon","HelpCircleIcon","HighlightTextIcon","HomeIcon","ImageIcon","InfoCircleFilledIcon","InfoCircleIcon","ItalicIcon","LinkIcon","ListIcon","LockIcon","MagicIcon","MinusIcon","MoreIcon","MoreVerticalIcon","MoveIcon","NoteArrowRightIcon","NoteCheckIcon","NoteCircleIcon","NoteCrossIcon","NoteHelpIcon","NoteInsetIcon","NoteKeyIcon","NoteNewParagraphAltIcon","NoteNewParagraphIcon","NoteNoteIcon","NotePointerRightIcon","NoteSpeechBubbleIcon","NoteStarIcon","OpenIcon","PageMoveLeftIcon","PageMoveRightIcon","PagesInsertIcon","PasteIcon","PipetteIcon","PlusIcon","PrintIcon","RotateClockwiseIcon","SearchIcon","SettingsIcon","ShapeIcon","ShareIcon","SoundIcon","SoundRecordIcon","StarFilledIcon","StarIcon","StyleIcon","TextAlignCenterIcon","TextAlignJustifyIcon","TextAlignLeftIcon","TextAlignRightIcon","TextIcon","ThumbnailsIcon","ThumbsDownIcon","ThumbsUpIcon","TrashIcon","TypeTextIcon","UnderlineIcon","UploadIcon","WarningFilledIcon","WarningIcon","XCircleFilledIcon","XCircleIcon","XIcon"],"24":["AddNoteCloudIcon","AddNoteIcon","AddTextSerifIcon","AiIcon","AirplaneIcon","AlignBottomIcon","AlignHorizontalCenterIcon","AlignMiddleIcon","AlignTopIcon","AnonymousIcon","ArrowDownIcon","ArrowIcon","ArrowLeftIcon","ArrowRightIcon","ArrowUpIcon","AtIcon","AttachmentIcon","AvatarFilledIcon","AvatarIcon","BlendModeIcon","BoldIcon","BookmarkFilledIcon","BookmarkIcon","BorderColorIcon","BottomBorderIcon","BulletListIcon","CalibrateIcon","CaptureAddIcon","CaretDownIcon","CaretIcon","CaretLeftIcon","CaretRightIcon","CaretUpIcon","CheckmarkCircleFilledIcon","CheckmarkCircleIcon","CheckmarkIcon","ChevronListIcon","ClockIcon","CloudyBorderIcon","CollapseIcon","ColorPaletteIcon","ColorSwatchIcon","CommentIcon","CommentInSidebarIcon","CommentOnPageIcon","CompareDocumentsIcon","CopyIcon","CopyPageIcon","CropIcon","CustomizeIcon","CutIcon","DateModifiedIcon","DatePlusIcon","DebugIcon","DocumentArrowDownCircleIcon","DocumentArrowDownIcon","DocumentArrowRightIcon","DocumentFilledIcon","DocumentLockIcon","DocumentPdfIcon","DownloadIcon","DragIndicatorIcon","DragIndicatorVerticalIcon","DuplicateIcon","EditAnnotationsIcon","EditContentIcon","EditDocumentIcon","EditIcon","EditThumbnailsIcon","EllipseAreaIcon","EllipseCloudyIcon","EllipseDashedIcon","EllipseIcon","EmbedIcon","EmojiSmileIcon","EndCapArrowFilledIcon","EndCapArrowIcon","EndCapChevronFilledIcon","EndCapChevronIcon","EndCapCircleIcon","EndCapDiamondIcon","EndCapNoneIcon","EndCapSlantedIcon","EndCapSquareIcon","EndCapStraightIcon","EraserIcon","ErrorAltCircleFilledIcon","ErrorAltIcon","ErrorCircleFilledIcon","ErrorCircleIcon","ExpandIcon","ExpandVerticalIcon","FillColorIcon","FilterIcon","FitToHeightIcon","FivePagesHorizontalFilledIcon","FivePagesVerticalFilledIcon","FolderAddIcon","FolderIcon","FontListIcon","FontSizeIcon","FormButtonIcon","FormChoiceIcon","FormComboboxIcon","FormDateIcon","FormListboxIcon","FormPageIcon","FormRadioButtonIcon","FormSignatureIcon","FormTextFieldIcon","FormTwoRadioButtonsIcon","FourPagesGridFilledIcon","FourPagesHorizontalFilledIcon","FourPagesStackedFilledIcon","FourPagesVerticalFilledIcon","GroupIcon","HamburgerMenuIcon","HandIcon","HeartIcon","HideIcon","HideRevealIcon","HighlightTextIcon","HomeIcon","HorizontalScollIcon","ImageIcon","InfoCircleFilledIcon","InfoCircleIcon","InitialsIcon","InnerHorizontalBorderIcon","InnerVerticalBorderIcon","InsertIcon","ItalicIcon","LayerBottomIcon","LayerDownIcon","LayerTopIcon","LayerUpIcon","LayersIcon","LeftBindingIcon","LeftBorderIcon","LineCapsIcon","LineIcon","LineSpacingIcon","LineStyleCloudyIcon","LineStyleDashedDoubleDashIcon","LineStyleDashedDoubleGapIcon","LineStyleDashedQuadrupleDashIcon","LineStyleDashedSingleGapIcon","LineStyleIcon","LineStyleSolidIcon","LineWidthIcon","LinkIcon","LockFilledIcon","LockIcon","MagicIcon","MagicPenIcon","MailIcon","MarkupIcon","MarqueeZoomIcon","MeasureIcon","MergeIcon","MessageCloudIcon","MinusIcon","MoonIcon","MoreCircleIcon","MoreIcon","MoreVerticalIcon","MoveAllDirectionsIcon","MoveLeftIcon","MoveLeftRightIcon","MoveRightIcon","MultiplePagesIcon","NonEditableIcon","NoteArrowRightIcon","NoteCheckIcon","NoteCircleIcon","NoteCloudIcon","NoteCrossIcon","NoteHelpIcon","NoteIcon","NoteInsetIcon","NoteKeyIcon","NoteNewParagraphAltIcon","NoteNewParagraphIcon","NoteNoteIcon","NotePointerRightIcon","NoteSpeechBubbleIcon","NoteStarIcon","OcrIcon","OpacityIcon","PageAddIcon","PageCurlIcon","PageDuplicateIcon","PageFittingFillIcon","PageFittingFitIcon","PageHorizontalScrollIcon","PageLandscapeIcon","PageLayoutDoubleIcon","PageLayoutSingleIcon","PageMoveLeftIcon","PageMoveRightIcon","PageNumberCircleIcon","PageNumberIcon","PagePortraitIcon","PageRemoveIcon","PageVerticalScrollIcon","PagesInsertAltIcon","PagesInsertIcon","PagesNewFromSelectionAltIcon","PagesNewFromSelectionIcon","PagesSelectAllIcon","PagesSelectNoneIcon","PasteBoardIcon","PastePageIcon","PauseIcon","PenHighlighterIcon","PenIcon","PerimeterIcon","PinDropFilledIcon","PinDropIcon","PipetteIcon","PlayIcon","PlusCircleFilledIcon","PlusCircleIcon","PlusIcon","PointerIcon","PolygonAreaIcon","PolygonCloudyIcon","PolygonDashedIcon","PolygonIcon","PolylineIcon","PrecisionIcon","PrintIcon","PrivateModeIcon","PushPinIcon","QuestionmarkCircleIcon","ReaderViewIcon","RectangleAreaIcon","RectangleCloudyIcon","RectangleDashedIcon","RectangleIcon","RedactIcon","RedactRectangleIcon","RedactTextHighlighterIcon","RedactionTextRepeatingIcon","RedactionTextSingleIcon","RedoAllIcon","RedoIcon","RegexIcon","ReplaceIcon","RightBindingIcon","RightBorderIcon","RotateClockwiseIcon","RotateCounterClockwiseIcon","RotateObjectClockwiseIcon","RotateObjectCounterClockwiseIcon","RulerIcon","ScaleIcon","SearchCircleIcon","SearchIcon","SearchSelectionIcon","SelectAllIcon","SelectionToolIcon","SettingsIcon","ShapesIcon","ShareAltIcon","ShareIcon","ShieldAddIcon","ShieldCheckmarkIcon","ShieldWarningIcon","ShieldXIcon","ShowIcon","SidebarIcon","SignOutIcon","SignatureDigitalIcon","SignatureIcon","SinglePageFilledIcon","SoundIcon","SquigglyTextIcon","StampAddIcon","StampIcon","StarFilledIcon","StarIcon","StartCapArrowFilledIcon","StartCapArrowIcon","StartCapChevronFilledIcon","StartCapChevronIcon","StartCapCircleIcon","StartCapDiamondIcon","StartCapNoneIcon","StartCapSlantedIcon","StartCapSquareIcon","StartCapStraightIcon","StrikeoutTextIcon","StyleFilledIcon","StyleIcon","StylusFilledIcon","StylusIcon","SunIcon","TableCellIcon","TextAlignCenterIcon","TextAlignJustifyIcon","TextAlignLeftIcon","TextAlignRightIcon","TextCalloutIcon","TextColorIcon","TextIcon","TextPropertiesHideIcon","TextPropertiesShowIcon","TextSerifIcon","TextSmallerIcon","ThreePagesHorizontalFilledIcon","ThreePagesStackedFilledIcon","ThreePagesVerticalFilledIcon","ThumbnailsIcon","ThumbsDownIcon","ThumbsUpIcon","TopBorderIcon","TrashIcon","TwoPagesHorizontalFilledIcon","TwoPagesVerticalFilledIcon","TypeTextIcon","UnderlineIcon","UnderlineTextIcon","UndoAllIcon","UndoIcon","UndoRedoIcon","UngroupIcon","UnlockIcon","UploadIcon","UserIcon","VerticalScrollIcon","VideoIcon","WarningFilledIcon","WarningIcon","WidgetIcon","WorkflowIcon","XCircleFilledIcon","XCircleIcon","XIcon","ZoomInIcon","ZoomOutIcon"],"36":["ArrowRight","Check","Circle","Cross","Help","Inset","Key","NewParagraphAlt","NewParagraph","Note","PointerRight","SpeechBubble","Star"]};var p={version:"1.2.0"};var u=`
|
|
33924
34230
|
# Baseline UI MCP Server Guidelines
|
|
33925
34231
|
|
|
33926
34232
|
This MCP server provides AI assistants with structured access to Baseline UI's comprehensive component documentation, icon library, theming resources, and design guidelines.
|