@eyesee/ui-components 0.8.0 → 0.9.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/README.md +2 -0
- package/dist/components/Avatar/Avatar.d.ts +139 -0
- package/dist/components/Avatar/Avatar.js +8 -7
- package/dist/components/Badge/Badge.d.ts +59 -0
- package/dist/components/Badge/Badge.js +7 -7
- package/dist/components/Badge/badgeVariants.d.ts +17 -0
- package/dist/components/Button/Button.d.ts +299 -0
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Checkbox/Checkbox.d.ts +124 -0
- package/dist/components/Checkbox/Checkbox.js +13 -12
- package/dist/components/DropdownList/DropdownList.d.ts +153 -0
- package/dist/components/DropdownList/DropdownList.js +15 -15
- package/dist/components/EllipsisTooltip/EllipsisTooltip.d.ts +114 -0
- package/dist/components/EllipsisTooltip/EllipsisTooltip.js +3 -3
- package/dist/components/ExpandableItem/ExpandableItem.d.ts +89 -0
- package/dist/components/ExpandableItem/ExpandableItem.js +6 -6
- package/dist/components/Fields/InputField/InputField.d.ts +309 -0
- package/dist/components/Fields/InputField/InputField.js +54 -49
- package/dist/components/Fields/InputFieldContainer.d.ts +11 -0
- package/dist/components/Fields/SelectField/SelectField.d.ts +404 -0
- package/dist/components/Fields/SelectField/SelectField.js +61 -56
- package/dist/components/Fields/SelectField/SelectFieldTags.d.ts +6 -0
- package/dist/components/Fields/SelectField/selectOptionRow.d.ts +1 -0
- package/dist/components/Fields/SelectField/selectUtils.d.ts +35 -0
- package/dist/components/Fields/SelectField/useSelectFieldDropdownPosition.d.ts +7 -0
- package/dist/components/Fields/TextField/TextField.d.ts +272 -0
- package/dist/components/Fields/TextField/TextField.js +68 -61
- package/dist/components/FileType/FileType.d.ts +61 -0
- package/dist/components/FileType/FileType.js +6 -5
- package/dist/components/FileType/PaperIcon.d.ts +5 -0
- package/dist/components/ImagePlaceholder/ImageHoverPreview/ImageHoverPreview.d.ts +75 -0
- package/dist/components/ImagePlaceholder/ImageHoverPreview/ImageHoverPreview.js +13 -12
- package/dist/components/ImagePlaceholder/ImagePlaceholder.d.ts +606 -0
- package/dist/components/ImagePlaceholder/ImagePlaceholder.js +3 -3
- package/dist/components/ImagePlaceholder/constantsImgPh.d.ts +16 -0
- package/dist/components/ImagePlaceholder/utilsImgPh.d.ts +18 -0
- package/dist/components/ImageWithData/ImageWithData.d.ts +284 -0
- package/dist/components/ImageWithData/ImageWithData.js +11 -11
- package/dist/components/Infobox/Infobox.d.ts +90 -0
- package/dist/components/Infobox/Infobox.js +5 -5
- package/dist/components/Infobox/infoboxVariants.d.ts +8 -0
- package/dist/components/ListItem/ListItem.d.ts +311 -0
- package/dist/components/ListItem/ListItem.js +7 -7
- package/dist/components/ListItem/useListItems.d.ts +108 -0
- package/dist/components/ListItem/useListItems.js +18 -17
- package/dist/components/Modal/Modal.d.ts +239 -0
- package/dist/components/Modal/Modal.js +4 -3
- package/dist/components/Notifications/Notifications.d.ts +261 -0
- package/dist/components/Notifications/Notifications.js +4 -3
- package/dist/components/Notifications/useNotifications.d.ts +59 -0
- package/dist/components/Notifications/useNotifications.js +3 -2
- package/dist/components/Pill/Pill.d.ts +81 -0
- package/dist/components/Pill/Pill.js +7 -12
- package/dist/components/Pill/pillVariants.d.ts +16 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +111 -0
- package/dist/components/ProgressBar/ProgressBar.js +17 -16
- package/dist/components/Radio/Radio.d.ts +58 -0
- package/dist/components/Radio/Radio.js +12 -11
- package/dist/components/Tab/Tab.d.ts +204 -0
- package/dist/components/Tab/Tab.js +3 -3
- package/dist/components/Tabs/Tabs.d.ts +356 -0
- package/dist/components/Tabs/Tabs.js +3 -3
- package/dist/components/Tabs/tabsUtils.d.ts +33 -0
- package/dist/components/Tabs/tabsUtils.js +18 -12
- package/dist/components/Tag/Tag.d.ts +93 -0
- package/dist/components/Tag/Tag.js +4 -3
- package/dist/components/Tag/tagVariants.d.ts +7 -0
- package/dist/components/TextHoverable/TextHoverable.d.ts +46 -0
- package/dist/components/TextHoverable/TextHoverable.js +5 -3
- package/dist/components/Toggle/Toggle.d.ts +115 -0
- package/dist/components/Toggle/Toggle.js +6 -5
- package/dist/components/Tooltip/Tooltip.d.ts +294 -0
- package/dist/components/Tooltip/Tooltip.js +3 -3
- package/dist/components/Tooltip/useTooltipPositioning.d.ts +21 -0
- package/dist/components/icons-v2/AdIcon.d.ts +2 -0
- package/dist/components/icons-v2/AddMessageIcon.d.ts +13 -0
- package/dist/components/icons-v2/AddUserIcon.d.ts +13 -0
- package/dist/components/icons-v2/AdjustmentsIcon.d.ts +13 -0
- package/dist/components/icons-v2/AlertIcon.d.ts +13 -0
- package/dist/components/icons-v2/AlignCenterIcon.d.ts +13 -0
- package/dist/components/icons-v2/AlignHorizontallyIcon.d.ts +13 -0
- package/dist/components/icons-v2/AlignJustifyIcon.d.ts +13 -0
- package/dist/components/icons-v2/AlignLeftIcon.d.ts +13 -0
- package/dist/components/icons-v2/AlignRightIcon.d.ts +13 -0
- package/dist/components/icons-v2/AlignVerticallyIcon.d.ts +13 -0
- package/dist/components/icons-v2/AlphabetIcon.d.ts +20 -0
- package/dist/components/icons-v2/ArchiveIcon.d.ts +13 -0
- package/dist/components/icons-v2/ArrowDownIcon.d.ts +13 -0
- package/dist/components/icons-v2/ArrowDownRightIcon.d.ts +13 -0
- package/dist/components/icons-v2/ArrowLeftIcon.d.ts +13 -0
- package/dist/components/icons-v2/ArrowMoveDownIcon.d.ts +13 -0
- package/dist/components/icons-v2/ArrowRightIcon.d.ts +13 -0
- package/dist/components/icons-v2/ArrowUpIcon.d.ts +13 -0
- package/dist/components/icons-v2/AspectRatioIcon.d.ts +13 -0
- package/dist/components/icons-v2/AspectRatioIcon.js +15 -0
- package/dist/components/icons-v2/AttributesEvaluationIcon.d.ts +13 -0
- package/dist/components/icons-v2/BellIcon.d.ts +13 -0
- package/dist/components/icons-v2/BoldIcon.d.ts +13 -0
- package/dist/components/icons-v2/BoltIcon.d.ts +13 -0
- package/dist/components/icons-v2/BookIcon.d.ts +13 -0
- package/dist/components/icons-v2/BookmarkIcon.d.ts +13 -0
- package/dist/components/icons-v2/BooksIcon.d.ts +13 -0
- package/dist/components/icons-v2/BoxIcon.d.ts +13 -0
- package/dist/components/icons-v2/BugIcon.d.ts +13 -0
- package/dist/components/icons-v2/CalendarIcon.d.ts +13 -0
- package/dist/components/icons-v2/CameraPlusIcon.d.ts +13 -0
- package/dist/components/icons-v2/CardsIcon.d.ts +13 -0
- package/dist/components/icons-v2/CellIcon.d.ts +13 -0
- package/dist/components/icons-v2/ChartbarIcon.d.ts +13 -0
- package/dist/components/icons-v2/ChartbarOffIcon.d.ts +13 -0
- package/dist/components/icons-v2/ChatBubbleIcon.d.ts +13 -0
- package/dist/components/icons-v2/ChatbotIcon.d.ts +13 -0
- package/dist/components/icons-v2/CheckCircleIcon.d.ts +13 -0
- package/dist/components/icons-v2/CheckboxIcon.d.ts +13 -0
- package/dist/components/icons-v2/CheckmarkDoubleIcon.d.ts +13 -0
- package/dist/components/icons-v2/CheckmarkLargeIcon.d.ts +13 -0
- package/dist/components/icons-v2/ChevronDownIcon.d.ts +13 -0
- package/dist/components/icons-v2/ChevronLeftIcon.d.ts +13 -0
- package/dist/components/icons-v2/ChevronRightIcon.d.ts +13 -0
- package/dist/components/icons-v2/ChevronUpIcon.d.ts +13 -0
- package/dist/components/icons-v2/ChevronsDownIcon.d.ts +13 -0
- package/dist/components/icons-v2/ChevronsLeftIcon.d.ts +13 -0
- package/dist/components/icons-v2/ChevronsRightIcon.d.ts +13 -0
- package/dist/components/icons-v2/ChevronsUpIcon.d.ts +13 -0
- package/dist/components/icons-v2/CircleIcon.d.ts +11 -0
- package/dist/components/icons-v2/CirclesIcon.d.ts +13 -0
- package/dist/components/icons-v2/ClickIcon.d.ts +13 -0
- package/dist/components/icons-v2/ClipboardIcon.d.ts +13 -0
- package/dist/components/icons-v2/ClockIcon.d.ts +13 -0
- package/dist/components/icons-v2/ClockShareIcon.d.ts +13 -0
- package/dist/components/icons-v2/CloseIcon.d.ts +13 -0
- package/dist/components/icons-v2/ColumnIcon.d.ts +1 -0
- package/dist/components/icons-v2/CopyIcon.d.ts +13 -0
- package/dist/components/icons-v2/CreditCardIcon.d.ts +13 -0
- package/dist/components/icons-v2/CropIcon.d.ts +13 -0
- package/dist/components/icons-v2/DashboardMeterIcon.d.ts +13 -0
- package/dist/components/icons-v2/DatabaseCheckIcon.d.ts +13 -0
- package/dist/components/icons-v2/DatabaseIcon.d.ts +13 -0
- package/dist/components/icons-v2/DeleteIcon.d.ts +12 -0
- package/dist/components/icons-v2/DetailsIcon.d.ts +13 -0
- package/dist/components/icons-v2/DevicesIcon.d.ts +13 -0
- package/dist/components/icons-v2/DislikeIcon.d.ts +13 -0
- package/dist/components/icons-v2/DollarIcon.d.ts +13 -0
- package/dist/components/icons-v2/DownloadIcon.d.ts +13 -0
- package/dist/components/icons-v2/DragToolIcon.d.ts +13 -0
- package/dist/components/icons-v2/DrawRectangleIcon.d.ts +13 -0
- package/dist/components/icons-v2/EditIcon.d.ts +12 -0
- package/dist/components/icons-v2/EmailIcon.d.ts +13 -0
- package/dist/components/icons-v2/EmojiNeutralIcon.d.ts +13 -0
- package/dist/components/icons-v2/EmojiSadIcon.d.ts +13 -0
- package/dist/components/icons-v2/EmojiSlightSmileyIcon.d.ts +13 -0
- package/dist/components/icons-v2/EmojiSmileyIcon.d.ts +13 -0
- package/dist/components/icons-v2/EmojiVerySadIcon.d.ts +13 -0
- package/dist/components/icons-v2/EraserIcon.d.ts +13 -0
- package/dist/components/icons-v2/EtShelfIcon.d.ts +13 -0
- package/dist/components/icons-v2/EtStandaloneIcon.d.ts +13 -0
- package/dist/components/icons-v2/ExternalLinkIcon.d.ts +13 -0
- package/dist/components/icons-v2/EyeSeeTokenIcon.d.ts +1 -0
- package/dist/components/icons-v2/FileExportIcon.d.ts +13 -0
- package/dist/components/icons-v2/FileIcon.d.ts +13 -0
- package/dist/components/icons-v2/FileImportIcon.d.ts +13 -0
- package/dist/components/icons-v2/FileNewIcon.d.ts +13 -0
- package/dist/components/icons-v2/FileRemoveIcon.d.ts +13 -0
- package/dist/components/icons-v2/FileTemplateIcon.d.ts +13 -0
- package/dist/components/icons-v2/FileUploadIcon.d.ts +13 -0
- package/dist/components/icons-v2/FilesIcon.d.ts +13 -0
- package/dist/components/icons-v2/FilterOffIcon.d.ts +13 -0
- package/dist/components/icons-v2/FilterOnIcon.d.ts +13 -0
- package/dist/components/icons-v2/FlagIcon.d.ts +13 -0
- package/dist/components/icons-v2/FolderIcon.d.ts +13 -0
- package/dist/components/icons-v2/FullscreenIcon.d.ts +13 -0
- package/dist/components/icons-v2/GridviewIcon.d.ts +13 -0
- package/dist/components/icons-v2/HelpIcon.d.ts +10 -0
- package/dist/components/icons-v2/HomeIcon.d.ts +13 -0
- package/dist/components/icons-v2/ImageIcon.d.ts +13 -0
- package/dist/components/icons-v2/ImageOffIcon.d.ts +13 -0
- package/dist/components/icons-v2/ImageStarIcon.d.ts +15 -0
- package/dist/components/icons-v2/ImageUploadIcon.d.ts +13 -0
- package/dist/components/icons-v2/InfoIcon.d.ts +13 -0
- package/dist/components/icons-v2/ItalicIcon.d.ts +13 -0
- package/dist/components/icons-v2/LanguageIcon.d.ts +13 -0
- package/dist/components/icons-v2/LaunchIcon.d.ts +13 -0
- package/dist/components/icons-v2/LayersIcon.d.ts +13 -0
- package/dist/components/icons-v2/LeftSidebarCollapseIcon.d.ts +13 -0
- package/dist/components/icons-v2/LeftSidebarExpandIcon.d.ts +13 -0
- package/dist/components/icons-v2/LightDarkIcon.d.ts +13 -0
- package/dist/components/icons-v2/LightbulbIcon.d.ts +13 -0
- package/dist/components/icons-v2/LikeIcon.d.ts +13 -0
- package/dist/components/icons-v2/LinkIcon.d.ts +13 -0
- package/dist/components/icons-v2/ListCheckIcon.d.ts +1 -0
- package/dist/components/icons-v2/ListViewIcon.d.ts +13 -0
- package/dist/components/icons-v2/LoaderIcon.d.ts +14 -0
- package/dist/components/icons-v2/LoadingIcon.d.ts +14 -0
- package/dist/components/icons-v2/LockIcon.d.ts +13 -0
- package/dist/components/icons-v2/LockOffIcon.d.ts +13 -0
- package/dist/components/icons-v2/LoginIcon.d.ts +13 -0
- package/dist/components/icons-v2/LogoutIcon.d.ts +13 -0
- package/dist/components/icons-v2/MagicwandIcon.d.ts +13 -0
- package/dist/components/icons-v2/MaximizeIcon.d.ts +13 -0
- package/dist/components/icons-v2/MenuIcon.d.ts +13 -0
- package/dist/components/icons-v2/MessageIcon.d.ts +13 -0
- package/dist/components/icons-v2/MeterIcon.d.ts +13 -0
- package/dist/components/icons-v2/MinimizeIcon.d.ts +13 -0
- package/dist/components/icons-v2/MinusIcon.d.ts +13 -0
- package/dist/components/icons-v2/MoreHorizontalIcon.d.ts +13 -0
- package/dist/components/icons-v2/MoreIcon.d.ts +13 -0
- package/dist/components/icons-v2/MouseIcon.d.ts +13 -0
- package/dist/components/icons-v2/MoveIcon.d.ts +13 -0
- package/dist/components/icons-v2/Multiplier05Icon.d.ts +13 -0
- package/dist/components/icons-v2/Multiplier10Icon.d.ts +13 -0
- package/dist/components/icons-v2/Multiplier15Icon.d.ts +13 -0
- package/dist/components/icons-v2/Multiplier20Icon.d.ts +13 -0
- package/dist/components/icons-v2/NoteIcon.d.ts +13 -0
- package/dist/components/icons-v2/NoteOffIcon.d.ts +13 -0
- package/dist/components/icons-v2/NotifyIcon.d.ts +13 -0
- package/dist/components/icons-v2/PackAIIcon.d.ts +13 -0
- package/dist/components/icons-v2/PackseeIcon.d.ts +1 -0
- package/dist/components/icons-v2/PaperclipIcon.d.ts +13 -0
- package/dist/components/icons-v2/PauseIcon.d.ts +13 -0
- package/dist/components/icons-v2/PdfIcon.d.ts +13 -0
- package/dist/components/icons-v2/PentoolIcon.d.ts +13 -0
- package/dist/components/icons-v2/PiechartIcon.d.ts +13 -0
- package/dist/components/icons-v2/PinIcon.d.ts +13 -0
- package/dist/components/icons-v2/PinskewedIcon.d.ts +13 -0
- package/dist/components/icons-v2/PlayIcon.d.ts +13 -0
- package/dist/components/icons-v2/PlusIcon.d.ts +12 -0
- package/dist/components/icons-v2/PredictiveETIcon.d.ts +13 -0
- package/dist/components/icons-v2/RectanglesAddIcon.d.ts +1 -0
- package/dist/components/icons-v2/RedoIcon.d.ts +13 -0
- package/dist/components/icons-v2/RefreshAlertIcon.d.ts +13 -0
- package/dist/components/icons-v2/RefreshIcon.d.ts +13 -0
- package/dist/components/icons-v2/ReplaceIcon.d.ts +13 -0
- package/dist/components/icons-v2/ReplyIcon.d.ts +13 -0
- package/dist/components/icons-v2/SaveIcon.d.ts +12 -0
- package/dist/components/icons-v2/ScalesIcon.d.ts +13 -0
- package/dist/components/icons-v2/SearchIcon.d.ts +13 -0
- package/dist/components/icons-v2/SendIcon.d.ts +13 -0
- package/dist/components/icons-v2/SettingsIcon.d.ts +13 -0
- package/dist/components/icons-v2/ShareIcon.d.ts +13 -0
- package/dist/components/icons-v2/ShelfAddIcon.d.ts +13 -0
- package/dist/components/icons-v2/ShelfIcon.d.ts +13 -0
- package/dist/components/icons-v2/ShelfInfoIcon.d.ts +13 -0
- package/dist/components/icons-v2/ShoppingIcon.d.ts +13 -0
- package/dist/components/icons-v2/SlideshowIcon.d.ts +13 -0
- package/dist/components/icons-v2/SocialFacebookIcon.d.ts +13 -0
- package/dist/components/icons-v2/SocialInstagramIcon.d.ts +13 -0
- package/dist/components/icons-v2/SocialSnapchatIcon.d.ts +13 -0
- package/dist/components/icons-v2/SocialTiktok2Icon.d.ts +13 -0
- package/dist/components/icons-v2/SocialTiktokIcon.d.ts +13 -0
- package/dist/components/icons-v2/SocialXIcon.d.ts +13 -0
- package/dist/components/icons-v2/SocialYoutubeIcon.d.ts +13 -0
- package/dist/components/icons-v2/SortHorizontalIcon.d.ts +13 -0
- package/dist/components/icons-v2/SquareAddIcon.d.ts +1 -0
- package/dist/components/icons-v2/StarIcon.d.ts +20 -0
- package/dist/components/icons-v2/StopIcon.d.ts +11 -0
- package/dist/components/icons-v2/SurveyIcon.d.ts +13 -0
- package/dist/components/icons-v2/TableExportIcon.d.ts +13 -0
- package/dist/components/icons-v2/TableIcon.d.ts +13 -0
- package/dist/components/icons-v2/TableOptionsIcon.d.ts +13 -0
- package/dist/components/icons-v2/TagIcon.d.ts +13 -0
- package/dist/components/icons-v2/TargetArrowIcon.d.ts +13 -0
- package/dist/components/icons-v2/TargetIcon.d.ts +13 -0
- package/dist/components/icons-v2/TextRecognitionIcon.d.ts +13 -0
- package/dist/components/icons-v2/TriangleFlagIcon.d.ts +13 -0
- package/dist/components/icons-v2/TrophyIcon.d.ts +13 -0
- package/dist/components/icons-v2/UnderlineIcon.d.ts +13 -0
- package/dist/components/icons-v2/UndoIcon.d.ts +13 -0
- package/dist/components/icons-v2/UnitBuyRateIcon.d.ts +13 -0
- package/dist/components/icons-v2/UploadIcon.d.ts +13 -0
- package/dist/components/icons-v2/UserGroupIcon.d.ts +13 -0
- package/dist/components/icons-v2/UserIcon.d.ts +13 -0
- package/dist/components/icons-v2/UsersIcon.d.ts +13 -0
- package/dist/components/icons-v2/ValueBuyRateIcon.d.ts +13 -0
- package/dist/components/icons-v2/VideoIcon.d.ts +13 -0
- package/dist/components/icons-v2/ViewOffIcon.d.ts +13 -0
- package/dist/components/icons-v2/ViewOnIcon.d.ts +13 -0
- package/dist/components/icons-v2/VolumeOffIcon.d.ts +13 -0
- package/dist/components/icons-v2/VolumeOnIcon.d.ts +13 -0
- package/dist/components/icons-v2/WebIcon.d.ts +13 -0
- package/dist/components/icons-v2/XIcon.d.ts +13 -0
- package/dist/components/icons-v2/ZipFileIcon.d.ts +13 -0
- package/dist/components/icons-v2/ZonePercentageIcon.d.ts +1 -0
- package/dist/components/icons-v2/ZoomInIcon.d.ts +1 -0
- package/dist/components/icons-v2/ZoomOutIcon.d.ts +1 -0
- package/dist/components/icons-v2/constants.d.ts +61 -0
- package/dist/components/icons-v2/createIcon.d.ts +45 -0
- package/dist/components/icons-v2/index.d.ts +209 -0
- package/dist/components/icons-v2/index.js +376 -374
- package/dist/components/index.d.ts +30 -0
- package/dist/hooks/useClickOutside.d.ts +2 -0
- package/dist/hooks/useEscapeKey.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +17 -4
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @callback ToggleChangeHandler
|
|
3
|
+
* @param {import('react').ChangeEvent<HTMLInputElement>} event
|
|
4
|
+
* @returns {void}
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @typedef {object} ToggleProps
|
|
8
|
+
*
|
|
9
|
+
* @property {boolean} [checked=false]
|
|
10
|
+
* On state. Default `false`.
|
|
11
|
+
* @property {ToggleChangeHandler} [onChange]
|
|
12
|
+
* Input change handler. Default `undefined`.
|
|
13
|
+
* @property {boolean} [disabled=false]
|
|
14
|
+
* Native disabled. Default `false`.
|
|
15
|
+
* @property {'lg'|'md'} [size='lg']
|
|
16
|
+
* `lg` → 40×20px; `md` → 32×16px. Default `'lg'`.
|
|
17
|
+
* @property {string} [id]
|
|
18
|
+
* Input id. Auto-generated when omitted.
|
|
19
|
+
* @property {string} [name]
|
|
20
|
+
* Input `name`.
|
|
21
|
+
* @property {string} [value]
|
|
22
|
+
* Input `value`.
|
|
23
|
+
* @property {string} [label]
|
|
24
|
+
* Label text after the switch.
|
|
25
|
+
* @property {string} [aria-label]
|
|
26
|
+
* Accessible name when `label` is omitted. Falls back to `'toggle'`.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* Design-system switch. Track is 2×1 pill; off = neutral track, on = brand track.
|
|
30
|
+
*
|
|
31
|
+
* ## Props
|
|
32
|
+
*
|
|
33
|
+
* **checked** `boolean` — default `false`
|
|
34
|
+
* On state.
|
|
35
|
+
*
|
|
36
|
+
* **onChange** `(event: ChangeEvent<HTMLInputElement>) => void` — no default
|
|
37
|
+
* Input change handler.
|
|
38
|
+
*
|
|
39
|
+
* **disabled** `boolean` — default `false`
|
|
40
|
+
* Native disabled.
|
|
41
|
+
*
|
|
42
|
+
* **size** `'lg' | 'md'` — default `'lg'`
|
|
43
|
+
* `lg` → 40×20px; `md` → 32×16px.
|
|
44
|
+
*
|
|
45
|
+
* **id** `string` — no default
|
|
46
|
+
* Input id. Auto-generated when omitted.
|
|
47
|
+
*
|
|
48
|
+
* **name** `string` — no default
|
|
49
|
+
* Input `name`.
|
|
50
|
+
*
|
|
51
|
+
* **value** `string` — no default
|
|
52
|
+
* Input `value`.
|
|
53
|
+
*
|
|
54
|
+
* **label** `string` — no default
|
|
55
|
+
* Label text after the switch.
|
|
56
|
+
*
|
|
57
|
+
* **aria-label** `string` — no default
|
|
58
|
+
* Accessible name when `label` is omitted. Falls back to `'toggle'`.
|
|
59
|
+
*
|
|
60
|
+
* @param {ToggleProps} props
|
|
61
|
+
* @returns {import('react').ReactElement}
|
|
62
|
+
*
|
|
63
|
+
* @example <caption>Default</caption>
|
|
64
|
+
* import { Toggle } from '@eyesee/ui-components';
|
|
65
|
+
*
|
|
66
|
+
* <Toggle size="lg" checked={false} aria-label="Example toggle" />
|
|
67
|
+
*
|
|
68
|
+
* @example <caption>Grid (Figma-like)</caption>
|
|
69
|
+
* import { Toggle } from '@eyesee/ui-components';
|
|
70
|
+
*
|
|
71
|
+
* <Toggle size="lg" checked aria-label="Large on" />
|
|
72
|
+
* <Toggle size="lg" disabled aria-label="Large disabled off" />
|
|
73
|
+
* <Toggle size="md" checked aria-label="Medium on" />
|
|
74
|
+
* <Toggle size="md" disabled checked aria-label="Medium disabled on" />
|
|
75
|
+
*/
|
|
76
|
+
export function Toggle({ label, checked, onChange, disabled, size, id: idProp, name, value, "aria-label": ariaLabel, }: ToggleProps): import("react").ReactElement;
|
|
77
|
+
export type ToggleChangeHandler = (event: import("react").ChangeEvent<HTMLInputElement>) => void;
|
|
78
|
+
export type ToggleProps = {
|
|
79
|
+
/**
|
|
80
|
+
* On state. Default `false`.
|
|
81
|
+
*/
|
|
82
|
+
checked?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Input change handler. Default `undefined`.
|
|
85
|
+
*/
|
|
86
|
+
onChange?: ToggleChangeHandler;
|
|
87
|
+
/**
|
|
88
|
+
* Native disabled. Default `false`.
|
|
89
|
+
*/
|
|
90
|
+
disabled?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* `lg` → 40×20px; `md` → 32×16px. Default `'lg'`.
|
|
93
|
+
*/
|
|
94
|
+
size?: "lg" | "md";
|
|
95
|
+
/**
|
|
96
|
+
* Input id. Auto-generated when omitted.
|
|
97
|
+
*/
|
|
98
|
+
id?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Input `name`.
|
|
101
|
+
*/
|
|
102
|
+
name?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Input `value`.
|
|
105
|
+
*/
|
|
106
|
+
value?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Label text after the switch.
|
|
109
|
+
*/
|
|
110
|
+
label?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Accessible name when `label` is omitted. Falls back to `'toggle'`.
|
|
113
|
+
*/
|
|
114
|
+
"aria-label"?: string;
|
|
115
|
+
};
|
|
@@ -15,7 +15,8 @@ const v = {
|
|
|
15
15
|
default: "var(--color--icon--secondary--default)",
|
|
16
16
|
disabled: "var(--color--icon--disabled--default)"
|
|
17
17
|
}
|
|
18
|
-
}
|
|
18
|
+
};
|
|
19
|
+
function E({
|
|
19
20
|
label: l,
|
|
20
21
|
checked: r = !1,
|
|
21
22
|
onChange: n,
|
|
@@ -25,8 +26,8 @@ const v = {
|
|
|
25
26
|
name: i,
|
|
26
27
|
value: m,
|
|
27
28
|
"aria-label": u
|
|
28
|
-
})
|
|
29
|
-
const h = k(), s = d ?? h,
|
|
29
|
+
}) {
|
|
30
|
+
const h = k(), s = d ?? h, f = v[a], p = r ? "checked" : "unchecked", b = c ? "disabled" : "default", t = y[p][b];
|
|
30
31
|
return /* @__PURE__ */ g(
|
|
31
32
|
"label",
|
|
32
33
|
{
|
|
@@ -48,12 +49,12 @@ const v = {
|
|
|
48
49
|
onChange: n
|
|
49
50
|
}
|
|
50
51
|
),
|
|
51
|
-
/* @__PURE__ */ e("span", { className: o.track, "aria-hidden": !0, children: /* @__PURE__ */ e("span", { className: o.thumb, children: /* @__PURE__ */ e(N, { iconSize:
|
|
52
|
+
/* @__PURE__ */ e("span", { className: o.track, "aria-hidden": !0, children: /* @__PURE__ */ e("span", { className: o.thumb, children: /* @__PURE__ */ e(N, { iconSize: f, strokeColor: t, fill: t }) }) }),
|
|
52
53
|
l ? /* @__PURE__ */ e("span", { className: o.labelText, children: l }) : null
|
|
53
54
|
]
|
|
54
55
|
}
|
|
55
56
|
);
|
|
56
|
-
}
|
|
57
|
+
}
|
|
57
58
|
export {
|
|
58
59
|
E as Toggle
|
|
59
60
|
};
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @callback TooltipOpenChangeHandler
|
|
3
|
+
* @param {boolean} open Next open state.
|
|
4
|
+
* @returns {void}
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @typedef {object} TooltipProps
|
|
8
|
+
*
|
|
9
|
+
* @property {React.ReactNode} children
|
|
10
|
+
* Trigger element wrapped by the tooltip.
|
|
11
|
+
* @property {React.ReactNode} content
|
|
12
|
+
* Tooltip body. When empty, children render without a tooltip.
|
|
13
|
+
* @property {string} [title]
|
|
14
|
+
* Optional heading above the body.
|
|
15
|
+
* @property {boolean} [showInfoIcon=false]
|
|
16
|
+
* Show help icon beside title or content. Default `false`.
|
|
17
|
+
* @property {'dark'|'light'} [variant='dark']
|
|
18
|
+
* Visual style. Default `'dark'`.
|
|
19
|
+
* @property {boolean} [showArrow=false]
|
|
20
|
+
* Directional arrow pointing at the trigger. Default `false`.
|
|
21
|
+
* @property {boolean} [defaultVisible=false]
|
|
22
|
+
* Start open and stay open until dismissed. Default `false`.
|
|
23
|
+
* @property {boolean} [closable=false]
|
|
24
|
+
* Show close button. Default `false`.
|
|
25
|
+
* @property {boolean} [disabled=false]
|
|
26
|
+
* Disable tooltip entirely. Default `false`.
|
|
27
|
+
* @property {string} [className]
|
|
28
|
+
* Extra class on the wrapper `<div>`.
|
|
29
|
+
* @property {string} [contentClassName]
|
|
30
|
+
* Extra class on the tooltip panel.
|
|
31
|
+
* @property {'top'|'bottom'|'left'|'right'} [position='top']
|
|
32
|
+
* Preferred placement; flips when viewport is tight. Default `'top'`.
|
|
33
|
+
* @property {number} [maxWidth=240]
|
|
34
|
+
* Maximum tooltip width in pixels. Default `240`.
|
|
35
|
+
* @property {boolean} [fullWidth=false]
|
|
36
|
+
* Wrapper stretches to 100% of parent. Default `false`.
|
|
37
|
+
* @property {boolean} [open]
|
|
38
|
+
* Controlled open state. When set, internal hover state is bypassed.
|
|
39
|
+
* @property {TooltipOpenChangeHandler} [onOpenChange]
|
|
40
|
+
* Fired when open state changes (hover, close, or controlled updates).
|
|
41
|
+
* @property {Element} [portalContainer]
|
|
42
|
+
* Portal target. Default `document.body`.
|
|
43
|
+
*/
|
|
44
|
+
/**
|
|
45
|
+
* Hover tooltip with viewport-aware positioning and optional close control.
|
|
46
|
+
*
|
|
47
|
+
* ## Props
|
|
48
|
+
*
|
|
49
|
+
* **children** `ReactNode` — no default
|
|
50
|
+
* Trigger element wrapped by the tooltip.
|
|
51
|
+
*
|
|
52
|
+
* **content** `ReactNode` — no default
|
|
53
|
+
* Tooltip body. When empty, children render without a tooltip.
|
|
54
|
+
*
|
|
55
|
+
* **title** `string` — no default
|
|
56
|
+
* Optional heading above the body.
|
|
57
|
+
*
|
|
58
|
+
* **showInfoIcon** `boolean` — default `false`
|
|
59
|
+
* Show help icon beside title or content.
|
|
60
|
+
*
|
|
61
|
+
* **variant** `'dark' | 'light'` — default `'dark'`
|
|
62
|
+
* Visual style.
|
|
63
|
+
*
|
|
64
|
+
* **showArrow** `boolean` — default `false`
|
|
65
|
+
* Directional arrow pointing at the trigger.
|
|
66
|
+
*
|
|
67
|
+
* **defaultVisible** `boolean` — default `false`
|
|
68
|
+
* Start open and stay open until dismissed.
|
|
69
|
+
*
|
|
70
|
+
* **closable** `boolean` — default `false`
|
|
71
|
+
* Show close button.
|
|
72
|
+
*
|
|
73
|
+
* **disabled** `boolean` — default `false`
|
|
74
|
+
* Disable tooltip entirely.
|
|
75
|
+
*
|
|
76
|
+
* **className** `string` — no default
|
|
77
|
+
* Extra class on the wrapper `<div>`.
|
|
78
|
+
*
|
|
79
|
+
* **contentClassName** `string` — no default
|
|
80
|
+
* Extra class on the tooltip panel.
|
|
81
|
+
*
|
|
82
|
+
* **position** `'top' | 'bottom' | 'left' | 'right'` — default `'top'`
|
|
83
|
+
* Preferred placement; flips when viewport is tight.
|
|
84
|
+
*
|
|
85
|
+
* **maxWidth** `number` — default `240`
|
|
86
|
+
* Maximum tooltip width in pixels.
|
|
87
|
+
*
|
|
88
|
+
* **fullWidth** `boolean` — default `false`
|
|
89
|
+
* Wrapper stretches to 100% of parent.
|
|
90
|
+
*
|
|
91
|
+
* **open** `boolean` — no default
|
|
92
|
+
* Controlled open state. When set, internal hover state is bypassed.
|
|
93
|
+
*
|
|
94
|
+
* **onOpenChange** `(open: boolean) => void` — no default
|
|
95
|
+
* Fired when open state changes.
|
|
96
|
+
*
|
|
97
|
+
* **portalContainer** `Element` — default `document.body`
|
|
98
|
+
* Portal target for the tooltip panel.
|
|
99
|
+
*
|
|
100
|
+
* @param {TooltipProps} props
|
|
101
|
+
* @returns {import('react').ReactElement}
|
|
102
|
+
*
|
|
103
|
+
* @example <caption>Playground</caption>
|
|
104
|
+
* import { Tooltip } from '@eyesee/ui-components';
|
|
105
|
+
*
|
|
106
|
+
* <Tooltip
|
|
107
|
+
* variant="dark"
|
|
108
|
+
* title="Lorem ipsum"
|
|
109
|
+
* content="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
|
110
|
+
* showInfoIcon
|
|
111
|
+
* closable
|
|
112
|
+
* position="right"
|
|
113
|
+
* >
|
|
114
|
+
* <button type="button">Hover me</button>
|
|
115
|
+
* </Tooltip>
|
|
116
|
+
*
|
|
117
|
+
* @example <caption>With title</caption>
|
|
118
|
+
* import { Tooltip } from '@eyesee/ui-components';
|
|
119
|
+
*
|
|
120
|
+
* <Tooltip
|
|
121
|
+
* title="Lorem ipsum"
|
|
122
|
+
* content="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
|
123
|
+
* >
|
|
124
|
+
* <button type="button">Hover me</button>
|
|
125
|
+
* </Tooltip>
|
|
126
|
+
*
|
|
127
|
+
* @example <caption>With info icon on title</caption>
|
|
128
|
+
* import { Tooltip } from '@eyesee/ui-components';
|
|
129
|
+
*
|
|
130
|
+
* <Tooltip
|
|
131
|
+
* title="Lorem ipsum"
|
|
132
|
+
* content="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
|
133
|
+
* showInfoIcon
|
|
134
|
+
* >
|
|
135
|
+
* <button type="button">Hover me</button>
|
|
136
|
+
* </Tooltip>
|
|
137
|
+
*
|
|
138
|
+
* @example <caption>With info icon on content</caption>
|
|
139
|
+
* import { Tooltip } from '@eyesee/ui-components';
|
|
140
|
+
*
|
|
141
|
+
* <Tooltip
|
|
142
|
+
* content="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
|
143
|
+
* showInfoIcon
|
|
144
|
+
* >
|
|
145
|
+
* <button type="button">Hover me</button>
|
|
146
|
+
* </Tooltip>
|
|
147
|
+
*
|
|
148
|
+
* @example <caption>Light with arrow</caption>
|
|
149
|
+
* import { Tooltip } from '@eyesee/ui-components';
|
|
150
|
+
*
|
|
151
|
+
* <Tooltip
|
|
152
|
+
* variant="light"
|
|
153
|
+
* showArrow
|
|
154
|
+
* position="right"
|
|
155
|
+
* title="Lorem ipsum"
|
|
156
|
+
* content="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
|
157
|
+
* >
|
|
158
|
+
* <button type="button">Hover me</button>
|
|
159
|
+
* </Tooltip>
|
|
160
|
+
*
|
|
161
|
+
* @example <caption>Dark closable</caption>
|
|
162
|
+
* import { Tooltip } from '@eyesee/ui-components';
|
|
163
|
+
*
|
|
164
|
+
* <Tooltip
|
|
165
|
+
* variant="dark"
|
|
166
|
+
* closable
|
|
167
|
+
* defaultVisible
|
|
168
|
+
* position="bottom"
|
|
169
|
+
* title="Lorem ipsum"
|
|
170
|
+
* content="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
|
171
|
+
* >
|
|
172
|
+
* <button type="button">Hover me</button>
|
|
173
|
+
* </Tooltip>
|
|
174
|
+
*
|
|
175
|
+
* @example <caption>Design light content only</caption>
|
|
176
|
+
* import { Tooltip } from '@eyesee/ui-components';
|
|
177
|
+
*
|
|
178
|
+
* <Tooltip
|
|
179
|
+
* variant="light"
|
|
180
|
+
* content="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
|
181
|
+
* showInfoIcon
|
|
182
|
+
* showArrow
|
|
183
|
+
* position="bottom"
|
|
184
|
+
* defaultVisible
|
|
185
|
+
* >
|
|
186
|
+
* <button type="button">Hover me</button>
|
|
187
|
+
* </Tooltip>
|
|
188
|
+
*
|
|
189
|
+
* @example <caption>Controlled open</caption>
|
|
190
|
+
* import { useState } from 'react';
|
|
191
|
+
* import { Tooltip } from '@eyesee/ui-components';
|
|
192
|
+
*
|
|
193
|
+
* const [open, setOpen] = useState(true);
|
|
194
|
+
*
|
|
195
|
+
* <Tooltip
|
|
196
|
+
* title="Controlled"
|
|
197
|
+
* content="This tooltip is controlled via the open prop."
|
|
198
|
+
* position="right"
|
|
199
|
+
* showArrow
|
|
200
|
+
* open={open}
|
|
201
|
+
* onOpenChange={setOpen}
|
|
202
|
+
* >
|
|
203
|
+
* <button type="button">Hover me</button>
|
|
204
|
+
* </Tooltip>
|
|
205
|
+
*
|
|
206
|
+
* @example <caption>Closable dismisses until defaultVisible</caption>
|
|
207
|
+
* import { useState } from 'react';
|
|
208
|
+
* import { Tooltip } from '@eyesee/ui-components';
|
|
209
|
+
*
|
|
210
|
+
* const [defaultVisible, setDefaultVisible] = useState(true);
|
|
211
|
+
*
|
|
212
|
+
* <Tooltip
|
|
213
|
+
* title="Closable + defaultVisible"
|
|
214
|
+
* content="Close me, then toggle defaultVisible off/on to reset dismissal."
|
|
215
|
+
* closable
|
|
216
|
+
* defaultVisible={defaultVisible}
|
|
217
|
+
* position="bottom"
|
|
218
|
+
* showArrow
|
|
219
|
+
* >
|
|
220
|
+
* <button type="button">Hover me</button>
|
|
221
|
+
* </Tooltip>
|
|
222
|
+
*/
|
|
223
|
+
export function Tooltip({ children, content, title, showInfoIcon, variant, showArrow, defaultVisible, closable, disabled, className, contentClassName, position, maxWidth, fullWidth, open: controlledOpen, onOpenChange, portalContainer, }: TooltipProps): import("react").ReactElement;
|
|
224
|
+
export type TooltipOpenChangeHandler = (open: boolean) => void;
|
|
225
|
+
export type TooltipProps = {
|
|
226
|
+
/**
|
|
227
|
+
* Trigger element wrapped by the tooltip.
|
|
228
|
+
*/
|
|
229
|
+
children: React.ReactNode;
|
|
230
|
+
/**
|
|
231
|
+
* Tooltip body. When empty, children render without a tooltip.
|
|
232
|
+
*/
|
|
233
|
+
content: React.ReactNode;
|
|
234
|
+
/**
|
|
235
|
+
* Optional heading above the body.
|
|
236
|
+
*/
|
|
237
|
+
title?: string;
|
|
238
|
+
/**
|
|
239
|
+
* Show help icon beside title or content. Default `false`.
|
|
240
|
+
*/
|
|
241
|
+
showInfoIcon?: boolean;
|
|
242
|
+
/**
|
|
243
|
+
* Visual style. Default `'dark'`.
|
|
244
|
+
*/
|
|
245
|
+
variant?: "dark" | "light";
|
|
246
|
+
/**
|
|
247
|
+
* Directional arrow pointing at the trigger. Default `false`.
|
|
248
|
+
*/
|
|
249
|
+
showArrow?: boolean;
|
|
250
|
+
/**
|
|
251
|
+
* Start open and stay open until dismissed. Default `false`.
|
|
252
|
+
*/
|
|
253
|
+
defaultVisible?: boolean;
|
|
254
|
+
/**
|
|
255
|
+
* Show close button. Default `false`.
|
|
256
|
+
*/
|
|
257
|
+
closable?: boolean;
|
|
258
|
+
/**
|
|
259
|
+
* Disable tooltip entirely. Default `false`.
|
|
260
|
+
*/
|
|
261
|
+
disabled?: boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Extra class on the wrapper `<div>`.
|
|
264
|
+
*/
|
|
265
|
+
className?: string;
|
|
266
|
+
/**
|
|
267
|
+
* Extra class on the tooltip panel.
|
|
268
|
+
*/
|
|
269
|
+
contentClassName?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Preferred placement; flips when viewport is tight. Default `'top'`.
|
|
272
|
+
*/
|
|
273
|
+
position?: "top" | "bottom" | "left" | "right";
|
|
274
|
+
/**
|
|
275
|
+
* Maximum tooltip width in pixels. Default `240`.
|
|
276
|
+
*/
|
|
277
|
+
maxWidth?: number;
|
|
278
|
+
/**
|
|
279
|
+
* Wrapper stretches to 100% of parent. Default `false`.
|
|
280
|
+
*/
|
|
281
|
+
fullWidth?: boolean;
|
|
282
|
+
/**
|
|
283
|
+
* Controlled open state. When set, internal hover state is bypassed.
|
|
284
|
+
*/
|
|
285
|
+
open?: boolean;
|
|
286
|
+
/**
|
|
287
|
+
* Fired when open state changes (hover, close, or controlled updates).
|
|
288
|
+
*/
|
|
289
|
+
onOpenChange?: TooltipOpenChangeHandler;
|
|
290
|
+
/**
|
|
291
|
+
* Portal target. Default `document.body`.
|
|
292
|
+
*/
|
|
293
|
+
portalContainer?: Element;
|
|
294
|
+
};
|
|
@@ -6,7 +6,7 @@ import { HelpIcon as k } from "../icons-v2/HelpIcon.js";
|
|
|
6
6
|
import { XIcon as B } from "../icons-v2/XIcon.js";
|
|
7
7
|
import o from "./Tooltip.module.scss.js";
|
|
8
8
|
import { useTooltipPositioning as J } from "./useTooltipPositioning.js";
|
|
9
|
-
|
|
9
|
+
function b({
|
|
10
10
|
children: v,
|
|
11
11
|
content: f,
|
|
12
12
|
title: t,
|
|
@@ -24,7 +24,7 @@ const b = ({
|
|
|
24
24
|
open: T,
|
|
25
25
|
onOpenChange: r,
|
|
26
26
|
portalContainer: $
|
|
27
|
-
})
|
|
27
|
+
}) {
|
|
28
28
|
const [H, d] = L(i), [u, P] = L(!1), l = T !== void 0, x = l ? T : H, y = (c) => {
|
|
29
29
|
m || u || (l || d(c), r == null || r(c));
|
|
30
30
|
}, I = () => {
|
|
@@ -98,7 +98,7 @@ const b = ({
|
|
|
98
98
|
]
|
|
99
99
|
}
|
|
100
100
|
);
|
|
101
|
-
}
|
|
101
|
+
}
|
|
102
102
|
export {
|
|
103
103
|
b as Tooltip
|
|
104
104
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function useTooltipPositioning({ open, desiredPosition, showArrow, maxWidth, viewportPadding, gap, arrowSafePadding, }: {
|
|
2
|
+
open: any;
|
|
3
|
+
desiredPosition: any;
|
|
4
|
+
showArrow: any;
|
|
5
|
+
maxWidth: any;
|
|
6
|
+
viewportPadding?: number;
|
|
7
|
+
gap?: any;
|
|
8
|
+
arrowSafePadding?: number;
|
|
9
|
+
}): {
|
|
10
|
+
wrapperRef: import("react").MutableRefObject<any>;
|
|
11
|
+
tooltipRef: import("react").MutableRefObject<any>;
|
|
12
|
+
layout: {
|
|
13
|
+
resolvedPosition: any;
|
|
14
|
+
top: number;
|
|
15
|
+
left: number;
|
|
16
|
+
arrowLeft: any;
|
|
17
|
+
arrowTop: any;
|
|
18
|
+
};
|
|
19
|
+
isPositioned: boolean;
|
|
20
|
+
recompute: () => void;
|
|
21
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SVG message bubble with a plus sign, used for "add message" actions.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {string} [props.strokeColor='currentColor'] - SVG stroke colour.
|
|
6
|
+
* Accepts any valid CSS colour value.
|
|
7
|
+
* @param {import('./constants').IconSize} [props.iconSize='m']
|
|
8
|
+
* T-shirt size token that controls the rendered `width`/`height` and
|
|
9
|
+
* `stroke-width` via {@link iconSizes} and {@link iconStrokeWidths}.
|
|
10
|
+
* @param {string} [props.fill='none'] - SVG fill colour.
|
|
11
|
+
* @returns {JSX.Element}
|
|
12
|
+
*/
|
|
13
|
+
export const AddMessageIcon: (props: IconProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SVG user avatar with a plus sign, used for "add user" actions.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {string} [props.strokeColor='currentColor'] - SVG stroke colour.
|
|
6
|
+
* Accepts any valid CSS colour value.
|
|
7
|
+
* @param {import('./constants').IconSize} [props.iconSize='m']
|
|
8
|
+
* T-shirt size token that controls the rendered `width`/`height` and
|
|
9
|
+
* `stroke-width` via {@link iconSizes} and {@link iconStrokeWidths}.
|
|
10
|
+
* @param {string} [props.fill='none'] - SVG fill colour.
|
|
11
|
+
* @returns {JSX.Element}
|
|
12
|
+
*/
|
|
13
|
+
export const AddUserIcon: (props: IconProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SVG adjustments/sliders icon used to represent settings or tuning actions.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {string} [props.strokeColor='currentColor'] - SVG stroke colour.
|
|
6
|
+
* Accepts any valid CSS colour value.
|
|
7
|
+
* @param {import('./constants').IconSize} [props.iconSize='m']
|
|
8
|
+
* T-shirt size token that controls the rendered `width`/`height` and
|
|
9
|
+
* `stroke-width` via {@link iconSizes} and {@link iconStrokeWidths}.
|
|
10
|
+
* @param {string} [props.fill='none'] - SVG fill colour.
|
|
11
|
+
* @returns {JSX.Element}
|
|
12
|
+
*/
|
|
13
|
+
export const AdjustmentsIcon: (props: IconProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SVG alert/warning triangle icon.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {string} [props.strokeColor='currentColor'] - SVG stroke colour.
|
|
6
|
+
* Accepts any valid CSS colour value.
|
|
7
|
+
* @param {import('./constants').IconSize} [props.iconSize='m']
|
|
8
|
+
* T-shirt size token that controls the rendered `width`/`height` and
|
|
9
|
+
* `stroke-width` via {@link iconSizes} and {@link iconStrokeWidths}.
|
|
10
|
+
* @param {string} [props.fill='none'] - SVG fill colour.
|
|
11
|
+
* @returns {JSX.Element}
|
|
12
|
+
*/
|
|
13
|
+
export const AlertIcon: (props: IconProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SVG text align-center icon.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {string} [props.strokeColor='currentColor'] - SVG stroke colour.
|
|
6
|
+
* Accepts any valid CSS colour value.
|
|
7
|
+
* @param {import('./constants').IconSize} [props.iconSize='m']
|
|
8
|
+
* T-shirt size token that controls the rendered `width`/`height` and
|
|
9
|
+
* `stroke-width` via {@link iconSizes} and {@link iconStrokeWidths}.
|
|
10
|
+
* @param {string} [props.fill='none'] - SVG fill colour.
|
|
11
|
+
* @returns {JSX.Element}
|
|
12
|
+
*/
|
|
13
|
+
export const AlignCenterIcon: (props: IconProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SVG align-horizontally icon.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {string} [props.strokeColor='currentColor'] - SVG stroke colour.
|
|
6
|
+
* Accepts any valid CSS colour value.
|
|
7
|
+
* @param {import('./constants').IconSize} [props.iconSize='m']
|
|
8
|
+
* T-shirt size token that controls the rendered `width`/`height` and
|
|
9
|
+
* `stroke-width` via {@link iconSizes} and {@link iconStrokeWidths}.
|
|
10
|
+
* @param {string} [props.fill='none'] - SVG fill colour.
|
|
11
|
+
* @returns {JSX.Element}
|
|
12
|
+
*/
|
|
13
|
+
export const AlignHorizontallyIcon: (props: IconProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SVG text align-justify icon.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {string} [props.strokeColor='currentColor'] - SVG stroke colour.
|
|
6
|
+
* Accepts any valid CSS colour value.
|
|
7
|
+
* @param {import('./constants').IconSize} [props.iconSize='m']
|
|
8
|
+
* T-shirt size token that controls the rendered `width`/`height` and
|
|
9
|
+
* `stroke-width` via {@link iconSizes} and {@link iconStrokeWidths}.
|
|
10
|
+
* @param {string} [props.fill='none'] - SVG fill colour.
|
|
11
|
+
* @returns {JSX.Element}
|
|
12
|
+
*/
|
|
13
|
+
export const AlignJustifyIcon: (props: IconProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SVG text align-left icon.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {string} [props.strokeColor='currentColor'] - SVG stroke colour.
|
|
6
|
+
* Accepts any valid CSS colour value.
|
|
7
|
+
* @param {import('./constants').IconSize} [props.iconSize='m']
|
|
8
|
+
* T-shirt size token that controls the rendered `width`/`height` and
|
|
9
|
+
* `stroke-width` via {@link iconSizes} and {@link iconStrokeWidths}.
|
|
10
|
+
* @param {string} [props.fill='none'] - SVG fill colour.
|
|
11
|
+
* @returns {JSX.Element}
|
|
12
|
+
*/
|
|
13
|
+
export const AlignLeftIcon: (props: IconProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SVG text align-right icon.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {string} [props.strokeColor='currentColor'] - SVG stroke colour.
|
|
6
|
+
* Accepts any valid CSS colour value.
|
|
7
|
+
* @param {import('./constants').IconSize} [props.iconSize='m']
|
|
8
|
+
* T-shirt size token that controls the rendered `width`/`height` and
|
|
9
|
+
* `stroke-width` via {@link iconSizes} and {@link iconStrokeWidths}.
|
|
10
|
+
* @param {string} [props.fill='none'] - SVG fill colour.
|
|
11
|
+
* @returns {JSX.Element}
|
|
12
|
+
*/
|
|
13
|
+
export const AlignRightIcon: (props: IconProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SVG align-vertically icon.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {string} [props.strokeColor='currentColor'] - SVG stroke colour.
|
|
6
|
+
* Accepts any valid CSS colour value.
|
|
7
|
+
* @param {import('./constants').IconSize} [props.iconSize='m']
|
|
8
|
+
* T-shirt size token that controls the rendered `width`/`height` and
|
|
9
|
+
* `stroke-width` via {@link iconSizes} and {@link iconStrokeWidths}.
|
|
10
|
+
* @param {string} [props.fill='none'] - SVG fill colour.
|
|
11
|
+
* @returns {JSX.Element}
|
|
12
|
+
*/
|
|
13
|
+
export const AlignVerticallyIcon: (props: IconProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SVG icon representing two typographic glyphs side-by-side, used to indicate
|
|
3
|
+
* text or font options.
|
|
4
|
+
*
|
|
5
|
+
* Unlike most icons in this set, `AlphabetIcon` accepts an additional `fill`
|
|
6
|
+
* prop so the letters can be filled with a solid colour (e.g. to
|
|
7
|
+
* represent a selected font colour).
|
|
8
|
+
*
|
|
9
|
+
* @param {object} props
|
|
10
|
+
* @param {string} [props.strokeColor='currentColor'] - SVG stroke colour.
|
|
11
|
+
* Accepts any valid CSS colour value.
|
|
12
|
+
* @param {import('./constants').IconSize} [props.iconSize='m']
|
|
13
|
+
* T-shirt size token that controls the rendered `width`/`height` and
|
|
14
|
+
* `stroke-width` via {@link iconSizes} and {@link iconStrokeWidths}.
|
|
15
|
+
* @param {string} [props.fill='none'] - SVG fill colour for the letter
|
|
16
|
+
* paths. Defaults to `'none'` (transparent). Pass a colour value to produce
|
|
17
|
+
* a filled appearance.
|
|
18
|
+
* @returns {JSX.Element}
|
|
19
|
+
*/
|
|
20
|
+
export const AlphabetIcon: (props: IconProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SVG archive/box icon.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {string} [props.strokeColor='currentColor'] - SVG stroke colour.
|
|
6
|
+
* Accepts any valid CSS colour value.
|
|
7
|
+
* @param {import('./constants').IconSize} [props.iconSize='m']
|
|
8
|
+
* T-shirt size token that controls the rendered `width`/`height` and
|
|
9
|
+
* `stroke-width` via {@link iconSizes} and {@link iconStrokeWidths}.
|
|
10
|
+
* @param {string} [props.fill='none'] - SVG fill colour.
|
|
11
|
+
* @returns {JSX.Element}
|
|
12
|
+
*/
|
|
13
|
+
export const ArchiveIcon: (props: IconProps) => import("react").JSX.Element;
|