diff --git a/.changeset/serious-tomatoes-dress.md b/.changeset/serious-tomatoes-dress.md
new file mode 100644
index 00000000000..3c40b08b50a
--- /dev/null
+++ b/.changeset/serious-tomatoes-dress.md
@@ -0,0 +1,6 @@
+---
+'@shopify/polaris': minor
+'polaris.shopify.com': patch
+---
+
+Rebuilt `ActionList` to use layout primitives
diff --git a/polaris-react/src/components/ActionList/ActionList.scss b/polaris-react/src/components/ActionList/ActionList.scss
index c0779e01dbe..35d367d8e66 100644
--- a/polaris-react/src/components/ActionList/ActionList.scss
+++ b/polaris-react/src/components/ActionList/ActionList.scss
@@ -1,44 +1,5 @@
@import '../../styles/common';
-.ActionList {
- outline: none;
- list-style: none;
- margin: 0;
- padding: 0;
-}
-
-.Section:not(:first-child) {
- border-top: var(--p-border-divider);
-
- // stylelint-disable-next-line selector-max-class, selector-max-combinators, selector-max-specificity
- > .Section-withoutTitle .Actions {
- padding-top: var(--p-space-2);
- }
-}
-
-.Actions {
- outline: none;
- list-style: none;
- margin: 0;
- padding: var(--p-space-2);
-}
-
-.ActionList,
-.Section:first-child {
- // stylelint-disable-next-line selector-max-class, selector-max-combinators, selector-max-specificity
- > .Section-withoutTitle .Actions {
- border-top: none;
- padding-top: var(--p-space-2);
- }
-}
-
-.ActionList .Section {
- // stylelint-disable-next-line selector-max-class, selector-max-combinators
- .Actions {
- padding-top: 0;
- }
-}
-
.Item {
--pc-action-list-image-size: 20px;
--pc-action-list-item-min-height: var(--p-space-10);
@@ -117,11 +78,6 @@
}
}
-.Content {
- display: flex;
- align-items: center;
-}
-
.Prefix {
@include recolor-icon(var(--p-icon));
display: flex;
@@ -142,12 +98,6 @@
.Suffix {
@include recolor-icon(var(--p-icon));
- margin-left: var(--p-space-4);
-}
-
-.ContentBlock,
-.ContentBlockInner {
- display: block;
}
.Text {
diff --git a/polaris-react/src/components/ActionList/ActionList.tsx b/polaris-react/src/components/ActionList/ActionList.tsx
index 233fe2ad650..7ec14e87b69 100644
--- a/polaris-react/src/components/ActionList/ActionList.tsx
+++ b/polaris-react/src/components/ActionList/ActionList.tsx
@@ -6,11 +6,10 @@ import {
} from '../../utilities/focus';
import {KeypressListener} from '../KeypressListener';
import {ActionListItemDescriptor, ActionListSection, Key} from '../../types';
-import {classNames} from '../../utilities/css';
+import {Box} from '../Box';
import {Section, Item} from './components';
import type {ItemProps} from './components';
-import styles from './ActionList.scss';
export interface ActionListProps {
/** Collection of actions for list */
@@ -40,10 +39,7 @@ export function ActionList({
finalSections = sections;
}
- const className = classNames(styles.ActionList);
-
const hasMultipleSections = finalSections.length > 1;
- const Element = hasMultipleSections ? 'ul' : 'div';
const elementRole =
hasMultipleSections && actionRole === 'menuitem' ? 'menu' : undefined;
const elementTabIndex =
@@ -57,6 +53,7 @@ export function ActionList({
hasMultipleSections={hasMultipleSections}
actionRole={actionRole}
onActionAnyItem={onActionAnyItem}
+ isFirst={index === 0}
/>
) : null;
});
@@ -102,15 +99,15 @@ export function ActionList({
) : null;
return (
-
{listeners}
{sectionMarkup}
-
+
);
}
diff --git a/polaris-react/src/components/ActionList/components/Item/Item.tsx b/polaris-react/src/components/ActionList/components/Item/Item.tsx
index 46177c3c10b..03957153ac4 100644
--- a/polaris-react/src/components/ActionList/components/Item/Item.tsx
+++ b/polaris-react/src/components/ActionList/components/Item/Item.tsx
@@ -9,6 +9,8 @@ import {Badge} from '../../../Badge';
import {Text} from '../../../Text';
import styles from '../../ActionList.scss';
import {handleMouseUpByBlurring} from '../../../../utilities/focus';
+import {Inline} from '../../../Inline';
+import {Box} from '../../../Box';
export type ItemProps = ActionListItemDescriptor;
@@ -61,12 +63,12 @@ export function Item({
const contentText = ellipsis && content ? `${content}…` : content;
const contentMarkup = helpText ? (
-
- {contentText}
+ <>
+ {contentText}
{helpText}
-
+ >
) : (
contentText
);
@@ -78,18 +80,20 @@ export function Item({
);
const suffixMarkup = suffix && (
- {suffix}
+
+ {suffix}
+
);
const textMarkup = {contentMarkup};
const contentElement = (
-
+
{prefixMarkup}
{textMarkup}
{badgeMarkup}
{suffixMarkup}
-
+
);
const scrollMarkup = active ? : null;
diff --git a/polaris-react/src/components/ActionList/components/Section/Section.tsx b/polaris-react/src/components/ActionList/components/Section/Section.tsx
index de76ad9d2c3..921d6b83681 100644
--- a/polaris-react/src/components/ActionList/components/Section/Section.tsx
+++ b/polaris-react/src/components/ActionList/components/Section/Section.tsx
@@ -7,7 +7,6 @@ import type {
ActionListItemDescriptor,
ActionListSection,
} from '../../../../types';
-import styles from '../../ActionList.scss';
export interface SectionProps {
/** Section of action items */
@@ -18,11 +17,14 @@ export interface SectionProps {
actionRole?: 'option' | 'menuitem' | string;
/** Callback when any item is clicked or keypressed */
onActionAnyItem?: ActionListItemDescriptor['onAction'];
+ /** Whether it is the first in a group of sections */
+ isFirst?: boolean;
}
export function Section({
section,
hasMultipleSections,
+ isFirst,
actionRole,
onActionAnyItem,
}: SectionProps) {
@@ -55,8 +57,6 @@ export function Section({
},
);
- const className = section.title ? undefined : styles['Section-withoutTitle'];
-
const titleMarkup = section.title ? (
) : null;
- let sectionRole;
+ let sectionRole: 'menu' | 'presentation' | undefined;
switch (actionRole) {
case 'option':
sectionRole = 'presentation';
@@ -84,22 +84,29 @@ export function Section({
}
const sectionMarkup = (
-
+
+ >
);
return hasMultipleSections ? (
-
+
{sectionMarkup}
-
+
) : (
sectionMarkup
);
diff --git a/polaris.shopify.com/src/data/props.json b/polaris.shopify.com/src/data/props.json
index 64d07ca17e4..7469f8c4fcf 100644
--- a/polaris.shopify.com/src/data/props.json
+++ b/polaris.shopify.com/src/data/props.json
@@ -7772,103 +7772,6 @@
"value": "export interface ActionMenuProps {\n /** Collection of page-level secondary actions */\n actions?: MenuActionDescriptor[];\n /** Collection of page-level action groups */\n groups?: MenuGroupDescriptor[];\n /** Roll up all actions into a Popover > ActionList */\n rollup?: boolean;\n /** Label for rolled up actions activator */\n rollupActionsLabel?: string;\n /** Callback that returns true when secondary actions are rolled up into action groups, and false when not */\n onActionRollup?(hasRolledUp: boolean): void;\n}"
}
},
- "CardBackgroundColorTokenScale": {
- "polaris-react/src/components/AlphaCard/AlphaCard.tsx": {
- "filePath": "polaris-react/src/components/AlphaCard/AlphaCard.tsx",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "CardBackgroundColorTokenScale",
- "value": "\"surface\" | \"surface-subdued\"",
- "description": ""
- }
- },
- "Spacing": {
- "polaris-react/src/components/AlphaCard/AlphaCard.tsx": {
- "filePath": "polaris-react/src/components/AlphaCard/AlphaCard.tsx",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "Spacing",
- "value": "ResponsiveProp",
- "description": ""
- },
- "polaris-react/src/components/Bleed/Bleed.tsx": {
- "filePath": "polaris-react/src/components/Bleed/Bleed.tsx",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "Spacing",
- "value": "ResponsiveProp",
- "description": ""
- },
- "polaris-react/src/components/Box/Box.tsx": {
- "filePath": "polaris-react/src/components/Box/Box.tsx",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "Spacing",
- "value": "ResponsiveProp",
- "description": ""
- },
- "polaris-react/src/components/ButtonGroup/ButtonGroup.tsx": {
- "filePath": "polaris-react/src/components/ButtonGroup/ButtonGroup.tsx",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "Spacing",
- "value": "'extraTight' | 'tight' | 'loose'",
- "description": ""
- },
- "polaris-react/src/components/Stack/Stack.tsx": {
- "filePath": "polaris-react/src/components/Stack/Stack.tsx",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "Spacing",
- "value": "'extraTight' | 'tight' | 'baseTight' | 'loose' | 'extraLoose' | 'none'",
- "description": ""
- },
- "polaris-react/src/components/TextContainer/TextContainer.tsx": {
- "filePath": "polaris-react/src/components/TextContainer/TextContainer.tsx",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "Spacing",
- "value": "'tight' | 'loose'",
- "description": ""
- }
- },
- "AlphaCardProps": {
- "polaris-react/src/components/AlphaCard/AlphaCard.tsx": {
- "filePath": "polaris-react/src/components/AlphaCard/AlphaCard.tsx",
- "name": "AlphaCardProps",
- "description": "",
- "members": [
- {
- "filePath": "polaris-react/src/components/AlphaCard/AlphaCard.tsx",
- "syntaxKind": "PropertySignature",
- "name": "children",
- "value": "React.ReactNode",
- "description": "",
- "isOptional": true
- },
- {
- "filePath": "polaris-react/src/components/AlphaCard/AlphaCard.tsx",
- "syntaxKind": "PropertySignature",
- "name": "background",
- "value": "CardBackgroundColorTokenScale",
- "description": "Background color",
- "isOptional": true,
- "defaultValue": "'surface'"
- },
- {
- "filePath": "polaris-react/src/components/AlphaCard/AlphaCard.tsx",
- "syntaxKind": "PropertySignature",
- "name": "padding",
- "value": "Spacing",
- "description": "The spacing around the card",
- "isOptional": true,
- "defaultValue": "{xs: '4', sm: '5'}"
- },
- {
- "filePath": "polaris-react/src/components/AlphaCard/AlphaCard.tsx",
- "syntaxKind": "PropertySignature",
- "name": "roundedAbove",
- "value": "\"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\"",
- "description": "Border radius value above a set breakpoint",
- "isOptional": true
- }
- ],
- "value": "export interface AlphaCardProps {\n children?: React.ReactNode;\n /** Background color\n * @default 'surface'\n */\n background?: CardBackgroundColorTokenScale;\n /** The spacing around the card\n * @default {xs: '4', sm: '5'}\n * @example\n * padding='4'\n * padding={{xs: '2', sm: '3', md: '4', lg: '5', xl: '6'}}\n */\n padding?: Spacing;\n /** Border radius value above a set breakpoint */\n roundedAbove?: BreakpointsAlias;\n}"
- }
- },
"Props": {
"polaris-react/src/components/AfterInitialMount/AfterInitialMount.tsx": {
"filePath": "polaris-react/src/components/AfterInitialMount/AfterInitialMount.tsx",
@@ -8153,6 +8056,103 @@
"value": "interface Props {\n /** Callback when the search is dismissed */\n onDismiss?(): void;\n /** Determines whether the overlay should be visible */\n visible: boolean;\n}"
}
},
+ "CardBackgroundColorTokenScale": {
+ "polaris-react/src/components/AlphaCard/AlphaCard.tsx": {
+ "filePath": "polaris-react/src/components/AlphaCard/AlphaCard.tsx",
+ "syntaxKind": "TypeAliasDeclaration",
+ "name": "CardBackgroundColorTokenScale",
+ "value": "\"surface\" | \"surface-subdued\"",
+ "description": ""
+ }
+ },
+ "Spacing": {
+ "polaris-react/src/components/AlphaCard/AlphaCard.tsx": {
+ "filePath": "polaris-react/src/components/AlphaCard/AlphaCard.tsx",
+ "syntaxKind": "TypeAliasDeclaration",
+ "name": "Spacing",
+ "value": "ResponsiveProp",
+ "description": ""
+ },
+ "polaris-react/src/components/Bleed/Bleed.tsx": {
+ "filePath": "polaris-react/src/components/Bleed/Bleed.tsx",
+ "syntaxKind": "TypeAliasDeclaration",
+ "name": "Spacing",
+ "value": "ResponsiveProp",
+ "description": ""
+ },
+ "polaris-react/src/components/Box/Box.tsx": {
+ "filePath": "polaris-react/src/components/Box/Box.tsx",
+ "syntaxKind": "TypeAliasDeclaration",
+ "name": "Spacing",
+ "value": "ResponsiveProp",
+ "description": ""
+ },
+ "polaris-react/src/components/ButtonGroup/ButtonGroup.tsx": {
+ "filePath": "polaris-react/src/components/ButtonGroup/ButtonGroup.tsx",
+ "syntaxKind": "TypeAliasDeclaration",
+ "name": "Spacing",
+ "value": "'extraTight' | 'tight' | 'loose'",
+ "description": ""
+ },
+ "polaris-react/src/components/Stack/Stack.tsx": {
+ "filePath": "polaris-react/src/components/Stack/Stack.tsx",
+ "syntaxKind": "TypeAliasDeclaration",
+ "name": "Spacing",
+ "value": "'extraTight' | 'tight' | 'baseTight' | 'loose' | 'extraLoose' | 'none'",
+ "description": ""
+ },
+ "polaris-react/src/components/TextContainer/TextContainer.tsx": {
+ "filePath": "polaris-react/src/components/TextContainer/TextContainer.tsx",
+ "syntaxKind": "TypeAliasDeclaration",
+ "name": "Spacing",
+ "value": "'tight' | 'loose'",
+ "description": ""
+ }
+ },
+ "AlphaCardProps": {
+ "polaris-react/src/components/AlphaCard/AlphaCard.tsx": {
+ "filePath": "polaris-react/src/components/AlphaCard/AlphaCard.tsx",
+ "name": "AlphaCardProps",
+ "description": "",
+ "members": [
+ {
+ "filePath": "polaris-react/src/components/AlphaCard/AlphaCard.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "children",
+ "value": "React.ReactNode",
+ "description": "",
+ "isOptional": true
+ },
+ {
+ "filePath": "polaris-react/src/components/AlphaCard/AlphaCard.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "background",
+ "value": "CardBackgroundColorTokenScale",
+ "description": "Background color",
+ "isOptional": true,
+ "defaultValue": "'surface'"
+ },
+ {
+ "filePath": "polaris-react/src/components/AlphaCard/AlphaCard.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "padding",
+ "value": "Spacing",
+ "description": "The spacing around the card",
+ "isOptional": true,
+ "defaultValue": "{xs: '4', sm: '5'}"
+ },
+ {
+ "filePath": "polaris-react/src/components/AlphaCard/AlphaCard.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "roundedAbove",
+ "value": "\"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\"",
+ "description": "Border radius value above a set breakpoint",
+ "isOptional": true
+ }
+ ],
+ "value": "export interface AlphaCardProps {\n children?: React.ReactNode;\n /** Background color\n * @default 'surface'\n */\n background?: CardBackgroundColorTokenScale;\n /** The spacing around the card\n * @default {xs: '4', sm: '5'}\n * @example\n * padding='4'\n * padding={{xs: '2', sm: '3', md: '4', lg: '5', xl: '6'}}\n */\n padding?: Spacing;\n /** Border radius value above a set breakpoint */\n roundedAbove?: BreakpointsAlias;\n}"
+ }
+ },
"Align": {
"polaris-react/src/components/AlphaStack/AlphaStack.tsx": {
"filePath": "polaris-react/src/components/AlphaStack/AlphaStack.tsx",
@@ -10130,7 +10130,7 @@
"syntaxKind": "PropertySignature",
"name": "tabIndex",
"value": "any",
- "description": "Width of container",
+ "description": "Set tab order",
"isOptional": true
},
{
@@ -10138,7 +10138,7 @@
"syntaxKind": "PropertySignature",
"name": "width",
"value": "string",
- "description": "",
+ "description": "Width of container",
"isOptional": true
},
{
@@ -10206,7 +10206,7 @@
"isOptional": true
}
],
- "value": "export interface BoxProps extends React.AriaAttributes {\n children?: React.ReactNode;\n /** HTML Element type\n * @default 'div'\n */\n as?: Element;\n /** Background color */\n background?: BackgroundColors;\n /** Border style */\n border?: BorderTokenAlias;\n /** Vertical end border style */\n borderBlockEnd?: BorderTokenAlias;\n /** Horizontal start border style */\n borderInlineStart?: BorderTokenAlias;\n /** Horizontal end border style */\n borderInlineEnd?: BorderTokenAlias;\n /** Vertical start border style */\n borderBlockStart?: BorderTokenAlias;\n /** Border radius */\n borderRadius?: BorderRadiusTokenScale;\n /** Vertical end horizontal start border radius */\n borderRadiusEndStart?: BorderRadiusTokenScale;\n /** Vertical end horizontal end border radius */\n borderRadiusEndEnd?: BorderRadiusTokenScale;\n /** Vertical start horizontal start border radius */\n borderRadiusStartStart?: BorderRadiusTokenScale;\n /** Vertical start horizontal end border radius */\n borderRadiusStartEnd?: BorderRadiusTokenScale;\n /** Border width */\n borderWidth?: ShapeBorderWidthScale;\n /** Vertical start border width */\n borderBlockStartWidth?: ShapeBorderWidthScale;\n /** Vertical end border width */\n borderBlockEndWidth?: ShapeBorderWidthScale;\n /** Horizontal start border width */\n borderInlineStartWidth?: ShapeBorderWidthScale;\n /** Horizontal end border width */\n borderInlineEndWidth?: ShapeBorderWidthScale;\n /** Color of children */\n color?: ColorTokenScale;\n /** HTML id attribute */\n id?: string;\n /** Minimum height of container */\n minHeight?: string;\n /** Minimum width of container */\n minWidth?: string;\n /** Maximum width of container */\n maxWidth?: string;\n /** Clip horizontal content of children */\n overflowX?: Overflow;\n /** Clip vertical content of children */\n overflowY?: Overflow;\n /** Spacing around children. Accepts a spacing token or an object of spacing tokens for different screen sizes.\n * @example\n * padding='4'\n * padding={{xs: '2', sm: '3', md: '4', lg: '5', xl: '6'}}\n */\n padding?: Spacing;\n /** Vertical start spacing around children. Accepts a spacing token or an object of spacing tokens for different screen sizes.\n * @example\n * paddingBlockStart='4'\n * paddingBlockStart={{xs: '2', sm: '3', md: '4', lg: '5', xl: '6'}}\n */\n paddingBlockStart?: Spacing;\n /** Vertical end spacing around children. Accepts a spacing token or an object of spacing tokens for different screen sizes.\n * @example\n * paddingBlockEnd='4'\n * paddingBlockEnd={{xs: '2', sm: '3', md: '4', lg: '5', xl: '6'}}\n */\n paddingBlockEnd?: Spacing;\n /** Horizontal start spacing around children. Accepts a spacing token or an object of spacing tokens for different screen sizes.\n * @example\n * paddingInlineStart='4'\n * paddingInlineStart={{xs: '2', sm: '3', md: '4', lg: '5', xl: '6'}}\n */\n paddingInlineStart?: Spacing;\n /** Horizontal end spacing around children. Accepts a spacing token or an object of spacing tokens for different screen sizes.\n * @example\n * paddingInlineEnd='4'\n * paddingInlineEnd={{xs: '2', sm: '3', md: '4', lg: '5', xl: '6'}}\n */\n paddingInlineEnd?: Spacing;\n /** Aria role */\n role?: Extract;\n /** Shadow on box */\n shadow?: DepthShadowAlias;\n /** Width of container */\n tabIndex?: Extract['tabIndex'], number>;\n width?: string;\n // These could be moved to new layout component(s) in the future\n /** Position of box */\n position?: Position;\n /** Top position of box */\n insetBlockStart?: Spacing;\n /** Bottom position of box */\n insetBlockEnd?: Spacing;\n /** Left position of box */\n insetInlineStart?: Spacing;\n /** Right position of box */\n insetInlineEnd?: Spacing;\n /** Opacity of box */\n opacity?: string;\n /** Visually hide the contents (still announced by screenreader) */\n visuallyHidden?: boolean;\n /** z-index of box */\n zIndex?: string;\n}"
+ "value": "export interface BoxProps extends React.AriaAttributes {\n children?: React.ReactNode;\n /** HTML Element type\n * @default 'div'\n */\n as?: Element;\n /** Background color */\n background?: BackgroundColors;\n /** Border style */\n border?: BorderTokenAlias;\n /** Vertical end border style */\n borderBlockEnd?: BorderTokenAlias;\n /** Horizontal start border style */\n borderInlineStart?: BorderTokenAlias;\n /** Horizontal end border style */\n borderInlineEnd?: BorderTokenAlias;\n /** Vertical start border style */\n borderBlockStart?: BorderTokenAlias;\n /** Border radius */\n borderRadius?: BorderRadiusTokenScale;\n /** Vertical end horizontal start border radius */\n borderRadiusEndStart?: BorderRadiusTokenScale;\n /** Vertical end horizontal end border radius */\n borderRadiusEndEnd?: BorderRadiusTokenScale;\n /** Vertical start horizontal start border radius */\n borderRadiusStartStart?: BorderRadiusTokenScale;\n /** Vertical start horizontal end border radius */\n borderRadiusStartEnd?: BorderRadiusTokenScale;\n /** Border width */\n borderWidth?: ShapeBorderWidthScale;\n /** Vertical start border width */\n borderBlockStartWidth?: ShapeBorderWidthScale;\n /** Vertical end border width */\n borderBlockEndWidth?: ShapeBorderWidthScale;\n /** Horizontal start border width */\n borderInlineStartWidth?: ShapeBorderWidthScale;\n /** Horizontal end border width */\n borderInlineEndWidth?: ShapeBorderWidthScale;\n /** Color of children */\n color?: ColorTokenScale;\n /** HTML id attribute */\n id?: string;\n /** Minimum height of container */\n minHeight?: string;\n /** Minimum width of container */\n minWidth?: string;\n /** Maximum width of container */\n maxWidth?: string;\n /** Clip horizontal content of children */\n overflowX?: Overflow;\n /** Clip vertical content of children */\n overflowY?: Overflow;\n /** Spacing around children. Accepts a spacing token or an object of spacing tokens for different screen sizes.\n * @example\n * padding='4'\n * padding={{xs: '2', sm: '3', md: '4', lg: '5', xl: '6'}}\n */\n padding?: Spacing;\n /** Vertical start spacing around children. Accepts a spacing token or an object of spacing tokens for different screen sizes.\n * @example\n * paddingBlockStart='4'\n * paddingBlockStart={{xs: '2', sm: '3', md: '4', lg: '5', xl: '6'}}\n */\n paddingBlockStart?: Spacing;\n /** Vertical end spacing around children. Accepts a spacing token or an object of spacing tokens for different screen sizes.\n * @example\n * paddingBlockEnd='4'\n * paddingBlockEnd={{xs: '2', sm: '3', md: '4', lg: '5', xl: '6'}}\n */\n paddingBlockEnd?: Spacing;\n /** Horizontal start spacing around children. Accepts a spacing token or an object of spacing tokens for different screen sizes.\n * @example\n * paddingInlineStart='4'\n * paddingInlineStart={{xs: '2', sm: '3', md: '4', lg: '5', xl: '6'}}\n */\n paddingInlineStart?: Spacing;\n /** Horizontal end spacing around children. Accepts a spacing token or an object of spacing tokens for different screen sizes.\n * @example\n * paddingInlineEnd='4'\n * paddingInlineEnd={{xs: '2', sm: '3', md: '4', lg: '5', xl: '6'}}\n */\n paddingInlineEnd?: Spacing;\n /** Aria role */\n role?: Extract;\n /** Shadow on box */\n shadow?: DepthShadowAlias;\n /** Set tab order */\n tabIndex?: Extract['tabIndex'], number>;\n /** Width of container */\n width?: string;\n // These could be moved to new layout component(s) in the future\n /** Position of box */\n position?: Position;\n /** Top position of box */\n insetBlockStart?: Spacing;\n /** Bottom position of box */\n insetBlockEnd?: Spacing;\n /** Left position of box */\n insetInlineStart?: Spacing;\n /** Right position of box */\n insetInlineEnd?: Spacing;\n /** Opacity of box */\n opacity?: string;\n /** Visually hide the contents (still announced by screenreader) */\n visuallyHidden?: boolean;\n /** z-index of box */\n zIndex?: string;\n}"
}
},
"BreadcrumbsProps": {
@@ -14607,119 +14607,38 @@
"value": "export interface LayoutProps {\n /** Automatically adds sections to layout. */\n sectioned?: boolean;\n /** The content to display inside the layout. */\n children?: React.ReactNode;\n}"
}
},
- "Type": {
- "polaris-react/src/components/List/List.tsx": {
- "filePath": "polaris-react/src/components/List/List.tsx",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "Type",
- "value": "'bullet' | 'number'",
- "description": ""
- },
- "polaris-react/src/components/TextField/TextField.tsx": {
- "filePath": "polaris-react/src/components/TextField/TextField.tsx",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "Type",
- "value": "'text' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'url' | 'date' | 'datetime-local' | 'month' | 'time' | 'week' | 'currency'",
- "description": ""
- }
- },
- "ListProps": {
- "polaris-react/src/components/List/List.tsx": {
- "filePath": "polaris-react/src/components/List/List.tsx",
- "name": "ListProps",
+ "LinkProps": {
+ "polaris-react/src/components/Link/Link.tsx": {
+ "filePath": "polaris-react/src/components/Link/Link.tsx",
+ "name": "LinkProps",
"description": "",
"members": [
{
- "filePath": "polaris-react/src/components/List/List.tsx",
+ "filePath": "polaris-react/src/components/Link/Link.tsx",
"syntaxKind": "PropertySignature",
- "name": "type",
- "value": "Type",
- "description": "Type of list to display",
- "isOptional": true,
- "defaultValue": "'bullet'"
+ "name": "id",
+ "value": "string",
+ "description": "ID for the link",
+ "isOptional": true
},
{
- "filePath": "polaris-react/src/components/List/List.tsx",
+ "filePath": "polaris-react/src/components/Link/Link.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "url",
+ "value": "string",
+ "description": "The url to link to",
+ "isOptional": true
+ },
+ {
+ "filePath": "polaris-react/src/components/Link/Link.tsx",
"syntaxKind": "PropertySignature",
"name": "children",
"value": "React.ReactNode",
- "description": "List item elements",
+ "description": "The content to display inside the link",
"isOptional": true
- }
- ],
- "value": "export interface ListProps {\n /**\n * Type of list to display\n * @default 'bullet'\n */\n type?: Type;\n /** List item elements */\n children?: React.ReactNode;\n}"
- },
- "polaris-react/src/components/Tabs/components/List/List.tsx": {
- "filePath": "polaris-react/src/components/Tabs/components/List/List.tsx",
- "name": "ListProps",
- "description": "",
- "members": [
+ },
{
- "filePath": "polaris-react/src/components/Tabs/components/List/List.tsx",
- "syntaxKind": "PropertySignature",
- "name": "focusIndex",
- "value": "number",
- "description": ""
- },
- {
- "filePath": "polaris-react/src/components/Tabs/components/List/List.tsx",
- "syntaxKind": "PropertySignature",
- "name": "disclosureTabs",
- "value": "TabDescriptor[]",
- "description": ""
- },
- {
- "filePath": "polaris-react/src/components/Tabs/components/List/List.tsx",
- "syntaxKind": "MethodSignature",
- "name": "onClick",
- "value": "(id: string) => void",
- "description": "",
- "isOptional": true
- },
- {
- "filePath": "polaris-react/src/components/Tabs/components/List/List.tsx",
- "syntaxKind": "MethodSignature",
- "name": "onKeyPress",
- "value": "(event: React.KeyboardEvent) => void",
- "description": "",
- "isOptional": true
- }
- ],
- "value": "export interface ListProps {\n focusIndex: number;\n disclosureTabs: TabDescriptor[];\n onClick?(id: string): void;\n onKeyPress?(event: React.KeyboardEvent): void;\n}"
- }
- },
- "LinkProps": {
- "polaris-react/src/components/Link/Link.tsx": {
- "filePath": "polaris-react/src/components/Link/Link.tsx",
- "name": "LinkProps",
- "description": "",
- "members": [
- {
- "filePath": "polaris-react/src/components/Link/Link.tsx",
- "syntaxKind": "PropertySignature",
- "name": "id",
- "value": "string",
- "description": "ID for the link",
- "isOptional": true
- },
- {
- "filePath": "polaris-react/src/components/Link/Link.tsx",
- "syntaxKind": "PropertySignature",
- "name": "url",
- "value": "string",
- "description": "The url to link to",
- "isOptional": true
- },
- {
- "filePath": "polaris-react/src/components/Link/Link.tsx",
- "syntaxKind": "PropertySignature",
- "name": "children",
- "value": "React.ReactNode",
- "description": "The content to display inside the link",
- "isOptional": true
- },
- {
- "filePath": "polaris-react/src/components/Link/Link.tsx",
+ "filePath": "polaris-react/src/components/Link/Link.tsx",
"syntaxKind": "PropertySignature",
"name": "external",
"value": "boolean",
@@ -14770,6 +14689,87 @@
"value": "export interface LinkProps {\n /** ID for the link */\n id?: string;\n /** The url to link to */\n url?: string;\n /** The content to display inside the link */\n children?: React.ReactNode;\n /** Makes the link open in a new tab */\n external?: boolean;\n /** Makes the link color the same as the current text color and adds an underline */\n monochrome?: boolean;\n /** Removes text decoration underline to the link*/\n removeUnderline?: boolean;\n /** Callback when a link is clicked */\n onClick?(): void;\n /** Descriptive text to be read to screenreaders */\n accessibilityLabel?: string;\n /** Indicates whether or not the link is the primary navigation link when rendered inside of an `IndexTable.Row` */\n dataPrimaryLink?: boolean;\n}"
}
},
+ "Type": {
+ "polaris-react/src/components/List/List.tsx": {
+ "filePath": "polaris-react/src/components/List/List.tsx",
+ "syntaxKind": "TypeAliasDeclaration",
+ "name": "Type",
+ "value": "'bullet' | 'number'",
+ "description": ""
+ },
+ "polaris-react/src/components/TextField/TextField.tsx": {
+ "filePath": "polaris-react/src/components/TextField/TextField.tsx",
+ "syntaxKind": "TypeAliasDeclaration",
+ "name": "Type",
+ "value": "'text' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'url' | 'date' | 'datetime-local' | 'month' | 'time' | 'week' | 'currency'",
+ "description": ""
+ }
+ },
+ "ListProps": {
+ "polaris-react/src/components/List/List.tsx": {
+ "filePath": "polaris-react/src/components/List/List.tsx",
+ "name": "ListProps",
+ "description": "",
+ "members": [
+ {
+ "filePath": "polaris-react/src/components/List/List.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "type",
+ "value": "Type",
+ "description": "Type of list to display",
+ "isOptional": true,
+ "defaultValue": "'bullet'"
+ },
+ {
+ "filePath": "polaris-react/src/components/List/List.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "children",
+ "value": "React.ReactNode",
+ "description": "List item elements",
+ "isOptional": true
+ }
+ ],
+ "value": "export interface ListProps {\n /**\n * Type of list to display\n * @default 'bullet'\n */\n type?: Type;\n /** List item elements */\n children?: React.ReactNode;\n}"
+ },
+ "polaris-react/src/components/Tabs/components/List/List.tsx": {
+ "filePath": "polaris-react/src/components/Tabs/components/List/List.tsx",
+ "name": "ListProps",
+ "description": "",
+ "members": [
+ {
+ "filePath": "polaris-react/src/components/Tabs/components/List/List.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "focusIndex",
+ "value": "number",
+ "description": ""
+ },
+ {
+ "filePath": "polaris-react/src/components/Tabs/components/List/List.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "disclosureTabs",
+ "value": "TabDescriptor[]",
+ "description": ""
+ },
+ {
+ "filePath": "polaris-react/src/components/Tabs/components/List/List.tsx",
+ "syntaxKind": "MethodSignature",
+ "name": "onClick",
+ "value": "(id: string) => void",
+ "description": "",
+ "isOptional": true
+ },
+ {
+ "filePath": "polaris-react/src/components/Tabs/components/List/List.tsx",
+ "syntaxKind": "MethodSignature",
+ "name": "onKeyPress",
+ "value": "(event: React.KeyboardEvent) => void",
+ "description": "",
+ "isOptional": true
+ }
+ ],
+ "value": "export interface ListProps {\n focusIndex: number;\n disclosureTabs: TabDescriptor[];\n onClick?(id: string): void;\n onKeyPress?(event: React.KeyboardEvent): void;\n}"
+ }
+ },
"AutoSelection": {
"polaris-react/src/components/Listbox/Listbox.tsx": {
"filePath": "polaris-react/src/components/Listbox/Listbox.tsx",
@@ -22237,30 +22237,6 @@
],
"value": "export interface ItemProps extends ItemURLDetails {\n icon?: IconProps['source'];\n badge?: ReactNode;\n label: string;\n disabled?: boolean;\n accessibilityLabel?: string;\n selected?: boolean;\n exactMatch?: boolean;\n new?: boolean;\n subNavigationItems?: SubNavigationItem[];\n secondaryAction?: SecondaryAction;\n onClick?(): void;\n onToggleExpandedState?(): void;\n expanded?: boolean;\n shouldResizeIcon?: boolean;\n truncateText?: boolean;\n}"
},
- "polaris-react/src/components/Stack/components/Item/Item.tsx": {
- "filePath": "polaris-react/src/components/Stack/components/Item/Item.tsx",
- "name": "ItemProps",
- "description": "",
- "members": [
- {
- "filePath": "polaris-react/src/components/Stack/components/Item/Item.tsx",
- "syntaxKind": "PropertySignature",
- "name": "children",
- "value": "React.ReactNode",
- "description": "Elements to display inside item",
- "isOptional": true
- },
- {
- "filePath": "polaris-react/src/components/Stack/components/Item/Item.tsx",
- "syntaxKind": "PropertySignature",
- "name": "fill",
- "value": "boolean",
- "description": "Fill the remaining horizontal space in the stack with the item",
- "isOptional": true
- }
- ],
- "value": "export interface ItemProps {\n /** Elements to display inside item */\n children?: React.ReactNode;\n /** Fill the remaining horizontal space in the stack with the item */\n fill?: boolean;\n /**\n * @default false\n */\n}"
- },
"polaris-react/src/components/Tabs/components/Item/Item.tsx": {
"filePath": "polaris-react/src/components/Tabs/components/Item/Item.tsx",
"name": "ItemProps",
@@ -22323,6 +22299,30 @@
],
"value": "export interface ItemProps {\n id: string;\n focused: boolean;\n panelID?: string;\n children?: React.ReactNode;\n url?: string;\n accessibilityLabel?: string;\n onClick?(): void;\n}"
},
+ "polaris-react/src/components/Stack/components/Item/Item.tsx": {
+ "filePath": "polaris-react/src/components/Stack/components/Item/Item.tsx",
+ "name": "ItemProps",
+ "description": "",
+ "members": [
+ {
+ "filePath": "polaris-react/src/components/Stack/components/Item/Item.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "children",
+ "value": "React.ReactNode",
+ "description": "Elements to display inside item",
+ "isOptional": true
+ },
+ {
+ "filePath": "polaris-react/src/components/Stack/components/Item/Item.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "fill",
+ "value": "boolean",
+ "description": "Fill the remaining horizontal space in the stack with the item",
+ "isOptional": true
+ }
+ ],
+ "value": "export interface ItemProps {\n /** Elements to display inside item */\n children?: React.ReactNode;\n /** Fill the remaining horizontal space in the stack with the item */\n fill?: boolean;\n /**\n * @default false\n */\n}"
+ },
"polaris-react/src/components/Filters/components/ConnectedFilterControl/components/Item/Item.tsx": {
"filePath": "polaris-react/src/components/Filters/components/ConnectedFilterControl/components/Item/Item.tsx",
"name": "ItemProps",
@@ -22375,9 +22375,17 @@
"value": "() => void",
"description": "Callback when any item is clicked or keypressed",
"isOptional": true
+ },
+ {
+ "filePath": "polaris-react/src/components/ActionList/components/Section/Section.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "isFirst",
+ "value": "boolean",
+ "description": "",
+ "isOptional": true
}
],
- "value": "export interface SectionProps {\n /** Section of action items */\n section: ActionListSection;\n /** Should there be multiple sections */\n hasMultipleSections: boolean;\n /** Defines a specific role attribute for each action in the list */\n actionRole?: 'option' | 'menuitem' | string;\n /** Callback when any item is clicked or keypressed */\n onActionAnyItem?: ActionListItemDescriptor['onAction'];\n}"
+ "value": "export interface SectionProps {\n /** Section of action items */\n section: ActionListSection;\n /** Should there be multiple sections */\n hasMultipleSections: boolean;\n /** Defines a specific role attribute for each action in the list */\n actionRole?: 'option' | 'menuitem' | string;\n /** Callback when any item is clicked or keypressed */\n onActionAnyItem?: ActionListItemDescriptor['onAction'];\n isFirst?: boolean;\n}"
},
"polaris-react/src/components/Layout/components/Section/Section.tsx": {
"filePath": "polaris-react/src/components/Layout/components/Section/Section.tsx",
@@ -22602,40 +22610,6 @@
"value": "interface MeasuredActions {\n showable: MenuActionDescriptor[];\n rolledUp: (MenuActionDescriptor | MenuGroupDescriptor)[];\n}"
}
},
- "RollupActionsProps": {
- "polaris-react/src/components/ActionMenu/components/RollupActions/RollupActions.tsx": {
- "filePath": "polaris-react/src/components/ActionMenu/components/RollupActions/RollupActions.tsx",
- "name": "RollupActionsProps",
- "description": "",
- "members": [
- {
- "filePath": "polaris-react/src/components/ActionMenu/components/RollupActions/RollupActions.tsx",
- "syntaxKind": "PropertySignature",
- "name": "accessibilityLabel",
- "value": "string",
- "description": "Accessibilty label",
- "isOptional": true
- },
- {
- "filePath": "polaris-react/src/components/ActionMenu/components/RollupActions/RollupActions.tsx",
- "syntaxKind": "PropertySignature",
- "name": "items",
- "value": "ActionListItemDescriptor[]",
- "description": "Collection of actions for the list",
- "isOptional": true
- },
- {
- "filePath": "polaris-react/src/components/ActionMenu/components/RollupActions/RollupActions.tsx",
- "syntaxKind": "PropertySignature",
- "name": "sections",
- "value": "ActionListSection[]",
- "description": "Collection of sectioned action items",
- "isOptional": true
- }
- ],
- "value": "export interface RollupActionsProps {\n /** Accessibilty label */\n accessibilityLabel?: string;\n /** Collection of actions for the list */\n items?: ActionListItemDescriptor[];\n /** Collection of sectioned action items */\n sections?: ActionListSection[];\n}"
- }
- },
"MenuGroupProps": {
"polaris-react/src/components/ActionMenu/components/MenuGroup/MenuGroup.tsx": {
"filePath": "polaris-react/src/components/ActionMenu/components/MenuGroup/MenuGroup.tsx",
@@ -22762,27 +22736,70 @@
"value": "export interface MenuGroupProps extends MenuGroupDescriptor {\n /** Visually hidden menu description for screen readers */\n accessibilityLabel?: string;\n /** Whether or not the menu is open */\n active?: boolean;\n /** Callback when the menu is clicked */\n onClick?(openActions: () => void): void;\n /** Callback for opening the MenuGroup by title */\n onOpen(title: string): void;\n /** Callback for closing the MenuGroup by title */\n onClose(title: string): void;\n /** Callback for getting the offsetWidth of the MenuGroup */\n getOffsetWidth?(width: number): void;\n /** Collection of sectioned action items */\n sections?: readonly ActionListSection[];\n}"
}
},
- "SecondaryAction": {
- "polaris-react/src/components/ActionMenu/components/SecondaryAction/SecondaryAction.tsx": {
- "filePath": "polaris-react/src/components/ActionMenu/components/SecondaryAction/SecondaryAction.tsx",
- "name": "SecondaryAction",
+ "RollupActionsProps": {
+ "polaris-react/src/components/ActionMenu/components/RollupActions/RollupActions.tsx": {
+ "filePath": "polaris-react/src/components/ActionMenu/components/RollupActions/RollupActions.tsx",
+ "name": "RollupActionsProps",
"description": "",
"members": [
{
- "filePath": "polaris-react/src/components/ActionMenu/components/SecondaryAction/SecondaryAction.tsx",
+ "filePath": "polaris-react/src/components/ActionMenu/components/RollupActions/RollupActions.tsx",
"syntaxKind": "PropertySignature",
- "name": "helpText",
- "value": "React.ReactNode",
- "description": "",
+ "name": "accessibilityLabel",
+ "value": "string",
+ "description": "Accessibilty label",
"isOptional": true
},
{
- "filePath": "polaris-react/src/components/ActionMenu/components/SecondaryAction/SecondaryAction.tsx",
- "syntaxKind": "MethodSignature",
- "name": "onAction",
- "value": "() => void",
- "description": "",
- "isOptional": true
+ "filePath": "polaris-react/src/components/ActionMenu/components/RollupActions/RollupActions.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "items",
+ "value": "ActionListItemDescriptor[]",
+ "description": "Collection of actions for the list",
+ "isOptional": true
+ },
+ {
+ "filePath": "polaris-react/src/components/ActionMenu/components/RollupActions/RollupActions.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "sections",
+ "value": "ActionListSection[]",
+ "description": "Collection of sectioned action items",
+ "isOptional": true
+ }
+ ],
+ "value": "export interface RollupActionsProps {\n /** Accessibilty label */\n accessibilityLabel?: string;\n /** Collection of actions for the list */\n items?: ActionListItemDescriptor[];\n /** Collection of sectioned action items */\n sections?: ActionListSection[];\n}"
+ }
+ },
+ "MappedOption": {
+ "polaris-react/src/components/Autocomplete/components/MappedOption/MappedOption.tsx": {
+ "filePath": "polaris-react/src/components/Autocomplete/components/MappedOption/MappedOption.tsx",
+ "syntaxKind": "TypeAliasDeclaration",
+ "name": "MappedOption",
+ "value": "ArrayElement & {\n selected: boolean;\n singleSelection: boolean;\n}",
+ "description": ""
+ }
+ },
+ "SecondaryAction": {
+ "polaris-react/src/components/ActionMenu/components/SecondaryAction/SecondaryAction.tsx": {
+ "filePath": "polaris-react/src/components/ActionMenu/components/SecondaryAction/SecondaryAction.tsx",
+ "name": "SecondaryAction",
+ "description": "",
+ "members": [
+ {
+ "filePath": "polaris-react/src/components/ActionMenu/components/SecondaryAction/SecondaryAction.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "helpText",
+ "value": "React.ReactNode",
+ "description": "",
+ "isOptional": true
+ },
+ {
+ "filePath": "polaris-react/src/components/ActionMenu/components/SecondaryAction/SecondaryAction.tsx",
+ "syntaxKind": "MethodSignature",
+ "name": "onAction",
+ "value": "() => void",
+ "description": "",
+ "isOptional": true
},
{
"filePath": "polaris-react/src/components/ActionMenu/components/SecondaryAction/SecondaryAction.tsx",
@@ -23311,15 +23328,6 @@
"value": "interface MappedAction extends ActionListItemDescriptor {\n wrapOverflow?: boolean;\n}"
}
},
- "MappedOption": {
- "polaris-react/src/components/Autocomplete/components/MappedOption/MappedOption.tsx": {
- "filePath": "polaris-react/src/components/Autocomplete/components/MappedOption/MappedOption.tsx",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "MappedOption",
- "value": "ArrayElement & {\n selected: boolean;\n singleSelection: boolean;\n}",
- "description": ""
- }
- },
"PipProps": {
"polaris-react/src/components/Badge/components/Pip/Pip.tsx": {
"filePath": "polaris-react/src/components/Badge/components/Pip/Pip.tsx",
@@ -23550,24 +23558,6 @@
"value": "export interface CardSectionProps {\n title?: React.ReactNode;\n children?: React.ReactNode;\n subdued?: boolean;\n flush?: boolean;\n fullWidth?: boolean;\n /** Allow the card to be hidden when printing */\n hideOnPrint?: boolean;\n actions?: ComplexAction[];\n}"
}
},
- "CardSubsectionProps": {
- "polaris-react/src/components/Card/components/Subsection/Subsection.tsx": {
- "filePath": "polaris-react/src/components/Card/components/Subsection/Subsection.tsx",
- "name": "CardSubsectionProps",
- "description": "",
- "members": [
- {
- "filePath": "polaris-react/src/components/Card/components/Subsection/Subsection.tsx",
- "syntaxKind": "PropertySignature",
- "name": "children",
- "value": "React.ReactNode",
- "description": "",
- "isOptional": true
- }
- ],
- "value": "export interface CardSubsectionProps {\n children?: React.ReactNode;\n}"
- }
- },
"AlphaPickerProps": {
"polaris-react/src/components/ColorPicker/components/AlphaPicker/AlphaPicker.tsx": {
"filePath": "polaris-react/src/components/ColorPicker/components/AlphaPicker/AlphaPicker.tsx",
@@ -23664,6 +23654,33 @@
"value": "export interface SlidableProps {\n draggerX?: number;\n draggerY?: number;\n onChange(position: Position): void;\n onDraggerHeight?(height: number): void;\n}"
}
},
+ "CardSubsectionProps": {
+ "polaris-react/src/components/Card/components/Subsection/Subsection.tsx": {
+ "filePath": "polaris-react/src/components/Card/components/Subsection/Subsection.tsx",
+ "name": "CardSubsectionProps",
+ "description": "",
+ "members": [
+ {
+ "filePath": "polaris-react/src/components/Card/components/Subsection/Subsection.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "children",
+ "value": "React.ReactNode",
+ "description": "",
+ "isOptional": true
+ }
+ ],
+ "value": "export interface CardSubsectionProps {\n children?: React.ReactNode;\n}"
+ }
+ },
+ "ItemPosition": {
+ "polaris-react/src/components/Connected/components/Item/Item.tsx": {
+ "filePath": "polaris-react/src/components/Connected/components/Item/Item.tsx",
+ "syntaxKind": "TypeAliasDeclaration",
+ "name": "ItemPosition",
+ "value": "'left' | 'right' | 'primary'",
+ "description": ""
+ }
+ },
"CellProps": {
"polaris-react/src/components/DataTable/components/Cell/Cell.tsx": {
"filePath": "polaris-react/src/components/DataTable/components/Cell/Cell.tsx",
@@ -24100,15 +24117,6 @@
"value": "export interface DayProps {\n focused?: boolean;\n day?: Date;\n selected?: boolean;\n inRange?: boolean;\n inHoveringRange?: boolean;\n disabled?: boolean;\n lastDayOfMonth?: any;\n isLastSelectedDay?: boolean;\n isFirstSelectedDay?: boolean;\n isHoveringRight?: boolean;\n rangeIsDifferent?: boolean;\n weekday?: string;\n selectedAccessibilityLabelPrefix?: string;\n onClick?(day: Date): void;\n onHover?(day?: Date): void;\n onFocus?(day: Date): void;\n}"
}
},
- "ItemPosition": {
- "polaris-react/src/components/Connected/components/Item/Item.tsx": {
- "filePath": "polaris-react/src/components/Connected/components/Item/Item.tsx",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "ItemPosition",
- "value": "'left' | 'right' | 'primary'",
- "description": ""
- }
- },
"MonthProps": {
"polaris-react/src/components/DatePicker/components/Month/Month.tsx": {
"filePath": "polaris-react/src/components/DatePicker/components/Month/Month.tsx",
@@ -24227,6 +24235,32 @@
"value": "export interface MonthProps {\n focusedDate?: Date;\n selected?: Range;\n hoverDate?: Date;\n month: number;\n year: number;\n disableDatesBefore?: Date;\n disableDatesAfter?: Date;\n disableSpecificDates?: Date[];\n allowRange?: boolean;\n weekStartsOn: number;\n accessibilityLabelPrefixes: [string | undefined, string];\n onChange?(date: Range): void;\n onHover?(hoverEnd: Date): void;\n onFocus?(date: Date): void;\n}"
}
},
+ "FileUploadProps": {
+ "polaris-react/src/components/DropZone/components/FileUpload/FileUpload.tsx": {
+ "filePath": "polaris-react/src/components/DropZone/components/FileUpload/FileUpload.tsx",
+ "name": "FileUploadProps",
+ "description": "",
+ "members": [
+ {
+ "filePath": "polaris-react/src/components/DropZone/components/FileUpload/FileUpload.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "actionTitle",
+ "value": "string",
+ "description": "",
+ "isOptional": true
+ },
+ {
+ "filePath": "polaris-react/src/components/DropZone/components/FileUpload/FileUpload.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "actionHint",
+ "value": "string",
+ "description": "",
+ "isOptional": true
+ }
+ ],
+ "value": "export interface FileUploadProps {\n actionTitle?: string;\n actionHint?: string;\n}"
+ }
+ },
"WeekdayProps": {
"polaris-react/src/components/DatePicker/components/Weekday/Weekday.tsx": {
"filePath": "polaris-react/src/components/DatePicker/components/Weekday/Weekday.tsx",
@@ -24258,32 +24292,6 @@
"value": "export interface WeekdayProps {\n label: string;\n title: string;\n current: boolean;\n}"
}
},
- "FileUploadProps": {
- "polaris-react/src/components/DropZone/components/FileUpload/FileUpload.tsx": {
- "filePath": "polaris-react/src/components/DropZone/components/FileUpload/FileUpload.tsx",
- "name": "FileUploadProps",
- "description": "",
- "members": [
- {
- "filePath": "polaris-react/src/components/DropZone/components/FileUpload/FileUpload.tsx",
- "syntaxKind": "PropertySignature",
- "name": "actionTitle",
- "value": "string",
- "description": "",
- "isOptional": true
- },
- {
- "filePath": "polaris-react/src/components/DropZone/components/FileUpload/FileUpload.tsx",
- "syntaxKind": "PropertySignature",
- "name": "actionHint",
- "value": "string",
- "description": "",
- "isOptional": true
- }
- ],
- "value": "export interface FileUploadProps {\n actionTitle?: string;\n actionHint?: string;\n}"
- }
- },
"PopoverableAction": {
"polaris-react/src/components/Filters/components/ConnectedFilterControl/ConnectedFilterControl.tsx": {
"filePath": "polaris-react/src/components/Filters/components/ConnectedFilterControl/ConnectedFilterControl.tsx",
@@ -25556,6 +25564,65 @@
]
}
},
+ "PaneProps": {
+ "polaris-react/src/components/Popover/components/Pane/Pane.tsx": {
+ "filePath": "polaris-react/src/components/Popover/components/Pane/Pane.tsx",
+ "name": "PaneProps",
+ "description": "",
+ "members": [
+ {
+ "filePath": "polaris-react/src/components/Popover/components/Pane/Pane.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "fixed",
+ "value": "boolean",
+ "description": "Fix the pane to the top of the popover",
+ "isOptional": true
+ },
+ {
+ "filePath": "polaris-react/src/components/Popover/components/Pane/Pane.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "sectioned",
+ "value": "boolean",
+ "description": "Automatically wrap children in padded sections",
+ "isOptional": true
+ },
+ {
+ "filePath": "polaris-react/src/components/Popover/components/Pane/Pane.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "children",
+ "value": "React.ReactNode",
+ "description": "The pane content",
+ "isOptional": true
+ },
+ {
+ "filePath": "polaris-react/src/components/Popover/components/Pane/Pane.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "height",
+ "value": "string",
+ "description": "Sets a fixed height and max-height on the Scrollable",
+ "isOptional": true
+ },
+ {
+ "filePath": "polaris-react/src/components/Popover/components/Pane/Pane.tsx",
+ "syntaxKind": "MethodSignature",
+ "name": "onScrolledToBottom",
+ "value": "() => void",
+ "description": "Callback when the bottom of the popover is reached by mouse or keyboard",
+ "isOptional": true
+ },
+ {
+ "filePath": "polaris-react/src/components/Popover/components/Pane/Pane.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "captureOverscroll",
+ "value": "boolean",
+ "description": "Prevents page scrolling when the end of the scrollable Popover content is reached",
+ "isOptional": true,
+ "defaultValue": "false"
+ }
+ ],
+ "value": "export interface PaneProps {\n /** Fix the pane to the top of the popover */\n fixed?: boolean;\n /** Automatically wrap children in padded sections */\n sectioned?: boolean;\n /** The pane content */\n children?: React.ReactNode;\n /** Sets a fixed height and max-height on the Scrollable */\n height?: string;\n /** Callback when the bottom of the popover is reached by mouse or keyboard */\n onScrolledToBottom?(): void;\n /**\n * Prevents page scrolling when the end of the scrollable Popover content is reached\n * @default false\n */\n captureOverscroll?: boolean;\n}"
+ }
+ },
"PrimaryAction": {
"polaris-react/src/components/Page/components/Header/Header.tsx": {
"filePath": "polaris-react/src/components/Page/components/Header/Header.tsx",
@@ -25678,65 +25745,6 @@
"value": "interface PrimaryAction\n extends DestructableAction,\n DisableableAction,\n LoadableAction,\n IconableAction,\n TooltipAction {\n /** Provides extra visual weight and identifies the primary action in a set of buttons */\n primary?: boolean;\n}"
}
},
- "PaneProps": {
- "polaris-react/src/components/Popover/components/Pane/Pane.tsx": {
- "filePath": "polaris-react/src/components/Popover/components/Pane/Pane.tsx",
- "name": "PaneProps",
- "description": "",
- "members": [
- {
- "filePath": "polaris-react/src/components/Popover/components/Pane/Pane.tsx",
- "syntaxKind": "PropertySignature",
- "name": "fixed",
- "value": "boolean",
- "description": "Fix the pane to the top of the popover",
- "isOptional": true
- },
- {
- "filePath": "polaris-react/src/components/Popover/components/Pane/Pane.tsx",
- "syntaxKind": "PropertySignature",
- "name": "sectioned",
- "value": "boolean",
- "description": "Automatically wrap children in padded sections",
- "isOptional": true
- },
- {
- "filePath": "polaris-react/src/components/Popover/components/Pane/Pane.tsx",
- "syntaxKind": "PropertySignature",
- "name": "children",
- "value": "React.ReactNode",
- "description": "The pane content",
- "isOptional": true
- },
- {
- "filePath": "polaris-react/src/components/Popover/components/Pane/Pane.tsx",
- "syntaxKind": "PropertySignature",
- "name": "height",
- "value": "string",
- "description": "Sets a fixed height and max-height on the Scrollable",
- "isOptional": true
- },
- {
- "filePath": "polaris-react/src/components/Popover/components/Pane/Pane.tsx",
- "syntaxKind": "MethodSignature",
- "name": "onScrolledToBottom",
- "value": "() => void",
- "description": "Callback when the bottom of the popover is reached by mouse or keyboard",
- "isOptional": true
- },
- {
- "filePath": "polaris-react/src/components/Popover/components/Pane/Pane.tsx",
- "syntaxKind": "PropertySignature",
- "name": "captureOverscroll",
- "value": "boolean",
- "description": "Prevents page scrolling when the end of the scrollable Popover content is reached",
- "isOptional": true,
- "defaultValue": "false"
- }
- ],
- "value": "export interface PaneProps {\n /** Fix the pane to the top of the popover */\n fixed?: boolean;\n /** Automatically wrap children in padded sections */\n sectioned?: boolean;\n /** The pane content */\n children?: React.ReactNode;\n /** Sets a fixed height and max-height on the Scrollable */\n height?: string;\n /** Callback when the bottom of the popover is reached by mouse or keyboard */\n onScrolledToBottom?(): void;\n /**\n * Prevents page scrolling when the end of the scrollable Popover content is reached\n * @default false\n */\n captureOverscroll?: boolean;\n}"
- }
- },
"PopoverCloseSource": {
"polaris-react/src/components/Popover/components/PopoverOverlay/PopoverOverlay.tsx": {
"filePath": "polaris-react/src/components/Popover/components/PopoverOverlay/PopoverOverlay.tsx",
@@ -26580,6 +26588,48 @@
"value": "export interface TooltipOverlayProps {\n id: string;\n active: boolean;\n preventInteraction?: PositionedOverlayProps['preventInteraction'];\n preferredPosition?: PositionedOverlayProps['preferredPosition'];\n children?: React.ReactNode;\n activator: HTMLElement;\n accessibilityLabel?: string;\n onClose(): void;\n}"
}
},
+ "SearchProps": {
+ "polaris-react/src/components/TopBar/components/Search/Search.tsx": {
+ "filePath": "polaris-react/src/components/TopBar/components/Search/Search.tsx",
+ "name": "SearchProps",
+ "description": "",
+ "members": [
+ {
+ "filePath": "polaris-react/src/components/TopBar/components/Search/Search.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "visible",
+ "value": "boolean",
+ "description": "Toggles whether or not the search is visible",
+ "isOptional": true
+ },
+ {
+ "filePath": "polaris-react/src/components/TopBar/components/Search/Search.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "children",
+ "value": "React.ReactNode",
+ "description": "The content to display inside the search",
+ "isOptional": true
+ },
+ {
+ "filePath": "polaris-react/src/components/TopBar/components/Search/Search.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "overlayVisible",
+ "value": "boolean",
+ "description": "Whether or not the search results overlay has a visible backdrop",
+ "isOptional": true
+ },
+ {
+ "filePath": "polaris-react/src/components/TopBar/components/Search/Search.tsx",
+ "syntaxKind": "MethodSignature",
+ "name": "onDismiss",
+ "value": "() => void",
+ "description": "Callback when the search is dismissed",
+ "isOptional": true
+ }
+ ],
+ "value": "export interface SearchProps {\n /** Toggles whether or not the search is visible */\n visible?: boolean;\n /** The content to display inside the search */\n children?: React.ReactNode;\n /** Whether or not the search results overlay has a visible backdrop */\n overlayVisible?: boolean;\n /** Callback when the search is dismissed */\n onDismiss?(): void;\n}"
+ }
+ },
"MenuProps": {
"polaris-react/src/components/TopBar/components/Menu/Menu.tsx": {
"filePath": "polaris-react/src/components/TopBar/components/Menu/Menu.tsx",
@@ -26641,48 +26691,6 @@
"value": "export interface MenuProps {\n /** Accepts an activator component that renders inside of a button that opens the menu */\n activatorContent: React.ReactNode;\n /** An array of action objects that are rendered inside of a popover triggered by this menu */\n actions: ActionListProps['sections'];\n /** Accepts a message that facilitates direct, urgent communication with the merchant through the menu */\n message?: MessageProps;\n /** A boolean property indicating whether the menu is currently open */\n open: boolean;\n /** A callback function to handle opening the menu popover */\n onOpen(): void;\n /** A callback function to handle closing the menu popover */\n onClose(): void;\n /** A callback function to handle closing the menu popover */\n onClose(): void;\n /** A string that provides the accessibility labeling */\n accessibilityLabel?: string;\n}"
}
},
- "SearchProps": {
- "polaris-react/src/components/TopBar/components/Search/Search.tsx": {
- "filePath": "polaris-react/src/components/TopBar/components/Search/Search.tsx",
- "name": "SearchProps",
- "description": "",
- "members": [
- {
- "filePath": "polaris-react/src/components/TopBar/components/Search/Search.tsx",
- "syntaxKind": "PropertySignature",
- "name": "visible",
- "value": "boolean",
- "description": "Toggles whether or not the search is visible",
- "isOptional": true
- },
- {
- "filePath": "polaris-react/src/components/TopBar/components/Search/Search.tsx",
- "syntaxKind": "PropertySignature",
- "name": "children",
- "value": "React.ReactNode",
- "description": "The content to display inside the search",
- "isOptional": true
- },
- {
- "filePath": "polaris-react/src/components/TopBar/components/Search/Search.tsx",
- "syntaxKind": "PropertySignature",
- "name": "overlayVisible",
- "value": "boolean",
- "description": "Whether or not the search results overlay has a visible backdrop",
- "isOptional": true
- },
- {
- "filePath": "polaris-react/src/components/TopBar/components/Search/Search.tsx",
- "syntaxKind": "MethodSignature",
- "name": "onDismiss",
- "value": "() => void",
- "description": "Callback when the search is dismissed",
- "isOptional": true
- }
- ],
- "value": "export interface SearchProps {\n /** Toggles whether or not the search is visible */\n visible?: boolean;\n /** The content to display inside the search */\n children?: React.ReactNode;\n /** Whether or not the search results overlay has a visible backdrop */\n overlayVisible?: boolean;\n /** Callback when the search is dismissed */\n onDismiss?(): void;\n}"
- }
- },
"SearchFieldProps": {
"polaris-react/src/components/TopBar/components/SearchField/SearchField.tsx": {
"filePath": "polaris-react/src/components/TopBar/components/SearchField/SearchField.tsx",
@@ -26840,6 +26848,37 @@
"value": "export interface UserMenuProps {\n /** An array of action objects that are rendered inside of a popover triggered by this menu */\n actions: {items: IconableAction[]}[];\n /** Accepts a message that facilitates direct, urgent communication with the merchant through the user menu */\n message?: MenuProps['message'];\n /** A string detailing the merchant’s full name to be displayed in the user menu */\n name: string;\n /** A string allowing further detail on the merchant’s name displayed in the user menu */\n detail?: string;\n /** A string that provides the accessibility labeling */\n accessibilityLabel?: string;\n /** The merchant’s initials, rendered in place of an avatar image when not provided */\n initials: AvatarProps['initials'];\n /** An avatar image representing the merchant */\n avatar?: AvatarProps['source'];\n /** A boolean property indicating whether the user menu is currently open */\n open: boolean;\n /** A callback function to handle opening and closing the user menu */\n onToggle(): void;\n}"
}
},
+ "DiscardConfirmationModalProps": {
+ "polaris-react/src/components/Frame/components/ContextualSaveBar/components/DiscardConfirmationModal/DiscardConfirmationModal.tsx": {
+ "filePath": "polaris-react/src/components/Frame/components/ContextualSaveBar/components/DiscardConfirmationModal/DiscardConfirmationModal.tsx",
+ "name": "DiscardConfirmationModalProps",
+ "description": "",
+ "members": [
+ {
+ "filePath": "polaris-react/src/components/Frame/components/ContextualSaveBar/components/DiscardConfirmationModal/DiscardConfirmationModal.tsx",
+ "syntaxKind": "PropertySignature",
+ "name": "open",
+ "value": "boolean",
+ "description": ""
+ },
+ {
+ "filePath": "polaris-react/src/components/Frame/components/ContextualSaveBar/components/DiscardConfirmationModal/DiscardConfirmationModal.tsx",
+ "syntaxKind": "MethodSignature",
+ "name": "onDiscard",
+ "value": "() => void",
+ "description": ""
+ },
+ {
+ "filePath": "polaris-react/src/components/Frame/components/ContextualSaveBar/components/DiscardConfirmationModal/DiscardConfirmationModal.tsx",
+ "syntaxKind": "MethodSignature",
+ "name": "onCancel",
+ "value": "() => void",
+ "description": ""
+ }
+ ],
+ "value": "export interface DiscardConfirmationModalProps {\n open: boolean;\n onDiscard(): void;\n onCancel(): void;\n}"
+ }
+ },
"SecondaryProps": {
"polaris-react/src/components/Navigation/components/Item/components/Secondary/Secondary.tsx": {
"filePath": "polaris-react/src/components/Navigation/components/Item/components/Secondary/Secondary.tsx",
@@ -26873,37 +26912,6 @@
"value": "interface SecondaryProps {\n expanded: boolean;\n children?: React.ReactNode;\n id?: string;\n}"
}
},
- "DiscardConfirmationModalProps": {
- "polaris-react/src/components/Frame/components/ContextualSaveBar/components/DiscardConfirmationModal/DiscardConfirmationModal.tsx": {
- "filePath": "polaris-react/src/components/Frame/components/ContextualSaveBar/components/DiscardConfirmationModal/DiscardConfirmationModal.tsx",
- "name": "DiscardConfirmationModalProps",
- "description": "",
- "members": [
- {
- "filePath": "polaris-react/src/components/Frame/components/ContextualSaveBar/components/DiscardConfirmationModal/DiscardConfirmationModal.tsx",
- "syntaxKind": "PropertySignature",
- "name": "open",
- "value": "boolean",
- "description": ""
- },
- {
- "filePath": "polaris-react/src/components/Frame/components/ContextualSaveBar/components/DiscardConfirmationModal/DiscardConfirmationModal.tsx",
- "syntaxKind": "MethodSignature",
- "name": "onDiscard",
- "value": "() => void",
- "description": ""
- },
- {
- "filePath": "polaris-react/src/components/Frame/components/ContextualSaveBar/components/DiscardConfirmationModal/DiscardConfirmationModal.tsx",
- "syntaxKind": "MethodSignature",
- "name": "onCancel",
- "value": "() => void",
- "description": ""
- }
- ],
- "value": "export interface DiscardConfirmationModalProps {\n open: boolean;\n onDiscard(): void;\n onCancel(): void;\n}"
- }
- },
"TitleProps": {
"polaris-react/src/components/Page/components/Header/components/Title/Title.tsx": {
"filePath": "polaris-react/src/components/Page/components/Header/components/Title/Title.tsx",