@databricks/design-system 1.12.15 → 1.12.17
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/dist/Stepper-1ef5b499.js +395 -0
- package/dist/Stepper-1ef5b499.js.map +1 -0
- package/dist/{Stepper-a0fb4d9b.js → Typography-ed0b1c4d.js} +852 -1397
- package/dist/Typography-ed0b1c4d.js.map +1 -0
- package/dist/common-5b60d682.js.map +1 -1
- package/dist/design-system/AccessibleContainer/index.d.ts +0 -1
- package/dist/design-system/AccessibleContainer/index.d.ts.map +1 -1
- package/dist/design-system/Accordion/Accordion.d.ts +0 -1
- package/dist/design-system/Accordion/Accordion.d.ts.map +1 -1
- package/dist/design-system/Alert/Alert.d.ts +3 -3
- package/dist/design-system/Alert/Alert.d.ts.map +1 -1
- package/dist/design-system/ApplyGlobalStyles/ApplyGlobalStyles.d.ts +0 -1
- package/dist/design-system/ApplyGlobalStyles/ApplyGlobalStyles.d.ts.map +1 -1
- package/dist/design-system/AutoComplete/AutoComplete.d.ts +0 -1
- package/dist/design-system/AutoComplete/AutoComplete.d.ts.map +1 -1
- package/dist/design-system/Avatar/Avatar.d.ts +22 -15
- package/dist/design-system/Avatar/Avatar.d.ts.map +1 -1
- package/dist/design-system/Breadcrumb/Breadcrumb.d.ts +0 -1
- package/dist/design-system/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/design-system/Button/Button.d.ts +11 -13
- package/dist/design-system/Button/Button.d.ts.map +1 -1
- package/dist/design-system/Button/styles.d.ts +4 -1
- package/dist/design-system/Button/styles.d.ts.map +1 -1
- package/dist/design-system/Card/Card.d.ts +6 -3
- package/dist/design-system/Card/Card.d.ts.map +1 -1
- package/dist/design-system/Checkbox/Checkbox.d.ts +7 -5
- package/dist/design-system/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/design-system/ContextMenu/ContextMenu.d.ts +7 -5
- package/dist/design-system/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/design-system/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts +38 -4
- package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts.map +1 -1
- package/dist/design-system/DesignSystemEventProvider/DesignSystemEventSuppressInteractionProvider.d.ts +14 -0
- package/dist/design-system/DesignSystemEventProvider/DesignSystemEventSuppressInteractionProvider.d.ts.map +1 -0
- package/dist/design-system/DesignSystemEventProvider/index.d.ts +1 -0
- package/dist/design-system/DesignSystemEventProvider/index.d.ts.map +1 -1
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogCombobox.d.ts +12 -5
- package/dist/design-system/DialogCombobox/DialogCombobox.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxAddButton.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxContent.d.ts +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxContent.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxFooter.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionControlledList.d.ts +0 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionControlledList.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts +0 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts +2 -2
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts +0 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxSectionHeader.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxSeparator.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts +2 -0
- package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/providers/DialogComboboxContext.d.ts +5 -3
- package/dist/design-system/DialogCombobox/providers/DialogComboboxContext.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/providers/DialogComboboxOptionListContext.d.ts +0 -1
- package/dist/design-system/DialogCombobox/providers/DialogComboboxOptionListContext.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/shared.d.ts +3 -3
- package/dist/design-system/DialogCombobox/shared.d.ts.map +1 -1
- package/dist/design-system/Drawer/Drawer.d.ts.map +1 -1
- package/dist/design-system/Dropdown/Dropdown.d.ts +0 -1
- package/dist/design-system/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/design-system/DropdownMenu/DropdownMenu.d.ts +11 -6
- package/dist/design-system/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/design-system/Empty/Empty.d.ts.map +1 -1
- package/dist/design-system/Form/Form.d.ts.map +1 -1
- package/dist/design-system/FormMessage/FormMessage.d.ts +2 -2
- package/dist/design-system/FormMessage/FormMessage.d.ts.map +1 -1
- package/dist/design-system/FormV2/RHFAdapters.d.ts +5 -5
- package/dist/design-system/FormV2/RHFAdapters.d.ts.map +1 -1
- package/dist/design-system/FormV2/index.d.ts +1 -2
- package/dist/design-system/FormV2/index.d.ts.map +1 -1
- package/dist/design-system/Grid/Col.d.ts +0 -1
- package/dist/design-system/Grid/Col.d.ts.map +1 -1
- package/dist/design-system/Grid/Row.d.ts +0 -1
- package/dist/design-system/Grid/Row.d.ts.map +1 -1
- package/dist/design-system/Header/Header.d.ts.map +1 -1
- package/dist/design-system/Hint/Hint.d.ts.map +1 -1
- package/dist/design-system/Hooks/useThemedStyles.d.ts.map +1 -1
- package/dist/design-system/Icon/Icon.d.ts +1 -1
- package/dist/design-system/Icon/Icon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/AlignCenterIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/AlignLeftIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/AlignRightIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/AppIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowDownDotIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/ArrowDownDotIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/ArrowDownIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowInIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowLeftIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowOverIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/ArrowOverIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/ArrowRightIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowUpDotIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/ArrowUpDotIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/ArrowUpIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowsUpDownIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/AssistantIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BadgeCodeIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BadgeCodeOffIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BarChartIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BarGroupedIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BarStackedIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BarStackedPercentageIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BeakerIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BinaryIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BlockQuoteIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/BlockQuoteIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/BoldIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BookIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BookmarkFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BookmarkIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BooksIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BracketsCurlyIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BracketsSquareIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BracketsXIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BranchIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BriefcaseFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BriefcaseIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BugIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/BugIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/CalendarClockIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CalendarEventIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CalendarIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CaretDownSquareIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CaretUpSquareIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CatalogCloudIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/{VectorTableIcon.d.ts → CatalogGearIcon.d.ts} +3 -3
- package/dist/design-system/Icon/__generated/icons/CatalogGearIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/{StepIntoIcon.d.ts → CatalogHIcon.d.ts} +3 -3
- package/dist/design-system/Icon/__generated/icons/CatalogHIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/CatalogIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CatalogOffIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CatalogSharedIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/CatalogSharedIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/ChainIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/ChainIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/ChartLineIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChartLineIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleBadgeIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckLineIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckSmallIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/CheckSmallIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/CheckboxIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChecklistIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleDownIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleDownIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleLeftIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleRightIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleUpIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDownIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronLeftIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronRightIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronUpIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CircleIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ClipboardIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ClockIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ClockKeyIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CloseIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CloseSmallIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/CloseSmallIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/CloudDatabaseIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/CloudDatabaseIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/CloudDownloadIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudDownloadIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudKeyIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudModelIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudOffIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudUploadIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CodeIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ColorFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ColumnIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ColumnsIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CommandPaletteIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/CommandPaletteIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/ConnectIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CopyIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CursorIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CursorTypeIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DagIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DangerFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DangerIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DashIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DashboardIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DataIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DatabaseIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DecimalIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DotsCircleIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DownloadIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DragIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ErdIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ErdIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ExpandLessIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ExpandMoreIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FaceFrownIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FaceNeutralIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FaceSmileIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FileCodeIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FileDocumentIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FileIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FileImageIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FileModelIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FilterIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FlagPointerIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/FlagPointerIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/FloatIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FolderBranchFillIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/FolderBranchFillIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/FolderBranchIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FolderCloudFilledIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FolderCloudIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FolderFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FolderIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FontIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ForkIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FullscreenExitIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FullscreenIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FunctionIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/GearFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/GearIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/GiftIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/GitCommitIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/GlobeIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/GridDashIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/GridIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/H1Icon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/H2Icon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/H3Icon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/HistoryIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/HomeIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ImageIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/IndentDecreaseIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/IndentIncreaseIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/InfinityIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/{StepOverIcon.d.ts → InfoBookIcon.d.ts} +3 -3
- package/dist/design-system/Icon/__generated/icons/InfoBookIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/InfoFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/InfoIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/IngestionIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ItalicIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/KeyIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/KeyboardIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LayerGraphIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LayerIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LeafIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/LeafIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/LettersIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LibrariesIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LibrariesIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LightningIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LinkIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LinkOffIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ListBorderIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ListClearIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ListClearIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ListIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LoadingIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LockFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LockIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LockUnlockedIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/MIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/MailIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/MegaphoneIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/MenuIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/MinusBoxIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/MinusCircleFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/MinusCircleIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ModelsIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/NewWindowIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/NoIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/NotebookIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/NotificationIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/NotificationOffIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/NumbersIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/OfficeIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/OverflowIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PageBottomIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PageFirstIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PageLastIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PageTopIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PauseIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PencilIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PieChartIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/PieChartIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/PinCancelIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PinFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PinIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PipelineIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PlayCircleFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PlayCircleIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PlayIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PlugIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PlusCircleFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PlusCircleIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PlusIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PlusSquareIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/QueryEditorIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/QueryEditorIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/QueryIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/QuestionMarkFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/QuestionMarkIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ReaderModeIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/RedoIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/RefreshIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ReplyIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/ReplyIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/Robot2Icon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/Robot2Icon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/RobotIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/RunningIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SaveIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SchemaIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SchoolIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SearchDataIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/SearchDataIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/SearchIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SecurityIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SendIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ShareIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ShareIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ShieldIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/ShieldIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/ShortcutIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/ShortcutIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/SidebarAutoIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SidebarCollapseIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SidebarExpandIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SidebarExpandIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SidebarIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SlidersIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalAscendingIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalDescendingIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalLeftIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalRightIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SortAscendingIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SortDescendingIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SortUnsortedIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SparkleDoubleFillIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/SparkleDoubleFillIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/SparkleDoubleIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/SparkleDoubleIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/SparkleFillIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/SparkleFillIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/SparkleIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SparkleIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SparkleRectangleIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/SparkleRectangleIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/SpeechBubbleIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SpeechBubblePlusIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SpeechBubbleQuestionMarkIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SpeechBubbleStarIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/SpeechBubbleStarIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/StarFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/StarIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/StopCircleFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/StopCircleIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/StopIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/StopIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/StorefrontIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/StreamIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SyncIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/TableGlassesIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/TableGlobeIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/TableGlobeIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/TableIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/TableLightningIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/TableModelIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/TableModelIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/TableOnlineViewIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/TableStreamIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/TableVectorIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/TableViewIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/TagIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/TargetIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/TargetIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/TerminalIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/TerminalIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/TextBoxIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/TextUnderlineIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/TextUnderlineIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/ThumbsDownIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ThumbsUpIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/TrashIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/TreeIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/UnderlineIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/UndoIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/UploadIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/UsbIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/UserBadgeIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/UserCircleIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/UserGroupIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/UserIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/VisibleIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/VisibleOffIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/WarningFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/WarningIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/WorkflowsIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/WorkspacesIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/WrenchIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/WrenchIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/XCircleFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/XCircleIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ZoomInIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ZoomMarqueeSelection.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ZoomOutIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/index.d.ts +33 -5
- package/dist/design-system/Icon/__generated/icons/index.d.ts.map +1 -1
- package/dist/design-system/Icon/iconMap.d.ts +2 -2
- package/dist/design-system/Icon/iconMap.d.ts.map +1 -1
- package/dist/design-system/Icon/index.d.ts +1 -1
- package/dist/design-system/Icon/index.d.ts.map +1 -1
- package/dist/design-system/Input/Group.d.ts.map +1 -1
- package/dist/design-system/Input/Input.d.ts +2 -2
- package/dist/design-system/Input/Input.d.ts.map +1 -1
- package/dist/design-system/Input/Password.d.ts.map +1 -1
- package/dist/design-system/Input/TextArea.d.ts +0 -1
- package/dist/design-system/Input/TextArea.d.ts.map +1 -1
- package/dist/design-system/Input/common.d.ts +1 -1
- package/dist/design-system/Input/common.d.ts.map +1 -1
- package/dist/design-system/Input/index.d.ts +1 -2
- package/dist/design-system/Input/index.d.ts.map +1 -1
- package/dist/design-system/Label/Label.d.ts +7 -1
- package/dist/design-system/Label/Label.d.ts.map +1 -1
- package/dist/design-system/Layout/Layout.d.ts.map +1 -1
- package/dist/design-system/LegacyNotification/LegacyNotification.d.ts +1 -2
- package/dist/design-system/LegacyNotification/LegacyNotification.d.ts.map +1 -1
- package/dist/design-system/LegacyPopover/LegacyPopover.d.ts +0 -1
- package/dist/design-system/LegacyPopover/LegacyPopover.d.ts.map +1 -1
- package/dist/design-system/LegacySelect/LegacySelect.d.ts +2 -2
- package/dist/design-system/LegacySelect/LegacySelect.d.ts.map +1 -1
- package/dist/design-system/LegacySkeleton/LegacySkeleton.d.ts +0 -1
- package/dist/design-system/LegacySkeleton/LegacySkeleton.d.ts.map +1 -1
- package/dist/design-system/LegacyTable/LegacyTable.d.ts +0 -1
- package/dist/design-system/LegacyTable/LegacyTable.d.ts.map +1 -1
- package/dist/design-system/LegacyTooltip/LegacyInfoTooltip.d.ts +17 -0
- package/dist/design-system/LegacyTooltip/LegacyInfoTooltip.d.ts.map +1 -0
- package/dist/design-system/LegacyTooltip/LegacyTooltip.d.ts +48 -0
- package/dist/design-system/LegacyTooltip/LegacyTooltip.d.ts.map +1 -0
- package/dist/design-system/LegacyTooltip/index.d.ts +3 -0
- package/dist/design-system/LegacyTooltip/index.d.ts.map +1 -0
- package/dist/design-system/List/List.d.ts.map +1 -1
- package/dist/design-system/LoadingState/LoadingState.d.ts +0 -1
- package/dist/design-system/LoadingState/LoadingState.d.ts.map +1 -1
- package/dist/design-system/Menu/Menu.d.ts +0 -1
- package/dist/design-system/Menu/Menu.d.ts.map +1 -1
- package/dist/design-system/Modal/Modal.d.ts +8 -5
- package/dist/design-system/Modal/Modal.d.ts.map +1 -1
- package/dist/design-system/Notification/Notification.d.ts +4 -2
- package/dist/design-system/Notification/Notification.d.ts.map +1 -1
- package/dist/design-system/Overflow/Overflow.d.ts +0 -1
- package/dist/design-system/Overflow/Overflow.d.ts.map +1 -1
- package/dist/design-system/Overflow/OverflowPopover.d.ts +9 -0
- package/dist/design-system/Overflow/OverflowPopover.d.ts.map +1 -0
- package/dist/design-system/PageWrapper/PageWrapper.d.ts +0 -1
- package/dist/design-system/PageWrapper/PageWrapper.d.ts.map +1 -1
- package/dist/design-system/Pagination/index.d.ts +4 -4
- package/dist/design-system/Pagination/index.d.ts.map +1 -1
- package/dist/design-system/Popover/InfoPopover.d.ts +0 -1
- package/dist/design-system/Popover/InfoPopover.d.ts.map +1 -1
- package/dist/design-system/Popover/Popover.d.ts +1 -1
- package/dist/design-system/Popover/Popover.d.ts.map +1 -1
- package/dist/design-system/Radio/Radio.d.ts +4 -5
- package/dist/design-system/Radio/Radio.d.ts.map +1 -1
- package/dist/design-system/SegmentedControl/SegmentedControl.d.ts +3 -3
- package/dist/design-system/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/design-system/Select/Select.d.ts +3 -2
- package/dist/design-system/Select/Select.d.ts.map +1 -1
- package/dist/design-system/Select/SelectContent.d.ts +0 -1
- package/dist/design-system/Select/SelectContent.d.ts.map +1 -1
- package/dist/design-system/Select/SelectOption.d.ts +0 -1
- package/dist/design-system/Select/SelectOption.d.ts.map +1 -1
- package/dist/design-system/Select/SelectOptionGroup.d.ts +0 -1
- package/dist/design-system/Select/SelectOptionGroup.d.ts.map +1 -1
- package/dist/design-system/Select/SelectTrigger.d.ts +0 -1
- package/dist/design-system/Select/SelectTrigger.d.ts.map +1 -1
- package/dist/design-system/Select/SimpleSelect.d.ts +13 -9
- package/dist/design-system/Select/SimpleSelect.d.ts.map +1 -1
- package/dist/design-system/Select/providers/SelectContext.d.ts +0 -1
- package/dist/design-system/Select/providers/SelectContext.d.ts.map +1 -1
- package/dist/design-system/Sidebar/Sidebar.d.ts +2 -2
- package/dist/design-system/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/design-system/Skeleton/GenericSkeleton.d.ts.map +1 -1
- package/dist/design-system/Skeleton/ParagraphSkeleton.d.ts.map +1 -1
- package/dist/design-system/Skeleton/TableSkeleton.d.ts.map +1 -1
- package/dist/design-system/Skeleton/TitleSkeleton.d.ts.map +1 -1
- package/dist/design-system/Space/Space.d.ts +0 -1
- package/dist/design-system/Space/Space.d.ts.map +1 -1
- package/dist/design-system/Spacer/Spacer.d.ts +0 -1
- package/dist/design-system/Spacer/Spacer.d.ts.map +1 -1
- package/dist/design-system/Spinner/Spinner.d.ts +0 -1
- package/dist/design-system/Spinner/Spinner.d.ts.map +1 -1
- package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts +3 -1
- package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts.map +1 -1
- package/dist/design-system/SplitButton/SplitButton.d.ts +0 -1
- package/dist/design-system/SplitButton/SplitButton.d.ts.map +1 -1
- package/dist/design-system/Steps/Steps.d.ts.map +1 -1
- package/dist/design-system/Switch/Switch.d.ts +3 -3
- package/dist/design-system/Switch/Switch.d.ts.map +1 -1
- package/dist/design-system/TableUI/Table.d.ts +3 -3
- package/dist/design-system/TableUI/Table.d.ts.map +1 -1
- package/dist/design-system/TableUI/TableFilterInput.d.ts +0 -1
- package/dist/design-system/TableUI/TableFilterInput.d.ts.map +1 -1
- package/dist/design-system/TableUI/TableFilterLayout.d.ts.map +1 -1
- package/dist/design-system/TableUI/TableRow.d.ts.map +1 -1
- package/dist/design-system/TableUI/TableRowActionHeader.d.ts.map +1 -1
- package/dist/design-system/TableUI/TableRowSelectCell.d.ts +0 -1
- package/dist/design-system/TableUI/TableRowSelectCell.d.ts.map +1 -1
- package/dist/design-system/Tabs/index.d.ts +0 -1
- package/dist/design-system/Tabs/index.d.ts.map +1 -1
- package/dist/design-system/Tag/index.d.ts +4 -3
- package/dist/design-system/Tag/index.d.ts.map +1 -1
- package/dist/design-system/ToggleButton/ToggleButton.d.ts +10 -1
- package/dist/design-system/ToggleButton/ToggleButton.d.ts.map +1 -1
- package/dist/design-system/Tooltip/InfoTooltip.d.ts +3 -7
- package/dist/design-system/Tooltip/InfoTooltip.d.ts.map +1 -1
- package/dist/design-system/Tooltip/Tooltip.d.ts +6 -30
- package/dist/design-system/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/design-system/Tree/Tree.d.ts +0 -1
- package/dist/design-system/Tree/Tree.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxCheckboxItem.d.ts +0 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxCheckboxItem.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxControls.d.ts +0 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxControls.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxFooter.d.ts +0 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxFooter.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxInput.d.ts +3 -3
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxInput.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMenu.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMenuItem.d.ts +0 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMenuItem.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMultiSelectInput.d.ts +1 -2
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMultiSelectInput.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxRoot.d.ts +3 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxRoot.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxSectionHeader.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxSelectedItem.d.ts +0 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxSelectedItem.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxSeparator.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts +0 -1
- package/dist/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/providers/TypeaheadComboboxContext.d.ts +3 -2
- package/dist/design-system/TypeaheadCombobox/providers/TypeaheadComboboxContext.d.ts.map +1 -1
- package/dist/design-system/Typography/Hint.d.ts.map +1 -1
- package/dist/design-system/Typography/Link.d.ts +4 -3
- package/dist/design-system/Typography/Link.d.ts.map +1 -1
- package/dist/design-system/Typography/Paragraph.d.ts.map +1 -1
- package/dist/design-system/Typography/Text.d.ts.map +1 -1
- package/dist/design-system/Typography/Title.d.ts.map +1 -1
- package/dist/design-system/Typography/Truncate.d.ts +7 -0
- package/dist/design-system/Typography/Truncate.d.ts.map +1 -0
- package/dist/design-system/Typography/Typography.d.ts +2 -1
- package/dist/design-system/Typography/Typography.d.ts.map +1 -1
- package/dist/design-system/Typography/index.d.ts +1 -0
- package/dist/design-system/Typography/index.d.ts.map +1 -1
- package/dist/design-system/_shared_/Combobox/EmptyResults.d.ts +0 -1
- package/dist/design-system/_shared_/Combobox/EmptyResults.d.ts.map +1 -1
- package/dist/design-system/_shared_/Combobox/SectionHeader.d.ts.map +1 -1
- package/dist/design-system/_shared_/Combobox/Separator.d.ts.map +1 -1
- package/dist/design-system/_shared_/Combobox/styles.d.ts +7 -7
- package/dist/design-system/_shared_/Combobox/styles.d.ts.map +1 -1
- package/dist/design-system/_shared_/Menu/index.d.ts +0 -1
- package/dist/design-system/_shared_/Menu/index.d.ts.map +1 -1
- package/dist/design-system/index.d.ts +1 -1
- package/dist/design-system/index.d.ts.map +1 -1
- package/dist/design-system/types.d.ts +34 -2
- package/dist/design-system/types.d.ts.map +1 -1
- package/dist/design-system/utils/css-utils.d.ts +0 -1
- package/dist/design-system/utils/css-utils.d.ts.map +1 -1
- package/dist/design-system/utils/debug.d.ts +1 -0
- package/dist/design-system/utils/debug.d.ts.map +1 -1
- package/dist/design-system/utils/useCallbackOnceUntilReset.d.ts.map +1 -1
- package/dist/design-system/utils/useNotifyOnFirstView.d.ts +0 -1
- package/dist/design-system/utils/useNotifyOnFirstView.d.ts.map +1 -1
- package/dist/development/Banner/Banner.d.ts.map +1 -1
- package/dist/development/DatePicker/DatePicker.d.ts +60 -0
- package/dist/development/DatePicker/DatePicker.d.ts.map +1 -0
- package/dist/development/DatePicker/index.d.ts +2 -0
- package/dist/development/DatePicker/index.d.ts.map +1 -0
- package/dist/development/DatePicker/styles.d.ts +3 -0
- package/dist/development/DatePicker/styles.d.ts.map +1 -0
- package/dist/development/DatePicker/utils.d.ts +44 -0
- package/dist/development/DatePicker/utils.d.ts.map +1 -0
- package/dist/development/PillControl/PillControl.d.ts +3 -1
- package/dist/development/PillControl/PillControl.d.ts.map +1 -1
- package/dist/development/PreviewCard/PreviewCard.d.ts +3 -1
- package/dist/development/PreviewCard/PreviewCard.d.ts.map +1 -1
- package/dist/development/Progress/providers/ProgressContex.d.ts +0 -1
- package/dist/development/Progress/providers/ProgressContex.d.ts.map +1 -1
- package/dist/development/Slider/Slider.d.ts +0 -1
- package/dist/development/Slider/Slider.d.ts.map +1 -1
- package/dist/development/Stepper/Stepper.d.ts +21 -3
- package/dist/development/Stepper/Stepper.d.ts.map +1 -1
- package/dist/development/TabsV2/TabsV2.d.ts +27 -0
- package/dist/development/TabsV2/TabsV2.d.ts.map +1 -0
- package/dist/development/TabsV2/index.d.ts +2 -0
- package/dist/development/TabsV2/index.d.ts.map +1 -0
- package/dist/development/Toolbar/Toolbar.d.ts +0 -1
- package/dist/development/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/development/index.d.ts +6 -4
- package/dist/development/index.d.ts.map +1 -1
- package/dist/development.js +1267 -800
- package/dist/development.js.map +1 -1
- package/dist/flags.d.ts +0 -1
- package/dist/flags.d.ts.map +1 -1
- package/dist/index-b1437d2d.js +507 -0
- package/dist/index-b1437d2d.js.map +1 -0
- package/dist/index-dark.css +23 -1
- package/dist/index.css +20 -1
- package/dist/index.js +3581 -2592
- package/dist/index.js.map +1 -1
- package/dist/patterns.js +508 -0
- package/dist/patterns.js.map +1 -0
- package/dist/test-utils/enzyme/index.d.ts.map +1 -1
- package/dist/test-utils/enzyme/utils.d.ts +0 -1
- package/dist/test-utils/enzyme/utils.d.ts.map +1 -1
- package/dist/test-utils/enzyme.js.map +1 -1
- package/dist/test-utils/rtl/index.d.ts +2 -0
- package/dist/test-utils/rtl/index.d.ts.map +1 -1
- package/dist/test-utils/rtl/select.d.ts +28 -0
- package/dist/test-utils/rtl/select.d.ts.map +1 -0
- package/dist/test-utils/rtl/simpleSelect.utils.d.ts +20 -0
- package/dist/test-utils/rtl/simpleSelect.utils.d.ts.map +1 -0
- package/dist/test-utils/rtl.js +152 -2
- package/dist/test-utils/rtl.js.map +1 -1
- package/dist/theme/borders.d.ts +2 -0
- package/dist/theme/borders.d.ts.map +1 -1
- package/dist/theme/colors.d.ts +8 -4
- package/dist/theme/colors.d.ts.map +1 -1
- package/dist/theme/gradients.d.ts +6 -0
- package/dist/theme/gradients.d.ts.map +1 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/useMediaQuery-fddfe3fd.js +499 -0
- package/dist/useMediaQuery-fddfe3fd.js.map +1 -0
- package/dist/~patterns/Wizard/HorizontalWizardContent.d.ts +5 -0
- package/dist/~patterns/Wizard/HorizontalWizardContent.d.ts.map +1 -0
- package/dist/~patterns/Wizard/HorizontalWizardStepsContent.d.ts +11 -0
- package/dist/~patterns/Wizard/HorizontalWizardStepsContent.d.ts.map +1 -0
- package/dist/~patterns/Wizard/VerticalWizardContent.d.ts +5 -0
- package/dist/~patterns/Wizard/VerticalWizardContent.d.ts.map +1 -0
- package/dist/~patterns/Wizard/Wizard.d.ts +4 -0
- package/dist/~patterns/Wizard/Wizard.d.ts.map +1 -0
- package/dist/{design-system → ~patterns}/Wizard/WizardFooter.d.ts +4 -4
- package/dist/~patterns/Wizard/WizardFooter.d.ts.map +1 -0
- package/dist/~patterns/Wizard/WizardModal.d.ts +7 -0
- package/dist/~patterns/Wizard/WizardModal.d.ts.map +1 -0
- package/dist/{design-system/Wizard/Wizard.d.ts → ~patterns/Wizard/WizardProps.d.ts} +38 -12
- package/dist/~patterns/Wizard/WizardProps.d.ts.map +1 -0
- package/dist/{design-system → ~patterns}/Wizard/WizardStep.d.ts +25 -1
- package/dist/~patterns/Wizard/WizardStep.d.ts.map +1 -0
- package/dist/~patterns/Wizard/index.d.ts +6 -0
- package/dist/~patterns/Wizard/index.d.ts.map +1 -0
- package/dist/~patterns/Wizard/useStepperStepsFromWizardSteps.d.ts +9 -0
- package/dist/~patterns/Wizard/useStepperStepsFromWizardSteps.d.ts.map +1 -0
- package/dist/{design-system → ~patterns}/Wizard/useWizardCurrentStep.d.ts +3 -3
- package/dist/~patterns/Wizard/useWizardCurrentStep.d.ts.map +1 -0
- package/dist/~patterns/index.d.ts +4 -0
- package/dist/~patterns/index.d.ts.map +1 -0
- package/package.json +22 -11
- package/patterns.d.ts +1 -0
- package/patterns.mjs +1 -0
- package/dist/Stepper-a0fb4d9b.js.map +0 -1
- package/dist/design-system/Avatar/SvgSparkleIcon.d.ts +0 -3
- package/dist/design-system/Avatar/SvgSparkleIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/QuestionMarkSpeechBubbleIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/QuestionMarkSpeechBubbleIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StepIntoIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StepOutIcon.d.ts +0 -5
- package/dist/design-system/Icon/__generated/icons/StepOutIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StepOverIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/VectorTableIcon.d.ts.map +0 -1
- package/dist/design-system/Wizard/Wizard.d.ts.map +0 -1
- package/dist/design-system/Wizard/WizardFooter.d.ts.map +0 -1
- package/dist/design-system/Wizard/WizardModal.d.ts +0 -7
- package/dist/design-system/Wizard/WizardModal.d.ts.map +0 -1
- package/dist/design-system/Wizard/WizardStep.d.ts.map +0 -1
- package/dist/design-system/Wizard/WizardStepsContent.d.ts +0 -11
- package/dist/design-system/Wizard/WizardStepsContent.d.ts.map +0 -1
- package/dist/design-system/Wizard/index.d.ts +0 -5
- package/dist/design-system/Wizard/index.d.ts.map +0 -1
- package/dist/design-system/Wizard/useWizardCurrentStep.d.ts.map +0 -1
- package/dist/development/ChatUI/ChatInput.d.ts +0 -11
- package/dist/development/ChatUI/ChatInput.d.ts.map +0 -1
- package/dist/development/ChatUI/CodeSnippet.d.ts +0 -9
- package/dist/development/ChatUI/CodeSnippet.d.ts.map +0 -1
- package/dist/development/ChatUI/Feedback.d.ts +0 -6
- package/dist/development/ChatUI/Feedback.d.ts.map +0 -1
- package/dist/development/ChatUI/Message.d.ts +0 -8
- package/dist/development/ChatUI/Message.d.ts.map +0 -1
- package/dist/development/ChatUI/MessageActionButton.d.ts +0 -4
- package/dist/development/ChatUI/MessageActionButton.d.ts.map +0 -1
- package/dist/development/ChatUI/MessageBody.d.ts +0 -7
- package/dist/development/ChatUI/MessageBody.d.ts.map +0 -1
- package/dist/development/ChatUI/MessageHeader.d.ts +0 -11
- package/dist/development/ChatUI/MessageHeader.d.ts.map +0 -1
- package/dist/development/ChatUI/MessagePagination.d.ts +0 -9
- package/dist/development/ChatUI/MessagePagination.d.ts.map +0 -1
- package/dist/development/ChatUI/index.d.ts +0 -39
- package/dist/development/ChatUI/index.d.ts.map +0 -1
- package/dist/test-utils/types.d.ts +0 -2
- package/dist/test-utils/types.d.ts.map +0 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect, createContext, useContext, useMemo, useState, forwardRef, useLayoutEffect, useImperativeHandle, useCallback } from 'react';
|
|
2
2
|
import { jsx, Fragment, jsxs } from '@emotion/react/jsx-runtime';
|
|
3
3
|
import { useTheme, ThemeProvider, css, keyframes } from '@emotion/react';
|
|
4
|
-
import { notification, ConfigProvider,
|
|
4
|
+
import { notification, ConfigProvider, Button as Button$1, Typography as Typography$1 } from 'antd';
|
|
5
|
+
import * as Popover$1 from '@radix-ui/react-popover';
|
|
6
|
+
import { TooltipProvider } from '@radix-ui/react-tooltip';
|
|
5
7
|
import AntDIcon from '@ant-design/icons';
|
|
6
8
|
import _isNil from 'lodash/isNil';
|
|
7
9
|
import _endsWith from 'lodash/endsWith';
|
|
@@ -498,7 +500,8 @@ function AccessibleContainer(_ref) {
|
|
|
498
500
|
|
|
499
501
|
// Border variables
|
|
500
502
|
const borders = {
|
|
501
|
-
borderRadiusMd: 4
|
|
503
|
+
borderRadiusMd: 4,
|
|
504
|
+
borderRadiusLg: 8
|
|
502
505
|
};
|
|
503
506
|
|
|
504
507
|
// eslint-disable-next-line import/no-anonymous-default-export
|
|
@@ -799,10 +802,14 @@ const lightColorList = {
|
|
|
799
802
|
|
|
800
803
|
// Currently these are the same for both light and dark mode, but we may want to change this in the future.
|
|
801
804
|
const branded = {
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
805
|
+
ai: {
|
|
806
|
+
/** For AI components, the top-left-oriented start color of gradient treatments. */
|
|
807
|
+
gradientStart: '#4299E0',
|
|
808
|
+
/** For AI components, the mid color of gradient treatments. */
|
|
809
|
+
gradientMid: '#CA42E0',
|
|
810
|
+
/** For AI components, the bottom-right-oriented end color of gradient treatments. */
|
|
811
|
+
gradientEnd: '#FF5F46'
|
|
812
|
+
}
|
|
806
813
|
};
|
|
807
814
|
const darkColors = {
|
|
808
815
|
...darkColorList,
|
|
@@ -878,6 +885,7 @@ const deprecatedSemanticColorsDark = {
|
|
|
878
885
|
|
|
879
886
|
// A static list of secondary colors; these are used as a limited palette of color options in component props, i.e. `color="lime"`.
|
|
880
887
|
// TODO: We should split primitive colors into primary and secondary colors, and automatically generate this list.
|
|
888
|
+
|
|
881
889
|
function getColors(isDarkMode) {
|
|
882
890
|
return {
|
|
883
891
|
...deprecatedPrimitiveColors,
|
|
@@ -886,6 +894,13 @@ function getColors(isDarkMode) {
|
|
|
886
894
|
};
|
|
887
895
|
}
|
|
888
896
|
|
|
897
|
+
function getGradients(isDarkMode) {
|
|
898
|
+
const colors = getColors(isDarkMode);
|
|
899
|
+
return {
|
|
900
|
+
aiBorderGradient: `linear-gradient(135deg, ${colors.branded.ai.gradientStart} 20.5%, ${colors.branded.ai.gradientMid} 46.91%, ${colors.branded.ai.gradientEnd} 79.5%)`
|
|
901
|
+
};
|
|
902
|
+
}
|
|
903
|
+
|
|
889
904
|
const FONT_SIZE_BASE = 13;
|
|
890
905
|
|
|
891
906
|
// Less variables that are used by AntD
|
|
@@ -922,6 +937,7 @@ function getTheme(isDarkMode) {
|
|
|
922
937
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultOptions;
|
|
923
938
|
return {
|
|
924
939
|
colors: getColors(isDarkMode),
|
|
940
|
+
gradients: getGradients(isDarkMode),
|
|
925
941
|
spacing: spacing$1,
|
|
926
942
|
general: {
|
|
927
943
|
...antdGeneralVariables,
|
|
@@ -1062,9 +1078,11 @@ const DesignSystemProvider = _ref2 => {
|
|
|
1062
1078
|
getPopupContainer,
|
|
1063
1079
|
virtual: !disableLegacyAntVirtualization
|
|
1064
1080
|
},
|
|
1065
|
-
children: jsx(
|
|
1066
|
-
|
|
1067
|
-
|
|
1081
|
+
children: jsx(TooltipProvider, {
|
|
1082
|
+
children: jsx(DesignSystemContext.Provider, {
|
|
1083
|
+
value: value,
|
|
1084
|
+
children: children
|
|
1085
|
+
})
|
|
1068
1086
|
})
|
|
1069
1087
|
})
|
|
1070
1088
|
})
|
|
@@ -1158,9 +1176,35 @@ function useDesignSystemContext() {
|
|
|
1158
1176
|
return useContext(DesignSystemContext);
|
|
1159
1177
|
}
|
|
1160
1178
|
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1179
|
+
/**
|
|
1180
|
+
* Provides access to http://go/safex flags from the frontend. Note that this is a temporary
|
|
1181
|
+
* workaround until direct `safex` imports are available.
|
|
1182
|
+
* @param flag The name of the flag to check
|
|
1183
|
+
* @param defaultValue The default value to return if the flag is not set
|
|
1184
|
+
* @returns
|
|
1185
|
+
*/
|
|
1186
|
+
const safex = (flag, defaultValue) => {
|
|
1187
|
+
// Catching errors here, because we don't have type-safety to ensure
|
|
1188
|
+
// that `__debug__safex`'s API hasn't changed.
|
|
1189
|
+
try {
|
|
1190
|
+
const globalSafex = window.__debug__safex;
|
|
1191
|
+
return globalSafex ? globalSafex(flag, defaultValue) : defaultValue;
|
|
1192
|
+
} catch (e) {
|
|
1193
|
+
return defaultValue;
|
|
1194
|
+
}
|
|
1195
|
+
};
|
|
1196
|
+
|
|
1197
|
+
const getDebugOutlineStyles = theme => /*#__PURE__*/css({
|
|
1198
|
+
outline: `1px dashed ${theme.isDarkMode ? theme.colors.lime : theme.colors.lime}`,
|
|
1199
|
+
outlineOffset: '2px'
|
|
1200
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getDebugOutlineStyles;");
|
|
1201
|
+
function addDebugOutlineIfEnabled() {
|
|
1202
|
+
return safex('databricks.fe.designsystem.showDebugOutline', false) ? {
|
|
1203
|
+
'data-dubois-show-outline': true
|
|
1204
|
+
} : {};
|
|
1205
|
+
}
|
|
1206
|
+
function addDebugOutlineStylesIfEnabled(theme) {
|
|
1207
|
+
return safex('databricks.fe.designsystem.showDebugOutline', false) ? getDebugOutlineStyles(theme) : {};
|
|
1164
1208
|
}
|
|
1165
1209
|
|
|
1166
1210
|
const uniqueId = () => new Date().getTime() + Array(16).fill('').map(() => parseInt((Math.random() * 10).toString())).join('');
|
|
@@ -1227,14 +1271,19 @@ const Icon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
1227
1271
|
children: jsx("defs", {
|
|
1228
1272
|
children: jsxs("linearGradient", {
|
|
1229
1273
|
id: linearGradientId,
|
|
1274
|
+
x1: "0%",
|
|
1275
|
+
y1: "0%",
|
|
1230
1276
|
x2: "100%",
|
|
1231
1277
|
y2: "100%",
|
|
1232
1278
|
children: [jsx("stop", {
|
|
1233
|
-
offset: "
|
|
1234
|
-
stopColor: theme.colors.branded.
|
|
1279
|
+
offset: "20.5%",
|
|
1280
|
+
stopColor: theme.colors.branded.ai.gradientStart
|
|
1235
1281
|
}), jsx("stop", {
|
|
1236
|
-
offset: "
|
|
1237
|
-
stopColor: theme.colors.branded.
|
|
1282
|
+
offset: "46.91%",
|
|
1283
|
+
stopColor: theme.colors.branded.ai.gradientMid
|
|
1284
|
+
}), jsx("stop", {
|
|
1285
|
+
offset: "79.5%",
|
|
1286
|
+
stopColor: theme.colors.branded.ai.gradientEnd
|
|
1238
1287
|
})]
|
|
1239
1288
|
})
|
|
1240
1289
|
})
|
|
@@ -1244,6 +1293,7 @@ const Icon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
1244
1293
|
} : undefined, [Component, color, linearGradientId, theme]);
|
|
1245
1294
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
1246
1295
|
children: jsx(AntDIcon, {
|
|
1296
|
+
...addDebugOutlineIfEnabled(),
|
|
1247
1297
|
ref: forwardedRef,
|
|
1248
1298
|
"aria-hidden": "true",
|
|
1249
1299
|
css: /*#__PURE__*/css({
|
|
@@ -1271,7 +1321,7 @@ function SvgCheckIcon(props) {
|
|
|
1271
1321
|
children: jsx("path", {
|
|
1272
1322
|
fill: "currentColor",
|
|
1273
1323
|
fillRule: "evenodd",
|
|
1274
|
-
d: "m15.06 3.56-9.53 9.531L1 8.561 2.06 7.5l3.47 3.47L14 2.
|
|
1324
|
+
d: "m15.06 3.56-9.53 9.531L1 8.561 2.06 7.5l3.47 3.47L14 2.5z",
|
|
1275
1325
|
clipRule: "evenodd"
|
|
1276
1326
|
})
|
|
1277
1327
|
});
|
|
@@ -1286,58 +1336,6 @@ const CheckIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
1286
1336
|
CheckIcon.displayName = 'CheckIcon';
|
|
1287
1337
|
var CheckIcon$1 = CheckIcon;
|
|
1288
1338
|
|
|
1289
|
-
function SvgChevronLeftIcon(props) {
|
|
1290
|
-
return jsx("svg", {
|
|
1291
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1292
|
-
width: "1em",
|
|
1293
|
-
height: "1em",
|
|
1294
|
-
fill: "none",
|
|
1295
|
-
viewBox: "0 0 16 16",
|
|
1296
|
-
...props,
|
|
1297
|
-
children: jsx("path", {
|
|
1298
|
-
fill: "currentColor",
|
|
1299
|
-
fillRule: "evenodd",
|
|
1300
|
-
d: "M7.083 8 10 10.947 8.958 12 5 8l3.958-4L10 5.053 7.083 8Z",
|
|
1301
|
-
clipRule: "evenodd"
|
|
1302
|
-
})
|
|
1303
|
-
});
|
|
1304
|
-
}
|
|
1305
|
-
const ChevronLeftIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1306
|
-
return jsx(Icon, {
|
|
1307
|
-
ref: forwardedRef,
|
|
1308
|
-
...props,
|
|
1309
|
-
component: SvgChevronLeftIcon
|
|
1310
|
-
});
|
|
1311
|
-
});
|
|
1312
|
-
ChevronLeftIcon.displayName = 'ChevronLeftIcon';
|
|
1313
|
-
var ChevronLeftIcon$1 = ChevronLeftIcon;
|
|
1314
|
-
|
|
1315
|
-
function SvgChevronRightIcon(props) {
|
|
1316
|
-
return jsx("svg", {
|
|
1317
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1318
|
-
width: "1em",
|
|
1319
|
-
height: "1em",
|
|
1320
|
-
fill: "none",
|
|
1321
|
-
viewBox: "0 0 16 16",
|
|
1322
|
-
...props,
|
|
1323
|
-
children: jsx("path", {
|
|
1324
|
-
fill: "currentColor",
|
|
1325
|
-
fillRule: "evenodd",
|
|
1326
|
-
d: "M8.917 8 6 5.053 7.042 4 11 8l-3.958 4L6 10.947 8.917 8Z",
|
|
1327
|
-
clipRule: "evenodd"
|
|
1328
|
-
})
|
|
1329
|
-
});
|
|
1330
|
-
}
|
|
1331
|
-
const ChevronRightIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1332
|
-
return jsx(Icon, {
|
|
1333
|
-
ref: forwardedRef,
|
|
1334
|
-
...props,
|
|
1335
|
-
component: SvgChevronRightIcon
|
|
1336
|
-
});
|
|
1337
|
-
});
|
|
1338
|
-
ChevronRightIcon.displayName = 'ChevronRightIcon';
|
|
1339
|
-
var ChevronRightIcon$1 = ChevronRightIcon;
|
|
1340
|
-
|
|
1341
1339
|
function SvgCloseIcon(props) {
|
|
1342
1340
|
return jsx("svg", {
|
|
1343
1341
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1349,7 +1347,7 @@ function SvgCloseIcon(props) {
|
|
|
1349
1347
|
children: jsx("path", {
|
|
1350
1348
|
fill: "currentColor",
|
|
1351
1349
|
fillRule: "evenodd",
|
|
1352
|
-
d: "M6.97 8.03 2 3.06 3.06 2l4.97 4.97L13 2l1.06 1.06-4.969 4.97 4.97 4.97L13 14.06 8.03 9.092l-4.97 4.97L2
|
|
1350
|
+
d: "M6.97 8.03 2 3.06 3.06 2l4.97 4.97L13 2l1.06 1.06-4.969 4.97 4.97 4.97L13 14.06 8.03 9.092l-4.97 4.97L2 13z",
|
|
1353
1351
|
clipRule: "evenodd"
|
|
1354
1352
|
})
|
|
1355
1353
|
});
|
|
@@ -1364,42 +1362,6 @@ const CloseIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
1364
1362
|
CloseIcon.displayName = 'CloseIcon';
|
|
1365
1363
|
var CloseIcon$1 = CloseIcon;
|
|
1366
1364
|
|
|
1367
|
-
function SvgCursorIcon(props) {
|
|
1368
|
-
return jsxs("svg", {
|
|
1369
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1370
|
-
width: "1em",
|
|
1371
|
-
height: "1em",
|
|
1372
|
-
fill: "none",
|
|
1373
|
-
viewBox: "0 0 16 16",
|
|
1374
|
-
...props,
|
|
1375
|
-
children: [jsx("g", {
|
|
1376
|
-
clipPath: "url(#CursorIcon_svg__a)",
|
|
1377
|
-
children: jsx("path", {
|
|
1378
|
-
fill: "currentColor",
|
|
1379
|
-
fillRule: "evenodd",
|
|
1380
|
-
d: "M1.22 1.22a.75.75 0 0 1 .802-.169l13.5 5.25a.75.75 0 0 1-.043 1.413L9.597 9.597l-1.883 5.882a.75.75 0 0 1-1.413.043l-5.25-13.5a.75.75 0 0 1 .169-.802Zm1.847 1.847 3.864 9.937 1.355-4.233a.75.75 0 0 1 .485-.485l4.233-1.355-9.937-3.864Z",
|
|
1381
|
-
clipRule: "evenodd"
|
|
1382
|
-
})
|
|
1383
|
-
}), jsx("defs", {
|
|
1384
|
-
children: jsx("clipPath", {
|
|
1385
|
-
children: jsx("path", {
|
|
1386
|
-
fill: "#fff",
|
|
1387
|
-
d: "M16 0H0v16h16z"
|
|
1388
|
-
})
|
|
1389
|
-
})
|
|
1390
|
-
})]
|
|
1391
|
-
});
|
|
1392
|
-
}
|
|
1393
|
-
const CursorIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1394
|
-
return jsx(Icon, {
|
|
1395
|
-
ref: forwardedRef,
|
|
1396
|
-
...props,
|
|
1397
|
-
component: SvgCursorIcon
|
|
1398
|
-
});
|
|
1399
|
-
});
|
|
1400
|
-
CursorIcon.displayName = 'CursorIcon';
|
|
1401
|
-
var CursorIcon$1 = CursorIcon;
|
|
1402
|
-
|
|
1403
1365
|
function SvgDangerIcon(props) {
|
|
1404
1366
|
return jsxs("svg", {
|
|
1405
1367
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1410,11 +1372,11 @@ function SvgDangerIcon(props) {
|
|
|
1410
1372
|
...props,
|
|
1411
1373
|
children: [jsx("path", {
|
|
1412
1374
|
fill: "currentColor",
|
|
1413
|
-
d: "M7.248 10.748a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5
|
|
1375
|
+
d: "M7.248 10.748a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0M8.748 4.998v4h-1.5v-4z"
|
|
1414
1376
|
}), jsx("path", {
|
|
1415
1377
|
fill: "currentColor",
|
|
1416
1378
|
fillRule: "evenodd",
|
|
1417
|
-
d: "m11.533 15.776 4.243-4.243a.75.75 0 0 0 .22-.53v-6.01a.75.75 0 0 0-.22-.53L11.533.22a.75.75 0 0 0-.53-.22h-6.01a.75.75 0 0 0-.53.22L.22 4.462a.75.75 0 0 0-.22.53v6.011c0 .199.079.39.22.53l4.242 4.243c.141.14.332.22.53.22h6.011a.75.75 0 0 0 .53-.
|
|
1379
|
+
d: "m11.533 15.776 4.243-4.243a.75.75 0 0 0 .22-.53v-6.01a.75.75 0 0 0-.22-.53L11.533.22a.75.75 0 0 0-.53-.22h-6.01a.75.75 0 0 0-.53.22L.22 4.462a.75.75 0 0 0-.22.53v6.011c0 .199.079.39.22.53l4.242 4.243c.141.14.332.22.53.22h6.011a.75.75 0 0 0 .53-.22m2.963-10.473v5.39l-3.804 3.803H5.303L1.5 10.692V5.303L5.303 1.5h5.39z",
|
|
1418
1380
|
clipRule: "evenodd"
|
|
1419
1381
|
})]
|
|
1420
1382
|
});
|
|
@@ -1429,124 +1391,6 @@ const DangerIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
1429
1391
|
DangerIcon.displayName = 'DangerIcon';
|
|
1430
1392
|
var DangerIcon$1 = DangerIcon;
|
|
1431
1393
|
|
|
1432
|
-
function SvgFaceFrownIcon(props) {
|
|
1433
|
-
return jsxs("svg", {
|
|
1434
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1435
|
-
width: "1em",
|
|
1436
|
-
height: "1em",
|
|
1437
|
-
fill: "none",
|
|
1438
|
-
viewBox: "0 0 16 16",
|
|
1439
|
-
...props,
|
|
1440
|
-
children: [jsxs("g", {
|
|
1441
|
-
fill: "currentColor",
|
|
1442
|
-
clipPath: "url(#FaceFrownIcon_svg__a)",
|
|
1443
|
-
children: [jsx("path", {
|
|
1444
|
-
d: "M6 5.25a.75.75 0 0 0 0 1.5h.007a.75.75 0 0 0 0-1.5H6ZM9.25 6a.75.75 0 0 1 .75-.75h.007a.75.75 0 0 1 0 1.5H10A.75.75 0 0 1 9.25 6ZM10.07 11.12a.75.75 0 0 0 1.197-.903l-.001-.001v-.001l-.003-.003-.005-.006-.015-.02a2.95 2.95 0 0 0-.217-.246 4.717 4.717 0 0 0-.627-.546C9.86 9 9.04 8.584 8 8.584s-1.858.416-2.4.81a4.716 4.716 0 0 0-.795.733 2.87 2.87 0 0 0-.048.06l-.015.019-.005.006-.002.003-.031.044.03-.042a.75.75 0 1 0 1.22.875 3.219 3.219 0 0 1 .529-.485c.375-.273.89-.523 1.517-.523.627 0 1.142.25 1.517.523a3.219 3.219 0 0 1 .529.485l.021.025.002.003Z"
|
|
1445
|
-
}), jsx("path", {
|
|
1446
|
-
fillRule: "evenodd",
|
|
1447
|
-
d: "M8 .583a7.417 7.417 0 1 0 0 14.834A7.417 7.417 0 0 0 8 .583ZM2.083 8a5.917 5.917 0 1 1 11.834 0A5.917 5.917 0 0 1 2.083 8Z",
|
|
1448
|
-
clipRule: "evenodd"
|
|
1449
|
-
})]
|
|
1450
|
-
}), jsx("defs", {
|
|
1451
|
-
children: jsx("clipPath", {
|
|
1452
|
-
children: jsx("path", {
|
|
1453
|
-
fill: "#fff",
|
|
1454
|
-
d: "M0 0h16v16H0z"
|
|
1455
|
-
})
|
|
1456
|
-
})
|
|
1457
|
-
})]
|
|
1458
|
-
});
|
|
1459
|
-
}
|
|
1460
|
-
const FaceFrownIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1461
|
-
return jsx(Icon, {
|
|
1462
|
-
ref: forwardedRef,
|
|
1463
|
-
...props,
|
|
1464
|
-
component: SvgFaceFrownIcon
|
|
1465
|
-
});
|
|
1466
|
-
});
|
|
1467
|
-
FaceFrownIcon.displayName = 'FaceFrownIcon';
|
|
1468
|
-
var FaceFrownIcon$1 = FaceFrownIcon;
|
|
1469
|
-
|
|
1470
|
-
function SvgFaceNeutralIcon(props) {
|
|
1471
|
-
return jsxs("svg", {
|
|
1472
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1473
|
-
width: "1em",
|
|
1474
|
-
height: "1em",
|
|
1475
|
-
fill: "none",
|
|
1476
|
-
viewBox: "0 0 16 16",
|
|
1477
|
-
...props,
|
|
1478
|
-
children: [jsxs("g", {
|
|
1479
|
-
fill: "currentColor",
|
|
1480
|
-
fillRule: "evenodd",
|
|
1481
|
-
clipPath: "url(#FaceNeutralIcon_svg__a)",
|
|
1482
|
-
clipRule: "evenodd",
|
|
1483
|
-
children: [jsx("path", {
|
|
1484
|
-
d: "M8 2.083a5.917 5.917 0 1 0 0 11.834A5.917 5.917 0 0 0 8 2.084ZM.583 8a7.417 7.417 0 1 1 14.834 0A7.417 7.417 0 0 1 .583 8Z"
|
|
1485
|
-
}), jsx("path", {
|
|
1486
|
-
d: "M4.583 10a.75.75 0 0 1 .75-.75h5.334a.75.75 0 1 1 0 1.5H5.333a.75.75 0 0 1-.75-.75ZM5.25 6A.75.75 0 0 1 6 5.25h.007a.75.75 0 0 1 0 1.5H6A.75.75 0 0 1 5.25 6ZM9.25 6a.75.75 0 0 1 .75-.75h.007a.75.75 0 1 1 0 1.5H10A.75.75 0 0 1 9.25 6Z"
|
|
1487
|
-
})]
|
|
1488
|
-
}), jsx("defs", {
|
|
1489
|
-
children: jsx("clipPath", {
|
|
1490
|
-
children: jsx("path", {
|
|
1491
|
-
fill: "#fff",
|
|
1492
|
-
d: "M0 0h16v16H0z"
|
|
1493
|
-
})
|
|
1494
|
-
})
|
|
1495
|
-
})]
|
|
1496
|
-
});
|
|
1497
|
-
}
|
|
1498
|
-
const FaceNeutralIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1499
|
-
return jsx(Icon, {
|
|
1500
|
-
ref: forwardedRef,
|
|
1501
|
-
...props,
|
|
1502
|
-
component: SvgFaceNeutralIcon
|
|
1503
|
-
});
|
|
1504
|
-
});
|
|
1505
|
-
FaceNeutralIcon.displayName = 'FaceNeutralIcon';
|
|
1506
|
-
var FaceNeutralIcon$1 = FaceNeutralIcon;
|
|
1507
|
-
|
|
1508
|
-
function SvgFaceSmileIcon(props) {
|
|
1509
|
-
return jsxs("svg", {
|
|
1510
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1511
|
-
width: "1em",
|
|
1512
|
-
height: "1em",
|
|
1513
|
-
fill: "none",
|
|
1514
|
-
viewBox: "0 0 16 16",
|
|
1515
|
-
...props,
|
|
1516
|
-
children: [jsxs("g", {
|
|
1517
|
-
fill: "currentColor",
|
|
1518
|
-
clipPath: "url(#FaceSmileIcon_svg__a)",
|
|
1519
|
-
children: [jsx("path", {
|
|
1520
|
-
fillRule: "evenodd",
|
|
1521
|
-
d: "M8 2.083a5.917 5.917 0 1 0 0 11.834A5.917 5.917 0 0 0 8 2.084ZM.583 8a7.417 7.417 0 1 1 14.834 0A7.417 7.417 0 0 1 .583 8Z",
|
|
1522
|
-
clipRule: "evenodd"
|
|
1523
|
-
}), jsx("path", {
|
|
1524
|
-
d: "M4.883 8.733a.75.75 0 0 1 1.048.147l.002.003.021.026a3.216 3.216 0 0 0 .529.485c.375.273.89.523 1.517.523.627 0 1.142-.25 1.517-.523a3.215 3.215 0 0 0 .55-.511.75.75 0 0 1 1.2.9l.029-.042-.03.043-.001.002-.002.002-.005.007-.015.019a3.878 3.878 0 0 1-.217.247c-.144.15-.354.348-.627.546-.54.393-1.359.81-2.399.81s-1.858-.417-2.4-.81a4.716 4.716 0 0 1-.795-.734 2.643 2.643 0 0 1-.048-.059l-.015-.02-.005-.006-.002-.002v-.002h-.002a.75.75 0 0 1 .15-1.05Z"
|
|
1525
|
-
}), jsx("path", {
|
|
1526
|
-
fillRule: "evenodd",
|
|
1527
|
-
d: "M5.25 6A.75.75 0 0 1 6 5.25h.007a.75.75 0 0 1 0 1.5H6A.75.75 0 0 1 5.25 6ZM9.25 6a.75.75 0 0 1 .75-.75h.007a.75.75 0 1 1 0 1.5H10A.75.75 0 0 1 9.25 6Z",
|
|
1528
|
-
clipRule: "evenodd"
|
|
1529
|
-
})]
|
|
1530
|
-
}), jsx("defs", {
|
|
1531
|
-
children: jsx("clipPath", {
|
|
1532
|
-
children: jsx("path", {
|
|
1533
|
-
fill: "#fff",
|
|
1534
|
-
d: "M0 0h16v16H0z"
|
|
1535
|
-
})
|
|
1536
|
-
})
|
|
1537
|
-
})]
|
|
1538
|
-
});
|
|
1539
|
-
}
|
|
1540
|
-
const FaceSmileIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1541
|
-
return jsx(Icon, {
|
|
1542
|
-
ref: forwardedRef,
|
|
1543
|
-
...props,
|
|
1544
|
-
component: SvgFaceSmileIcon
|
|
1545
|
-
});
|
|
1546
|
-
});
|
|
1547
|
-
FaceSmileIcon.displayName = 'FaceSmileIcon';
|
|
1548
|
-
var FaceSmileIcon$1 = FaceSmileIcon;
|
|
1549
|
-
|
|
1550
1394
|
function SvgLoadingIcon(props) {
|
|
1551
1395
|
return jsx("svg", {
|
|
1552
1396
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1558,7 +1402,7 @@ function SvgLoadingIcon(props) {
|
|
|
1558
1402
|
children: jsx("path", {
|
|
1559
1403
|
fill: "currentColor",
|
|
1560
1404
|
fillRule: "evenodd",
|
|
1561
|
-
d: "M23.212 12a.
|
|
1405
|
+
d: "M23.212 12a.79.79 0 0 1-.789-.788 9.6 9.6 0 0 0-.757-3.751 9.66 9.66 0 0 0-5.129-5.129 9.6 9.6 0 0 0-3.749-.755.788.788 0 0 1 0-1.577c1.513 0 2.983.296 4.365.882a11.1 11.1 0 0 1 3.562 2.403 11.157 11.157 0 0 1 3.283 7.927.785.785 0 0 1-.786.788",
|
|
1562
1406
|
clipRule: "evenodd"
|
|
1563
1407
|
})
|
|
1564
1408
|
});
|
|
@@ -1573,32 +1417,6 @@ const LoadingIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
1573
1417
|
LoadingIcon.displayName = 'LoadingIcon';
|
|
1574
1418
|
var LoadingIcon$1 = LoadingIcon;
|
|
1575
1419
|
|
|
1576
|
-
function SvgMegaphoneIcon(props) {
|
|
1577
|
-
return jsx("svg", {
|
|
1578
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1579
|
-
width: "1em",
|
|
1580
|
-
height: "1em",
|
|
1581
|
-
fill: "none",
|
|
1582
|
-
viewBox: "0 0 18 18",
|
|
1583
|
-
...props,
|
|
1584
|
-
children: jsx("path", {
|
|
1585
|
-
fill: "currentColor",
|
|
1586
|
-
fillRule: "evenodd",
|
|
1587
|
-
d: "M16.25 2a.75.75 0 0 0-1.248-.56l-4.287 3.81H4A2.75 2.75 0 0 0 1.25 8v2A2.75 2.75 0 0 0 4 12.75h1.75V16a.75.75 0 0 0 1.5 0v-3.25h3.465l4.287 3.81A.75.75 0 0 0 16.25 16V2Zm-4.752 4.56 3.252-2.89v10.66l-3.252-2.89a.75.75 0 0 0-.498-.19H4c-.69 0-1.25-.56-1.25-1.25V8c0-.69.56-1.25 1.25-1.25h7a.75.75 0 0 0 .498-.19Z",
|
|
1588
|
-
clipRule: "evenodd"
|
|
1589
|
-
})
|
|
1590
|
-
});
|
|
1591
|
-
}
|
|
1592
|
-
const MegaphoneIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1593
|
-
return jsx(Icon, {
|
|
1594
|
-
ref: forwardedRef,
|
|
1595
|
-
...props,
|
|
1596
|
-
component: SvgMegaphoneIcon
|
|
1597
|
-
});
|
|
1598
|
-
});
|
|
1599
|
-
MegaphoneIcon.displayName = 'MegaphoneIcon';
|
|
1600
|
-
var MegaphoneIcon$1 = MegaphoneIcon;
|
|
1601
|
-
|
|
1602
1420
|
function SvgNewWindowIcon(props) {
|
|
1603
1421
|
return jsxs("svg", {
|
|
1604
1422
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1609,10 +1427,10 @@ function SvgNewWindowIcon(props) {
|
|
|
1609
1427
|
...props,
|
|
1610
1428
|
children: [jsx("path", {
|
|
1611
1429
|
fill: "currentColor",
|
|
1612
|
-
d: "M10 1h5v5h-1.5V3.56L8.53 8.53 7.47 7.47l4.97-4.
|
|
1430
|
+
d: "M10 1h5v5h-1.5V3.56L8.53 8.53 7.47 7.47l4.97-4.97H10z"
|
|
1613
1431
|
}), jsx("path", {
|
|
1614
1432
|
fill: "currentColor",
|
|
1615
|
-
d: "M1 2.75A.75.75 0 0 1 1.75 2H8v1.5H2.5v10h10V8H14v6.25a.75.75 0 0 1-.75.75H1.75a.75.75 0 0 1-.75-.
|
|
1433
|
+
d: "M1 2.75A.75.75 0 0 1 1.75 2H8v1.5H2.5v10h10V8H14v6.25a.75.75 0 0 1-.75.75H1.75a.75.75 0 0 1-.75-.75z"
|
|
1616
1434
|
})]
|
|
1617
1435
|
});
|
|
1618
1436
|
}
|
|
@@ -1636,11 +1454,11 @@ function SvgWarningIcon(props) {
|
|
|
1636
1454
|
...props,
|
|
1637
1455
|
children: [jsx("path", {
|
|
1638
1456
|
fill: "currentColor",
|
|
1639
|
-
d: "M7.25 10V6.5h1.
|
|
1457
|
+
d: "M7.25 10V6.5h1.5V10zM8 12.5A.75.75 0 1 0 8 11a.75.75 0 0 0 0 1.5"
|
|
1640
1458
|
}), jsx("path", {
|
|
1641
1459
|
fill: "currentColor",
|
|
1642
1460
|
fillRule: "evenodd",
|
|
1643
|
-
d: "M8 1a.75.75 0 0 1 .649.374l7.25 12.5A.75.75 0 0 1 15.25 15H.75a.75.75 0 0 1-.649-1.126l7.25-12.5A.75.75 0 0 1 8
|
|
1461
|
+
d: "M8 1a.75.75 0 0 1 .649.374l7.25 12.5A.75.75 0 0 1 15.25 15H.75a.75.75 0 0 1-.649-1.126l7.25-12.5A.75.75 0 0 1 8 1m0 2.245L2.052 13.5h11.896z",
|
|
1644
1462
|
clipRule: "evenodd"
|
|
1645
1463
|
})]
|
|
1646
1464
|
});
|
|
@@ -1655,402 +1473,169 @@ const WarningIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
1655
1473
|
WarningIcon.displayName = 'WarningIcon';
|
|
1656
1474
|
var WarningIcon$1 = WarningIcon;
|
|
1657
1475
|
|
|
1658
|
-
const {
|
|
1659
|
-
|
|
1660
|
-
} = Typography$1;
|
|
1661
|
-
function getTextEmotionStyles$1(theme, props) {
|
|
1662
|
-
return /*#__PURE__*/css({
|
|
1663
|
-
'&&': {
|
|
1664
|
-
display: 'block',
|
|
1665
|
-
fontSize: theme.typography.fontSizeSm,
|
|
1666
|
-
lineHeight: theme.typography.lineHeightSm,
|
|
1667
|
-
color: theme.colors.textSecondary,
|
|
1668
|
-
...(props.withoutMargins && {
|
|
1669
|
-
'&&': {
|
|
1670
|
-
marginTop: 0,
|
|
1671
|
-
marginBottom: 0
|
|
1672
|
-
}
|
|
1673
|
-
})
|
|
1674
|
-
}
|
|
1675
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getTextEmotionStyles;");
|
|
1676
|
-
}
|
|
1677
|
-
function Hint(userProps) {
|
|
1678
|
-
const {
|
|
1679
|
-
dangerouslySetAntdProps,
|
|
1680
|
-
bold,
|
|
1681
|
-
withoutMargins,
|
|
1682
|
-
color,
|
|
1683
|
-
...props
|
|
1684
|
-
} = userProps;
|
|
1685
|
-
const {
|
|
1686
|
-
theme
|
|
1687
|
-
} = useDesignSystemTheme();
|
|
1688
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
1689
|
-
children: jsx(AntDText$1, {
|
|
1690
|
-
...props,
|
|
1691
|
-
css: getTextEmotionStyles$1(theme, userProps),
|
|
1692
|
-
...dangerouslySetAntdProps
|
|
1693
|
-
})
|
|
1694
|
-
});
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
|
-
const getLinkStyles$1 = (theme, clsPrefix) => {
|
|
1698
|
-
const classTypography = `.${clsPrefix}-typography`;
|
|
1699
|
-
const styles = {
|
|
1700
|
-
[`&${classTypography}, &${classTypography}:focus`]: {
|
|
1701
|
-
color: theme.colors.actionTertiaryTextDefault
|
|
1702
|
-
},
|
|
1703
|
-
[`&${classTypography}:hover, &${classTypography}:hover .anticon`]: {
|
|
1704
|
-
color: theme.colors.actionTertiaryTextHover,
|
|
1705
|
-
textDecoration: 'underline'
|
|
1706
|
-
},
|
|
1707
|
-
[`&${classTypography}:active, &${classTypography}:active .anticon`]: {
|
|
1708
|
-
color: theme.colors.actionTertiaryTextPress,
|
|
1709
|
-
textDecoration: 'underline'
|
|
1710
|
-
},
|
|
1711
|
-
[`&${classTypography}:focus-visible`]: {
|
|
1712
|
-
textDecoration: 'underline'
|
|
1713
|
-
},
|
|
1714
|
-
'.anticon': {
|
|
1715
|
-
fontSize: 12,
|
|
1716
|
-
verticalAlign: 'baseline'
|
|
1717
|
-
}
|
|
1718
|
-
};
|
|
1719
|
-
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getLinkStyles;");
|
|
1476
|
+
const DefaultDesignSystemEventSuppressInteractionContextValue = {
|
|
1477
|
+
suppressAnalyticsStartInteraction: false
|
|
1720
1478
|
};
|
|
1721
|
-
const
|
|
1722
|
-
|
|
1723
|
-
paddingRight: 'calc(2px + 1em)',
|
|
1724
|
-
// 1em for icon
|
|
1725
|
-
position: 'relative'
|
|
1726
|
-
};
|
|
1727
|
-
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisNewTabLinkStyles;");
|
|
1479
|
+
const DesignSystemEventSuppressInteractionTrueContextValue = {
|
|
1480
|
+
suppressAnalyticsStartInteraction: true
|
|
1728
1481
|
};
|
|
1729
|
-
const
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1482
|
+
const DesignSystemEventSuppressInteractionProviderContext = /*#__PURE__*/React__default.createContext(DefaultDesignSystemEventSuppressInteractionContextValue);
|
|
1483
|
+
|
|
1484
|
+
/**
|
|
1485
|
+
* This gets the event suppress interaction provider, is used to suppress the start interaction for analytics events.
|
|
1486
|
+
*
|
|
1487
|
+
* @returns DesignSystemEventSuppressInteractionContextType
|
|
1488
|
+
*/
|
|
1489
|
+
const useDesignSystemEventSuppressInteractionContext = () => {
|
|
1490
|
+
return useContext(DesignSystemEventSuppressInteractionProviderContext);
|
|
1735
1491
|
};
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1492
|
+
|
|
1493
|
+
let DesignSystemEventProviderComponentTypes = /*#__PURE__*/function (DesignSystemEventProviderComponentTypes) {
|
|
1494
|
+
DesignSystemEventProviderComponentTypes["Alert"] = "alert";
|
|
1495
|
+
DesignSystemEventProviderComponentTypes["Banner"] = "banner";
|
|
1496
|
+
DesignSystemEventProviderComponentTypes["Button"] = "button";
|
|
1497
|
+
DesignSystemEventProviderComponentTypes["Checkbox"] = "checkbox";
|
|
1498
|
+
DesignSystemEventProviderComponentTypes["DialogCombobox"] = "dialog_combobox";
|
|
1499
|
+
DesignSystemEventProviderComponentTypes["DropdownMenuCheckboxItem"] = "dropdown_menu_checkbox_item";
|
|
1500
|
+
DesignSystemEventProviderComponentTypes["DropdownMenuItem"] = "dropdown_menu_item";
|
|
1501
|
+
DesignSystemEventProviderComponentTypes["DropdownMenuRadioGroup"] = "dropdown_menu_radio_group";
|
|
1502
|
+
DesignSystemEventProviderComponentTypes["Input"] = "input";
|
|
1503
|
+
DesignSystemEventProviderComponentTypes["LegacySelect"] = "legacy_select";
|
|
1504
|
+
DesignSystemEventProviderComponentTypes["Modal"] = "modal";
|
|
1505
|
+
DesignSystemEventProviderComponentTypes["Notification"] = "notification";
|
|
1506
|
+
DesignSystemEventProviderComponentTypes["Pagination"] = "pagination";
|
|
1507
|
+
DesignSystemEventProviderComponentTypes["PillControl"] = "pill_control";
|
|
1508
|
+
DesignSystemEventProviderComponentTypes["RadioGroup"] = "radio_group";
|
|
1509
|
+
DesignSystemEventProviderComponentTypes["SegmentedControlGroup"] = "segmented_control_group";
|
|
1510
|
+
DesignSystemEventProviderComponentTypes["SimpleSelect"] = "simple_select";
|
|
1511
|
+
DesignSystemEventProviderComponentTypes["Switch"] = "switch";
|
|
1512
|
+
DesignSystemEventProviderComponentTypes["TabsV2"] = "tabs";
|
|
1513
|
+
DesignSystemEventProviderComponentTypes["Tag"] = "tag";
|
|
1514
|
+
DesignSystemEventProviderComponentTypes["TextArea"] = "text_area";
|
|
1515
|
+
DesignSystemEventProviderComponentTypes["ToggleButton"] = "toggle_button";
|
|
1516
|
+
DesignSystemEventProviderComponentTypes["TypographyLink"] = "typography_link";
|
|
1517
|
+
return DesignSystemEventProviderComponentTypes;
|
|
1518
|
+
}({});
|
|
1519
|
+
let DesignSystemEventProviderAnalyticsEventTypes = /*#__PURE__*/function (DesignSystemEventProviderAnalyticsEventTypes) {
|
|
1520
|
+
DesignSystemEventProviderAnalyticsEventTypes["OnClick"] = "onClick";
|
|
1521
|
+
DesignSystemEventProviderAnalyticsEventTypes["OnView"] = "onView";
|
|
1522
|
+
DesignSystemEventProviderAnalyticsEventTypes["OnValueChange"] = "onValueChange";
|
|
1523
|
+
return DesignSystemEventProviderAnalyticsEventTypes;
|
|
1524
|
+
}({});
|
|
1525
|
+
const shouldTriggerCallback = (eventType, analyticsEvents) => {
|
|
1526
|
+
return analyticsEvents.includes(eventType);
|
|
1749
1527
|
};
|
|
1750
|
-
const
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
} = _ref;
|
|
1755
|
-
const {
|
|
1756
|
-
children,
|
|
1757
|
-
openInNewTab,
|
|
1758
|
-
...restProps
|
|
1759
|
-
} = props;
|
|
1760
|
-
const {
|
|
1761
|
-
theme,
|
|
1762
|
-
classNamePrefix
|
|
1763
|
-
} = useDesignSystemTheme();
|
|
1764
|
-
const newTabProps = {
|
|
1765
|
-
rel: 'noopener noreferrer',
|
|
1766
|
-
target: '_blank'
|
|
1767
|
-
};
|
|
1768
|
-
const linkProps = openInNewTab ? {
|
|
1769
|
-
...restProps,
|
|
1770
|
-
...newTabProps
|
|
1771
|
-
} : {
|
|
1772
|
-
...restProps
|
|
1773
|
-
};
|
|
1774
|
-
const linkStyles = props.ellipsis && openInNewTab ? [getLinkStyles$1(theme, classNamePrefix), getEllipsisNewTabLinkStyles()] : getLinkStyles$1(theme, classNamePrefix);
|
|
1775
|
-
const iconStyles = props.ellipsis ? [getIconStyles(theme), getEllipsisIconStyles()] : getIconStyles(theme);
|
|
1776
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
1777
|
-
children: jsxs(Typography$1.Link, {
|
|
1778
|
-
"aria-disabled": linkProps.disabled,
|
|
1779
|
-
css: linkStyles,
|
|
1780
|
-
ref: ref,
|
|
1781
|
-
...linkProps,
|
|
1782
|
-
...dangerouslySetAntdProps,
|
|
1783
|
-
children: [children, openInNewTab ? jsx(NewWindowIcon$1, {
|
|
1784
|
-
css: iconStyles,
|
|
1785
|
-
...newTabProps
|
|
1786
|
-
}) : null]
|
|
1787
|
-
})
|
|
1788
|
-
});
|
|
1789
|
-
});
|
|
1528
|
+
const DefaultEmptyCallbacks = {
|
|
1529
|
+
callback: () => {}
|
|
1530
|
+
};
|
|
1531
|
+
const DesignSystemEventProviderContext = /*#__PURE__*/React__default.createContext(DefaultEmptyCallbacks);
|
|
1790
1532
|
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
1801
|
-
},
|
|
1802
|
-
'& .anticon': {
|
|
1803
|
-
verticalAlign: 'text-bottom'
|
|
1804
|
-
}
|
|
1805
|
-
}, props.disabled && {
|
|
1806
|
-
'&&': {
|
|
1807
|
-
color: theme.colors.actionDisabledText
|
|
1808
|
-
}
|
|
1809
|
-
}, props.withoutMargins && {
|
|
1810
|
-
'&&': {
|
|
1811
|
-
marginTop: 0,
|
|
1812
|
-
marginBottom: 0
|
|
1813
|
-
}
|
|
1814
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getParagraphEmotionStyles;");
|
|
1815
|
-
}
|
|
1816
|
-
function Paragraph(userProps) {
|
|
1817
|
-
const {
|
|
1818
|
-
dangerouslySetAntdProps,
|
|
1819
|
-
withoutMargins,
|
|
1820
|
-
color,
|
|
1821
|
-
...props
|
|
1822
|
-
} = userProps;
|
|
1823
|
-
const {
|
|
1824
|
-
theme
|
|
1825
|
-
} = useDesignSystemTheme();
|
|
1826
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
1827
|
-
children: jsx(AntDParagraph, {
|
|
1828
|
-
...props,
|
|
1829
|
-
className: props.className,
|
|
1830
|
-
css: getParagraphEmotionStyles(theme, userProps),
|
|
1831
|
-
...dangerouslySetAntdProps
|
|
1832
|
-
})
|
|
1833
|
-
});
|
|
1834
|
-
}
|
|
1533
|
+
/**
|
|
1534
|
+
* This gets the event provider, which is used to pass callbacks to the design system for events such as onClick, onView, and onValueChange.
|
|
1535
|
+
* If the value is undefined, then the expected behavior is to not emit any events.
|
|
1536
|
+
*
|
|
1537
|
+
* @returns DesignSystemEventProviderContextType
|
|
1538
|
+
*/
|
|
1539
|
+
const useDesignSystemEventProviderContext = () => {
|
|
1540
|
+
return useContext(DesignSystemEventProviderContext);
|
|
1541
|
+
};
|
|
1835
1542
|
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
lineHeight: theme.typography.lineHeightBase,
|
|
1867
|
-
background: theme.colors.typographyCodeBg,
|
|
1868
|
-
fontFamily: 'monospace',
|
|
1869
|
-
borderRadius: theme.borders.borderRadiusMd,
|
|
1870
|
-
padding: '2px 4px',
|
|
1871
|
-
border: 'unset',
|
|
1872
|
-
margin: 0
|
|
1873
|
-
}
|
|
1874
|
-
}, props.size && {
|
|
1875
|
-
'&&': (() => {
|
|
1876
|
-
switch (props.size) {
|
|
1877
|
-
case 'xxl':
|
|
1878
|
-
return {
|
|
1879
|
-
fontSize: theme.typography.fontSizeXxl,
|
|
1880
|
-
lineHeight: theme.typography.lineHeightXxl,
|
|
1881
|
-
'& .anticon': {
|
|
1882
|
-
lineHeight: theme.typography.lineHeightXxl,
|
|
1883
|
-
verticalAlign: 'middle'
|
|
1884
|
-
}
|
|
1885
|
-
};
|
|
1886
|
-
case 'xl':
|
|
1887
|
-
return {
|
|
1888
|
-
fontSize: theme.typography.fontSizeXl,
|
|
1889
|
-
lineHeight: theme.typography.lineHeightXl,
|
|
1890
|
-
'& .anticon': {
|
|
1891
|
-
lineHeight: theme.typography.lineHeightXl,
|
|
1892
|
-
verticalAlign: 'middle'
|
|
1893
|
-
}
|
|
1894
|
-
};
|
|
1895
|
-
case 'lg':
|
|
1896
|
-
return {
|
|
1897
|
-
fontSize: theme.typography.fontSizeLg,
|
|
1898
|
-
lineHeight: theme.typography.lineHeightLg,
|
|
1899
|
-
'& .anticon': {
|
|
1900
|
-
lineHeight: theme.typography.lineHeightLg,
|
|
1901
|
-
verticalAlign: 'middle'
|
|
1902
|
-
}
|
|
1903
|
-
};
|
|
1904
|
-
case 'sm':
|
|
1905
|
-
return {
|
|
1906
|
-
fontSize: theme.typography.fontSizeSm,
|
|
1907
|
-
lineHeight: theme.typography.lineHeightSm,
|
|
1908
|
-
'& .anticon': {
|
|
1909
|
-
verticalAlign: '-0.219em'
|
|
1910
|
-
}
|
|
1911
|
-
};
|
|
1912
|
-
default:
|
|
1913
|
-
return {};
|
|
1914
|
-
}
|
|
1915
|
-
})()
|
|
1916
|
-
}, props.withoutMargins && {
|
|
1917
|
-
'&&': {
|
|
1918
|
-
marginTop: 0,
|
|
1919
|
-
marginBottom: 0
|
|
1543
|
+
/**
|
|
1544
|
+
* NOTE: This is not suggested for direct usage from engineers, and should emit your own events.
|
|
1545
|
+
* See https://databricks.atlassian.net/wiki/spaces/UN/pages/2533556277/Usage+Logging+in+UI#Send-usage-logging-from-UI for more details.
|
|
1546
|
+
*
|
|
1547
|
+
* This gets the event provider component event type callbacks.
|
|
1548
|
+
* If context & componentId are not undefined, then it will check if the event is in analyticsEvents or the default analyticsEvents for that component.
|
|
1549
|
+
* If the context or componentId are undefined, then the expected behavior is to not emit any events.
|
|
1550
|
+
*
|
|
1551
|
+
* @returns Object of event callbacks
|
|
1552
|
+
*/
|
|
1553
|
+
const useDesignSystemEventComponentCallbacks = _ref => {
|
|
1554
|
+
let {
|
|
1555
|
+
componentType,
|
|
1556
|
+
componentId,
|
|
1557
|
+
analyticsEvents,
|
|
1558
|
+
valueHasNoPii,
|
|
1559
|
+
shouldStartInteraction
|
|
1560
|
+
} = _ref;
|
|
1561
|
+
const context = useDesignSystemEventProviderContext();
|
|
1562
|
+
const suppressInteractionContext = useDesignSystemEventSuppressInteractionContext();
|
|
1563
|
+
// If shouldStartInteraction is explicitly true or has no suppression when shouldStartInteraction
|
|
1564
|
+
// is not defined for an onClick event, then it will start the interaction
|
|
1565
|
+
const shouldStartInteractionComplete = useMemo(() => shouldStartInteraction || shouldStartInteraction === undefined && !suppressInteractionContext.suppressAnalyticsStartInteraction && shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnClick, analyticsEvents), [suppressInteractionContext, shouldStartInteraction, analyticsEvents]);
|
|
1566
|
+
const callbacks = useMemo(() => {
|
|
1567
|
+
if (context === DefaultEmptyCallbacks || componentId === undefined) {
|
|
1568
|
+
return {
|
|
1569
|
+
onClick: () => {},
|
|
1570
|
+
onValueChange: () => {},
|
|
1571
|
+
onView: () => {}
|
|
1572
|
+
};
|
|
1920
1573
|
}
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
} = userProps;
|
|
1933
|
-
const {
|
|
1934
|
-
theme
|
|
1935
|
-
} = useDesignSystemTheme();
|
|
1936
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
1937
|
-
children: jsx(AntDText, {
|
|
1938
|
-
...props,
|
|
1939
|
-
className: props.className,
|
|
1940
|
-
css: getTextEmotionStyles(theme, userProps),
|
|
1941
|
-
...dangerouslySetAntdProps
|
|
1942
|
-
})
|
|
1943
|
-
});
|
|
1944
|
-
}
|
|
1945
|
-
|
|
1946
|
-
const {
|
|
1947
|
-
Title: AntDTitle
|
|
1948
|
-
} = Typography$1;
|
|
1949
|
-
function getLevelStyles(theme, props) {
|
|
1950
|
-
switch (props.level) {
|
|
1951
|
-
case 1:
|
|
1952
|
-
return /*#__PURE__*/css({
|
|
1953
|
-
'&&': {
|
|
1954
|
-
fontSize: theme.typography.fontSizeXxl,
|
|
1955
|
-
lineHeight: theme.typography.lineHeightXxl,
|
|
1956
|
-
fontWeight: theme.typography.typographyBoldFontWeight
|
|
1957
|
-
},
|
|
1958
|
-
'& > .anticon': {
|
|
1959
|
-
lineHeight: theme.typography.lineHeightXxl
|
|
1960
|
-
}
|
|
1961
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
1962
|
-
case 2:
|
|
1963
|
-
return /*#__PURE__*/css({
|
|
1964
|
-
'&&': {
|
|
1965
|
-
fontSize: theme.typography.fontSizeXl,
|
|
1966
|
-
lineHeight: theme.typography.lineHeightXl,
|
|
1967
|
-
fontWeight: theme.typography.typographyBoldFontWeight
|
|
1968
|
-
},
|
|
1969
|
-
'& > .anticon': {
|
|
1970
|
-
lineHeight: theme.typography.lineHeightXl
|
|
1574
|
+
return {
|
|
1575
|
+
onClick: event => {
|
|
1576
|
+
if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnClick, analyticsEvents)) {
|
|
1577
|
+
context.callback({
|
|
1578
|
+
eventType: DesignSystemEventProviderAnalyticsEventTypes.OnClick,
|
|
1579
|
+
componentType,
|
|
1580
|
+
componentId,
|
|
1581
|
+
value: undefined,
|
|
1582
|
+
shouldStartInteraction: shouldStartInteractionComplete,
|
|
1583
|
+
event
|
|
1584
|
+
});
|
|
1971
1585
|
}
|
|
1972
|
-
},
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1586
|
+
},
|
|
1587
|
+
onValueChange: value => {
|
|
1588
|
+
if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnValueChange, analyticsEvents)) {
|
|
1589
|
+
context.callback({
|
|
1590
|
+
eventType: DesignSystemEventProviderAnalyticsEventTypes.OnValueChange,
|
|
1591
|
+
componentType,
|
|
1592
|
+
componentId,
|
|
1593
|
+
value: valueHasNoPii ? value : undefined,
|
|
1594
|
+
shouldStartInteraction: shouldStartInteractionComplete
|
|
1595
|
+
});
|
|
1982
1596
|
}
|
|
1983
|
-
},
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
lineHeight: theme.typography.lineHeightMd
|
|
1597
|
+
},
|
|
1598
|
+
onView: () => {
|
|
1599
|
+
if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnView, analyticsEvents)) {
|
|
1600
|
+
context.callback({
|
|
1601
|
+
eventType: DesignSystemEventProviderAnalyticsEventTypes.OnView,
|
|
1602
|
+
componentType,
|
|
1603
|
+
componentId,
|
|
1604
|
+
value: undefined,
|
|
1605
|
+
shouldStartInteraction: shouldStartInteractionComplete
|
|
1606
|
+
});
|
|
1994
1607
|
}
|
|
1995
|
-
}
|
|
1996
|
-
|
|
1997
|
-
}
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
'&&': {
|
|
2001
|
-
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
2002
|
-
},
|
|
2003
|
-
'& > .anticon': {
|
|
2004
|
-
verticalAlign: 'middle'
|
|
2005
|
-
}
|
|
2006
|
-
}, props.withoutMargins && {
|
|
2007
|
-
'&&': {
|
|
2008
|
-
marginTop: '0 !important',
|
|
2009
|
-
// override general styling
|
|
2010
|
-
marginBottom: '0 !important' // override general styling
|
|
2011
|
-
}
|
|
2012
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getTitleEmotionStyles;");
|
|
2013
|
-
}
|
|
2014
|
-
function Title(userProps) {
|
|
2015
|
-
const {
|
|
2016
|
-
dangerouslySetAntdProps,
|
|
2017
|
-
withoutMargins,
|
|
2018
|
-
color,
|
|
2019
|
-
...props
|
|
2020
|
-
} = userProps;
|
|
2021
|
-
const {
|
|
2022
|
-
theme
|
|
2023
|
-
} = useDesignSystemTheme();
|
|
2024
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
2025
|
-
children: jsx(AntDTitle, {
|
|
2026
|
-
...props,
|
|
2027
|
-
className: props.className,
|
|
2028
|
-
css: getTitleEmotionStyles(theme, userProps),
|
|
2029
|
-
...dangerouslySetAntdProps
|
|
2030
|
-
})
|
|
2031
|
-
});
|
|
2032
|
-
}
|
|
1608
|
+
}
|
|
1609
|
+
};
|
|
1610
|
+
}, [context, componentId, analyticsEvents, componentType, valueHasNoPii, shouldStartInteractionComplete]);
|
|
1611
|
+
return callbacks;
|
|
1612
|
+
};
|
|
2033
1613
|
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
})
|
|
1614
|
+
/**
|
|
1615
|
+
* NOTE: This is not suggested for direct usage from engineers, and should use RecordEventContext instead.
|
|
1616
|
+
* See https://databricks.atlassian.net/wiki/spaces/UN/pages/2533556277/Usage+Logging+in+UI#Send-usage-logging-from-UI for more details.
|
|
1617
|
+
*
|
|
1618
|
+
* This is the Design System Event Context Provider, and is only used to pass callbacks to the design system for events such as onClick, onView, and onValueChange.
|
|
1619
|
+
*
|
|
1620
|
+
* @param children Children react elements
|
|
1621
|
+
* @param callback The event callback function
|
|
1622
|
+
* @returns Design System Event Context Provider with the children inside
|
|
1623
|
+
*/
|
|
1624
|
+
function DesignSystemEventProvider(_ref2) {
|
|
1625
|
+
let {
|
|
1626
|
+
children,
|
|
1627
|
+
callback
|
|
1628
|
+
} = _ref2;
|
|
1629
|
+
const contextValue = useMemo(() => {
|
|
1630
|
+
return {
|
|
1631
|
+
callback
|
|
1632
|
+
};
|
|
1633
|
+
}, [callback]);
|
|
1634
|
+
return jsx(DesignSystemEventProviderContext.Provider, {
|
|
1635
|
+
value: contextValue,
|
|
1636
|
+
children: children
|
|
1637
|
+
});
|
|
1638
|
+
}
|
|
2054
1639
|
|
|
2055
1640
|
function getDefaultStyles(theme) {
|
|
2056
1641
|
let loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
@@ -2096,7 +1681,7 @@ function getPrimaryStyles(theme) {
|
|
|
2096
1681
|
}
|
|
2097
1682
|
};
|
|
2098
1683
|
}
|
|
2099
|
-
function getLinkStyles(theme) {
|
|
1684
|
+
function getLinkStyles$1(theme) {
|
|
2100
1685
|
const defaultStyles = {
|
|
2101
1686
|
backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
|
|
2102
1687
|
borderColor: theme.colors.actionTertiaryBackgroundDefault,
|
|
@@ -2166,26 +1751,49 @@ function getSecondaryDangerStyles(theme) {
|
|
|
2166
1751
|
}
|
|
2167
1752
|
};
|
|
2168
1753
|
}
|
|
2169
|
-
function
|
|
1754
|
+
function getDisabledDefaultStyles(theme) {
|
|
2170
1755
|
const defaultStyles = {
|
|
2171
|
-
backgroundColor:
|
|
2172
|
-
borderColor:
|
|
1756
|
+
backgroundColor: 'transparent',
|
|
1757
|
+
borderColor: theme.colors.actionDisabledBorder,
|
|
2173
1758
|
color: theme.colors.actionDisabledText
|
|
2174
1759
|
};
|
|
2175
1760
|
return {
|
|
2176
1761
|
...defaultStyles,
|
|
2177
1762
|
'&:hover': {
|
|
2178
|
-
backgroundColor:
|
|
2179
|
-
borderColor:
|
|
1763
|
+
backgroundColor: 'transparent',
|
|
1764
|
+
borderColor: theme.colors.actionDisabledBorder,
|
|
2180
1765
|
color: theme.colors.actionDisabledText
|
|
2181
1766
|
},
|
|
2182
1767
|
'&:active': {
|
|
2183
|
-
backgroundColor:
|
|
2184
|
-
borderColor:
|
|
1768
|
+
backgroundColor: 'transparent',
|
|
1769
|
+
borderColor: theme.colors.actionDisabledBorder,
|
|
2185
1770
|
color: theme.colors.actionDisabledText
|
|
2186
1771
|
}
|
|
2187
1772
|
};
|
|
2188
1773
|
}
|
|
1774
|
+
function getDisabledPrimaryStyles(theme) {
|
|
1775
|
+
const defaultStyles = {
|
|
1776
|
+
backgroundColor: theme.colors.actionDisabledBorder,
|
|
1777
|
+
borderColor: 'transparent',
|
|
1778
|
+
color: theme.colors.actionPrimaryTextDefault
|
|
1779
|
+
};
|
|
1780
|
+
return {
|
|
1781
|
+
...defaultStyles,
|
|
1782
|
+
'&:hover': {
|
|
1783
|
+
backgroundColor: theme.colors.actionDisabledBorder,
|
|
1784
|
+
borderColor: 'transparent',
|
|
1785
|
+
color: theme.colors.actionPrimaryTextDefault
|
|
1786
|
+
},
|
|
1787
|
+
'&:active': {
|
|
1788
|
+
backgroundColor: theme.colors.actionDisabledBorder,
|
|
1789
|
+
borderColor: 'transparent',
|
|
1790
|
+
color: theme.colors.actionPrimaryTextDefault
|
|
1791
|
+
}
|
|
1792
|
+
};
|
|
1793
|
+
}
|
|
1794
|
+
function getDisabledErrorStyles(theme) {
|
|
1795
|
+
return getDisabledPrimaryStyles(theme);
|
|
1796
|
+
}
|
|
2189
1797
|
function getDisabledTertiaryStyles(theme) {
|
|
2190
1798
|
const defaultStyles = {
|
|
2191
1799
|
backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
|
|
@@ -2206,108 +1814,25 @@ function getDisabledTertiaryStyles(theme) {
|
|
|
2206
1814
|
}
|
|
2207
1815
|
};
|
|
2208
1816
|
}
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
return
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
const DefaultEmptyCallbacks = {
|
|
2227
|
-
callback: () => {}
|
|
2228
|
-
};
|
|
2229
|
-
const DesignSystemEventProviderContext = /*#__PURE__*/React__default.createContext(DefaultEmptyCallbacks);
|
|
2230
|
-
|
|
2231
|
-
/**
|
|
2232
|
-
* This gets the event provider, which is used to pass callbacks to the design system for events such as onClick, onView, and onValueChange.
|
|
2233
|
-
* If the value is undefined, then the expected behavior is to not emit any events.
|
|
2234
|
-
*
|
|
2235
|
-
* @returns DesignSystemEventProviderContextType
|
|
2236
|
-
*/
|
|
2237
|
-
const useDesignSystemEventProviderContext = () => {
|
|
2238
|
-
return useContext(DesignSystemEventProviderContext);
|
|
2239
|
-
};
|
|
2240
|
-
|
|
2241
|
-
/**
|
|
2242
|
-
* NOTE: This is not suggested for direct usage from engineers, and should emit your own events.
|
|
2243
|
-
* See https://databricks.atlassian.net/wiki/spaces/UN/pages/2533556277/Usage+Logging+in+UI#Send-usage-logging-from-UI for more details.
|
|
2244
|
-
*
|
|
2245
|
-
* This gets the event provider component event type callbacks.
|
|
2246
|
-
* If context & componentId are not undefined, then it will check if the event is in analyticsEvents or the default analyticsEvents for that component.
|
|
2247
|
-
* If the context or componentId are undefined, then the expected behavior is to not emit any events.
|
|
2248
|
-
*
|
|
2249
|
-
* @returns Object of event callbacks
|
|
2250
|
-
*/
|
|
2251
|
-
const useDesignSystemEventComponentCallbacks = _ref => {
|
|
2252
|
-
let {
|
|
2253
|
-
componentType,
|
|
2254
|
-
componentId,
|
|
2255
|
-
analyticsEvents
|
|
2256
|
-
} = _ref;
|
|
2257
|
-
const context = useDesignSystemEventProviderContext();
|
|
2258
|
-
const callbacks = useMemo(() => {
|
|
2259
|
-
if (context === DefaultEmptyCallbacks || componentId === undefined) {
|
|
2260
|
-
return {
|
|
2261
|
-
onClick: () => {},
|
|
2262
|
-
onValueChange: () => {},
|
|
2263
|
-
onView: () => {}
|
|
2264
|
-
};
|
|
1817
|
+
function getDisabledSplitButtonStyles(theme) {
|
|
1818
|
+
const defaultStyles = {
|
|
1819
|
+
backgroundColor: theme.colors.actionDisabledBorder,
|
|
1820
|
+
borderColor: theme.colors.actionDisabledBorder,
|
|
1821
|
+
color: theme.colors.actionPrimaryTextDefault
|
|
1822
|
+
};
|
|
1823
|
+
return {
|
|
1824
|
+
...defaultStyles,
|
|
1825
|
+
'&:hover': {
|
|
1826
|
+
backgroundColor: theme.colors.actionDisabledBorder,
|
|
1827
|
+
borderColor: theme.colors.actionDisabledBorder,
|
|
1828
|
+
color: theme.colors.actionPrimaryTextDefault
|
|
1829
|
+
},
|
|
1830
|
+
'&:active': {
|
|
1831
|
+
backgroundColor: theme.colors.actionDisabledBorder,
|
|
1832
|
+
borderColor: theme.colors.actionDisabledBorder,
|
|
1833
|
+
color: theme.colors.actionPrimaryTextDefault
|
|
2265
1834
|
}
|
|
2266
|
-
|
|
2267
|
-
onClick: () => {
|
|
2268
|
-
if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnClick, analyticsEvents)) {
|
|
2269
|
-
context.callback(DesignSystemEventProviderAnalyticsEventTypes.OnClick, componentType, componentId);
|
|
2270
|
-
}
|
|
2271
|
-
},
|
|
2272
|
-
onValueChange: () => {
|
|
2273
|
-
if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnValueChange, analyticsEvents)) {
|
|
2274
|
-
context.callback(DesignSystemEventProviderAnalyticsEventTypes.OnValueChange, componentType, componentId);
|
|
2275
|
-
}
|
|
2276
|
-
},
|
|
2277
|
-
onView: () => {
|
|
2278
|
-
if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnView, analyticsEvents)) {
|
|
2279
|
-
context.callback(DesignSystemEventProviderAnalyticsEventTypes.OnView, componentType, componentId);
|
|
2280
|
-
}
|
|
2281
|
-
}
|
|
2282
|
-
};
|
|
2283
|
-
}, [context, componentType, componentId, analyticsEvents]);
|
|
2284
|
-
return callbacks;
|
|
2285
|
-
};
|
|
2286
|
-
|
|
2287
|
-
/**
|
|
2288
|
-
* NOTE: This is not suggested for direct usage from engineers, and should use RecordEventContext instead.
|
|
2289
|
-
* See https://databricks.atlassian.net/wiki/spaces/UN/pages/2533556277/Usage+Logging+in+UI#Send-usage-logging-from-UI for more details.
|
|
2290
|
-
*
|
|
2291
|
-
* This is the Design System Event Context Provider, and is only used to pass callbacks to the design system for events such as onClick, onView, and onValueChange.
|
|
2292
|
-
*
|
|
2293
|
-
* @param children Children react elements
|
|
2294
|
-
* @param callback The event callback function
|
|
2295
|
-
* @returns Design System Event Context Provider with the children inside
|
|
2296
|
-
*/
|
|
2297
|
-
function DesignSystemEventProvider(_ref2) {
|
|
2298
|
-
let {
|
|
2299
|
-
children,
|
|
2300
|
-
callback
|
|
2301
|
-
} = _ref2;
|
|
2302
|
-
const contextValue = useMemo(() => {
|
|
2303
|
-
return {
|
|
2304
|
-
callback
|
|
2305
|
-
};
|
|
2306
|
-
}, [callback]);
|
|
2307
|
-
return jsx(DesignSystemEventProviderContext.Provider, {
|
|
2308
|
-
value: contextValue,
|
|
2309
|
-
children: children
|
|
2310
|
-
});
|
|
1835
|
+
};
|
|
2311
1836
|
}
|
|
2312
1837
|
|
|
2313
1838
|
// Use Symbol to correctly handled null/undefined as stable values
|
|
@@ -2443,30 +1968,6 @@ const Spinner = _ref => {
|
|
|
2443
1968
|
);
|
|
2444
1969
|
};
|
|
2445
1970
|
|
|
2446
|
-
/**
|
|
2447
|
-
* Provides access to http://go/safex flags from the frontend. Note that this is a temporary
|
|
2448
|
-
* workaround until direct `safex` imports are available.
|
|
2449
|
-
* @param flag The name of the flag to check
|
|
2450
|
-
* @param defaultValue The default value to return if the flag is not set
|
|
2451
|
-
* @returns
|
|
2452
|
-
*/
|
|
2453
|
-
const safex = (flag, defaultValue) => {
|
|
2454
|
-
// Catching errors here, because we don't have type-safety to ensure
|
|
2455
|
-
// that `__debug__safex`'s API hasn't changed.
|
|
2456
|
-
try {
|
|
2457
|
-
const globalSafex = window.__debug__safex;
|
|
2458
|
-
return globalSafex ? globalSafex(flag, defaultValue) : defaultValue;
|
|
2459
|
-
} catch (e) {
|
|
2460
|
-
return defaultValue;
|
|
2461
|
-
}
|
|
2462
|
-
};
|
|
2463
|
-
|
|
2464
|
-
function addDebugOutlineIfEnabled() {
|
|
2465
|
-
return safex('databricks.fe.designsystem.showDebugOutline', false) ? {
|
|
2466
|
-
'data-dubois-show-outline': true
|
|
2467
|
-
} : {};
|
|
2468
|
-
}
|
|
2469
|
-
|
|
2470
1971
|
function getEndIconClsName(theme) {
|
|
2471
1972
|
return `${theme.general.iconfontCssPrefix}-btn-end-icon`;
|
|
2472
1973
|
}
|
|
@@ -2481,7 +1982,6 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2481
1982
|
enableAnimation,
|
|
2482
1983
|
size,
|
|
2483
1984
|
type,
|
|
2484
|
-
isFlex,
|
|
2485
1985
|
useFocusPseudoClass,
|
|
2486
1986
|
forceIconStyles,
|
|
2487
1987
|
danger
|
|
@@ -2508,30 +2008,12 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2508
2008
|
};
|
|
2509
2009
|
const iconCss = {
|
|
2510
2010
|
fontSize: theme.general.iconFontSize,
|
|
2511
|
-
...(!isFlex && {
|
|
2512
|
-
// verticalAlign used by AntD to move icon and label to center
|
|
2513
|
-
// TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
|
|
2514
|
-
// behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
|
|
2515
|
-
verticalAlign: -4,
|
|
2516
|
-
...(onlyIcon && {
|
|
2517
|
-
verticalAlign: -3
|
|
2518
|
-
}),
|
|
2519
|
-
// verticalAlign used by AntD to move icon and label to center
|
|
2520
|
-
// TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
|
|
2521
|
-
// behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
|
|
2522
|
-
// Need to make sure not to apply this to regular buttons as it will offset the icons
|
|
2523
|
-
...(!onlyIcon && {
|
|
2524
|
-
verticalAlign: -3
|
|
2525
|
-
})
|
|
2526
|
-
}),
|
|
2527
2011
|
lineHeight: 0,
|
|
2528
2012
|
...(size === 'small' && {
|
|
2529
2013
|
lineHeight: theme.typography.lineHeightSm,
|
|
2014
|
+
height: 16,
|
|
2530
2015
|
...((onlyIcon || forceIconStyles) && {
|
|
2531
|
-
fontSize: 16
|
|
2532
|
-
...(isFlex && {
|
|
2533
|
-
height: 16
|
|
2534
|
-
})
|
|
2016
|
+
fontSize: 16
|
|
2535
2017
|
})
|
|
2536
2018
|
})
|
|
2537
2019
|
};
|
|
@@ -2543,12 +2025,10 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2543
2025
|
lineHeight: theme.typography.lineHeightBase,
|
|
2544
2026
|
boxShadow: 'none',
|
|
2545
2027
|
height: theme.general.heightSm,
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
verticalAlign: 'middle'
|
|
2551
|
-
}),
|
|
2028
|
+
display: 'inline-flex',
|
|
2029
|
+
alignItems: 'center',
|
|
2030
|
+
justifyContent: 'center',
|
|
2031
|
+
verticalAlign: 'middle',
|
|
2552
2032
|
...(!onlyIcon && !forceIconStyles && {
|
|
2553
2033
|
'&&': {
|
|
2554
2034
|
padding: '4px 12px',
|
|
@@ -2581,7 +2061,7 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2581
2061
|
...getPrimaryStyles(theme)
|
|
2582
2062
|
},
|
|
2583
2063
|
[`&${classLink}`]: {
|
|
2584
|
-
...getLinkStyles(theme),
|
|
2064
|
+
...getLinkStyles$1(theme),
|
|
2585
2065
|
...(type === 'link' && {
|
|
2586
2066
|
padding: 'unset',
|
|
2587
2067
|
height: 'auto',
|
|
@@ -2598,8 +2078,19 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2598
2078
|
[`&${classDangerous}`]: {
|
|
2599
2079
|
...getSecondaryDangerStyles(theme)
|
|
2600
2080
|
},
|
|
2081
|
+
[`&[disabled]`]: {
|
|
2082
|
+
...getDisabledDefaultStyles(theme)
|
|
2083
|
+
},
|
|
2084
|
+
[`&${classLink}:disabled`]: {
|
|
2085
|
+
...getDisabledTertiaryStyles(theme)
|
|
2086
|
+
},
|
|
2087
|
+
[`&${classDangerous}:disabled`]: {
|
|
2088
|
+
...getDisabledErrorStyles(theme)
|
|
2089
|
+
},
|
|
2090
|
+
[`&${classPrimary}:disabled`]: {
|
|
2091
|
+
...getDisabledPrimaryStyles(theme)
|
|
2092
|
+
},
|
|
2601
2093
|
[`&[disabled], &${classDangerous}:disabled`]: {
|
|
2602
|
-
...getDisabledStyles(theme),
|
|
2603
2094
|
...((onlyIcon || forceIconStyles) && {
|
|
2604
2095
|
backgroundColor: 'transparent',
|
|
2605
2096
|
'&:hover': {
|
|
@@ -2628,10 +2119,6 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2628
2119
|
// This would break vertical centering of loading circle when onlyIcon is true
|
|
2629
2120
|
position: 'absolute'
|
|
2630
2121
|
}),
|
|
2631
|
-
...(!isFlex && !forceIconStyles && {
|
|
2632
|
-
// Normally we'd do `transform: translateX(-50%)` but `antd` crushes that with injected inline `style`.
|
|
2633
|
-
left: 'calc(50% - 7px)'
|
|
2634
|
-
}),
|
|
2635
2122
|
// Re-enable animation for the loading spinner, since it can be disabled by the global animation CSS.
|
|
2636
2123
|
svg: {
|
|
2637
2124
|
animationDuration: '1s !important'
|
|
@@ -2640,7 +2127,6 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2640
2127
|
[`& > ${clsLoadingIcon} .anticon`]: {
|
|
2641
2128
|
paddingRight: 0 // to horizontally center icon
|
|
2642
2129
|
},
|
|
2643
|
-
|
|
2644
2130
|
[`> :not(${clsLoadingIcon})`]: {
|
|
2645
2131
|
// Hide all content except loading icon
|
|
2646
2132
|
opacity: 0,
|
|
@@ -2702,7 +2188,7 @@ const getButtonEmotionStyles = _ref => {
|
|
|
2702
2188
|
},
|
|
2703
2189
|
...(isAnchor && {
|
|
2704
2190
|
lineHeight: `${theme.general.heightSm}px`,
|
|
2705
|
-
...getLinkStyles(theme),
|
|
2191
|
+
...getLinkStyles$1(theme),
|
|
2706
2192
|
'&:disabled': {
|
|
2707
2193
|
color: theme.colors.actionDisabledText
|
|
2708
2194
|
}
|
|
@@ -2788,26 +2274,28 @@ const Button = /* #__PURE__ */(() => {
|
|
|
2788
2274
|
dangerouslyUseFocusPseudoClass,
|
|
2789
2275
|
dangerouslyAppendWrapperCss,
|
|
2790
2276
|
componentId,
|
|
2791
|
-
analyticsEvents,
|
|
2277
|
+
analyticsEvents: analyticsEventsInput,
|
|
2278
|
+
shouldStartInteraction,
|
|
2792
2279
|
...props
|
|
2793
2280
|
} = _ref2;
|
|
2794
2281
|
const {
|
|
2795
2282
|
theme,
|
|
2796
2283
|
classNamePrefix
|
|
2797
2284
|
} = useDesignSystemTheme();
|
|
2798
|
-
const
|
|
2799
|
-
USE_FLEX_BUTTON: flexOverride
|
|
2800
|
-
} = useDesignSystemFlags();
|
|
2285
|
+
const analyticsEvents = useMemo(() => analyticsEventsInput !== null && analyticsEventsInput !== void 0 ? analyticsEventsInput : [DesignSystemEventProviderAnalyticsEventTypes.OnClick], [analyticsEventsInput]);
|
|
2801
2286
|
const eventContext = useDesignSystemEventComponentCallbacks({
|
|
2802
2287
|
componentType: DesignSystemEventProviderComponentTypes.Button,
|
|
2803
2288
|
componentId,
|
|
2804
|
-
analyticsEvents
|
|
2289
|
+
analyticsEvents,
|
|
2290
|
+
shouldStartInteraction
|
|
2805
2291
|
});
|
|
2806
|
-
const flexSafex = safex('databricks.fe.designsystem.useFlexButtonStyles', false);
|
|
2807
|
-
const isFlex = flexOverride || flexSafex;
|
|
2808
2292
|
const clsEndIcon = getEndIconClsName(theme);
|
|
2809
2293
|
const loadingCls = `${classNamePrefix}-btn-loading-icon`;
|
|
2810
|
-
const
|
|
2294
|
+
const {
|
|
2295
|
+
elementRef: buttonRef
|
|
2296
|
+
} = useNotifyOnFirstView({
|
|
2297
|
+
onView: eventContext.onView
|
|
2298
|
+
});
|
|
2811
2299
|
useImperativeHandle(ref, () => buttonRef.current);
|
|
2812
2300
|
|
|
2813
2301
|
// Needed to keep backwards compatibility and support existing unit tests
|
|
@@ -2821,13 +2309,13 @@ const Button = /* #__PURE__ */(() => {
|
|
|
2821
2309
|
buttonRef.current.classList.remove(`${classNamePrefix}-btn-loading`);
|
|
2822
2310
|
}
|
|
2823
2311
|
}
|
|
2824
|
-
}, [loading, classNamePrefix]);
|
|
2312
|
+
}, [loading, classNamePrefix, buttonRef]);
|
|
2825
2313
|
const iconOnly = Boolean((props.icon || endIcon) && !children);
|
|
2826
2314
|
const handleClick = event => {
|
|
2827
2315
|
if (loading) {
|
|
2828
2316
|
return;
|
|
2829
2317
|
}
|
|
2830
|
-
eventContext.onClick();
|
|
2318
|
+
eventContext.onClick(event);
|
|
2831
2319
|
onClick === null || onClick === void 0 || onClick(event);
|
|
2832
2320
|
};
|
|
2833
2321
|
const loadingSpinner = jsx(Spinner, {
|
|
@@ -2865,7 +2353,6 @@ const Button = /* #__PURE__ */(() => {
|
|
|
2865
2353
|
enableAnimation: theme.options.enableAnimation,
|
|
2866
2354
|
size: size || 'middle',
|
|
2867
2355
|
type,
|
|
2868
|
-
isFlex,
|
|
2869
2356
|
forceIconStyles: Boolean(dangerouslySetForceIconStyles),
|
|
2870
2357
|
useFocusPseudoClass: Boolean(dangerouslyUseFocusPseudoClass)
|
|
2871
2358
|
}),
|
|
@@ -2878,19 +2365,15 @@ const Button = /* #__PURE__ */(() => {
|
|
|
2878
2365
|
children: children && jsxs("span", {
|
|
2879
2366
|
style: {
|
|
2880
2367
|
visibility: loading ? 'hidden' : 'visible',
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
alignItems: 'center'
|
|
2884
|
-
}),
|
|
2368
|
+
display: 'inline-flex',
|
|
2369
|
+
alignItems: 'center',
|
|
2885
2370
|
...dangerouslyAppendWrapperCss
|
|
2886
2371
|
},
|
|
2887
2372
|
children: [children, endIcon && jsx("span", {
|
|
2888
2373
|
className: clsEndIcon,
|
|
2889
2374
|
style: {
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
alignItems: 'center'
|
|
2893
|
-
})
|
|
2375
|
+
display: 'inline-flex',
|
|
2376
|
+
alignItems: 'center'
|
|
2894
2377
|
},
|
|
2895
2378
|
children: endIcon
|
|
2896
2379
|
})]
|
|
@@ -2907,628 +2390,600 @@ const Button = /* #__PURE__ */(() => {
|
|
|
2907
2390
|
return Button;
|
|
2908
2391
|
})();
|
|
2909
2392
|
|
|
2910
|
-
const
|
|
2911
|
-
|
|
2912
|
-
|
|
2393
|
+
const Root = Popover$1.Root; // Behavioral component only
|
|
2394
|
+
const Anchor = Popover$1.Anchor; // Behavioral component only
|
|
2395
|
+
|
|
2396
|
+
const Content = /*#__PURE__*/forwardRef(function Content(_ref, ref) {
|
|
2397
|
+
let {
|
|
2398
|
+
children,
|
|
2399
|
+
minWidth = 220,
|
|
2400
|
+
maxWidth,
|
|
2401
|
+
...props
|
|
2402
|
+
} = _ref;
|
|
2403
|
+
const {
|
|
2404
|
+
getPopupContainer
|
|
2405
|
+
} = useDesignSystemContext();
|
|
2406
|
+
return jsx(Popover$1.Portal, {
|
|
2407
|
+
container: getPopupContainer && getPopupContainer(),
|
|
2408
|
+
children: jsx(Popover$1.Content, {
|
|
2409
|
+
...addDebugOutlineIfEnabled(),
|
|
2410
|
+
ref: ref,
|
|
2411
|
+
css: [contentStyles, {
|
|
2412
|
+
minWidth,
|
|
2413
|
+
maxWidth
|
|
2414
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Content;"],
|
|
2415
|
+
sideOffset: 4,
|
|
2416
|
+
...props,
|
|
2417
|
+
children: children
|
|
2418
|
+
})
|
|
2419
|
+
});
|
|
2420
|
+
});
|
|
2421
|
+
const Trigger = /*#__PURE__*/forwardRef(function Trigger(_ref2, ref) {
|
|
2422
|
+
let {
|
|
2423
|
+
children,
|
|
2424
|
+
...props
|
|
2425
|
+
} = _ref2;
|
|
2426
|
+
return jsx(Popover$1.Trigger, {
|
|
2427
|
+
...addDebugOutlineIfEnabled(),
|
|
2428
|
+
ref: ref,
|
|
2429
|
+
...props,
|
|
2430
|
+
children: children
|
|
2431
|
+
});
|
|
2432
|
+
});
|
|
2433
|
+
const Close = /*#__PURE__*/forwardRef(function Close(_ref3, ref) {
|
|
2434
|
+
let {
|
|
2435
|
+
children,
|
|
2436
|
+
...props
|
|
2437
|
+
} = _ref3;
|
|
2438
|
+
return jsx(Popover$1.Close, {
|
|
2439
|
+
ref: ref,
|
|
2440
|
+
...props,
|
|
2441
|
+
children: children
|
|
2442
|
+
});
|
|
2443
|
+
});
|
|
2444
|
+
const Arrow = /*#__PURE__*/forwardRef(function Arrow(_ref4, ref) {
|
|
2445
|
+
let {
|
|
2446
|
+
children,
|
|
2447
|
+
...props
|
|
2448
|
+
} = _ref4;
|
|
2449
|
+
const {
|
|
2450
|
+
theme
|
|
2451
|
+
} = useDesignSystemTheme();
|
|
2452
|
+
return jsx(Popover$1.Arrow, {
|
|
2453
|
+
css: /*#__PURE__*/css({
|
|
2454
|
+
fill: theme.colors.backgroundPrimary,
|
|
2455
|
+
stroke: theme.colors.borderDecorative,
|
|
2456
|
+
strokeDashoffset: -CONSTANTS.arrowBottomLength(),
|
|
2457
|
+
strokeDasharray: CONSTANTS.arrowBottomLength() + 2 * CONSTANTS.arrowSide(),
|
|
2458
|
+
strokeWidth: CONSTANTS.arrowStrokeWidth(),
|
|
2459
|
+
// TODO: This is a temporary fix for the alignment of the Arrow;
|
|
2460
|
+
// Radix has changed the implementation for v1.0.0 (uses floating-ui)
|
|
2461
|
+
// which has new behaviors for alignment that we don't want. Generally
|
|
2462
|
+
// we need to fix the arrow to always be aligned to the left of the menu (with
|
|
2463
|
+
// offset equal to border radius)
|
|
2464
|
+
position: 'relative',
|
|
2465
|
+
top: -1
|
|
2466
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Arrow;"),
|
|
2467
|
+
ref: ref,
|
|
2468
|
+
width: 12,
|
|
2469
|
+
height: 6,
|
|
2470
|
+
...props,
|
|
2471
|
+
children: children
|
|
2472
|
+
});
|
|
2473
|
+
});
|
|
2474
|
+
|
|
2475
|
+
// CONSTANTS
|
|
2476
|
+
const CONSTANTS = {
|
|
2477
|
+
arrowBottomLength() {
|
|
2478
|
+
// The built in arrow is a polygon: 0,0 30,0 15,10
|
|
2479
|
+
return 30;
|
|
2480
|
+
},
|
|
2481
|
+
arrowHeight() {
|
|
2482
|
+
return 10;
|
|
2483
|
+
},
|
|
2484
|
+
arrowSide() {
|
|
2485
|
+
return 2 * (this.arrowHeight() ** 2 * 2) ** 0.5;
|
|
2486
|
+
},
|
|
2487
|
+
arrowStrokeWidth() {
|
|
2488
|
+
// This is eyeballed b/c relative to the svg viewbox coordinate system
|
|
2489
|
+
return 2;
|
|
2490
|
+
}
|
|
2491
|
+
};
|
|
2492
|
+
const popoverContentStyles = theme => ({
|
|
2493
|
+
backgroundColor: theme.colors.backgroundPrimary,
|
|
2494
|
+
color: theme.colors.textPrimary,
|
|
2495
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
2496
|
+
border: `1px solid ${theme.colors.borderDecorative}`,
|
|
2497
|
+
borderRadius: theme.borders.borderRadiusMd,
|
|
2498
|
+
padding: `${theme.spacing.sm}px`,
|
|
2499
|
+
boxShadow: theme.general.shadowLow,
|
|
2500
|
+
userSelect: 'none',
|
|
2501
|
+
zIndex: theme.options.zIndexBase + 30,
|
|
2502
|
+
...getDarkModePortalStyles(theme),
|
|
2503
|
+
a: importantify({
|
|
2504
|
+
color: theme.colors.actionTertiaryTextDefault,
|
|
2505
|
+
cursor: 'default',
|
|
2506
|
+
'&:hover, &:focus': {
|
|
2507
|
+
color: theme.colors.actionTertiaryTextHover
|
|
2508
|
+
}
|
|
2509
|
+
}),
|
|
2510
|
+
'&:focus-visible': {
|
|
2511
|
+
outlineStyle: 'solid',
|
|
2512
|
+
outlineWidth: '2px',
|
|
2513
|
+
outlineOffset: '1px',
|
|
2514
|
+
outlineColor: theme.colors.primary
|
|
2515
|
+
}
|
|
2516
|
+
});
|
|
2517
|
+
const contentStyles = theme => ({
|
|
2518
|
+
...popoverContentStyles(theme)
|
|
2519
|
+
});
|
|
2520
|
+
|
|
2521
|
+
var Popover = /*#__PURE__*/Object.freeze({
|
|
2522
|
+
__proto__: null,
|
|
2523
|
+
Anchor: Anchor,
|
|
2524
|
+
Arrow: Arrow,
|
|
2525
|
+
Close: Close,
|
|
2526
|
+
Content: Content,
|
|
2527
|
+
Root: Root,
|
|
2528
|
+
Trigger: Trigger
|
|
2529
|
+
});
|
|
2530
|
+
|
|
2531
|
+
const {
|
|
2532
|
+
Text: AntDText$1
|
|
2533
|
+
} = Typography$1;
|
|
2534
|
+
function getTextEmotionStyles$1(theme, props) {
|
|
2913
2535
|
return /*#__PURE__*/css({
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
'
|
|
2921
|
-
|
|
2536
|
+
'&&': {
|
|
2537
|
+
display: 'block',
|
|
2538
|
+
fontSize: theme.typography.fontSizeSm,
|
|
2539
|
+
lineHeight: theme.typography.lineHeightSm,
|
|
2540
|
+
color: theme.colors.textSecondary,
|
|
2541
|
+
...(props.withoutMargins && {
|
|
2542
|
+
'&&': {
|
|
2543
|
+
marginTop: 0,
|
|
2544
|
+
marginBottom: 0
|
|
2922
2545
|
}
|
|
2923
|
-
}
|
|
2924
|
-
'&[data-validation]': {
|
|
2925
|
-
marginRight: 0
|
|
2926
|
-
}
|
|
2927
|
-
},
|
|
2928
|
-
[`& > ${buttonClass} > span`]: {
|
|
2929
|
-
verticalAlign: 'middle'
|
|
2930
|
-
},
|
|
2931
|
-
[`& > ${buttonClass}:disabled, & > ${buttonClass}:disabled:hover`]: {
|
|
2932
|
-
borderLeft: `1px solid ${theme.colors.actionDisabledText} !important`
|
|
2546
|
+
})
|
|
2933
2547
|
}
|
|
2934
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:
|
|
2935
|
-
}
|
|
2936
|
-
|
|
2937
|
-
|
|
2548
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getTextEmotionStyles;");
|
|
2549
|
+
}
|
|
2550
|
+
function Hint(userProps) {
|
|
2551
|
+
const {
|
|
2938
2552
|
dangerouslySetAntdProps,
|
|
2939
|
-
|
|
2940
|
-
|
|
2553
|
+
bold,
|
|
2554
|
+
withoutMargins,
|
|
2555
|
+
color,
|
|
2941
2556
|
...props
|
|
2942
|
-
} =
|
|
2557
|
+
} = userProps;
|
|
2943
2558
|
const {
|
|
2944
|
-
classNamePrefix,
|
|
2945
2559
|
theme
|
|
2946
2560
|
} = useDesignSystemTheme();
|
|
2947
2561
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
2948
|
-
children: jsx(
|
|
2949
|
-
|
|
2950
|
-
compact: compact,
|
|
2562
|
+
children: jsx(AntDText$1, {
|
|
2563
|
+
...addDebugOutlineIfEnabled(),
|
|
2951
2564
|
...props,
|
|
2565
|
+
css: getTextEmotionStyles$1(theme, userProps),
|
|
2952
2566
|
...dangerouslySetAntdProps
|
|
2953
2567
|
})
|
|
2954
2568
|
});
|
|
2955
|
-
}
|
|
2569
|
+
}
|
|
2956
2570
|
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
if (canTriggerRef.current) {
|
|
2978
|
-
callback();
|
|
2979
|
-
canTriggerRef.current = false;
|
|
2571
|
+
const getLinkStyles = (theme, clsPrefix) => {
|
|
2572
|
+
const classTypography = `.${clsPrefix}-typography`;
|
|
2573
|
+
const styles = {
|
|
2574
|
+
[`&${classTypography}, &${classTypography}:focus`]: {
|
|
2575
|
+
color: theme.colors.actionTertiaryTextDefault
|
|
2576
|
+
},
|
|
2577
|
+
[`&${classTypography}:hover, &${classTypography}:hover .anticon`]: {
|
|
2578
|
+
color: theme.colors.actionTertiaryTextHover,
|
|
2579
|
+
textDecoration: 'underline'
|
|
2580
|
+
},
|
|
2581
|
+
[`&${classTypography}:active, &${classTypography}:active .anticon`]: {
|
|
2582
|
+
color: theme.colors.actionTertiaryTextPress,
|
|
2583
|
+
textDecoration: 'underline'
|
|
2584
|
+
},
|
|
2585
|
+
[`&${classTypography}:focus-visible`]: {
|
|
2586
|
+
textDecoration: 'underline'
|
|
2587
|
+
},
|
|
2588
|
+
'.anticon': {
|
|
2589
|
+
fontSize: 12,
|
|
2590
|
+
verticalAlign: 'baseline'
|
|
2980
2591
|
}
|
|
2981
|
-
}, [callback]);
|
|
2982
|
-
return {
|
|
2983
|
-
callbackOnceUntilReset,
|
|
2984
|
-
reset
|
|
2985
2592
|
};
|
|
2593
|
+
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getLinkStyles;");
|
|
2986
2594
|
};
|
|
2987
|
-
|
|
2988
|
-
const
|
|
2595
|
+
const getEllipsisNewTabLinkStyles = () => {
|
|
2596
|
+
const styles = {
|
|
2597
|
+
paddingRight: 'calc(2px + 1em)',
|
|
2598
|
+
// 1em for icon
|
|
2599
|
+
position: 'relative'
|
|
2600
|
+
};
|
|
2601
|
+
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisNewTabLinkStyles;");
|
|
2602
|
+
};
|
|
2603
|
+
const getIconStyles = theme => {
|
|
2604
|
+
const styles = {
|
|
2605
|
+
marginLeft: 4,
|
|
2606
|
+
color: theme.colors.actionTertiaryTextDefault,
|
|
2607
|
+
position: 'relative',
|
|
2608
|
+
top: '1px'
|
|
2609
|
+
};
|
|
2610
|
+
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getIconStyles;");
|
|
2611
|
+
};
|
|
2612
|
+
const getEllipsisIconStyles = useNewIcons => {
|
|
2613
|
+
const styles = {
|
|
2614
|
+
position: 'absolute',
|
|
2615
|
+
right: 0,
|
|
2616
|
+
bottom: 0,
|
|
2617
|
+
top: 0,
|
|
2618
|
+
display: 'flex',
|
|
2619
|
+
alignItems: 'center',
|
|
2620
|
+
...(useNewIcons && {
|
|
2621
|
+
fontSize: 12
|
|
2622
|
+
})
|
|
2623
|
+
};
|
|
2624
|
+
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisIconStyles;");
|
|
2625
|
+
};
|
|
2626
|
+
const Link = /*#__PURE__*/forwardRef(function Link(_ref, ref) {
|
|
2989
2627
|
let {
|
|
2990
|
-
|
|
2628
|
+
dangerouslySetAntdProps,
|
|
2629
|
+
componentId,
|
|
2630
|
+
analyticsEvents,
|
|
2631
|
+
onClick,
|
|
2632
|
+
...props
|
|
2991
2633
|
} = _ref;
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
const
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
const
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
2634
|
+
const {
|
|
2635
|
+
children,
|
|
2636
|
+
openInNewTab,
|
|
2637
|
+
...restProps
|
|
2638
|
+
} = props;
|
|
2639
|
+
const {
|
|
2640
|
+
theme,
|
|
2641
|
+
classNamePrefix
|
|
2642
|
+
} = useDesignSystemTheme();
|
|
2643
|
+
const eventContext = useDesignSystemEventComponentCallbacks({
|
|
2644
|
+
componentType: DesignSystemEventProviderComponentTypes.TypographyLink,
|
|
2645
|
+
componentId,
|
|
2646
|
+
analyticsEvents: analyticsEvents !== null && analyticsEvents !== void 0 ? analyticsEvents : [DesignSystemEventProviderAnalyticsEventTypes.OnClick],
|
|
2647
|
+
shouldStartInteraction: false
|
|
2648
|
+
});
|
|
2649
|
+
const onClickHandler = useCallback(e => {
|
|
2650
|
+
eventContext.onClick();
|
|
2651
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
2652
|
+
}, [eventContext, onClick]);
|
|
2653
|
+
const newTabProps = {
|
|
2654
|
+
rel: 'noopener noreferrer',
|
|
2655
|
+
target: '_blank'
|
|
2656
|
+
};
|
|
2657
|
+
const linkProps = openInNewTab ? {
|
|
2658
|
+
...restProps,
|
|
2659
|
+
...newTabProps
|
|
2660
|
+
} : {
|
|
2661
|
+
...restProps
|
|
2662
|
+
};
|
|
2663
|
+
const linkStyles = props.ellipsis && openInNewTab ? [getLinkStyles(theme, classNamePrefix), getEllipsisNewTabLinkStyles()] : getLinkStyles(theme, classNamePrefix);
|
|
2664
|
+
const iconStyles = props.ellipsis ? [getIconStyles(theme), getEllipsisIconStyles()] : getIconStyles(theme);
|
|
2665
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
2666
|
+
children: jsxs(Typography$1.Link, {
|
|
2667
|
+
...addDebugOutlineIfEnabled(),
|
|
2668
|
+
"aria-disabled": linkProps.disabled,
|
|
2669
|
+
css: linkStyles,
|
|
2670
|
+
ref: ref,
|
|
2671
|
+
onClick: onClickHandler,
|
|
2672
|
+
...linkProps,
|
|
2673
|
+
...dangerouslySetAntdProps,
|
|
2674
|
+
children: [children, openInNewTab ? jsx(NewWindowIcon$1, {
|
|
2675
|
+
css: iconStyles,
|
|
2676
|
+
...newTabProps
|
|
2677
|
+
}) : null]
|
|
2678
|
+
})
|
|
2679
|
+
});
|
|
2680
|
+
});
|
|
2681
|
+
|
|
2682
|
+
const {
|
|
2683
|
+
Paragraph: AntDParagraph
|
|
2684
|
+
} = Typography$1;
|
|
2685
|
+
function getParagraphEmotionStyles(theme, clsPrefix, props) {
|
|
2686
|
+
return /*#__PURE__*/css({
|
|
3005
2687
|
'&&': {
|
|
2688
|
+
fontSize: theme.typography.fontSizeBase,
|
|
2689
|
+
fontWeight: theme.typography.typographyRegularFontWeight,
|
|
3006
2690
|
lineHeight: theme.typography.lineHeightBase,
|
|
3007
|
-
|
|
3008
|
-
...(validationState && {
|
|
3009
|
-
borderColor: validationColor
|
|
3010
|
-
}),
|
|
3011
|
-
'&:hover': {
|
|
3012
|
-
borderColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundHover
|
|
3013
|
-
},
|
|
3014
|
-
[`&:${focusSpecifier}`]: {
|
|
3015
|
-
outlineColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundDefault,
|
|
3016
|
-
outlineWidth: 2,
|
|
3017
|
-
outlineOffset: -2,
|
|
3018
|
-
outlineStyle: 'solid',
|
|
3019
|
-
boxShadow: 'none',
|
|
3020
|
-
borderColor: 'transparent'
|
|
3021
|
-
},
|
|
3022
|
-
'&:disabled': {
|
|
3023
|
-
backgroundColor: theme.colors.actionDisabledBackground,
|
|
3024
|
-
color: theme.colors.actionDisabledText
|
|
3025
|
-
},
|
|
3026
|
-
'&::placeholder': {
|
|
3027
|
-
color: theme.colors.textPlaceholder
|
|
3028
|
-
}
|
|
2691
|
+
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
3029
2692
|
},
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
backgroundColor: 'transparent'
|
|
3033
|
-
})
|
|
2693
|
+
'& .anticon': {
|
|
2694
|
+
verticalAlign: 'text-bottom'
|
|
3034
2695
|
},
|
|
3035
|
-
[
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
2696
|
+
[`& .${clsPrefix}-btn-link`]: {
|
|
2697
|
+
verticalAlign: 'baseline !important'
|
|
2698
|
+
}
|
|
2699
|
+
}, props.disabled && {
|
|
2700
|
+
'&&': {
|
|
2701
|
+
color: theme.colors.actionDisabledText
|
|
2702
|
+
}
|
|
2703
|
+
}, props.withoutMargins && {
|
|
2704
|
+
'&&': {
|
|
2705
|
+
marginTop: 0,
|
|
2706
|
+
marginBottom: 0
|
|
2707
|
+
}
|
|
2708
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getParagraphEmotionStyles;");
|
|
2709
|
+
}
|
|
2710
|
+
function Paragraph(userProps) {
|
|
2711
|
+
const {
|
|
2712
|
+
dangerouslySetAntdProps,
|
|
2713
|
+
withoutMargins,
|
|
2714
|
+
color,
|
|
2715
|
+
...props
|
|
2716
|
+
} = userProps;
|
|
2717
|
+
const {
|
|
2718
|
+
theme,
|
|
2719
|
+
classNamePrefix
|
|
2720
|
+
} = useDesignSystemTheme();
|
|
2721
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
2722
|
+
children: jsx(AntDParagraph, {
|
|
2723
|
+
...addDebugOutlineIfEnabled(),
|
|
2724
|
+
...props,
|
|
2725
|
+
className: props.className,
|
|
2726
|
+
css: getParagraphEmotionStyles(theme, classNamePrefix, userProps),
|
|
2727
|
+
...dangerouslySetAntdProps
|
|
2728
|
+
})
|
|
2729
|
+
});
|
|
2730
|
+
}
|
|
2731
|
+
|
|
2732
|
+
const {
|
|
2733
|
+
Text: AntDText
|
|
2734
|
+
} = Typography$1;
|
|
2735
|
+
function getTextEmotionStyles(theme, props) {
|
|
2736
|
+
return /*#__PURE__*/css({
|
|
2737
|
+
'&&': {
|
|
2738
|
+
fontSize: theme.typography.fontSizeBase,
|
|
2739
|
+
fontWeight: theme.typography.typographyRegularFontWeight,
|
|
3039
2740
|
lineHeight: theme.typography.lineHeightBase,
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
2741
|
+
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
2742
|
+
}
|
|
2743
|
+
}, props.disabled && {
|
|
2744
|
+
'&&': {
|
|
2745
|
+
color: theme.colors.actionDisabledText
|
|
2746
|
+
}
|
|
2747
|
+
}, props.hint && {
|
|
2748
|
+
'&&': {
|
|
2749
|
+
fontSize: theme.typography.fontSizeSm,
|
|
2750
|
+
lineHeight: theme.typography.lineHeightSm
|
|
2751
|
+
}
|
|
2752
|
+
}, props.bold && {
|
|
2753
|
+
'&&': {
|
|
2754
|
+
fontSize: theme.typography.fontSizeBase,
|
|
2755
|
+
fontWeight: theme.typography.typographyBoldFontWeight,
|
|
2756
|
+
lineHeight: theme.typography.lineHeightBase
|
|
2757
|
+
}
|
|
2758
|
+
}, props.code && {
|
|
2759
|
+
'&& > code': {
|
|
2760
|
+
color: theme.colors.textPrimary,
|
|
2761
|
+
fontSize: theme.typography.fontSizeBase,
|
|
2762
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
2763
|
+
background: theme.colors.typographyCodeBg,
|
|
2764
|
+
fontFamily: 'monospace',
|
|
2765
|
+
borderRadius: theme.borders.borderRadiusMd,
|
|
2766
|
+
padding: '2px 4px',
|
|
2767
|
+
border: 'unset',
|
|
2768
|
+
margin: 0
|
|
2769
|
+
}
|
|
2770
|
+
}, props.size && {
|
|
2771
|
+
'&&': (() => {
|
|
2772
|
+
switch (props.size) {
|
|
2773
|
+
case 'xxl':
|
|
2774
|
+
return {
|
|
2775
|
+
fontSize: theme.typography.fontSizeXxl,
|
|
2776
|
+
lineHeight: theme.typography.lineHeightXxl,
|
|
2777
|
+
'& .anticon': {
|
|
2778
|
+
lineHeight: theme.typography.lineHeightXxl,
|
|
2779
|
+
verticalAlign: 'middle'
|
|
2780
|
+
}
|
|
2781
|
+
};
|
|
2782
|
+
case 'xl':
|
|
2783
|
+
return {
|
|
2784
|
+
fontSize: theme.typography.fontSizeXl,
|
|
2785
|
+
lineHeight: theme.typography.lineHeightXl,
|
|
2786
|
+
'& .anticon': {
|
|
2787
|
+
lineHeight: theme.typography.lineHeightXl,
|
|
2788
|
+
verticalAlign: 'middle'
|
|
2789
|
+
}
|
|
2790
|
+
};
|
|
2791
|
+
case 'lg':
|
|
2792
|
+
return {
|
|
2793
|
+
fontSize: theme.typography.fontSizeLg,
|
|
2794
|
+
lineHeight: theme.typography.lineHeightLg,
|
|
2795
|
+
'& .anticon': {
|
|
2796
|
+
lineHeight: theme.typography.lineHeightLg,
|
|
2797
|
+
verticalAlign: 'middle'
|
|
2798
|
+
}
|
|
2799
|
+
};
|
|
2800
|
+
case 'sm':
|
|
2801
|
+
return {
|
|
2802
|
+
fontSize: theme.typography.fontSizeSm,
|
|
2803
|
+
lineHeight: theme.typography.lineHeightSm,
|
|
2804
|
+
'& .anticon': {
|
|
2805
|
+
verticalAlign: '-0.219em'
|
|
2806
|
+
}
|
|
2807
|
+
};
|
|
2808
|
+
default:
|
|
2809
|
+
return {};
|
|
3062
2810
|
}
|
|
3063
|
-
}
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
},
|
|
3075
|
-
...getAnimationCss(theme.options.enableAnimation)
|
|
3076
|
-
};
|
|
3077
|
-
return styles;
|
|
3078
|
-
};
|
|
3079
|
-
const getInputEmotionStyles = (clsPrefix, theme, _ref3, useTransparent) => {
|
|
3080
|
-
let {
|
|
3081
|
-
validationState
|
|
3082
|
-
} = _ref3;
|
|
3083
|
-
const styles = getInputStyles(clsPrefix, theme, {
|
|
3084
|
-
validationState
|
|
3085
|
-
}, {
|
|
3086
|
-
useTransparent
|
|
3087
|
-
});
|
|
3088
|
-
return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:getInputEmotionStyles;");
|
|
3089
|
-
};
|
|
3090
|
-
const Input$1 = /*#__PURE__*/forwardRef(function Input(_ref4, ref) {
|
|
3091
|
-
let {
|
|
3092
|
-
validationState,
|
|
3093
|
-
autoComplete = 'off',
|
|
2811
|
+
})()
|
|
2812
|
+
}, props.withoutMargins && {
|
|
2813
|
+
'&&': {
|
|
2814
|
+
marginTop: 0,
|
|
2815
|
+
marginBottom: 0
|
|
2816
|
+
}
|
|
2817
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getTextEmotionStyles;");
|
|
2818
|
+
}
|
|
2819
|
+
function Text(userProps) {
|
|
2820
|
+
// Omit props that are not supported by `antd`
|
|
2821
|
+
const {
|
|
3094
2822
|
dangerouslySetAntdProps,
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
componentId,
|
|
3100
|
-
analyticsEvents,
|
|
2823
|
+
bold,
|
|
2824
|
+
hint,
|
|
2825
|
+
withoutMargins,
|
|
2826
|
+
color,
|
|
3101
2827
|
...props
|
|
3102
|
-
} =
|
|
2828
|
+
} = userProps;
|
|
3103
2829
|
const {
|
|
3104
|
-
classNamePrefix,
|
|
3105
2830
|
theme
|
|
3106
2831
|
} = useDesignSystemTheme();
|
|
3107
|
-
const useTransparent = safex('databricks.fe.designsystem.useTransparentInput', false);
|
|
3108
|
-
const eventContext = useDesignSystemEventComponentCallbacks({
|
|
3109
|
-
componentType: DesignSystemEventProviderComponentTypes.Input,
|
|
3110
|
-
componentId,
|
|
3111
|
-
analyticsEvents: analyticsEvents !== null && analyticsEvents !== void 0 ? analyticsEvents : [DesignSystemEventProviderAnalyticsEventTypes.OnValueChange]
|
|
3112
|
-
});
|
|
3113
|
-
|
|
3114
|
-
// Prevents multiple onValueChange triggers until after a focus event resets it.
|
|
3115
|
-
const {
|
|
3116
|
-
callbackOnceUntilReset: sendAnalyticsEventOncePerFocus,
|
|
3117
|
-
reset: resetSendAnalyticsEventOnFocus
|
|
3118
|
-
} = useCallbackOnceUntilReset(eventContext.onValueChange);
|
|
3119
|
-
const handleChange = e => {
|
|
3120
|
-
sendAnalyticsEventOncePerFocus();
|
|
3121
|
-
// If the input is cleared, call the onClear handler, but only
|
|
3122
|
-
// if the event is not an input event -- which is the case when you click the
|
|
3123
|
-
// ant-provided (X) button.
|
|
3124
|
-
if (!e.target.value && e.nativeEvent instanceof InputEvent === false && onClear) {
|
|
3125
|
-
onClear === null || onClear === void 0 || onClear();
|
|
3126
|
-
} else {
|
|
3127
|
-
onChange === null || onChange === void 0 || onChange(e);
|
|
3128
|
-
}
|
|
3129
|
-
};
|
|
3130
|
-
const handleFocus = e => {
|
|
3131
|
-
resetSendAnalyticsEventOnFocus();
|
|
3132
|
-
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
3133
|
-
};
|
|
3134
2832
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
3135
|
-
children: jsx(
|
|
3136
|
-
|
|
3137
|
-
"data-validation": validationState,
|
|
3138
|
-
ref: ref,
|
|
3139
|
-
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
3140
|
-
validationState
|
|
3141
|
-
}, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Input;"],
|
|
3142
|
-
onChange: handleChange,
|
|
3143
|
-
onFocus: handleFocus,
|
|
2833
|
+
children: jsx(AntDText, {
|
|
2834
|
+
...addDebugOutlineIfEnabled(),
|
|
3144
2835
|
...props,
|
|
2836
|
+
className: props.className,
|
|
2837
|
+
css: getTextEmotionStyles(theme, userProps),
|
|
3145
2838
|
...dangerouslySetAntdProps
|
|
3146
2839
|
})
|
|
3147
2840
|
});
|
|
3148
|
-
}
|
|
2841
|
+
}
|
|
3149
2842
|
|
|
3150
|
-
const
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
2843
|
+
const {
|
|
2844
|
+
Title: AntDTitle
|
|
2845
|
+
} = Typography$1;
|
|
2846
|
+
function getLevelStyles(theme, props) {
|
|
2847
|
+
switch (props.level) {
|
|
2848
|
+
case 1:
|
|
2849
|
+
return /*#__PURE__*/css({
|
|
2850
|
+
'&&': {
|
|
2851
|
+
fontSize: theme.typography.fontSizeXxl,
|
|
2852
|
+
lineHeight: theme.typography.lineHeightXxl,
|
|
2853
|
+
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2854
|
+
},
|
|
2855
|
+
'& > .anticon': {
|
|
2856
|
+
lineHeight: theme.typography.lineHeightXxl
|
|
2857
|
+
}
|
|
2858
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2859
|
+
case 2:
|
|
2860
|
+
return /*#__PURE__*/css({
|
|
2861
|
+
'&&': {
|
|
2862
|
+
fontSize: theme.typography.fontSizeXl,
|
|
2863
|
+
lineHeight: theme.typography.lineHeightXl,
|
|
2864
|
+
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2865
|
+
},
|
|
2866
|
+
'& > .anticon': {
|
|
2867
|
+
lineHeight: theme.typography.lineHeightXl
|
|
2868
|
+
}
|
|
2869
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2870
|
+
case 3:
|
|
2871
|
+
return /*#__PURE__*/css({
|
|
2872
|
+
'&&': {
|
|
2873
|
+
fontSize: theme.typography.fontSizeLg,
|
|
2874
|
+
lineHeight: theme.typography.lineHeightLg,
|
|
2875
|
+
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2876
|
+
},
|
|
2877
|
+
'& > .anticon': {
|
|
2878
|
+
lineHeight: theme.typography.lineHeightLg
|
|
2879
|
+
}
|
|
2880
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2881
|
+
case 4:
|
|
2882
|
+
default:
|
|
2883
|
+
return /*#__PURE__*/css({
|
|
2884
|
+
'&&': {
|
|
2885
|
+
fontSize: theme.typography.fontSizeMd,
|
|
2886
|
+
lineHeight: theme.typography.lineHeightMd,
|
|
2887
|
+
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2888
|
+
},
|
|
2889
|
+
'& > .anticon': {
|
|
2890
|
+
lineHeight: theme.typography.lineHeightMd
|
|
2891
|
+
}
|
|
2892
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2893
|
+
}
|
|
2894
|
+
}
|
|
2895
|
+
function getTitleEmotionStyles(theme, props) {
|
|
2896
|
+
return /*#__PURE__*/css(getLevelStyles(theme, props), {
|
|
2897
|
+
'&&': {
|
|
2898
|
+
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
2899
|
+
},
|
|
2900
|
+
'& > .anticon': {
|
|
2901
|
+
verticalAlign: 'middle'
|
|
2902
|
+
}
|
|
2903
|
+
}, props.withoutMargins && {
|
|
2904
|
+
'&&': {
|
|
2905
|
+
marginTop: '0 !important',
|
|
2906
|
+
// override general styling
|
|
2907
|
+
marginBottom: '0 !important' // override general styling
|
|
2908
|
+
}
|
|
2909
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getTitleEmotionStyles;");
|
|
2910
|
+
}
|
|
2911
|
+
function Title(userProps) {
|
|
2912
|
+
const {
|
|
3154
2913
|
dangerouslySetAntdProps,
|
|
3155
|
-
|
|
2914
|
+
withoutMargins,
|
|
2915
|
+
color,
|
|
3156
2916
|
...props
|
|
3157
|
-
} =
|
|
2917
|
+
} = userProps;
|
|
3158
2918
|
const {
|
|
3159
|
-
classNamePrefix,
|
|
3160
2919
|
theme
|
|
3161
2920
|
} = useDesignSystemTheme();
|
|
3162
|
-
const useTransparent = safex('databricks.fe.designsystem.useTransparentInput', false);
|
|
3163
2921
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
3164
|
-
children: jsx(
|
|
3165
|
-
|
|
3166
|
-
ref: ref,
|
|
3167
|
-
autoComplete: autoComplete,
|
|
3168
|
-
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
3169
|
-
validationState
|
|
3170
|
-
}, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Password;"],
|
|
2922
|
+
children: jsx(AntDTitle, {
|
|
2923
|
+
...addDebugOutlineIfEnabled(),
|
|
3171
2924
|
...props,
|
|
2925
|
+
className: props.className,
|
|
2926
|
+
css: getTitleEmotionStyles(theme, userProps),
|
|
3172
2927
|
...dangerouslySetAntdProps
|
|
3173
2928
|
})
|
|
3174
2929
|
});
|
|
3175
|
-
}
|
|
2930
|
+
}
|
|
3176
2931
|
|
|
3177
|
-
const
|
|
2932
|
+
const Truncate = _ref => {
|
|
3178
2933
|
let {
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
dangerouslySetAntdProps,
|
|
3182
|
-
dangerouslyAppendEmotionCSS,
|
|
2934
|
+
children,
|
|
2935
|
+
lines = 1,
|
|
3183
2936
|
...props
|
|
3184
2937
|
} = _ref;
|
|
3185
|
-
const
|
|
3186
|
-
|
|
3187
|
-
theme
|
|
3188
|
-
} = useDesignSystemTheme();
|
|
3189
|
-
const useTransparent = safex('databricks.fe.designsystem.useTransparentInput', false);
|
|
3190
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
3191
|
-
children: jsx(Input$2.TextArea, {
|
|
3192
|
-
ref: ref,
|
|
3193
|
-
autoComplete: autoComplete,
|
|
3194
|
-
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
3195
|
-
validationState
|
|
3196
|
-
}, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:TextArea;"],
|
|
3197
|
-
...props,
|
|
3198
|
-
...dangerouslySetAntdProps
|
|
3199
|
-
})
|
|
3200
|
-
});
|
|
3201
|
-
});
|
|
2938
|
+
const [textContent, setTextContent] = useState('');
|
|
2939
|
+
const spanRef = useRef(null);
|
|
3202
2940
|
|
|
3203
|
-
//
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
});
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
let {
|
|
3213
|
-
direction: requestedDirection,
|
|
3214
|
-
currentStepIndex: currentStep,
|
|
3215
|
-
steps,
|
|
3216
|
-
localizeStepNumber,
|
|
3217
|
-
responsive = true
|
|
3218
|
-
} = _ref;
|
|
3219
|
-
const {
|
|
3220
|
-
theme
|
|
3221
|
-
} = useDesignSystemTheme();
|
|
3222
|
-
const ref = useRef(null);
|
|
3223
|
-
const {
|
|
3224
|
-
direction
|
|
3225
|
-
} = useResponsiveDirection({
|
|
3226
|
-
ref,
|
|
3227
|
-
requestedDirection,
|
|
3228
|
-
responsive,
|
|
3229
|
-
enabled: steps.length > 0
|
|
3230
|
-
});
|
|
3231
|
-
if (steps.length === 0) {
|
|
3232
|
-
return null;
|
|
3233
|
-
}
|
|
3234
|
-
const isHorizontal = direction === 'horizontal';
|
|
3235
|
-
const currentStepIndex = currentStep ? Math.min(steps.length - 1, Math.max(0, currentStep)) : 0;
|
|
3236
|
-
return jsx("ol", {
|
|
3237
|
-
css: /*#__PURE__*/css(getStepsStyle(theme, isHorizontal), process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
|
|
3238
|
-
ref: ref,
|
|
3239
|
-
children: steps.map((step, index) => {
|
|
3240
|
-
const isCurrentStep = index === currentStepIndex;
|
|
3241
|
-
const isLastStep = index === steps.length - 1;
|
|
3242
|
-
const displayEndingDivider = !isLastStep;
|
|
3243
|
-
const contentTitleLevel = isCurrentStep ? 3 : 4;
|
|
3244
|
-
const StepIcon = step.icon;
|
|
3245
|
-
const {
|
|
3246
|
-
icon,
|
|
3247
|
-
iconBackgroundColor,
|
|
3248
|
-
iconTextColor,
|
|
3249
|
-
titleTextColor,
|
|
3250
|
-
descriptionTextColor,
|
|
3251
|
-
hasStepItemIconBorder
|
|
3252
|
-
} = getStepContentStyleFields(theme, isCurrentStep, step.status, StepIcon);
|
|
3253
|
-
return jsx("li", {
|
|
3254
|
-
"aria-current": isCurrentStep,
|
|
3255
|
-
css: /*#__PURE__*/css(getStepItemStyle(theme, isHorizontal, isLastStep), process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
|
|
3256
|
-
children: jsxs(StepContentGrid, {
|
|
3257
|
-
isHorizontal: isHorizontal,
|
|
3258
|
-
isCurrentStep: isCurrentStep,
|
|
3259
|
-
children: [jsx("div", {
|
|
3260
|
-
css: /*#__PURE__*/css(getStepItemIconParentStyle(theme, isCurrentStep, iconBackgroundColor, hasStepItemIconBorder), process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
|
|
3261
|
-
children: StepIcon ? jsx(StepIcon, {
|
|
3262
|
-
statusColor: iconTextColor,
|
|
3263
|
-
status: step.status
|
|
3264
|
-
}) : icon ? jsx("span", {
|
|
3265
|
-
css: /*#__PURE__*/css({
|
|
3266
|
-
color: iconTextColor
|
|
3267
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
|
|
3268
|
-
children: icon
|
|
3269
|
-
}) : jsx(Typography.Title, {
|
|
3270
|
-
level: contentTitleLevel,
|
|
3271
|
-
css: /*#__PURE__*/css({
|
|
3272
|
-
color: `${iconTextColor} !important`
|
|
3273
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
|
|
3274
|
-
withoutMargins: true,
|
|
3275
|
-
children: localizeStepNumber(index + 1)
|
|
3276
|
-
})
|
|
3277
|
-
}), jsx(Typography.Title, {
|
|
3278
|
-
level: contentTitleLevel,
|
|
3279
|
-
withoutMargins: true,
|
|
3280
|
-
css: /*#__PURE__*/css({
|
|
3281
|
-
flexShrink: 0,
|
|
3282
|
-
color: `${titleTextColor} !important`
|
|
3283
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
|
|
3284
|
-
children: step.title
|
|
3285
|
-
}), displayEndingDivider && jsx("div", {
|
|
3286
|
-
css: /*#__PURE__*/css(getStepEndingDividerStyles(theme, isHorizontal, isCurrentStep), process.env.NODE_ENV === "production" ? "" : ";label:Stepper;")
|
|
3287
|
-
}), step.description && jsx(Typography.Text, {
|
|
3288
|
-
css: /*#__PURE__*/css(getStepDescriptionStyles(theme, isHorizontal, isLastStep, descriptionTextColor), process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
|
|
3289
|
-
withoutMargins: true,
|
|
3290
|
-
size: "sm",
|
|
3291
|
-
children: step.description
|
|
3292
|
-
})]
|
|
3293
|
-
})
|
|
3294
|
-
}, index);
|
|
3295
|
-
})
|
|
3296
|
-
});
|
|
3297
|
-
}
|
|
3298
|
-
function getStepsStyle(theme, isHorizontal) {
|
|
3299
|
-
return /*#__PURE__*/css({
|
|
3300
|
-
listStyle: 'none',
|
|
3301
|
-
display: 'flex',
|
|
3302
|
-
flexDirection: isHorizontal ? 'row' : 'column',
|
|
3303
|
-
flexWrap: 'wrap',
|
|
3304
|
-
alignItems: 'flex-start',
|
|
3305
|
-
gap: isHorizontal ? theme.spacing.md : theme.spacing.sm,
|
|
3306
|
-
width: '100%',
|
|
3307
|
-
margin: '0',
|
|
3308
|
-
padding: '0'
|
|
3309
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getStepsStyle;");
|
|
3310
|
-
}
|
|
3311
|
-
function getStepItemStyle(theme, isHorizontal, isLastStep) {
|
|
3312
|
-
return /*#__PURE__*/css({
|
|
3313
|
-
display: 'flex',
|
|
3314
|
-
flexDirection: 'column',
|
|
3315
|
-
alignItems: 'center',
|
|
3316
|
-
justifyContent: 'flex-start',
|
|
3317
|
-
flexGrow: isLastStep ? 0 : 1,
|
|
3318
|
-
marginRight: isLastStep ? theme.spacing.lg + theme.spacing.md : 0,
|
|
3319
|
-
width: isHorizontal ? undefined : '100%'
|
|
3320
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getStepItemStyle;");
|
|
3321
|
-
}
|
|
3322
|
-
function getStepContentStyleFields(theme, isCurrentStep, status, icon) {
|
|
3323
|
-
const fields = getStepContentStyleFieldsFromStatus(theme, isCurrentStep, status);
|
|
3324
|
-
if (icon) {
|
|
3325
|
-
return {
|
|
3326
|
-
...fields,
|
|
3327
|
-
icon: undefined,
|
|
3328
|
-
iconBackgroundColor: undefined,
|
|
3329
|
-
iconTextColor: getCustomIconColor(theme, isCurrentStep, status),
|
|
3330
|
-
hasStepItemIconBorder: false
|
|
3331
|
-
};
|
|
3332
|
-
}
|
|
3333
|
-
return fields;
|
|
3334
|
-
}
|
|
3335
|
-
function getCustomIconColor(theme, isCurrentStep, status) {
|
|
3336
|
-
switch (status) {
|
|
3337
|
-
case 'completed':
|
|
3338
|
-
return theme.colors.actionDefaultBackgroundPress;
|
|
3339
|
-
case 'loading':
|
|
3340
|
-
return theme.colors.textPlaceholder;
|
|
3341
|
-
case 'error':
|
|
3342
|
-
return theme.colors.textValidationDanger;
|
|
3343
|
-
default:
|
|
3344
|
-
case 'upcoming':
|
|
3345
|
-
return isCurrentStep ? theme.colors.actionLinkDefault : theme.colors.textPlaceholder;
|
|
3346
|
-
}
|
|
3347
|
-
}
|
|
3348
|
-
function getStepContentStyleFieldsFromStatus(theme, isCurrentStep, status) {
|
|
3349
|
-
switch (status) {
|
|
3350
|
-
case 'completed':
|
|
3351
|
-
return {
|
|
3352
|
-
icon: jsx(CheckIcon$1, {}),
|
|
3353
|
-
iconBackgroundColor: theme.colors.actionDefaultBackgroundPress,
|
|
3354
|
-
iconTextColor: theme.colors.textPlaceholder,
|
|
3355
|
-
titleTextColor: theme.colors.textPrimary,
|
|
3356
|
-
descriptionTextColor: theme.colors.textSecondary,
|
|
3357
|
-
hasStepItemIconBorder: true
|
|
3358
|
-
};
|
|
3359
|
-
case 'loading':
|
|
3360
|
-
return {
|
|
3361
|
-
icon: jsx(LoadingIcon$1, {
|
|
3362
|
-
spin: true,
|
|
3363
|
-
css: /*#__PURE__*/css({
|
|
3364
|
-
fontSize: isCurrentStep ? theme.typography.fontSizeXl : theme.typography.fontSizeLg
|
|
3365
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:icon;")
|
|
3366
|
-
}),
|
|
3367
|
-
iconBackgroundColor: undefined,
|
|
3368
|
-
iconTextColor: theme.colors.textPlaceholder,
|
|
3369
|
-
titleTextColor: isCurrentStep ? theme.colors.textPrimary : theme.colors.textSecondary,
|
|
3370
|
-
descriptionTextColor: theme.colors.textSecondary,
|
|
3371
|
-
hasStepItemIconBorder: false
|
|
3372
|
-
};
|
|
3373
|
-
case 'error':
|
|
3374
|
-
return {
|
|
3375
|
-
icon: jsx(CloseIcon$1, {
|
|
3376
|
-
css: /*#__PURE__*/css({
|
|
3377
|
-
marginBottom: theme.spacing.sm /* center icon in icon circle */
|
|
3378
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:icon;")
|
|
3379
|
-
}),
|
|
3380
|
-
iconBackgroundColor: theme.colors.textValidationDanger,
|
|
3381
|
-
iconTextColor: 'white',
|
|
3382
|
-
titleTextColor: theme.colors.textValidationDanger,
|
|
3383
|
-
descriptionTextColor: theme.colors.textValidationDanger,
|
|
3384
|
-
hasStepItemIconBorder: false
|
|
3385
|
-
};
|
|
3386
|
-
default:
|
|
3387
|
-
case 'upcoming':
|
|
3388
|
-
if (isCurrentStep) {
|
|
3389
|
-
return {
|
|
3390
|
-
icon: undefined,
|
|
3391
|
-
iconBackgroundColor: theme.colors.actionLinkDefault,
|
|
3392
|
-
iconTextColor: 'white',
|
|
3393
|
-
titleTextColor: theme.colors.textPrimary,
|
|
3394
|
-
descriptionTextColor: theme.colors.textPrimary,
|
|
3395
|
-
hasStepItemIconBorder: false
|
|
3396
|
-
};
|
|
3397
|
-
}
|
|
3398
|
-
return {
|
|
3399
|
-
icon: undefined,
|
|
3400
|
-
iconBackgroundColor: undefined,
|
|
3401
|
-
iconTextColor: theme.colors.textPlaceholder,
|
|
3402
|
-
titleTextColor: theme.colors.textSecondary,
|
|
3403
|
-
descriptionTextColor: theme.colors.textSecondary,
|
|
3404
|
-
hasStepItemIconBorder: true
|
|
3405
|
-
};
|
|
3406
|
-
}
|
|
3407
|
-
}
|
|
3408
|
-
const MaxHorizontalStepDescriptionWidth = 140;
|
|
3409
|
-
const CurrentStepIconSize = DEFAULT_SPACING_UNIT * 4;
|
|
3410
|
-
const NonCurrentStepIconSize = DEFAULT_SPACING_UNIT * 3;
|
|
3411
|
-
function getStepItemIconParentStyle(theme, isCurrentStep, iconBackgroundColor, hasStepItemIconBorder) {
|
|
3412
|
-
return /*#__PURE__*/css({
|
|
3413
|
-
width: isCurrentStep ? CurrentStepIconSize : NonCurrentStepIconSize,
|
|
3414
|
-
height: isCurrentStep ? CurrentStepIconSize : NonCurrentStepIconSize,
|
|
3415
|
-
backgroundColor: iconBackgroundColor,
|
|
3416
|
-
borderRadius: '50%',
|
|
3417
|
-
display: 'flex',
|
|
3418
|
-
justifyContent: 'center',
|
|
3419
|
-
alignItems: 'center',
|
|
3420
|
-
fontSize: '20px',
|
|
3421
|
-
flexShrink: 0,
|
|
3422
|
-
border: hasStepItemIconBorder ? `1px solid ${theme.colors.textPlaceholder}` : undefined
|
|
3423
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getStepItemIconParentStyle;");
|
|
3424
|
-
}
|
|
3425
|
-
function getStepEndingDividerStyles(theme, isHorizontal, isCurrentStep) {
|
|
3426
|
-
const backgroundColor = isCurrentStep ? theme.colors.actionLinkDefault : theme.colors.border;
|
|
3427
|
-
if (isHorizontal) {
|
|
3428
|
-
return /*#__PURE__*/css({
|
|
3429
|
-
backgroundColor,
|
|
3430
|
-
height: '1px',
|
|
3431
|
-
width: '100%',
|
|
3432
|
-
minWidth: theme.spacing.md
|
|
3433
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getStepEndingDividerStyles;");
|
|
3434
|
-
}
|
|
3435
|
-
return /*#__PURE__*/css({
|
|
3436
|
-
backgroundColor,
|
|
3437
|
-
height: '100%',
|
|
3438
|
-
minHeight: theme.spacing.md,
|
|
3439
|
-
width: '1px',
|
|
3440
|
-
alignSelf: 'flex-start',
|
|
3441
|
-
marginLeft: theme.spacing.md
|
|
3442
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getStepEndingDividerStyles;");
|
|
3443
|
-
}
|
|
3444
|
-
function getStepDescriptionStyles(theme, isHorizontal, isLastStep, textColor) {
|
|
3445
|
-
return /*#__PURE__*/css({
|
|
3446
|
-
alignSelf: 'flex-start',
|
|
3447
|
-
width: '100%',
|
|
3448
|
-
gridColumn: isHorizontal || isLastStep ? '2 / span 2' : undefined,
|
|
3449
|
-
maxWidth: isHorizontal ? MaxHorizontalStepDescriptionWidth : undefined,
|
|
3450
|
-
paddingBottom: isHorizontal ? undefined : theme.spacing.sm,
|
|
3451
|
-
color: `${textColor} !important`
|
|
3452
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getStepDescriptionStyles;");
|
|
3453
|
-
}
|
|
3454
|
-
function StepContentGrid(_ref2) {
|
|
3455
|
-
let {
|
|
3456
|
-
children,
|
|
3457
|
-
isHorizontal,
|
|
3458
|
-
isCurrentStep
|
|
3459
|
-
} = _ref2;
|
|
3460
|
-
const {
|
|
3461
|
-
theme
|
|
3462
|
-
} = useDesignSystemTheme();
|
|
3463
|
-
if (isHorizontal) {
|
|
3464
|
-
return jsx("div", {
|
|
3465
|
-
css: /*#__PURE__*/css({
|
|
3466
|
-
display: 'grid',
|
|
3467
|
-
gridTemplateColumns: `${isCurrentStep ? CurrentStepIconSize : NonCurrentStepIconSize}px fit-content(100%) 1fr`,
|
|
3468
|
-
gridTemplateRows: `${CurrentStepIconSize}px auto`,
|
|
3469
|
-
alignItems: 'center',
|
|
3470
|
-
justifyItems: 'flex-start',
|
|
3471
|
-
gridColumnGap: theme.spacing.sm,
|
|
3472
|
-
width: '100%'
|
|
3473
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:StepContentGrid;"),
|
|
3474
|
-
children: children
|
|
3475
|
-
});
|
|
3476
|
-
}
|
|
3477
|
-
return jsx("div", {
|
|
2941
|
+
// This ensures that truncated text is always available to the user via a native tooltip
|
|
2942
|
+
useEffect(() => {
|
|
2943
|
+
if (spanRef.current) {
|
|
2944
|
+
setTextContent(spanRef.current.textContent || '');
|
|
2945
|
+
}
|
|
2946
|
+
}, [spanRef, children]);
|
|
2947
|
+
return jsx("span", {
|
|
2948
|
+
ref: spanRef,
|
|
2949
|
+
title: textContent,
|
|
3478
2950
|
css: /*#__PURE__*/css({
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
}
|
|
3490
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:StepContentGrid;"),
|
|
2951
|
+
overflow: 'hidden',
|
|
2952
|
+
textOverflow: 'ellipsis',
|
|
2953
|
+
whiteSpace: 'normal',
|
|
2954
|
+
wordBreak: 'break-word',
|
|
2955
|
+
display: '-webkit-box',
|
|
2956
|
+
webkitLineClamp: lines,
|
|
2957
|
+
WebkitBoxOrient: 'vertical',
|
|
2958
|
+
WebkitLineClamp: lines
|
|
2959
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Truncate;"),
|
|
2960
|
+
...props,
|
|
3491
2961
|
children: children
|
|
3492
2962
|
});
|
|
3493
|
-
}
|
|
3494
|
-
|
|
3495
|
-
// Ant design uses the same value for their stepper and to works well for us as well.
|
|
3496
|
-
const MinimumHorizonalDirectionWidth = 532;
|
|
2963
|
+
};
|
|
3497
2964
|
|
|
3498
|
-
|
|
3499
|
-
function
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
}
|
|
3511
|
-
let timeoutId;
|
|
3512
|
-
const resizeObserver = new ResizeObserver(entries => {
|
|
3513
|
-
timeoutId = requestAnimationFrame(() => {
|
|
3514
|
-
if (entries.length === 1) {
|
|
3515
|
-
const width = entries[0].target.clientWidth || 0;
|
|
3516
|
-
setDirection(width < MinimumHorizonalDirectionWidth ? 'vertical' : 'horizontal');
|
|
3517
|
-
}
|
|
3518
|
-
});
|
|
2965
|
+
const Typography = /* #__PURE__ */(() => {
|
|
2966
|
+
function Typography(_ref) {
|
|
2967
|
+
let {
|
|
2968
|
+
dangerouslySetAntdProps,
|
|
2969
|
+
...props
|
|
2970
|
+
} = _ref;
|
|
2971
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
2972
|
+
children: jsx(Typography$1, {
|
|
2973
|
+
...addDebugOutlineIfEnabled(),
|
|
2974
|
+
...props,
|
|
2975
|
+
...dangerouslySetAntdProps
|
|
2976
|
+
})
|
|
3519
2977
|
});
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
direction
|
|
3530
|
-
};
|
|
3531
|
-
}
|
|
2978
|
+
}
|
|
2979
|
+
Typography.Text = Text;
|
|
2980
|
+
Typography.Title = Title;
|
|
2981
|
+
Typography.Paragraph = Paragraph;
|
|
2982
|
+
Typography.Link = Link;
|
|
2983
|
+
Typography.Hint = Hint;
|
|
2984
|
+
Typography.Truncate = Truncate;
|
|
2985
|
+
return Typography;
|
|
2986
|
+
})();
|
|
3532
2987
|
|
|
3533
|
-
export {
|
|
3534
|
-
//# sourceMappingURL=
|
|
2988
|
+
export { LoadingStateContext as $, Arrow as A, Button as B, CloseIcon$1 as C, DesignSystemAntDConfigProvider as D, AccessibleContainer as E, DU_BOIS_ENABLE_ANIMATION_CLASSNAME as F, lightColorList as G, getDefaultStyles as H, Icon as I, getPrimaryStyles as J, getDisabledSplitButtonStyles as K, LoadingState as L, getButtonEmotionStyles as M, DesignSystemEventProvider as N, useDesignSystemEventSuppressInteractionContext as O, DesignSystemThemeContext as P, DesignSystemContext as Q, RestoreAntDDefaultClsPrefix as R, Spinner as S, Trigger as T, DesignSystemThemeProvider as U, DesignSystemProvider as V, WarningIcon$1 as W, ApplyDesignSystemFlags as X, useAntDConfigProviderContext as Y, WithDesignSystemThemeHoc as Z, NewWindowIcon$1 as _, useDesignSystemTheme as a, Popover as a0, getTypographyColor as a1, getBottomOnlyShadowScrollStyles as a2, ColorVars as a3, primitiveColors as a4, DEFAULT_SPACING_UNIT as a5, addDebugOutlineStylesIfEnabled as b, useDesignSystemEventComponentCallbacks as c, DesignSystemEventProviderComponentTypes as d, DesignSystemEventProviderAnalyticsEventTypes as e, useNotifyOnFirstView as f, getAnimationCss as g, addDebugOutlineIfEnabled as h, getDarkModePortalStyles as i, useUniqueId as j, Root as k, Content as l, DesignSystemEventSuppressInteractionProviderContext as m, DesignSystemEventSuppressInteractionTrueContextValue as n, Typography as o, importantify as p, CheckIcon$1 as q, getValidationStateColor as r, safex as s, ApplyDesignSystemContextOverrides as t, useDesignSystemContext as u, visuallyHidden as v, getShadowScrollStyles as w, DangerIcon$1 as x, LoadingIcon$1 as y, Title as z };
|
|
2989
|
+
//# sourceMappingURL=Typography-ed0b1c4d.js.map
|