@atlaskit/editor-toolbar 1.10.14 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/add-icon/package.json +1 -8
- package/ai-adjust-length-icon/package.json +1 -8
- package/ai-casual-icon/package.json +1 -8
- package/ai-change-tone-icon/package.json +1 -8
- package/ai-chat-icon/package.json +1 -8
- package/ai-command-icon/package.json +1 -8
- package/ai-heart-icon/package.json +1 -8
- package/ai-lengthen-icon/package.json +1 -8
- package/ai-professional-icon/package.json +1 -8
- package/ai-shorten-icon/package.json +1 -8
- package/ai-spellcheck-icon/package.json +1 -8
- package/ai-summarize-icon/package.json +1 -8
- package/ai-translate-icon/package.json +1 -8
- package/align-text-center-icon/package.json +1 -8
- package/align-text-left-icon/package.json +1 -8
- package/align-text-right-icon/package.json +1 -8
- package/app-icon/package.json +1 -8
- package/apps-icon/package.json +1 -8
- package/bold-icon/package.json +1 -8
- package/clear-formatting-icon/package.json +1 -8
- package/code-icon/package.json +1 -8
- package/color-palette/package.json +1 -8
- package/comment-icon/package.json +1 -8
- package/define-icon/package.json +1 -8
- package/emoji-icon/package.json +1 -8
- package/heading-five-icon/package.json +1 -8
- package/heading-four-icon/package.json +1 -8
- package/heading-one-icon/package.json +1 -8
- package/heading-six-icon/package.json +1 -8
- package/heading-three-icon/package.json +1 -8
- package/heading-two-icon/package.json +1 -8
- package/history-icon/package.json +1 -8
- package/image-icon/package.json +1 -8
- package/indent-icon/package.json +1 -8
- package/italic-icon/package.json +1 -8
- package/layout-icon/package.json +1 -8
- package/link-icon/package.json +1 -8
- package/list-bulleted-icon/package.json +1 -8
- package/list-numbered-icon/package.json +1 -8
- package/loom-icon/package.json +1 -8
- package/mention-icon/package.json +1 -8
- package/more-items-icon/package.json +1 -8
- package/nested-dropdown-right-icon/package.json +1 -8
- package/outdent-icon/package.json +1 -8
- package/package.json +13 -13
- package/pin-icon/package.json +1 -8
- package/pinned-icon/package.json +1 -8
- package/plus-icon/package.json +1 -8
- package/quote-icon/package.json +1 -8
- package/redo-icon/package.json +1 -8
- package/responsive-container/package.json +1 -8
- package/show/package.json +1 -8
- package/show-more-horizontal/package.json +1 -8
- package/strike-through-icon/package.json +1 -8
- package/subscript-icon/package.json +1 -8
- package/superscript-icon/package.json +1 -8
- package/sync-blocks-icon/package.json +1 -8
- package/table-icon/package.json +1 -8
- package/task-icon/package.json +1 -8
- package/text-color-icon/package.json +1 -8
- package/text-icon/package.json +1 -8
- package/text-normal-icon/package.json +1 -8
- package/text-small-icon/package.json +1 -8
- package/toolbar/package.json +1 -8
- package/toolbar-button/package.json +1 -8
- package/toolbar-button-group/package.json +1 -8
- package/toolbar-color-swatch/package.json +1 -8
- package/toolbar-dropdown-item/package.json +1 -8
- package/toolbar-dropdown-item-section/package.json +1 -8
- package/toolbar-dropdown-menu/package.json +1 -8
- package/toolbar-dropdown-menu-context/package.json +1 -8
- package/toolbar-keyboard-navigation-provider/package.json +1 -8
- package/toolbar-keyboard-shortcut-hint/package.json +1 -8
- package/toolbar-menu-container/package.json +1 -8
- package/toolbar-nested-dropdown-menu/package.json +1 -8
- package/toolbar-section/package.json +1 -8
- package/toolbar-tooltip/package.json +1 -8
- package/types/package.json +1 -8
- package/ui-context/package.json +1 -8
- package/underline-icon/package.json +1 -8
- package/undo-icon/package.json +1 -8
- package/work-item-icon/package.json +1 -8
- package/work-items-icon/package.json +1 -8
- package/dist/types-ts4.5/entry-points/add-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ai-adjust-length-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ai-casual-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ai-change-tone-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ai-chat-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ai-command-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ai-heart-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ai-lengthen-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ai-professional-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ai-shorten-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ai-spellcheck-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ai-summarize-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ai-translate-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/align-text-center-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/align-text-left-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/align-text-right-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/app-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/apps-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/bold-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/clear-formatting-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/code-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/color-palette.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/comment-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/define-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/emoji-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/heading-five-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/heading-four-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/heading-one-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/heading-six-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/heading-three-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/heading-two-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/history-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/image-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/indent-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/italic-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/layout-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/link-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/list-bulleted-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/list-numbered-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/loom-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/mention-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/more-items-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/nested-dropdown-right-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/outdent-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/pin-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/pinned-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/plus-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/quote-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/redo-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/responsive-container.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/show-more-horizontal.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/show.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/strike-through-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/subscript-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/superscript-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/sync-blocks-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/table-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/task-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/text-color-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/text-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/text-normal-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/text-small-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/toolbar-button-group.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/toolbar-button.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/toolbar-color-swatch.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/toolbar-dropdown-item-section.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/toolbar-dropdown-item.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/toolbar-dropdown-menu-context.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/toolbar-dropdown-menu.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/toolbar-keyboard-navigation-provider.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/toolbar-keyboard-shortcut-hint.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/toolbar-menu-container.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/toolbar-nested-dropdown-menu.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/toolbar-section.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/toolbar-tooltip.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/toolbar.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ui-context.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/underline-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/undo-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/work-item-icon.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/work-items-icon.d.ts +0 -1
- package/dist/types-ts4.5/hooks/ui-context.d.ts +0 -49
- package/dist/types-ts4.5/index.d.ts +0 -98
- package/dist/types-ts4.5/types.d.ts +0 -14
- package/dist/types-ts4.5/ui/ColorPalette/Color.d.ts +0 -11
- package/dist/types-ts4.5/ui/ColorPalette/getColorMessage.d.ts +0 -8
- package/dist/types-ts4.5/ui/ColorPalette/index.d.ts +0 -15
- package/dist/types-ts4.5/ui/ColorPalette/types.d.ts +0 -89
- package/dist/types-ts4.5/ui/ColorPalette/utils.d.ts +0 -40
- package/dist/types-ts4.5/ui/ResponsiveContainer.d.ts +0 -73
- package/dist/types-ts4.5/ui/Show.d.ts +0 -30
- package/dist/types-ts4.5/ui/Toolbar.d.ts +0 -26
- package/dist/types-ts4.5/ui/ToolbarButton.d.ts +0 -20
- package/dist/types-ts4.5/ui/ToolbarButtonGroup.d.ts +0 -6
- package/dist/types-ts4.5/ui/ToolbarColorSwatch.d.ts +0 -8
- package/dist/types-ts4.5/ui/ToolbarDropdownItem.d.ts +0 -43
- package/dist/types-ts4.5/ui/ToolbarDropdownItemSection.d.ts +0 -10
- package/dist/types-ts4.5/ui/ToolbarDropdownMenu.d.ts +0 -26
- package/dist/types-ts4.5/ui/ToolbarDropdownMenuContext.d.ts +0 -15
- package/dist/types-ts4.5/ui/ToolbarKeyboardNavigationProvider.d.ts +0 -7
- package/dist/types-ts4.5/ui/ToolbarKeyboardShortcutHint.d.ts +0 -7
- package/dist/types-ts4.5/ui/ToolbarMenuContainer.d.ts +0 -16
- package/dist/types-ts4.5/ui/ToolbarNestedDropdownMenu.d.ts +0 -27
- package/dist/types-ts4.5/ui/ToolbarSection.d.ts +0 -19
- package/dist/types-ts4.5/ui/ToolbarTooltip.d.ts +0 -11
- package/dist/types-ts4.5/ui/ViewEventEmitter.d.ts +0 -12
- package/dist/types-ts4.5/ui/icons/AIAdjustLengthIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/AICasualIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/AIChangeToneIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/AIChatIcon.d.ts +0 -10
- package/dist/types-ts4.5/ui/icons/AICommandIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/AIHeartIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/AILengthenIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/AIProfessionalIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/AIShortenIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/AISpellcheckIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/AISummarizeIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/AITranslateIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/AddIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/AlignTextCenterIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/AlignTextLeftIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/AlignTextRightIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/AppIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/AppsIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/ArrowDownIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/ArrowUpIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/BoldIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/ClearFormattingIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/CodeIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/CommentIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/CrossIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/DefineIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/DeleteIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/EmojiIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/HeadingFiveIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/HeadingFourIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/HeadingOneIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/HeadingSixIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/HeadingThreeIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/HeadingTwoIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/HistoryIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/ImageIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/IndentIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/ItalicIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/LayoutIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/LinkIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/ListBulletedIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/ListNumberedIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/LoomIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/MentionIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/MoreItemsIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/NestedDropdownRightIcon.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/OutdentIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/PaintBucketIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/PinIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/PinnedIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/PlusIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/QuoteIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/RedoIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/ShowMoreHorizontal.d.ts +0 -2
- package/dist/types-ts4.5/ui/icons/SortAscendingIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/SortDescendingIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/StrikeThroughIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/SubscriptIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/SuperscriptIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/SyncBlocksIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/TableCellMergeIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/TableCellSplitIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/TableColumnAddLeftIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/TableColumnAddRightIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/TableColumnMoveRightIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/TableColumnsDistributeIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/TableIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/TableRowAddAboveIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/TableRowAddBelowIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/TableRowMoveDownIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/TableRowMoveUpIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/TaskIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/TextColorIcon.d.ts +0 -9
- package/dist/types-ts4.5/ui/icons/TextIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/TextNormalIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/TextSmallIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/UnderlineIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/UndoIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/WorkItemIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/icons/WorkItemsIcon.d.ts +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AddIcon } from '../ui/icons/AddIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AIAdjustLengthIcon } from '../ui/icons/AIAdjustLengthIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AICasualIcon } from '../ui/icons/AICasualIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AIChangeToneIcon } from '../ui/icons/AIChangeToneIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AIChatIcon } from '../ui/icons/AIChatIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AICommandIcon } from '../ui/icons/AICommandIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AIHeartIcon } from '../ui/icons/AIHeartIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AILengthenIcon } from '../ui/icons/AILengthenIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AIBriefcaseIcon } from '../ui/icons/AIProfessionalIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AIShortenIcon } from '../ui/icons/AIShortenIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AISpellcheckIcon } from '../ui/icons/AISpellcheckIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AISummarizeIcon } from '../ui/icons/AISummarizeIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AITranslateIcon } from '../ui/icons/AITranslateIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AlignTextCenterIcon } from '../ui/icons/AlignTextCenterIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AlignTextLeftIcon } from '../ui/icons/AlignTextLeftIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AlignTextRightIcon } from '../ui/icons/AlignTextRightIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AppIcon } from '../ui/icons/AppIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AppsIcon } from '../ui/icons/AppsIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { BoldIcon } from '../ui/icons/BoldIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ClearFormattingIcon } from '../ui/icons/ClearFormattingIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CodeIcon } from '../ui/icons/CodeIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ColorPalette } from '../ui/ColorPalette/index';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CommentIcon } from '../ui/icons/CommentIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DefineIcon } from '../ui/icons/DefineIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { EmojiIcon } from '../ui/icons/EmojiIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { HeadingFiveIcon } from '../ui/icons/HeadingFiveIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { HeadingFourIcon } from '../ui/icons/HeadingFourIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { HeadingOneIcon } from '../ui/icons/HeadingOneIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { HeadingSixIcon } from '../ui/icons/HeadingSixIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { HeadingThreeIcon } from '../ui/icons/HeadingThreeIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { HeadingTwoIcon } from '../ui/icons/HeadingTwoIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { HistoryIcon } from '../ui/icons/HistoryIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ImageIcon } from '../ui/icons/ImageIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { IndentIcon } from '../ui/icons/IndentIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ItalicIcon } from '../ui/icons/ItalicIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { LayoutIcon } from '../ui/icons/LayoutIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { LinkIcon } from '../ui/icons/LinkIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ListBulletedIcon } from '../ui/icons/ListBulletedIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ListNumberedIcon } from '../ui/icons/ListNumberedIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { LoomIcon } from '../ui/icons/LoomIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { MentionIcon } from '../ui/icons/MentionIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { MoreItemsIcon } from '../ui/icons/MoreItemsIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { NestedDropdownRightIcon } from '../ui/icons/NestedDropdownRightIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { OutdentIcon } from '../ui/icons/OutdentIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PinIcon } from '../ui/icons/PinIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PinnedIcon } from '../ui/icons/PinnedIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PlusIcon } from '../ui/icons/PlusIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { QuoteIcon } from '../ui/icons/QuoteIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { RedoIcon } from '../ui/icons/RedoIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ShowMoreHorizontalIcon } from '../ui/icons/ShowMoreHorizontal';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { StrikeThroughIcon } from '../ui/icons/StrikeThroughIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SubscriptIcon } from '../ui/icons/SubscriptIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SuperscriptIcon } from '../ui/icons/SuperscriptIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SyncBlocksIcon } from '../ui/icons/SyncBlocksIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TableIcon } from '../ui/icons/TableIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TaskIcon } from '../ui/icons/TaskIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TextColorIcon } from '../ui/icons/TextColorIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TextIcon } from '../ui/icons/TextIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TextNormalIcon } from '../ui/icons/TextNormalIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TextSmallIcon } from '../ui/icons/TextSmallIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ToolbarButtonGroup } from '../ui/ToolbarButtonGroup';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ToolbarButton } from '../ui/ToolbarButton';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ToolbarColorSwatch } from '../ui/ToolbarColorSwatch';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ToolbarDropdownItemSection } from '../ui/ToolbarDropdownItemSection';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useToolbarDropdownMenu, ToolbarDropdownMenuProvider, } from '../ui/ToolbarDropdownMenuContext';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ToolbarDropdownMenu } from '../ui/ToolbarDropdownMenu';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ToolbarKeyboardNavigationProvider } from '../ui/ToolbarKeyboardNavigationProvider';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ToolbarKeyboardShortcutHint } from '../ui/ToolbarKeyboardShortcutHint';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ToolbarMenuContainer } from '../ui/ToolbarMenuContainer';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ToolbarNestedDropdownMenu } from '../ui/ToolbarNestedDropdownMenu';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ToolbarSection, SeparatorPosition } from '../ui/ToolbarSection';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ToolbarTooltip } from '../ui/ToolbarTooltip';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Toolbar, PrimaryToolbar } from '../ui/Toolbar';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { IconComponent, ToolbarKeyboardNavigationProviderConfig } from '../types';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { UnderlineIcon } from '../ui/icons/UnderlineIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { UndoIcon } from '../ui/icons/UndoIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { WorkItemIcon } from '../ui/icons/WorkItemIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { WorkItemsIcon } from '../ui/icons/WorkItemsIcon';
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { OnOpenChangeArgs } from '@atlaskit/dropdown-menu';
|
|
3
|
-
import type { ToolbarKeyboardNavigationProviderConfig } from '../types';
|
|
4
|
-
type AnalyticsEventPayload = {
|
|
5
|
-
action: string;
|
|
6
|
-
actionSubject?: string;
|
|
7
|
-
actionSubjectId?: string;
|
|
8
|
-
eventType: string;
|
|
9
|
-
};
|
|
10
|
-
type FireAnalyticsEvent = (payload: AnalyticsEventPayload) => void | undefined;
|
|
11
|
-
export type ToolbarUIContextType = {
|
|
12
|
-
/**
|
|
13
|
-
* True only when the toolbar is disabled from isDisabled.
|
|
14
|
-
* Excludes disabling under platform_editor_default_toolbar_state, where buttons are
|
|
15
|
-
* disabled by default until the user interacts with the editor.
|
|
16
|
-
*/
|
|
17
|
-
disabledWithoutInteractionLogic?: boolean;
|
|
18
|
-
fireAnalyticsEvent?: FireAnalyticsEvent;
|
|
19
|
-
/**
|
|
20
|
-
* Indicates whether the toolbar is disabled when the editor is offline.
|
|
21
|
-
*/
|
|
22
|
-
isDisabled?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Configuration for Keyboard Shortcuts/ Navigation
|
|
25
|
-
*/
|
|
26
|
-
keyboardNavigation?: ToolbarKeyboardNavigationProviderConfig;
|
|
27
|
-
/**
|
|
28
|
-
* Callback for when the dropdown is open/closed. Receives an object with `isOpen` state.
|
|
29
|
-
*
|
|
30
|
-
* If the dropdown was closed programmatically, the `event` parameter will be `null`.
|
|
31
|
-
*/
|
|
32
|
-
onDropdownOpenChanged: (args: OnOpenChangeArgs) => void;
|
|
33
|
-
popupsBoundariesElement?: HTMLElement;
|
|
34
|
-
popupsMountPoint?: HTMLElement;
|
|
35
|
-
popupsScrollableElement?: HTMLElement;
|
|
36
|
-
/**
|
|
37
|
-
* Whether to prevent default behavior on mouse down events on ToolbarButton.
|
|
38
|
-
*/
|
|
39
|
-
preventDefaultOnMouseDown?: boolean;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Access consumer specific config and state within a toolbar component
|
|
43
|
-
*/
|
|
44
|
-
export declare const useToolbarUI: () => ToolbarUIContextType;
|
|
45
|
-
type ToolbarUIProviderProps = {
|
|
46
|
-
children: React.ReactNode;
|
|
47
|
-
} & ToolbarUIContextType;
|
|
48
|
-
export declare const ToolbarUIProvider: ({ children, onDropdownOpenChanged, preventDefaultOnMouseDown, isDisabled, disabledWithoutInteractionLogic, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, fireAnalyticsEvent, keyboardNavigation, }: ToolbarUIProviderProps) => React.JSX.Element;
|
|
49
|
-
export {};
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
export { Toolbar, PrimaryToolbar } from './ui/Toolbar';
|
|
2
|
-
export { ToolbarButton } from './ui/ToolbarButton';
|
|
3
|
-
export { ToolbarButtonGroup } from './ui/ToolbarButtonGroup';
|
|
4
|
-
export { ToolbarDropdownMenu } from './ui/ToolbarDropdownMenu';
|
|
5
|
-
export { ToolbarDropdownItem } from './ui/ToolbarDropdownItem';
|
|
6
|
-
export { ToolbarDropdownItemSection } from './ui/ToolbarDropdownItemSection';
|
|
7
|
-
export { ToolbarNestedDropdownMenu } from './ui/ToolbarNestedDropdownMenu';
|
|
8
|
-
export { ToolbarKeyboardNavigationProvider } from './ui/ToolbarKeyboardNavigationProvider';
|
|
9
|
-
export { ToolbarKeyboardShortcutHint } from './ui/ToolbarKeyboardShortcutHint';
|
|
10
|
-
export { ToolbarSection, SeparatorPosition } from './ui/ToolbarSection';
|
|
11
|
-
export { ToolbarTooltip } from './ui/ToolbarTooltip';
|
|
12
|
-
export { ToolbarColorSwatch } from './ui/ToolbarColorSwatch';
|
|
13
|
-
export { useToolbarDropdownMenu, ToolbarDropdownMenuProvider, } from './ui/ToolbarDropdownMenuContext';
|
|
14
|
-
export { ResponsiveContainer, type BreakpointPreset } from './ui/ResponsiveContainer';
|
|
15
|
-
export { Show, type Breakpoint } from './ui/Show';
|
|
16
|
-
export { AIAdjustLengthIcon } from './ui/icons/AIAdjustLengthIcon';
|
|
17
|
-
export { AIChatIcon } from './ui/icons/AIChatIcon';
|
|
18
|
-
export { AIBriefcaseIcon } from './ui/icons/AIProfessionalIcon';
|
|
19
|
-
export { AICasualIcon } from './ui/icons/AICasualIcon';
|
|
20
|
-
export { AIHeartIcon } from './ui/icons/AIHeartIcon';
|
|
21
|
-
export { AIShortenIcon } from './ui/icons/AIShortenIcon';
|
|
22
|
-
export { AISpellcheckIcon } from './ui/icons/AISpellcheckIcon';
|
|
23
|
-
export { AIChangeToneIcon } from './ui/icons/AIChangeToneIcon';
|
|
24
|
-
export { AILengthenIcon } from './ui/icons/AILengthenIcon';
|
|
25
|
-
export { AISummarizeIcon } from './ui/icons/AISummarizeIcon';
|
|
26
|
-
export { AITranslateIcon } from './ui/icons/AITranslateIcon';
|
|
27
|
-
export { NestedDropdownRightIcon } from './ui/icons/NestedDropdownRightIcon';
|
|
28
|
-
export { AICommandIcon } from './ui/icons/AICommandIcon';
|
|
29
|
-
export { AddIcon } from './ui/icons/AddIcon';
|
|
30
|
-
export { AppIcon } from './ui/icons/AppIcon';
|
|
31
|
-
export { AppsIcon } from './ui/icons/AppsIcon';
|
|
32
|
-
export { BoldIcon } from './ui/icons/BoldIcon';
|
|
33
|
-
export { CommentIcon } from './ui/icons/CommentIcon';
|
|
34
|
-
export { DefineIcon } from './ui/icons/DefineIcon';
|
|
35
|
-
export { HeadingFiveIcon } from './ui/icons/HeadingFiveIcon';
|
|
36
|
-
export { HeadingFourIcon } from './ui/icons/HeadingFourIcon';
|
|
37
|
-
export { HeadingOneIcon } from './ui/icons/HeadingOneIcon';
|
|
38
|
-
export { HeadingSixIcon } from './ui/icons/HeadingSixIcon';
|
|
39
|
-
export { HeadingThreeIcon } from './ui/icons/HeadingThreeIcon';
|
|
40
|
-
export { HeadingTwoIcon } from './ui/icons/HeadingTwoIcon';
|
|
41
|
-
export { ItalicIcon } from './ui/icons/ItalicIcon';
|
|
42
|
-
export { LinkIcon } from './ui/icons/LinkIcon';
|
|
43
|
-
export { ListBulletedIcon } from './ui/icons/ListBulletedIcon';
|
|
44
|
-
export { ListNumberedIcon } from './ui/icons/ListNumberedIcon';
|
|
45
|
-
export { MoreItemsIcon } from './ui/icons/MoreItemsIcon';
|
|
46
|
-
export { CrossIcon } from './ui/icons/CrossIcon';
|
|
47
|
-
export { DeleteIcon } from './ui/icons/DeleteIcon';
|
|
48
|
-
export { PaintBucketIcon } from './ui/icons/PaintBucketIcon';
|
|
49
|
-
export { PinIcon } from './ui/icons/PinIcon';
|
|
50
|
-
export { PinnedIcon } from './ui/icons/PinnedIcon';
|
|
51
|
-
export { QuoteIcon } from './ui/icons/QuoteIcon';
|
|
52
|
-
export { TextColorIcon } from './ui/icons/TextColorIcon';
|
|
53
|
-
export { TextIcon } from './ui/icons/TextIcon';
|
|
54
|
-
export { TextNormalIcon } from './ui/icons/TextNormalIcon';
|
|
55
|
-
export { TextSmallIcon } from './ui/icons/TextSmallIcon';
|
|
56
|
-
export { ClearFormattingIcon } from './ui/icons/ClearFormattingIcon';
|
|
57
|
-
export { UnderlineIcon } from './ui/icons/UnderlineIcon';
|
|
58
|
-
export { StrikeThroughIcon } from './ui/icons/StrikeThroughIcon';
|
|
59
|
-
export { CodeIcon } from './ui/icons/CodeIcon';
|
|
60
|
-
export { SubscriptIcon } from './ui/icons/SubscriptIcon';
|
|
61
|
-
export { SuperscriptIcon } from './ui/icons/SuperscriptIcon';
|
|
62
|
-
export { ShowMoreHorizontalIcon } from './ui/icons/ShowMoreHorizontal';
|
|
63
|
-
export { AlignTextLeftIcon } from './ui/icons/AlignTextLeftIcon';
|
|
64
|
-
export { AlignTextCenterIcon } from './ui/icons/AlignTextCenterIcon';
|
|
65
|
-
export { AlignTextRightIcon } from './ui/icons/AlignTextRightIcon';
|
|
66
|
-
export { IndentIcon } from './ui/icons/IndentIcon';
|
|
67
|
-
export { OutdentIcon } from './ui/icons/OutdentIcon';
|
|
68
|
-
export { EmojiIcon } from './ui/icons/EmojiIcon';
|
|
69
|
-
export { LayoutIcon } from './ui/icons/LayoutIcon';
|
|
70
|
-
export { ImageIcon } from './ui/icons/ImageIcon';
|
|
71
|
-
export { MentionIcon } from './ui/icons/MentionIcon';
|
|
72
|
-
export { ArrowDownIcon } from './ui/icons/ArrowDownIcon';
|
|
73
|
-
export { ArrowUpIcon } from './ui/icons/ArrowUpIcon';
|
|
74
|
-
export { SortAscendingIcon } from './ui/icons/SortAscendingIcon';
|
|
75
|
-
export { SortDescendingIcon } from './ui/icons/SortDescendingIcon';
|
|
76
|
-
export { TableIcon } from './ui/icons/TableIcon';
|
|
77
|
-
export { TableColumnAddLeftIcon } from './ui/icons/TableColumnAddLeftIcon';
|
|
78
|
-
export { TableColumnAddRightIcon } from './ui/icons/TableColumnAddRightIcon';
|
|
79
|
-
export { TableCellMergeIcon } from './ui/icons/TableCellMergeIcon';
|
|
80
|
-
export { TableCellSplitIcon } from './ui/icons/TableCellSplitIcon';
|
|
81
|
-
export { TableColumnMoveRightIcon } from './ui/icons/TableColumnMoveRightIcon';
|
|
82
|
-
export { TableColumnsDistributeIcon } from './ui/icons/TableColumnsDistributeIcon';
|
|
83
|
-
export { TableRowAddAboveIcon } from './ui/icons/TableRowAddAboveIcon';
|
|
84
|
-
export { TableRowAddBelowIcon } from './ui/icons/TableRowAddBelowIcon';
|
|
85
|
-
export { TableRowMoveDownIcon } from './ui/icons/TableRowMoveDownIcon';
|
|
86
|
-
export { TableRowMoveUpIcon } from './ui/icons/TableRowMoveUpIcon';
|
|
87
|
-
export { TaskIcon } from './ui/icons/TaskIcon';
|
|
88
|
-
export { UndoIcon } from './ui/icons/UndoIcon';
|
|
89
|
-
export { RedoIcon } from './ui/icons/RedoIcon';
|
|
90
|
-
export { HistoryIcon } from './ui/icons/HistoryIcon';
|
|
91
|
-
export { LoomIcon } from './ui/icons/LoomIcon';
|
|
92
|
-
export { PlusIcon } from './ui/icons/PlusIcon';
|
|
93
|
-
export { SyncBlocksIcon } from './ui/icons/SyncBlocksIcon';
|
|
94
|
-
export { WorkItemIcon } from './ui/icons/WorkItemIcon';
|
|
95
|
-
export { WorkItemsIcon } from './ui/icons/WorkItemsIcon';
|
|
96
|
-
export { default as ColorPalette } from './ui/ColorPalette';
|
|
97
|
-
export type { IconComponent, ToolbarKeyboardNavigationProviderConfig } from './types';
|
|
98
|
-
export { useToolbarUI, ToolbarUIProvider, type ToolbarUIContextType } from './hooks/ui-context';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { NewCoreIconProps } from '@atlaskit/icon';
|
|
2
|
-
export type IconComponent = (props: NewCoreIconProps) => JSX.Element;
|
|
3
|
-
export type ToolbarKeyboardNavigationProviderConfig = {
|
|
4
|
-
ariaControls?: string;
|
|
5
|
-
ariaLabel?: string;
|
|
6
|
-
childComponentSelector: string;
|
|
7
|
-
dom?: HTMLElement;
|
|
8
|
-
handleEscape: (event: KeyboardEvent) => void;
|
|
9
|
-
handleFocus: (event: KeyboardEvent) => void;
|
|
10
|
-
isShortcutToFocusToolbar: (event: KeyboardEvent) => boolean;
|
|
11
|
-
};
|
|
12
|
-
export type DataAttributes = {
|
|
13
|
-
[K in `data-${string}`]?: string | number | boolean | undefined;
|
|
14
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { ColorProps } from './types';
|
|
7
|
-
/**
|
|
8
|
-
* Individual color palette item component
|
|
9
|
-
* Displays a single color swatch with tooltip and selection state
|
|
10
|
-
*/
|
|
11
|
-
export declare const Color: React.NamedExoticComponent<ColorProps>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { MessageDescriptor } from 'react-intl';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieves the appropriate internationalization message for a given color
|
|
4
|
-
* @param messages - Record of color values to message descriptors
|
|
5
|
-
* @param color - The color value to look up
|
|
6
|
-
* @returns The message descriptor or undefined if not found
|
|
7
|
-
*/
|
|
8
|
-
export default function getColorMessage(messages: Record<string | number, MessageDescriptor>, color: string): MessageDescriptor | undefined;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ColorPaletteProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* ColorPalette component for displaying a grid of selectable colors
|
|
5
|
-
*
|
|
6
|
-
* Features:
|
|
7
|
-
* - Responsive grid layout
|
|
8
|
-
* - Keyboard navigation support
|
|
9
|
-
* - Accessibility compliance (ARIA attributes)
|
|
10
|
-
* - Theme-aware tooltips
|
|
11
|
-
* - Design token integration
|
|
12
|
-
* - Customizable color mapping
|
|
13
|
-
*/
|
|
14
|
-
declare const ColorPalette: ({ cols, onClick, onKeyDown, selectedColor, paletteOptions, }: ColorPaletteProps) => React.JSX.Element;
|
|
15
|
-
export default ColorPalette;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react';
|
|
2
|
-
import type { MessageDescriptor } from 'react-intl';
|
|
3
|
-
/**
|
|
4
|
-
* Represents a single color in the palette
|
|
5
|
-
*/
|
|
6
|
-
export interface PaletteColor {
|
|
7
|
-
/** Border color for the color swatch */
|
|
8
|
-
border: string;
|
|
9
|
-
/** Optional decorator element to display instead of checkmark */
|
|
10
|
-
decorator?: ReactElement;
|
|
11
|
-
/** Display label for the color */
|
|
12
|
-
label: string;
|
|
13
|
-
/** Optional internationalization message */
|
|
14
|
-
message?: MessageDescriptor;
|
|
15
|
-
/** The color value (hex, token, etc.) */
|
|
16
|
-
value: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Array of palette colors
|
|
20
|
-
*/
|
|
21
|
-
export type Palette = Array<PaletteColor>;
|
|
22
|
-
/**
|
|
23
|
-
* Tooltip messages for different themes
|
|
24
|
-
*/
|
|
25
|
-
export type PaletteTooltipMessages = {
|
|
26
|
-
dark: Record<string, MessageDescriptor>;
|
|
27
|
-
light: Record<string, MessageDescriptor>;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Configuration options for the color palette
|
|
31
|
-
*/
|
|
32
|
-
export interface PaletteOptions {
|
|
33
|
-
/**
|
|
34
|
-
* Function to convert hex codes to design system tokens
|
|
35
|
-
* Different color palettes may use different mapping functions
|
|
36
|
-
*/
|
|
37
|
-
hexToPaletteColor?: (hexColor: string) => string | undefined;
|
|
38
|
-
/** Array of colors to display */
|
|
39
|
-
palette: PaletteColor[];
|
|
40
|
-
/**
|
|
41
|
-
* Tooltip messages for different color themes
|
|
42
|
-
* Consumer determines which tooltip messages to use
|
|
43
|
-
*/
|
|
44
|
-
paletteColorTooltipMessages?: PaletteTooltipMessages;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Props for the main ColorPalette component
|
|
48
|
-
*/
|
|
49
|
-
export interface ColorPaletteProps {
|
|
50
|
-
/** Optional CSS class name */
|
|
51
|
-
className?: string;
|
|
52
|
-
/** Number of columns in the palette grid */
|
|
53
|
-
cols?: number;
|
|
54
|
-
/** Callback when a color is clicked */
|
|
55
|
-
onClick: (value: string, label: string, event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
56
|
-
/** Optional callback for keyboard navigation */
|
|
57
|
-
onKeyDown?: (value: string, label: string, event: React.KeyboardEvent) => void;
|
|
58
|
-
/** Palette configuration options */
|
|
59
|
-
paletteOptions: PaletteOptions;
|
|
60
|
-
/** Currently selected color value */
|
|
61
|
-
selectedColor: string | null;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Props for individual color palette items
|
|
65
|
-
*/
|
|
66
|
-
export interface ColorProps {
|
|
67
|
-
/** Whether to auto-focus this item */
|
|
68
|
-
autoFocus?: boolean;
|
|
69
|
-
/** Border color for the swatch */
|
|
70
|
-
borderColor: string;
|
|
71
|
-
/** Color for the checkmark icon */
|
|
72
|
-
checkMarkColor?: string;
|
|
73
|
-
/** Optional decorator element */
|
|
74
|
-
decorator?: ReactElement;
|
|
75
|
-
/** Function to convert hex to palette color */
|
|
76
|
-
hexToPaletteColor?: (hexColor: string) => string | undefined;
|
|
77
|
-
/** Whether this color is currently selected */
|
|
78
|
-
isSelected?: boolean;
|
|
79
|
-
/** Display label for accessibility */
|
|
80
|
-
label: string;
|
|
81
|
-
/** Click handler */
|
|
82
|
-
onClick: (value: string, label: string, event: React.MouseEvent) => void;
|
|
83
|
-
/** Keyboard event handler */
|
|
84
|
-
onKeyDown?: (value: string, label: string, event: React.KeyboardEvent) => void;
|
|
85
|
-
/** Tab index for keyboard navigation */
|
|
86
|
-
tabIndex?: number;
|
|
87
|
-
/** The color value */
|
|
88
|
-
value: string;
|
|
89
|
-
}
|