An open source design system that's fully customizable and agent ready
TypeScript
docs: fix OverflowList bare > in examples, add missing theming sections (#798)
Joey5d96af5e7dc1
diff --git a/packages/core/src/OverflowList/XDSOverflowList.tsx b/packages/core/src/OverflowList/XDSOverflowList.tsxindex 16f95c0b27..6aff28f2e5 100644--- a/packages/core/src/OverflowList/XDSOverflowList.tsx+++ b/packages/core/src/OverflowList/XDSOverflowList.tsx@@ -143,8 +143,7 @@ export interface XDSOverflowListProps extends XDSBaseProps<HTMLDivElement> {* button={{label: `+${overflowItems.length}`, variant: 'ghost'}}* items={overflowItems.map(({index}) => ({ label: labels[index] }))}* />- * )}- * >+ * )}>* {labels.map(l => <XDSButton key={l} label={l} />)}* </XDSOverflowList>* ```@@ -165,8 +164,7 @@ export interface XDSOverflowListProps extends XDSBaseProps<HTMLDivElement> {* gap={2}* overflowRenderer={(items) => (* <XDSButton label={`+${items.length} more`} variant="ghost" />- * )}- * >+ * )}>* <XDSButton label="Action 1" />* <XDSButton label="Action 2" />* <XDSButton label="Action 3" />diff --git a/packages/core/src/TimeInput/TimeInput.doc.mjs b/packages/core/src/TimeInput/TimeInput.doc.mjsindex a2da68700e..e1530e8c64 100644--- a/packages/core/src/TimeInput/TimeInput.doc.mjs+++ b/packages/core/src/TimeInput/TimeInput.doc.mjs@@ -203,6 +203,11 @@ export const docs = {],keyboard:'ArrowUp / ArrowDown adjust the current time by the configured increment in minutes. Typing a time string in common formats (e.g. "2:30 PM", "14:30") is parsed on blur. Pressing the clear button returns focus to the input.',+ theming: {+ targets: [+ {className: 'xds-time-input', visualProps: ['size']},+ ],+ },};/** @type {import('../docs-types').ComponentDoc} */@@ -409,6 +414,11 @@ export const docsZh = {],keyboard:'上/下方向键按配置的分钟增量调整当前时间。以常见格式(例如 "2:30 PM"、"14:30")输入时间字符串会在失焦时解析。按清除按钮将焦点返回到输入框。',+ theming: {+ targets: [+ {className: 'xds-time-input', visualProps: ['size']},+ ],+ },};/** @type {import('../docs-types').TranslationDoc} */diff --git a/packages/core/src/Tooltip/Tooltip.doc.mjs b/packages/core/src/Tooltip/Tooltip.doc.mjsindex 1f38058e02..84a3cb5153 100644--- a/packages/core/src/Tooltip/Tooltip.doc.mjs+++ b/packages/core/src/Tooltip/Tooltip.doc.mjs@@ -192,6 +192,11 @@ export const docs = {],},],+ theming: {+ targets: [+ {className: 'xds-tooltip'},+ ],+ },};/** @type {import('../docs-types').ComponentDoc} */@@ -387,6 +392,11 @@ export const docsZh = {],},],+ theming: {+ targets: [+ {className: 'xds-tooltip'},+ ],+ },};/** @type {import('../docs-types').TranslationDoc} */