diff --git a/package.json b/package.json
index 29ba52d182..48940999b8 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,6 @@
"deploy:unstable": "changeset version --snapshot unstable && changeset publish --tag unstable --no-git-tag",
"predeploy:internal": "yarn build",
"deploy:internal": "changeset version --snapshot internal && changeset publish --tag internal --no-git-tag",
- "gen-docs:admin": "node ./packages/ui-extensions/docs/surfaces/admin/create-doc-files.js",
"lint": "loom lint",
"nuke": "rm -rf node_modules && yarn cache clean && rm -rf .loom && git clean -xdf ./packages; rm -rf ./build",
"restore-consumer": "./scripts/restore-consumer.sh",
diff --git a/packages/ui-extensions/buildTargetDts.ts b/packages/ui-extensions/buildTargetDts.ts
index 5bc6c744da..5704d68937 100644
--- a/packages/ui-extensions/buildTargetDts.ts
+++ b/packages/ui-extensions/buildTargetDts.ts
@@ -28,6 +28,7 @@ function copyComponentDefinitions({
if (!existsSync(buildPath)) {
mkdirSync(buildPath, {recursive: true});
}
+ mkdirSync(componentsBuildPath, {recursive: true});
const exists = componentsSrcPaths.every((path) => existsSync(path));
diff --git a/packages/ui-extensions/docs/surfaces/admin/ReadMe.md b/packages/ui-extensions/docs/surfaces/admin/ReadMe.md
deleted file mode 100644
index a02c699d51..0000000000
--- a/packages/ui-extensions/docs/surfaces/admin/ReadMe.md
+++ /dev/null
@@ -1,62 +0,0 @@
-# create-doc-files.sh
-
-A utility script to scaffold documentation files for UI components in the ui-extensions package.
-
-## Usage
-
-```bash
-./create-doc-files.sh [-t type] component_name1 [component_name2 ...]
-```
-
-### Options
-
-- `-t`: Specifies the type of documentation to create (optional)
- - Valid values: `components` or `api`
- - Default: `components`
-
-### Arguments
-
-- `component_name1`: Name of the component to document (required)
-- `component_name2 ...`: Additional component names (optional)
-
-### Examples
-
-#### Create documentation for a single component
-
-```bash
-./create-doc-files.sh Button
-```
-
-#### Create documentation for multiple components
-
-```bash
-./create-doc-files.sh Button Card
-```
-
-#### Create API documentation
-
-```bash
-./create-doc-files.sh -t api Toast
-```
-
-#### Create multiple API docs
-
-```bash
-./create-doc-files.sh -t api Modal Toast
-```
-
-### Output
-
-For each component, the script creates:
-
-1. A component directory at `packages/ui-extensions/src/surfaces/admin/{type}/{componentName}/`
-2. An examples directory containing:
- - A TypeScript example (`basic-{lowercase-name}.example.ts`)
- - A TSX/Preact example (`basic-{lowercase-name}.example.tsx`)
-3. A documentation file (`{ComponentName}.doc.ts`) with a basic template including:
- - Component metadata
- - Description placeholder
- - Example code references
- - Category and subcategory settings
-
-The script will skip creating files that already exist to prevent overwriting existing documentation.
diff --git a/packages/ui-extensions/docs/surfaces/admin/build-docs-targets-json.mjs b/packages/ui-extensions/docs/surfaces/admin/build-docs-targets-json.mjs
index baa9462711..565cb69aa4 100644
--- a/packages/ui-extensions/docs/surfaces/admin/build-docs-targets-json.mjs
+++ b/packages/ui-extensions/docs/surfaces/admin/build-docs-targets-json.mjs
@@ -11,11 +11,11 @@ import {
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
-// Find the generated_docs_data.json file to determine output location
+// Find the generated_docs_data_v2.json file to determine output location
function findGeneratedDocsPath() {
const generatedDir = path.join(__dirname, 'generated');
- // Look for generated_docs_data.json recursively
+ // Look for generated_docs_data_v2.json recursively
function findFile(dir) {
const files = fs.readdirSync(dir);
for (const file of files) {
@@ -24,7 +24,7 @@ function findGeneratedDocsPath() {
if (stat.isDirectory()) {
const result = findFile(fullPath);
if (result) return result;
- } else if (file === 'generated_docs_data.json') {
+ } else if (file === 'generated_docs_data_v2.json') {
return path.dirname(fullPath);
}
}
diff --git a/packages/ui-extensions/docs/surfaces/admin/build-docs.mjs b/packages/ui-extensions/docs/surfaces/admin/build-docs.mjs
index eb3227917e..19a73d0cfd 100644
--- a/packages/ui-extensions/docs/surfaces/admin/build-docs.mjs
+++ b/packages/ui-extensions/docs/surfaces/admin/build-docs.mjs
@@ -10,7 +10,6 @@ import {
copyGeneratedToShopifyDev,
replaceFileContent,
} from '../build-doc-shared.mjs';
-import {extractIconList} from './build-doc-extract-icons.mjs';
const EXTENSIONS_API_VERSION = process.argv[2] || 'unstable';
/** Folder name for admin_extensions when copying to shopify-dev. Defaults to EXTENSIONS_API_VERSION; for 2026-04 we use 2026-04-rc so docs land in the rc folder. */
@@ -47,418 +46,11 @@ const shopifyDevDBPath = worldExists
const shopifyDevExists = existsSync(shopifyDevPath);
-const generatedDocsDataFile = 'generated_docs_data.json';
const generatedDocsDataV2File = 'generated_docs_data_v2.json';
const componentDefs = path.join(srcPath, 'components.d.ts');
const tempComponentDefs = path.join(srcPath, 'components.ts');
-const tsconfigExtensions = 'tsconfig.ext.docs.json';
-const tsconfigAppBridge = 'tsconfig.ab.docs.json';
-
-const decodeHTML = (str) => {
- return str
- .replace(/&/g, '&')
- .replace(/</g, '<')
- .replace(/>/g, '>')
- .replace(/"/g, '"')
- .replace(/'/g, "'");
-};
-
-const escapeForJSTemplate = (str) => {
- return str.replace(/\\/g, '\\\\').replace(/`/g, '\\`').replace(/\$/g, '\\$');
-};
-
-const composeStyles = (...styles) => {
- return styles
- .filter(Boolean)
- .map((style) => style.trim())
- .filter((style) => style.length > 0)
- .join(' ');
-};
-
-// Don't allow all CSS properties to be used in the customStyles property
-// DO NOT ADD MORE PROPERTIES TO THIS LIST
-const allowedProperties = ['minHeight', 'minBlockSize'];
-
-const stylesToString = (styles) => {
- if (!styles) return '';
- return Object.entries(styles)
- .filter(
- ([property, value]) =>
- allowedProperties.includes(property) &&
- value !== undefined &&
- value !== null,
- )
- .map(([property, value]) => {
- const kebabProperty = property.replace(
- /[A-Z]/g,
- (match) => `-${match.toLowerCase()}`,
- );
- return `${kebabProperty}: ${value}`;
- })
- .join('; ');
-};
-
-/**
- * Renders the JSX template for the icon preview.
- * @returns The processed HTML string.
- */
-const renderIconPreviewJsxTemplate = async (iconPreviewData) => {
- const templatePath = path.join(
- docsPath,
- 'templates/icon-renderer/jsx-render.html',
- );
- const template = await fs.readFile(templatePath, 'utf-8');
-
- const jsxFilePath = path.join(docsPath, iconPreviewData.jsxFile);
- let jsxCode = await fs.readFile(jsxFilePath, 'utf-8');
-
- const iconListString = `[${iconPreviewData.icons
- .map((icon) => `'${icon}'`)
- .join(',')}]`;
- jsxCode = jsxCode.replace(/"__ICON_LIST__"/g, iconListString);
-
- const escapedJsxCode = escapeForJSTemplate(jsxCode);
-
- return template
- .replace(/\{\{COMPOSED_STYLES\}\}/g, iconPreviewData.customStyles || '')
- .replace(/\{\{BODY_CONTENT\}\}/g, iconPreviewData.bodyContent || '')
- .replace(/\{\{JSX_CODE\}\}/g, escapedJsxCode);
-};
-
-const htmlWrapper = (htmlString, layoutStyles = '', customStyles = '') => {
- const baseStyles = 'box-sizing: border-box; margin: 0; padding: 0.5rem;';
- const composedStyles = composeStyles(baseStyles, layoutStyles, customStyles);
-
- return `
${decodeHTML(
- htmlString,
- )}`;
-};
-
-/*
-Using JSX Builder to self-host Preact and Sucrase.
-https://github.com/shopify-playground/jsx-builder
-*/
-const jsxWrapper = (
- jsxString,
- bodyContent,
- layoutStyles = '',
- customStyles = '',
-) => {
- const baseStyles = 'box-sizing: border-box; margin: 0; padding: 0.5rem;';
- const composedStyles = composeStyles(baseStyles, layoutStyles, customStyles);
-
- // Auto-wrap JSX if it doesn't already contain a return statement
- // This allows both simple JSX expressions and complete function bodies with hooks
- let jsxStringProcessed = jsxString;
- // Check if 'return' appears as a statement
- // If "return" has words before AND after it (like "for return request"), it's in text
- // Otherwise, check if there's a return statement
- const hasReturnInText = /\w+\s+return\s+\w+/.test(jsxString);
- const hasReturnStatement = !hasReturnInText && /\breturn\b/.test(jsxString);
-
- if (!hasReturnStatement) {
- jsxStringProcessed = `return (${jsxString})`;
- }
-
- return `
- ${
- bodyContent || ''
- }
-
-
-`;
-};
-
-const createTemplate = ({
- layoutStyles,
- wrapperElement = null,
- wrapperAttributes = '',
-}) => {
- return (htmlString, customStyles, jsx = false) => {
- if (jsx) {
- const bodyContent = wrapperElement
- ? `<${wrapperElement}${
- wrapperAttributes ? ` ${wrapperAttributes}` : ''
- } id="wrapper-element">${wrapperElement}>`
- : '';
-
- const customStylesString = stylesToString(customStyles);
-
- return jsxWrapper(
- htmlString,
- bodyContent,
- layoutStyles,
- customStylesString,
- );
- } else {
- const wrappedHtml = wrapperElement
- ? `<${wrapperElement}${
- wrapperAttributes ? ` ${wrapperAttributes}` : ''
- } id="wrapper-element">${htmlString}${wrapperElement}>`
- : `${htmlString}
`;
-
- const customStylesString = stylesToString(customStyles);
-
- return htmlWrapper(wrappedHtml, layoutStyles, customStylesString);
- }
- };
-};
-
-const templates = {
- default: createTemplate({
- layoutStyles: 'display: grid; place-items: center; gap: 0.5rem;',
- }),
- alignStart: createTemplate({
- layoutStyles: 'display: grid; place-items: start center; gap: 0.5rem;',
- wrapperElement: 'div',
- }),
- wrapped: createTemplate({
- layoutStyles: 'display: grid; place-items: center; gap: 0.5rem;',
- wrapperElement: 'div',
- wrapperAttributes: 'style="width: 100%;"',
- }),
- inline: createTemplate({
- layoutStyles:
- 'display: flex; justify-content: center; align-items: center; gap: 0.5rem;',
- }),
- section: createTemplate({
- layoutStyles: 'display: grid; place-items: center; background: #F1F1F1',
- wrapperElement: 's-section',
- wrapperAttributes: 'padding="none"',
- }),
- page: createTemplate({
- layoutStyles: 'display: grid; place-items: center; background: #F1F1F1;',
- }),
- none: createTemplate({
- layoutStyles: 'padding: 0;',
- }),
- padding: createTemplate({
- layoutStyles: 'padding: 0;',
- wrapperElement: 's-box',
- wrapperAttributes: 'padding="base"',
- }),
- fullWidth: createTemplate({
- layoutStyles: 'display: grid; place-items: center;',
- wrapperElement: 's-box',
- wrapperAttributes: 'padding="base", inlineSize="100%"',
- }),
- example: createTemplate({
- layoutStyles: 'display: grid; place-items: center; gap: 0.5rem;',
- wrapperElement: 's-box',
- wrapperAttributes: 'padding="base"',
- }),
- formWrapper: createTemplate({
- layoutStyles:
- 'display: grid; place-items: center; gap: 0.5rem; background: #F1F1F1; padding: 1rem;',
- wrapperElement: 's-box',
- wrapperAttributes: 'padding="base", inlineSize="300px"',
- }),
-};
-
-const transformJson = async (filePath, isExtensions) => {
- let jsonData = JSON.parse((await fs.readFile(filePath, 'utf8')).toString());
-
- // V2 format is an object keyed by symbol name; transforms only apply to legacy array format
- if (!Array.isArray(jsonData)) {
- await fs.writeFile(filePath, JSON.stringify(jsonData, null, 2));
- return;
- }
-
- const iconEntry = jsonData.find(
- (entry) => entry.name === 'Icon' && entry.subSections,
- );
- if (iconEntry) {
- const iconDataPath = path.join(srcPath, 'components/Icon/icon-data.json');
- const iconData = JSON.parse(await fs.readFile(iconDataPath, 'utf-8'));
- const iconPreviewData = iconData.iconPreviewData;
-
- iconPreviewData.icons = await extractIconList();
-
- const subSection = iconEntry.subSections.find((section) =>
- section.sectionContent?.includes('{{ICON_PREVIEW_IFRAME}}'),
- );
- if (subSection) {
- const html = await renderIconPreviewJsxTemplate(iconPreviewData);
- // Converting to base64 to avoid having to escape the HTML in the JSX template.
- const base64Html = Buffer.from(html, 'utf-8').toString('base64');
- const darkModeListener = await fs.readFile(
- path.join(docsPath, 'templates/icon-renderer/dark-mode-listener.jsx'),
- 'utf-8',
- );
- const base64DarkModeListener = Buffer.from(
- darkModeListener,
- 'utf-8',
- ).toString('base64');
- subSection.sectionContent = subSection.sectionContent.replace(
- /\{\{ICON_PREVIEW_IFRAME\}\}/g,
- `
-
- `,
- );
- }
- }
-
- jsonData.forEach((entry) => {
- // Temporary to ensure that isOptional is added to all members
- if (entry.definitions && entry.isVisualComponent) {
- entry.definitions.forEach((definition) => {
- if (definition.typeDefinitions) {
- Object.values(definition.typeDefinitions).forEach((typeDef) => {
- if (typeDef.members && Array.isArray(typeDef.members)) {
- typeDef.members
- .sort((first, second) => first.name.localeCompare(second.name))
- .forEach((member) => {
- // eslint-disable-next-line no-prototype-builtins
- if (member.hasOwnProperty('isOptional')) return;
- member.isOptional = true;
- });
- }
- });
- }
- });
- }
-
- if (entry.defaultExample?.codeblock?.tabs) {
- const newTabs = [];
- entry.defaultExample.codeblock.tabs.forEach((tab) => {
- if (tab.language !== 'preview' && tab.language !== 'preview-jsx') {
- newTabs.push({...tab, title: tab.language});
- return;
- }
-
- if (tab.layout && !(tab.layout in templates)) {
- console.warn(
- `${entry.name} has a layout of ${tab.layout} which is not a valid template.`,
- );
- }
-
- const previewHTML =
- tab.layout && tab.layout in templates
- ? templates[tab.layout](
- tab.code,
- tab.customStyles,
- tab.language === 'preview-jsx',
- )
- : templates.default(
- tab.code,
- tab.customStyles,
- tab.language === 'preview-jsx',
- );
-
- newTabs.push(
- {
- title: tab.language === 'preview-jsx' ? 'jsx' : 'html',
- code: tab.code,
- language: tab.language === 'preview-jsx' ? 'jsx' : 'html',
- editable:
- tab.language === 'preview-jsx' ? tab.editable || false : false,
- },
- {code: previewHTML, language: 'preview'},
- );
- });
-
- entry.defaultExample.codeblock.tabs = newTabs.sort((first, second) => {
- if (first.language === 'jsx') return -1;
- if (second.language === 'jsx') return 1;
- return 0;
- });
- }
-
- if (entry.examples && entry.examples.exampleGroups) {
- entry.examples.exampleGroups.forEach((exampleGroup) => {
- exampleGroup.examples.forEach((example) => {
- if (!example.codeblock?.tabs) {
- return;
- }
- const newTabs = [];
-
- example.codeblock.tabs.forEach((tab) => {
- if (tab.language === 'preview' || tab.language === 'preview-jsx') {
- const previewHTML =
- tab.layout && tab.layout in templates
- ? templates[tab.layout](
- tab.code,
- tab.customStyles,
- tab.language === 'preview-jsx',
- )
- : templates.example(
- tab.code,
- tab.customStyles,
- tab.language === 'preview-jsx',
- );
-
- newTabs.push(
- {
- title: tab.language === 'preview-jsx' ? 'jsx' : 'html',
- code: tab.code,
- language: tab.language === 'preview-jsx' ? 'jsx' : 'html',
- },
- {
- code: previewHTML,
- language: 'preview',
- },
- );
- } else {
- newTabs.push({
- title: tab.language,
- code: tab.code,
- language: tab.language,
- editable:
- tab.language === 'preview-jsx'
- ? tab.editable || false
- : false,
- });
- }
- });
-
- example.codeblock.tabs = newTabs.sort((first, second) => {
- if (first.language === 'jsx') return -1;
- if (second.language === 'jsx') return 1;
- return 0;
- });
- });
- });
- }
- });
-
- // Merge the App Bridge docs with the Shopify Dev docs (if that file exists)
- if (!isExtensions && shopifyDevExists) {
- const shopifyDevDocs = path.join(
- shopifyDevDBPath,
- 'app_home/generated_docs_data.json',
- );
- if (existsSync(shopifyDevDocs)) {
- const shopifyDevDocsContent = await fs.readFile(shopifyDevDocs, 'utf8');
- const shopifyDevDocsDocsParsed = JSON.parse(
- shopifyDevDocsContent.toString(),
- );
-
- const filteredDocs = shopifyDevDocsDocsParsed.filter(
- (entry) =>
- entry.category !== 'Web components' &&
- entry.category !== 'Polaris web components' &&
- entry.category !== 'Patterns',
- );
-
- // Combine arrays with shopify dev docs first, followed by new data
- jsonData = [...filteredDocs, ...jsonData];
- }
- }
-
- await fs.writeFile(filePath, JSON.stringify(jsonData, null, 2));
-};
-
const generateExtensionsDocs = async () => {
console.log(
`Building Admin UI Extensions docs for ${EXTENSIONS_API_VERSION} version`,
@@ -478,23 +70,20 @@ const generateExtensionsDocs = async () => {
const outputDir = `${docsGeneratedRelativePath}/admin_extensions/${EXTENSIONS_API_VERSION}`;
const scripts = [
- `yarn tsc --project ${docsRelativePath}/${tsconfigExtensions} --moduleResolution node --target esNext --module CommonJS --skipLibCheck`,
- `yarn generate-docs --input ./${srcRelativePath} --typesInput ./${srcRelativePath} --output ./${outputDir}`,
+ `yarn generate-docs --input ./${srcRelativePath} --output ./${outputDir}`,
];
await generateFiles({
scripts,
outputDir,
rootPath,
- generatedDocsDataFile,
generatedDocsDataV2File,
- transformJson: (filePath) => transformJson(filePath, true),
});
// Replace 'unstable' with the exact API version in relative doc links
const generatedDocsPathForVersion = path.join(rootPath, outputDir);
await replaceFileContent({
- filePaths: path.join(generatedDocsPathForVersion, generatedDocsDataFile),
+ filePaths: path.join(generatedDocsPathForVersion, generatedDocsDataV2File),
searchValue: '/docs/api/admin-extensions/unstable/',
replaceValue: `/docs/api/admin-extensions/${EXTENSIONS_API_VERSION}`,
});
@@ -512,17 +101,14 @@ const generateAppBridgeDocs = async () => {
const outputDir = `${docsGeneratedRelativePath}/app_home`;
const scripts = [
- `yarn tsc --project ${docsRelativePath}/${tsconfigAppBridge} --moduleResolution node --target esNext --module CommonJS --skipLibCheck`,
- `yarn generate-docs --input ./${srcRelativePath} --typesInput ./${srcRelativePath} --output ./${outputDir}`,
+ `yarn generate-docs --input ./${srcRelativePath} --output ./${outputDir}`,
];
await generateFiles({
scripts,
outputDir,
rootPath,
- generatedDocsDataFile,
generatedDocsDataV2File,
- transformJson: (filePath) => transformJson(filePath, false),
});
};
@@ -611,15 +197,6 @@ try {
}
}
- await fs.cp(
- path.join(docsPath, 'screenshots'),
- path.join(
- shopifyDevPath,
- 'areas/platforms/shopify-dev/content/assets/images/templated-apis-screenshots/admin',
- ),
- {recursive: true},
- );
-
await fs.rm(tempComponentDefs);
} catch (error) {
console.error(error);
diff --git a/packages/ui-extensions/docs/surfaces/admin/create-doc-files.js b/packages/ui-extensions/docs/surfaces/admin/create-doc-files.js
deleted file mode 100755
index 83c1d6aa1d..0000000000
--- a/packages/ui-extensions/docs/surfaces/admin/create-doc-files.js
+++ /dev/null
@@ -1,121 +0,0 @@
-/* eslint-disable no-undef, no-console */
-const fs = require('fs');
-const path = require('path');
-
-const args = process.argv.slice(2);
-const componentNames = [];
-
-// Process arguments
-for (let i = 0; i < args.length; i++) {
- componentNames.push(args[i]);
-}
-
-// Check if at least one component name is provided
-if (componentNames.length === 0) {
- console.error(
- 'Usage: node create-doc-files.js component_name1 [component_name2 ...]',
- );
- process.exit(1);
-}
-
-console.log(`Scaffolding components docs for admin`);
-
-const baseDir = './packages/ui-extensions/src/surfaces/admin/components';
-
-componentNames.forEach((componentName) => {
- const folder = path.join(baseDir, componentName);
- fs.mkdirSync(folder, {recursive: true});
-
- const examplesDir = path.join(folder, 'examples');
- fs.mkdirSync(examplesDir, {recursive: true});
-
- const exDocsFile = path.join(folder, `${componentName}.doc.ts`);
- const abDocsFile = path.join(folder, `${componentName}.ab.doc.ts`);
- const sharedDocsFile = path.join(folder, 'shared.ts');
-
- // Convert camelCase to kebab-case
- const lowercaseComponentName = componentName
- .replace(/([a-z])([A-Z])/g, '$1-$2')
- .toLowerCase();
-
- // Create HTML and JSX example file
- const examples = [
- path.join(examplesDir, `default.html`),
- path.join(examplesDir, `default.jsx`),
- ];
- examples.forEach((example) => {
- if (fs.existsSync(example)) return;
- fs.writeFileSync(
- example,
- ` \n`,
- );
- console.log(`Created example file for ${componentName}`);
- });
-
- const sharedContent = `const shared = {
- name: '${componentName}',
- description: '${componentName} is used to ...',
- thumbnail: '${lowercaseComponentName}-thumbnail.png',
- isVisualComponent: true,
- isOneColumnLayout: true,
- definitions: [
- {
- title: '${componentName}',
- description: '',
- type: '${componentName}',
- },
- ],
- subCategory: '',
- related: [],
- defaultExample: {
- codeblock: {
- title: '',
- tabs: [
- {
- code: './examples/default.html',
- language: 'preview',
- },
- ],
- },
- },
-};
-
-export default shared;`;
-
- const appBridgeDocContent = `import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
-import shared from './shared';
-
-const data: ReferenceEntityTemplateSchema = {
- ...shared,
- category: 'Polaris web components',
-};
-
-export default data;
-`;
-
- const extensionDocContent = `import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
-import shared from './shared';
-
-const data: ReferenceEntityTemplateSchema = {
- ...shared,
- category: 'Polaris web components',
-};
-
-export default data;
-`;
-
- writeContentToFile(exDocsFile, extensionDocContent);
- writeContentToFile(abDocsFile, appBridgeDocContent);
- writeContentToFile(sharedDocsFile, sharedContent);
-});
-
-function writeContentToFile(filePath, content, componentName) {
- if (fs.existsSync(filePath)) {
- console.log(`Documentation file for ${componentName} already exists`);
- return;
- }
-
- fs.writeFileSync(filePath, content);
- console.log(`Created documentation file for ${componentName}`);
-}
-/* eslint-enable no-undef, no-console */
diff --git a/packages/ui-extensions/docs/surfaces/admin/generated/admin_extensions/2026-04-rc/generated_docs_data.json b/packages/ui-extensions/docs/surfaces/admin/generated/admin_extensions/2026-04-rc/generated_docs_data.json
deleted file mode 100644
index ca8fa5b5ae..0000000000
--- a/packages/ui-extensions/docs/surfaces/admin/generated/admin_extensions/2026-04-rc/generated_docs_data.json
+++ /dev/null
@@ -1,142544 +0,0 @@
-[
- {
- "name": "Action Extension API",
- "description": "The Action Extension API lets you [build action extensions](/docs/apps/build/admin/actions-blocks/build-admin-action) that merchants access from the **More actions** menu on details and index pages. Use this API to create workflows for processing resources, configuring settings, or integrating with external systems.",
- "isVisualComponent": false,
- "type": "API",
- "requires": "the [admin action](/docs/api/admin-extensions/{API_VERSION}/web-components/settings-and-templates/admin-action) component.",
- "defaultExample": {
- "description": "Send selected product IDs to your backend for bulk processing. This example shows how to map selected items, make an authenticated API call, and close the modal when the operation completes.",
- "codeblock": {
- "title": "Process selected products",
- "tabs": [
- {
- "title": "jsx",
- "code": "import {render} from 'preact';\n\nexport default async () => {\n render(<Extension />, document.body);\n};\n\nfunction Extension() {\n const {data} = shopify;\n\n const handleProcess = async () => {\n const productIds = data.selected.map((item) => item.id);\n\n const response = await fetch('/api/bulk-process', {\n method: 'POST',\n headers: {'Content-Type': 'application/json'},\n body: JSON.stringify({productIds}),\n });\n\n if (response.ok) {\n console.log('Products processed successfully');\n shopify.close();\n } else {\n console.error('Failed to process products');\n }\n };\n\n return (\n <s-admin-action title=\"Bulk Process\">\n <s-text>Processing {data.selected.length} products</s-text>\n <s-button onClick={handleProcess}>Process Products</s-button>\n </s-admin-action>\n );\n}\n",
- "language": "jsx"
- }
- ]
- }
- },
- "definitions": [
- {
- "title": "Properties",
- "description": "The `ActionExtensionApi` object provides properties for action extensions that render in modal overlays. Access the following properties on the `ActionExtensionApi` object to interact with the current context, control the modal, and display picker dialogs.",
- "type": "ActionExtensionApi",
- "typeDefinitions": {
- "ActionExtensionApi": {
- "filePath": "src/surfaces/admin/api/action/action.ts",
- "name": "ActionExtensionApi",
- "description": "The `ActionExtensionApi` object provides methods for action extensions that render in modal overlays. Access the following properties on the `ActionExtensionApi` object to interact with the current context, control the modal, and display picker dialogs.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/api/action/action.ts",
- "syntaxKind": "PropertySignature",
- "name": "auth",
- "value": "Auth",
- "description": "Provides methods for authenticating calls to your app backend. Use the `idToken()` method to retrieve a signed JWT token that verifies the current user's identity for secure server-side operations."
- },
- {
- "filePath": "src/surfaces/admin/api/action/action.ts",
- "syntaxKind": "PropertySignature",
- "name": "close",
- "value": "() => void",
- "description": "Closes the extension modal. Use this when your extension completes its task or the merchant wants to exit. Equivalent to clicking the close button in the overlay corner."
- },
- {
- "filePath": "src/surfaces/admin/api/action/action.ts",
- "syntaxKind": "PropertySignature",
- "name": "data",
- "value": "Data",
- "description": "An array of currently viewed or selected resource identifiers. Use this to access the IDs of items in the current context, such as selected products in an index page or the product being viewed on a details page. The available IDs depend on the extension target and user interactions."
- },
- {
- "filePath": "src/surfaces/admin/api/action/action.ts",
- "syntaxKind": "PropertySignature",
- "name": "extension",
- "value": "{ target: ExtensionTarget; }",
- "description": "The identifier of the running extension target. Use this to determine which target your extension is rendering in and conditionally adjust functionality or UI based on the extension context."
- },
- {
- "filePath": "src/surfaces/admin/api/action/action.ts",
- "syntaxKind": "PropertySignature",
- "name": "i18n",
- "value": "I18n",
- "description": "Utilities for translating content according to the current localization of the admin. Use these methods to provide translated strings that match the merchant's language preferences, ensuring your extension is accessible to a global audience."
- },
- {
- "filePath": "src/surfaces/admin/api/action/action.ts",
- "syntaxKind": "PropertySignature",
- "name": "intents",
- "value": "Intents",
- "description": "Provides information to the receiver of an intent. Use this to access data passed from other extensions or parts of the admin when your extension is launched through intent-based navigation."
- },
- {
- "filePath": "src/surfaces/admin/api/action/action.ts",
- "syntaxKind": "PropertySignature",
- "name": "picker",
- "value": "PickerApi",
- "description": "Opens a custom selection dialog with your app-specific data. Use the [Picker API](/docs/api/admin-extensions/{API_VERSION}/target-apis/utility-apis/picker-api) to define the picker's heading, items, headers, and selection behavior. Returns a Promise that resolves to a `Picker` object with a `selected` property for accessing the merchant's selection."
- },
- {
- "filePath": "src/surfaces/admin/api/action/action.ts",
- "syntaxKind": "PropertySignature",
- "name": "query",
- "value": "(query: string, options?: { variables?: Variables; version?: Omit; }) => Promise<{ data?: Data; errors?: GraphQLError[]; }>",
- "description": "Executes GraphQL queries against the [GraphQL Admin API](/docs/api/admin-graphql). Use this to fetch shop data, manage resources, or perform mutations. Queries are automatically authenticated with the current user's permissions. Optionally specify GraphQL variables and API version for your query."
- },
- {
- "filePath": "src/surfaces/admin/api/action/action.ts",
- "syntaxKind": "PropertySignature",
- "name": "resourcePicker",
- "value": "ResourcePickerApi",
- "description": "Opens the [resource picker](/docs/api/admin-extensions/{API_VERSION}/target-apis/utility-apis/resource-picker-api) modal for selecting products, variants, or collections. Returns the selected resources when the user confirms their selection, or undefined if they cancel."
- },
- {
- "filePath": "src/surfaces/admin/api/action/action.ts",
- "syntaxKind": "PropertySignature",
- "name": "storage",
- "value": "Storage",
- "description": "Provides methods for persisting data in browser storage that is scoped to your extension. Use this to store user preferences, cache data, maintain state across sessions, or save temporary working data. Storage is persistent across page reloads and isolated per extension."
- }
- ],
- "value": "export interface ActionExtensionApi\n extends StandardRenderingExtensionApi {\n /**\n * Closes the extension modal. Use this when your extension completes its task or the merchant wants to exit. Equivalent to clicking the close button in the overlay corner.\n */\n close: () => void;\n\n /**\n * An array of currently viewed or selected resource identifiers. Use this to access the IDs of items in the current context, such as selected products in an index page or the product being viewed on a details page. The available IDs depend on the extension target and user interactions.\n */\n data: Data;\n}"
- },
- "Auth": {
- "filePath": "src/surfaces/admin/api/standard/standard.ts",
- "name": "Auth",
- "description": "The `Auth` object provides authentication methods for secure communication with your app backend.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/api/standard/standard.ts",
- "syntaxKind": "PropertySignature",
- "name": "idToken",
- "value": "() => Promise",
- "description": "Retrieves a [Shopify OpenID Connect ID token](/docs/api/app-home/apis/id-token) for the current user. Use this token to authenticate requests to your app backend and verify the user's identity. The token is a signed JWT that contains user information and can be validated using Shopify's public keys. Returns `null` if the token can't be retrieved."
- }
- ],
- "value": "export interface Auth {\n /**\n * Retrieves a [Shopify OpenID Connect ID token](/docs/api/app-home/apis/id-token) for the current user. Use this token to authenticate requests to your app backend and verify the user's identity. The token is a signed JWT that contains user information and can be validated using Shopify's public keys. Returns `null` if the token can't be retrieved.\n */\n idToken: () => Promise;\n}"
- },
- "Data": {
- "filePath": "src/surfaces/admin/api/shared.ts",
- "name": "Data",
- "description": "The `Data` object provides access to currently viewed or selected resources in the admin context.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/api/shared.ts",
- "syntaxKind": "PropertySignature",
- "name": "selected",
- "value": "{ id: string; }[]",
- "description": "An array of currently viewed or selected resource identifiers. Use this to access the IDs of items in the current context, such as selected products in an index page or the product being viewed on a details page. The available IDs depend on the extension target and user interactions."
- }
- ],
- "value": "export interface Data {\n /**\n * An array of currently viewed or selected resource identifiers. Use this to access the IDs of items in the current context, such as selected products in an index page or the product being viewed on a details page. The available IDs depend on the extension target and user interactions.\n */\n selected: {id: string}[];\n}"
- },
- "ExtensionTarget": {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "ExtensionTarget",
- "value": "keyof ExtensionTargets",
- "description": "A string literal union of all valid extension target identifiers. Use this type to specify where your admin UI extension should render, such as `admin.product-details.block.render` for a block on product details pages or `admin.order-details.action.render` for an action on order details pages. The target determines the extension's location, available APIs, and UI components."
- },
- "ExtensionTargets": {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "name": "ExtensionTargets",
- "description": "Maps extension target identifiers to their corresponding extension types. Each target represents a specific location or context in the Shopify admin where extensions can render or execute. Use these targets to define where your extension appears and what capabilities it has access to.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.abandoned-checkout-details.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.abandoned-checkout-details.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **More actions** menu on the abandoned checkout details page. Use this to create workflows for cart recovery, customer engagement, or checkout analysis."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.abandoned-checkout-details.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.abandoned-checkout-details.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the abandoned checkout details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on checkout properties, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.abandoned-checkout-details.block.render",
- "value": "RenderExtension<\n BlockExtensionApi<'admin.abandoned-checkout-details.block.render'>,\n BlockExtensionComponents\n >",
- "description": "A block target that displays inline content within the abandoned checkout details page. Use this to show cart recovery tools, abandonment analysis, or customer re-engagement options."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.app.tools.data",
- "value": "RunnableExtension<\n StandardApi<'admin.app.tools.data'>,\n undefined\n >",
- "description": "A runnable target that enables your app to expose data to [Sidekick](/docs/apps/build/sidekick/build-app-data). Use this target to register tools that Sidekick can invoke to search your app's data and answer merchant questions."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.catalog-details.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.catalog-details.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **More actions** menu on the catalog details page. Use this to create workflows for catalog management, market synchronization, or data exports."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.catalog-details.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.catalog-details.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the catalog details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on catalog properties, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.catalog-details.block.render",
- "value": "RenderExtension<\n BlockExtensionApi<'admin.catalog-details.block.render'>,\n BlockExtensionComponents\n >",
- "description": "A block target that displays inline content within the catalog details page. Use this to show catalog-specific settings, market information, or synchronization tools."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.collection-details.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.collection-details.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **More actions** menu on the collection details page. Use this to create workflows for collection management, product operations, or merchandising tools."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.collection-details.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.collection-details.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the collection details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on collection properties, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.collection-details.block.render",
- "value": "RenderExtension<\n BlockExtensionApi<'admin.collection-details.block.render'>,\n BlockExtensionComponents\n >",
- "description": "A block target that displays inline content within the collection details page. Use this to show collection analytics, bulk product operations, or collection-specific tools."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.collection-index.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.collection-index.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **More actions** menu on the collection index page. Use this to create workflows for collection management, bulk operations, or catalog organization."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.collection-index.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.collection-index.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the collection index action appears in the **More actions** menu. Use this to conditionally show or hide your action based on user permissions, store configuration, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.company-details.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.company-details.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **More actions** menu on the company details page. Use this to create workflows for B2B customer management, credit operations, or company data synchronization."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.company-details.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.company-details.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the company details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on company properties, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.company-details.block.render",
- "value": "RenderExtension<\n BlockExtensionApi<'admin.company-details.block.render'>,\n BlockExtensionComponents\n >",
- "description": "A block target that displays inline content within the company details page. Use this to show B2B customer information, credit limits, or company-specific data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.company-location-details.block.render",
- "value": "RenderExtension<\n BlockExtensionApi<'admin.company-location-details.block.render'>,\n BlockExtensionComponents\n >",
- "description": "A block target that displays inline content within the company location details page. Use this to show location-specific information, shipping preferences, or location management tools."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.customer-details.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.customer-details.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **More actions** menu on the customer details page. Use this to create workflows for customer data management, loyalty operations, or CRM integrations."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.customer-details.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.customer-details.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the customer details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on customer properties, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.customer-details.block.render",
- "value": "RenderExtension<\n BlockExtensionApi<'admin.customer-details.block.render'>,\n BlockExtensionComponents\n >",
- "description": "A block target that displays inline content within the customer details page. Use this to show customer-specific information, loyalty data, or custom customer actions."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.customer-index.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.customer-index.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **More actions** menu on the customer index page. Use this to create workflows for customer management, marketing operations, or bulk data processing."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.customer-index.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.customer-index.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the customer index action appears in the **More actions** menu. Use this to conditionally show or hide your action based on user permissions, store configuration, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.customer-index.selection-action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.customer-index.selection-action.render'>,\n ActionExtensionComponents\n >",
- "description": "A selection action target that appears in the **More actions** menu on the customer index page when multiple customers are selected. Use this to create workflows for bulk customer operations, mass email campaigns, or batch data updates."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.customer-index.selection-action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.customer-index.selection-action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the customer index selection action appears in the **More actions** menu. Use this to conditionally show or hide your bulk action based on selection criteria, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.customer-segment-details.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.customer-segment-details.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears from the **Use segment** button on the customer segment details page. Use this to create workflows for marketing campaigns, email operations, or segment-based actions."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.customer-segment-details.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.customer-segment-details.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the customer segment details action appears from the **Use segment** button. Use this to conditionally show or hide your action based on segment properties, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.customers.segmentation-templates.data",
- "value": "RunnableExtension<\n CustomerSegmentTemplateApi<'admin.customers.segmentation-templates.data'>,\n {templates: CustomerSegmentTemplate[]}\n >",
- "description": "A runnable target that provides [customer segment templates](/docs/apps/build/marketing-analytics/customer-segments/build-a-template-extension) in the [customer segment editor](https://help.shopify.com/manual/customers/customer-segmentation/create-customer-segments). Use this target to provide pre-built segment templates that merchants can use as starting points for creating targeted customer groups based on custom criteria."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.discount-details.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.discount-details.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **More actions** menu on the discount details page. Use this to create workflows for discount management, promotion analysis, or discount synchronization."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.discount-details.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.discount-details.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the discount details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on discount properties, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.discount-details.function-settings.render",
- "value": "RenderExtension<\n DiscountFunctionSettingsApi<'admin.discount-details.function-settings.render'>,\n FunctionSettingsComponents\n >",
- "description": "A function settings target that appears when merchants create or edit a discount powered by your discount function, allowing them to configure function-specific settings. Use this to build custom configuration interfaces for discount function parameters."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.discount-index.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.discount-index.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **More actions** menu on the discount index page. Use this to create workflows for discount management, promotional operations, or bulk discount updates."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.discount-index.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.discount-index.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the discount index action appears in the **More actions** menu. Use this to conditionally show or hide your action based on user permissions, store configuration, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.discount-index.selection-action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.discount-index.selection-action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **More actions** menu on the discount index page when multiple discounts are selected. Use this to create workflows for bulk discount operations or batch data updates."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.discount-index.selection-action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.discount-index.selection-action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the discount index selection action appears in the **More actions** menu. Use this to conditionally show or hide your bulk action based on selection criteria, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.draft-order-details.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.draft-order-details.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **More actions** menu on the draft order details page. Use this to create workflows for draft order processing, custom pricing, or order preparation tools."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.draft-order-details.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.draft-order-details.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the draft order details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on draft order properties, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.draft-order-details.block.render",
- "value": "RenderExtension<\n BlockExtensionApi<'admin.draft-order-details.block.render'>,\n BlockExtensionComponents\n >",
- "description": "A block target that displays inline content within the draft order details page. Use this to show custom pricing calculations, special order handling tools, or order-specific information."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.draft-order-index.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.draft-order-index.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **More actions** menu on the draft order index page. Use this to create workflows for draft order management, bulk operations, or order conversion tools."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.draft-order-index.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.draft-order-index.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the draft order index action appears in the **More actions** menu. Use this to conditionally show or hide your action based on user permissions, store configuration, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.draft-order-index.selection-action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.draft-order-index.selection-action.render'>,\n ActionExtensionComponents\n >",
- "description": "A selection action target that appears in the **More actions** menu on the draft order index page when multiple draft orders are selected. Use this to create workflows for bulk draft order operations, batch conversions, or mass order processing."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.draft-order-index.selection-action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.draft-order-index.selection-action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the draft order index selection action appears in the **More actions** menu. Use this to conditionally show or hide your bulk action based on selection criteria, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.gift-card-details.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.gift-card-details.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **More actions** menu on the gift card details page. Use this to create workflows for gift card processing, balance adjustments, or custom gift card operations."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.gift-card-details.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.gift-card-details.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the gift card details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on gift card properties, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.gift-card-details.block.render",
- "value": "RenderExtension<\n BlockExtensionApi<'admin.gift-card-details.block.render'>,\n BlockExtensionComponents\n >",
- "description": "A block target that displays inline content within the gift card details page. Use this to show gift card balance tracking, usage history, or custom gift card metadata."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.order-details.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.order-details.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **More actions** menu on the order details page. Use this to create workflows for order processing, fulfillment operations, or external system integrations."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.order-details.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.order-details.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the order details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on order properties, fulfillment status, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.order-details.block.render",
- "value": "RenderExtension<\n BlockExtensionApi<'admin.order-details.block.render'>,\n BlockExtensionComponents\n >",
- "description": "A block target that displays inline content within the order details page. Use this to show order-specific information, fulfillment tools, or custom order actions."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.order-details.print-action.render",
- "value": "RenderExtension<\n PrintActionExtensionApi<'admin.order-details.print-action.render'>,\n PrintActionExtensionComponents\n >",
- "description": "A print action target that appears in the **Print** menu on the order details page. Use this to generate custom documents such as packing slips, shipping labels, or invoices."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.order-details.print-action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.order-details.print-action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the order details print action appears in the **Print** menu. Use this to conditionally show or hide your print action based on order properties, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.order-fulfilled-card.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.order-fulfilled-card.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the actions menu inside the order fulfilled card, visible only on orders fulfilled by your app. Use this to create workflows for fulfillment operations, tracking updates, or post-fulfillment actions."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.order-fulfilled-card.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.order-fulfilled-card.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the order fulfilled card action appears in the actions menu. Use this to conditionally show or hide your action based on fulfillment properties, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.order-index.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.order-index.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **More actions** menu on the order index page. Use this to create workflows for order management, reporting, or fulfillment operations."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.order-index.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.order-index.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the order index action appears in the **More actions** menu. Use this to conditionally show or hide your action based on user permissions, store configuration, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.order-index.selection-action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.order-index.selection-action.render'>,\n ActionExtensionComponents\n >",
- "description": "A selection action target that appears in the **More actions** menu on the order index page when multiple orders are selected. Use this to create workflows for bulk order operations, batch fulfillment, or mass order processing."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.order-index.selection-action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.order-index.selection-action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the order index selection action appears in the **More actions** menu. Use this to conditionally show or hide your bulk action based on selection criteria, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.order-index.selection-print-action.render",
- "value": "RenderExtension<\n PrintActionExtensionApi<'admin.order-index.selection-print-action.render'>,\n PrintActionExtensionComponents\n >",
- "description": "A print action target that appears in the **Print** menu on the order index page when multiple orders are selected. Use this to generate batch documents such as combined packing slips, shipping manifests, or bulk invoices."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.order-index.selection-print-action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.order-index.selection-print-action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the order index selection print action appears in the **Print** menu. Use this to conditionally show or hide your bulk print action based on selection criteria, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-details.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.product-details.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **More actions** menu on the product details page. Use this to create workflows for processing products, syncing data, or integrating with external systems."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-details.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.product-details.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the product details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on product properties, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-details.block.render",
- "value": "RenderExtension<\n BlockExtensionApi<'admin.product-details.block.render'>,\n BlockExtensionComponents\n >",
- "description": "A block target that displays inline content within the product details page. Use this to show product-specific information, tools, or actions directly on the product page."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-details.configuration.render",
- "value": "RenderExtension<\n ProductDetailsConfigurationApi<'admin.product-details.configuration.render'>,\n BlockExtensionComponents\n >",
- "description": "A configuration target that renders product configuration settings for [product bundles](/docs/apps/build/product-merchandising/bundles/product-configuration-extension/add-merchant-config-ui) and customizable products on the product details page. Use this to define bundle component selections, customization options, or product configuration rules."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-details.print-action.render",
- "value": "RenderExtension<\n PrintActionExtensionApi<'admin.product-details.print-action.render'>,\n PrintActionExtensionComponents\n >",
- "description": "A print action target that appears in the **Print** menu on the product details page. Use this to generate custom documents such as product labels, barcode sheets, or specification sheets."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-details.print-action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.product-details.print-action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the product details print action appears in the **Print** menu. Use this to conditionally show or hide your print action based on product properties, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-details.reorder.render",
- "value": "RenderExtension<\n BlockExtensionApi<'admin.product-details.reorder.render'>,\n BlockExtensionComponents\n >",
- "description": "A block target that provides custom reordering functionality on the product details page. Use this to help merchants rearrange product data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-index.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.product-index.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **More actions** menu on the product index page. Use this to create workflows for product management, catalog operations, or inventory synchronization."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-index.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.product-index.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the product index action appears in the **More actions** menu. Use this to conditionally show or hide your action based on user permissions, store configuration, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-index.selection-action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.product-index.selection-action.render'>,\n ActionExtensionComponents\n >",
- "description": "A selection action target that appears in the **More actions** menu on the product index page when multiple products are selected. Use this to create workflows for bulk product operations, batch updates, or mass data processing."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-index.selection-action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.product-index.selection-action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the product index selection action appears in the **More actions** menu. Use this to conditionally show or hide your bulk action based on selection criteria, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-index.selection-print-action.render",
- "value": "RenderExtension<\n PrintActionExtensionApi<'admin.product-index.selection-print-action.render'>,\n PrintActionExtensionComponents\n >",
- "description": "A print action target that appears in the **Print** menu on the product index page when multiple products are selected. Use this to generate batch documents such as combined product labels, barcode sheets, or catalog pages."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-index.selection-print-action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.product-index.selection-print-action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the product index selection print action appears in the **Print** menu. Use this to conditionally show or hide your bulk print action based on selection criteria, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-purchase-option.action.render",
- "value": "RenderExtension<\n PurchaseOptionsCardConfigurationApi<'admin.product-purchase-option.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **Purchase Options** card on the product details page when a selling plan group is present. Use this to create workflows for subscription management, selling plan configuration, or purchase option operations."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-variant-details.action.render",
- "value": "RenderExtension<\n ActionExtensionApi<'admin.product-variant-details.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **More actions** menu on the product variant details page. Use this to create workflows for variant management, inventory operations, or data synchronization."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-variant-details.action.should-render",
- "value": "RunnableExtension<\n ShouldRenderApi<'admin.product-variant-details.action.should-render'>,\n ShouldRenderOutput\n >",
- "description": "A non-rendering target that controls whether the product variant details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on variant properties, user permissions, or external data."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-variant-details.block.render",
- "value": "RenderExtension<\n BlockExtensionApi<'admin.product-variant-details.block.render'>,\n BlockExtensionComponents\n >",
- "description": "A block target that displays inline content within the product variant details page. Use this to show variant-specific data, inventory tools, or variant configuration options."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-variant-details.configuration.render",
- "value": "RenderExtension<\n ProductVariantDetailsConfigurationApi<'admin.product-variant-details.configuration.render'>,\n BlockExtensionComponents\n >",
- "description": "A configuration target that renders product variant configuration settings for [product bundles](/docs/apps/build/product-merchandising/bundles/product-configuration-extension/add-merchant-config-ui) and customizable products on the product variant details page. Use this to define variant-specific bundle components, customization options, or configuration rules."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.product-variant-purchase-option.action.render",
- "value": "RenderExtension<\n PurchaseOptionsCardConfigurationApi<'admin.product-variant-purchase-option.action.render'>,\n ActionExtensionComponents\n >",
- "description": "An action target that appears in the **Purchase Options** card on the product variant details page when a selling plan group is present. Use this to create workflows for variant-specific subscription management, selling plan configuration, or purchase option operations."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.settings.internal-order-routing-rule.render",
- "value": "RenderExtension<\n OrderRoutingRuleApi<'admin.settings.internal-order-routing-rule.render'>,\n FunctionSettingsComponents\n >",
- "description": "A function settings target that renders within order routing settings, allowing merchants to configure order routing rule functions.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.settings.order-routing-rule.render",
- "value": "RenderExtension<\n OrderRoutingRuleApi<'admin.settings.order-routing-rule.render'>,\n FunctionSettingsComponents\n >",
- "description": "A function settings target that renders within order routing settings, allowing merchants to configure order routing rule functions. Use this to build custom configuration interfaces for order routing function parameters."
- },
- {
- "filePath": "src/surfaces/admin/extension-targets.ts",
- "syntaxKind": "PropertySignature",
- "name": "admin.settings.validation.render",
- "value": "RenderExtension<\n ValidationSettingsApi<'admin.settings.validation.render'>,\n FunctionSettingsComponents\n >",
- "description": "A function settings target that renders within a validation's add and edit views, allowing merchants to configure validation function settings. Use this to build custom configuration interfaces for validation function parameters and rules."
- }
- ],
- "value": "export interface ExtensionTargets {\n /**\n * A runnable target that provides [customer segment templates](/docs/apps/build/marketing-analytics/customer-segments/build-a-template-extension) in the [customer segment editor](https://help.shopify.com/manual/customers/customer-segmentation/create-customer-segments). Use this target to provide pre-built segment templates that merchants can use as starting points for creating targeted customer groups based on custom criteria.\n */\n 'admin.customers.segmentation-templates.data': RunnableExtension<\n CustomerSegmentTemplateApi<'admin.customers.segmentation-templates.data'>,\n {templates: CustomerSegmentTemplate[]}\n >;\n\n // Blocks\n /**\n * A block target that displays inline content within the product details page. Use this to show product-specific information, tools, or actions directly on the product page.\n */\n 'admin.product-details.block.render': RenderExtension<\n BlockExtensionApi<'admin.product-details.block.render'>,\n BlockExtensionComponents\n >;\n\n /**\n * A block target that displays inline content within the order details page. Use this to show order-specific information, fulfillment tools, or custom order actions.\n */\n 'admin.order-details.block.render': RenderExtension<\n BlockExtensionApi<'admin.order-details.block.render'>,\n BlockExtensionComponents\n >;\n\n /**\n * A function settings target that appears when merchants create or edit a discount powered by your discount function, allowing them to configure function-specific settings. Use this to build custom configuration interfaces for discount function parameters.\n */\n 'admin.discount-details.function-settings.render': RenderExtension<\n DiscountFunctionSettingsApi<'admin.discount-details.function-settings.render'>,\n FunctionSettingsComponents\n >;\n\n /**\n * A block target that displays inline content within the customer details page. Use this to show customer-specific information, loyalty data, or custom customer actions.\n */\n 'admin.customer-details.block.render': RenderExtension<\n BlockExtensionApi<'admin.customer-details.block.render'>,\n BlockExtensionComponents\n >;\n\n /**\n * A block target that displays inline content within the collection details page. Use this to show collection analytics, bulk product operations, or collection-specific tools.\n */\n 'admin.collection-details.block.render': RenderExtension<\n BlockExtensionApi<'admin.collection-details.block.render'>,\n BlockExtensionComponents\n >;\n\n /**\n * A block target that displays inline content within the draft order details page. Use this to show custom pricing calculations, special order handling tools, or order-specific information.\n */\n 'admin.draft-order-details.block.render': RenderExtension<\n BlockExtensionApi<'admin.draft-order-details.block.render'>,\n BlockExtensionComponents\n >;\n\n /**\n * A block target that displays inline content within the abandoned checkout details page. Use this to show cart recovery tools, abandonment analysis, or customer re-engagement options.\n */\n 'admin.abandoned-checkout-details.block.render': RenderExtension<\n BlockExtensionApi<'admin.abandoned-checkout-details.block.render'>,\n BlockExtensionComponents\n >;\n\n /**\n * A block target that displays inline content within the catalog details page. Use this to show catalog-specific settings, market information, or synchronization tools.\n */\n 'admin.catalog-details.block.render': RenderExtension<\n BlockExtensionApi<'admin.catalog-details.block.render'>,\n BlockExtensionComponents\n >;\n\n /**\n * A block target that displays inline content within the company details page. Use this to show B2B customer information, credit limits, or company-specific data.\n */\n 'admin.company-details.block.render': RenderExtension<\n BlockExtensionApi<'admin.company-details.block.render'>,\n BlockExtensionComponents\n >;\n\n /**\n * A block target that displays inline content within the company location details page. Use this to show location-specific information, shipping preferences, or location management tools.\n */\n 'admin.company-location-details.block.render': RenderExtension<\n BlockExtensionApi<'admin.company-location-details.block.render'>,\n BlockExtensionComponents\n >;\n\n /**\n * A block target that displays inline content within the gift card details page. Use this to show gift card balance tracking, usage history, or custom gift card metadata.\n */\n 'admin.gift-card-details.block.render': RenderExtension<\n BlockExtensionApi<'admin.gift-card-details.block.render'>,\n BlockExtensionComponents\n >;\n\n /**\n * A block target that displays inline content within the product variant details page. Use this to show variant-specific data, inventory tools, or variant configuration options.\n */\n 'admin.product-variant-details.block.render': RenderExtension<\n BlockExtensionApi<'admin.product-variant-details.block.render'>,\n BlockExtensionComponents\n >;\n\n /**\n * A block target that provides custom reordering functionality on the product details page. Use this to help merchants rearrange product data.\n */\n 'admin.product-details.reorder.render': RenderExtension<\n BlockExtensionApi<'admin.product-details.reorder.render'>,\n BlockExtensionComponents\n >;\n\n // Actions\n /**\n * An action target that appears in the **More actions** menu on the product details page. Use this to create workflows for processing products, syncing data, or integrating with external systems.\n */\n 'admin.product-details.action.render': RenderExtension<\n ActionExtensionApi<'admin.product-details.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **More actions** menu on the catalog details page. Use this to create workflows for catalog management, market synchronization, or data exports.\n */\n 'admin.catalog-details.action.render': RenderExtension<\n ActionExtensionApi<'admin.catalog-details.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **More actions** menu on the company details page. Use this to create workflows for B2B customer management, credit operations, or company data synchronization.\n */\n 'admin.company-details.action.render': RenderExtension<\n ActionExtensionApi<'admin.company-details.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **More actions** menu on the gift card details page. Use this to create workflows for gift card processing, balance adjustments, or custom gift card operations.\n */\n 'admin.gift-card-details.action.render': RenderExtension<\n ActionExtensionApi<'admin.gift-card-details.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **More actions** menu on the order details page. Use this to create workflows for order processing, fulfillment operations, or external system integrations.\n */\n 'admin.order-details.action.render': RenderExtension<\n ActionExtensionApi<'admin.order-details.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **More actions** menu on the customer details page. Use this to create workflows for customer data management, loyalty operations, or CRM integrations.\n */\n 'admin.customer-details.action.render': RenderExtension<\n ActionExtensionApi<'admin.customer-details.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears from the **Use segment** button on the customer segment details page. Use this to create workflows for marketing campaigns, email operations, or segment-based actions.\n */\n 'admin.customer-segment-details.action.render': RenderExtension<\n ActionExtensionApi<'admin.customer-segment-details.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **More actions** menu on the product index page. Use this to create workflows for product management, catalog operations, or inventory synchronization.\n */\n 'admin.product-index.action.render': RenderExtension<\n ActionExtensionApi<'admin.product-index.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **More actions** menu on the order index page. Use this to create workflows for order management, reporting, or fulfillment operations.\n */\n 'admin.order-index.action.render': RenderExtension<\n ActionExtensionApi<'admin.order-index.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **More actions** menu on the customer index page. Use this to create workflows for customer management, marketing operations, or bulk data processing.\n */\n 'admin.customer-index.action.render': RenderExtension<\n ActionExtensionApi<'admin.customer-index.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **More actions** menu on the discount index page. Use this to create workflows for discount management, promotional operations, or bulk discount updates.\n */\n 'admin.discount-index.action.render': RenderExtension<\n ActionExtensionApi<'admin.discount-index.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **More actions** menu on the collection details page. Use this to create workflows for collection management, product operations, or merchandising tools.\n */\n 'admin.collection-details.action.render': RenderExtension<\n ActionExtensionApi<'admin.collection-details.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **More actions** menu on the collection index page. Use this to create workflows for collection management, bulk operations, or catalog organization.\n */\n 'admin.collection-index.action.render': RenderExtension<\n ActionExtensionApi<'admin.collection-index.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **More actions** menu on the abandoned checkout details page. Use this to create workflows for cart recovery, customer engagement, or checkout analysis.\n */\n 'admin.abandoned-checkout-details.action.render': RenderExtension<\n ActionExtensionApi<'admin.abandoned-checkout-details.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **More actions** menu on the product variant details page. Use this to create workflows for variant management, inventory operations, or data synchronization.\n */\n 'admin.product-variant-details.action.render': RenderExtension<\n ActionExtensionApi<'admin.product-variant-details.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **More actions** menu on the draft order details page. Use this to create workflows for draft order processing, custom pricing, or order preparation tools.\n */\n 'admin.draft-order-details.action.render': RenderExtension<\n ActionExtensionApi<'admin.draft-order-details.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **More actions** menu on the draft order index page. Use this to create workflows for draft order management, bulk operations, or order conversion tools.\n */\n 'admin.draft-order-index.action.render': RenderExtension<\n ActionExtensionApi<'admin.draft-order-index.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **More actions** menu on the discount details page. Use this to create workflows for discount management, promotion analysis, or discount synchronization.\n */\n 'admin.discount-details.action.render': RenderExtension<\n ActionExtensionApi<'admin.discount-details.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the actions menu inside the order fulfilled card, visible only on orders fulfilled by your app. Use this to create workflows for fulfillment operations, tracking updates, or post-fulfillment actions.\n */\n 'admin.order-fulfilled-card.action.render': RenderExtension<\n ActionExtensionApi<'admin.order-fulfilled-card.action.render'>,\n ActionExtensionComponents\n >;\n\n // Bulk Actions\n\n /**\n * A selection action target that appears in the **More actions** menu on the product index page when multiple products are selected. Use this to create workflows for bulk product operations, batch updates, or mass data processing.\n */\n 'admin.product-index.selection-action.render': RenderExtension<\n ActionExtensionApi<'admin.product-index.selection-action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * A selection action target that appears in the **More actions** menu on the order index page when multiple orders are selected. Use this to create workflows for bulk order operations, batch fulfillment, or mass order processing.\n */\n 'admin.order-index.selection-action.render': RenderExtension<\n ActionExtensionApi<'admin.order-index.selection-action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * A selection action target that appears in the **More actions** menu on the customer index page when multiple customers are selected. Use this to create workflows for bulk customer operations, mass email campaigns, or batch data updates.\n */\n 'admin.customer-index.selection-action.render': RenderExtension<\n ActionExtensionApi<'admin.customer-index.selection-action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **More actions** menu on the discount index page when multiple discounts are selected. Use this to create workflows for bulk discount operations or batch data updates.\n */\n 'admin.discount-index.selection-action.render': RenderExtension<\n ActionExtensionApi<'admin.discount-index.selection-action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * A selection action target that appears in the **More actions** menu on the draft order index page when multiple draft orders are selected. Use this to create workflows for bulk draft order operations, batch conversions, or mass order processing.\n */\n 'admin.draft-order-index.selection-action.render': RenderExtension<\n ActionExtensionApi<'admin.draft-order-index.selection-action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **Purchase Options** card on the product details page when a selling plan group is present. Use this to create workflows for subscription management, selling plan configuration, or purchase option operations.\n */\n 'admin.product-purchase-option.action.render': RenderExtension<\n PurchaseOptionsCardConfigurationApi<'admin.product-purchase-option.action.render'>,\n ActionExtensionComponents\n >;\n\n /**\n * An action target that appears in the **Purchase Options** card on the product variant details page when a selling plan group is present. Use this to create workflows for variant-specific subscription management, selling plan configuration, or purchase option operations.\n */\n 'admin.product-variant-purchase-option.action.render': RenderExtension<\n PurchaseOptionsCardConfigurationApi<'admin.product-variant-purchase-option.action.render'>,\n ActionExtensionComponents\n >;\n\n // Print actions and bulk print actions\n\n /**\n * A print action target that appears in the **Print** menu on the order details page. Use this to generate custom documents such as packing slips, shipping labels, or invoices.\n */\n 'admin.order-details.print-action.render': RenderExtension<\n PrintActionExtensionApi<'admin.order-details.print-action.render'>,\n PrintActionExtensionComponents\n >;\n\n /**\n * A print action target that appears in the **Print** menu on the product details page. Use this to generate custom documents such as product labels, barcode sheets, or specification sheets.\n */\n 'admin.product-details.print-action.render': RenderExtension<\n PrintActionExtensionApi<'admin.product-details.print-action.render'>,\n PrintActionExtensionComponents\n >;\n\n /**\n * A print action target that appears in the **Print** menu on the order index page when multiple orders are selected. Use this to generate batch documents such as combined packing slips, shipping manifests, or bulk invoices.\n */\n 'admin.order-index.selection-print-action.render': RenderExtension<\n PrintActionExtensionApi<'admin.order-index.selection-print-action.render'>,\n PrintActionExtensionComponents\n >;\n\n /**\n * A print action target that appears in the **Print** menu on the product index page when multiple products are selected. Use this to generate batch documents such as combined product labels, barcode sheets, or catalog pages.\n */\n 'admin.product-index.selection-print-action.render': RenderExtension<\n PrintActionExtensionApi<'admin.product-index.selection-print-action.render'>,\n PrintActionExtensionComponents\n >;\n\n // Other\n\n /**\n * A configuration target that renders product configuration settings for [product bundles](/docs/apps/build/product-merchandising/bundles/product-configuration-extension/add-merchant-config-ui) and customizable products on the product details page. Use this to define bundle component selections, customization options, or product configuration rules.\n */\n 'admin.product-details.configuration.render': RenderExtension<\n ProductDetailsConfigurationApi<'admin.product-details.configuration.render'>,\n BlockExtensionComponents\n >;\n\n /**\n * A configuration target that renders product variant configuration settings for [product bundles](/docs/apps/build/product-merchandising/bundles/product-configuration-extension/add-merchant-config-ui) and customizable products on the product variant details page. Use this to define variant-specific bundle components, customization options, or configuration rules.\n */\n 'admin.product-variant-details.configuration.render': RenderExtension<\n ProductVariantDetailsConfigurationApi<'admin.product-variant-details.configuration.render'>,\n BlockExtensionComponents\n >;\n\n /**\n * A function settings target that renders within order routing settings, allowing merchants to configure order routing rule functions.\n * @private\n */\n 'admin.settings.internal-order-routing-rule.render': RenderExtension<\n OrderRoutingRuleApi<'admin.settings.internal-order-routing-rule.render'>,\n FunctionSettingsComponents\n >;\n /**\n * A function settings target that renders within order routing settings, allowing merchants to configure order routing rule functions. Use this to build custom configuration interfaces for order routing function parameters.\n */\n 'admin.settings.order-routing-rule.render': RenderExtension<\n OrderRoutingRuleApi<'admin.settings.order-routing-rule.render'>,\n FunctionSettingsComponents\n >;\n\n /**\n * A function settings target that renders within a validation's add and edit views, allowing merchants to configure validation function settings. Use this to build custom configuration interfaces for validation function parameters and rules.\n */\n 'admin.settings.validation.render': RenderExtension<\n ValidationSettingsApi<'admin.settings.validation.render'>,\n FunctionSettingsComponents\n >;\n\n // Admin action shouldRender targets\n /**\n * A non-rendering target that controls whether the product details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on product properties, user permissions, or external data.\n */\n 'admin.product-details.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.product-details.action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the catalog details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on catalog properties, user permissions, or external data.\n */\n 'admin.catalog-details.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.catalog-details.action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the company details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on company properties, user permissions, or external data.\n */\n 'admin.company-details.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.company-details.action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the gift card details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on gift card properties, user permissions, or external data.\n */\n 'admin.gift-card-details.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.gift-card-details.action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the order details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on order properties, fulfillment status, or external data.\n */\n 'admin.order-details.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.order-details.action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the customer details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on customer properties, user permissions, or external data.\n */\n 'admin.customer-details.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.customer-details.action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the customer segment details action appears from the **Use segment** button. Use this to conditionally show or hide your action based on segment properties, user permissions, or external data.\n */\n 'admin.customer-segment-details.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.customer-segment-details.action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the product index action appears in the **More actions** menu. Use this to conditionally show or hide your action based on user permissions, store configuration, or external data.\n */\n 'admin.product-index.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.product-index.action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the order index action appears in the **More actions** menu. Use this to conditionally show or hide your action based on user permissions, store configuration, or external data.\n */\n 'admin.order-index.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.order-index.action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the customer index action appears in the **More actions** menu. Use this to conditionally show or hide your action based on user permissions, store configuration, or external data.\n */\n 'admin.customer-index.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.customer-index.action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the discount index action appears in the **More actions** menu. Use this to conditionally show or hide your action based on user permissions, store configuration, or external data.\n */\n 'admin.discount-index.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.discount-index.action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the collection details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on collection properties, user permissions, or external data.\n */\n 'admin.collection-details.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.collection-details.action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the collection index action appears in the **More actions** menu. Use this to conditionally show or hide your action based on user permissions, store configuration, or external data.\n */\n 'admin.collection-index.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.collection-index.action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the abandoned checkout details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on checkout properties, user permissions, or external data.\n */\n 'admin.abandoned-checkout-details.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.abandoned-checkout-details.action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the product variant details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on variant properties, user permissions, or external data.\n */\n 'admin.product-variant-details.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.product-variant-details.action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the draft order details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on draft order properties, user permissions, or external data.\n */\n 'admin.draft-order-details.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.draft-order-details.action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the draft order index action appears in the **More actions** menu. Use this to conditionally show or hide your action based on user permissions, store configuration, or external data.\n */\n 'admin.draft-order-index.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.draft-order-index.action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the discount details action appears in the **More actions** menu. Use this to conditionally show or hide your action based on discount properties, user permissions, or external data.\n */\n 'admin.discount-details.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.discount-details.action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the order fulfilled card action appears in the actions menu. Use this to conditionally show or hide your action based on fulfillment properties, user permissions, or external data.\n */\n 'admin.order-fulfilled-card.action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.order-fulfilled-card.action.should-render'>,\n ShouldRenderOutput\n >;\n\n // Admin bulk action shouldRender targets\n\n /**\n * A non-rendering target that controls whether the product index selection action appears in the **More actions** menu. Use this to conditionally show or hide your bulk action based on selection criteria, user permissions, or external data.\n */\n 'admin.product-index.selection-action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.product-index.selection-action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the order index selection action appears in the **More actions** menu. Use this to conditionally show or hide your bulk action based on selection criteria, user permissions, or external data.\n */\n 'admin.order-index.selection-action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.order-index.selection-action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the customer index selection action appears in the **More actions** menu. Use this to conditionally show or hide your bulk action based on selection criteria, user permissions, or external data.\n */\n 'admin.customer-index.selection-action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.customer-index.selection-action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the discount index selection action appears in the **More actions** menu. Use this to conditionally show or hide your bulk action based on selection criteria, user permissions, or external data.\n */\n 'admin.discount-index.selection-action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.discount-index.selection-action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the draft order index selection action appears in the **More actions** menu. Use this to conditionally show or hide your bulk action based on selection criteria, user permissions, or external data.\n */\n 'admin.draft-order-index.selection-action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.draft-order-index.selection-action.should-render'>,\n ShouldRenderOutput\n >;\n\n // Admin print action and bulk print action shouldRender targets\n\n /**\n * A non-rendering target that controls whether the order details print action appears in the **Print** menu. Use this to conditionally show or hide your print action based on order properties, user permissions, or external data.\n */\n 'admin.order-details.print-action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.order-details.print-action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the product details print action appears in the **Print** menu. Use this to conditionally show or hide your print action based on product properties, user permissions, or external data.\n */\n 'admin.product-details.print-action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.product-details.print-action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the order index selection print action appears in the **Print** menu. Use this to conditionally show or hide your bulk print action based on selection criteria, user permissions, or external data.\n */\n 'admin.order-index.selection-print-action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.order-index.selection-print-action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A non-rendering target that controls whether the product index selection print action appears in the **Print** menu. Use this to conditionally show or hide your bulk print action based on selection criteria, user permissions, or external data.\n */\n 'admin.product-index.selection-print-action.should-render': RunnableExtension<\n ShouldRenderApi<'admin.product-index.selection-print-action.should-render'>,\n ShouldRenderOutput\n >;\n\n /**\n * A runnable target that enables your app to expose data to [Sidekick](/docs/apps/build/sidekick/build-app-data). Use this target to register tools that Sidekick can invoke to search your app's data and answer merchant questions.\n */\n 'admin.app.tools.data': RunnableExtension<\n StandardApi<'admin.app.tools.data'>,\n undefined\n >;\n}"
- },
- "RenderExtension": {
- "filePath": "src/extension.ts",
- "name": "RenderExtension",
- "description": "Defines the structure of a render extension, which displays UI in the Shopify admin.",
- "members": [
- {
- "filePath": "src/extension.ts",
- "syntaxKind": "PropertySignature",
- "name": "api",
- "value": "Api",
- "description": "The API object providing access to extension capabilities, data, and methods. The specific API type depends on the extension target and determines what functionality is available to your extension, such as authentication, storage, data access, and GraphQL querying."
- },
- {
- "filePath": "src/extension.ts",
- "syntaxKind": "PropertySignature",
- "name": "components",
- "value": "ComponentsSet",
- "description": "The set of UI components available for rendering your extension. This defines which Polaris components and custom components can be used to build your extension's interface. The available components vary by extension target."
- },
- {
- "filePath": "src/extension.ts",
- "syntaxKind": "PropertySignature",
- "name": "output",
- "value": "void | Promise",
- "description": "The render function output. Your extension's render function should return void or a Promise that resolves to void. Use this to perform any necessary setup, rendering, or async operations when your extension loads."
- }
- ],
- "value": "export interface RenderExtension {\n /**\n * The API object providing access to extension capabilities, data, and methods. The specific API type depends on the extension target and determines what functionality is available to your extension, such as authentication, storage, data access, and GraphQL querying.\n */\n api: Api;\n /**\n * The set of UI components available for rendering your extension. This defines which Polaris components and custom components can be used to build your extension's interface. The available components vary by extension target.\n */\n components: ComponentsSet;\n /**\n * The render function output. Your extension's render function should return void or a Promise that resolves to void. Use this to perform any necessary setup, rendering, or async operations when your extension loads.\n */\n output: void | Promise;\n}"
- },
- "ActionExtensionComponents": {
- "filePath": "src/surfaces/admin/components/ActionExtensionComponents.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "ActionExtensionComponents",
- "value": "StandardComponents | 'AdminAction'",
- "description": "The components available for building action extensions. Includes all standard components plus the admin action component required for action extension setup."
- },
- "StandardComponents": {
- "filePath": "src/surfaces/admin/components/StandardComponents.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "StandardComponents",
- "value": "'Avatar' | 'Badge' | 'Banner' | 'Box' | 'Button' | 'ButtonGroup' | 'Checkbox' | 'Chip' | 'Choice' | 'ChoiceList' | 'Clickable' | 'ClickableChip' | 'ColorField' | 'ColorPicker' | 'DateField' | 'DatePicker' | 'DropZone' | 'Divider' | 'EmailField' | 'Grid' | 'GridItem' | 'Heading' | 'Icon' | 'Image' | 'Link' | 'ListItem' | 'Menu' | 'MoneyField' | 'NumberField' | 'Option' | 'OptionGroup' | 'OrderedList' | 'Paragraph' | 'PasswordField' | 'QueryContainer' | 'SearchField' | 'Section' | 'Select' | 'Spinner' | 'Stack' | 'Switch' | 'Table' | 'TableBody' | 'TableCell' | 'TableHeader' | 'TableHeaderRow' | 'TableRow' | 'Text' | 'TextArea' | 'TextField' | 'Thumbnail' | 'Tooltip' | 'UnorderedList' | 'URLField'",
- "description": "The standard set of UI components available in most admin extensions. These components provide the building blocks for creating extension interfaces including layout elements, form inputs, data display, navigation, and interactive controls. Use these components to build consistent, accessible UIs that match the Shopify admin design system."
- },
- "Avatar": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Avatar",
- "description": "Configure the following properties on the avatar component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "initials",
- "value": "string",
- "description": "The initials to display in the avatar when no image is provided or fails to load. Typically one or two characters representing a person's first and last name initials, such as \"JD\" for John Doe."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "src",
- "value": "string",
- "description": "The URL or path to the avatar image. When provided, the image takes priority over `initials`. If the image fails to load or loads slowly, `initials` will be rendered as a fallback."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "size",
- "value": "\"small\" | \"small-200\" | \"base\" | \"large\" | \"large-200\"",
- "description": "The size of the avatar image.\n\n- `small-200`: Extra small avatar, suitable for compact displays or lists with many items.\n- `small`: Small avatar, good for secondary contexts or tight layouts.\n- `base`: Default size that works well in most contexts.\n- `large`: Large avatar for emphasis or when the avatar is a focal point.\n- `large-200`: Extra large avatar for prominent display.",
- "defaultValue": "'base'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "alt",
- "value": "string",
- "description": "Alternative text that describes the avatar for accessibility.\n\nProvides a text description of the avatar for users with assistive technology and serves as a fallback when the avatar fails to load. A well-written description enables people with visual impairments to understand non-text content.\n\nWhen a screen reader encounters an avatar, it reads this description aloud. When an avatar fails to load, this text displays on screen, helping all users understand what content was intended.\n\nLearn more about [writing effective alt text](https://www.shopify.com/ca/blog/image-alt-text#4) and the [alt attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#alt)."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Avatar extends PreactCustomElement implements AvatarProps {\n accessor initials: AvatarProps['initials'];\n accessor src: AvatarProps['src'];\n accessor size: AvatarProps['size'];\n accessor alt: AvatarProps['alt'];\n constructor();\n}"
- },
- "ClickOptions": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "ClickOptions",
- "description": "",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertySignature",
- "name": "sourceEvent",
- "value": "ActivationEventEsque",
- "description": "The event you want to influence the synthetic click.",
- "isOptional": true
- }
- ],
- "value": "export interface ClickOptions {\n /**\n * The event you want to influence the synthetic click.\n */\n sourceEvent?: ActivationEventEsque;\n}"
- },
- "ActivationEventEsque": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "ActivationEventEsque",
- "description": "",
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertySignature",
- "name": "button",
- "value": "number",
- "description": "The button number that was pressed on the mouse. 0 for left button, 1 for middle button, 2 for right button."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertySignature",
- "name": "ctrlKey",
- "value": "boolean",
- "description": "Whether the Ctrl key was pressed when the event occurred."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertySignature",
- "name": "metaKey",
- "value": "boolean",
- "description": "Whether the Meta/Command key (Mac) or Windows key was pressed when the event occurred."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertySignature",
- "name": "shiftKey",
- "value": "boolean",
- "description": "Whether the Shift key was pressed when the event occurred."
- }
- ],
- "value": "export interface ActivationEventEsque {\n /**\n * Whether the Shift key was pressed when the event occurred.\n */\n shiftKey: boolean;\n /**\n * Whether the Meta/Command key (Mac) or Windows key was pressed when the event occurred.\n */\n metaKey: boolean;\n /**\n * Whether the Ctrl key was pressed when the event occurred.\n */\n ctrlKey: boolean;\n /**\n * The button number that was pressed on the mouse. 0 for left button, 1 for middle button, 2 for right button.\n */\n button: number;\n}"
- },
- "Badge": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Badge",
- "description": "Configure the following properties on the badge component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "color",
- "value": "\"base\" | \"strong\"",
- "description": "Controls the visual weight and emphasis of the badge.\n\n- `base`: Standard weight with moderate emphasis, suitable for most use cases.\n- `strong`: Increased visual weight for higher emphasis and prominence.",
- "defaultValue": "'base'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "icon",
- "value": "\"\" | \"replace\" | \"search\" | \"split\" | \"link\" | \"edit\" | \"info\" | \"incomplete\" | \"complete\" | \"product\" | \"variant\" | \"collection\" | \"select\" | \"color\" | \"money\" | \"order\" | \"code\" | \"adjust\" | \"affiliate\" | \"airplane\" | \"alert-bubble\" | \"alert-circle\" | \"alert-diamond\" | \"alert-location\" | \"alert-octagon\" | \"alert-octagon-filled\" | \"alert-triangle\" | \"alert-triangle-filled\" | \"app-extension\" | \"apps\" | \"archive\" | \"arrow-down\" | \"arrow-down-circle\" | \"arrow-down-right\" | \"arrow-left\" | \"arrow-left-circle\" | \"arrow-right\" | \"arrow-right-circle\" | \"arrow-up\" | \"arrow-up-circle\" | \"arrow-up-right\" | \"arrows-in-horizontal\" | \"arrows-out-horizontal\" | \"asterisk\" | \"attachment\" | \"automation\" | \"backspace\" | \"bag\" | \"bank\" | \"barcode\" | \"battery-low\" | \"bill\" | \"blank\" | \"blog\" | \"bolt\" | \"bolt-filled\" | \"book\" | \"book-open\" | \"bug\" | \"bullet\" | \"business-entity\" | \"button\" | \"button-press\" | \"calculator\" | \"calendar\" | \"calendar-check\" | \"calendar-compare\" | \"calendar-list\" | \"calendar-time\" | \"camera\" | \"camera-flip\" | \"caret-down\" | \"caret-left\" | \"caret-right\" | \"caret-up\" | \"cart\" | \"cart-abandoned\" | \"cart-discount\" | \"cart-down\" | \"cart-filled\" | \"cart-sale\" | \"cart-send\" | \"cart-up\" | \"cash-dollar\" | \"cash-euro\" | \"cash-pound\" | \"cash-rupee\" | \"cash-yen\" | \"catalog-product\" | \"categories\" | \"channels\" | \"chart-cohort\" | \"chart-donut\" | \"chart-funnel\" | \"chart-histogram-first\" | \"chart-histogram-first-last\" | \"chart-histogram-flat\" | \"chart-histogram-full\" | \"chart-histogram-growth\" | \"chart-histogram-last\" | \"chart-histogram-second-last\" | \"chart-horizontal\" | \"chart-line\" | \"chart-popular\" | \"chart-stacked\" | \"chart-vertical\" | \"chat\" | \"chat-new\" | \"chat-referral\" | \"check\" | \"check-circle\" | \"check-circle-filled\" | \"checkbox\" | \"chevron-down\" | \"chevron-down-circle\" | \"chevron-left\" | \"chevron-left-circle\" | \"chevron-right\" | \"chevron-right-circle\" | \"chevron-up\" | \"chevron-up-circle\" | \"circle\" | \"circle-dashed\" | \"clipboard\" | \"clipboard-check\" | \"clipboard-checklist\" | \"clock\" | \"clock-list\" | \"clock-revert\" | \"code-add\" | \"collection-featured\" | \"collection-list\" | \"collection-reference\" | \"color-none\" | \"compass\" | \"compose\" | \"confetti\" | \"connect\" | \"content\" | \"contract\" | \"corner-pill\" | \"corner-round\" | \"corner-square\" | \"credit-card\" | \"credit-card-cancel\" | \"credit-card-percent\" | \"credit-card-reader\" | \"credit-card-reader-chip\" | \"credit-card-reader-tap\" | \"credit-card-secure\" | \"credit-card-tap-chip\" | \"crop\" | \"currency-convert\" | \"cursor\" | \"cursor-banner\" | \"cursor-option\" | \"data-presentation\" | \"data-table\" | \"database\" | \"database-add\" | \"database-connect\" | \"delete\" | \"delivered\" | \"delivery\" | \"desktop\" | \"disabled\" | \"disabled-filled\" | \"discount\" | \"discount-add\" | \"discount-automatic\" | \"discount-code\" | \"discount-remove\" | \"dns-settings\" | \"dock-floating\" | \"dock-side\" | \"domain\" | \"domain-landing-page\" | \"domain-new\" | \"domain-redirect\" | \"download\" | \"drag-drop\" | \"drag-handle\" | \"drawer\" | \"duplicate\" | \"email\" | \"email-follow-up\" | \"email-newsletter\" | \"empty\" | \"enabled\" | \"enter\" | \"envelope\" | \"envelope-soft-pack\" | \"eraser\" | \"exchange\" | \"exit\" | \"export\" | \"external\" | \"eye-check-mark\" | \"eye-dropper\" | \"eye-dropper-list\" | \"eye-first\" | \"eyeglasses\" | \"fav\" | \"favicon\" | \"file\" | \"file-list\" | \"filter\" | \"filter-active\" | \"flag\" | \"flip-horizontal\" | \"flip-vertical\" | \"flower\" | \"folder\" | \"folder-add\" | \"folder-down\" | \"folder-remove\" | \"folder-up\" | \"food\" | \"foreground\" | \"forklift\" | \"forms\" | \"games\" | \"gauge\" | \"geolocation\" | \"gift\" | \"gift-card\" | \"git-branch\" | \"git-commit\" | \"git-repository\" | \"globe\" | \"globe-asia\" | \"globe-europe\" | \"globe-lines\" | \"globe-list\" | \"graduation-hat\" | \"grid\" | \"hashtag\" | \"hashtag-decimal\" | \"hashtag-list\" | \"heart\" | \"hide\" | \"hide-filled\" | \"home\" | \"home-filled\" | \"icons\" | \"identity-card\" | \"image\" | \"image-add\" | \"image-alt\" | \"image-explore\" | \"image-magic\" | \"image-none\" | \"image-with-text-overlay\" | \"images\" | \"import\" | \"in-progress\" | \"incentive\" | \"incoming\" | \"info-filled\" | \"inheritance\" | \"inventory\" | \"inventory-edit\" | \"inventory-list\" | \"inventory-transfer\" | \"inventory-updated\" | \"iq\" | \"key\" | \"keyboard\" | \"keyboard-filled\" | \"keyboard-hide\" | \"keypad\" | \"label-printer\" | \"language\" | \"language-translate\" | \"layout-block\" | \"layout-buy-button\" | \"layout-buy-button-horizontal\" | \"layout-buy-button-vertical\" | \"layout-column-1\" | \"layout-columns-2\" | \"layout-columns-3\" | \"layout-footer\" | \"layout-header\" | \"layout-logo-block\" | \"layout-popup\" | \"layout-rows-2\" | \"layout-section\" | \"layout-sidebar-left\" | \"layout-sidebar-right\" | \"lightbulb\" | \"link-list\" | \"list-bulleted\" | \"list-bulleted-filled\" | \"list-numbered\" | \"live\" | \"live-critical\" | \"live-none\" | \"location\" | \"location-none\" | \"lock\" | \"map\" | \"markets\" | \"markets-euro\" | \"markets-rupee\" | \"markets-yen\" | \"maximize\" | \"measurement-size\" | \"measurement-size-list\" | \"measurement-volume\" | \"measurement-volume-list\" | \"measurement-weight\" | \"measurement-weight-list\" | \"media-receiver\" | \"megaphone\" | \"mention\" | \"menu\" | \"menu-filled\" | \"menu-horizontal\" | \"menu-vertical\" | \"merge\" | \"metafields\" | \"metaobject\" | \"metaobject-list\" | \"metaobject-reference\" | \"microphone\" | \"microphone-muted\" | \"minimize\" | \"minus\" | \"minus-circle\" | \"mobile\" | \"money-none\" | \"money-split\" | \"moon\" | \"nature\" | \"note\" | \"note-add\" | \"notification\" | \"number-one\" | \"order-batches\" | \"order-draft\" | \"order-filled\" | \"order-first\" | \"order-fulfilled\" | \"order-repeat\" | \"order-unfulfilled\" | \"orders-status\" | \"organization\" | \"outdent\" | \"outgoing\" | \"package\" | \"package-cancel\" | \"package-fulfilled\" | \"package-on-hold\" | \"package-reassign\" | \"package-returned\" | \"page\" | \"page-add\" | \"page-attachment\" | \"page-clock\" | \"page-down\" | \"page-heart\" | \"page-list\" | \"page-reference\" | \"page-remove\" | \"page-report\" | \"page-up\" | \"pagination-end\" | \"pagination-start\" | \"paint-brush-flat\" | \"paint-brush-round\" | \"paper-check\" | \"partially-complete\" | \"passkey\" | \"paste\" | \"pause-circle\" | \"payment\" | \"payment-capture\" | \"payout\" | \"payout-dollar\" | \"payout-euro\" | \"payout-pound\" | \"payout-rupee\" | \"payout-yen\" | \"person\" | \"person-add\" | \"person-exit\" | \"person-filled\" | \"person-list\" | \"person-lock\" | \"person-remove\" | \"person-segment\" | \"personalized-text\" | \"phablet\" | \"phone\" | \"phone-down\" | \"phone-down-filled\" | \"phone-in\" | \"phone-out\" | \"pin\" | \"pin-remove\" | \"plan\" | \"play\" | \"play-circle\" | \"plus\" | \"plus-circle\" | \"plus-circle-down\" | \"plus-circle-filled\" | \"plus-circle-up\" | \"point-of-sale\" | \"point-of-sale-register\" | \"price-list\" | \"print\" | \"product-add\" | \"product-cost\" | \"product-filled\" | \"product-list\" | \"product-reference\" | \"product-remove\" | \"product-return\" | \"product-unavailable\" | \"profile\" | \"profile-filled\" | \"question-circle\" | \"question-circle-filled\" | \"radio-control\" | \"receipt\" | \"receipt-dollar\" | \"receipt-euro\" | \"receipt-folded\" | \"receipt-paid\" | \"receipt-pound\" | \"receipt-refund\" | \"receipt-rupee\" | \"receipt-yen\" | \"receivables\" | \"redo\" | \"referral-code\" | \"refresh\" | \"remove-background\" | \"reorder\" | \"replay\" | \"reset\" | \"return\" | \"reward\" | \"rocket\" | \"rotate-left\" | \"rotate-right\" | \"sandbox\" | \"save\" | \"savings\" | \"scan-qr-code\" | \"search-add\" | \"search-list\" | \"search-recent\" | \"search-resource\" | \"send\" | \"settings\" | \"share\" | \"shield-check-mark\" | \"shield-none\" | \"shield-pending\" | \"shield-person\" | \"shipping-label\" | \"shipping-label-cancel\" | \"shopcodes\" | \"slideshow\" | \"smiley-happy\" | \"smiley-joy\" | \"smiley-neutral\" | \"smiley-sad\" | \"social-ad\" | \"social-post\" | \"sort\" | \"sort-ascending\" | \"sort-descending\" | \"sound\" | \"sports\" | \"star\" | \"star-circle\" | \"star-filled\" | \"star-half\" | \"star-list\" | \"status\" | \"status-active\" | \"stop-circle\" | \"store\" | \"store-import\" | \"store-managed\" | \"store-online\" | \"sun\" | \"table\" | \"table-masonry\" | \"tablet\" | \"target\" | \"tax\" | \"team\" | \"text\" | \"text-align-center\" | \"text-align-left\" | \"text-align-right\" | \"text-block\" | \"text-bold\" | \"text-color\" | \"text-font\" | \"text-font-list\" | \"text-grammar\" | \"text-in-columns\" | \"text-in-rows\" | \"text-indent\" | \"text-indent-remove\" | \"text-italic\" | \"text-quote\" | \"text-title\" | \"text-underline\" | \"text-with-image\" | \"theme\" | \"theme-edit\" | \"theme-store\" | \"theme-template\" | \"three-d-environment\" | \"thumbs-down\" | \"thumbs-up\" | \"tip-jar\" | \"toggle-off\" | \"toggle-on\" | \"transaction\" | \"transaction-fee-add\" | \"transaction-fee-dollar\" | \"transaction-fee-euro\" | \"transaction-fee-pound\" | \"transaction-fee-rupee\" | \"transaction-fee-yen\" | \"transfer\" | \"transfer-in\" | \"transfer-internal\" | \"transfer-out\" | \"truck\" | \"undo\" | \"unknown-device\" | \"unlock\" | \"upload\" | \"variant-list\" | \"video\" | \"video-list\" | \"view\" | \"viewport-narrow\" | \"viewport-short\" | \"viewport-tall\" | \"viewport-wide\" | \"wallet\" | \"wand\" | \"watch\" | \"wifi\" | \"work\" | \"work-list\" | \"wrench\" | \"x\" | \"x-circle\" | \"x-circle-filled\"",
- "description": "An icon displayed inside the badge to provide additional visual context or reinforce the badge's meaning. Accepts any icon name from the icon library or a custom string identifier."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "size",
- "value": "\"base\" | \"large\" | \"large-100\"",
- "description": "The size of the badge.\n\n- `base`: Default size suitable for most badge use cases.\n- `large`: Larger badge for increased visibility and prominence.\n- `large-100`: Extra large badge for maximum visibility in emphasized contexts.",
- "defaultValue": "'base'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "tone",
- "value": "\"info\" | \"success\" | \"warning\" | \"critical\" | \"auto\" | \"neutral\" | \"caution\"",
- "description": "The semantic meaning and color treatment of the component.\n\n- `info`: Informational content or helpful tips.\n- `success`: Positive outcomes or successful states.\n- `warning`: Important warnings about potential issues.\n- `critical`: Urgent problems or destructive actions.\n- `auto`: Automatically determined based on context.\n- `neutral`: General information without specific intent.\n- `caution`: Advisory notices that need attention.",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Badge extends PreactCustomElement implements BadgeProps {\n accessor color: BadgeProps['color'];\n accessor icon: BadgeProps['icon'];\n accessor size: BadgeProps['size'];\n accessor tone: BadgeProps['tone'];\n constructor();\n}"
- },
- "Banner": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Banner",
- "description": "Configure the following properties on the banner component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "heading",
- "value": "string",
- "description": "The heading text displayed at the top of the banner.",
- "defaultValue": "''"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "tone",
- "value": "\"info\" | \"success\" | \"warning\" | \"critical\" | \"auto\"",
- "description": "The semantic meaning and color treatment of the component.\n\n- `info`: Informational content or helpful tips.\n- `success`: Positive outcomes or successful states.\n- `warning`: Important warnings about potential issues.\n- `critical`: Urgent problems or destructive actions.\n- `auto`: Automatically determined based on context.",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "hidden",
- "value": "boolean",
- "description": "Controls whether the banner is visible or hidden.\n\nWhen using a controlled component pattern and the banner is `dismissible`, update this property to `true` when the `dismiss` event fires.\n\nYou can hide the banner programmatically by setting this to `true` even if it's not `dismissible`.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "dismissible",
- "value": "boolean",
- "description": "Whether the banner displays a close button that allows users to dismiss it.\n\nWhen the close button is pressed, the `dismiss` event fires, then `hidden` is set to `true`, any animation completes, and the `afterhide` event fires.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Banner extends PreactCustomElement implements BannerProps {\n accessor heading: BannerProps['heading'];\n accessor tone: BannerProps['tone'];\n accessor hidden: BannerProps['hidden'];\n accessor dismissible: BannerProps['dismissible'];\n constructor();\n}"
- },
- "Box": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Box",
- "description": "Configure the following properties on the box component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityRole",
- "value": "AccessibilityRole",
- "description": "The semantic meaning of the component’s content. When set, the role will be used by assistive technologies to help users navigate the page.",
- "defaultValue": "'generic'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "background",
- "value": "BackgroundColorKeyword",
- "description": "The background color of the component.",
- "defaultValue": "'transparent'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "blockSize",
- "value": "SizeUnitsOrAuto",
- "description": "The vertical size of the element in standard layouts (height in left-to-right or right-to-left writing modes).\n\nBlock size adjusts based on the writing direction: in horizontal layouts, it controls the height; in vertical layouts, it controls the width. This ensures consistent behavior across different text directions.\n\nLearn more about [block-size](https://developer.mozilla.org/en-US/docs/Web/CSS/block-size).",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "minBlockSize",
- "value": "SizeUnits",
- "description": "The minimum height in horizontal writing modes, or minimum width in vertical writing modes. Prevents the element from shrinking below this size.\n\nLearn more about [min-block-size](https://developer.mozilla.org/en-US/docs/Web/CSS/min-block-size).",
- "defaultValue": "'0'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "maxBlockSize",
- "value": "SizeUnitsOrNone",
- "description": "The maximum height in horizontal writing modes, or maximum width in vertical writing modes. Prevents the element from growing beyond this size.\n\nLearn more about [max-block-size](https://developer.mozilla.org/en-US/docs/Web/CSS/max-block-size).",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "inlineSize",
- "value": "SizeUnitsOrAuto",
- "description": "The width in horizontal writing modes, or height in vertical writing modes. Use this for flow-relative sizing that adapts to text direction. Learn more about [inline-size](https://developer.mozilla.org/en-US/docs/Web/CSS/inline-size).",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "minInlineSize",
- "value": "SizeUnits",
- "description": "The minimum width in horizontal writing modes, or minimum height in vertical writing modes. Prevents the element from shrinking below this size.\n\nLearn more about [min-inline-size](https://developer.mozilla.org/en-US/docs/Web/CSS/min-inline-size).",
- "defaultValue": "'0'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "maxInlineSize",
- "value": "SizeUnitsOrNone",
- "description": "The maximum width in horizontal writing modes, or maximum height in vertical writing modes. Prevents the element from growing beyond this size.\n\nLearn more about [max-inline-size](https://developer.mozilla.org/en-US/docs/Web/CSS/max-inline-size).",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "overflow",
- "value": "\"visible\" | \"hidden\"",
- "description": "The overflow behavior of the element.\n\n- `visible`: the content that extends beyond the element’s container is visible.\n- `hidden`: clips the content when it is larger than the element’s container. The element will not be scrollable and the users will not be able to access the clipped content by dragging or using a scroll wheel on a mouse.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "padding",
- "value": "MaybeResponsive>",
- "description": "The padding applied to all edges of the component.\n\nSupports [1-to-4-value syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#edges_of_a_box) using flow-relative values:\n- 1 value applies to all sides\n- 2 values apply to block (top/bottom) and inline (left/right)\n- 3 values apply to block-start (top), inline (left/right), and block-end (bottom)\n- 4 values apply to block-start (top), inline-end (right), block-end (bottom), and inline-start (left)\n\n**Examples:** `base`, `large none`, `base large-100 base small`\n\nUse `auto` to inherit padding from the nearest container with removed padding. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingBlock",
- "value": "MaybeResponsive<\"\" | MaybeTwoValuesShorthandProperty>",
- "description": "The block-direction padding (top and bottom in horizontal writing modes).\n\nAccepts a single value for both sides or two space-separated values for block-start and block-end.\n\n**Example:** `large none` applies `large` to the top and `none` to the bottom.\n\nOverrides the block value from `padding`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingBlockStart",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The block-start padding (top in horizontal writing modes).\n\nOverrides the block-start value from `paddingBlock`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingBlockEnd",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The block-end padding (bottom in horizontal writing modes).\n\nOverrides the block-end value from `paddingBlock`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingInline",
- "value": "MaybeResponsive<\"\" | MaybeTwoValuesShorthandProperty>",
- "description": "The inline-direction padding (left and right in horizontal writing modes).\n\nAccepts a single value for both sides or two space-separated values for inline-start and inline-end.\n\n**Example:** `large none` applies `large` to the left and `none` to the right.\n\nOverrides the inline value from `padding`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingInlineStart",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The inline-start padding (left in LTR writing modes, right in RTL).\n\nOverrides the inline-start value from `paddingInline`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingInlineEnd",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The inline-end padding (right in LTR writing modes, left in RTL).\n\nOverrides the inline-end value from `paddingInline`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "border",
- "value": "BorderShorthand",
- "description": "A border applied using shorthand syntax to specify width, color, and style in a single property.",
- "defaultValue": "'none' - equivalent to `none base auto`.",
- "examples": [
- {
- "title": "Example",
- "description": "",
- "tabs": [
- {
- "code": "// The following are equivalent:\n\n",
- "title": "Example"
- }
- ]
- }
- ]
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderWidth",
- "value": "\"\" | MaybeAllValuesShorthandProperty<\"small\" | \"small-100\" | \"base\" | \"large\" | \"large-100\" | \"none\">",
- "description": "The thickness of the border on all sides. When set, this overrides the width value specified in the `border` property.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderStyle",
- "value": "\"\" | MaybeAllValuesShorthandProperty",
- "description": "The visual style of the border on all sides, such as solid, dashed, or dotted. When set, this overrides the style value specified in the `border` property.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderColor",
- "value": "\"\" | ColorKeyword",
- "description": "The color of the border using the design system's color scale. When set, this overrides the color value specified in the `border` property.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderRadius",
- "value": "MaybeAllValuesShorthandProperty",
- "description": "The roundedness of the element's corners using the design system's radius scale.",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityLabel",
- "value": "string",
- "description": "A label that describes the purpose or content of the component for assistive technologies like screen readers. Use this to provide additional context when the visible content alone doesn't clearly convey the component's purpose."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityVisibility",
- "value": "\"visible\" | \"hidden\" | \"exclusive\"",
- "description": "The visibility mode of the element for both visual and assistive technology users.\n\n- `visible`: The element is visible to all users (both sighted users and screen readers).\n- `hidden`: The element is visually visible but hidden from screen readers. Use this for decorative elements that don't provide meaningful information.\n- `exclusive`: The element is visually hidden but announced by screen readers. Use this for screen-reader-only content like skip links or additional context.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "display",
- "value": "MaybeResponsive<\"auto\" | \"none\">",
- "description": "The outer [display](https://developer.mozilla.org/en-US/docs/Web/CSS/display) type of the component. The outer type sets a component's participation in [flow layout](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_flow_layout).\n\n- `auto` the component's initial value. The actual value depends on the component and context.\n- `none` hides the component from display and removes it from the accessibility tree, making it invisible to screen readers.",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Box extends BoxElement implements BoxProps {\n constructor();\n}"
- },
- "AccessibilityRole": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "AccessibilityRole",
- "value": "'main' | 'header' | 'footer' | 'section' | 'aside' | 'navigation' | 'ordered-list' | 'list-item' | 'list-item-separator' | 'unordered-list' | 'separator' | 'status' | 'alert' | 'generic' | 'presentation' | 'none'",
- "description": "Defines the semantic role of a component for assistive technologies like screen readers.\n\nAccessibility roles help users with disabilities understand the purpose and structure of content. These roles map to HTML elements and ARIA roles, providing semantic meaning beyond visual presentation.\n\nUse these roles to:\n- Improve navigation for screen reader users\n- Provide semantic structure to your UI\n- Ensure proper interpretation by assistive technologies\n\nLearn more about [ARIA roles](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles) in the MDN web docs.\n\n- `main`: Indicates the primary content area of the page.\n- `header`: Marks a component as a header containing introductory content or navigation.\n- `footer`: Designates content containing information like copyright, navigation links, or privacy statements.\n- `section`: Defines a generic thematic grouping of content that should have a heading or accessible label.\n- `aside`: Marks supporting content that relates to but is separate from the main content.\n- `navigation`: Identifies major groups of navigation links for moving around the site or page.\n- `ordered-list`: Represents a list where the order of items is meaningful.\n- `list-item`: Identifies an individual item within a list.\n- `list-item-separator`: Acts as a visual and semantic divider between items in a list.\n- `unordered-list`: Represents a list where the order of items is not meaningful.\n- `separator`: Creates a divider that separates and distinguishes sections of content.\n- `status`: Defines a live region for advisory information that is not urgent enough to be an alert.\n- `alert`: Marks important, time-sensitive information that requires the user's immediate attention.\n- `generic`: Creates a semantically neutral container element with no inherent meaning.\n- `presentation`: Removes semantic meaning from an element while preserving its visual appearance.\n- `none`: Synonym for `presentation`, removes semantic meaning while keeping visual styling.",
- "isPublicDocs": true
- },
- "BackgroundColorKeyword": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "BackgroundColorKeyword",
- "value": "'transparent' | ColorKeyword",
- "description": "Defines the background color intensity or emphasis level for UI elements.\n\n- `transparent`: No background, allowing the underlying surface to show through.\n- `ColorKeyword`: Applies color intensity levels (subdued, base, strong) to create spatial emphasis and containment.",
- "isPublicDocs": true
- },
- "ColorKeyword": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "ColorKeyword",
- "value": "'subdued' | 'base' | 'strong'",
- "description": "Defines the color intensity or emphasis level for text and UI elements.\n\n- `subdued`: Deemphasized color for secondary text, supporting labels, and less critical interface elements.\n- `base`: Primary color for body text, standard UI elements, and general content with good readability.\n- `strong`: Emphasized color for headings, key labels, and interactive elements that need prominence.",
- "isPublicDocs": true
- },
- "SizeUnitsOrAuto": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "SizeUnitsOrAuto",
- "value": "SizeUnits | 'auto'",
- "description": "Represents size values that can also be set to `auto` for automatic sizing.\n\n- `SizeUnits`: Specific size values in pixels, percentages, or zero for precise control.\n- `auto`: Automatically sizes based on content and layout constraints.",
- "isPublicDocs": true
- },
- "SizeUnits": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "SizeUnits",
- "value": "`${number}px` | `${number}%` | `0`",
- "description": "Represents size values in pixels, percentages, or zero.\n\n- `${number}px`: Absolute size in pixels for fixed dimensions (such as `100px`, `24px`).\n- `${number}%`: Relative size as a percentage of the parent container (such as `50%`, `100%`).\n- `0`: Zero size, equivalent to no dimension.",
- "isPublicDocs": true
- },
- "SizeUnitsOrNone": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "SizeUnitsOrNone",
- "value": "SizeUnits | 'none'",
- "description": "Represents size values that can also be set to `none` to remove the size constraint.\n\n- `SizeUnits`: Specific size values in pixels, percentages, or zero for precise control.\n- `none`: No size constraint, allowing unlimited growth.",
- "isPublicDocs": true
- },
- "MaybeResponsive": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "MaybeResponsive",
- "value": "T | `@container${string}`",
- "description": "Makes a property responsive by allowing it to be set conditionally based on container query conditions. The value can be either a base value or a container query string.\n\n- `T`: Base value that applies in all conditions.\n- `@container${string}`: Container query string for conditional responsive styling based on container size.",
- "isPublicDocs": true
- },
- "MaybeAllValuesShorthandProperty": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "MaybeAllValuesShorthandProperty",
- "value": "T | `${T} ${T}` | `${T} ${T} ${T}` | `${T} ${T} ${T} ${T}`",
- "description": "Represents CSS shorthand properties that accept one to four values. Supports specifying values for all four sides: top, right, bottom, and left.\n\n- `T`: Single value that applies to all four sides.\n- `${T} ${T}`: Two values for block axis (top/bottom) and inline axis (left/right).\n- `${T} ${T} ${T}`: Three values for block-start (top), inline axis (left/right), and block-end (bottom).\n- `${T} ${T} ${T} ${T}`: Four values for block-start (top), inline-end (right), block-end (bottom), and inline-start (left).",
- "isPublicDocs": true
- },
- "PaddingKeyword": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "PaddingKeyword",
- "value": "SizeKeyword | 'none'",
- "description": "Defines the padding size for elements, using the standard size scale or `none` for no padding.\n\n- `SizeKeyword`: Standard padding sizes from the size scale for consistent spacing.\n- `none`: No padding.",
- "isPublicDocs": true
- },
- "SizeKeyword": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "SizeKeyword",
- "value": "'small-500' | 'small-400' | 'small-300' | 'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100' | 'large-200' | 'large-300' | 'large-400' | 'large-500'",
- "description": "Defines component sizes using a consistent scale from extra small to extra large.\n\n- `small-500` through `small-100`: Extra small to small sizes, progressively increasing.\n- `small`: Standard small size.\n- `base`: Default medium size that works well in most contexts.\n- `large`: Standard large size.\n- `large-100` through `large-500`: Large to extra large sizes, progressively increasing.",
- "isPublicDocs": true
- },
- "MaybeTwoValuesShorthandProperty": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "MaybeTwoValuesShorthandProperty",
- "value": "T | `${T} ${T}`",
- "description": "Represents CSS shorthand properties that accept one or two values. Supports specifying the same value for both dimensions or different values.\n\n- `T`: Single value that applies to both dimensions.\n- `${T} ${T}`: Two values for block axis (vertical) and inline axis (horizontal).",
- "isPublicDocs": true
- },
- "BorderShorthand": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "BorderShorthand",
- "value": "BorderSizeKeyword | `${BorderSizeKeyword} ${ColorKeyword}` | `${BorderSizeKeyword} ${ColorKeyword} ${BorderStyleKeyword}`",
- "description": "Represents a shorthand for defining a border. It can be a combination of size, optionally followed by color, optionally followed by style.",
- "isPublicDocs": true
- },
- "BorderSizeKeyword": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "BorderSizeKeyword",
- "value": "SizeKeyword | 'none'",
- "description": "Defines the width of borders, using the standard size scale or `none` for no border.\n\n- `SizeKeyword`: Standard border widths from the size scale for consistent thickness.\n- `none`: No border width (removes the border).",
- "isPublicDocs": true
- },
- "BorderStyleKeyword": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "BorderStyleKeyword",
- "value": "'none' | 'solid' | 'dashed' | 'dotted' | 'auto'",
- "description": "Defines the visual style of borders.\n\n- `none`: No border is displayed.\n- `solid`: A single solid line.\n- `dashed`: A series of short dashes.\n- `dotted`: A series of dots.\n- `auto`: Automatically determined based on context.",
- "isPublicDocs": true
- },
- "BoxBorderStyles": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "BoxBorderStyles",
- "value": "'auto' | 'none' | 'solid' | 'dashed'",
- "description": "Represents the subset of border style values supported by the box component.\n\n- `auto`: Default border style determined by the system.\n- `none`: No border style (removes the border).\n- `solid`: Continuous line border.\n- `dashed`: Border made up of dashes.",
- "isPublicDocs": true
- },
- "BoxBorderRadii": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "BoxBorderRadii",
- "value": "'small' | 'small-200' | 'small-100' | 'base' | 'large' | 'large-100' | 'large-200' | 'none'",
- "description": "Represents the subset of border radius values supported by the component.\n\n- `small-200`: Extra small radius for subtle rounding.\n- `small-100`: Small radius for minimal corner rounding.\n- `small`: Standard small radius.\n- `base`: Medium radius for moderate corner rounding.\n- `large`: Standard large radius for pronounced rounding.\n- `large-100`: Large radius for more prominent corner rounding.\n- `large-200`: Extra large radius for maximum rounding.\n- `none`: No border radius (sharp corners).",
- "isPublicDocs": true
- },
- "Button": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Button",
- "description": "Configure the following properties on the button component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the button is disabled, preventing it from being clicked or receiving focus.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "icon",
- "value": "\"\" | \"replace\" | \"search\" | \"split\" | \"link\" | \"edit\" | \"info\" | \"incomplete\" | \"complete\" | \"product\" | \"variant\" | \"collection\" | \"select\" | \"color\" | \"money\" | \"order\" | \"code\" | \"adjust\" | \"affiliate\" | \"airplane\" | \"alert-bubble\" | \"alert-circle\" | \"alert-diamond\" | \"alert-location\" | \"alert-octagon\" | \"alert-octagon-filled\" | \"alert-triangle\" | \"alert-triangle-filled\" | \"app-extension\" | \"apps\" | \"archive\" | \"arrow-down\" | \"arrow-down-circle\" | \"arrow-down-right\" | \"arrow-left\" | \"arrow-left-circle\" | \"arrow-right\" | \"arrow-right-circle\" | \"arrow-up\" | \"arrow-up-circle\" | \"arrow-up-right\" | \"arrows-in-horizontal\" | \"arrows-out-horizontal\" | \"asterisk\" | \"attachment\" | \"automation\" | \"backspace\" | \"bag\" | \"bank\" | \"barcode\" | \"battery-low\" | \"bill\" | \"blank\" | \"blog\" | \"bolt\" | \"bolt-filled\" | \"book\" | \"book-open\" | \"bug\" | \"bullet\" | \"business-entity\" | \"button\" | \"button-press\" | \"calculator\" | \"calendar\" | \"calendar-check\" | \"calendar-compare\" | \"calendar-list\" | \"calendar-time\" | \"camera\" | \"camera-flip\" | \"caret-down\" | \"caret-left\" | \"caret-right\" | \"caret-up\" | \"cart\" | \"cart-abandoned\" | \"cart-discount\" | \"cart-down\" | \"cart-filled\" | \"cart-sale\" | \"cart-send\" | \"cart-up\" | \"cash-dollar\" | \"cash-euro\" | \"cash-pound\" | \"cash-rupee\" | \"cash-yen\" | \"catalog-product\" | \"categories\" | \"channels\" | \"chart-cohort\" | \"chart-donut\" | \"chart-funnel\" | \"chart-histogram-first\" | \"chart-histogram-first-last\" | \"chart-histogram-flat\" | \"chart-histogram-full\" | \"chart-histogram-growth\" | \"chart-histogram-last\" | \"chart-histogram-second-last\" | \"chart-horizontal\" | \"chart-line\" | \"chart-popular\" | \"chart-stacked\" | \"chart-vertical\" | \"chat\" | \"chat-new\" | \"chat-referral\" | \"check\" | \"check-circle\" | \"check-circle-filled\" | \"checkbox\" | \"chevron-down\" | \"chevron-down-circle\" | \"chevron-left\" | \"chevron-left-circle\" | \"chevron-right\" | \"chevron-right-circle\" | \"chevron-up\" | \"chevron-up-circle\" | \"circle\" | \"circle-dashed\" | \"clipboard\" | \"clipboard-check\" | \"clipboard-checklist\" | \"clock\" | \"clock-list\" | \"clock-revert\" | \"code-add\" | \"collection-featured\" | \"collection-list\" | \"collection-reference\" | \"color-none\" | \"compass\" | \"compose\" | \"confetti\" | \"connect\" | \"content\" | \"contract\" | \"corner-pill\" | \"corner-round\" | \"corner-square\" | \"credit-card\" | \"credit-card-cancel\" | \"credit-card-percent\" | \"credit-card-reader\" | \"credit-card-reader-chip\" | \"credit-card-reader-tap\" | \"credit-card-secure\" | \"credit-card-tap-chip\" | \"crop\" | \"currency-convert\" | \"cursor\" | \"cursor-banner\" | \"cursor-option\" | \"data-presentation\" | \"data-table\" | \"database\" | \"database-add\" | \"database-connect\" | \"delete\" | \"delivered\" | \"delivery\" | \"desktop\" | \"disabled\" | \"disabled-filled\" | \"discount\" | \"discount-add\" | \"discount-automatic\" | \"discount-code\" | \"discount-remove\" | \"dns-settings\" | \"dock-floating\" | \"dock-side\" | \"domain\" | \"domain-landing-page\" | \"domain-new\" | \"domain-redirect\" | \"download\" | \"drag-drop\" | \"drag-handle\" | \"drawer\" | \"duplicate\" | \"email\" | \"email-follow-up\" | \"email-newsletter\" | \"empty\" | \"enabled\" | \"enter\" | \"envelope\" | \"envelope-soft-pack\" | \"eraser\" | \"exchange\" | \"exit\" | \"export\" | \"external\" | \"eye-check-mark\" | \"eye-dropper\" | \"eye-dropper-list\" | \"eye-first\" | \"eyeglasses\" | \"fav\" | \"favicon\" | \"file\" | \"file-list\" | \"filter\" | \"filter-active\" | \"flag\" | \"flip-horizontal\" | \"flip-vertical\" | \"flower\" | \"folder\" | \"folder-add\" | \"folder-down\" | \"folder-remove\" | \"folder-up\" | \"food\" | \"foreground\" | \"forklift\" | \"forms\" | \"games\" | \"gauge\" | \"geolocation\" | \"gift\" | \"gift-card\" | \"git-branch\" | \"git-commit\" | \"git-repository\" | \"globe\" | \"globe-asia\" | \"globe-europe\" | \"globe-lines\" | \"globe-list\" | \"graduation-hat\" | \"grid\" | \"hashtag\" | \"hashtag-decimal\" | \"hashtag-list\" | \"heart\" | \"hide\" | \"hide-filled\" | \"home\" | \"home-filled\" | \"icons\" | \"identity-card\" | \"image\" | \"image-add\" | \"image-alt\" | \"image-explore\" | \"image-magic\" | \"image-none\" | \"image-with-text-overlay\" | \"images\" | \"import\" | \"in-progress\" | \"incentive\" | \"incoming\" | \"info-filled\" | \"inheritance\" | \"inventory\" | \"inventory-edit\" | \"inventory-list\" | \"inventory-transfer\" | \"inventory-updated\" | \"iq\" | \"key\" | \"keyboard\" | \"keyboard-filled\" | \"keyboard-hide\" | \"keypad\" | \"label-printer\" | \"language\" | \"language-translate\" | \"layout-block\" | \"layout-buy-button\" | \"layout-buy-button-horizontal\" | \"layout-buy-button-vertical\" | \"layout-column-1\" | \"layout-columns-2\" | \"layout-columns-3\" | \"layout-footer\" | \"layout-header\" | \"layout-logo-block\" | \"layout-popup\" | \"layout-rows-2\" | \"layout-section\" | \"layout-sidebar-left\" | \"layout-sidebar-right\" | \"lightbulb\" | \"link-list\" | \"list-bulleted\" | \"list-bulleted-filled\" | \"list-numbered\" | \"live\" | \"live-critical\" | \"live-none\" | \"location\" | \"location-none\" | \"lock\" | \"map\" | \"markets\" | \"markets-euro\" | \"markets-rupee\" | \"markets-yen\" | \"maximize\" | \"measurement-size\" | \"measurement-size-list\" | \"measurement-volume\" | \"measurement-volume-list\" | \"measurement-weight\" | \"measurement-weight-list\" | \"media-receiver\" | \"megaphone\" | \"mention\" | \"menu\" | \"menu-filled\" | \"menu-horizontal\" | \"menu-vertical\" | \"merge\" | \"metafields\" | \"metaobject\" | \"metaobject-list\" | \"metaobject-reference\" | \"microphone\" | \"microphone-muted\" | \"minimize\" | \"minus\" | \"minus-circle\" | \"mobile\" | \"money-none\" | \"money-split\" | \"moon\" | \"nature\" | \"note\" | \"note-add\" | \"notification\" | \"number-one\" | \"order-batches\" | \"order-draft\" | \"order-filled\" | \"order-first\" | \"order-fulfilled\" | \"order-repeat\" | \"order-unfulfilled\" | \"orders-status\" | \"organization\" | \"outdent\" | \"outgoing\" | \"package\" | \"package-cancel\" | \"package-fulfilled\" | \"package-on-hold\" | \"package-reassign\" | \"package-returned\" | \"page\" | \"page-add\" | \"page-attachment\" | \"page-clock\" | \"page-down\" | \"page-heart\" | \"page-list\" | \"page-reference\" | \"page-remove\" | \"page-report\" | \"page-up\" | \"pagination-end\" | \"pagination-start\" | \"paint-brush-flat\" | \"paint-brush-round\" | \"paper-check\" | \"partially-complete\" | \"passkey\" | \"paste\" | \"pause-circle\" | \"payment\" | \"payment-capture\" | \"payout\" | \"payout-dollar\" | \"payout-euro\" | \"payout-pound\" | \"payout-rupee\" | \"payout-yen\" | \"person\" | \"person-add\" | \"person-exit\" | \"person-filled\" | \"person-list\" | \"person-lock\" | \"person-remove\" | \"person-segment\" | \"personalized-text\" | \"phablet\" | \"phone\" | \"phone-down\" | \"phone-down-filled\" | \"phone-in\" | \"phone-out\" | \"pin\" | \"pin-remove\" | \"plan\" | \"play\" | \"play-circle\" | \"plus\" | \"plus-circle\" | \"plus-circle-down\" | \"plus-circle-filled\" | \"plus-circle-up\" | \"point-of-sale\" | \"point-of-sale-register\" | \"price-list\" | \"print\" | \"product-add\" | \"product-cost\" | \"product-filled\" | \"product-list\" | \"product-reference\" | \"product-remove\" | \"product-return\" | \"product-unavailable\" | \"profile\" | \"profile-filled\" | \"question-circle\" | \"question-circle-filled\" | \"radio-control\" | \"receipt\" | \"receipt-dollar\" | \"receipt-euro\" | \"receipt-folded\" | \"receipt-paid\" | \"receipt-pound\" | \"receipt-refund\" | \"receipt-rupee\" | \"receipt-yen\" | \"receivables\" | \"redo\" | \"referral-code\" | \"refresh\" | \"remove-background\" | \"reorder\" | \"replay\" | \"reset\" | \"return\" | \"reward\" | \"rocket\" | \"rotate-left\" | \"rotate-right\" | \"sandbox\" | \"save\" | \"savings\" | \"scan-qr-code\" | \"search-add\" | \"search-list\" | \"search-recent\" | \"search-resource\" | \"send\" | \"settings\" | \"share\" | \"shield-check-mark\" | \"shield-none\" | \"shield-pending\" | \"shield-person\" | \"shipping-label\" | \"shipping-label-cancel\" | \"shopcodes\" | \"slideshow\" | \"smiley-happy\" | \"smiley-joy\" | \"smiley-neutral\" | \"smiley-sad\" | \"social-ad\" | \"social-post\" | \"sort\" | \"sort-ascending\" | \"sort-descending\" | \"sound\" | \"sports\" | \"star\" | \"star-circle\" | \"star-filled\" | \"star-half\" | \"star-list\" | \"status\" | \"status-active\" | \"stop-circle\" | \"store\" | \"store-import\" | \"store-managed\" | \"store-online\" | \"sun\" | \"table\" | \"table-masonry\" | \"tablet\" | \"target\" | \"tax\" | \"team\" | \"text\" | \"text-align-center\" | \"text-align-left\" | \"text-align-right\" | \"text-block\" | \"text-bold\" | \"text-color\" | \"text-font\" | \"text-font-list\" | \"text-grammar\" | \"text-in-columns\" | \"text-in-rows\" | \"text-indent\" | \"text-indent-remove\" | \"text-italic\" | \"text-quote\" | \"text-title\" | \"text-underline\" | \"text-with-image\" | \"theme\" | \"theme-edit\" | \"theme-store\" | \"theme-template\" | \"three-d-environment\" | \"thumbs-down\" | \"thumbs-up\" | \"tip-jar\" | \"toggle-off\" | \"toggle-on\" | \"transaction\" | \"transaction-fee-add\" | \"transaction-fee-dollar\" | \"transaction-fee-euro\" | \"transaction-fee-pound\" | \"transaction-fee-rupee\" | \"transaction-fee-yen\" | \"transfer\" | \"transfer-in\" | \"transfer-internal\" | \"transfer-out\" | \"truck\" | \"undo\" | \"unknown-device\" | \"unlock\" | \"upload\" | \"variant-list\" | \"video\" | \"video-list\" | \"view\" | \"viewport-narrow\" | \"viewport-short\" | \"viewport-tall\" | \"viewport-wide\" | \"wallet\" | \"wand\" | \"watch\" | \"wifi\" | \"work\" | \"work-list\" | \"wrench\" | \"x\" | \"x-circle\" | \"x-circle-filled\"",
- "description": "An icon displayed inside the button, typically positioned before the button text. Use icons to help users quickly identify the button's action or to improve scannability. Accepts any icon name from the icon library or a custom string identifier."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "loading",
- "value": "boolean",
- "description": "Whether to replace the button content with a loading indicator while a background action is being performed.\n\nThis also disables the button component.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "variant",
- "value": "\"auto\" | \"primary\" | \"secondary\" | \"tertiary\"",
- "description": "The visual appearance of the button component.\n\n- `auto`: The variant is automatically determined by the button component's context.\n- `primary`: High emphasis button for the primary action on the page. Should be used sparingly.\n- `secondary`: Medium emphasis button for secondary actions.\n- `tertiary`: Low emphasis button for less important actions.",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "tone",
- "value": "\"critical\" | \"auto\" | \"neutral\"",
- "description": "The semantic meaning and color treatment of the component.\n\n- `critical`: Urgent problems or destructive actions.\n- `auto`: Automatically determined based on context.\n- `neutral`: General information without specific intent.",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "target",
- "value": "\"auto\" | AnyString | \"_blank\" | \"_self\" | \"_parent\" | \"_top\"",
- "description": "The browsing context where the linked URL should be displayed.\n\n- `auto`: The target is automatically determined based on the origin of the URL.\n- `_blank`: Opens the URL in a new window or tab.\n- `_self`: Opens the URL in the same browsing context as the current one.\n- `_parent`: Opens the URL in the parent browsing context of the current one. If there is no parent, behaves as `_self`.\n- `_top`: Opens the URL in the topmost browsing context (the highest ancestor of the current one). If there is no ancestor, behaves as `_self`.",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "href",
- "value": "string",
- "description": "The URL to navigate to when clicked. The `click` event fires first, then navigation occurs. If `commandFor` is also set, the command executes instead of navigation."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "download",
- "value": "string",
- "description": "Prompts the browser to download the linked URL rather than navigate to it. When set, the value specifies the suggested filename for the downloaded file.\n\nThe filename suggestion is only respected for same-origin URLs, `blob:`, and `data:` schemes. Cross-origin URLs can still trigger downloads, but browsers might ignore the suggested filename.\n\nLearn more about the [download attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download)."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "type",
- "value": "\"button\" | \"reset\" | \"submit\"",
- "description": "The behavior of the button component.\n\n- `button`: Used to indicate the component acts as a button, meaning it has no default action.\n- `reset`: Used to indicate the component acts as a reset button, meaning it resets the closest form (returning fields to their default values).\n- `submit`: Used to indicate the component acts as a submit button, meaning it submits the closest form.\n\nThis property is ignored if the component supports `href` or `commandFor`/`command` and one of them is set.",
- "defaultValue": "'button'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityLabel",
- "value": "string",
- "description": "A label that describes the purpose or content of the component for assistive technologies like screen readers. Use this to provide additional context when the visible content alone doesn't clearly convey the component's purpose."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertySignature",
- "name": "command",
- "value": "'--auto' | '--show' | '--hide' | '--toggle'",
- "description": "The action that [command](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#command) should take when this component is activated.\n\n- `--auto`: A default action for the target component.\n- `--show`: Shows the target component.\n- `--hide`: Hides the target component.\n- `--toggle`: Toggles the visibility of the target component.",
- "defaultValue": "'--auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertySignature",
- "name": "commandFor",
- "value": "string",
- "description": "The component that [commandFor](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#commandfor) should act on when this component is activated."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertySignature",
- "name": "interestFor",
- "value": "string",
- "description": "The ID of the component to show when users hover over or focus on this component. Use this to connect interactive components to popovers or tooltips that provide additional context or information."
- }
- ],
- "value": "declare class Button extends Button_base implements ButtonProps {\n accessor disabled: ButtonProps['disabled'];\n accessor icon: ButtonProps['icon'];\n accessor loading: ButtonProps['loading'];\n accessor variant: ButtonProps['variant'];\n accessor tone: ButtonProps['tone'];\n accessor target: ButtonProps['target'];\n accessor href: ButtonProps['href'];\n accessor download: ButtonProps['download'];\n accessor type: ButtonProps['type'];\n accessor accessibilityLabel: ButtonProps['accessibilityLabel'];\n constructor();\n}"
- },
- "AnyString": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "AnyString",
- "value": "string & {}",
- "description": "A utility type that enables autocomplete for specific string literals while still accepting any string value. By intersecting `string` with an empty object type, this prevents TypeScript from widening literal types, preserving IDE suggestions for known values while maintaining flexibility for custom strings.",
- "isPublicDocs": true
- },
- "ButtonGroup": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "ButtonGroup",
- "description": "Configure the following properties on the button group component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "gap",
- "value": "\"base\" | \"none\"",
- "description": "The spacing between buttons in the group.\n\n- `base`: Standard spacing that provides clear visual separation between buttons.\n- `none`: No spacing, creating a connected button group.",
- "defaultValue": "'base'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityLabel",
- "value": "string",
- "description": "A label that describes the purpose or content of the component for assistive technologies like screen readers. Use this to provide additional context when the visible content alone doesn't clearly convey the component's purpose."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class ButtonGroup\n extends PreactCustomElement\n implements ButtonGroupProps\n{\n accessor gap: ButtonGroupProps['gap'];\n accessor accessibilityLabel: ButtonGroupProps['accessibilityLabel'];\n constructor();\n}"
- },
- "Checkbox": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Checkbox",
- "description": "Configure the following properties on the checkbox component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "indeterminate",
- "value": "boolean",
- "description": "Whether the checkbox displays in an indeterminate state (neither checked nor unchecked), typically used to indicate partial selection in hierarchical lists.\n\nThis visual state takes priority over the `checked` prop in appearance only. The form submission value is still determined by the `checked` prop.\n\nIf `indeterminate` has not been explicitly set and hasn't been modified by user interaction, it returns the value of `defaultIndeterminate`."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultIndeterminate",
- "value": "boolean",
- "description": "The initial indeterminate state for uncontrolled components. Use this when you want the checkbox to start in an indeterminate state but don't need to control it afterward.\n\nThis value applies until `indeterminate` is explicitly set or the user changes the checkbox state by clicking.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "checked",
- "value": "boolean",
- "description": "Whether the control is currently checked. Use this for controlled components where you manage the checked state.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "value",
- "value": "string",
- "description": "The value used in form data when the checkbox is checked."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultChecked",
- "value": "boolean",
- "description": "The initial checked state for uncontrolled components. Use this when you want the control to start checked but don't need to control its state afterward.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityLabel",
- "value": "string",
- "description": "A label that describes the purpose or content of the component for assistive technologies like screen readers. Use this to provide additional context when the visible content alone doesn't clearly convey the component's purpose."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "details",
- "value": "string",
- "description": "Supplementary text displayed below the checkbox to provide additional context, instructions, or help. Use this to explain what checking the box means or provide guidance to users. This text is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "error",
- "value": "string",
- "description": "An error message displayed below the checkbox to indicate validation problems. When set, the checkbox is styled with error indicators and the message is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "label",
- "value": "string",
- "description": "The text label displayed next to the checkbox that describes what the checkbox controls. Clicking the label will also toggle the checkbox state."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "required",
- "value": "boolean",
- "description": "Whether the field needs a value. This requirement adds semantic value to the field, but it will not cause an error to appear automatically. If you want to present an error when this field is empty, you can do so with the `error` property.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "formResetCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the field is disabled, preventing any user interaction.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "id",
- "value": "string",
- "description": "A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "name",
- "value": "string",
- "description": "The name attribute for the field, used to identify the field's value when the form is submitted. Must be unique within the nearest containing form."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@internals$4@11381",
- "value": "ElementInternals",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Checkbox extends PreactCheckboxElement implements CheckboxProps {\n get indeterminate(): CheckboxProps['indeterminate'];\n set indeterminate(indeterminate: CheckboxProps['indeterminate']);\n accessor defaultIndeterminate: CheckboxProps['defaultIndeterminate'];\n constructor();\n}"
- },
- "Chip": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Chip",
- "description": "Configure the following properties on the chip component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "color",
- "value": "ColorKeyword",
- "description": "The color emphasis level that controls visual intensity.",
- "defaultValue": "'base'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityLabel",
- "value": "string",
- "description": "A label that describes the purpose or content of the component for assistive technologies like screen readers. Use this to provide additional context when the visible content alone doesn't clearly convey the component's purpose."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Chip extends PreactCustomElement implements ChipProps {\n accessor color: ChipProps['color'];\n accessor accessibilityLabel: ChipProps['accessibilityLabel'];\n constructor();\n}"
- },
- "Choice": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Choice",
- "description": "The choice component creates individual selectable options within a choice list. Use choice to define each option that merchants can select, supporting both single selection (radio buttons) and multiple selection (checkboxes) modes.\n\nChoice components support labels, help text, and custom content through slots, providing flexible option presentation within choice lists.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the checkbox is disabled, preventing user interaction. Disabled checkboxes appear dimmed and their values aren't submitted with forms.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "selected",
- "value": "boolean",
- "description": "Whether the option is currently selected. Use this for controlled components where you manage the selection state.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "value",
- "value": "string",
- "description": "The value submitted with the form when this checkbox is checked. If not specified, the default value is \"on\"."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityLabel",
- "value": "string",
- "description": "A label that describes the purpose or content of the component for assistive technologies like screen readers. Use this to provide additional context when the visible content alone doesn't clearly convey the component's purpose."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultSelected",
- "value": "boolean",
- "description": "The initial selected state for uncontrolled components. Use this when you want the option to start selected but don't need to control its state afterward.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Choice extends PreactCustomElement implements ChoiceProps {\n accessor disabled: ChoiceProps['disabled'];\n get selected(): boolean;\n set selected(selected: ChoiceProps['selected']);\n accessor value: ChoiceProps['value'];\n accessor accessibilityLabel: ChoiceProps['accessibilityLabel'];\n accessor defaultSelected: ChoiceProps['defaultSelected'];\n constructor();\n /** @private */\n connectedCallback(): void;\n /** @private */\n disconnectedCallback(): void;\n}"
- },
- "ChoiceList": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "ChoiceList",
- "description": "Configure the following properties on the choice list component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the field is disabled, preventing any user interaction. When `true`, the `disabled` property on any child choices is ignored.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "name",
- "value": "string",
- "description": "The name attribute for the field, used to identify the field's value when the form is submitted. Must be unique within the nearest containing form."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "error",
- "value": "string",
- "description": "An error message displayed below the checkbox to indicate validation problems. When set, the checkbox is styled with error indicators and the message is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "details",
- "value": "string",
- "description": "Supplementary text displayed below the checkbox to provide additional context, instructions, or help. Use this to explain what checking the box means or provide guidance to users. This text is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "multiple",
- "value": "boolean",
- "description": "Whether multiple choices can be selected.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "label",
- "value": "string",
- "description": "The text displayed as the field label, which identifies the purpose of the field to users. This label is associated with the field for accessibility and helps users understand what information to provide."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "labelAccessibilityVisibility",
- "value": "\"visible\" | \"exclusive\"",
- "description": "Controls whether the label is visible to all users or only to screen readers.\n\n- `visible`: The label is shown to everyone (default).\n- `exclusive`: The label is visually hidden but still announced by screen readers.\n\nUse `exclusive` when the surrounding context makes the label redundant visually, but screen reader users still need it for clarity.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "values",
- "value": "string[]",
- "description": "An array of `value` attributes for the currently selected options. When provided, this property automatically sets the `selected` state on child option components that have matching `value` attributes. Options with values included in this array will be marked as selected, while others will be unselected."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "formResetCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@internals$3@11434",
- "value": "ElementInternals",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class ChoiceList extends BaseClass$3 implements ChoiceListProps {\n accessor disabled: ChoiceListProps['disabled'];\n accessor name: ChoiceListProps['name'];\n accessor error: ChoiceListProps['error'];\n accessor details: ChoiceListProps['details'];\n accessor multiple: ChoiceListProps['multiple'];\n accessor label: ChoiceListProps['label'];\n accessor labelAccessibilityVisibility: ChoiceListProps['labelAccessibilityVisibility'];\n get values(): ChoiceListProps['values'];\n set values(values: ChoiceListProps['values']);\n /** @private */\n formResetCallback(): void;\n constructor();\n /** @private */\n connectedCallback(): void;\n /** @private */\n disconnectedCallback(): void;\n}"
- },
- "Clickable": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Clickable",
- "description": "Configure the following properties on the clickable component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the component is disabled, preventing clicks and focus. When disabled, the `click` event won't fire and click events from child elements stop propagating immediately. Interactive child elements can still receive focus and be interacted with. This doesn't apply visual styling by default. You shouldapply disabled styling as needed."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "loading",
- "value": "boolean",
- "description": "Whether the component is in a loading state, which indicates to assistive technology that an action is in progress and prevents interaction."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "target",
- "value": "\"auto\" | AnyString | \"_blank\" | \"_self\" | \"_parent\" | \"_top\"",
- "description": "The browsing context where the linked URL should be displayed.\n\n- `auto`: The target is automatically determined based on the origin of the URL.\n- `_blank`: Opens the URL in a new window or tab.\n- `_self`: Opens the URL in the same browsing context as the current one.\n- `_parent`: Opens the URL in the parent browsing context of the current one. If there is no parent, behaves as `_self`.\n- `_top`: Opens the URL in the topmost browsing context (the highest ancestor of the current one). If there is no ancestor, behaves as `_self`.",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "href",
- "value": "string",
- "description": "The URL to navigate to when clicked. The `click` event fires first, then navigation occurs. If `commandFor` is also set, the command executes instead of navigation."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "download",
- "value": "string",
- "description": "Prompts the browser to download the linked URL rather than navigate to it. When set, the value specifies the suggested filename for the downloaded file.\n\nThe filename suggestion is only respected for same-origin URLs, `blob:`, and `data:` schemes. Cross-origin URLs can still trigger downloads, but browsers might ignore the suggested filename.\n\nLearn more about the [download attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download)."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "type",
- "value": "\"button\" | \"reset\" | \"submit\"",
- "description": "The behavior of the button component.\n\n- `button`: Used to indicate the component acts as a button, meaning it has no default action.\n- `reset`: Used to indicate the component acts as a reset button, meaning it resets the closest form (returning fields to their default values).\n- `submit`: Used to indicate the component acts as a submit button, meaning it submits the closest form.\n\nThis property is ignored if the component supports `href` or `commandFor`/`command` and one of them is set.",
- "defaultValue": "'button'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityRole",
- "value": "AccessibilityRole",
- "description": "The semantic meaning of the component’s content. When set, the role will be used by assistive technologies to help users navigate the page.",
- "defaultValue": "'generic'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "background",
- "value": "BackgroundColorKeyword",
- "description": "The background color of the component.",
- "defaultValue": "'transparent'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "blockSize",
- "value": "SizeUnitsOrAuto",
- "description": "The vertical size of the element in standard layouts (height in left-to-right or right-to-left writing modes).\n\nBlock size adjusts based on the writing direction: in horizontal layouts, it controls the height; in vertical layouts, it controls the width. This ensures consistent behavior across different text directions.\n\nLearn more about [block-size](https://developer.mozilla.org/en-US/docs/Web/CSS/block-size).",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "minBlockSize",
- "value": "SizeUnits",
- "description": "The minimum height in horizontal writing modes, or minimum width in vertical writing modes. Prevents the element from shrinking below this size.\n\nLearn more about [min-block-size](https://developer.mozilla.org/en-US/docs/Web/CSS/min-block-size).",
- "defaultValue": "'0'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "maxBlockSize",
- "value": "SizeUnitsOrNone",
- "description": "The maximum height in horizontal writing modes, or maximum width in vertical writing modes. Prevents the element from growing beyond this size.\n\nLearn more about [max-block-size](https://developer.mozilla.org/en-US/docs/Web/CSS/max-block-size).",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "inlineSize",
- "value": "SizeUnitsOrAuto",
- "description": "The width in horizontal writing modes, or height in vertical writing modes. Use this for flow-relative sizing that adapts to text direction. Learn more about [inline-size](https://developer.mozilla.org/en-US/docs/Web/CSS/inline-size).",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "minInlineSize",
- "value": "SizeUnits",
- "description": "The minimum width in horizontal writing modes, or minimum height in vertical writing modes. Prevents the element from shrinking below this size.\n\nLearn more about [min-inline-size](https://developer.mozilla.org/en-US/docs/Web/CSS/min-inline-size).",
- "defaultValue": "'0'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "maxInlineSize",
- "value": "SizeUnitsOrNone",
- "description": "The maximum width in horizontal writing modes, or maximum height in vertical writing modes. Prevents the element from growing beyond this size.\n\nLearn more about [max-inline-size](https://developer.mozilla.org/en-US/docs/Web/CSS/max-inline-size).",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "overflow",
- "value": "\"visible\" | \"hidden\"",
- "description": "The overflow behavior of the element.\n\n- `visible`: the content that extends beyond the element’s container is visible.\n- `hidden`: clips the content when it is larger than the element’s container. The element will not be scrollable and the users will not be able to access the clipped content by dragging or using a scroll wheel on a mouse.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "padding",
- "value": "MaybeResponsive>",
- "description": "The padding applied to all edges of the component.\n\nSupports [1-to-4-value syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#edges_of_a_box) using flow-relative values:\n- 1 value applies to all sides\n- 2 values apply to block (top/bottom) and inline (left/right)\n- 3 values apply to block-start (top), inline (left/right), and block-end (bottom)\n- 4 values apply to block-start (top), inline-end (right), block-end (bottom), and inline-start (left)\n\n**Examples:** `base`, `large none`, `base large-100 base small`\n\nUse `auto` to inherit padding from the nearest container with removed padding. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingBlock",
- "value": "MaybeResponsive<\"\" | MaybeTwoValuesShorthandProperty>",
- "description": "The block-direction padding (top and bottom in horizontal writing modes).\n\nAccepts a single value for both sides or two space-separated values for block-start and block-end.\n\n**Example:** `large none` applies `large` to the top and `none` to the bottom.\n\nOverrides the block value from `padding`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingBlockStart",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The block-start padding (top in horizontal writing modes).\n\nOverrides the block-start value from `paddingBlock`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingBlockEnd",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The block-end padding (bottom in horizontal writing modes).\n\nOverrides the block-end value from `paddingBlock`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingInline",
- "value": "MaybeResponsive<\"\" | MaybeTwoValuesShorthandProperty>",
- "description": "The inline-direction padding (left and right in horizontal writing modes).\n\nAccepts a single value for both sides or two space-separated values for inline-start and inline-end.\n\n**Example:** `large none` applies `large` to the left and `none` to the right.\n\nOverrides the inline value from `padding`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingInlineStart",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The inline-start padding (left in LTR writing modes, right in RTL).\n\nOverrides the inline-start value from `paddingInline`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingInlineEnd",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The inline-end padding (right in LTR writing modes, left in RTL).\n\nOverrides the inline-end value from `paddingInline`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "border",
- "value": "BorderShorthand",
- "description": "A border applied using shorthand syntax to specify width, color, and style in a single property.",
- "defaultValue": "'none' - equivalent to `none base auto`.",
- "examples": [
- {
- "title": "Example",
- "description": "",
- "tabs": [
- {
- "code": "// The following are equivalent:\n\n",
- "title": "Example"
- }
- ]
- }
- ]
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderWidth",
- "value": "\"\" | MaybeAllValuesShorthandProperty<\"small\" | \"small-100\" | \"base\" | \"large\" | \"large-100\" | \"none\">",
- "description": "The thickness of the border on all sides. When set, this overrides the width value specified in the `border` property.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderStyle",
- "value": "\"\" | MaybeAllValuesShorthandProperty",
- "description": "The visual style of the border on all sides, such as solid, dashed, or dotted. When set, this overrides the style value specified in the `border` property.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderColor",
- "value": "\"\" | ColorKeyword",
- "description": "The color of the border using the design system's color scale. When set, this overrides the color value specified in the `border` property.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderRadius",
- "value": "MaybeAllValuesShorthandProperty",
- "description": "The roundedness of the element's corners using the design system's radius scale.",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityLabel",
- "value": "string",
- "description": "A label that describes the purpose or content of the component for assistive technologies like screen readers. Use this to provide additional context when the visible content alone doesn't clearly convey the component's purpose."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityVisibility",
- "value": "\"visible\" | \"hidden\" | \"exclusive\"",
- "description": "The visibility mode of the element for both visual and assistive technology users.\n\n- `visible`: The element is visible to all users (both sighted users and screen readers).\n- `hidden`: The element is visually visible but hidden from screen readers. Use this for decorative elements that don't provide meaningful information.\n- `exclusive`: The element is visually hidden but announced by screen readers. Use this for screen-reader-only content like skip links or additional context.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "display",
- "value": "MaybeResponsive<\"auto\" | \"none\">",
- "description": "The outer [display](https://developer.mozilla.org/en-US/docs/Web/CSS/display) type of the component. The outer type sets a component's participation in [flow layout](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_flow_layout).\n\n- `auto` the component's initial value. The actual value depends on the component and context.\n- `none` hides the component from display and removes it from the accessibility tree, making it invisible to screen readers.",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertySignature",
- "name": "command",
- "value": "'--auto' | '--show' | '--hide' | '--toggle'",
- "description": "The action that [command](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#command) should take when this component is activated.\n\n- `--auto`: A default action for the target component.\n- `--show`: Shows the target component.\n- `--hide`: Hides the target component.\n- `--toggle`: Toggles the visibility of the target component.",
- "defaultValue": "'--auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertySignature",
- "name": "commandFor",
- "value": "string",
- "description": "The component that [commandFor](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#commandfor) should act on when this component is activated."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertySignature",
- "name": "interestFor",
- "value": "string",
- "description": "The ID of the component to show when users hover over or focus on this component. Use this to connect interactive components to popovers or tooltips that provide additional context or information."
- }
- ],
- "value": "declare class Clickable extends Clickable_base implements ClickableProps {\n accessor disabled: ClickableProps['disabled'];\n accessor loading: ClickableProps['loading'];\n accessor target: ClickableProps['target'];\n accessor href: ClickableProps['href'];\n accessor download: ClickableProps['download'];\n accessor type: ClickableProps['type'];\n constructor();\n}"
- },
- "ClickableChip": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "ClickableChip",
- "description": "Configure the following properties on the clickable chip component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "color",
- "value": "ColorKeyword",
- "description": "The color emphasis level that controls visual intensity.",
- "defaultValue": "'base'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityLabel",
- "value": "string",
- "description": "A label that describes the purpose or content of the component for assistive technologies like screen readers. Use this to provide additional context when the visible content alone doesn't clearly convey the component's purpose."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "removable",
- "value": "boolean",
- "description": "Whether the chip displays a remove button for dismissal. When clicked, the `remove` callback fires.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "hidden",
- "value": "boolean",
- "description": "Whether the chip is hidden from view. When using controlled component pattern with `removable` chips, update this property when the `remove` event fires. For non-removable chips, manually toggle this property to show or hide the chip.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the chip is disabled, preventing any user interaction.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "href",
- "value": "string",
- "description": "The URL to navigate to when clicked. The `click` event fires first, then navigation occurs. If `commandFor` is also set, the command executes instead of navigation."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertySignature",
- "name": "command",
- "value": "'--auto' | '--show' | '--hide' | '--toggle'",
- "description": "The action that [command](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#command) should take when this component is activated.\n\n- `--auto`: A default action for the target component.\n- `--show`: Shows the target component.\n- `--hide`: Hides the target component.\n- `--toggle`: Toggles the visibility of the target component.",
- "defaultValue": "'--auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertySignature",
- "name": "commandFor",
- "value": "string",
- "description": "The component that [commandFor](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#commandfor) should act on when this component is activated."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertySignature",
- "name": "interestFor",
- "value": "string",
- "description": "The ID of the component to show when users hover over or focus on this component. Use this to connect interactive components to popovers or tooltips that provide additional context or information."
- }
- ],
- "value": "declare class ClickableChip\n extends ClickableChip_base\n implements ClickableChipProps\n{\n accessor color: ClickableChipProps['color'];\n accessor accessibilityLabel: ClickableChipProps['accessibilityLabel'];\n accessor removable: ClickableChipProps['removable'];\n accessor hidden: ClickableChipProps['hidden'];\n accessor disabled: ClickableChipProps['disabled'];\n accessor href: ClickableChipProps['href'];\n constructor();\n}"
- },
- "ColorField": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "ColorField",
- "description": "Configure the following properties on the color field component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "alpha",
- "value": "boolean",
- "description": "Whether to enable alpha (transparency) channel selection in the color picker, allowing users to choose semi-transparent colors.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "value",
- "value": "string",
- "description": "The currently selected color value. Accepts multiple input formats:\n\n- Hex: `#RGB`, `#RRGGBB`, `#RRGGBBAA` (3, 6, or 8 digits)\n- RGB/RGBA: `rgb(255, 0, 0)` or `rgb(255 0 0)` (comma or space-separated)\n- HSL/HSLA: `hsl(0, 100%, 50%)` or `hsl(0 100% 50%)`\n\nReturns an empty string if the value is invalid. The `change` event always emits values in hex format."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "formResetCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setInternalValue",
- "value": "(value: string, normalize: boolean) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "autocomplete",
- "value": "\"on\" | \"off\"",
- "description": "Controls browser autofill behavior for the field.\n\nBasic values:\n- `on` - Enables autofill without specifying content type (default)\n- `off` - Disables autofill for sensitive data or one-time codes\n\nSpecific field values describe the expected data type. You can optionally prefix these with:\n- `section-${string}` - Scopes autofill to a specific form section (when multiple forms exist on the same page)\n- `shipping` or `billing` - Indicates whether the data is for shipping or billing purposes\n- Both section and group (for example, `section-primary shipping email`)\n\nProviding a specific autofill token helps browsers suggest more relevant saved data.\n\nLearn more about the set of [autocomplete values](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill-detail-tokens) supported in browsers.",
- "defaultValue": "'on' for everything else"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultValue",
- "value": "string",
- "description": "The initial value of the field when it first loads. Unlike `placeholder`, this is a real value that the user can edit and that gets submitted with the form. Once the user starts typing, their input replaces it. Changing this property after the field has loaded has no effect. To update the field value at any time, use `value` instead."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "details",
- "value": "string",
- "description": "Supplementary text displayed below the checkbox to provide additional context, instructions, or help. Use this to explain what checking the box means or provide guidance to users. This text is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "error",
- "value": "string",
- "description": "An error message displayed below the checkbox to indicate validation problems. When set, the checkbox is styled with error indicators and the message is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "label",
- "value": "string",
- "description": "The text displayed as the field label, which identifies the purpose of the field to users. This label is associated with the field for accessibility and helps users understand what information to provide."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "labelAccessibilityVisibility",
- "value": "\"visible\" | \"exclusive\"",
- "description": "Controls whether the label is visible to all users or only to screen readers.\n\n- `visible`: The label is shown to everyone (default).\n- `exclusive`: The label is visually hidden but still announced by screen readers.\n\nUse `exclusive` when the surrounding context makes the label redundant visually, but screen reader users still need it for clarity.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "placeholder",
- "value": "string",
- "description": "The placeholder text displayed in the field when it's empty, providing a hint about the expected input format or value."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "readOnly",
- "value": "boolean",
- "description": "Whether the field is read-only and can't be edited. Read-only fields remain focusable and their content is announced by screen readers.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "required",
- "value": "boolean",
- "description": "Whether the field requires a value before form submission. Displays a visual indicator and adds semantic meaning, but doesn't automatically validate or show errors. Use the `error` property to display validation messages.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "getAttribute",
- "value": "(qualifiedName: string) => string",
- "description": "Global keyboard event handlers for things like key bindings typically ignore keystrokes originating from within input elements. Unfortunately, these never account for a Custom Element being the input element.\n\nTo fix this, we spoof getAttribute & hasAttribute to make a PreactFieldElement appear as a contentEditable \"input\" when it contains a focused input element.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "hasAttribute",
- "value": "(qualifiedName: string) => boolean",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "isContentEditable",
- "value": "boolean",
- "description": "Whether the shadow tree contains a focused input (input, textarea, select, ).\n\nNote: this does _not_ return true for focussed non-field form elements like buttons.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the field is disabled, preventing any user interaction.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "id",
- "value": "string",
- "description": "A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "name",
- "value": "string",
- "description": "The name attribute for the field, used to identify the field's value when the form is submitted. Must be unique within the nearest containing form."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@internals$4@11381",
- "value": "ElementInternals",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class ColorField\n extends PreactFieldElement\n implements ColorFieldProps\n{\n accessor alpha: ColorFieldProps['alpha'];\n get value(): string;\n set value(value: string);\n /** @private */\n formResetCallback(): void;\n constructor();\n /** @private */\n setInternalValue(value: string, normalize: boolean): void;\n}"
- },
- "ColorPicker": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "ColorPicker",
- "description": "Configure the following properties on the color picker component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "alpha",
- "value": "boolean",
- "description": "Whether to enable alpha (transparency) channel selection in the color picker, allowing users to choose semi-transparent colors.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "name",
- "value": "string",
- "description": "The name attribute for the field, used to identify the field's value when the form is submitted. Must be unique within the nearest containing form."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultValue",
- "value": "string",
- "description": "The initial color value when the field first loads. Unlike `placeholder`, this is a real value that the user can edit and that gets submitted with the form. Once the user starts interacting, their input replaces it. Changing this property after the field has loaded has no effect. To update the field value at any time, use `value` instead."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "value",
- "value": "string",
- "description": "The currently selected color value. Accepts multiple input formats:\n\n- Hex: `#RGB`, `#RRGGBB`, `#RRGGBBAA` (3, 6, or 8 digits)\n- RGB/RGBA: `rgb(255, 0, 0)` or `rgb(255 0 0)` (comma or space-separated)\n- HSL/HSLA: `hsl(0, 100%, 50%)` or `hsl(0 100% 50%)`\n\nReturns an empty string if the value is invalid. The `change` event always emits values in hex format."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "formResetCallback",
- "value": "() => void",
- "description": "A callback that fires when the containing form is reset (using the form's `reset()` method or a reset button). When triggered, the component's `value` reverts to its `defaultValue`."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@internals$2@11535",
- "value": "ElementInternals",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class ColorPicker extends BaseClass$2 implements ColorPickerProps {\n accessor alpha: boolean;\n accessor name: string;\n accessor defaultValue: string;\n get value(): string;\n set value(value: string);\n /**\n * A callback that fires when the containing form is reset (using the form's `reset()` method or a reset button). When triggered, the component's `value` reverts to its `defaultValue`.\n */\n formResetCallback(): void;\n constructor();\n}"
- },
- "DateField": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "DateField",
- "description": "Configure the following properties on the date field component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "allow",
- "value": "string",
- "description": "Specifies which dates can be selected as a comma-separated list. An empty string (default) allows all dates.\n\n**Formats:**\n- `YYYY-MM-DD`: Single date\n- `YYYY-MM`: Whole month\n- `YYYY`: Whole year\n- `start--end`: Date range (inclusive, unbounded if start/end omitted)\n\n**Examples:**\n- `2024-02--2025`: February 2024 through end of 2025\n- `2024-05-09, 2024-05-11`: Only May 9th and 11th, 2024",
- "defaultValue": "\"\""
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disallow",
- "value": "string",
- "description": "Specifies which dates can't be selected as a comma-separated list. These dates are excluded from those specified in `allow`. An empty string (default) has no effect.\n\n**Formats:**\n- `YYYY-MM-DD`: Single date\n- `YYYY-MM`: Whole month\n- `YYYY`: Whole year\n- `start--end`: Date range (inclusive, unbounded if start/end omitted)\n\n**Examples:**\n- `--2024-02`: All dates before February 2024\n- `2024-05-09, 2024-05-11`: May 9th and 11th, 2024",
- "defaultValue": "\"\""
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "allowDays",
- "value": "string",
- "description": "Specifies which days of the week can be selected as a comma-separated list. Further restricts dates from `allow` and `disallow`. An empty string (default) has no effect.\n\n**Valid days**: `sunday`, `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`\n\n**Example:** `saturday, sunday` (only weekends)",
- "defaultValue": "\"\""
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disallowDays",
- "value": "string",
- "description": "Specifies which days of the week can't be selected as a comma-separated list. Excludes days from `allowDays` and intersects with `allow` and `disallow`. An empty string (default) has no effect.\n\n**Valid days**: `sunday`, `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`\n\n**Example:** `saturday, sunday` (no weekends)",
- "defaultValue": "\"\""
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "SetAccessor",
- "name": "view",
- "value": "string",
- "description": "The currently displayed month in `YYYY-MM` format. When changed, the `viewchange` callback is triggered. Defaults to `defaultView`."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultView",
- "value": "string",
- "description": "The default month to display in `YYYY-MM` format. Used until the `view` callback is set by user interaction or programmatically. Defaults to the current month in the user's locale."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "autocomplete",
- "value": "DateAutocompleteField",
- "description": "Controls browser autofill behavior for the field.\n\nBasic values:\n- `on` - Enables autofill without specifying content type (default)\n- `off` - Disables autofill for sensitive data or one-time codes\n\nSpecific field values describe the expected data type. You can optionally prefix these with:\n- `section-${string}` - Scopes autofill to a specific form section (when multiple forms exist on the same page)\n- `shipping` or `billing` - Indicates whether the data is for shipping or billing purposes\n- Both section and group (for example, `section-primary shipping email`)\n\nProviding a specific autofill token helps browsers suggest more relevant saved data.\n\nLearn more about the set of [autocomplete values](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill-detail-tokens) supported in browsers.",
- "defaultValue": "'on' for everything else"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultValue",
- "value": "string",
- "description": "The initial value of the field when it first loads. Unlike `placeholder`, this is a real value that the user can edit and that gets submitted with the form. Once the user starts typing, their input replaces it. Changing this property after the field has loaded has no effect. To update the field value at any time, use `value` instead.",
- "defaultValue": "\"\""
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "details",
- "value": "string",
- "description": "Supplementary text displayed below the checkbox to provide additional context, instructions, or help. Use this to explain what checking the box means or provide guidance to users. This text is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "error",
- "value": "string",
- "description": "An error message displayed below the checkbox to indicate validation problems. When set, the checkbox is styled with error indicators and the message is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "label",
- "value": "string",
- "description": "The text displayed as the field label, which identifies the purpose of the field to users. This label is associated with the field for accessibility and helps users understand what information to provide."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "labelAccessibilityVisibility",
- "value": "\"visible\" | \"exclusive\"",
- "description": "Controls whether the label is visible to all users or only to screen readers.\n\n- `visible`: The label is shown to everyone (default).\n- `exclusive`: The label is visually hidden but still announced by screen readers.\n\nUse `exclusive` when the surrounding context makes the label redundant visually, but screen reader users still need it for clarity.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "placeholder",
- "value": "string",
- "description": "The placeholder text displayed in the field when it's empty, providing a hint about the expected input format or value."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "readOnly",
- "value": "boolean",
- "description": "Whether the field is read-only and can't be edited. Read-only fields remain focusable and their content is announced by screen readers.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "required",
- "value": "boolean",
- "description": "Whether the field requires a value before form submission. Displays a visual indicator and adds semantic meaning, but doesn't automatically validate or show errors. Use the `error` property to display validation messages.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "getAttribute",
- "value": "(qualifiedName: string) => string",
- "description": "Global keyboard event handlers for things like key bindings typically ignore keystrokes originating from within input elements. Unfortunately, these never account for a Custom Element being the input element.\n\nTo fix this, we spoof getAttribute & hasAttribute to make a PreactFieldElement appear as a contentEditable \"input\" when it contains a focused input element.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "hasAttribute",
- "value": "(qualifiedName: string) => boolean",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "isContentEditable",
- "value": "boolean",
- "description": "Whether the shadow tree contains a focused input (input, textarea, select, ).\n\nNote: this does _not_ return true for focussed non-field form elements like buttons.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "formResetCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the field is disabled, preventing any user interaction.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "id",
- "value": "string",
- "description": "A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "name",
- "value": "string",
- "description": "The name attribute for the field, used to identify the field's value when the form is submitted. Must be unique within the nearest containing form."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "value",
- "value": "string",
- "description": "The currently selected date in `YYYY-MM-DD` format. An empty string means no date is selected.",
- "defaultValue": "\"\""
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@internals$4@11381",
- "value": "ElementInternals",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class DateField\n extends PreactFieldElement\n implements DateFieldProps\n{\n accessor allow: DateFieldProps['allow'];\n accessor disallow: DateFieldProps['disallow'];\n accessor allowDays: DateFieldProps['allowDays'];\n accessor disallowDays: DateFieldProps['disallowDays'];\n set view(view: string);\n get view(): string;\n accessor defaultView: DateFieldProps['defaultView'];\n constructor();\n}"
- },
- "DateAutocompleteField": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "DateAutocompleteField",
- "value": "'bday-day' | 'bday-month' | 'bday-year' | 'bday' | 'cc-expiry-month' | 'cc-expiry-year' | 'cc-expiry'",
- "description": "Represents autocomplete values that are valid for date input fields. This is a subset of `AnyAutocompleteField` containing only fields suitable for date-based inputs.\n\nAvailable values:\n- `bday` - Complete birthday date\n- `bday-day` - Day component of a birthday (1-31)\n- `bday-month` - Month component of a birthday (1-12)\n- `bday-year` - Year component of a birthday (1990)\n- `cc-expiry` - Complete credit card expiration date\n- `cc-expiry-month` - Month component of a credit card expiration date (1-12)\n- `cc-expiry-year` - Year component of a credit card expiration date (2025)",
- "isPublicDocs": true
- },
- "DatePicker": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "DatePicker",
- "description": "Configure the following properties on the date picker component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultView",
- "value": "string",
- "description": "The default month to display in `YYYY-MM` format. Used until the `view` callback is set by user interaction or programmatically. Defaults to the current month in the user's locale."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "SetAccessor",
- "name": "view",
- "value": "string",
- "description": "The currently displayed month in `YYYY-MM` format. When changed, the `viewchange` callback is triggered. Defaults to `defaultView`."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "allow",
- "value": "string",
- "description": "Specifies which dates can be selected as a comma-separated list. An empty string (default) allows all dates.\n\n**Formats:**\n- `YYYY-MM-DD`: Single date\n- `YYYY-MM`: Whole month\n- `YYYY`: Whole year\n- `start--end`: Date range (inclusive, unbounded if start/end omitted)\n\n**Examples:**\n- `2024-02--2025`: February 2024 through end of 2025\n- `2024-05-09, 2024-05-11`: Only May 9th and 11th, 2024",
- "defaultValue": "\"\""
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disallow",
- "value": "string",
- "description": "Specifies which dates can't be selected as a comma-separated list. These dates are excluded from those specified in `allow`. An empty string (default) has no effect.\n\n**Formats:**\n- `YYYY-MM-DD`: Single date\n- `YYYY-MM`: Whole month\n- `YYYY`: Whole year\n- `start--end`: Date range (inclusive, unbounded if start/end omitted)\n\n**Examples:**\n- `--2024-02`: All dates before February 2024\n- `2024-05-09, 2024-05-11`: May 9th and 11th, 2024",
- "defaultValue": "\"\""
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "allowDays",
- "value": "string",
- "description": "Specifies which days of the week can be selected as a comma-separated list. Further restricts dates from `allow` and `disallow`. An empty string (default) has no effect.\n\n**Valid days**: `sunday`, `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`\n\n**Example:** `saturday, sunday` (only weekends)",
- "defaultValue": "\"\""
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disallowDays",
- "value": "string",
- "description": "Specifies which days of the week can't be selected as a comma-separated list. Excludes days from `allowDays` and intersects with `allow` and `disallow`. An empty string (default) has no effect.\n\n**Valid days**: `sunday`, `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`\n\n**Example:** `saturday, sunday` (no weekends)",
- "defaultValue": "\"\""
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "type",
- "value": "\"single\" | \"range\"",
- "description": "The type of date selection allowed.\n\n- `single`: Select a single date\n- `range`: Select a date range",
- "defaultValue": "\"single\""
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultValue",
- "value": "string",
- "description": "The initially selected date(s) when the component first renders. An empty string means no date is initially selected.\n\n- Single date in `YYYY-MM-DD` format when `type` is set to `\"single\"`\n- Date range in `YYYY-MM-DD--YYYY-MM-DD` format (inclusive) when `type` is set to `\"range\"`",
- "defaultValue": "\"\""
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "name",
- "value": "string",
- "description": "The name attribute for the field, used to identify the field's value when the form is submitted. Must be unique within the nearest containing form."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "SetAccessor",
- "name": "value",
- "value": "string",
- "description": "The currently selected date(s). An empty string means no date is selected.\n\n- Single date in `YYYY-MM-DD` format when `type` is set to `\"single\"`\n- Date range in `YYYY-MM-DD--YYYY-MM-DD` format (inclusive) when `type` is set to `\"range\"`",
- "defaultValue": "\"\""
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "formResetCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@dirtyStateSymbol@11579",
- "value": "boolean",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@internals$1@11578",
- "value": "ElementInternals",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class DatePicker extends BaseClass$1 implements DatePickerProps {\n accessor defaultView: string;\n set view(view: string);\n get view(): string;\n accessor allow: DatePickerProps['allow'];\n accessor disallow: DatePickerProps['disallow'];\n accessor allowDays: DatePickerProps['allowDays'];\n accessor disallowDays: DatePickerProps['disallowDays'];\n accessor type: DatePickerProps['type'];\n accessor defaultValue: DatePickerProps['defaultValue'];\n accessor name: DatePickerProps['name'];\n set value(value: string);\n get value(): string;\n /** @private */\n [dirtyStateSymbol]: boolean;\n /** @private */\n formResetCallback(): void;\n constructor();\n}"
- },
- "DropZone": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "DropZone",
- "description": "Configure the following properties on the drop zone component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accept",
- "value": "string",
- "description": "A string representing the types of files that are accepted by the drop zone. This string is a comma-separated list of unique file type specifiers which can be one of the following:\n- A file extension starting with a period (\".\") character (e.g. .jpg, .pdf, .doc)\n- A valid MIME type string with no extensions\n\nIf omitted, all file types are accepted.",
- "defaultValue": "''"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityLabel",
- "value": "string",
- "description": "A label that describes the purpose or contents of the item. When set, it will be announced to buyers using assistive technologies and will provide them with more context."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the field is disabled, preventing any user interaction.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "error",
- "value": "string",
- "description": "An error message displayed below the checkbox to indicate validation problems. When set, the checkbox is styled with error indicators and the message is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "label",
- "value": "string",
- "description": "The text displayed as the field label, which identifies the purpose of the field to users. This label is associated with the field for accessibility and helps users understand what information to provide."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "labelAccessibilityVisibility",
- "value": "\"visible\" | \"exclusive\"",
- "description": "Controls whether the label is visible to all users or only to screen readers.\n\n- `visible`: The label is shown to everyone (default).\n- `exclusive`: The label is visually hidden but still announced by screen readers.\n\nUse `exclusive` when the surrounding context makes the label redundant visually, but screen reader users still need it for clarity.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "multiple",
- "value": "boolean",
- "description": "Whether multiple files can be selected or dropped at once.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "name",
- "value": "string",
- "description": "The name attribute for the field, used to identify the field's value when the form is submitted. Must be unique within the nearest containing form."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "required",
- "value": "boolean",
- "description": "Whether the field requires a value before form submission. Displays a visual indicator and adds semantic meaning, but doesn't automatically validate or show errors. Use the `error` property to display validation messages.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "value",
- "value": "string",
- "description": "This sets the input value for a file type, which cannot be set programatically, so it can only be reset.",
- "defaultValue": "''"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "files",
- "value": "File[]",
- "description": "An array of File objects representing the files currently selected by the user.\n\nThis property is read-only and cannot be directly modified. To clear the selected files, set the `value` prop to an empty string or null.",
- "defaultValue": "[]"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "formResetCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "__@setFiles@11614",
- "value": "(files: File[]) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "__@getFileInput@11616",
- "value": "() => HTMLInputElement",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@internals@11615",
- "value": "ElementInternals",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class DropZone extends BaseClass implements DropZoneProps {\n accessor accept: DropZoneProps['accept'];\n accessor accessibilityLabel: DropZoneProps['accessibilityLabel'];\n accessor disabled: DropZoneProps['disabled'];\n accessor error: DropZoneProps['error'];\n accessor label: DropZoneProps['label'];\n accessor labelAccessibilityVisibility: DropZoneProps['labelAccessibilityVisibility'];\n accessor multiple: DropZoneProps['multiple'];\n accessor name: DropZoneProps['name'];\n accessor required: DropZoneProps['required'];\n get value(): string;\n /** This sets the input value for a file type, which cannot be set programatically, so it can only be reset. */\n set value(value: '' | null);\n get files(): File[];\n set files(files: File[]);\n /** @private */\n [setFiles](files: File[]): void;\n /** @private */\n [getFileInput](): ReplaceType<\n Element | null | undefined,\n Element,\n HTMLInputElement\n >;\n\n /** @private */\n formResetCallback(): void;\n constructor();\n}"
- },
- "Divider": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Divider",
- "description": "Configure the following properties on the divider component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "direction",
- "value": "\"inline\" | \"block\"",
- "description": "The orientation of the divider line, using [logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values).\n\n- `inline`: Horizontal divider for separating vertically stacked content\n- `block`: Vertical divider for separating horizontally arranged content",
- "defaultValue": "'inline'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "color",
- "value": "\"base\" | \"strong\"",
- "description": "The visual prominence of the divider line.\n\n- `base`: Standard divider for most separations (default)\n- `strong`: More prominent divider for major section breaks",
- "defaultValue": "'base'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Divider extends PreactCustomElement implements DividerProps {\n accessor direction: DividerProps['direction'];\n accessor color: DividerProps['color'];\n constructor();\n}"
- },
- "EmailField": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "EmailField",
- "description": "Configure the following properties on the email field component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "autocomplete",
- "value": "\"on\" | \"off\" | EmailAutocompleteField | `section-${string} email` | `section-${string} home email` | `section-${string} mobile email` | `section-${string} fax email` | `section-${string} pager email` | \"shipping email\" | \"shipping home email\" | \"shipping mobile email\" | \"shipping fax email\" | \"shipping pager email\" | \"billing email\" | \"billing home email\" | \"billing mobile email\" | \"billing fax email\" | \"billing pager email\" | `section-${string} shipping email` | `section-${string} shipping home email` | `section-${string} shipping mobile email` | `section-${string} shipping fax email` | `section-${string} shipping pager email` | `section-${string} billing email` | `section-${string} billing home email` | `section-${string} billing mobile email` | `section-${string} billing fax email` | `section-${string} billing pager email`",
- "description": "Controls browser autofill behavior for the field.\n\nBasic values:\n- `on` - Enables autofill without specifying content type (default)\n- `off` - Disables autofill for sensitive data or one-time codes\n\nSpecific field values describe the expected data type. You can optionally prefix these with:\n- `section-${string}` - Scopes autofill to a specific form section (when multiple forms exist on the same page)\n- `shipping` or `billing` - Indicates whether the data is for shipping or billing purposes\n- Both section and group (for example, `section-primary shipping email`)\n\nProviding a specific autofill token helps browsers suggest more relevant saved data.\n\nLearn more about the set of [autocomplete values](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill-detail-tokens) supported in browsers.",
- "defaultValue": "'on' for everything else"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "maxLength",
- "value": "number",
- "description": "The maximum number of characters allowed in the field.",
- "defaultValue": "Infinity"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "minLength",
- "value": "number",
- "description": "The minimum number of characters required in the field.",
- "defaultValue": "0"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "value",
- "value": "string",
- "description": "The current email address value in the field. When setting this property programmatically, it updates the field's display value. When reading it, you get the user's current input. The field validates this value as an email address format when the user finishes editing."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultValue",
- "value": "string",
- "description": "The initial value of the field when it first loads. Unlike `placeholder`, this is a real value that the user can edit and that gets submitted with the form. Once the user starts typing, their input replaces it. Changing this property after the field has loaded has no effect. To update the field value at any time, use `value` instead."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "details",
- "value": "string",
- "description": "Supplementary text displayed below the checkbox to provide additional context, instructions, or help. Use this to explain what checking the box means or provide guidance to users. This text is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "error",
- "value": "string",
- "description": "An error message displayed below the checkbox to indicate validation problems. When set, the checkbox is styled with error indicators and the message is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "label",
- "value": "string",
- "description": "The text displayed as the field label, which identifies the purpose of the field to users. This label is associated with the field for accessibility and helps users understand what information to provide."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "labelAccessibilityVisibility",
- "value": "\"visible\" | \"exclusive\"",
- "description": "Controls whether the label is visible to all users or only to screen readers.\n\n- `visible`: The label is shown to everyone (default).\n- `exclusive`: The label is visually hidden but still announced by screen readers.\n\nUse `exclusive` when the surrounding context makes the label redundant visually, but screen reader users still need it for clarity.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "placeholder",
- "value": "string",
- "description": "The placeholder text displayed in the field when it's empty, providing a hint about the expected input format or value."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "readOnly",
- "value": "boolean",
- "description": "Whether the field is read-only and can't be edited. Read-only fields remain focusable and their content is announced by screen readers.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "required",
- "value": "boolean",
- "description": "Whether the field requires a value before form submission. Displays a visual indicator and adds semantic meaning, but doesn't automatically validate or show errors. Use the `error` property to display validation messages.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "getAttribute",
- "value": "(qualifiedName: string) => string",
- "description": "Global keyboard event handlers for things like key bindings typically ignore keystrokes originating from within input elements. Unfortunately, these never account for a Custom Element being the input element.\n\nTo fix this, we spoof getAttribute & hasAttribute to make a PreactFieldElement appear as a contentEditable \"input\" when it contains a focused input element.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "hasAttribute",
- "value": "(qualifiedName: string) => boolean",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "isContentEditable",
- "value": "boolean",
- "description": "Whether the shadow tree contains a focused input (input, textarea, select, ).\n\nNote: this does _not_ return true for focussed non-field form elements like buttons.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "formResetCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the field is disabled, preventing any user interaction.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "id",
- "value": "string",
- "description": "A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "name",
- "value": "string",
- "description": "The name attribute for the field, used to identify the field's value when the form is submitted. Must be unique within the nearest containing form."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@internals$4@11381",
- "value": "ElementInternals",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class EmailField\n extends PreactFieldElement\n implements EmailFieldProps\n{\n accessor autocomplete: EmailFieldProps['autocomplete'];\n accessor maxLength: EmailFieldProps['maxLength'];\n accessor minLength: EmailFieldProps['minLength'];\n /**\n * The current email address value in the field. When setting this property programmatically, it updates the field's display value. When reading it, you get the user's current input. The field validates this value as an email address format when the user finishes editing.\n */\n get value(): string;\n set value(value: string);\n constructor();\n}"
- },
- "EmailAutocompleteField": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "EmailAutocompleteField",
- "value": "'email' | 'home email' | 'mobile email' | 'fax email' | 'pager email'",
- "description": "Represents autocomplete values that are valid for email input fields. This is a subset of `AnyAutocompleteField` containing only fields suitable for email inputs.\n\nAvailable values:\n- `email` - Primary email address\n- `home email` - Home email address\n- `mobile email` - Mobile device email address\n- `fax email` - Fax machine email address\n- `pager email` - Pager device email address",
- "isPublicDocs": true
- },
- "Grid": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Grid",
- "description": "Configure the following properties on the grid component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "gridTemplateColumns",
- "value": "string",
- "description": "The columns in the grid and their sizes.\n\nAccepts:\n- [Track sizing values](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Basic_concepts_of_grid_layout#fixed_and_flexible_track_sizes), such as `1fr auto`\n- A [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported track sizing values as a query value",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "gridTemplateRows",
- "value": "string",
- "description": "The rows in the grid and their sizes.\n\nAccepts:\n- [Track sizing values](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Basic_concepts_of_grid_layout#fixed_and_flexible_track_sizes), such as `1fr auto`\n- A [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported track sizing values as a query value",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "justifyItems",
- "value": "\"\" | JustifyItemsKeyword",
- "description": "Aligns the grid items along the inline axis.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "alignItems",
- "value": "\"\" | AlignItemsKeyword",
- "description": "Aligns the grid items along the block axis.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "placeItems",
- "value": "AlignItemsKeyword | \"normal normal\" | \"normal stretch\" | \"normal baseline\" | \"normal first baseline\" | \"normal last baseline\" | \"normal start\" | \"normal end\" | \"normal center\" | \"normal unsafe start\" | \"normal unsafe end\" | \"normal unsafe center\" | \"normal safe start\" | \"normal safe end\" | \"normal safe center\" | \"stretch normal\" | \"stretch stretch\" | \"stretch baseline\" | \"stretch first baseline\" | \"stretch last baseline\" | \"stretch start\" | \"stretch end\" | \"stretch center\" | \"stretch unsafe start\" | \"stretch unsafe end\" | \"stretch unsafe center\" | \"stretch safe start\" | \"stretch safe end\" | \"stretch safe center\" | \"baseline normal\" | \"baseline stretch\" | \"baseline baseline\" | \"baseline first baseline\" | \"baseline last baseline\" | \"baseline start\" | \"baseline end\" | \"baseline center\" | \"baseline unsafe start\" | \"baseline unsafe end\" | \"baseline unsafe center\" | \"baseline safe start\" | \"baseline safe end\" | \"baseline safe center\" | \"first baseline normal\" | \"first baseline stretch\" | \"first baseline baseline\" | \"first baseline first baseline\" | \"first baseline last baseline\" | \"first baseline start\" | \"first baseline end\" | \"first baseline center\" | \"first baseline unsafe start\" | \"first baseline unsafe end\" | \"first baseline unsafe center\" | \"first baseline safe start\" | \"first baseline safe end\" | \"first baseline safe center\" | \"last baseline normal\" | \"last baseline stretch\" | \"last baseline baseline\" | \"last baseline first baseline\" | \"last baseline last baseline\" | \"last baseline start\" | \"last baseline end\" | \"last baseline center\" | \"last baseline unsafe start\" | \"last baseline unsafe end\" | \"last baseline unsafe center\" | \"last baseline safe start\" | \"last baseline safe end\" | \"last baseline safe center\" | \"start normal\" | \"start stretch\" | \"start baseline\" | \"start first baseline\" | \"start last baseline\" | \"start start\" | \"start end\" | \"start center\" | \"start unsafe start\" | \"start unsafe end\" | \"start unsafe center\" | \"start safe start\" | \"start safe end\" | \"start safe center\" | \"end normal\" | \"end stretch\" | \"end baseline\" | \"end first baseline\" | \"end last baseline\" | \"end start\" | \"end end\" | \"end center\" | \"end unsafe start\" | \"end unsafe end\" | \"end unsafe center\" | \"end safe start\" | \"end safe end\" | \"end safe center\" | \"center normal\" | \"center stretch\" | \"center baseline\" | \"center first baseline\" | \"center last baseline\" | \"center start\" | \"center end\" | \"center center\" | \"center unsafe start\" | \"center unsafe end\" | \"center unsafe center\" | \"center safe start\" | \"center safe end\" | \"center safe center\" | \"unsafe start normal\" | \"unsafe start stretch\" | \"unsafe start baseline\" | \"unsafe start first baseline\" | \"unsafe start last baseline\" | \"unsafe start start\" | \"unsafe start end\" | \"unsafe start center\" | \"unsafe start unsafe start\" | \"unsafe start unsafe end\" | \"unsafe start unsafe center\" | \"unsafe start safe start\" | \"unsafe start safe end\" | \"unsafe start safe center\" | \"unsafe end normal\" | \"unsafe end stretch\" | \"unsafe end baseline\" | \"unsafe end first baseline\" | \"unsafe end last baseline\" | \"unsafe end start\" | \"unsafe end end\" | \"unsafe end center\" | \"unsafe end unsafe start\" | \"unsafe end unsafe end\" | \"unsafe end unsafe center\" | \"unsafe end safe start\" | \"unsafe end safe end\" | \"unsafe end safe center\" | \"unsafe center normal\" | \"unsafe center stretch\" | \"unsafe center baseline\" | \"unsafe center first baseline\" | \"unsafe center last baseline\" | \"unsafe center start\" | \"unsafe center end\" | \"unsafe center center\" | \"unsafe center unsafe start\" | \"unsafe center unsafe end\" | \"unsafe center unsafe center\" | \"unsafe center safe start\" | \"unsafe center safe end\" | \"unsafe center safe center\" | \"safe start normal\" | \"safe start stretch\" | \"safe start baseline\" | \"safe start first baseline\" | \"safe start last baseline\" | \"safe start start\" | \"safe start end\" | \"safe start center\" | \"safe start unsafe start\" | \"safe start unsafe end\" | \"safe start unsafe center\" | \"safe start safe start\" | \"safe start safe end\" | \"safe start safe center\" | \"safe end normal\" | \"safe end stretch\" | \"safe end baseline\" | \"safe end first baseline\" | \"safe end last baseline\" | \"safe end start\" | \"safe end end\" | \"safe end center\" | \"safe end unsafe start\" | \"safe end unsafe end\" | \"safe end unsafe center\" | \"safe end safe start\" | \"safe end safe end\" | \"safe end safe center\" | \"safe center normal\" | \"safe center stretch\" | \"safe center baseline\" | \"safe center first baseline\" | \"safe center last baseline\" | \"safe center start\" | \"safe center end\" | \"safe center center\" | \"safe center unsafe start\" | \"safe center unsafe end\" | \"safe center unsafe center\" | \"safe center safe start\" | \"safe center safe end\" | \"safe center safe center\"",
- "description": "A shorthand property for `justify-items` and `align-items`.",
- "defaultValue": "'normal normal'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "justifyContent",
- "value": "\"\" | JustifyContentKeyword",
- "description": "Aligns the grid along the inline axis. This overrides the inline value of `placeContent`.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "alignContent",
- "value": "\"\" | AlignContentKeyword",
- "description": "Aligns the grid along the block axis. This overrides the block value of `placeContent`.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "placeContent",
- "value": "\"normal normal\" | \"normal stretch\" | \"normal start\" | \"normal end\" | \"normal center\" | \"normal unsafe start\" | \"normal unsafe end\" | \"normal unsafe center\" | \"normal safe start\" | \"normal safe end\" | \"normal safe center\" | \"stretch normal\" | \"stretch stretch\" | \"stretch start\" | \"stretch end\" | \"stretch center\" | \"stretch unsafe start\" | \"stretch unsafe end\" | \"stretch unsafe center\" | \"stretch safe start\" | \"stretch safe end\" | \"stretch safe center\" | \"baseline normal\" | \"baseline stretch\" | \"baseline start\" | \"baseline end\" | \"baseline center\" | \"baseline unsafe start\" | \"baseline unsafe end\" | \"baseline unsafe center\" | \"baseline safe start\" | \"baseline safe end\" | \"baseline safe center\" | \"first baseline normal\" | \"first baseline stretch\" | \"first baseline start\" | \"first baseline end\" | \"first baseline center\" | \"first baseline unsafe start\" | \"first baseline unsafe end\" | \"first baseline unsafe center\" | \"first baseline safe start\" | \"first baseline safe end\" | \"first baseline safe center\" | \"last baseline normal\" | \"last baseline stretch\" | \"last baseline start\" | \"last baseline end\" | \"last baseline center\" | \"last baseline unsafe start\" | \"last baseline unsafe end\" | \"last baseline unsafe center\" | \"last baseline safe start\" | \"last baseline safe end\" | \"last baseline safe center\" | \"start normal\" | \"start stretch\" | \"start start\" | \"start end\" | \"start center\" | \"start unsafe start\" | \"start unsafe end\" | \"start unsafe center\" | \"start safe start\" | \"start safe end\" | \"start safe center\" | \"end normal\" | \"end stretch\" | \"end start\" | \"end end\" | \"end center\" | \"end unsafe start\" | \"end unsafe end\" | \"end unsafe center\" | \"end safe start\" | \"end safe end\" | \"end safe center\" | \"center normal\" | \"center stretch\" | \"center start\" | \"center end\" | \"center center\" | \"center unsafe start\" | \"center unsafe end\" | \"center unsafe center\" | \"center safe start\" | \"center safe end\" | \"center safe center\" | \"unsafe start normal\" | \"unsafe start stretch\" | \"unsafe start start\" | \"unsafe start end\" | \"unsafe start center\" | \"unsafe start unsafe start\" | \"unsafe start unsafe end\" | \"unsafe start unsafe center\" | \"unsafe start safe start\" | \"unsafe start safe end\" | \"unsafe start safe center\" | \"unsafe end normal\" | \"unsafe end stretch\" | \"unsafe end start\" | \"unsafe end end\" | \"unsafe end center\" | \"unsafe end unsafe start\" | \"unsafe end unsafe end\" | \"unsafe end unsafe center\" | \"unsafe end safe start\" | \"unsafe end safe end\" | \"unsafe end safe center\" | \"unsafe center normal\" | \"unsafe center stretch\" | \"unsafe center start\" | \"unsafe center end\" | \"unsafe center center\" | \"unsafe center unsafe start\" | \"unsafe center unsafe end\" | \"unsafe center unsafe center\" | \"unsafe center safe start\" | \"unsafe center safe end\" | \"unsafe center safe center\" | \"safe start normal\" | \"safe start stretch\" | \"safe start start\" | \"safe start end\" | \"safe start center\" | \"safe start unsafe start\" | \"safe start unsafe end\" | \"safe start unsafe center\" | \"safe start safe start\" | \"safe start safe end\" | \"safe start safe center\" | \"safe end normal\" | \"safe end stretch\" | \"safe end start\" | \"safe end end\" | \"safe end center\" | \"safe end unsafe start\" | \"safe end unsafe end\" | \"safe end unsafe center\" | \"safe end safe start\" | \"safe end safe end\" | \"safe end safe center\" | \"safe center normal\" | \"safe center stretch\" | \"safe center start\" | \"safe center end\" | \"safe center center\" | \"safe center unsafe start\" | \"safe center unsafe end\" | \"safe center unsafe center\" | \"safe center safe start\" | \"safe center safe end\" | \"safe center safe center\" | AlignContentKeyword | \"normal space-between\" | \"normal space-around\" | \"normal space-evenly\" | \"baseline space-between\" | \"baseline space-around\" | \"baseline space-evenly\" | \"first baseline space-between\" | \"first baseline space-around\" | \"first baseline space-evenly\" | \"last baseline space-between\" | \"last baseline space-around\" | \"last baseline space-evenly\" | \"start space-between\" | \"start space-around\" | \"start space-evenly\" | \"end space-between\" | \"end space-around\" | \"end space-evenly\" | \"center space-between\" | \"center space-around\" | \"center space-evenly\" | \"unsafe start space-between\" | \"unsafe start space-around\" | \"unsafe start space-evenly\" | \"unsafe end space-between\" | \"unsafe end space-around\" | \"unsafe end space-evenly\" | \"unsafe center space-between\" | \"unsafe center space-around\" | \"unsafe center space-evenly\" | \"safe start space-between\" | \"safe start space-around\" | \"safe start space-evenly\" | \"safe end space-between\" | \"safe end space-around\" | \"safe end space-evenly\" | \"safe center space-between\" | \"safe center space-around\" | \"safe center space-evenly\" | \"stretch space-between\" | \"stretch space-around\" | \"stretch space-evenly\" | \"space-between normal\" | \"space-between start\" | \"space-between end\" | \"space-between center\" | \"space-between unsafe start\" | \"space-between unsafe end\" | \"space-between unsafe center\" | \"space-between safe start\" | \"space-between safe end\" | \"space-between safe center\" | \"space-between stretch\" | \"space-between space-between\" | \"space-between space-around\" | \"space-between space-evenly\" | \"space-around normal\" | \"space-around start\" | \"space-around end\" | \"space-around center\" | \"space-around unsafe start\" | \"space-around unsafe end\" | \"space-around unsafe center\" | \"space-around safe start\" | \"space-around safe end\" | \"space-around safe center\" | \"space-around stretch\" | \"space-around space-between\" | \"space-around space-around\" | \"space-around space-evenly\" | \"space-evenly normal\" | \"space-evenly start\" | \"space-evenly end\" | \"space-evenly center\" | \"space-evenly unsafe start\" | \"space-evenly unsafe end\" | \"space-evenly unsafe center\" | \"space-evenly safe start\" | \"space-evenly safe end\" | \"space-evenly safe center\" | \"space-evenly stretch\" | \"space-evenly space-between\" | \"space-evenly space-around\" | \"space-evenly space-evenly\"",
- "description": "A shorthand property for `justify-content` and `align-content`.",
- "defaultValue": "'normal normal'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "gap",
- "value": "MaybeResponsive>",
- "description": "Adjusts spacing between elements.\n\nAccepts:\n- A single [`SpacingKeyword`](/docs/api/polaris/using-web-components#scale) value applied to both axes, such as `large-100`\n- A pair of values, such as `large-100 large-500`, to set the inline and block axes respectively\n- A [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported SpacingKeyword as a query value",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "rowGap",
- "value": "MaybeResponsive<\"\" | SpacingKeyword>",
- "description": "s spacing between elements in the block axis. This overrides the row value of `gap`.\n\nAccepts:\n- A single [`SpacingKeyword`](/docs/api/polaris/using-web-components#scale) value, such as `large-100`\n- A [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported SpacingKeyword as a query value",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "columnGap",
- "value": "MaybeResponsive<\"\" | SpacingKeyword>",
- "description": "Adjusts spacing between elements in the inline axis. This overrides the column value of `gap`.\n\nAccepts:\n- A single [`SpacingKeyword`](/docs/api/polaris/using-web-components#scale) value, such as `large-100`\n- A [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported SpacingKeyword as a query value",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityRole",
- "value": "AccessibilityRole",
- "description": "The semantic meaning of the component’s content. When set, the role will be used by assistive technologies to help users navigate the page.",
- "defaultValue": "'generic'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "background",
- "value": "BackgroundColorKeyword",
- "description": "The background color of the component.",
- "defaultValue": "'transparent'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "blockSize",
- "value": "SizeUnitsOrAuto",
- "description": "The vertical size of the element in standard layouts (height in left-to-right or right-to-left writing modes).\n\nBlock size adjusts based on the writing direction: in horizontal layouts, it controls the height; in vertical layouts, it controls the width. This ensures consistent behavior across different text directions.\n\nLearn more about [block-size](https://developer.mozilla.org/en-US/docs/Web/CSS/block-size).",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "minBlockSize",
- "value": "SizeUnits",
- "description": "The minimum height in horizontal writing modes, or minimum width in vertical writing modes. Prevents the element from shrinking below this size.\n\nLearn more about [min-block-size](https://developer.mozilla.org/en-US/docs/Web/CSS/min-block-size).",
- "defaultValue": "'0'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "maxBlockSize",
- "value": "SizeUnitsOrNone",
- "description": "The maximum height in horizontal writing modes, or maximum width in vertical writing modes. Prevents the element from growing beyond this size.\n\nLearn more about [max-block-size](https://developer.mozilla.org/en-US/docs/Web/CSS/max-block-size).",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "inlineSize",
- "value": "SizeUnitsOrAuto",
- "description": "The width in horizontal writing modes, or height in vertical writing modes. Use this for flow-relative sizing that adapts to text direction. Learn more about [inline-size](https://developer.mozilla.org/en-US/docs/Web/CSS/inline-size).",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "minInlineSize",
- "value": "SizeUnits",
- "description": "The minimum width in horizontal writing modes, or minimum height in vertical writing modes. Prevents the element from shrinking below this size.\n\nLearn more about [min-inline-size](https://developer.mozilla.org/en-US/docs/Web/CSS/min-inline-size).",
- "defaultValue": "'0'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "maxInlineSize",
- "value": "SizeUnitsOrNone",
- "description": "The maximum width in horizontal writing modes, or maximum height in vertical writing modes. Prevents the element from growing beyond this size.\n\nLearn more about [max-inline-size](https://developer.mozilla.org/en-US/docs/Web/CSS/max-inline-size).",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "overflow",
- "value": "\"visible\" | \"hidden\"",
- "description": "The overflow behavior of the element.\n\n- `visible`: the content that extends beyond the element’s container is visible.\n- `hidden`: clips the content when it is larger than the element’s container. The element will not be scrollable and the users will not be able to access the clipped content by dragging or using a scroll wheel on a mouse.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "padding",
- "value": "MaybeResponsive>",
- "description": "The padding applied to all edges of the component.\n\nSupports [1-to-4-value syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#edges_of_a_box) using flow-relative values:\n- 1 value applies to all sides\n- 2 values apply to block (top/bottom) and inline (left/right)\n- 3 values apply to block-start (top), inline (left/right), and block-end (bottom)\n- 4 values apply to block-start (top), inline-end (right), block-end (bottom), and inline-start (left)\n\n**Examples:** `base`, `large none`, `base large-100 base small`\n\nUse `auto` to inherit padding from the nearest container with removed padding. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingBlock",
- "value": "MaybeResponsive<\"\" | MaybeTwoValuesShorthandProperty>",
- "description": "The block-direction padding (top and bottom in horizontal writing modes).\n\nAccepts a single value for both sides or two space-separated values for block-start and block-end.\n\n**Example:** `large none` applies `large` to the top and `none` to the bottom.\n\nOverrides the block value from `padding`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingBlockStart",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The block-start padding (top in horizontal writing modes).\n\nOverrides the block-start value from `paddingBlock`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingBlockEnd",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The block-end padding (bottom in horizontal writing modes).\n\nOverrides the block-end value from `paddingBlock`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingInline",
- "value": "MaybeResponsive<\"\" | MaybeTwoValuesShorthandProperty>",
- "description": "The inline-direction padding (left and right in horizontal writing modes).\n\nAccepts a single value for both sides or two space-separated values for inline-start and inline-end.\n\n**Example:** `large none` applies `large` to the left and `none` to the right.\n\nOverrides the inline value from `padding`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingInlineStart",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The inline-start padding (left in LTR writing modes, right in RTL).\n\nOverrides the inline-start value from `paddingInline`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingInlineEnd",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The inline-end padding (right in LTR writing modes, left in RTL).\n\nOverrides the inline-end value from `paddingInline`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "border",
- "value": "BorderShorthand",
- "description": "A border applied using shorthand syntax to specify width, color, and style in a single property.",
- "defaultValue": "'none' - equivalent to `none base auto`.",
- "examples": [
- {
- "title": "Example",
- "description": "",
- "tabs": [
- {
- "code": "// The following are equivalent:\n\n",
- "title": "Example"
- }
- ]
- }
- ]
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderWidth",
- "value": "\"\" | MaybeAllValuesShorthandProperty<\"small\" | \"small-100\" | \"base\" | \"large\" | \"large-100\" | \"none\">",
- "description": "The thickness of the border on all sides. When set, this overrides the width value specified in the `border` property.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderStyle",
- "value": "\"\" | MaybeAllValuesShorthandProperty",
- "description": "The visual style of the border on all sides, such as solid, dashed, or dotted. When set, this overrides the style value specified in the `border` property.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderColor",
- "value": "\"\" | ColorKeyword",
- "description": "The color of the border using the design system's color scale. When set, this overrides the color value specified in the `border` property.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderRadius",
- "value": "MaybeAllValuesShorthandProperty",
- "description": "The roundedness of the element's corners using the design system's radius scale.",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityLabel",
- "value": "string",
- "description": "A label that describes the purpose or content of the component for assistive technologies like screen readers. Use this to provide additional context when the visible content alone doesn't clearly convey the component's purpose."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityVisibility",
- "value": "\"visible\" | \"hidden\" | \"exclusive\"",
- "description": "The visibility mode of the element for both visual and assistive technology users.\n\n- `visible`: The element is visible to all users (both sighted users and screen readers).\n- `hidden`: The element is visually visible but hidden from screen readers. Use this for decorative elements that don't provide meaningful information.\n- `exclusive`: The element is visually hidden but announced by screen readers. Use this for screen-reader-only content like skip links or additional context.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "display",
- "value": "MaybeResponsive<\"auto\" | \"none\">",
- "description": "The outer [display](https://developer.mozilla.org/en-US/docs/Web/CSS/display) type of the component. The outer type sets a component's participation in [flow layout](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_flow_layout).\n\n- `auto` the component's initial value. The actual value depends on the component and context.\n- `none` hides the component from display and removes it from the accessibility tree, making it invisible to screen readers.",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Grid extends BoxElement implements GridProps {\n constructor();\n accessor gridTemplateColumns: GridProps['gridTemplateColumns'];\n accessor gridTemplateRows: GridProps['gridTemplateRows'];\n accessor justifyItems: GridProps['justifyItems'];\n accessor alignItems: GridProps['alignItems'];\n accessor placeItems: GridProps['placeItems'];\n accessor justifyContent: GridProps['justifyContent'];\n accessor alignContent: GridProps['alignContent'];\n accessor placeContent: GridProps['placeContent'];\n accessor gap: GridProps['gap'];\n accessor rowGap: GridProps['rowGap'];\n accessor columnGap: GridProps['columnGap'];\n}"
- },
- "JustifyItemsKeyword": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "JustifyItemsKeyword",
- "value": "'normal' | 'stretch' | BaselinePosition | OverflowPosition | ContentPosition",
- "description": "Justify items defines the default justify-self for all items of the box, giving them all a default way of justifying each box along the appropriate axis.\n\nLearn more about the [justify-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items).",
- "isPublicDocs": true
- },
- "BaselinePosition": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "BaselinePosition",
- "value": "'baseline' | 'first baseline' | 'last baseline'",
- "description": "Represents baseline alignment positions used to align items relative to their baselines.\n- `baseline`: Aligns to the baseline of the parent.\n- `first baseline`: Aligns to the first baseline of the parent.\n- `last baseline`: Aligns to the last baseline of the parent.",
- "isPublicDocs": true
- },
- "OverflowPosition": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "OverflowPosition",
- "value": "`unsafe ${ContentPosition}` | `safe ${ContentPosition}`",
- "description": "Represents content positioning with overflow behavior control. Use `safe` to prevent content from becoming inaccessible when it overflows, or `unsafe` to allow overflow regardless of accessibility.",
- "isPublicDocs": true
- },
- "ContentPosition": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "ContentPosition",
- "value": "'center' | 'start' | 'end'",
- "description": "Defines the position of content along an axis.\n- `center`: Centers the content.\n- `start`: Aligns content to the start.\n- `end`: Aligns content to the end.",
- "isPublicDocs": true
- },
- "AlignItemsKeyword": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "AlignItemsKeyword",
- "value": "'normal' | 'stretch' | BaselinePosition | OverflowPosition | ContentPosition",
- "description": "Align items sets the align-self value on all direct children as a group.\n\nLearn more about the [align-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items).",
- "isPublicDocs": true
- },
- "JustifyContentKeyword": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "JustifyContentKeyword",
- "value": "'normal' | ContentDistribution | OverflowPosition | ContentPosition",
- "description": "Justify content defines how the browser distributes space between and around content items along the main-axis of a flex container, and the inline axis of a grid container.\n\nLearn more about the [justify-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content).",
- "isPublicDocs": true
- },
- "ContentDistribution": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "ContentDistribution",
- "value": "'space-between' | 'space-around' | 'space-evenly' | 'stretch'",
- "description": "Defines how space is distributed between and around content items in flex and grid layouts.\n- `space-between`: Distributes items evenly with the first item at the start and last at the end.\n- `space-around`: Distributes items evenly with equal space around each item.\n- `space-evenly`: Distributes items evenly with equal space between them.\n- `stretch`: Stretches items to fill the container.",
- "isPublicDocs": true
- },
- "AlignContentKeyword": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "AlignContentKeyword",
- "value": "'normal' | BaselinePosition | ContentDistribution | OverflowPosition | ContentPosition",
- "description": "Align content sets the distribution of space between and around content items along a flexbox's cross axis, or a grid or block-level element's block axis.\n\nLearn more about the [align-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content).",
- "isPublicDocs": true
- },
- "SpacingKeyword": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "SpacingKeyword",
- "value": "SizeKeyword | 'none'",
- "description": "Defines the spacing size between elements, using the standard size scale or `none` for no spacing.",
- "isPublicDocs": true
- },
- "GridItem": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "GridItem",
- "description": "The grid item component represents a single cell within a grid layout, allowing you to control how content is positioned and sized within the grid. Use grid item as a child of grid to specify column span, row span, and positioning for individual content areas.\n\nGrid item supports precise placement control through column and row properties, enabling you to create complex layouts where different items occupy varying amounts of space or appear in specific grid positions.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "gridColumn",
- "value": "\"auto\" | `span ${number}`",
- "description": "The number of columns the item will span across.\n\nLearn more about the [grid-column property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column).",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "gridRow",
- "value": "\"auto\" | `span ${number}`",
- "description": "The number of rows the item will span across.\n\nLearn more about the [grid-row property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row).",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityRole",
- "value": "AccessibilityRole",
- "description": "The semantic meaning of the component’s content. When set, the role will be used by assistive technologies to help users navigate the page.",
- "defaultValue": "'generic'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "background",
- "value": "BackgroundColorKeyword",
- "description": "The background color of the component.",
- "defaultValue": "'transparent'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "blockSize",
- "value": "SizeUnitsOrAuto",
- "description": "The vertical size of the element in standard layouts (height in left-to-right or right-to-left writing modes).\n\nBlock size adjusts based on the writing direction: in horizontal layouts, it controls the height; in vertical layouts, it controls the width. This ensures consistent behavior across different text directions.\n\nLearn more about [block-size](https://developer.mozilla.org/en-US/docs/Web/CSS/block-size).",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "minBlockSize",
- "value": "SizeUnits",
- "description": "The minimum height in horizontal writing modes, or minimum width in vertical writing modes. Prevents the element from shrinking below this size.\n\nLearn more about [min-block-size](https://developer.mozilla.org/en-US/docs/Web/CSS/min-block-size).",
- "defaultValue": "'0'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "maxBlockSize",
- "value": "SizeUnitsOrNone",
- "description": "The maximum height in horizontal writing modes, or maximum width in vertical writing modes. Prevents the element from growing beyond this size.\n\nLearn more about [max-block-size](https://developer.mozilla.org/en-US/docs/Web/CSS/max-block-size).",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "inlineSize",
- "value": "SizeUnitsOrAuto",
- "description": "The width in horizontal writing modes, or height in vertical writing modes. Use this for flow-relative sizing that adapts to text direction. Learn more about [inline-size](https://developer.mozilla.org/en-US/docs/Web/CSS/inline-size).",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "minInlineSize",
- "value": "SizeUnits",
- "description": "The minimum width in horizontal writing modes, or minimum height in vertical writing modes. Prevents the element from shrinking below this size.\n\nLearn more about [min-inline-size](https://developer.mozilla.org/en-US/docs/Web/CSS/min-inline-size).",
- "defaultValue": "'0'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "maxInlineSize",
- "value": "SizeUnitsOrNone",
- "description": "The maximum width in horizontal writing modes, or maximum height in vertical writing modes. Prevents the element from growing beyond this size.\n\nLearn more about [max-inline-size](https://developer.mozilla.org/en-US/docs/Web/CSS/max-inline-size).",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "overflow",
- "value": "\"visible\" | \"hidden\"",
- "description": "The overflow behavior of the element.\n\n- `visible`: the content that extends beyond the element’s container is visible.\n- `hidden`: clips the content when it is larger than the element’s container. The element will not be scrollable and the users will not be able to access the clipped content by dragging or using a scroll wheel on a mouse.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "padding",
- "value": "MaybeResponsive>",
- "description": "The padding applied to all edges of the component.\n\nSupports [1-to-4-value syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#edges_of_a_box) using flow-relative values:\n- 1 value applies to all sides\n- 2 values apply to block (top/bottom) and inline (left/right)\n- 3 values apply to block-start (top), inline (left/right), and block-end (bottom)\n- 4 values apply to block-start (top), inline-end (right), block-end (bottom), and inline-start (left)\n\n**Examples:** `base`, `large none`, `base large-100 base small`\n\nUse `auto` to inherit padding from the nearest container with removed padding. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingBlock",
- "value": "MaybeResponsive<\"\" | MaybeTwoValuesShorthandProperty>",
- "description": "The block-direction padding (top and bottom in horizontal writing modes).\n\nAccepts a single value for both sides or two space-separated values for block-start and block-end.\n\n**Example:** `large none` applies `large` to the top and `none` to the bottom.\n\nOverrides the block value from `padding`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingBlockStart",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The block-start padding (top in horizontal writing modes).\n\nOverrides the block-start value from `paddingBlock`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingBlockEnd",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The block-end padding (bottom in horizontal writing modes).\n\nOverrides the block-end value from `paddingBlock`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingInline",
- "value": "MaybeResponsive<\"\" | MaybeTwoValuesShorthandProperty>",
- "description": "The inline-direction padding (left and right in horizontal writing modes).\n\nAccepts a single value for both sides or two space-separated values for inline-start and inline-end.\n\n**Example:** `large none` applies `large` to the left and `none` to the right.\n\nOverrides the inline value from `padding`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingInlineStart",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The inline-start padding (left in LTR writing modes, right in RTL).\n\nOverrides the inline-start value from `paddingInline`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingInlineEnd",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The inline-end padding (right in LTR writing modes, left in RTL).\n\nOverrides the inline-end value from `paddingInline`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "border",
- "value": "BorderShorthand",
- "description": "A border applied using shorthand syntax to specify width, color, and style in a single property.",
- "defaultValue": "'none' - equivalent to `none base auto`.",
- "examples": [
- {
- "title": "Example",
- "description": "",
- "tabs": [
- {
- "code": "// The following are equivalent:\n\n",
- "title": "Example"
- }
- ]
- }
- ]
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderWidth",
- "value": "\"\" | MaybeAllValuesShorthandProperty<\"small\" | \"small-100\" | \"base\" | \"large\" | \"large-100\" | \"none\">",
- "description": "The thickness of the border on all sides. When set, this overrides the width value specified in the `border` property.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderStyle",
- "value": "\"\" | MaybeAllValuesShorthandProperty",
- "description": "The visual style of the border on all sides, such as solid, dashed, or dotted. When set, this overrides the style value specified in the `border` property.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderColor",
- "value": "\"\" | ColorKeyword",
- "description": "The color of the border using the design system's color scale. When set, this overrides the color value specified in the `border` property.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderRadius",
- "value": "MaybeAllValuesShorthandProperty",
- "description": "The roundedness of the element's corners using the design system's radius scale.",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityLabel",
- "value": "string",
- "description": "A label that describes the purpose or content of the component for assistive technologies like screen readers. Use this to provide additional context when the visible content alone doesn't clearly convey the component's purpose."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityVisibility",
- "value": "\"visible\" | \"hidden\" | \"exclusive\"",
- "description": "The visibility mode of the element for both visual and assistive technology users.\n\n- `visible`: The element is visible to all users (both sighted users and screen readers).\n- `hidden`: The element is visually visible but hidden from screen readers. Use this for decorative elements that don't provide meaningful information.\n- `exclusive`: The element is visually hidden but announced by screen readers. Use this for screen-reader-only content like skip links or additional context.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "display",
- "value": "MaybeResponsive<\"auto\" | \"none\">",
- "description": "The outer [display](https://developer.mozilla.org/en-US/docs/Web/CSS/display) type of the component. The outer type sets a component's participation in [flow layout](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_flow_layout).\n\n- `auto` the component's initial value. The actual value depends on the component and context.\n- `none` hides the component from display and removes it from the accessibility tree, making it invisible to screen readers.",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class GridItem extends BoxElement implements GridItemProps {\n accessor gridColumn: GridItemProps['gridColumn'];\n accessor gridRow: GridItemProps['gridRow'];\n constructor();\n}"
- },
- "Heading": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Heading",
- "description": "Configure the following properties on the heading component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityRole",
- "value": "\"none\" | \"presentation\" | \"heading\"",
- "description": "The semantic meaning of the component’s content. When set, the role will be used by assistive technologies to help users navigate the page.\n\n- `none`: Completely hides the element and its content from assistive technologies\n- `presentation`: Removes semantic meaning, making the image purely decorative and ignored by screen readers.\n- `img`: Identifies the element as an image that conveys meaningful information to users.",
- "defaultValue": "'heading'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "lineClamp",
- "value": "number",
- "description": "The maximum number of lines to display before truncating the text content.\n\nLearn more about the [-webkit-line-clamp property](https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-line-clamp).",
- "defaultValue": "Infinity - no truncation is applied"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityVisibility",
- "value": "\"visible\" | \"hidden\" | \"exclusive\"",
- "description": "The visibility mode of the element for both visual and assistive technology users.\n\n- `visible`: The element is visible to all users (both sighted users and screen readers).\n- `hidden`: The element is visually visible but hidden from screen readers. Use this for decorative elements that don't provide meaningful information.\n- `exclusive`: The element is visually hidden but announced by screen readers. Use this for screen-reader-only content like skip links or additional context.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Heading extends PreactCustomElement implements HeadingProps {\n accessor accessibilityRole: HeadingProps['accessibilityRole'];\n accessor lineClamp: HeadingProps['lineClamp'];\n accessor accessibilityVisibility: HeadingProps['accessibilityVisibility'];\n constructor();\n}"
- },
- "Icon": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Icon",
- "description": "Configure the following properties on the icon component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "color",
- "value": "\"base\" | \"subdued\"",
- "description": "The color emphasis level that controls visual intensity.\n\n- `base`: Primary color for body text, standard UI elements, and general content with good readability.\n- `subdued`: Deemphasized color for secondary text, supporting labels, and less critical interface elements.",
- "defaultValue": "'base'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "tone",
- "value": "\"info\" | \"success\" | \"warning\" | \"critical\" | \"auto\" | \"neutral\" | \"caution\"",
- "description": "The semantic meaning and color treatment of the component.\n\n- `info`: Informational content or helpful tips.\n- `success`: Positive outcomes or successful states.\n- `warning`: Important warnings about potential issues.\n- `critical`: Urgent problems or destructive actions.\n- `auto`: Automatically determined based on context.\n- `neutral`: General information without specific intent.\n- `caution`: Advisory notices that need attention.",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "type",
- "value": "\"\" | \"replace\" | \"search\" | \"split\" | \"link\" | \"edit\" | \"info\" | \"incomplete\" | \"complete\" | \"product\" | \"variant\" | \"collection\" | \"select\" | \"color\" | \"money\" | \"order\" | \"code\" | \"adjust\" | \"affiliate\" | \"airplane\" | \"alert-bubble\" | \"alert-circle\" | \"alert-diamond\" | \"alert-location\" | \"alert-octagon\" | \"alert-octagon-filled\" | \"alert-triangle\" | \"alert-triangle-filled\" | \"app-extension\" | \"apps\" | \"archive\" | \"arrow-down\" | \"arrow-down-circle\" | \"arrow-down-right\" | \"arrow-left\" | \"arrow-left-circle\" | \"arrow-right\" | \"arrow-right-circle\" | \"arrow-up\" | \"arrow-up-circle\" | \"arrow-up-right\" | \"arrows-in-horizontal\" | \"arrows-out-horizontal\" | \"asterisk\" | \"attachment\" | \"automation\" | \"backspace\" | \"bag\" | \"bank\" | \"barcode\" | \"battery-low\" | \"bill\" | \"blank\" | \"blog\" | \"bolt\" | \"bolt-filled\" | \"book\" | \"book-open\" | \"bug\" | \"bullet\" | \"business-entity\" | \"button\" | \"button-press\" | \"calculator\" | \"calendar\" | \"calendar-check\" | \"calendar-compare\" | \"calendar-list\" | \"calendar-time\" | \"camera\" | \"camera-flip\" | \"caret-down\" | \"caret-left\" | \"caret-right\" | \"caret-up\" | \"cart\" | \"cart-abandoned\" | \"cart-discount\" | \"cart-down\" | \"cart-filled\" | \"cart-sale\" | \"cart-send\" | \"cart-up\" | \"cash-dollar\" | \"cash-euro\" | \"cash-pound\" | \"cash-rupee\" | \"cash-yen\" | \"catalog-product\" | \"categories\" | \"channels\" | \"chart-cohort\" | \"chart-donut\" | \"chart-funnel\" | \"chart-histogram-first\" | \"chart-histogram-first-last\" | \"chart-histogram-flat\" | \"chart-histogram-full\" | \"chart-histogram-growth\" | \"chart-histogram-last\" | \"chart-histogram-second-last\" | \"chart-horizontal\" | \"chart-line\" | \"chart-popular\" | \"chart-stacked\" | \"chart-vertical\" | \"chat\" | \"chat-new\" | \"chat-referral\" | \"check\" | \"check-circle\" | \"check-circle-filled\" | \"checkbox\" | \"chevron-down\" | \"chevron-down-circle\" | \"chevron-left\" | \"chevron-left-circle\" | \"chevron-right\" | \"chevron-right-circle\" | \"chevron-up\" | \"chevron-up-circle\" | \"circle\" | \"circle-dashed\" | \"clipboard\" | \"clipboard-check\" | \"clipboard-checklist\" | \"clock\" | \"clock-list\" | \"clock-revert\" | \"code-add\" | \"collection-featured\" | \"collection-list\" | \"collection-reference\" | \"color-none\" | \"compass\" | \"compose\" | \"confetti\" | \"connect\" | \"content\" | \"contract\" | \"corner-pill\" | \"corner-round\" | \"corner-square\" | \"credit-card\" | \"credit-card-cancel\" | \"credit-card-percent\" | \"credit-card-reader\" | \"credit-card-reader-chip\" | \"credit-card-reader-tap\" | \"credit-card-secure\" | \"credit-card-tap-chip\" | \"crop\" | \"currency-convert\" | \"cursor\" | \"cursor-banner\" | \"cursor-option\" | \"data-presentation\" | \"data-table\" | \"database\" | \"database-add\" | \"database-connect\" | \"delete\" | \"delivered\" | \"delivery\" | \"desktop\" | \"disabled\" | \"disabled-filled\" | \"discount\" | \"discount-add\" | \"discount-automatic\" | \"discount-code\" | \"discount-remove\" | \"dns-settings\" | \"dock-floating\" | \"dock-side\" | \"domain\" | \"domain-landing-page\" | \"domain-new\" | \"domain-redirect\" | \"download\" | \"drag-drop\" | \"drag-handle\" | \"drawer\" | \"duplicate\" | \"email\" | \"email-follow-up\" | \"email-newsletter\" | \"empty\" | \"enabled\" | \"enter\" | \"envelope\" | \"envelope-soft-pack\" | \"eraser\" | \"exchange\" | \"exit\" | \"export\" | \"external\" | \"eye-check-mark\" | \"eye-dropper\" | \"eye-dropper-list\" | \"eye-first\" | \"eyeglasses\" | \"fav\" | \"favicon\" | \"file\" | \"file-list\" | \"filter\" | \"filter-active\" | \"flag\" | \"flip-horizontal\" | \"flip-vertical\" | \"flower\" | \"folder\" | \"folder-add\" | \"folder-down\" | \"folder-remove\" | \"folder-up\" | \"food\" | \"foreground\" | \"forklift\" | \"forms\" | \"games\" | \"gauge\" | \"geolocation\" | \"gift\" | \"gift-card\" | \"git-branch\" | \"git-commit\" | \"git-repository\" | \"globe\" | \"globe-asia\" | \"globe-europe\" | \"globe-lines\" | \"globe-list\" | \"graduation-hat\" | \"grid\" | \"hashtag\" | \"hashtag-decimal\" | \"hashtag-list\" | \"heart\" | \"hide\" | \"hide-filled\" | \"home\" | \"home-filled\" | \"icons\" | \"identity-card\" | \"image\" | \"image-add\" | \"image-alt\" | \"image-explore\" | \"image-magic\" | \"image-none\" | \"image-with-text-overlay\" | \"images\" | \"import\" | \"in-progress\" | \"incentive\" | \"incoming\" | \"info-filled\" | \"inheritance\" | \"inventory\" | \"inventory-edit\" | \"inventory-list\" | \"inventory-transfer\" | \"inventory-updated\" | \"iq\" | \"key\" | \"keyboard\" | \"keyboard-filled\" | \"keyboard-hide\" | \"keypad\" | \"label-printer\" | \"language\" | \"language-translate\" | \"layout-block\" | \"layout-buy-button\" | \"layout-buy-button-horizontal\" | \"layout-buy-button-vertical\" | \"layout-column-1\" | \"layout-columns-2\" | \"layout-columns-3\" | \"layout-footer\" | \"layout-header\" | \"layout-logo-block\" | \"layout-popup\" | \"layout-rows-2\" | \"layout-section\" | \"layout-sidebar-left\" | \"layout-sidebar-right\" | \"lightbulb\" | \"link-list\" | \"list-bulleted\" | \"list-bulleted-filled\" | \"list-numbered\" | \"live\" | \"live-critical\" | \"live-none\" | \"location\" | \"location-none\" | \"lock\" | \"map\" | \"markets\" | \"markets-euro\" | \"markets-rupee\" | \"markets-yen\" | \"maximize\" | \"measurement-size\" | \"measurement-size-list\" | \"measurement-volume\" | \"measurement-volume-list\" | \"measurement-weight\" | \"measurement-weight-list\" | \"media-receiver\" | \"megaphone\" | \"mention\" | \"menu\" | \"menu-filled\" | \"menu-horizontal\" | \"menu-vertical\" | \"merge\" | \"metafields\" | \"metaobject\" | \"metaobject-list\" | \"metaobject-reference\" | \"microphone\" | \"microphone-muted\" | \"minimize\" | \"minus\" | \"minus-circle\" | \"mobile\" | \"money-none\" | \"money-split\" | \"moon\" | \"nature\" | \"note\" | \"note-add\" | \"notification\" | \"number-one\" | \"order-batches\" | \"order-draft\" | \"order-filled\" | \"order-first\" | \"order-fulfilled\" | \"order-repeat\" | \"order-unfulfilled\" | \"orders-status\" | \"organization\" | \"outdent\" | \"outgoing\" | \"package\" | \"package-cancel\" | \"package-fulfilled\" | \"package-on-hold\" | \"package-reassign\" | \"package-returned\" | \"page\" | \"page-add\" | \"page-attachment\" | \"page-clock\" | \"page-down\" | \"page-heart\" | \"page-list\" | \"page-reference\" | \"page-remove\" | \"page-report\" | \"page-up\" | \"pagination-end\" | \"pagination-start\" | \"paint-brush-flat\" | \"paint-brush-round\" | \"paper-check\" | \"partially-complete\" | \"passkey\" | \"paste\" | \"pause-circle\" | \"payment\" | \"payment-capture\" | \"payout\" | \"payout-dollar\" | \"payout-euro\" | \"payout-pound\" | \"payout-rupee\" | \"payout-yen\" | \"person\" | \"person-add\" | \"person-exit\" | \"person-filled\" | \"person-list\" | \"person-lock\" | \"person-remove\" | \"person-segment\" | \"personalized-text\" | \"phablet\" | \"phone\" | \"phone-down\" | \"phone-down-filled\" | \"phone-in\" | \"phone-out\" | \"pin\" | \"pin-remove\" | \"plan\" | \"play\" | \"play-circle\" | \"plus\" | \"plus-circle\" | \"plus-circle-down\" | \"plus-circle-filled\" | \"plus-circle-up\" | \"point-of-sale\" | \"point-of-sale-register\" | \"price-list\" | \"print\" | \"product-add\" | \"product-cost\" | \"product-filled\" | \"product-list\" | \"product-reference\" | \"product-remove\" | \"product-return\" | \"product-unavailable\" | \"profile\" | \"profile-filled\" | \"question-circle\" | \"question-circle-filled\" | \"radio-control\" | \"receipt\" | \"receipt-dollar\" | \"receipt-euro\" | \"receipt-folded\" | \"receipt-paid\" | \"receipt-pound\" | \"receipt-refund\" | \"receipt-rupee\" | \"receipt-yen\" | \"receivables\" | \"redo\" | \"referral-code\" | \"refresh\" | \"remove-background\" | \"reorder\" | \"replay\" | \"reset\" | \"return\" | \"reward\" | \"rocket\" | \"rotate-left\" | \"rotate-right\" | \"sandbox\" | \"save\" | \"savings\" | \"scan-qr-code\" | \"search-add\" | \"search-list\" | \"search-recent\" | \"search-resource\" | \"send\" | \"settings\" | \"share\" | \"shield-check-mark\" | \"shield-none\" | \"shield-pending\" | \"shield-person\" | \"shipping-label\" | \"shipping-label-cancel\" | \"shopcodes\" | \"slideshow\" | \"smiley-happy\" | \"smiley-joy\" | \"smiley-neutral\" | \"smiley-sad\" | \"social-ad\" | \"social-post\" | \"sort\" | \"sort-ascending\" | \"sort-descending\" | \"sound\" | \"sports\" | \"star\" | \"star-circle\" | \"star-filled\" | \"star-half\" | \"star-list\" | \"status\" | \"status-active\" | \"stop-circle\" | \"store\" | \"store-import\" | \"store-managed\" | \"store-online\" | \"sun\" | \"table\" | \"table-masonry\" | \"tablet\" | \"target\" | \"tax\" | \"team\" | \"text\" | \"text-align-center\" | \"text-align-left\" | \"text-align-right\" | \"text-block\" | \"text-bold\" | \"text-color\" | \"text-font\" | \"text-font-list\" | \"text-grammar\" | \"text-in-columns\" | \"text-in-rows\" | \"text-indent\" | \"text-indent-remove\" | \"text-italic\" | \"text-quote\" | \"text-title\" | \"text-underline\" | \"text-with-image\" | \"theme\" | \"theme-edit\" | \"theme-store\" | \"theme-template\" | \"three-d-environment\" | \"thumbs-down\" | \"thumbs-up\" | \"tip-jar\" | \"toggle-off\" | \"toggle-on\" | \"transaction\" | \"transaction-fee-add\" | \"transaction-fee-dollar\" | \"transaction-fee-euro\" | \"transaction-fee-pound\" | \"transaction-fee-rupee\" | \"transaction-fee-yen\" | \"transfer\" | \"transfer-in\" | \"transfer-internal\" | \"transfer-out\" | \"truck\" | \"undo\" | \"unknown-device\" | \"unlock\" | \"upload\" | \"variant-list\" | \"video\" | \"video-list\" | \"view\" | \"viewport-narrow\" | \"viewport-short\" | \"viewport-tall\" | \"viewport-wide\" | \"wallet\" | \"wand\" | \"watch\" | \"wifi\" | \"work\" | \"work-list\" | \"wrench\" | \"x\" | \"x-circle\" | \"x-circle-filled\"",
- "description": "The icon to display from the icon library.\n\nSet to a valid icon name to display that icon. To hide the icon completely, use an empty string `''`. To reserve the icon's space without displaying an icon, use `'empty'`."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "size",
- "value": "\"small\" | \"base\"",
- "description": "The size of the icon.\n\n- `small`: Smaller icon suitable for inline use within text or compact UI elements.\n- `base`: Default size that works well for standalone icons and standard use cases.",
- "defaultValue": "'base'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "interestFor",
- "value": "string",
- "description": "The ID of the component to show when users hover over or focus on this component. Use this to connect interactive components to popovers or tooltips that provide additional context or information."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Icon extends PreactCustomElement implements IconProps {\n accessor color: IconProps['color'];\n accessor tone: IconProps['tone'];\n accessor type: IconProps['type'];\n accessor size: IconProps['size'];\n accessor interestFor: string;\n constructor();\n}"
- },
- "Image": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Image",
- "description": "Configure the following properties on the image component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "src",
- "value": "string",
- "description": "The image source (either a remote URL or a local file resource).\n\nWhen the image is loading or no `src` is provided, a placeholder is rendered."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "srcSet",
- "value": "string",
- "description": "A set of image sources and their width or pixel density descriptors. This overrides the `src` property.\n\nLearn more about the [srcset attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#srcset)."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "sizes",
- "value": "string",
- "description": "A set of media conditions and their corresponding sizes.\n\nLearn more about the [sizes attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#sizes)."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "alt",
- "value": "string",
- "description": "Alternative text that describes the image for accessibility.\n\nProvides a text description of the image for users with assistive technology and serves as a fallback when the image fails to load. A well-written description enables people with visual impairments to understand non-text content.\n\nWhen a screen reader encounters an image, it reads this description aloud. When an image fails to load, this text displays on screen, helping all users understand what content was intended.\n\nLearn more about [writing effective alt text](https://www.shopify.com/ca/blog/image-alt-text#4) and the [alt attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#alt).",
- "defaultValue": "``"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "aspectRatio",
- "value": "`${number}` | `${number}/${number}` | `${number}/ ${number}` | `${number} /${number}` | `${number} / ${number}`",
- "description": "The aspect ratio of the image.\n\nThe rendering of the image will depend on the `inlineSize` value:\n\n- `inlineSize=\"fill\"`: the aspect ratio will be respected and the image will take the necessary space.\n- `inlineSize=\"auto\"`: the image will not render until it has loaded and the aspect ratio will be ignored.\n\nFor example, if the value is set as `50 / 100`, the getter returns `50 / 100`. If the value is set as `0.5`, the getter returns `0.5 / 1`.\n\nLearn more about the [aspect-ratio property](https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio).",
- "defaultValue": "'1/1'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "objectFit",
- "value": "\"contain\" | \"cover\"",
- "description": "The image resizing behavior to fit within its container.\n\n- `contain`: Scales the image to fit within the container while maintaining its aspect ratio. The entire image is visible, but might leave empty space.\n- `cover`: Scales the image to fill the entire container while maintaining its aspect ratio. The image might be cropped to fit.\n\nThe image is always positioned in the center of the container.\n\nLearn more about the [object-fit property](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).",
- "defaultValue": "'contain'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "loading",
- "value": "\"eager\" | \"lazy\"",
- "description": "The loading strategy for the image.\n\n- `eager`: Immediately loads the image, irrespective of its position within the visible viewport.\n- `lazy`: Delays loading the image until it approaches a specified distance from the viewport.\n\nLearn more about the [loading attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#loading).",
- "defaultValue": "'eager'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityRole",
- "value": "\"none\" | \"presentation\" | \"img\"",
- "description": "The semantic meaning of the component’s content. When set, the role will be used by assistive technologies to help users navigate the page.\n\n- `none`: Completely hides the element and its content from assistive technologies\n- `presentation`: Removes semantic meaning, making the image purely decorative and ignored by screen readers.\n- `img`: Identifies the element as an image that conveys meaningful information to users.",
- "defaultValue": "'img'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "inlineSize",
- "value": "\"auto\" | \"fill\"",
- "description": "The displayed inline width of the image.\n\n- `fill`: the image will takes up 100% of the available inline size.\n- `auto`: the image will be displayed at its natural size.\n\nLearn more about the [width attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#width).",
- "defaultValue": "'fill'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "border",
- "value": "BorderShorthand",
- "description": "A border applied around the image using shorthand syntax to specify width, color, and style in a single property.",
- "defaultValue": "'none' - equivalent to `none base auto`.",
- "examples": [
- {
- "title": "Example",
- "description": "",
- "tabs": [
- {
- "code": "// The following are equivalent:\n\n",
- "title": "Example"
- }
- ]
- }
- ]
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderWidth",
- "value": "\"\" | MaybeAllValuesShorthandProperty<\"small\" | \"small-100\" | \"base\" | \"large\" | \"large-100\" | \"none\">",
- "description": "The thickness of the border around the image. When set, this overrides the width value specified in the `border` property.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderStyle",
- "value": "\"\" | MaybeAllValuesShorthandProperty",
- "description": "The visual style of the border around the image, such as solid, dashed, or dotted. When set, this overrides the style value specified in the `border` property.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderColor",
- "value": "\"\" | ColorKeyword",
- "description": "The color of the border around the image using the design system's color scale. When set, this overrides the color value specified in the `border` property.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderRadius",
- "value": "MaybeAllValuesShorthandProperty",
- "description": "The roundedness of the image's corners using the design system's radius scale.",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Image extends PreactCustomElement implements ImageProps {\n accessor src: ImageProps['src'];\n accessor srcSet: ImageProps['srcSet'];\n accessor sizes: ImageProps['sizes'];\n accessor alt: ImageProps['alt'];\n accessor aspectRatio: ImageProps['aspectRatio'];\n accessor objectFit: ImageProps['objectFit'];\n accessor loading: ImageProps['loading'];\n accessor accessibilityRole: ImageProps['accessibilityRole'];\n accessor inlineSize: ImageProps['inlineSize'];\n /**\n * A border applied around the image using shorthand syntax to specify width, color, and style in a single property.\n */\n accessor border: ImageProps['border'];\n /**\n * The thickness of the border around the image. When set, this overrides the width value specified in the `border` property.\n */\n accessor borderWidth: ImageProps['borderWidth'];\n /**\n * The visual style of the border around the image, such as solid, dashed, or dotted. When set, this overrides the style value specified in the `border` property.\n */\n accessor borderStyle: ImageProps['borderStyle'];\n /**\n * The color of the border around the image using the design system's color scale. When set, this overrides the color value specified in the `border` property.\n */\n accessor borderColor: ImageProps['borderColor'];\n /**\n * The roundedness of the image's corners using the design system's radius scale.\n */\n accessor borderRadius: ImageProps['borderRadius'];\n constructor();\n}"
- },
- "Link": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Link",
- "description": "Configure the following properties on the link component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "tone",
- "value": "\"critical\" | \"auto\" | \"neutral\"",
- "description": "The semantic meaning and color treatment of the component.\n\n- `critical`: Urgent problems or destructive actions.\n- `auto`: Automatically determined based on context.\n- `neutral`: General information without specific intent.",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityLabel",
- "value": "string",
- "description": "A label that describes the purpose or content of the component for assistive technologies like screen readers. Use this to provide additional context when the visible content alone doesn't clearly convey the component's purpose."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "href",
- "value": "string",
- "description": "The URL to navigate to when clicked. The `click` event fires first, then navigation occurs. If `commandFor` is also set, the command executes instead of navigation."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "target",
- "value": "\"auto\" | AnyString | \"_blank\" | \"_self\" | \"_parent\" | \"_top\"",
- "description": "The browsing context where the linked URL should be displayed.\n\n- `auto`: The target is automatically determined based on the origin of the URL.\n- `_blank`: Opens the URL in a new window or tab.\n- `_self`: Opens the URL in the same browsing context as the current one.\n- `_parent`: Opens the URL in the parent browsing context of the current one. If there is no parent, behaves as `_self`.\n- `_top`: Opens the URL in the topmost browsing context (the highest ancestor of the current one). If there is no ancestor, behaves as `_self`.",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "download",
- "value": "string",
- "description": "Prompts the browser to download the linked URL rather than navigate to it. When set, the value specifies the suggested filename for the downloaded file.\n\nThe filename suggestion is only respected for same-origin URLs, `blob:`, and `data:` schemes. Cross-origin URLs can still trigger downloads, but browsers might ignore the suggested filename.\n\nLearn more about the [download attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download)."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "lang",
- "value": "string",
- "description": "The language of the text content. Use this when the text is in a different language than the rest of the page, allowing assistive technologies such as screen readers to invoke the correct pronunciation. The value should be a valid language subtag from the [IANA language subtag registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry)."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertySignature",
- "name": "command",
- "value": "'--auto' | '--show' | '--hide' | '--toggle'",
- "description": "The action that [command](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#command) should take when this component is activated.\n\n- `--auto`: A default action for the target component.\n- `--show`: Shows the target component.\n- `--hide`: Hides the target component.\n- `--toggle`: Toggles the visibility of the target component.",
- "defaultValue": "'--auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertySignature",
- "name": "commandFor",
- "value": "string",
- "description": "The component that [commandFor](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#commandfor) should act on when this component is activated."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertySignature",
- "name": "interestFor",
- "value": "string",
- "description": "The ID of the component to show when users hover over or focus on this component. Use this to connect interactive components to popovers or tooltips that provide additional context or information."
- }
- ],
- "value": "declare class Link extends Link_base implements LinkProps {\n accessor tone: LinkProps['tone'];\n accessor accessibilityLabel: LinkProps['accessibilityLabel'];\n accessor href: LinkProps['href'];\n accessor target: LinkProps['target'];\n accessor download: LinkProps['download'];\n accessor lang: LinkProps['lang'];\n constructor();\n}"
- },
- "ListItem": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "ListItem",
- "description": "The list item component represents a single entry within an ordered list or unordered list. Use list item to structure individual points, steps, or items within a list, with each item automatically receiving appropriate list markers (bullets or numbers) from its parent list.\n\nList item must be used as a direct child of ordered list or unordered list components. Each list item can contain text, inline formatting, or other components to create rich list content.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class ListItem extends PreactCustomElement implements ListItemProps {\n constructor();\n}"
- },
- "Menu": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Menu",
- "description": "Configure the following properties on the menu component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityLabel",
- "value": "string",
- "description": "A label that describes the purpose or content of the component for assistive technologies like screen readers. Use this to provide additional context when the visible content alone doesn't clearly convey the component's purpose."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@overlayHidden@11750",
- "value": "boolean",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@overlayActivator@11751",
- "value": "HTMLElement",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@overlayHideFrameId@11752",
- "value": "number",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Menu extends PreactOverlayElement implements MenuProps {\n accessor accessibilityLabel: string;\n constructor();\n /** @private */\n connectedCallback(): void;\n /** @private */\n disconnectedCallback(): void;\n}"
- },
- "MoneyField": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "MoneyField",
- "description": "Configure the following properties on the money field component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "max",
- "value": "number",
- "description": "The highest decimal or integer value accepted for the field. When used with `step`, the value rounds down to the maximum number.\n\nUsers can still type values higher than the maximum using the keyboard. Implement validation to enforce this constraint.",
- "defaultValue": "Infinity"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "min",
- "value": "number",
- "description": "The lowest decimal or integer value accepted for the field. When used with `step`, the value rounds up to the minimum number.\n\nUsers can still type values lower than the minimum using the keyboard. Implement validation to enforce this constraint.",
- "defaultValue": "-Infinity"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "value",
- "value": "string",
- "description": "The current monetary value in the field as a string. When setting this property programmatically, it updates the field's display value. When reading it, you get the user's current input. The value should be a numeric string representing the amount in the store's currency."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "autocomplete",
- "value": "string",
- "description": "Controls browser autofill behavior for the field.\n\nBasic values:\n- `on` - Enables autofill without specifying content type (default)\n- `off` - Disables autofill for sensitive data or one-time codes\n\nSpecific field values describe the expected data type. You can optionally prefix these with:\n- `section-${string}` - Scopes autofill to a specific form section (when multiple forms exist on the same page)\n- `shipping` or `billing` - Indicates whether the data is for shipping or billing purposes\n- Both section and group (for example, `section-primary shipping email`)\n\nProviding a specific autofill token helps browsers suggest more relevant saved data.\n\nLearn more about the set of [autocomplete values](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill-detail-tokens) supported in browsers.",
- "defaultValue": "'on' for everything else"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultValue",
- "value": "string",
- "description": "The initial value of the field when it first loads. Unlike `placeholder`, this is a real value that the user can edit and that gets submitted with the form. Once the user starts typing, their input replaces it. Changing this property after the field has loaded has no effect. To update the field value at any time, use `value` instead."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "details",
- "value": "string",
- "description": "Supplementary text displayed below the checkbox to provide additional context, instructions, or help. Use this to explain what checking the box means or provide guidance to users. This text is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "error",
- "value": "string",
- "description": "An error message displayed below the checkbox to indicate validation problems. When set, the checkbox is styled with error indicators and the message is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "label",
- "value": "string",
- "description": "The text displayed as the field label, which identifies the purpose of the field to users. This label is associated with the field for accessibility and helps users understand what information to provide."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "labelAccessibilityVisibility",
- "value": "\"visible\" | \"exclusive\"",
- "description": "Controls whether the label is visible to all users or only to screen readers.\n\n- `visible`: The label is shown to everyone (default).\n- `exclusive`: The label is visually hidden but still announced by screen readers.\n\nUse `exclusive` when the surrounding context makes the label redundant visually, but screen reader users still need it for clarity.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "placeholder",
- "value": "string",
- "description": "The placeholder text displayed in the field when it's empty, providing a hint about the expected input format or value."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "readOnly",
- "value": "boolean",
- "description": "Whether the field is read-only and can't be edited. Read-only fields remain focusable and their content is announced by screen readers.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "required",
- "value": "boolean",
- "description": "Whether the field requires a value before form submission. Displays a visual indicator and adds semantic meaning, but doesn't automatically validate or show errors. Use the `error` property to display validation messages.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "getAttribute",
- "value": "(qualifiedName: string) => string",
- "description": "Global keyboard event handlers for things like key bindings typically ignore keystrokes originating from within input elements. Unfortunately, these never account for a Custom Element being the input element.\n\nTo fix this, we spoof getAttribute & hasAttribute to make a PreactFieldElement appear as a contentEditable \"input\" when it contains a focused input element.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "hasAttribute",
- "value": "(qualifiedName: string) => boolean",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "isContentEditable",
- "value": "boolean",
- "description": "Whether the shadow tree contains a focused input (input, textarea, select, ).\n\nNote: this does _not_ return true for focussed non-field form elements like buttons.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "formResetCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the field is disabled, preventing any user interaction.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "id",
- "value": "string",
- "description": "A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "name",
- "value": "string",
- "description": "The name attribute for the field, used to identify the field's value when the form is submitted. Must be unique within the nearest containing form."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@internals$4@11381",
- "value": "ElementInternals",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class MoneyField\n extends PreactFieldElement\n implements MoneyFieldProps\n{\n accessor max: MoneyFieldProps['max'];\n accessor min: MoneyFieldProps['min'];\n /**\n * The current monetary value in the field as a string. When setting this property programmatically, it updates the field's display value. When reading it, you get the user's current input. The value should be a numeric string representing the amount in the store's currency.\n */\n get value(): string;\n set value(value: string);\n constructor();\n}"
- },
- "NumberField": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "NumberField",
- "description": "Configure the following properties on the number field component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "value",
- "value": "string",
- "description": "The current numeric value in the field as a string. When setting this property programmatically, it updates the field's display value. When reading it, you get the user's current input. The value should be a numeric string (decimal or integer)."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "inputMode",
- "value": "\"decimal\" | \"numeric\"",
- "description": "The type of virtual keyboard to display on mobile devices.\n\n- `decimal`: Shows a numeric keyboard with a decimal point, suitable for prices or measurements.\n- `numeric`: Shows a numeric keyboard without a decimal point, suitable for whole numbers like quantities.\n\nLearn more about the [inputmode attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode).",
- "defaultValue": "'decimal'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "step",
- "value": "number",
- "description": "The amount the value can increase or decrease by. This can be an integer or decimal. If a `max` or `min` is specified with `step` when increasing/decreasing the value via the buttons, the final value will always round to the `max` or `min` rather than the closest valid amount.",
- "defaultValue": "1"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "max",
- "value": "number",
- "description": "The highest decimal or integer value accepted for the field. When used with `step`, the value rounds down to the maximum number.\n\nUsers can still type values higher than the maximum using the keyboard. Implement validation to enforce this constraint.",
- "defaultValue": "Infinity"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "min",
- "value": "number",
- "description": "The lowest decimal or integer value accepted for the field. When used with `step`, the value rounds up to the minimum number.\n\nUsers can still type values lower than the minimum using the keyboard. Implement validation to enforce this constraint.",
- "defaultValue": "-Infinity"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "prefix",
- "value": "string",
- "description": "A non-editable text value displayed immediately before the editable portion of the field. This is useful for displaying an implied part of the value, such as `https://` or `+353`.\n\nThis text can't be edited by the user and is not included in the field's value. The prefix might not appear until the user interacts with the field. For example, an inline label might occupy the prefix position until the user focuses the field.",
- "defaultValue": "''"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "suffix",
- "value": "string",
- "description": "A non-editable text value displayed immediately after the editable portion of the field. This is useful for displaying an implied part of the value, such as `@shopify.com` or `%`.\n\nThis text can't be edited by the user and is not included in the field's value. The suffix might not appear until the user interacts with the field. For example, an inline label might occupy the suffix position until the user focuses the field.",
- "defaultValue": "''"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "autocomplete",
- "value": "\"on\" | \"off\" | NumberAutocompleteField | `section-${string} one-time-code` | `section-${string} cc-number` | `section-${string} cc-csc` | \"shipping one-time-code\" | \"shipping cc-number\" | \"shipping cc-csc\" | \"billing one-time-code\" | \"billing cc-number\" | \"billing cc-csc\" | `section-${string} shipping one-time-code` | `section-${string} shipping cc-number` | `section-${string} shipping cc-csc` | `section-${string} billing one-time-code` | `section-${string} billing cc-number` | `section-${string} billing cc-csc`",
- "description": "Controls browser autofill behavior for the field.\n\nBasic values:\n- `on` - Enables autofill without specifying content type (default)\n- `off` - Disables autofill for sensitive data or one-time codes\n\nSpecific field values describe the expected data type. You can optionally prefix these with:\n- `section-${string}` - Scopes autofill to a specific form section (when multiple forms exist on the same page)\n- `shipping` or `billing` - Indicates whether the data is for shipping or billing purposes\n- Both section and group (for example, `section-primary shipping email`)\n\nProviding a specific autofill token helps browsers suggest more relevant saved data.\n\nLearn more about the set of [autocomplete values](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill-detail-tokens) supported in browsers.",
- "defaultValue": "'on' for everything else"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultValue",
- "value": "string",
- "description": "The initial value of the field when it first loads. Unlike `placeholder`, this is a real value that the user can edit and that gets submitted with the form. Once the user starts typing, their input replaces it. Changing this property after the field has loaded has no effect. To update the field value at any time, use `value` instead."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "details",
- "value": "string",
- "description": "Supplementary text displayed below the checkbox to provide additional context, instructions, or help. Use this to explain what checking the box means or provide guidance to users. This text is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "error",
- "value": "string",
- "description": "An error message displayed below the checkbox to indicate validation problems. When set, the checkbox is styled with error indicators and the message is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "label",
- "value": "string",
- "description": "The text displayed as the field label, which identifies the purpose of the field to users. This label is associated with the field for accessibility and helps users understand what information to provide."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "labelAccessibilityVisibility",
- "value": "\"visible\" | \"exclusive\"",
- "description": "Controls whether the label is visible to all users or only to screen readers.\n\n- `visible`: The label is shown to everyone (default).\n- `exclusive`: The label is visually hidden but still announced by screen readers.\n\nUse `exclusive` when the surrounding context makes the label redundant visually, but screen reader users still need it for clarity.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "placeholder",
- "value": "string",
- "description": "The placeholder text displayed in the field when it's empty, providing a hint about the expected input format or value."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "readOnly",
- "value": "boolean",
- "description": "Whether the field is read-only and can't be edited. Read-only fields remain focusable and their content is announced by screen readers.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "required",
- "value": "boolean",
- "description": "Whether the field requires a value before form submission. Displays a visual indicator and adds semantic meaning, but doesn't automatically validate or show errors. Use the `error` property to display validation messages.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "getAttribute",
- "value": "(qualifiedName: string) => string",
- "description": "Global keyboard event handlers for things like key bindings typically ignore keystrokes originating from within input elements. Unfortunately, these never account for a Custom Element being the input element.\n\nTo fix this, we spoof getAttribute & hasAttribute to make a PreactFieldElement appear as a contentEditable \"input\" when it contains a focused input element.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "hasAttribute",
- "value": "(qualifiedName: string) => boolean",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "isContentEditable",
- "value": "boolean",
- "description": "Whether the shadow tree contains a focused input (input, textarea, select, ).\n\nNote: this does _not_ return true for focussed non-field form elements like buttons.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "formResetCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the field is disabled, preventing any user interaction.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "id",
- "value": "string",
- "description": "A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "name",
- "value": "string",
- "description": "The name attribute for the field, used to identify the field's value when the form is submitted. Must be unique within the nearest containing form."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@internals$4@11381",
- "value": "ElementInternals",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class NumberField\n extends PreactFieldElement\n implements NumberFieldProps\n{\n /**\n * The current numeric value in the field as a string. When setting this property programmatically, it updates the field's display value. When reading it, you get the user's current input. The value should be a numeric string (decimal or integer).\n */\n get value(): string;\n set value(value: string);\n accessor inputMode: NumberFieldProps['inputMode'];\n accessor step: NumberFieldProps['step'];\n accessor max: NumberFieldProps['max'];\n accessor min: NumberFieldProps['min'];\n accessor prefix: NumberFieldProps['prefix'];\n accessor suffix: NumberFieldProps['suffix'];\n constructor();\n}"
- },
- "NumberAutocompleteField": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "NumberAutocompleteField",
- "value": "'one-time-code' | 'cc-number' | 'cc-csc'",
- "description": "Represents autocomplete values that are valid for number input fields. This is a subset of `AnyAutocompleteField` containing only fields suitable for numeric inputs.\n\nAvailable values:\n- `one-time-code` - One-time codes for authentication (OTP, 2FA codes)\n- `cc-number` - Credit card number\n- `cc-csc` - Credit card security code (CVV/CVC)",
- "isPublicDocs": true
- },
- "Option": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Option",
- "description": "Represents a single option within a select component. Use only as a child of s-select components.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "selected",
- "value": "boolean",
- "description": "Whether the option is currently selected. Use this for controlled components where you manage the selection state.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultSelected",
- "value": "boolean",
- "description": "The initial selected state for uncontrolled components. Use this when you want the option to start selected but don't need to control its state afterward.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "value",
- "value": "string",
- "description": "The value submitted with the form when this checkbox is checked. If not specified, the default value is \"on\"."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the checkbox is disabled, preventing user interaction. Disabled checkboxes appear dimmed and their values aren't submitted with forms.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Option extends PreactCustomElement implements OptionProps {\n accessor selected: OptionProps['selected'];\n accessor defaultSelected: OptionProps['defaultSelected'];\n accessor value: OptionProps['value'];\n accessor disabled: OptionProps['disabled'];\n constructor();\n}"
- },
- "OptionGroup": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "OptionGroup",
- "description": "Represents a group of options within a select component. Use only as a child of `s-select` components.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the options within this group can be selected or not.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "label",
- "value": "string",
- "description": "The user-facing label for this group of options."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class OptionGroup\n extends PreactCustomElement\n implements OptionGroupProps\n{\n accessor disabled: OptionGroupProps['disabled'];\n accessor label: OptionGroupProps['label'];\n constructor();\n}"
- },
- "OrderedList": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "OrderedList",
- "description": "Configure the following properties on the ordered list component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class OrderedList\n extends PreactCustomElement\n implements OrderedListProps\n{\n constructor();\n}"
- },
- "Paragraph": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Paragraph",
- "description": "Configure the following properties on the paragraph component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "fontVariantNumeric",
- "value": "\"auto\" | \"normal\" | \"tabular-nums\"",
- "description": "The rendering style for numbers in the font.\n\n- `auto`: Inherits the setting from the parent element.\n- `normal`: Uses the font's default numeric glyphs.\n- `tabular-nums`: Uses fixed-width numeric glyphs, ensuring numbers align vertically in tables or lists.\n\nLearn more about the [font-variant-numeric property](https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric).",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "lineClamp",
- "value": "number",
- "description": "The maximum number of lines to display before truncating the text content.\n\nLearn more about the [-webkit-line-clamp property](https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-line-clamp).",
- "defaultValue": "Infinity - no truncation is applied"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "tone",
- "value": "\"info\" | \"success\" | \"warning\" | \"critical\" | \"caution\"",
- "description": "The semantic tone that's applied to the paragraph text, which changes its color to convey meaning.\n\n- `info`: Informational content or helpful tips (blue).\n- `success`: Positive outcomes or successful states (green).\n- `warning`: Important warnings about potential issues (orange).\n- `critical`: Urgent problems or destructive actions (red).\n- `caution`: Advisory notices that need attention (yellow).",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "color",
- "value": "\"base\" | \"subdued\"",
- "description": "The color emphasis level that controls visual intensity.\n\n- `base`: Primary color for body text, standard UI elements, and general content with good readability.\n- `subdued`: Deemphasized color for secondary text, supporting labels, and less critical interface elements.",
- "defaultValue": "'base'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "dir",
- "value": "\"\" | \"auto\" | \"ltr\" | \"rtl\"",
- "description": "Indicates the directionality of the element’s text.\n\n- `\"\"`: The direction is inherited from parent elements (equivalent to not setting the attribute).\n- `auto`: The user agent determines the direction based on the content.\n- `ltr`: The languages written from left to right (such as English).\n- `rtl`: The languages written from right to left (such as Arabic).\n\nLearn more about the [dir attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir).",
- "defaultValue": "''"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityVisibility",
- "value": "\"visible\" | \"hidden\" | \"exclusive\"",
- "description": "The visibility mode of the element for both visual and assistive technology users.\n\n- `visible`: The element is visible to all users (both sighted users and screen readers).\n- `hidden`: The element is visually visible but hidden from screen readers. Use this for decorative elements that don't provide meaningful information.\n- `exclusive`: The element is visually hidden but announced by screen readers. Use this for screen-reader-only content like skip links or additional context.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Paragraph extends PreactCustomElement implements ParagraphProps {\n accessor fontVariantNumeric: ParagraphProps['fontVariantNumeric'];\n accessor lineClamp: ParagraphProps['lineClamp'];\n /**\n * The semantic tone that's applied to the paragraph text, which changes its color to convey meaning.\n *\n * - `info`: Informational content or helpful tips (blue).\n * - `success`: Positive outcomes or successful states (green).\n * - `warning`: Important warnings about potential issues (orange).\n * - `critical`: Urgent problems or destructive actions (red).\n * - `caution`: Advisory notices that need attention (yellow).\n */\n accessor tone: ParagraphProps['tone'];\n\n accessor color: ParagraphProps['color'];\n accessor dir: ParagraphProps['dir'];\n accessor accessibilityVisibility: ParagraphProps['accessibilityVisibility'];\n constructor();\n}"
- },
- "PasswordField": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "PasswordField",
- "description": "Configure the following properties on the password field component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "maxLength",
- "value": "number",
- "description": "The maximum number of characters allowed in the field.",
- "defaultValue": "Infinity"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "minLength",
- "value": "number",
- "description": "The minimum number of characters required in the field.",
- "defaultValue": "0"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "value",
- "value": "string",
- "description": "The current password value in the field as a string. When setting this property programmatically, it updates the field's display value. When reading it, you get the user's current input. The value is masked in the UI for security."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "autocomplete",
- "value": "\"on\" | \"off\" | PasswordAutocompleteField | `section-${string} current-password` | `section-${string} new-password` | \"shipping current-password\" | \"shipping new-password\" | \"billing current-password\" | \"billing new-password\" | `section-${string} shipping current-password` | `section-${string} shipping new-password` | `section-${string} billing current-password` | `section-${string} billing new-password`",
- "description": "Controls browser autofill behavior for the field.\n\nBasic values:\n- `on` - Enables autofill without specifying content type (default)\n- `off` - Disables autofill for sensitive data or one-time codes\n\nSpecific field values describe the expected data type. You can optionally prefix these with:\n- `section-${string}` - Scopes autofill to a specific form section (when multiple forms exist on the same page)\n- `shipping` or `billing` - Indicates whether the data is for shipping or billing purposes\n- Both section and group (for example, `section-primary shipping email`)\n\nProviding a specific autofill token helps browsers suggest more relevant saved data.\n\nLearn more about the set of [autocomplete values](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill-detail-tokens) supported in browsers.",
- "defaultValue": "'on' for everything else"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultValue",
- "value": "string",
- "description": "The initial value of the field when it first loads. Unlike `placeholder`, this is a real value that the user can edit and that gets submitted with the form. Once the user starts typing, their input replaces it. Changing this property after the field has loaded has no effect. To update the field value at any time, use `value` instead."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "details",
- "value": "string",
- "description": "Supplementary text displayed below the checkbox to provide additional context, instructions, or help. Use this to explain what checking the box means or provide guidance to users. This text is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "error",
- "value": "string",
- "description": "An error message displayed below the checkbox to indicate validation problems. When set, the checkbox is styled with error indicators and the message is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "label",
- "value": "string",
- "description": "The text displayed as the field label, which identifies the purpose of the field to users. This label is associated with the field for accessibility and helps users understand what information to provide."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "labelAccessibilityVisibility",
- "value": "\"visible\" | \"exclusive\"",
- "description": "Controls whether the label is visible to all users or only to screen readers.\n\n- `visible`: The label is shown to everyone (default).\n- `exclusive`: The label is visually hidden but still announced by screen readers.\n\nUse `exclusive` when the surrounding context makes the label redundant visually, but screen reader users still need it for clarity.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "placeholder",
- "value": "string",
- "description": "The placeholder text displayed in the field when it's empty, providing a hint about the expected input format or value."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "readOnly",
- "value": "boolean",
- "description": "Whether the field is read-only and can't be edited. Read-only fields remain focusable and their content is announced by screen readers.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "required",
- "value": "boolean",
- "description": "Whether the field requires a value before form submission. Displays a visual indicator and adds semantic meaning, but doesn't automatically validate or show errors. Use the `error` property to display validation messages.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "getAttribute",
- "value": "(qualifiedName: string) => string",
- "description": "Global keyboard event handlers for things like key bindings typically ignore keystrokes originating from within input elements. Unfortunately, these never account for a Custom Element being the input element.\n\nTo fix this, we spoof getAttribute & hasAttribute to make a PreactFieldElement appear as a contentEditable \"input\" when it contains a focused input element.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "hasAttribute",
- "value": "(qualifiedName: string) => boolean",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "isContentEditable",
- "value": "boolean",
- "description": "Whether the shadow tree contains a focused input (input, textarea, select, ).\n\nNote: this does _not_ return true for focussed non-field form elements like buttons.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "formResetCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the field is disabled, preventing any user interaction.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "id",
- "value": "string",
- "description": "A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "name",
- "value": "string",
- "description": "The name attribute for the field, used to identify the field's value when the form is submitted. Must be unique within the nearest containing form."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@internals$4@11381",
- "value": "ElementInternals",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class PasswordField\n extends PreactFieldElement\n implements PasswordFieldProps\n{\n accessor maxLength: PasswordFieldProps['maxLength'];\n accessor minLength: PasswordFieldProps['minLength'];\n /**\n * The current password value in the field as a string. When setting this property programmatically, it updates the field's display value. When reading it, you get the user's current input. The value is masked in the UI for security.\n */\n get value(): string;\n set value(value: string);\n constructor();\n}"
- },
- "PasswordAutocompleteField": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "PasswordAutocompleteField",
- "value": "'current-password' | 'new-password'",
- "description": "Represents autocomplete values that are valid for password input fields. This is a subset of `AnyAutocompleteField` containing only fields suitable for password inputs.\n\nAvailable values:\n- `current-password` - Existing password for login or authentication\n- `new-password` - New password when creating an account or changing password",
- "isPublicDocs": true
- },
- "QueryContainer": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "QueryContainer",
- "description": "Configure the following properties on the query container component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "containerName",
- "value": "string",
- "description": "An identifier for this container that you can reference in CSS container queries to apply styles based on this specific container's size.\n\nAll query container components automatically receive a container name of `s-default`. You can omit the container name in your queries, so `@container (inline-size <= 300px)` is equivalent to `@container s-default (inline-size <= 300px)`.\n\nWhen you provide a custom `containerName`, it's added alongside `s-default`. For example, `containerName=\"product-card\"` results in `s-default product-card` being set on the `container-name` CSS property, allowing you to target this container with `@container product-card (inline-size <= 300px)`.\n\nLearn more about the [container-name property](https://developer.mozilla.org/en-US/docs/Web/CSS/container-name).",
- "defaultValue": "''"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class QueryContainer\n extends PreactCustomElement\n implements QueryContainerProps\n{\n accessor containerName: QueryContainerProps['containerName'];\n /** @private */\n static globalStylesApplied: boolean;\n constructor();\n}"
- },
- "SearchField": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "SearchField",
- "description": "Configure the following properties on the search field component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "maxLength",
- "value": "number",
- "description": "The maximum number of characters allowed in the field.",
- "defaultValue": "Infinity"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "minLength",
- "value": "number",
- "description": "The minimum number of characters required in the field.",
- "defaultValue": "0"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "value",
- "value": "string",
- "description": "The current search query value in the field as a string. When setting this property programmatically, it updates the field's display value. When reading it, you get the user's current input."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "autocomplete",
- "value": "\"on\" | \"off\" | TextAutocompleteField | `section-${string} one-time-code` | \"shipping one-time-code\" | \"billing one-time-code\" | `section-${string} shipping one-time-code` | `section-${string} billing one-time-code` | `section-${string} language` | `section-${string} organization` | `section-${string} name` | `section-${string} additional-name` | `section-${string} address-level1` | `section-${string} address-level2` | `section-${string} address-level3` | `section-${string} address-level4` | `section-${string} address-line1` | `section-${string} address-line2` | `section-${string} address-line3` | `section-${string} country-name` | `section-${string} country` | `section-${string} family-name` | `section-${string} given-name` | `section-${string} honorific-prefix` | `section-${string} honorific-suffix` | `section-${string} nickname` | `section-${string} organization-title` | `section-${string} postal-code` | `section-${string} sex` | `section-${string} street-address` | `section-${string} transaction-currency` | `section-${string} username` | `section-${string} cc-additional-name` | `section-${string} cc-family-name` | `section-${string} cc-given-name` | `section-${string} cc-name` | `section-${string} cc-type` | \"shipping language\" | \"shipping organization\" | \"shipping name\" | \"shipping additional-name\" | \"shipping address-level1\" | \"shipping address-level2\" | \"shipping address-level3\" | \"shipping address-level4\" | \"shipping address-line1\" | \"shipping address-line2\" | \"shipping address-line3\" | \"shipping country-name\" | \"shipping country\" | \"shipping family-name\" | \"shipping given-name\" | \"shipping honorific-prefix\" | \"shipping honorific-suffix\" | \"shipping nickname\" | \"shipping organization-title\" | \"shipping postal-code\" | \"shipping sex\" | \"shipping street-address\" | \"shipping transaction-currency\" | \"shipping username\" | \"shipping cc-additional-name\" | \"shipping cc-family-name\" | \"shipping cc-given-name\" | \"shipping cc-name\" | \"shipping cc-type\" | \"billing language\" | \"billing organization\" | \"billing name\" | \"billing additional-name\" | \"billing address-level1\" | \"billing address-level2\" | \"billing address-level3\" | \"billing address-level4\" | \"billing address-line1\" | \"billing address-line2\" | \"billing address-line3\" | \"billing country-name\" | \"billing country\" | \"billing family-name\" | \"billing given-name\" | \"billing honorific-prefix\" | \"billing honorific-suffix\" | \"billing nickname\" | \"billing organization-title\" | \"billing postal-code\" | \"billing sex\" | \"billing street-address\" | \"billing transaction-currency\" | \"billing username\" | \"billing cc-additional-name\" | \"billing cc-family-name\" | \"billing cc-given-name\" | \"billing cc-name\" | \"billing cc-type\" | `section-${string} shipping language` | `section-${string} shipping organization` | `section-${string} shipping name` | `section-${string} shipping additional-name` | `section-${string} shipping address-level1` | `section-${string} shipping address-level2` | `section-${string} shipping address-level3` | `section-${string} shipping address-level4` | `section-${string} shipping address-line1` | `section-${string} shipping address-line2` | `section-${string} shipping address-line3` | `section-${string} shipping country-name` | `section-${string} shipping country` | `section-${string} shipping family-name` | `section-${string} shipping given-name` | `section-${string} shipping honorific-prefix` | `section-${string} shipping honorific-suffix` | `section-${string} shipping nickname` | `section-${string} shipping organization-title` | `section-${string} shipping postal-code` | `section-${string} shipping sex` | `section-${string} shipping street-address` | `section-${string} shipping transaction-currency` | `section-${string} shipping username` | `section-${string} shipping cc-additional-name` | `section-${string} shipping cc-family-name` | `section-${string} shipping cc-given-name` | `section-${string} shipping cc-name` | `section-${string} shipping cc-type` | `section-${string} billing language` | `section-${string} billing organization` | `section-${string} billing name` | `section-${string} billing additional-name` | `section-${string} billing address-level1` | `section-${string} billing address-level2` | `section-${string} billing address-level3` | `section-${string} billing address-level4` | `section-${string} billing address-line1` | `section-${string} billing address-line2` | `section-${string} billing address-line3` | `section-${string} billing country-name` | `section-${string} billing country` | `section-${string} billing family-name` | `section-${string} billing given-name` | `section-${string} billing honorific-prefix` | `section-${string} billing honorific-suffix` | `section-${string} billing nickname` | `section-${string} billing organization-title` | `section-${string} billing postal-code` | `section-${string} billing sex` | `section-${string} billing street-address` | `section-${string} billing transaction-currency` | `section-${string} billing username` | `section-${string} billing cc-additional-name` | `section-${string} billing cc-family-name` | `section-${string} billing cc-given-name` | `section-${string} billing cc-name` | `section-${string} billing cc-type`",
- "description": "Controls browser autofill behavior for the field.\n\nBasic values:\n- `on` - Enables autofill without specifying content type (default)\n- `off` - Disables autofill for sensitive data or one-time codes\n\nSpecific field values describe the expected data type. You can optionally prefix these with:\n- `section-${string}` - Scopes autofill to a specific form section (when multiple forms exist on the same page)\n- `shipping` or `billing` - Indicates whether the data is for shipping or billing purposes\n- Both section and group (for example, `section-primary shipping email`)\n\nProviding a specific autofill token helps browsers suggest more relevant saved data.\n\nLearn more about the set of [autocomplete values](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill-detail-tokens) supported in browsers.",
- "defaultValue": "'on' for everything else"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultValue",
- "value": "string",
- "description": "The initial value of the field when it first loads. Unlike `placeholder`, this is a real value that the user can edit and that gets submitted with the form. Once the user starts typing, their input replaces it. Changing this property after the field has loaded has no effect. To update the field value at any time, use `value` instead."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "details",
- "value": "string",
- "description": "Supplementary text displayed below the checkbox to provide additional context, instructions, or help. Use this to explain what checking the box means or provide guidance to users. This text is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "error",
- "value": "string",
- "description": "An error message displayed below the checkbox to indicate validation problems. When set, the checkbox is styled with error indicators and the message is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "label",
- "value": "string",
- "description": "The text displayed as the field label, which identifies the purpose of the field to users. This label is associated with the field for accessibility and helps users understand what information to provide."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "labelAccessibilityVisibility",
- "value": "\"visible\" | \"exclusive\"",
- "description": "Controls whether the label is visible to all users or only to screen readers.\n\n- `visible`: The label is shown to everyone (default).\n- `exclusive`: The label is visually hidden but still announced by screen readers.\n\nUse `exclusive` when the surrounding context makes the label redundant visually, but screen reader users still need it for clarity.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "placeholder",
- "value": "string",
- "description": "The placeholder text displayed in the field when it's empty, providing a hint about the expected input format or value."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "readOnly",
- "value": "boolean",
- "description": "Whether the field is read-only and can't be edited. Read-only fields remain focusable and their content is announced by screen readers.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "required",
- "value": "boolean",
- "description": "Whether the field requires a value before form submission. Displays a visual indicator and adds semantic meaning, but doesn't automatically validate or show errors. Use the `error` property to display validation messages.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "getAttribute",
- "value": "(qualifiedName: string) => string",
- "description": "Global keyboard event handlers for things like key bindings typically ignore keystrokes originating from within input elements. Unfortunately, these never account for a Custom Element being the input element.\n\nTo fix this, we spoof getAttribute & hasAttribute to make a PreactFieldElement appear as a contentEditable \"input\" when it contains a focused input element.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "hasAttribute",
- "value": "(qualifiedName: string) => boolean",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "isContentEditable",
- "value": "boolean",
- "description": "Whether the shadow tree contains a focused input (input, textarea, select, ).\n\nNote: this does _not_ return true for focussed non-field form elements like buttons.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "formResetCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the field is disabled, preventing any user interaction.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "id",
- "value": "string",
- "description": "A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "name",
- "value": "string",
- "description": "The name attribute for the field, used to identify the field's value when the form is submitted. Must be unique within the nearest containing form."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@internals$4@11381",
- "value": "ElementInternals",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class SearchField\n extends PreactFieldElement\n implements SearchFieldProps\n{\n accessor maxLength: SearchFieldProps['maxLength'];\n accessor minLength: SearchFieldProps['minLength'];\n /**\n * The current search query value in the field as a string. When setting this property programmatically, it updates the field's display value. When reading it, you get the user's current input.\n */\n get value(): string;\n set value(value: string);\n constructor();\n}"
- },
- "TextAutocompleteField": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "TextAutocompleteField",
- "value": "'language' | 'organization' | 'name' | 'additional-name' | 'address-level1' | 'address-level2' | 'address-level3' | 'address-level4' | 'address-line1' | 'address-line2' | 'address-line3' | 'country-name' | 'country' | 'family-name' | 'given-name' | 'honorific-prefix' | 'honorific-suffix' | 'nickname' | 'one-time-code' | 'organization-title' | 'postal-code' | 'sex' | 'street-address' | 'transaction-currency' | 'username' | 'cc-additional-name' | 'cc-family-name' | 'cc-given-name' | 'cc-name' | 'cc-type'",
- "description": "Represents autocomplete values that are valid for text input fields. This is a subset of `AnyAutocompleteField` containing only fields suitable for text-based inputs.\n\nAvailable values:\n- `name` - Full name\n- `given-name` - First name\n- `additional-name` - Middle name\n- `family-name` - Last name\n- `nickname` - Nickname or handle\n- `username` - Username for login\n- `honorific-prefix` - Name prefix (Mr., Mrs., Dr.)\n- `honorific-suffix` - Name suffix (Jr., Sr., III)\n- `organization` - Company or organization name\n- `organization-title` - Job title or position\n- `address-line1` - Street address (first line)\n- `address-line2` - Street address (second line)\n- `address-line3` - Street address (third line)\n- `address-level1` - State or province\n- `address-level2` - City or town\n- `address-level3` - District or locality\n- `address-level4` - Neighborhood or suburb\n- `street-address` - Complete street address (multi-line)\n- `postal-code` - Postal or ZIP code\n- `country` - Country code (US, CA, GB)\n- `country-name` - Country name (United States, Canada)\n- `language` - Preferred language\n- `sex` - Gender or sex\n- `one-time-code` - One-time codes for authentication\n- `transaction-currency` - Currency code (USD, EUR, GBP)\n- `cc-name` - Name on credit card\n- `cc-given-name` - First name on credit card\n- `cc-additional-name` - Middle name on credit card\n- `cc-family-name` - Last name on credit card\n- `cc-type` - Credit card type (Visa, Mastercard)",
- "isPublicDocs": true
- },
- "Section": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Section",
- "description": "Configure the following properties on the section component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityLabel",
- "value": "string",
- "description": "A label that describes the purpose or content of the component for assistive technologies like screen readers. Use this to provide additional context when the visible content alone doesn't clearly convey the component's purpose."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "heading",
- "value": "string",
- "description": "The heading text displayed at the top of the section. This heading provides a title for the section's content and automatically uses the appropriate semantic heading level (h2, h3, h4) based on nesting depth to maintain proper document structure."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "padding",
- "value": "\"base\" | \"none\"",
- "description": "The padding applied to all edges of the element.\n\n- `base`: applies padding that is appropriate for the element. Note that it might result in no padding if this is the right design decision in a particular context.\n- `none`: removes all padding from the element. This can be useful when elements inside the section need to span to the edge of the section. For example, a full-width image. In this case, rely on `s-box` with a padding of 'base' to bring back the desired padding for the rest of the content.",
- "defaultValue": "'base'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Section extends PreactCustomElement implements SectionProps {\n constructor();\n /** @private */\n connectedCallback(): void;\n accessor accessibilityLabel: SectionProps['accessibilityLabel'];\n accessor heading: SectionProps['heading'];\n accessor padding: SectionProps['padding'];\n}"
- },
- "Select": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Select",
- "description": "Configure the following properties on the select component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "icon",
- "value": "\"\" | \"replace\" | \"search\" | \"split\" | \"link\" | \"edit\" | \"info\" | \"incomplete\" | \"complete\" | \"product\" | \"variant\" | \"collection\" | \"select\" | \"color\" | \"money\" | \"order\" | \"code\" | \"adjust\" | \"affiliate\" | \"airplane\" | \"alert-bubble\" | \"alert-circle\" | \"alert-diamond\" | \"alert-location\" | \"alert-octagon\" | \"alert-octagon-filled\" | \"alert-triangle\" | \"alert-triangle-filled\" | \"app-extension\" | \"apps\" | \"archive\" | \"arrow-down\" | \"arrow-down-circle\" | \"arrow-down-right\" | \"arrow-left\" | \"arrow-left-circle\" | \"arrow-right\" | \"arrow-right-circle\" | \"arrow-up\" | \"arrow-up-circle\" | \"arrow-up-right\" | \"arrows-in-horizontal\" | \"arrows-out-horizontal\" | \"asterisk\" | \"attachment\" | \"automation\" | \"backspace\" | \"bag\" | \"bank\" | \"barcode\" | \"battery-low\" | \"bill\" | \"blank\" | \"blog\" | \"bolt\" | \"bolt-filled\" | \"book\" | \"book-open\" | \"bug\" | \"bullet\" | \"business-entity\" | \"button\" | \"button-press\" | \"calculator\" | \"calendar\" | \"calendar-check\" | \"calendar-compare\" | \"calendar-list\" | \"calendar-time\" | \"camera\" | \"camera-flip\" | \"caret-down\" | \"caret-left\" | \"caret-right\" | \"caret-up\" | \"cart\" | \"cart-abandoned\" | \"cart-discount\" | \"cart-down\" | \"cart-filled\" | \"cart-sale\" | \"cart-send\" | \"cart-up\" | \"cash-dollar\" | \"cash-euro\" | \"cash-pound\" | \"cash-rupee\" | \"cash-yen\" | \"catalog-product\" | \"categories\" | \"channels\" | \"chart-cohort\" | \"chart-donut\" | \"chart-funnel\" | \"chart-histogram-first\" | \"chart-histogram-first-last\" | \"chart-histogram-flat\" | \"chart-histogram-full\" | \"chart-histogram-growth\" | \"chart-histogram-last\" | \"chart-histogram-second-last\" | \"chart-horizontal\" | \"chart-line\" | \"chart-popular\" | \"chart-stacked\" | \"chart-vertical\" | \"chat\" | \"chat-new\" | \"chat-referral\" | \"check\" | \"check-circle\" | \"check-circle-filled\" | \"checkbox\" | \"chevron-down\" | \"chevron-down-circle\" | \"chevron-left\" | \"chevron-left-circle\" | \"chevron-right\" | \"chevron-right-circle\" | \"chevron-up\" | \"chevron-up-circle\" | \"circle\" | \"circle-dashed\" | \"clipboard\" | \"clipboard-check\" | \"clipboard-checklist\" | \"clock\" | \"clock-list\" | \"clock-revert\" | \"code-add\" | \"collection-featured\" | \"collection-list\" | \"collection-reference\" | \"color-none\" | \"compass\" | \"compose\" | \"confetti\" | \"connect\" | \"content\" | \"contract\" | \"corner-pill\" | \"corner-round\" | \"corner-square\" | \"credit-card\" | \"credit-card-cancel\" | \"credit-card-percent\" | \"credit-card-reader\" | \"credit-card-reader-chip\" | \"credit-card-reader-tap\" | \"credit-card-secure\" | \"credit-card-tap-chip\" | \"crop\" | \"currency-convert\" | \"cursor\" | \"cursor-banner\" | \"cursor-option\" | \"data-presentation\" | \"data-table\" | \"database\" | \"database-add\" | \"database-connect\" | \"delete\" | \"delivered\" | \"delivery\" | \"desktop\" | \"disabled\" | \"disabled-filled\" | \"discount\" | \"discount-add\" | \"discount-automatic\" | \"discount-code\" | \"discount-remove\" | \"dns-settings\" | \"dock-floating\" | \"dock-side\" | \"domain\" | \"domain-landing-page\" | \"domain-new\" | \"domain-redirect\" | \"download\" | \"drag-drop\" | \"drag-handle\" | \"drawer\" | \"duplicate\" | \"email\" | \"email-follow-up\" | \"email-newsletter\" | \"empty\" | \"enabled\" | \"enter\" | \"envelope\" | \"envelope-soft-pack\" | \"eraser\" | \"exchange\" | \"exit\" | \"export\" | \"external\" | \"eye-check-mark\" | \"eye-dropper\" | \"eye-dropper-list\" | \"eye-first\" | \"eyeglasses\" | \"fav\" | \"favicon\" | \"file\" | \"file-list\" | \"filter\" | \"filter-active\" | \"flag\" | \"flip-horizontal\" | \"flip-vertical\" | \"flower\" | \"folder\" | \"folder-add\" | \"folder-down\" | \"folder-remove\" | \"folder-up\" | \"food\" | \"foreground\" | \"forklift\" | \"forms\" | \"games\" | \"gauge\" | \"geolocation\" | \"gift\" | \"gift-card\" | \"git-branch\" | \"git-commit\" | \"git-repository\" | \"globe\" | \"globe-asia\" | \"globe-europe\" | \"globe-lines\" | \"globe-list\" | \"graduation-hat\" | \"grid\" | \"hashtag\" | \"hashtag-decimal\" | \"hashtag-list\" | \"heart\" | \"hide\" | \"hide-filled\" | \"home\" | \"home-filled\" | \"icons\" | \"identity-card\" | \"image\" | \"image-add\" | \"image-alt\" | \"image-explore\" | \"image-magic\" | \"image-none\" | \"image-with-text-overlay\" | \"images\" | \"import\" | \"in-progress\" | \"incentive\" | \"incoming\" | \"info-filled\" | \"inheritance\" | \"inventory\" | \"inventory-edit\" | \"inventory-list\" | \"inventory-transfer\" | \"inventory-updated\" | \"iq\" | \"key\" | \"keyboard\" | \"keyboard-filled\" | \"keyboard-hide\" | \"keypad\" | \"label-printer\" | \"language\" | \"language-translate\" | \"layout-block\" | \"layout-buy-button\" | \"layout-buy-button-horizontal\" | \"layout-buy-button-vertical\" | \"layout-column-1\" | \"layout-columns-2\" | \"layout-columns-3\" | \"layout-footer\" | \"layout-header\" | \"layout-logo-block\" | \"layout-popup\" | \"layout-rows-2\" | \"layout-section\" | \"layout-sidebar-left\" | \"layout-sidebar-right\" | \"lightbulb\" | \"link-list\" | \"list-bulleted\" | \"list-bulleted-filled\" | \"list-numbered\" | \"live\" | \"live-critical\" | \"live-none\" | \"location\" | \"location-none\" | \"lock\" | \"map\" | \"markets\" | \"markets-euro\" | \"markets-rupee\" | \"markets-yen\" | \"maximize\" | \"measurement-size\" | \"measurement-size-list\" | \"measurement-volume\" | \"measurement-volume-list\" | \"measurement-weight\" | \"measurement-weight-list\" | \"media-receiver\" | \"megaphone\" | \"mention\" | \"menu\" | \"menu-filled\" | \"menu-horizontal\" | \"menu-vertical\" | \"merge\" | \"metafields\" | \"metaobject\" | \"metaobject-list\" | \"metaobject-reference\" | \"microphone\" | \"microphone-muted\" | \"minimize\" | \"minus\" | \"minus-circle\" | \"mobile\" | \"money-none\" | \"money-split\" | \"moon\" | \"nature\" | \"note\" | \"note-add\" | \"notification\" | \"number-one\" | \"order-batches\" | \"order-draft\" | \"order-filled\" | \"order-first\" | \"order-fulfilled\" | \"order-repeat\" | \"order-unfulfilled\" | \"orders-status\" | \"organization\" | \"outdent\" | \"outgoing\" | \"package\" | \"package-cancel\" | \"package-fulfilled\" | \"package-on-hold\" | \"package-reassign\" | \"package-returned\" | \"page\" | \"page-add\" | \"page-attachment\" | \"page-clock\" | \"page-down\" | \"page-heart\" | \"page-list\" | \"page-reference\" | \"page-remove\" | \"page-report\" | \"page-up\" | \"pagination-end\" | \"pagination-start\" | \"paint-brush-flat\" | \"paint-brush-round\" | \"paper-check\" | \"partially-complete\" | \"passkey\" | \"paste\" | \"pause-circle\" | \"payment\" | \"payment-capture\" | \"payout\" | \"payout-dollar\" | \"payout-euro\" | \"payout-pound\" | \"payout-rupee\" | \"payout-yen\" | \"person\" | \"person-add\" | \"person-exit\" | \"person-filled\" | \"person-list\" | \"person-lock\" | \"person-remove\" | \"person-segment\" | \"personalized-text\" | \"phablet\" | \"phone\" | \"phone-down\" | \"phone-down-filled\" | \"phone-in\" | \"phone-out\" | \"pin\" | \"pin-remove\" | \"plan\" | \"play\" | \"play-circle\" | \"plus\" | \"plus-circle\" | \"plus-circle-down\" | \"plus-circle-filled\" | \"plus-circle-up\" | \"point-of-sale\" | \"point-of-sale-register\" | \"price-list\" | \"print\" | \"product-add\" | \"product-cost\" | \"product-filled\" | \"product-list\" | \"product-reference\" | \"product-remove\" | \"product-return\" | \"product-unavailable\" | \"profile\" | \"profile-filled\" | \"question-circle\" | \"question-circle-filled\" | \"radio-control\" | \"receipt\" | \"receipt-dollar\" | \"receipt-euro\" | \"receipt-folded\" | \"receipt-paid\" | \"receipt-pound\" | \"receipt-refund\" | \"receipt-rupee\" | \"receipt-yen\" | \"receivables\" | \"redo\" | \"referral-code\" | \"refresh\" | \"remove-background\" | \"reorder\" | \"replay\" | \"reset\" | \"return\" | \"reward\" | \"rocket\" | \"rotate-left\" | \"rotate-right\" | \"sandbox\" | \"save\" | \"savings\" | \"scan-qr-code\" | \"search-add\" | \"search-list\" | \"search-recent\" | \"search-resource\" | \"send\" | \"settings\" | \"share\" | \"shield-check-mark\" | \"shield-none\" | \"shield-pending\" | \"shield-person\" | \"shipping-label\" | \"shipping-label-cancel\" | \"shopcodes\" | \"slideshow\" | \"smiley-happy\" | \"smiley-joy\" | \"smiley-neutral\" | \"smiley-sad\" | \"social-ad\" | \"social-post\" | \"sort\" | \"sort-ascending\" | \"sort-descending\" | \"sound\" | \"sports\" | \"star\" | \"star-circle\" | \"star-filled\" | \"star-half\" | \"star-list\" | \"status\" | \"status-active\" | \"stop-circle\" | \"store\" | \"store-import\" | \"store-managed\" | \"store-online\" | \"sun\" | \"table\" | \"table-masonry\" | \"tablet\" | \"target\" | \"tax\" | \"team\" | \"text\" | \"text-align-center\" | \"text-align-left\" | \"text-align-right\" | \"text-block\" | \"text-bold\" | \"text-color\" | \"text-font\" | \"text-font-list\" | \"text-grammar\" | \"text-in-columns\" | \"text-in-rows\" | \"text-indent\" | \"text-indent-remove\" | \"text-italic\" | \"text-quote\" | \"text-title\" | \"text-underline\" | \"text-with-image\" | \"theme\" | \"theme-edit\" | \"theme-store\" | \"theme-template\" | \"three-d-environment\" | \"thumbs-down\" | \"thumbs-up\" | \"tip-jar\" | \"toggle-off\" | \"toggle-on\" | \"transaction\" | \"transaction-fee-add\" | \"transaction-fee-dollar\" | \"transaction-fee-euro\" | \"transaction-fee-pound\" | \"transaction-fee-rupee\" | \"transaction-fee-yen\" | \"transfer\" | \"transfer-in\" | \"transfer-internal\" | \"transfer-out\" | \"truck\" | \"undo\" | \"unknown-device\" | \"unlock\" | \"upload\" | \"variant-list\" | \"video\" | \"video-list\" | \"view\" | \"viewport-narrow\" | \"viewport-short\" | \"viewport-tall\" | \"viewport-wide\" | \"wallet\" | \"wand\" | \"watch\" | \"wifi\" | \"work\" | \"work-list\" | \"wrench\" | \"x\" | \"x-circle\" | \"x-circle-filled\"",
- "description": "An icon displayed inside the field to provide visual context about the expected input or field purpose. Commonly used for search fields, currency inputs, or to indicate field type. Accepts any icon name from the icon library or a custom string identifier."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "details",
- "value": "string",
- "description": "Supplementary text displayed below the checkbox to provide additional context, instructions, or help. Use this to explain what checking the box means or provide guidance to users. This text is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "error",
- "value": "string",
- "description": "An error message displayed below the checkbox to indicate validation problems. When set, the checkbox is styled with error indicators and the message is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "label",
- "value": "string",
- "description": "The text displayed as the field label, which identifies the purpose of the field to users. This label is associated with the field for accessibility and helps users understand what information to provide."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "placeholder",
- "value": "string",
- "description": "The placeholder text displayed in the field when it's empty, providing a hint about the expected input format or value."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "required",
- "value": "boolean",
- "description": "Whether the field requires a value before form submission. Displays a visual indicator and adds semantic meaning, but doesn't automatically validate or show errors. Use the `error` property to display validation messages.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "labelAccessibilityVisibility",
- "value": "\"visible\" | \"exclusive\"",
- "description": "Controls whether the label is visible to all users or only to screen readers.\n\n- `visible`: The label is shown to everyone (default).\n- `exclusive`: The label is visually hidden but still announced by screen readers.\n\nUse `exclusive` when the surrounding context makes the label redundant visually, but screen reader users still need it for clarity.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "A lifecycle callback that fires when the component is removed from the DOM. Performs cleanup operations.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "value",
- "value": "string",
- "description": "The value of the currently selected option. When setting this property programmatically, it updates which option appears selected in the dropdown. When reading it, you get the `value` attribute of the currently selected option component."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "formResetCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@usedFirstOptionSymbol@12029",
- "value": "boolean",
- "description": "A flag used to determine if no value or defaultValue was set, in which case the first non-disabled option was used.\n\nThis is important because we need to use the placeholder in these situations, even though the first value will be submitted as part of the form.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@hasInitialValueSymbol@12030",
- "value": "boolean",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the field is disabled, preventing any user interaction.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "id",
- "value": "string",
- "description": "A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "name",
- "value": "string",
- "description": "The name attribute for the field, used to identify the field's value when the form is submitted. Must be unique within the nearest containing form."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@internals$4@11381",
- "value": "ElementInternals",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Select extends PreactInputElement implements SelectProps {\n accessor icon: SelectProps['icon'];\n accessor details: SelectProps['details'];\n accessor error: SelectProps['error'];\n accessor label: SelectProps['label'];\n accessor placeholder: SelectProps['placeholder'];\n accessor required: SelectProps['required'];\n accessor labelAccessibilityVisibility: SelectProps['labelAccessibilityVisibility'];\n /** @private */\n connectedCallback(): void;\n /**\n * A lifecycle callback that fires when the component is removed from the DOM. Performs cleanup operations.\n * @private\n */\n disconnectedCallback(): void;\n constructor();\n /**\n * A flag used to determine if no value or defaultValue was set, in which case the first non-disabled option was used.\n *\n * This is important because we need to use the placeholder in these situations, even though the first value will be submitted as part of the form.\n * @private\n */\n [usedFirstOptionSymbol]: boolean;\n /**\n * @private\n */\n [hasInitialValueSymbol]: boolean;\n /**\n * The value of the currently selected option. When setting this property programmatically, it updates which option appears selected in the dropdown. When reading it, you get the `value` attribute of the currently selected option component.\n */\n get value(): string;\n set value(value: string);\n /** @private */\n formResetCallback(): void;\n}"
- },
- "Spinner": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Spinner",
- "description": "Configure the following properties on the spinner component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityLabel",
- "value": "string",
- "description": "A label that describes the purpose or content of the component for assistive technologies like screen readers. Use this to provide additional context when the visible content alone doesn't clearly convey the component's purpose."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "size",
- "value": "\"base\" | \"large\" | \"large-100\"",
- "description": "The size of the loading spinner.\n\n- `base`: Default size suitable for inline loading indicators or standard UI contexts.\n- `large`: Larger spinner for more prominent loading states.\n- `large-100`: Extra large spinner for full-page or emphasized loading states.",
- "defaultValue": "'base'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Spinner extends PreactCustomElement implements SpinnerProps {\n accessor accessibilityLabel: string;\n accessor size: SpinnerProps['size'];\n constructor();\n}"
- },
- "Stack": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Stack",
- "description": "Configure the following properties on the stack component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "direction",
- "value": "MaybeResponsive<\"inline\" | \"block\">",
- "description": "The direction in which the stack's children are placed within the stack.\n\nAccepts:\n- A single value, either `inline` or `block`\n- A [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported direction values as a query value",
- "defaultValue": "'block'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "justifyContent",
- "value": "JustifyContentKeyword",
- "description": "Controls the distribution of children along the inline axis (horizontally in horizontal writing modes).\n\nUse this to position items along the primary axis of the stack - horizontally for inline stacks or vertically for block stacks when wrapped into multiple lines.",
- "defaultValue": "'normal'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "alignItems",
- "value": "AlignItemsKeyword",
- "description": "Controls the alignment of children along the block axis (vertically in horizontal writing modes).\n\nUse this to align items perpendicular to the stack direction - vertically for inline stacks or horizontally for block stacks.",
- "defaultValue": "'normal'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "alignContent",
- "value": "AlignContentKeyword",
- "description": "Controls the distribution of lines along the block axis when content wraps into multiple lines.\n\nThis property only affects stacks with wrapping content. For single-line stacks, use `alignItems` instead.",
- "defaultValue": "'normal'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "gap",
- "value": "MaybeResponsive>",
- "description": "Adjusts spacing between elements.\n\nAccepts:\n- A single [`SpacingKeyword`](/docs/api/polaris/using-web-components#scale) value applied to both axes, such as `large-100`\n- A pair of values, such as `large-100 large-500`, to set the inline and block axes respectively\n- A [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported SpacingKeyword as a query value",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "rowGap",
- "value": "MaybeResponsive<\"\" | SpacingKeyword>",
- "description": "Adjusts spacing between elements in the block axis. This overrides the row value of `gap`.\n\nAccepts:\n- A single [`SpacingKeyword`](/docs/api/polaris/using-web-components#scale) value, such as `large-100`\n- A [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported SpacingKeyword as a query value",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "columnGap",
- "value": "MaybeResponsive<\"\" | SpacingKeyword>",
- "description": "Adjusts spacing between elements in the inline axis. This overrides the column value of `gap`.\n\nAccepts:\n- A single [`SpacingKeyword`](/docs/api/polaris/using-web-components#scale) value, such as `large-100`\n- A [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported SpacingKeyword as a query value",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityRole",
- "value": "AccessibilityRole",
- "description": "The semantic meaning of the component’s content. When set, the role will be used by assistive technologies to help users navigate the page.",
- "defaultValue": "'generic'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "background",
- "value": "BackgroundColorKeyword",
- "description": "The background color of the component.",
- "defaultValue": "'transparent'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "blockSize",
- "value": "SizeUnitsOrAuto",
- "description": "The vertical size of the element in standard layouts (height in left-to-right or right-to-left writing modes).\n\nBlock size adjusts based on the writing direction: in horizontal layouts, it controls the height; in vertical layouts, it controls the width. This ensures consistent behavior across different text directions.\n\nLearn more about [block-size](https://developer.mozilla.org/en-US/docs/Web/CSS/block-size).",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "minBlockSize",
- "value": "SizeUnits",
- "description": "The minimum height in horizontal writing modes, or minimum width in vertical writing modes. Prevents the element from shrinking below this size.\n\nLearn more about [min-block-size](https://developer.mozilla.org/en-US/docs/Web/CSS/min-block-size).",
- "defaultValue": "'0'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "maxBlockSize",
- "value": "SizeUnitsOrNone",
- "description": "The maximum height in horizontal writing modes, or maximum width in vertical writing modes. Prevents the element from growing beyond this size.\n\nLearn more about [max-block-size](https://developer.mozilla.org/en-US/docs/Web/CSS/max-block-size).",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "inlineSize",
- "value": "SizeUnitsOrAuto",
- "description": "The width in horizontal writing modes, or height in vertical writing modes. Use this for flow-relative sizing that adapts to text direction. Learn more about [inline-size](https://developer.mozilla.org/en-US/docs/Web/CSS/inline-size).",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "minInlineSize",
- "value": "SizeUnits",
- "description": "The minimum width in horizontal writing modes, or minimum height in vertical writing modes. Prevents the element from shrinking below this size.\n\nLearn more about [min-inline-size](https://developer.mozilla.org/en-US/docs/Web/CSS/min-inline-size).",
- "defaultValue": "'0'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "maxInlineSize",
- "value": "SizeUnitsOrNone",
- "description": "The maximum width in horizontal writing modes, or maximum height in vertical writing modes. Prevents the element from growing beyond this size.\n\nLearn more about [max-inline-size](https://developer.mozilla.org/en-US/docs/Web/CSS/max-inline-size).",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "overflow",
- "value": "\"visible\" | \"hidden\"",
- "description": "The overflow behavior of the element.\n\n- `visible`: the content that extends beyond the element’s container is visible.\n- `hidden`: clips the content when it is larger than the element’s container. The element will not be scrollable and the users will not be able to access the clipped content by dragging or using a scroll wheel on a mouse.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "padding",
- "value": "MaybeResponsive>",
- "description": "The padding applied to all edges of the component.\n\nSupports [1-to-4-value syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#edges_of_a_box) using flow-relative values:\n- 1 value applies to all sides\n- 2 values apply to block (top/bottom) and inline (left/right)\n- 3 values apply to block-start (top), inline (left/right), and block-end (bottom)\n- 4 values apply to block-start (top), inline-end (right), block-end (bottom), and inline-start (left)\n\n**Examples:** `base`, `large none`, `base large-100 base small`\n\nUse `auto` to inherit padding from the nearest container with removed padding. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingBlock",
- "value": "MaybeResponsive<\"\" | MaybeTwoValuesShorthandProperty>",
- "description": "The block-direction padding (top and bottom in horizontal writing modes).\n\nAccepts a single value for both sides or two space-separated values for block-start and block-end.\n\n**Example:** `large none` applies `large` to the top and `none` to the bottom.\n\nOverrides the block value from `padding`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingBlockStart",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The block-start padding (top in horizontal writing modes).\n\nOverrides the block-start value from `paddingBlock`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingBlockEnd",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The block-end padding (bottom in horizontal writing modes).\n\nOverrides the block-end value from `paddingBlock`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingInline",
- "value": "MaybeResponsive<\"\" | MaybeTwoValuesShorthandProperty>",
- "description": "The inline-direction padding (left and right in horizontal writing modes).\n\nAccepts a single value for both sides or two space-separated values for inline-start and inline-end.\n\n**Example:** `large none` applies `large` to the left and `none` to the right.\n\nOverrides the inline value from `padding`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingInlineStart",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The inline-start padding (left in LTR writing modes, right in RTL).\n\nOverrides the inline-start value from `paddingInline`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paddingInlineEnd",
- "value": "MaybeResponsive<\"\" | PaddingKeyword>",
- "description": "The inline-end padding (right in LTR writing modes, left in RTL).\n\nOverrides the inline-end value from `paddingInline`. Also accepts a [responsive value](/docs/api/polaris/using-web-components#responsive-values) string with the supported `PaddingKeyword` as a query value.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "border",
- "value": "BorderShorthand",
- "description": "A border applied using shorthand syntax to specify width, color, and style in a single property.",
- "defaultValue": "'none' - equivalent to `none base auto`.",
- "examples": [
- {
- "title": "Example",
- "description": "",
- "tabs": [
- {
- "code": "// The following are equivalent:\n\n",
- "title": "Example"
- }
- ]
- }
- ]
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderWidth",
- "value": "\"\" | MaybeAllValuesShorthandProperty<\"small\" | \"small-100\" | \"base\" | \"large\" | \"large-100\" | \"none\">",
- "description": "The thickness of the border on all sides. When set, this overrides the width value specified in the `border` property.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderStyle",
- "value": "\"\" | MaybeAllValuesShorthandProperty",
- "description": "The visual style of the border on all sides, such as solid, dashed, or dotted. When set, this overrides the style value specified in the `border` property.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderColor",
- "value": "\"\" | ColorKeyword",
- "description": "The color of the border using the design system's color scale. When set, this overrides the color value specified in the `border` property.",
- "defaultValue": "'' - meaning no override"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "borderRadius",
- "value": "MaybeAllValuesShorthandProperty",
- "description": "The roundedness of the element's corners using the design system's radius scale.",
- "defaultValue": "'none'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityLabel",
- "value": "string",
- "description": "A label that describes the purpose or content of the component for assistive technologies like screen readers. Use this to provide additional context when the visible content alone doesn't clearly convey the component's purpose."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityVisibility",
- "value": "\"visible\" | \"hidden\" | \"exclusive\"",
- "description": "The visibility mode of the element for both visual and assistive technology users.\n\n- `visible`: The element is visible to all users (both sighted users and screen readers).\n- `hidden`: The element is visually visible but hidden from screen readers. Use this for decorative elements that don't provide meaningful information.\n- `exclusive`: The element is visually hidden but announced by screen readers. Use this for screen-reader-only content like skip links or additional context.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "display",
- "value": "MaybeResponsive<\"auto\" | \"none\">",
- "description": "The outer [display](https://developer.mozilla.org/en-US/docs/Web/CSS/display) type of the component. The outer type sets a component's participation in [flow layout](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_flow_layout).\n\n- `auto` the component's initial value. The actual value depends on the component and context.\n- `none` hides the component from display and removes it from the accessibility tree, making it invisible to screen readers.",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Stack extends BoxElement implements StackProps {\n constructor();\n accessor direction: StackProps['direction'];\n accessor justifyContent: StackProps['justifyContent'];\n accessor alignItems: StackProps['alignItems'];\n accessor alignContent: StackProps['alignContent'];\n accessor gap: StackProps['gap'];\n accessor rowGap: StackProps['rowGap'];\n accessor columnGap: StackProps['columnGap'];\n}"
- },
- "Switch": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Switch",
- "description": "Configure the following properties on the switch component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "labelAccessibilityVisibility",
- "value": "\"visible\" | \"exclusive\"",
- "description": "Controls whether the label is visible to all users or only to screen readers.\n\n- `visible`: The label is shown to everyone (default).\n- `exclusive`: The label is visually hidden but still announced by screen readers.\n\nUse `exclusive` when the surrounding context makes the label redundant visually, but screen reader users still need it for clarity.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "checked",
- "value": "boolean",
- "description": "Whether the control is currently checked. Use this for controlled components where you manage the checked state.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "value",
- "value": "string",
- "description": "The value used in form data when the checkbox is checked."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultChecked",
- "value": "boolean",
- "description": "The initial checked state for uncontrolled components. Use this when you want the control to start checked but don't need to control its state afterward.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityLabel",
- "value": "string",
- "description": "A label that describes the purpose or content of the component for assistive technologies like screen readers. Use this to provide additional context when the visible content alone doesn't clearly convey the component's purpose."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "details",
- "value": "string",
- "description": "Supplementary text displayed below the checkbox to provide additional context, instructions, or help. Use this to explain what checking the box means or provide guidance to users. This text is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "error",
- "value": "string",
- "description": "An error message displayed below the checkbox to indicate validation problems. When set, the checkbox is styled with error indicators and the message is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "label",
- "value": "string",
- "description": "The text label displayed next to the checkbox that describes what the checkbox controls. Clicking the label will also toggle the checkbox state."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "required",
- "value": "boolean",
- "description": "Whether the field needs a value. This requirement adds semantic value to the field, but it will not cause an error to appear automatically. If you want to present an error when this field is empty, you can do so with the `error` property.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "formResetCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the field is disabled, preventing any user interaction.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "id",
- "value": "string",
- "description": "A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "name",
- "value": "string",
- "description": "The name attribute for the field, used to identify the field's value when the form is submitted. Must be unique within the nearest containing form."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@internals$4@11381",
- "value": "ElementInternals",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Switch extends PreactCheckboxElement implements SwitchProps {\n accessor labelAccessibilityVisibility: SwitchProps['labelAccessibilityVisibility'];\n constructor();\n}"
- },
- "Table": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Table",
- "description": "Configure the following properties on the table component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "variant",
- "value": "\"auto\" | \"list\"",
- "description": "The layout variant of the table component.\n\n- `list`: Always displays as a list layout.\n- `table`: Always displays as a traditional table layout.\n- `auto`: Automatically displays as a table on wide screens and as a list on narrow screens.",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "loading",
- "value": "boolean",
- "description": "Whether the table is in a loading state, such as during initial page load or when loading the next page in a paginated table. When `true`, the table might be in an inert state that prevents user interaction.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "paginate",
- "value": "boolean",
- "description": "Whether to use pagination controls.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "hasPreviousPage",
- "value": "boolean",
- "description": "Whether there's a previous page of data.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "hasNextPage",
- "value": "boolean",
- "description": "Whether there's an additional page of data.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@actualTableVariantSymbol@12105",
- "value": "AddedContext",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@tableHeadersSharedDataSymbol@12106",
- "value": "AddedContext<{ listSlot: ListSlotType; textContent: string; format: HeaderFormat; }[]>",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Table extends PreactCustomElement implements TableProps {\n accessor variant: TableProps['variant'];\n accessor loading: TableProps['loading'];\n accessor paginate: TableProps['paginate'];\n accessor hasPreviousPage: TableProps['hasPreviousPage'];\n accessor hasNextPage: TableProps['hasNextPage'];\n /**\n * @private\n * The actual table variant, which is either 'table' or 'list'.\n */\n [actualTableVariantSymbol]: AddedContext;\n /** @private */\n [tableHeadersSharedDataSymbol]: AddedContext<\n {\n listSlot: TableHeaderProps['listSlot'];\n textContent: string;\n format: HeaderFormat;\n }[]\n >;\n\n constructor();\n}"
- },
- "AddedContext": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "AddedContext",
- "description": "",
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "value",
- "value": "T",
- "description": "The current context value.\n\nThe new context value to set, which will notify all consumers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodSignature",
- "name": "addEventListener",
- "value": "(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions) => void",
- "description": "The **`addEventListener()`** method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.\n\n[MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodSignature",
- "name": "dispatchEvent",
- "value": "(event: Event) => boolean",
- "description": "The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.\n\n[MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodSignature",
- "name": "removeEventListener",
- "value": "(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions) => void",
- "description": "The **`removeEventListener()`** method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.\n\n[MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)"
- }
- ],
- "value": "declare class AddedContext extends EventTarget {\n constructor(defaultValue: T);\n /**\n * The current context value.\n */\n get value(): T;\n /**\n * The new context value to set, which will notify all consumers.\n */\n set value(value: T);\n}"
- },
- "ActualTableVariant": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "ActualTableVariant",
- "value": "'table' | 'list'",
- "description": "Represents the actual rendered variant of a table component.\n- `table`: Displays as a traditional table layout.\n- `list`: Displays as a list layout.",
- "isPublicDocs": true
- },
- "ListSlotType": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "ListSlotType",
- "value": "'primary' | 'secondary' | 'kicker' | 'inline' | 'labeled'",
- "description": "Represents the semantic type of content slots within list items.\n\n- `primary`: The main content or title of the list item.\n- `secondary`: Supporting or descriptive content below the primary content.\n- `kicker`: A small label or tag displayed above the primary content.\n- `inline`: Content displayed inline with the primary content.\n- `labeled`: Content with an associated label.",
- "isPublicDocs": true
- },
- "HeaderFormat": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "HeaderFormat",
- "value": "'base' | 'numeric' | 'currency'",
- "description": "Represents the format options for table headers that control styling and alignment of column content.\n\nAvailable values:\n- `base`: Standard format for text columns\n- `currency`: Right-aligned format for monetary values\n- `numeric`: Right-aligned format for numeric values",
- "isPublicDocs": true
- },
- "TableBody": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "TableBody",
- "description": "The table body component represents the main content area of a table, containing the data rows. Use table body as a child of table to structure your table data, with each table row within the body representing a single record or entry.\n\nTable body must contain table row components, which in turn contain table cell components for the actual data values.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class TableBody extends PreactCustomElement implements TableBodyProps {\n constructor();\n}"
- },
- "TableCell": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "TableCell",
- "description": "The table cell component represents a single data cell within a table row. Use table cell as a child of table row to display individual data values, with each cell corresponding to a column in the table.\n\nTable cell automatically inherits styling and alignment from its parent table structure and supports text content or other inline components.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "__@headerFormatSymbol@12128",
- "value": "HeaderFormat",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class TableCell extends PreactCustomElement implements TableCellProps {\n constructor();\n /** @private */\n get [headerFormatSymbol](): HeaderFormat;\n /** @private */\n set [headerFormatSymbol](format: HeaderFormat);\n}"
- },
- "TableHeader": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "TableHeader",
- "description": "The table header component represents a single column header within a table header row. Use table header as a child of table header row to define column headings and optionally enable column sorting.\n\nTable header provides semantic meaning for screen readers and can include sorting controls when configured. Each header corresponds to a column in the table body.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "listSlot",
- "value": "ListSlotType",
- "description": "The content designation for this column when the table displays in list variant on mobile devices.",
- "defaultValue": "'labeled'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "format",
- "value": "HeaderFormat",
- "description": "The format of the column that controls styling and alignment of cell content."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class TableHeader\n extends PreactCustomElement\n implements TableHeaderProps\n{\n accessor listSlot: TableHeaderProps['listSlot'];\n accessor format: TableHeaderProps['format'];\n constructor();\n}"
- },
- "TableHeaderRow": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "TableHeaderRow",
- "description": "The table header row component represents the header row of a table, containing column headings. Use table header row as the first child of table (before table body) to define the table structure and provide column labels.\n\nTable header row must contain table header components for each column. These headers provide context for the data columns and can support sorting functionality.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class TableHeaderRow\n extends PreactCustomElement\n implements TableHeaderRowProps\n{\n constructor();\n /** @private */\n connectedCallback(): void;\n /** @private */\n disconnectedCallback(): void;\n}"
- },
- "TableRow": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "TableRow",
- "description": "The table row component represents a single row of data within a table body. Use table row as a child of table body to structure individual records or entries in the table.\n\nTable row must contain table cell components, with each cell representing a data value for the corresponding column. The number of cells should match the number of headers in the table.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "clickDelegate",
- "value": "string",
- "description": "The ID of an interactive element, such as `s-link`, in the row that will be the target of the click when the row is clicked. This is the primary action for the row; it should not be used for secondary actions.\n\nThis is a click-only affordance, and does not introduce any keyboard or screen reader affordances. Which is why the target element must be in the table; so that keyboard and screen reader users can interact with it normally."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class TableRow extends PreactCustomElement implements TableRowProps {\n constructor();\n accessor clickDelegate: string;\n}"
- },
- "Text": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Text",
- "description": "Configure the following properties on the text component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "fontVariantNumeric",
- "value": "\"auto\" | \"normal\" | \"tabular-nums\"",
- "description": "The rendering style for numbers in the font.\n\n- `auto`: Inherits the setting from the parent element.\n- `normal`: Uses the font's default numeric glyphs.\n- `tabular-nums`: Uses fixed-width numeric glyphs, ensuring numbers align vertically in tables or lists.\n\nLearn more about the [font-variant-numeric property](https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric).",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "color",
- "value": "\"base\" | \"subdued\"",
- "description": "The color emphasis level that controls visual intensity.\n\n- `base`: Primary color for body text, standard UI elements, and general content with good readability.\n- `subdued`: Deemphasized color for secondary text, supporting labels, and less critical interface elements.",
- "defaultValue": "'base'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "tone",
- "value": "\"info\" | \"success\" | \"warning\" | \"critical\" | \"auto\" | \"neutral\" | \"caution\"",
- "description": "The semantic tone that's applied to the text, which changes its color to convey meaning.\n\n- `info`: Informational content or helpful tips (blue).\n- `success`: Positive outcomes or successful states (green).\n- `warning`: Important warnings about potential issues (orange).\n- `critical`: Urgent problems or destructive actions (red).\n- `auto`: Automatically determined based on context.\n- `neutral`: General information without specific intent (gray).\n- `caution`: Advisory notices that need attention (yellow).",
- "defaultValue": "'auto'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "type",
- "value": "\"strong\" | \"generic\" | \"address\" | \"redundant\"",
- "description": "The semantic type and styling treatment for the text content.\n\n- `strong`: Emphasizes the text with strong importance, typically displayed in bold.\n- `generic`: Standard text with no special semantic meaning or styling.\n- `address`: Marks the text as contact information, such as a physical or email address.\n- `redundant`: Indicates the text is redundant or duplicated information for screen reader context.",
- "defaultValue": "'generic'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "dir",
- "value": "\"\" | \"auto\" | \"ltr\" | \"rtl\"",
- "description": "Indicates the directionality of the element’s text.\n\n- `\"\"`: The direction is inherited from parent elements (equivalent to not setting the attribute).\n- `auto`: The user agent determines the direction based on the content.\n- `ltr`: The languages written from left to right (such as English).\n- `rtl`: The languages written from right to left (such as Arabic).\n\nLearn more about the [dir attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir).",
- "defaultValue": "''"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "accessibilityVisibility",
- "value": "\"visible\" | \"hidden\" | \"exclusive\"",
- "description": "The visibility mode of the element for both visual and assistive technology users.\n\n- `visible`: The element is visible to all users (both sighted users and screen readers).\n- `hidden`: The element is visually visible but hidden from screen readers. Use this for decorative elements that don't provide meaningful information.\n- `exclusive`: The element is visually hidden but announced by screen readers. Use this for screen-reader-only content like skip links or additional context.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "interestFor",
- "value": "string",
- "description": "The ID of the component to show when users hover over or focus on this component. Use this to connect interactive components to popovers or tooltips that provide additional context or information."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Text extends PreactCustomElement implements TextProps {\n accessor fontVariantNumeric: TextProps['fontVariantNumeric'];\n accessor color: TextProps['color'];\n /**\n * The semantic tone that's applied to the text, which changes its color to convey meaning.\n *\n * - `info`: Informational content or helpful tips (blue).\n * - `success`: Positive outcomes or successful states (green).\n * - `warning`: Important warnings about potential issues (orange).\n * - `critical`: Urgent problems or destructive actions (red).\n * - `auto`: Automatically determined based on context.\n * - `neutral`: General information without specific intent (gray).\n * - `caution`: Advisory notices that need attention (yellow).\n */\n accessor tone: TextProps['tone'];\n /**\n * The semantic type and styling treatment for the text content.\n *\n * - `strong`: Emphasizes the text with strong importance, typically displayed in bold.\n * - `generic`: Standard text with no special semantic meaning or styling.\n * - `address`: Marks the text as contact information, such as a physical or email address.\n * - `redundant`: Indicates the text is redundant or duplicated information for screen reader context.\n */\n accessor type: TextProps['type'];\n accessor dir: TextProps['dir'];\n accessor accessibilityVisibility: TextProps['accessibilityVisibility'];\n accessor interestFor: string;\n constructor();\n}"
- },
- "TextArea": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "TextArea",
- "description": "Configure the following properties on the text area component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "maxLength",
- "value": "number",
- "description": "The maximum number of characters allowed in the field.",
- "defaultValue": "Infinity"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "minLength",
- "value": "number",
- "description": "The minimum number of characters required in the field.",
- "defaultValue": "0"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "rows",
- "value": "number",
- "description": "A number of visible text lines.",
- "defaultValue": "2"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "value",
- "value": "string",
- "description": "The current text value in the field as a string. When setting this property programmatically, it updates the field's display value. When reading it, you get the user's current input."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "autocomplete",
- "value": "\"on\" | \"off\" | TextAutocompleteField | `section-${string} one-time-code` | \"shipping one-time-code\" | \"billing one-time-code\" | `section-${string} shipping one-time-code` | `section-${string} billing one-time-code` | `section-${string} language` | `section-${string} organization` | `section-${string} name` | `section-${string} additional-name` | `section-${string} address-level1` | `section-${string} address-level2` | `section-${string} address-level3` | `section-${string} address-level4` | `section-${string} address-line1` | `section-${string} address-line2` | `section-${string} address-line3` | `section-${string} country-name` | `section-${string} country` | `section-${string} family-name` | `section-${string} given-name` | `section-${string} honorific-prefix` | `section-${string} honorific-suffix` | `section-${string} nickname` | `section-${string} organization-title` | `section-${string} postal-code` | `section-${string} sex` | `section-${string} street-address` | `section-${string} transaction-currency` | `section-${string} username` | `section-${string} cc-additional-name` | `section-${string} cc-family-name` | `section-${string} cc-given-name` | `section-${string} cc-name` | `section-${string} cc-type` | \"shipping language\" | \"shipping organization\" | \"shipping name\" | \"shipping additional-name\" | \"shipping address-level1\" | \"shipping address-level2\" | \"shipping address-level3\" | \"shipping address-level4\" | \"shipping address-line1\" | \"shipping address-line2\" | \"shipping address-line3\" | \"shipping country-name\" | \"shipping country\" | \"shipping family-name\" | \"shipping given-name\" | \"shipping honorific-prefix\" | \"shipping honorific-suffix\" | \"shipping nickname\" | \"shipping organization-title\" | \"shipping postal-code\" | \"shipping sex\" | \"shipping street-address\" | \"shipping transaction-currency\" | \"shipping username\" | \"shipping cc-additional-name\" | \"shipping cc-family-name\" | \"shipping cc-given-name\" | \"shipping cc-name\" | \"shipping cc-type\" | \"billing language\" | \"billing organization\" | \"billing name\" | \"billing additional-name\" | \"billing address-level1\" | \"billing address-level2\" | \"billing address-level3\" | \"billing address-level4\" | \"billing address-line1\" | \"billing address-line2\" | \"billing address-line3\" | \"billing country-name\" | \"billing country\" | \"billing family-name\" | \"billing given-name\" | \"billing honorific-prefix\" | \"billing honorific-suffix\" | \"billing nickname\" | \"billing organization-title\" | \"billing postal-code\" | \"billing sex\" | \"billing street-address\" | \"billing transaction-currency\" | \"billing username\" | \"billing cc-additional-name\" | \"billing cc-family-name\" | \"billing cc-given-name\" | \"billing cc-name\" | \"billing cc-type\" | `section-${string} shipping language` | `section-${string} shipping organization` | `section-${string} shipping name` | `section-${string} shipping additional-name` | `section-${string} shipping address-level1` | `section-${string} shipping address-level2` | `section-${string} shipping address-level3` | `section-${string} shipping address-level4` | `section-${string} shipping address-line1` | `section-${string} shipping address-line2` | `section-${string} shipping address-line3` | `section-${string} shipping country-name` | `section-${string} shipping country` | `section-${string} shipping family-name` | `section-${string} shipping given-name` | `section-${string} shipping honorific-prefix` | `section-${string} shipping honorific-suffix` | `section-${string} shipping nickname` | `section-${string} shipping organization-title` | `section-${string} shipping postal-code` | `section-${string} shipping sex` | `section-${string} shipping street-address` | `section-${string} shipping transaction-currency` | `section-${string} shipping username` | `section-${string} shipping cc-additional-name` | `section-${string} shipping cc-family-name` | `section-${string} shipping cc-given-name` | `section-${string} shipping cc-name` | `section-${string} shipping cc-type` | `section-${string} billing language` | `section-${string} billing organization` | `section-${string} billing name` | `section-${string} billing additional-name` | `section-${string} billing address-level1` | `section-${string} billing address-level2` | `section-${string} billing address-level3` | `section-${string} billing address-level4` | `section-${string} billing address-line1` | `section-${string} billing address-line2` | `section-${string} billing address-line3` | `section-${string} billing country-name` | `section-${string} billing country` | `section-${string} billing family-name` | `section-${string} billing given-name` | `section-${string} billing honorific-prefix` | `section-${string} billing honorific-suffix` | `section-${string} billing nickname` | `section-${string} billing organization-title` | `section-${string} billing postal-code` | `section-${string} billing sex` | `section-${string} billing street-address` | `section-${string} billing transaction-currency` | `section-${string} billing username` | `section-${string} billing cc-additional-name` | `section-${string} billing cc-family-name` | `section-${string} billing cc-given-name` | `section-${string} billing cc-name` | `section-${string} billing cc-type`",
- "description": "Controls browser autofill behavior for the field.\n\nBasic values:\n- `on` - Enables autofill without specifying content type (default)\n- `off` - Disables autofill for sensitive data or one-time codes\n\nSpecific field values describe the expected data type. You can optionally prefix these with:\n- `section-${string}` - Scopes autofill to a specific form section (when multiple forms exist on the same page)\n- `shipping` or `billing` - Indicates whether the data is for shipping or billing purposes\n- Both section and group (for example, `section-primary shipping email`)\n\nProviding a specific autofill token helps browsers suggest more relevant saved data.\n\nLearn more about the set of [autocomplete values](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill-detail-tokens) supported in browsers.",
- "defaultValue": "'on' for everything else"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultValue",
- "value": "string",
- "description": "The initial value of the field when it first loads. Unlike `placeholder`, this is a real value that the user can edit and that gets submitted with the form. Once the user starts typing, their input replaces it. Changing this property after the field has loaded has no effect. To update the field value at any time, use `value` instead."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "details",
- "value": "string",
- "description": "Supplementary text displayed below the checkbox to provide additional context, instructions, or help. Use this to explain what checking the box means or provide guidance to users. This text is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "error",
- "value": "string",
- "description": "An error message displayed below the checkbox to indicate validation problems. When set, the checkbox is styled with error indicators and the message is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "label",
- "value": "string",
- "description": "The text displayed as the field label, which identifies the purpose of the field to users. This label is associated with the field for accessibility and helps users understand what information to provide."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "labelAccessibilityVisibility",
- "value": "\"visible\" | \"exclusive\"",
- "description": "Controls whether the label is visible to all users or only to screen readers.\n\n- `visible`: The label is shown to everyone (default).\n- `exclusive`: The label is visually hidden but still announced by screen readers.\n\nUse `exclusive` when the surrounding context makes the label redundant visually, but screen reader users still need it for clarity.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "placeholder",
- "value": "string",
- "description": "The placeholder text displayed in the field when it's empty, providing a hint about the expected input format or value."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "readOnly",
- "value": "boolean",
- "description": "Whether the field is read-only and can't be edited. Read-only fields remain focusable and their content is announced by screen readers.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "required",
- "value": "boolean",
- "description": "Whether the field requires a value before form submission. Displays a visual indicator and adds semantic meaning, but doesn't automatically validate or show errors. Use the `error` property to display validation messages.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "getAttribute",
- "value": "(qualifiedName: string) => string",
- "description": "Global keyboard event handlers for things like key bindings typically ignore keystrokes originating from within input elements. Unfortunately, these never account for a Custom Element being the input element.\n\nTo fix this, we spoof getAttribute & hasAttribute to make a PreactFieldElement appear as a contentEditable \"input\" when it contains a focused input element.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "hasAttribute",
- "value": "(qualifiedName: string) => boolean",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "isContentEditable",
- "value": "boolean",
- "description": "Whether the shadow tree contains a focused input (input, textarea, select, ).\n\nNote: this does _not_ return true for focussed non-field form elements like buttons.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "formResetCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the field is disabled, preventing any user interaction.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "id",
- "value": "string",
- "description": "A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "name",
- "value": "string",
- "description": "The name attribute for the field, used to identify the field's value when the form is submitted. Must be unique within the nearest containing form."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@internals$4@11381",
- "value": "ElementInternals",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class TextArea\n extends PreactFieldElement\n implements TextAreaProps\n{\n accessor maxLength: TextAreaProps['maxLength'];\n accessor minLength: TextAreaProps['minLength'];\n accessor rows: TextAreaProps['rows'];\n /**\n * The current text value in the field as a string. When setting this property programmatically, it updates the field's display value. When reading it, you get the user's current input.\n */\n get value(): string;\n set value(value: string);\n constructor();\n}"
- },
- "TextField": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "TextField",
- "description": "Configure the following properties on the text field component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "icon",
- "value": "\"replace\" | \"search\" | \"split\" | \"link\" | \"edit\" | \"info\" | \"incomplete\" | \"complete\" | \"product\" | \"variant\" | \"collection\" | \"select\" | \"color\" | \"money\" | \"order\" | \"code\" | \"adjust\" | \"affiliate\" | \"airplane\" | \"alert-bubble\" | \"alert-circle\" | \"alert-diamond\" | \"alert-location\" | \"alert-octagon\" | \"alert-octagon-filled\" | \"alert-triangle\" | \"alert-triangle-filled\" | \"app-extension\" | \"apps\" | \"archive\" | \"arrow-down\" | \"arrow-down-circle\" | \"arrow-down-right\" | \"arrow-left\" | \"arrow-left-circle\" | \"arrow-right\" | \"arrow-right-circle\" | \"arrow-up\" | \"arrow-up-circle\" | \"arrow-up-right\" | \"arrows-in-horizontal\" | \"arrows-out-horizontal\" | \"asterisk\" | \"attachment\" | \"automation\" | \"backspace\" | \"bag\" | \"bank\" | \"barcode\" | \"battery-low\" | \"bill\" | \"blank\" | \"blog\" | \"bolt\" | \"bolt-filled\" | \"book\" | \"book-open\" | \"bug\" | \"bullet\" | \"business-entity\" | \"button\" | \"button-press\" | \"calculator\" | \"calendar\" | \"calendar-check\" | \"calendar-compare\" | \"calendar-list\" | \"calendar-time\" | \"camera\" | \"camera-flip\" | \"caret-down\" | \"caret-left\" | \"caret-right\" | \"caret-up\" | \"cart\" | \"cart-abandoned\" | \"cart-discount\" | \"cart-down\" | \"cart-filled\" | \"cart-sale\" | \"cart-send\" | \"cart-up\" | \"cash-dollar\" | \"cash-euro\" | \"cash-pound\" | \"cash-rupee\" | \"cash-yen\" | \"catalog-product\" | \"categories\" | \"channels\" | \"chart-cohort\" | \"chart-donut\" | \"chart-funnel\" | \"chart-histogram-first\" | \"chart-histogram-first-last\" | \"chart-histogram-flat\" | \"chart-histogram-full\" | \"chart-histogram-growth\" | \"chart-histogram-last\" | \"chart-histogram-second-last\" | \"chart-horizontal\" | \"chart-line\" | \"chart-popular\" | \"chart-stacked\" | \"chart-vertical\" | \"chat\" | \"chat-new\" | \"chat-referral\" | \"check\" | \"check-circle\" | \"check-circle-filled\" | \"checkbox\" | \"chevron-down\" | \"chevron-down-circle\" | \"chevron-left\" | \"chevron-left-circle\" | \"chevron-right\" | \"chevron-right-circle\" | \"chevron-up\" | \"chevron-up-circle\" | \"circle\" | \"circle-dashed\" | \"clipboard\" | \"clipboard-check\" | \"clipboard-checklist\" | \"clock\" | \"clock-list\" | \"clock-revert\" | \"code-add\" | \"collection-featured\" | \"collection-list\" | \"collection-reference\" | \"color-none\" | \"compass\" | \"compose\" | \"confetti\" | \"connect\" | \"content\" | \"contract\" | \"corner-pill\" | \"corner-round\" | \"corner-square\" | \"credit-card\" | \"credit-card-cancel\" | \"credit-card-percent\" | \"credit-card-reader\" | \"credit-card-reader-chip\" | \"credit-card-reader-tap\" | \"credit-card-secure\" | \"credit-card-tap-chip\" | \"crop\" | \"currency-convert\" | \"cursor\" | \"cursor-banner\" | \"cursor-option\" | \"data-presentation\" | \"data-table\" | \"database\" | \"database-add\" | \"database-connect\" | \"delete\" | \"delivered\" | \"delivery\" | \"desktop\" | \"disabled\" | \"disabled-filled\" | \"discount\" | \"discount-add\" | \"discount-automatic\" | \"discount-code\" | \"discount-remove\" | \"dns-settings\" | \"dock-floating\" | \"dock-side\" | \"domain\" | \"domain-landing-page\" | \"domain-new\" | \"domain-redirect\" | \"download\" | \"drag-drop\" | \"drag-handle\" | \"drawer\" | \"duplicate\" | \"email\" | \"email-follow-up\" | \"email-newsletter\" | \"empty\" | \"enabled\" | \"enter\" | \"envelope\" | \"envelope-soft-pack\" | \"eraser\" | \"exchange\" | \"exit\" | \"export\" | \"external\" | \"eye-check-mark\" | \"eye-dropper\" | \"eye-dropper-list\" | \"eye-first\" | \"eyeglasses\" | \"fav\" | \"favicon\" | \"file\" | \"file-list\" | \"filter\" | \"filter-active\" | \"flag\" | \"flip-horizontal\" | \"flip-vertical\" | \"flower\" | \"folder\" | \"folder-add\" | \"folder-down\" | \"folder-remove\" | \"folder-up\" | \"food\" | \"foreground\" | \"forklift\" | \"forms\" | \"games\" | \"gauge\" | \"geolocation\" | \"gift\" | \"gift-card\" | \"git-branch\" | \"git-commit\" | \"git-repository\" | \"globe\" | \"globe-asia\" | \"globe-europe\" | \"globe-lines\" | \"globe-list\" | \"graduation-hat\" | \"grid\" | \"hashtag\" | \"hashtag-decimal\" | \"hashtag-list\" | \"heart\" | \"hide\" | \"hide-filled\" | \"home\" | \"home-filled\" | \"icons\" | \"identity-card\" | \"image\" | \"image-add\" | \"image-alt\" | \"image-explore\" | \"image-magic\" | \"image-none\" | \"image-with-text-overlay\" | \"images\" | \"import\" | \"in-progress\" | \"incentive\" | \"incoming\" | \"info-filled\" | \"inheritance\" | \"inventory\" | \"inventory-edit\" | \"inventory-list\" | \"inventory-transfer\" | \"inventory-updated\" | \"iq\" | \"key\" | \"keyboard\" | \"keyboard-filled\" | \"keyboard-hide\" | \"keypad\" | \"label-printer\" | \"language\" | \"language-translate\" | \"layout-block\" | \"layout-buy-button\" | \"layout-buy-button-horizontal\" | \"layout-buy-button-vertical\" | \"layout-column-1\" | \"layout-columns-2\" | \"layout-columns-3\" | \"layout-footer\" | \"layout-header\" | \"layout-logo-block\" | \"layout-popup\" | \"layout-rows-2\" | \"layout-section\" | \"layout-sidebar-left\" | \"layout-sidebar-right\" | \"lightbulb\" | \"link-list\" | \"list-bulleted\" | \"list-bulleted-filled\" | \"list-numbered\" | \"live\" | \"live-critical\" | \"live-none\" | \"location\" | \"location-none\" | \"lock\" | \"map\" | \"markets\" | \"markets-euro\" | \"markets-rupee\" | \"markets-yen\" | \"maximize\" | \"measurement-size\" | \"measurement-size-list\" | \"measurement-volume\" | \"measurement-volume-list\" | \"measurement-weight\" | \"measurement-weight-list\" | \"media-receiver\" | \"megaphone\" | \"mention\" | \"menu\" | \"menu-filled\" | \"menu-horizontal\" | \"menu-vertical\" | \"merge\" | \"metafields\" | \"metaobject\" | \"metaobject-list\" | \"metaobject-reference\" | \"microphone\" | \"microphone-muted\" | \"minimize\" | \"minus\" | \"minus-circle\" | \"mobile\" | \"money-none\" | \"money-split\" | \"moon\" | \"nature\" | \"note\" | \"note-add\" | \"notification\" | \"number-one\" | \"order-batches\" | \"order-draft\" | \"order-filled\" | \"order-first\" | \"order-fulfilled\" | \"order-repeat\" | \"order-unfulfilled\" | \"orders-status\" | \"organization\" | \"outdent\" | \"outgoing\" | \"package\" | \"package-cancel\" | \"package-fulfilled\" | \"package-on-hold\" | \"package-reassign\" | \"package-returned\" | \"page\" | \"page-add\" | \"page-attachment\" | \"page-clock\" | \"page-down\" | \"page-heart\" | \"page-list\" | \"page-reference\" | \"page-remove\" | \"page-report\" | \"page-up\" | \"pagination-end\" | \"pagination-start\" | \"paint-brush-flat\" | \"paint-brush-round\" | \"paper-check\" | \"partially-complete\" | \"passkey\" | \"paste\" | \"pause-circle\" | \"payment\" | \"payment-capture\" | \"payout\" | \"payout-dollar\" | \"payout-euro\" | \"payout-pound\" | \"payout-rupee\" | \"payout-yen\" | \"person\" | \"person-add\" | \"person-exit\" | \"person-filled\" | \"person-list\" | \"person-lock\" | \"person-remove\" | \"person-segment\" | \"personalized-text\" | \"phablet\" | \"phone\" | \"phone-down\" | \"phone-down-filled\" | \"phone-in\" | \"phone-out\" | \"pin\" | \"pin-remove\" | \"plan\" | \"play\" | \"play-circle\" | \"plus\" | \"plus-circle\" | \"plus-circle-down\" | \"plus-circle-filled\" | \"plus-circle-up\" | \"point-of-sale\" | \"point-of-sale-register\" | \"price-list\" | \"print\" | \"product-add\" | \"product-cost\" | \"product-filled\" | \"product-list\" | \"product-reference\" | \"product-remove\" | \"product-return\" | \"product-unavailable\" | \"profile\" | \"profile-filled\" | \"question-circle\" | \"question-circle-filled\" | \"radio-control\" | \"receipt\" | \"receipt-dollar\" | \"receipt-euro\" | \"receipt-folded\" | \"receipt-paid\" | \"receipt-pound\" | \"receipt-refund\" | \"receipt-rupee\" | \"receipt-yen\" | \"receivables\" | \"redo\" | \"referral-code\" | \"refresh\" | \"remove-background\" | \"reorder\" | \"replay\" | \"reset\" | \"return\" | \"reward\" | \"rocket\" | \"rotate-left\" | \"rotate-right\" | \"sandbox\" | \"save\" | \"savings\" | \"scan-qr-code\" | \"search-add\" | \"search-list\" | \"search-recent\" | \"search-resource\" | \"send\" | \"settings\" | \"share\" | \"shield-check-mark\" | \"shield-none\" | \"shield-pending\" | \"shield-person\" | \"shipping-label\" | \"shipping-label-cancel\" | \"shopcodes\" | \"slideshow\" | \"smiley-happy\" | \"smiley-joy\" | \"smiley-neutral\" | \"smiley-sad\" | \"social-ad\" | \"social-post\" | \"sort\" | \"sort-ascending\" | \"sort-descending\" | \"sound\" | \"sports\" | \"star\" | \"star-circle\" | \"star-filled\" | \"star-half\" | \"star-list\" | \"status\" | \"status-active\" | \"stop-circle\" | \"store\" | \"store-import\" | \"store-managed\" | \"store-online\" | \"sun\" | \"table\" | \"table-masonry\" | \"tablet\" | \"target\" | \"tax\" | \"team\" | \"text\" | \"text-align-center\" | \"text-align-left\" | \"text-align-right\" | \"text-block\" | \"text-bold\" | \"text-color\" | \"text-font\" | \"text-font-list\" | \"text-grammar\" | \"text-in-columns\" | \"text-in-rows\" | \"text-indent\" | \"text-indent-remove\" | \"text-italic\" | \"text-quote\" | \"text-title\" | \"text-underline\" | \"text-with-image\" | \"theme\" | \"theme-edit\" | \"theme-store\" | \"theme-template\" | \"three-d-environment\" | \"thumbs-down\" | \"thumbs-up\" | \"tip-jar\" | \"toggle-off\" | \"toggle-on\" | \"transaction\" | \"transaction-fee-add\" | \"transaction-fee-dollar\" | \"transaction-fee-euro\" | \"transaction-fee-pound\" | \"transaction-fee-rupee\" | \"transaction-fee-yen\" | \"transfer\" | \"transfer-in\" | \"transfer-internal\" | \"transfer-out\" | \"truck\" | \"undo\" | \"unknown-device\" | \"unlock\" | \"upload\" | \"variant-list\" | \"video\" | \"video-list\" | \"view\" | \"viewport-narrow\" | \"viewport-short\" | \"viewport-tall\" | \"viewport-wide\" | \"wallet\" | \"wand\" | \"watch\" | \"wifi\" | \"work\" | \"work-list\" | \"wrench\" | \"x\" | \"x-circle\" | \"x-circle-filled\" | AnyString",
- "description": "An icon displayed inside the field to provide visual context about the expected input or field purpose. Commonly used for search fields, currency inputs, or to indicate field type. Accepts any icon name from the icon library or a custom string identifier.",
- "defaultValue": "''"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "maxLength",
- "value": "number",
- "description": "The maximum number of characters allowed in the field.",
- "defaultValue": "Infinity"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "minLength",
- "value": "number",
- "description": "The minimum number of characters required in the field.",
- "defaultValue": "0"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "prefix",
- "value": "string",
- "description": "A non-editable text value displayed immediately before the editable portion of the field. This is useful for displaying an implied part of the value, such as `https://` or `+353`.\n\nThis text can't be edited by the user and is not included in the field's value. The prefix might not appear until the user interacts with the field. For example, an inline label might occupy the prefix position until the user focuses the field.",
- "defaultValue": "''"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "suffix",
- "value": "string",
- "description": "A non-editable text value displayed immediately after the editable portion of the field. This is useful for displaying an implied part of the value, such as `@shopify.com` or `%`.\n\nThis text can't be edited by the user and is not included in the field's value. The suffix might not appear until the user interacts with the field. For example, an inline label might occupy the suffix position until the user focuses the field.",
- "defaultValue": "''"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "value",
- "value": "string",
- "description": "The current text value in the field as a string. When setting this property programmatically, it updates the field's display value. When reading it, you get the user's current input."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "autocomplete",
- "value": "\"on\" | \"off\" | TextAutocompleteField | `section-${string} one-time-code` | \"shipping one-time-code\" | \"billing one-time-code\" | `section-${string} shipping one-time-code` | `section-${string} billing one-time-code` | `section-${string} language` | `section-${string} organization` | `section-${string} name` | `section-${string} additional-name` | `section-${string} address-level1` | `section-${string} address-level2` | `section-${string} address-level3` | `section-${string} address-level4` | `section-${string} address-line1` | `section-${string} address-line2` | `section-${string} address-line3` | `section-${string} country-name` | `section-${string} country` | `section-${string} family-name` | `section-${string} given-name` | `section-${string} honorific-prefix` | `section-${string} honorific-suffix` | `section-${string} nickname` | `section-${string} organization-title` | `section-${string} postal-code` | `section-${string} sex` | `section-${string} street-address` | `section-${string} transaction-currency` | `section-${string} username` | `section-${string} cc-additional-name` | `section-${string} cc-family-name` | `section-${string} cc-given-name` | `section-${string} cc-name` | `section-${string} cc-type` | \"shipping language\" | \"shipping organization\" | \"shipping name\" | \"shipping additional-name\" | \"shipping address-level1\" | \"shipping address-level2\" | \"shipping address-level3\" | \"shipping address-level4\" | \"shipping address-line1\" | \"shipping address-line2\" | \"shipping address-line3\" | \"shipping country-name\" | \"shipping country\" | \"shipping family-name\" | \"shipping given-name\" | \"shipping honorific-prefix\" | \"shipping honorific-suffix\" | \"shipping nickname\" | \"shipping organization-title\" | \"shipping postal-code\" | \"shipping sex\" | \"shipping street-address\" | \"shipping transaction-currency\" | \"shipping username\" | \"shipping cc-additional-name\" | \"shipping cc-family-name\" | \"shipping cc-given-name\" | \"shipping cc-name\" | \"shipping cc-type\" | \"billing language\" | \"billing organization\" | \"billing name\" | \"billing additional-name\" | \"billing address-level1\" | \"billing address-level2\" | \"billing address-level3\" | \"billing address-level4\" | \"billing address-line1\" | \"billing address-line2\" | \"billing address-line3\" | \"billing country-name\" | \"billing country\" | \"billing family-name\" | \"billing given-name\" | \"billing honorific-prefix\" | \"billing honorific-suffix\" | \"billing nickname\" | \"billing organization-title\" | \"billing postal-code\" | \"billing sex\" | \"billing street-address\" | \"billing transaction-currency\" | \"billing username\" | \"billing cc-additional-name\" | \"billing cc-family-name\" | \"billing cc-given-name\" | \"billing cc-name\" | \"billing cc-type\" | `section-${string} shipping language` | `section-${string} shipping organization` | `section-${string} shipping name` | `section-${string} shipping additional-name` | `section-${string} shipping address-level1` | `section-${string} shipping address-level2` | `section-${string} shipping address-level3` | `section-${string} shipping address-level4` | `section-${string} shipping address-line1` | `section-${string} shipping address-line2` | `section-${string} shipping address-line3` | `section-${string} shipping country-name` | `section-${string} shipping country` | `section-${string} shipping family-name` | `section-${string} shipping given-name` | `section-${string} shipping honorific-prefix` | `section-${string} shipping honorific-suffix` | `section-${string} shipping nickname` | `section-${string} shipping organization-title` | `section-${string} shipping postal-code` | `section-${string} shipping sex` | `section-${string} shipping street-address` | `section-${string} shipping transaction-currency` | `section-${string} shipping username` | `section-${string} shipping cc-additional-name` | `section-${string} shipping cc-family-name` | `section-${string} shipping cc-given-name` | `section-${string} shipping cc-name` | `section-${string} shipping cc-type` | `section-${string} billing language` | `section-${string} billing organization` | `section-${string} billing name` | `section-${string} billing additional-name` | `section-${string} billing address-level1` | `section-${string} billing address-level2` | `section-${string} billing address-level3` | `section-${string} billing address-level4` | `section-${string} billing address-line1` | `section-${string} billing address-line2` | `section-${string} billing address-line3` | `section-${string} billing country-name` | `section-${string} billing country` | `section-${string} billing family-name` | `section-${string} billing given-name` | `section-${string} billing honorific-prefix` | `section-${string} billing honorific-suffix` | `section-${string} billing nickname` | `section-${string} billing organization-title` | `section-${string} billing postal-code` | `section-${string} billing sex` | `section-${string} billing street-address` | `section-${string} billing transaction-currency` | `section-${string} billing username` | `section-${string} billing cc-additional-name` | `section-${string} billing cc-family-name` | `section-${string} billing cc-given-name` | `section-${string} billing cc-name` | `section-${string} billing cc-type`",
- "description": "Controls browser autofill behavior for the field.\n\nBasic values:\n- `on` - Enables autofill without specifying content type (default)\n- `off` - Disables autofill for sensitive data or one-time codes\n\nSpecific field values describe the expected data type. You can optionally prefix these with:\n- `section-${string}` - Scopes autofill to a specific form section (when multiple forms exist on the same page)\n- `shipping` or `billing` - Indicates whether the data is for shipping or billing purposes\n- Both section and group (for example, `section-primary shipping email`)\n\nProviding a specific autofill token helps browsers suggest more relevant saved data.\n\nLearn more about the set of [autocomplete values](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill-detail-tokens) supported in browsers.",
- "defaultValue": "'on' for everything else"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultValue",
- "value": "string",
- "description": "The initial value of the field when it first loads. Unlike `placeholder`, this is a real value that the user can edit and that gets submitted with the form. Once the user starts typing, their input replaces it. Changing this property after the field has loaded has no effect. To update the field value at any time, use `value` instead."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "details",
- "value": "string",
- "description": "Supplementary text displayed below the checkbox to provide additional context, instructions, or help. Use this to explain what checking the box means or provide guidance to users. This text is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "error",
- "value": "string",
- "description": "An error message displayed below the checkbox to indicate validation problems. When set, the checkbox is styled with error indicators and the message is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "label",
- "value": "string",
- "description": "The text displayed as the field label, which identifies the purpose of the field to users. This label is associated with the field for accessibility and helps users understand what information to provide."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "labelAccessibilityVisibility",
- "value": "\"visible\" | \"exclusive\"",
- "description": "Controls whether the label is visible to all users or only to screen readers.\n\n- `visible`: The label is shown to everyone (default).\n- `exclusive`: The label is visually hidden but still announced by screen readers.\n\nUse `exclusive` when the surrounding context makes the label redundant visually, but screen reader users still need it for clarity.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "placeholder",
- "value": "string",
- "description": "The placeholder text displayed in the field when it's empty, providing a hint about the expected input format or value."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "readOnly",
- "value": "boolean",
- "description": "Whether the field is read-only and can't be edited. Read-only fields remain focusable and their content is announced by screen readers.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "required",
- "value": "boolean",
- "description": "Whether the field requires a value before form submission. Displays a visual indicator and adds semantic meaning, but doesn't automatically validate or show errors. Use the `error` property to display validation messages.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "getAttribute",
- "value": "(qualifiedName: string) => string",
- "description": "Global keyboard event handlers for things like key bindings typically ignore keystrokes originating from within input elements. Unfortunately, these never account for a Custom Element being the input element.\n\nTo fix this, we spoof getAttribute & hasAttribute to make a PreactFieldElement appear as a contentEditable \"input\" when it contains a focused input element.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "hasAttribute",
- "value": "(qualifiedName: string) => boolean",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "isContentEditable",
- "value": "boolean",
- "description": "Whether the shadow tree contains a focused input (input, textarea, select, ).\n\nNote: this does _not_ return true for focussed non-field form elements like buttons.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "formResetCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the field is disabled, preventing any user interaction.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "id",
- "value": "string",
- "description": "A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "name",
- "value": "string",
- "description": "The name attribute for the field, used to identify the field's value when the form is submitted. Must be unique within the nearest containing form."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@internals$4@11381",
- "value": "ElementInternals",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class TextField\n extends PreactFieldElement\n implements TextFieldProps\n{\n accessor icon: TextFieldProps['icon'];\n accessor maxLength: TextFieldProps['maxLength'];\n accessor minLength: TextFieldProps['minLength'];\n accessor prefix: TextFieldProps['prefix'];\n accessor suffix: TextFieldProps['suffix'];\n /**\n * The current text value in the field as a string. When setting this property programmatically, it updates the field's display value. When reading it, you get the user's current input.\n */\n get value(): string;\n set value(value: string);\n constructor();\n}"
- },
- "Thumbnail": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Thumbnail",
- "description": "Configure the following properties on the thumbnail component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "src",
- "value": "string",
- "description": "The image source (either a remote URL or a local file resource).\n\nWhen the image is loading or no `src` is provided, a placeholder is rendered."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "alt",
- "value": "string",
- "description": "Alternative text that describes the image for accessibility.\n\nProvides a text description of the image for users with assistive technology and serves as a fallback when the image fails to load. A well-written description enables people with visual impairments to understand non-text content.\n\nWhen a screen reader encounters an image, it reads this description aloud. When an image fails to load, this text displays on screen, helping all users understand what content was intended.\n\nLearn more about [writing effective alt text](https://www.shopify.com/ca/blog/image-alt-text#4) and the [alt attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#alt).",
- "defaultValue": "``"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "size",
- "value": "\"small\" | \"small-200\" | \"small-100\" | \"base\" | \"large\" | \"large-100\"",
- "description": "The size of the product thumbnail image.\n\n- `small-200`: Smallest thumbnail size, ideal for compact product lists or tables.\n- `small-100`: Very small thumbnail, suitable for dense layouts.\n- `small`: Small thumbnail for space-constrained contexts.\n- `base`: Default size that balances visibility and space efficiency.\n- `large`: Larger thumbnail for featured products or detailed views.\n- `large-100`: Extra large thumbnail for prominent product display.",
- "defaultValue": "'base'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Thumbnail extends PreactCustomElement implements ThumbnailProps {\n accessor src: ThumbnailProps['src'];\n accessor alt: ThumbnailProps['alt'];\n accessor size: ThumbnailProps['size'];\n constructor();\n}"
- },
- "Tooltip": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "Tooltip",
- "description": "Configure the following properties on the tooltip component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@overlayHidden@11750",
- "value": "boolean",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@overlayActivator@11751",
- "value": "HTMLElement",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@overlayHideFrameId@11752",
- "value": "number",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class Tooltip extends PreactOverlayElement implements TooltipProps {\n constructor();\n}"
- },
- "UnorderedList": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "UnorderedList",
- "description": "Configure the following properties on the unordered list component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class UnorderedList\n extends PreactCustomElement\n implements UnorderedListProps\n{\n constructor();\n}"
- },
- "URLField": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "URLField",
- "description": "Configure the following properties on the URL field component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "autocomplete",
- "value": "\"on\" | \"off\" | `section-${string} url` | `section-${string} photo` | `section-${string} impp` | `section-${string} home impp` | `section-${string} mobile impp` | `section-${string} fax impp` | `section-${string} pager impp` | \"shipping url\" | \"shipping photo\" | \"shipping impp\" | \"shipping home impp\" | \"shipping mobile impp\" | \"shipping fax impp\" | \"shipping pager impp\" | \"billing url\" | \"billing photo\" | \"billing impp\" | \"billing home impp\" | \"billing mobile impp\" | \"billing fax impp\" | \"billing pager impp\" | `section-${string} shipping url` | `section-${string} shipping photo` | `section-${string} shipping impp` | `section-${string} shipping home impp` | `section-${string} shipping mobile impp` | `section-${string} shipping fax impp` | `section-${string} shipping pager impp` | `section-${string} billing url` | `section-${string} billing photo` | `section-${string} billing impp` | `section-${string} billing home impp` | `section-${string} billing mobile impp` | `section-${string} billing fax impp` | `section-${string} billing pager impp` | URLAutocompleteField",
- "description": "Controls browser autofill behavior for the field.\n\nBasic values:\n- `on` - Enables autofill without specifying content type (default)\n- `off` - Disables autofill for sensitive data or one-time codes\n\nSpecific field values describe the expected data type. You can optionally prefix these with:\n- `section-${string}` - Scopes autofill to a specific form section (when multiple forms exist on the same page)\n- `shipping` or `billing` - Indicates whether the data is for shipping or billing purposes\n- Both section and group (for example, `section-primary shipping email`)\n\nProviding a specific autofill token helps browsers suggest more relevant saved data.\n\nLearn more about the set of [autocomplete values](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill-detail-tokens) supported in browsers.",
- "defaultValue": "'on' for everything else"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "maxLength",
- "value": "number",
- "description": "The maximum number of characters allowed in the field.",
- "defaultValue": "Infinity"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "minLength",
- "value": "number",
- "description": "The minimum number of characters required in the field.",
- "defaultValue": "0"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "value",
- "value": "string",
- "description": "The current URL value in the field as a string. When setting this property programmatically, it updates the field's display value. When reading it, you get the user's current input. The field validates this value as a URL format when the user finishes editing."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "defaultValue",
- "value": "string",
- "description": "The initial value of the field when it first loads. Unlike `placeholder`, this is a real value that the user can edit and that gets submitted with the form. Once the user starts typing, their input replaces it. Changing this property after the field has loaded has no effect. To update the field value at any time, use `value` instead."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "details",
- "value": "string",
- "description": "Supplementary text displayed below the checkbox to provide additional context, instructions, or help. Use this to explain what checking the box means or provide guidance to users. This text is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "error",
- "value": "string",
- "description": "An error message displayed below the checkbox to indicate validation problems. When set, the checkbox is styled with error indicators and the message is announced to screen readers."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "label",
- "value": "string",
- "description": "The text displayed as the field label, which identifies the purpose of the field to users. This label is associated with the field for accessibility and helps users understand what information to provide."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "labelAccessibilityVisibility",
- "value": "\"visible\" | \"exclusive\"",
- "description": "Controls whether the label is visible to all users or only to screen readers.\n\n- `visible`: The label is shown to everyone (default).\n- `exclusive`: The label is visually hidden but still announced by screen readers.\n\nUse `exclusive` when the surrounding context makes the label redundant visually, but screen reader users still need it for clarity.",
- "defaultValue": "'visible'"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "placeholder",
- "value": "string",
- "description": "The placeholder text displayed in the field when it's empty, providing a hint about the expected input format or value."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "readOnly",
- "value": "boolean",
- "description": "Whether the field is read-only and can't be edited. Read-only fields remain focusable and their content is announced by screen readers.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "required",
- "value": "boolean",
- "description": "Whether the field requires a value before form submission. Displays a visual indicator and adds semantic meaning, but doesn't automatically validate or show errors. Use the `error` property to display validation messages.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "getAttribute",
- "value": "(qualifiedName: string) => string",
- "description": "Global keyboard event handlers for things like key bindings typically ignore keystrokes originating from within input elements. Unfortunately, these never account for a Custom Element being the input element.\n\nTo fix this, we spoof getAttribute & hasAttribute to make a PreactFieldElement appear as a contentEditable \"input\" when it contains a focused input element.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "hasAttribute",
- "value": "(qualifiedName: string) => boolean",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "GetAccessor",
- "name": "isContentEditable",
- "value": "boolean",
- "description": "Whether the shadow tree contains a focused input (input, textarea, select, ).\n\nNote: this does _not_ return true for focussed non-field form elements like buttons.",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "formResetCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "disabled",
- "value": "boolean",
- "description": "Whether the field is disabled, preventing any user interaction.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "id",
- "value": "string",
- "description": "A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "name",
- "value": "string",
- "description": "The name attribute for the field, used to identify the field's value when the form is submitted. Must be unique within the nearest containing form."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "__@internals$4@11381",
- "value": "ElementInternals",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class URLField\n extends PreactFieldElement\n implements URLFieldProps\n{\n accessor autocomplete: URLFieldProps['autocomplete'];\n accessor maxLength: URLFieldProps['maxLength'];\n accessor minLength: URLFieldProps['minLength'];\n /**\n * The current URL value in the field as a string. When setting this property programmatically, it updates the field's display value. When reading it, you get the user's current input. The field validates this value as a URL format when the user finishes editing.\n */\n get value(): string;\n set value(value: string);\n constructor();\n}"
- },
- "URLAutocompleteField": {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "TypeAliasDeclaration",
- "name": "URLAutocompleteField",
- "value": "'url' | 'photo' | 'impp' | 'home impp' | 'mobile impp' | 'fax impp' | 'pager impp'",
- "description": "Represents autocomplete values that are valid for URL input fields. This is a subset of `AnyAutocompleteField` containing only fields suitable for URL inputs.\n\nAvailable values:\n- `url` - General URL or web address\n- `photo` - URL to a photo or image\n- `impp` - Instant messaging protocol URL\n- `home impp` - Home instant messaging protocol URL\n- `mobile impp` - Mobile instant messaging protocol URL\n- `fax impp` - Fax instant messaging protocol URL\n- `pager impp` - Pager instant messaging protocol URL",
- "isPublicDocs": true
- },
- "AdminAction": {
- "filePath": "src/surfaces/admin/components.ts",
- "name": "AdminAction",
- "description": "Configure the following properties on the admin action component.",
- "isPublicDocs": true,
- "members": [
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "heading",
- "value": "string",
- "description": "The text to use as the Action modal's title. If not provided, the name of the extension will be used."
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "PropertyDeclaration",
- "name": "loading",
- "value": "boolean",
- "description": "Whether the action is in a loading state, such as during initial page load or when the action is being opened. When `true`, the action might be in an inert state that prevents user interaction.",
- "defaultValue": "false"
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "setAttribute",
- "value": "(name: string, value: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "attributeChangedCallback",
- "value": "(name: string) => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "connectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "disconnectedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "adoptedCallback",
- "value": "() => void",
- "description": "",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "queueRender",
- "value": "() => void",
- "description": "A method that queues a run of the render function. You shouldn't need to call this manually - it should be handled by changes to",
- "isPrivate": true
- },
- {
- "filePath": "src/surfaces/admin/components.ts",
- "syntaxKind": "MethodDeclaration",
- "name": "click",
- "value": "({ sourceEvent }?: ClickOptions) => void",
- "description": "A method like the standard `element.click()`, but you can influence the behavior with a `sourceEvent`.\n\nFor example, if the `sourceEvent` was a middle click, or has particular keys held down, components will attempt to produce the desired behavior on links, such as opening the page in the background tab.",
- "isPrivate": true
- }
- ],
- "value": "declare class AdminAction\n extends PreactCustomElement\n implements AdminActionProps\n{\n /**\n * The text to use as the Action modal's title. If not provided, the name of the extension will be used.\n */\n heading: string;\n /**\n * Whether the action is in a loading state, such as during initial page load or when the action is being opened.\n * When `true`, the action might be in an inert state that prevents user interaction.\n */\n loading: boolean;\n constructor();\n}"
- },
- "RunnableExtension": {
- "filePath": "src/extension.ts",
- "name": "RunnableExtension",
- "description": "Defines the structure of a runnable extension, which executes logic and returns data without rendering UI.",
- "members": [
- {
- "filePath": "src/extension.ts",
- "syntaxKind": "PropertySignature",
- "name": "api",
- "value": "Api",
- "description": "The API object providing access to extension capabilities and methods. The specific API type depends on the extension target and determines what functionality is available to your extension."
- },
- {
- "filePath": "src/extension.ts",
- "syntaxKind": "PropertySignature",
- "name": "output",
- "value": "Output | Promise