@databricks/design-system 1.12.14 → 1.12.16
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-839336b1.js → Stepper-ff25c5d1.js} +1303 -1177
- package/dist/Stepper-ff25c5d1.js.map +1 -0
- package/dist/design-system/Avatar/Avatar.d.ts +40 -0
- package/dist/design-system/Avatar/Avatar.d.ts.map +1 -0
- package/dist/design-system/Avatar/SvgDatabricksIcon.d.ts +3 -0
- package/dist/design-system/Avatar/SvgDatabricksIcon.d.ts.map +1 -0
- package/dist/design-system/Avatar/SvgSparkleIcon.d.ts +3 -0
- package/dist/design-system/Avatar/SvgSparkleIcon.d.ts.map +1 -0
- package/dist/design-system/Avatar/SvgUserIcon.d.ts +3 -0
- package/dist/design-system/Avatar/SvgUserIcon.d.ts.map +1 -0
- package/dist/design-system/Avatar/index.d.ts +2 -0
- package/dist/design-system/Avatar/index.d.ts.map +1 -0
- package/dist/design-system/Button/Button.d.ts +2 -13
- package/dist/design-system/Button/Button.d.ts.map +1 -1
- package/dist/design-system/ContextMenu/ContextMenu.d.ts +28 -23
- package/dist/design-system/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/design-system/DatePicker/DatePicker.d.ts +25 -15
- package/dist/design-system/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts +2 -1
- package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxContent.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/index.d.ts +1 -0
- package/dist/design-system/DialogCombobox/index.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/shared.d.ts.map +1 -1
- package/dist/design-system/DropdownMenu/DropdownMenu.d.ts +2 -2
- package/dist/design-system/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/design-system/FormV2/RHFAdapters.d.ts +17 -10
- package/dist/design-system/FormV2/RHFAdapters.d.ts.map +1 -1
- package/dist/design-system/Header/Header.d.ts.map +1 -1
- package/dist/design-system/Icon/Icon.d.ts +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/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/ArrowRightIcon.d.ts +1 -1
- 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/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/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/CatalogIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CatalogOffIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChartLineIcon.d.ts +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/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/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/CloudDownloadIcon.d.ts +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/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/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/FloatIcon.d.ts +1 -1
- 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/InfoBookIcon.d.ts +5 -0
- 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/LettersIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LibrariesIcon.d.ts +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/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/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/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/QuestionMarkSpeechBubbleIcon.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/RobotIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/RunningIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/RunningIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/SaveIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SchemaIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/SchemaIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/SchoolIcon.d.ts +1 -1
- 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/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/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/SparkleIcon.d.ts +1 -1
- 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/StepIntoIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/StepOutIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/StepOverIcon.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/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/TableIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/TableLightningIcon.d.ts +1 -1
- 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 +5 -0
- package/dist/design-system/Icon/__generated/icons/TagIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/TargetIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/TextBoxIcon.d.ts +1 -1
- 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/VectorTableIcon.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/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 +5 -0
- package/dist/design-system/Icon/__generated/icons/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.map +1 -1
- package/dist/design-system/Input/common.d.ts +3 -2
- package/dist/design-system/Input/common.d.ts.map +1 -1
- package/dist/design-system/LegacySelect/LegacySelect.d.ts +66 -0
- package/dist/design-system/LegacySelect/LegacySelect.d.ts.map +1 -0
- package/dist/design-system/LegacySelect/index.d.ts +2 -0
- package/dist/design-system/LegacySelect/index.d.ts.map +1 -0
- package/dist/design-system/Modal/Modal.d.ts +4 -3
- package/dist/design-system/Modal/Modal.d.ts.map +1 -1
- package/dist/design-system/Radio/Radio.d.ts +2 -1
- package/dist/design-system/Radio/Radio.d.ts.map +1 -1
- package/dist/design-system/SegmentedControl/SegmentedControl.d.ts +1 -0
- package/dist/design-system/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/design-system/Select/Select.d.ts +7 -59
- package/dist/design-system/Select/Select.d.ts.map +1 -1
- package/dist/design-system/Select/SelectContent.d.ts +10 -0
- package/dist/design-system/Select/SelectContent.d.ts.map +1 -0
- package/dist/design-system/Select/SelectOption.d.ts +10 -0
- package/dist/design-system/Select/SelectOption.d.ts.map +1 -0
- package/dist/design-system/Select/SelectOptionGroup.d.ts +11 -0
- package/dist/design-system/Select/SelectOptionGroup.d.ts.map +1 -0
- package/dist/design-system/Select/SelectTrigger.d.ts +10 -0
- package/dist/design-system/Select/SelectTrigger.d.ts.map +1 -0
- package/dist/design-system/Select/SimpleSelect.d.ts +34 -0
- package/dist/design-system/Select/SimpleSelect.d.ts.map +1 -0
- package/dist/design-system/Select/hooks/useSelectContext.d.ts.map +1 -0
- package/dist/design-system/Select/index.d.ts +5 -0
- package/dist/design-system/Select/index.d.ts.map +1 -1
- package/dist/design-system/Select/providers/SelectContext.d.ts.map +1 -0
- package/dist/design-system/Sidebar/Sidebar.d.ts +6 -2
- package/dist/design-system/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/design-system/TableUI/Table.d.ts.map +1 -1
- package/dist/design-system/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxControls.d.ts +1 -0
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxControls.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxInput.d.ts +1 -0
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxInput.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts +2 -0
- package/dist/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts.map +1 -1
- package/dist/design-system/Typography/Hint.d.ts +2 -2
- package/dist/design-system/Typography/Hint.d.ts.map +1 -1
- package/dist/design-system/Typography/Link.d.ts +2 -2
- package/dist/design-system/Typography/Link.d.ts.map +1 -1
- package/dist/design-system/Typography/Paragraph.d.ts +2 -2
- package/dist/design-system/Typography/Paragraph.d.ts.map +1 -1
- package/dist/design-system/Typography/Text.d.ts +2 -2
- package/dist/design-system/Typography/Text.d.ts.map +1 -1
- package/dist/design-system/Typography/Title.d.ts +2 -2
- package/dist/design-system/Typography/Title.d.ts.map +1 -1
- package/dist/design-system/Typography/Typography.d.ts +1 -1
- package/dist/design-system/Typography/index.d.ts +5 -0
- package/dist/design-system/Typography/index.d.ts.map +1 -1
- package/dist/design-system/Wizard/Wizard.d.ts +24 -4
- package/dist/design-system/Wizard/Wizard.d.ts.map +1 -1
- package/dist/design-system/Wizard/WizardFooter.d.ts +3 -2
- package/dist/design-system/Wizard/WizardFooter.d.ts.map +1 -1
- package/dist/design-system/Wizard/WizardModal.d.ts.map +1 -1
- package/dist/design-system/Wizard/WizardStep.d.ts +2 -2
- package/dist/design-system/Wizard/WizardStep.d.ts.map +1 -1
- package/dist/design-system/Wizard/WizardStepsContent.d.ts +2 -1
- package/dist/design-system/Wizard/WizardStepsContent.d.ts.map +1 -1
- package/dist/design-system/_shared_/Menu/index.d.ts +5 -0
- package/dist/design-system/_shared_/Menu/index.d.ts.map +1 -0
- package/dist/design-system/index.d.ts +2 -1
- package/dist/design-system/index.d.ts.map +1 -1
- package/dist/design-system/types.d.ts +27 -0
- package/dist/design-system/types.d.ts.map +1 -1
- package/dist/design-system/utils/debug.d.ts +8 -0
- package/dist/design-system/utils/debug.d.ts.map +1 -0
- package/dist/design-system/utils/index.d.ts +1 -0
- package/dist/design-system/utils/index.d.ts.map +1 -1
- package/dist/design-system/utils/useCallbackOnceUntilReset.d.ts +20 -0
- package/dist/design-system/utils/useCallbackOnceUntilReset.d.ts.map +1 -0
- package/dist/design-system/utils/useIsomorphicLayoutEffect.d.ts +16 -0
- package/dist/design-system/utils/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/design-system/utils/useMediaQuery.d.ts +31 -0
- package/dist/design-system/utils/useMediaQuery.d.ts.map +1 -0
- package/dist/development/Banner/Banner.d.ts +3 -13
- package/dist/development/Banner/Banner.d.ts.map +1 -1
- package/dist/development/PillControl/PillControl.d.ts +13 -0
- package/dist/development/PillControl/PillControl.d.ts.map +1 -0
- package/dist/development/PillControl/index.d.ts +2 -0
- package/dist/development/PillControl/index.d.ts.map +1 -0
- package/dist/development/PreviewCard/PreviewCard.d.ts +14 -0
- package/dist/development/PreviewCard/PreviewCard.d.ts.map +1 -0
- package/dist/development/PreviewCard/index.d.ts +2 -0
- package/dist/development/PreviewCard/index.d.ts.map +1 -0
- package/dist/development/Progress/Progress.d.ts +10 -0
- package/dist/development/Progress/Progress.d.ts.map +1 -0
- package/dist/development/Progress/hooks/useProgressContext.d.ts +2 -0
- package/dist/development/Progress/hooks/useProgressContext.d.ts.map +1 -0
- package/dist/development/Progress/index.d.ts +2 -0
- package/dist/development/Progress/index.d.ts.map +1 -0
- package/dist/development/Progress/providers/ProgressContex.d.ts +10 -0
- package/dist/development/Progress/providers/ProgressContex.d.ts.map +1 -0
- package/dist/development/Stepper/Stepper.d.ts +2 -2
- package/dist/development/Stepper/Stepper.d.ts.map +1 -1
- package/dist/development/index.d.ts +2 -0
- package/dist/development/index.d.ts.map +1 -1
- package/dist/development.js +314 -82
- package/dist/development.js.map +1 -1
- package/dist/dubois-colors.less +7 -3
- package/dist/index-dark.css +8 -0
- package/dist/index.css +44 -39
- package/dist/index.js +2078 -1095
- package/dist/index.js.map +1 -1
- package/dist/test-utils/enzyme/selectEvent.d.ts +2 -2
- package/dist/test-utils/enzyme/selectEvent.d.ts.map +1 -1
- package/dist/test-utils/enzyme.js.map +1 -1
- package/dist/test-utils/rtl/selectEvent.d.ts +2 -2
- package/dist/test-utils/rtl/selectEvent.d.ts.map +1 -1
- package/dist/test-utils/rtl.js +3 -3
- package/dist/test-utils/rtl.js.map +1 -1
- package/dist/theme/_generated/SemanticColors-Dark.d.ts.map +1 -1
- package/dist/theme/_generated/SemanticColors-Light.d.ts.map +1 -1
- package/dist/theme/_generated/ValidSemanticColors.d.ts +2 -0
- package/dist/theme/_generated/ValidSemanticColors.d.ts.map +1 -1
- package/package.json +9 -7
- package/dist/Stepper-839336b1.js.map +0 -1
- package/dist/design-system/SelectV2/Select.d.ts +0 -7
- package/dist/design-system/SelectV2/Select.d.ts.map +0 -1
- package/dist/design-system/SelectV2/SelectContent.d.ts +0 -6
- package/dist/design-system/SelectV2/SelectContent.d.ts.map +0 -1
- package/dist/design-system/SelectV2/SelectOption.d.ts +0 -6
- package/dist/design-system/SelectV2/SelectOption.d.ts.map +0 -1
- package/dist/design-system/SelectV2/SelectOptionGroup.d.ts +0 -7
- package/dist/design-system/SelectV2/SelectOptionGroup.d.ts.map +0 -1
- package/dist/design-system/SelectV2/SelectTrigger.d.ts +0 -6
- package/dist/design-system/SelectV2/SelectTrigger.d.ts.map +0 -1
- package/dist/design-system/SelectV2/hooks/useSelectContext.d.ts.map +0 -1
- package/dist/design-system/SelectV2/index.d.ts +0 -6
- package/dist/design-system/SelectV2/index.d.ts.map +0 -1
- package/dist/design-system/SelectV2/providers/SelectContext.d.ts.map +0 -1
- /package/dist/design-system/{SelectV2 → Select}/hooks/useSelectContext.d.ts +0 -0
- /package/dist/design-system/{SelectV2 → Select}/providers/SelectContext.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as useDesignSystemTheme, I as Icon, D as DesignSystemAntDConfigProvider, R as RestoreAntDDefaultClsPrefix, g as getAnimationCss, C as CloseIcon, a as getDarkModePortalStyles, b as ChevronRightIcon, L as LoadingState, v as visuallyHidden,
|
|
2
|
-
export {
|
|
1
|
+
import { u as useDesignSystemTheme, I as Icon, D as DesignSystemAntDConfigProvider, R as RestoreAntDDefaultClsPrefix, g as getAnimationCss, C as CloseIcon, a as getDarkModePortalStyles, T as Typography, b as ChevronRightIcon, L as LoadingState, v as visuallyHidden, s as safex, i as importantify, c as useUniqueId, d as useDesignSystemContext, e as CheckIcon, S as Spinner, B as Button, f as Input, h as getValidationStateColor, A as ApplyDesignSystemContextOverrides, j as getShadowScrollStyles, k as DangerIcon, W as WarningIcon, l as LoadingIcon, m as Title$2, n as AccessibleContainer, o as ChevronLeftIcon, p as useDesignSystemEventComponentCallbacks, q as DesignSystemEventProviderComponentTypes, r as DesignSystemEventProviderAnalyticsEventTypes, t as useNotifyOnFirstView, w as DU_BOIS_ENABLE_ANIMATION_CLASSNAME, x as lightColorList, y as getDefaultStyles, z as getPrimaryStyles, E as getDisabledStyles, F as useDesignSystemFlags, G as Stepper } from './Stepper-ff25c5d1.js';
|
|
2
|
+
export { P as ApplyDesignSystemFlags, a4 as ColorVars, V as CursorIcon, M as DesignSystemContext, J as DesignSystemEventProvider, O as DesignSystemProvider, K as DesignSystemThemeContext, N as DesignSystemThemeProvider, X as FaceFrownIcon, Y as FaceNeutralIcon, Z as FaceSmileIcon, a1 as LoadingStateContext, _ as MegaphoneIcon, $ as NewWindowIcon, U as WithDesignSystemThemeHoc, a3 as getBottomOnlyShadowScrollStyles, H as getButtonEmotionStyles, a0 as getInputStyles, a2 as getTypographyColor, Q as useAntDConfigProviderContext } from './Stepper-ff25c5d1.js';
|
|
3
3
|
import { css, Global, keyframes, ClassNames, createElement } from '@emotion/react';
|
|
4
|
-
import { Collapse, Alert as Alert$1, AutoComplete as AutoComplete$1, Breadcrumb as Breadcrumb$1, Checkbox as Checkbox$1, Tooltip as Tooltip$1, DatePicker, Dropdown as Dropdown$1, Form as Form$1,
|
|
4
|
+
import { Collapse, Alert as Alert$1, AutoComplete as AutoComplete$1, Breadcrumb as Breadcrumb$1, Checkbox as Checkbox$1, Tooltip as Tooltip$1, DatePicker, Dropdown as Dropdown$1, Form as Form$1, Select as Select$1, Radio as Radio$1, Switch as Switch$1, Col as Col$1, Row as Row$1, Space as Space$1, Layout as Layout$1, notification, Popover as Popover$2, Skeleton, Pagination as Pagination$1, Table as Table$1, Menu as Menu$1, Modal as Modal$1, Button as Button$1, Steps as Steps$1, Tabs as Tabs$1, Tree as Tree$1 } from 'antd';
|
|
5
5
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import React__default, { useRef, useMemo, forwardRef, useEffect, createContext, useState, useImperativeHandle, useContext, Children, useCallback, Fragment as Fragment$1, useLayoutEffect } from 'react';
|
|
@@ -767,7 +767,6 @@ function SvgBracketsXIcon(props) {
|
|
|
767
767
|
})]
|
|
768
768
|
}), jsx("defs", {
|
|
769
769
|
children: jsx("clipPath", {
|
|
770
|
-
id: "BracketsXIcon_svg__a",
|
|
771
770
|
children: jsx("path", {
|
|
772
771
|
fill: "#fff",
|
|
773
772
|
d: "M0 0h16v16H0z"
|
|
@@ -2138,7 +2137,6 @@ function SvgDotsCircleIcon(props) {
|
|
|
2138
2137
|
})]
|
|
2139
2138
|
}), jsx("defs", {
|
|
2140
2139
|
children: jsx("clipPath", {
|
|
2141
|
-
id: "DotsCircleIcon_svg__a",
|
|
2142
2140
|
children: jsx("path", {
|
|
2143
2141
|
fill: "#fff",
|
|
2144
2142
|
d: "M0 0h16v16H0z"
|
|
@@ -2625,7 +2623,6 @@ function SvgFolderCloudFilledIcon(props) {
|
|
|
2625
2623
|
})]
|
|
2626
2624
|
}), jsx("defs", {
|
|
2627
2625
|
children: jsx("clipPath", {
|
|
2628
|
-
id: "FolderCloudFilledIcon_svg__a",
|
|
2629
2626
|
children: jsx("path", {
|
|
2630
2627
|
fill: "#fff",
|
|
2631
2628
|
d: "M0 0h16v16H0z"
|
|
@@ -2664,7 +2661,6 @@ function SvgFolderCloudIcon(props) {
|
|
|
2664
2661
|
})]
|
|
2665
2662
|
}), jsx("defs", {
|
|
2666
2663
|
children: jsx("clipPath", {
|
|
2667
|
-
id: "FolderCloudIcon_svg__a",
|
|
2668
2664
|
children: jsx("path", {
|
|
2669
2665
|
fill: "#fff",
|
|
2670
2666
|
d: "M0 0h16v16H0z"
|
|
@@ -2751,7 +2747,6 @@ function SvgFontIcon(props) {
|
|
|
2751
2747
|
})
|
|
2752
2748
|
}), jsx("defs", {
|
|
2753
2749
|
children: jsx("clipPath", {
|
|
2754
|
-
id: "FontIcon_svg__a",
|
|
2755
2750
|
children: jsx("path", {
|
|
2756
2751
|
fill: "#fff",
|
|
2757
2752
|
d: "M0 0h16v16H0z"
|
|
@@ -2862,7 +2857,6 @@ function SvgFunctionIcon(props) {
|
|
|
2862
2857
|
})
|
|
2863
2858
|
}), jsx("defs", {
|
|
2864
2859
|
children: jsx("clipPath", {
|
|
2865
|
-
id: "FunctionIcon_svg__a",
|
|
2866
2860
|
children: jsx("path", {
|
|
2867
2861
|
fill: "#fff",
|
|
2868
2862
|
d: "M16 0H0v16h16z"
|
|
@@ -2927,7 +2921,6 @@ function SvgGearIcon(props) {
|
|
|
2927
2921
|
})]
|
|
2928
2922
|
}), jsx("defs", {
|
|
2929
2923
|
children: jsx("clipPath", {
|
|
2930
|
-
id: "GearIcon_svg__a",
|
|
2931
2924
|
children: jsx("path", {
|
|
2932
2925
|
fill: "#fff",
|
|
2933
2926
|
d: "M0 0h16v16H0z"
|
|
@@ -3016,7 +3009,6 @@ function SvgGlobeIcon(props) {
|
|
|
3016
3009
|
})
|
|
3017
3010
|
}), jsx("defs", {
|
|
3018
3011
|
children: jsx("clipPath", {
|
|
3019
|
-
id: "GlobeIcon_svg__a",
|
|
3020
3012
|
children: jsx("path", {
|
|
3021
3013
|
fill: "#fff",
|
|
3022
3014
|
d: "M0 16h16V0H0z"
|
|
@@ -3175,7 +3167,6 @@ function SvgHistoryIcon(props) {
|
|
|
3175
3167
|
})]
|
|
3176
3168
|
}), jsx("defs", {
|
|
3177
3169
|
children: jsx("clipPath", {
|
|
3178
|
-
id: "HistoryIcon_svg__a",
|
|
3179
3170
|
children: jsx("path", {
|
|
3180
3171
|
fill: "#fff",
|
|
3181
3172
|
d: "M0 0h16v16H0z"
|
|
@@ -3325,6 +3316,30 @@ const InfinityIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
3325
3316
|
InfinityIcon.displayName = 'InfinityIcon';
|
|
3326
3317
|
var InfinityIcon$1 = InfinityIcon;
|
|
3327
3318
|
|
|
3319
|
+
function SvgInfoBookIcon(props) {
|
|
3320
|
+
return jsx("svg", {
|
|
3321
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3322
|
+
width: "1em",
|
|
3323
|
+
height: "1em",
|
|
3324
|
+
fill: "none",
|
|
3325
|
+
viewBox: "0 0 16 16",
|
|
3326
|
+
...props,
|
|
3327
|
+
children: jsx("path", {
|
|
3328
|
+
fill: "currentColor",
|
|
3329
|
+
d: "M1 2v9.882c0 .772.635 1.412 1.4 1.412h4.612c.148.423.544.705.988.706.444 0 .84-.283.988-.706H13.6c.765 0 1.4-.64 1.4-1.412V2h-4.9c-.848 0-1.585.407-2.1 1.013C7.485 2.407 6.748 2 5.9 2H1Zm1.4 1.412h3.5c.782 0 1.4.623 1.4 1.412h1.4c0-.789.618-1.412 1.4-1.412h3.5v8.47H2.4v-8.47Zm7.7 2.117v1.412h1.4V5.53h-1.4Zm0 2.118v2.824h1.4V7.647h-1.4Z"
|
|
3330
|
+
})
|
|
3331
|
+
});
|
|
3332
|
+
}
|
|
3333
|
+
const InfoBookIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
3334
|
+
return jsx(Icon, {
|
|
3335
|
+
ref: forwardedRef,
|
|
3336
|
+
...props,
|
|
3337
|
+
component: SvgInfoBookIcon
|
|
3338
|
+
});
|
|
3339
|
+
});
|
|
3340
|
+
InfoBookIcon.displayName = 'InfoBookIcon';
|
|
3341
|
+
var InfoBookIcon$1 = InfoBookIcon;
|
|
3342
|
+
|
|
3328
3343
|
function SvgInfoFillIcon(props) {
|
|
3329
3344
|
return jsx("svg", {
|
|
3330
3345
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4030,7 +4045,6 @@ function SvgModelsIcon(props) {
|
|
|
4030
4045
|
})
|
|
4031
4046
|
}), jsx("defs", {
|
|
4032
4047
|
children: jsx("clipPath", {
|
|
4033
|
-
id: "ModelsIcon_svg__a",
|
|
4034
4048
|
children: jsx("path", {
|
|
4035
4049
|
fill: "#fff",
|
|
4036
4050
|
d: "M0 0h16v16H0z"
|
|
@@ -4750,7 +4764,6 @@ function SvgQueryIcon(props) {
|
|
|
4750
4764
|
})]
|
|
4751
4765
|
}), jsx("defs", {
|
|
4752
4766
|
children: jsx("clipPath", {
|
|
4753
|
-
id: "QueryIcon_svg__a",
|
|
4754
4767
|
children: jsx("path", {
|
|
4755
4768
|
fill: "#fff",
|
|
4756
4769
|
d: "M0 0h16v16H0z"
|
|
@@ -4900,7 +4913,6 @@ function SvgRedoIcon(props) {
|
|
|
4900
4913
|
})
|
|
4901
4914
|
}), jsx("defs", {
|
|
4902
4915
|
children: jsx("clipPath", {
|
|
4903
|
-
id: "RedoIcon_svg__a",
|
|
4904
4916
|
children: jsx("path", {
|
|
4905
4917
|
fill: "#fff",
|
|
4906
4918
|
d: "M0 16h16V0H0z"
|
|
@@ -4971,6 +4983,42 @@ const RobotIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
4971
4983
|
RobotIcon.displayName = 'RobotIcon';
|
|
4972
4984
|
var RobotIcon$1 = RobotIcon;
|
|
4973
4985
|
|
|
4986
|
+
function SvgRunningIcon(props) {
|
|
4987
|
+
return jsxs("svg", {
|
|
4988
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4989
|
+
width: "1em",
|
|
4990
|
+
height: "1em",
|
|
4991
|
+
fill: "none",
|
|
4992
|
+
viewBox: "0 0 16 16",
|
|
4993
|
+
...props,
|
|
4994
|
+
children: [jsx("g", {
|
|
4995
|
+
clipPath: "url(#RunningIcon_svg__a)",
|
|
4996
|
+
children: jsx("path", {
|
|
4997
|
+
fill: "currentColor",
|
|
4998
|
+
fillRule: "evenodd",
|
|
4999
|
+
d: "M8 14.5A6.5 6.5 0 0 0 14.5 8H16a8 8 0 0 1-8 8v-1.5ZM0 8a8 8 0 0 1 8-8v1.5A6.5 6.5 0 0 0 1.5 8H0Z",
|
|
5000
|
+
clipRule: "evenodd"
|
|
5001
|
+
})
|
|
5002
|
+
}), jsx("defs", {
|
|
5003
|
+
children: jsx("clipPath", {
|
|
5004
|
+
children: jsx("path", {
|
|
5005
|
+
fill: "#fff",
|
|
5006
|
+
d: "M0 0h16v16H0z"
|
|
5007
|
+
})
|
|
5008
|
+
})
|
|
5009
|
+
})]
|
|
5010
|
+
});
|
|
5011
|
+
}
|
|
5012
|
+
const RunningIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
5013
|
+
return jsx(Icon, {
|
|
5014
|
+
ref: forwardedRef,
|
|
5015
|
+
...props,
|
|
5016
|
+
component: SvgRunningIcon
|
|
5017
|
+
});
|
|
5018
|
+
});
|
|
5019
|
+
RunningIcon.displayName = 'RunningIcon';
|
|
5020
|
+
var RunningIcon$1 = RunningIcon;
|
|
5021
|
+
|
|
4974
5022
|
function SvgSaveIcon(props) {
|
|
4975
5023
|
return jsxs("svg", {
|
|
4976
5024
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5000,6 +5048,32 @@ const SaveIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
5000
5048
|
SaveIcon.displayName = 'SaveIcon';
|
|
5001
5049
|
var SaveIcon$1 = SaveIcon;
|
|
5002
5050
|
|
|
5051
|
+
function SvgSchemaIcon(props) {
|
|
5052
|
+
return jsx("svg", {
|
|
5053
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5054
|
+
width: "1em",
|
|
5055
|
+
height: "1em",
|
|
5056
|
+
fill: "none",
|
|
5057
|
+
viewBox: "0 0 16 16",
|
|
5058
|
+
...props,
|
|
5059
|
+
children: jsx("path", {
|
|
5060
|
+
fill: "#5F7281",
|
|
5061
|
+
fillRule: "evenodd",
|
|
5062
|
+
d: "M2.75 0A.75.75 0 0 0 2 .75v3a.75.75 0 0 0 .75.75h1v7a2.75 2.75 0 0 0 2.75 2.75H7v1c0 .414.336.75.75.75h5.5a.75.75 0 0 0 .75-.75v-3a.75.75 0 0 0-.75-.75h-5.5a.75.75 0 0 0-.75.75v.5h-.5c-.69 0-1.25-.56-1.25-1.25V8.45c.375.192.8.3 1.25.3H7v.75c0 .414.336.75.75.75h5.5A.75.75 0 0 0 14 9.5v-3a.75.75 0 0 0-.75-.75h-5.5A.75.75 0 0 0 7 6.5v.75h-.5c-.69 0-1.25-.56-1.25-1.25V4.5h8a.75.75 0 0 0 .75-.75v-3a.75.75 0 0 0-.75-.75H2.75Zm.75 3V1.5h9V3h-9Zm5 10v1.5h4V13h-4Zm0-4.25v-1.5h4v1.5h-4Z",
|
|
5063
|
+
clipRule: "evenodd"
|
|
5064
|
+
})
|
|
5065
|
+
});
|
|
5066
|
+
}
|
|
5067
|
+
const SchemaIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
5068
|
+
return jsx(Icon, {
|
|
5069
|
+
ref: forwardedRef,
|
|
5070
|
+
...props,
|
|
5071
|
+
component: SvgSchemaIcon
|
|
5072
|
+
});
|
|
5073
|
+
});
|
|
5074
|
+
SchemaIcon.displayName = 'SchemaIcon';
|
|
5075
|
+
var SchemaIcon$1 = SchemaIcon;
|
|
5076
|
+
|
|
5003
5077
|
function SvgSchoolIcon(props) {
|
|
5004
5078
|
return jsx("svg", {
|
|
5005
5079
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5044,7 +5118,6 @@ function SvgSearchIcon(props) {
|
|
|
5044
5118
|
})
|
|
5045
5119
|
}), jsx("defs", {
|
|
5046
5120
|
children: jsx("clipPath", {
|
|
5047
|
-
id: "SearchIcon_svg__a",
|
|
5048
5121
|
children: jsx("path", {
|
|
5049
5122
|
fill: "#fff",
|
|
5050
5123
|
d: "M0 0h16v16H0z"
|
|
@@ -5301,7 +5374,6 @@ function SvgSortAlphabeticalAscendingIcon(props) {
|
|
|
5301
5374
|
})]
|
|
5302
5375
|
}), jsx("defs", {
|
|
5303
5376
|
children: jsx("clipPath", {
|
|
5304
|
-
id: "SortAlphabeticalAscendingIcon_svg__a",
|
|
5305
5377
|
children: jsx("path", {
|
|
5306
5378
|
fill: "#fff",
|
|
5307
5379
|
d: "M0 0h16v16H0z"
|
|
@@ -5340,7 +5412,6 @@ function SvgSortAlphabeticalDescendingIcon(props) {
|
|
|
5340
5412
|
})]
|
|
5341
5413
|
}), jsx("defs", {
|
|
5342
5414
|
children: jsx("clipPath", {
|
|
5343
|
-
id: "SortAlphabeticalDescendingIcon_svg__a",
|
|
5344
5415
|
children: jsx("path", {
|
|
5345
5416
|
fill: "#fff",
|
|
5346
5417
|
d: "M0 0h16v16H0z"
|
|
@@ -5381,7 +5452,6 @@ function SvgSortAlphabeticalLeftIcon(props) {
|
|
|
5381
5452
|
})]
|
|
5382
5453
|
}), jsx("defs", {
|
|
5383
5454
|
children: jsx("clipPath", {
|
|
5384
|
-
id: "SortAlphabeticalLeftIcon_svg__a",
|
|
5385
5455
|
children: jsx("path", {
|
|
5386
5456
|
fill: "#fff",
|
|
5387
5457
|
d: "M0 0h16v16H0z"
|
|
@@ -5422,7 +5492,6 @@ function SvgSortAlphabeticalRightIcon(props) {
|
|
|
5422
5492
|
})]
|
|
5423
5493
|
}), jsx("defs", {
|
|
5424
5494
|
children: jsx("clipPath", {
|
|
5425
|
-
id: "SortAlphabeticalRightIcon_svg__a",
|
|
5426
5495
|
children: jsx("path", {
|
|
5427
5496
|
fill: "#fff",
|
|
5428
5497
|
d: "M0 0h16v16H0z"
|
|
@@ -5515,7 +5584,7 @@ const SortUnsortedIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
5515
5584
|
SortUnsortedIcon.displayName = 'SortUnsortedIcon';
|
|
5516
5585
|
var SortUnsortedIcon$1 = SortUnsortedIcon;
|
|
5517
5586
|
|
|
5518
|
-
function SvgSparkleIcon(props) {
|
|
5587
|
+
function SvgSparkleIcon$1(props) {
|
|
5519
5588
|
return jsx("svg", {
|
|
5520
5589
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5521
5590
|
width: "1em",
|
|
@@ -5533,7 +5602,7 @@ const SparkleIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
5533
5602
|
return jsx(Icon, {
|
|
5534
5603
|
ref: forwardedRef,
|
|
5535
5604
|
...props,
|
|
5536
|
-
component: SvgSparkleIcon
|
|
5605
|
+
component: SvgSparkleIcon$1
|
|
5537
5606
|
});
|
|
5538
5607
|
});
|
|
5539
5608
|
SparkleIcon.displayName = 'SparkleIcon';
|
|
@@ -5623,6 +5692,40 @@ const SpeechBubbleQuestionMarkIcon = /*#__PURE__*/forwardRef((props, forwardedRe
|
|
|
5623
5692
|
SpeechBubbleQuestionMarkIcon.displayName = 'SpeechBubbleQuestionMarkIcon';
|
|
5624
5693
|
var SpeechBubbleQuestionMarkIcon$1 = SpeechBubbleQuestionMarkIcon;
|
|
5625
5694
|
|
|
5695
|
+
function SvgSpeechBubbleStarIcon(props) {
|
|
5696
|
+
return jsxs("svg", {
|
|
5697
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5698
|
+
width: "1em",
|
|
5699
|
+
height: "1em",
|
|
5700
|
+
fill: "none",
|
|
5701
|
+
viewBox: "0 0 16 16",
|
|
5702
|
+
...props,
|
|
5703
|
+
children: [jsx("g", {
|
|
5704
|
+
clipPath: "url(#SpeechBubbleStarIcon_svg__a)",
|
|
5705
|
+
children: jsx("path", {
|
|
5706
|
+
fill: "currentColor",
|
|
5707
|
+
d: "M1.599 0C.719 0 .006.72.006 1.6L0 11.2c0 .884.716 1.601 1.6 1.601H3.2v3.2l3.2-3.2h8c.88 0 1.601-.72 1.601-1.6v-9.6C16 .72 15.28 0 14.4 0H1.599Zm0 1.6h12.8v9.601H1.6l-.001-9.6Zm6.4.85L6.937 4.965l-2.726.232 2.066 1.79-.62 2.664 2.342-1.413 2.343 1.413-.62-2.669 2.065-1.79-2.725-.232-1.063-2.51Z"
|
|
5708
|
+
})
|
|
5709
|
+
}), jsx("defs", {
|
|
5710
|
+
children: jsx("clipPath", {
|
|
5711
|
+
children: jsx("path", {
|
|
5712
|
+
fill: "#fff",
|
|
5713
|
+
d: "M0 0h16v16H0z"
|
|
5714
|
+
})
|
|
5715
|
+
})
|
|
5716
|
+
})]
|
|
5717
|
+
});
|
|
5718
|
+
}
|
|
5719
|
+
const SpeechBubbleStarIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
5720
|
+
return jsx(Icon, {
|
|
5721
|
+
ref: forwardedRef,
|
|
5722
|
+
...props,
|
|
5723
|
+
component: SvgSpeechBubbleStarIcon
|
|
5724
|
+
});
|
|
5725
|
+
});
|
|
5726
|
+
SpeechBubbleStarIcon.displayName = 'SpeechBubbleStarIcon';
|
|
5727
|
+
var SpeechBubbleStarIcon$1 = SpeechBubbleStarIcon;
|
|
5728
|
+
|
|
5626
5729
|
function SvgStarFillIcon(props) {
|
|
5627
5730
|
return jsx("svg", {
|
|
5628
5731
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6136,7 +6239,6 @@ function SvgTableViewIcon(props) {
|
|
|
6136
6239
|
})]
|
|
6137
6240
|
}), jsx("defs", {
|
|
6138
6241
|
children: jsx("clipPath", {
|
|
6139
|
-
id: "TableViewIcon_svg__a",
|
|
6140
6242
|
children: jsx("path", {
|
|
6141
6243
|
fill: "#fff",
|
|
6142
6244
|
d: "M0 0h16v16H0z"
|
|
@@ -6155,6 +6257,29 @@ const TableViewIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
6155
6257
|
TableViewIcon.displayName = 'TableViewIcon';
|
|
6156
6258
|
var TableViewIcon$1 = TableViewIcon;
|
|
6157
6259
|
|
|
6260
|
+
function SvgTagIcon(props) {
|
|
6261
|
+
return jsx("svg", {
|
|
6262
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6263
|
+
width: "1em",
|
|
6264
|
+
height: "1em",
|
|
6265
|
+
viewBox: "0 -960 960 960",
|
|
6266
|
+
...props,
|
|
6267
|
+
children: jsx("path", {
|
|
6268
|
+
fill: "currentColor",
|
|
6269
|
+
d: "M570-104q-23 23-57 23t-57-23L104-456q-11-11-17.5-26T80-514v-286q0-33 23.5-56.5T160-880h286q17 0 32 6.5t26 17.5l352 353q23 23 23 56.5T856-390L570-104Zm-57-56 286-286-353-354H160v286l353 354ZM260-640q25 0 42.5-17.5T320-700q0-25-17.5-42.5T260-760q-25 0-42.5 17.5T200-700q0 25 17.5 42.5T260-640ZM160-800Z"
|
|
6270
|
+
})
|
|
6271
|
+
});
|
|
6272
|
+
}
|
|
6273
|
+
const TagIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
6274
|
+
return jsx(Icon, {
|
|
6275
|
+
ref: forwardedRef,
|
|
6276
|
+
...props,
|
|
6277
|
+
component: SvgTagIcon
|
|
6278
|
+
});
|
|
6279
|
+
});
|
|
6280
|
+
TagIcon.displayName = 'TagIcon';
|
|
6281
|
+
var TagIcon$1 = TagIcon;
|
|
6282
|
+
|
|
6158
6283
|
function SvgTargetIcon(props) {
|
|
6159
6284
|
return jsx("svg", {
|
|
6160
6285
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6223,7 +6348,6 @@ function SvgThumbsDownIcon(props) {
|
|
|
6223
6348
|
})
|
|
6224
6349
|
}), jsx("defs", {
|
|
6225
6350
|
children: jsx("clipPath", {
|
|
6226
|
-
id: "ThumbsDownIcon_svg__a",
|
|
6227
6351
|
children: jsx("path", {
|
|
6228
6352
|
fill: "#fff",
|
|
6229
6353
|
d: "M0 0h16v16H0z"
|
|
@@ -6260,7 +6384,6 @@ function SvgThumbsUpIcon(props) {
|
|
|
6260
6384
|
})
|
|
6261
6385
|
}), jsx("defs", {
|
|
6262
6386
|
children: jsx("clipPath", {
|
|
6263
|
-
id: "ThumbsUpIcon_svg__a",
|
|
6264
6387
|
children: jsx("path", {
|
|
6265
6388
|
fill: "#fff",
|
|
6266
6389
|
d: "M0 0h16v16H0z"
|
|
@@ -6373,7 +6496,6 @@ function SvgUndoIcon(props) {
|
|
|
6373
6496
|
})
|
|
6374
6497
|
}), jsx("defs", {
|
|
6375
6498
|
children: jsx("clipPath", {
|
|
6376
|
-
id: "UndoIcon_svg__a",
|
|
6377
6499
|
children: jsx("path", {
|
|
6378
6500
|
fill: "#fff",
|
|
6379
6501
|
d: "M16 16H0V0h16z"
|
|
@@ -6528,7 +6650,7 @@ const UserGroupIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
6528
6650
|
UserGroupIcon.displayName = 'UserGroupIcon';
|
|
6529
6651
|
var UserGroupIcon$1 = UserGroupIcon;
|
|
6530
6652
|
|
|
6531
|
-
function SvgUserIcon(props) {
|
|
6653
|
+
function SvgUserIcon$1(props) {
|
|
6532
6654
|
return jsx("svg", {
|
|
6533
6655
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6534
6656
|
width: "1em",
|
|
@@ -6548,7 +6670,7 @@ const UserIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
6548
6670
|
return jsx(Icon, {
|
|
6549
6671
|
ref: forwardedRef,
|
|
6550
6672
|
...props,
|
|
6551
|
-
component: SvgUserIcon
|
|
6673
|
+
component: SvgUserIcon$1
|
|
6552
6674
|
});
|
|
6553
6675
|
});
|
|
6554
6676
|
UserIcon.displayName = 'UserIcon';
|
|
@@ -6629,7 +6751,6 @@ function SvgVisibleIcon(props) {
|
|
|
6629
6751
|
})]
|
|
6630
6752
|
}), jsx("defs", {
|
|
6631
6753
|
children: jsx("clipPath", {
|
|
6632
|
-
id: "VisibleIcon_svg__a",
|
|
6633
6754
|
children: jsx("path", {
|
|
6634
6755
|
fill: "#fff",
|
|
6635
6756
|
d: "M0 0h16v16H0z"
|
|
@@ -6670,7 +6791,6 @@ function SvgVisibleOffIcon(props) {
|
|
|
6670
6791
|
})]
|
|
6671
6792
|
}), jsx("defs", {
|
|
6672
6793
|
children: jsx("clipPath", {
|
|
6673
|
-
id: "VisibleOffIcon_svg__a",
|
|
6674
6794
|
children: jsx("path", {
|
|
6675
6795
|
fill: "#fff",
|
|
6676
6796
|
d: "M0 0h16v16H0z"
|
|
@@ -7233,6 +7353,190 @@ const AutoComplete = /* #__PURE__ */(() => {
|
|
|
7233
7353
|
return AutoComplete;
|
|
7234
7354
|
})();
|
|
7235
7355
|
|
|
7356
|
+
function SvgDatabricksIcon(props) {
|
|
7357
|
+
return jsxs("svg", {
|
|
7358
|
+
viewBox: "0 0 24 24",
|
|
7359
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7360
|
+
...props,
|
|
7361
|
+
children: [jsx("rect", {
|
|
7362
|
+
width: "24",
|
|
7363
|
+
height: "24",
|
|
7364
|
+
fill: "#FF3621"
|
|
7365
|
+
}), jsx("path", {
|
|
7366
|
+
d: "m18.8 10.515-6.8228 3.945-7.3059-4.215-0.35138 0.195v3.06l7.6573 4.41 6.8228-3.93v1.62l-6.8228 3.945-7.3059-4.215-0.35138 0.195v0.525l7.6573 4.41 7.6427-4.41v-3.06l-0.3514-0.195-7.2913 4.2-6.8374-3.93v-1.62l6.8374 3.93 7.6427-4.41v-3.015l-0.3807-0.225-7.262 4.185-6.486-3.72 6.486-3.735 5.3294 3.075 0.4685-0.27v-0.375l-5.7979-3.345-7.6573 4.41v0.48l7.6573 4.41 6.8228-3.945v1.62z",
|
|
7367
|
+
fill: "#fff"
|
|
7368
|
+
})]
|
|
7369
|
+
});
|
|
7370
|
+
}
|
|
7371
|
+
|
|
7372
|
+
function SvgSparkleIcon(props) {
|
|
7373
|
+
return jsxs("svg", {
|
|
7374
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7375
|
+
width: "24",
|
|
7376
|
+
height: "24",
|
|
7377
|
+
fill: "none",
|
|
7378
|
+
viewBox: "0 0 24 24",
|
|
7379
|
+
...props,
|
|
7380
|
+
children: [jsx("path", {
|
|
7381
|
+
fill: "#5F7281",
|
|
7382
|
+
d: "M0 4a4 4 0 0 1 4-4h16a4 4 0 0 1 4 4v16a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V4Z"
|
|
7383
|
+
}), jsx("path", {
|
|
7384
|
+
fill: "#E8ECF0",
|
|
7385
|
+
d: "M12 5c.42 0 .782.3.86.713l.308 1.631a4.375 4.375 0 0 0 3.488 3.488l1.631.308a.875.875 0 0 1 0 1.72l-1.631.308a4.375 4.375 0 0 0-3.488 3.488l-.308 1.631a.875.875 0 0 1-1.72 0l-.308-1.631a4.375 4.375 0 0 0-3.488-3.488l-1.631-.308a.875.875 0 0 1 0-1.72l1.631-.308a4.375 4.375 0 0 0 3.488-3.488l.308-1.631A.875.875 0 0 1 12 5Zm0 4.296A6.13 6.13 0 0 1 9.296 12 6.131 6.131 0 0 1 12 14.704 6.131 6.131 0 0 1 14.704 12 6.131 6.131 0 0 1 12 9.296Z"
|
|
7386
|
+
})]
|
|
7387
|
+
});
|
|
7388
|
+
}
|
|
7389
|
+
|
|
7390
|
+
function SvgUserIcon(props) {
|
|
7391
|
+
return jsx("svg", {
|
|
7392
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7393
|
+
width: "24",
|
|
7394
|
+
height: "22",
|
|
7395
|
+
fill: "none",
|
|
7396
|
+
viewBox: "0 0 24 22",
|
|
7397
|
+
...props,
|
|
7398
|
+
children: jsx("path", {
|
|
7399
|
+
fill: "#5F7281",
|
|
7400
|
+
d: "M12 1.5a4.875 4.875 0 1 0 0 9.75 4.875 4.875 0 0 0 0-9.75Zm0 12c-4.15 0-7.85 1.927-10.253 4.93-.16.2-.247.448-.247.704v2.241c0 .621.504 1.125 1.125 1.125h18.75c.621 0 1.125-.504 1.125-1.125v-2.241c0-.256-.087-.504-.247-.703A13.103 13.103 0 0 0 12 13.5Z"
|
|
7401
|
+
})
|
|
7402
|
+
});
|
|
7403
|
+
}
|
|
7404
|
+
|
|
7405
|
+
function getAvatarEmotionStyles(theme) {
|
|
7406
|
+
return {
|
|
7407
|
+
abbr: {
|
|
7408
|
+
color: theme.colors.textSecondary,
|
|
7409
|
+
textDecoration: 'none'
|
|
7410
|
+
},
|
|
7411
|
+
container: {
|
|
7412
|
+
alignItems: 'center',
|
|
7413
|
+
display: 'flex',
|
|
7414
|
+
gap: theme.spacing.sm
|
|
7415
|
+
},
|
|
7416
|
+
default: {
|
|
7417
|
+
height: theme.spacing.lg,
|
|
7418
|
+
width: theme.spacing.lg
|
|
7419
|
+
},
|
|
7420
|
+
icon: {
|
|
7421
|
+
alignItems: 'center',
|
|
7422
|
+
backgroundColor: theme.colors.tagDefault,
|
|
7423
|
+
display: 'flex',
|
|
7424
|
+
justifyContent: 'center'
|
|
7425
|
+
},
|
|
7426
|
+
img: {
|
|
7427
|
+
objectFit: 'cover',
|
|
7428
|
+
objectPosition: 'center'
|
|
7429
|
+
},
|
|
7430
|
+
system: {
|
|
7431
|
+
borderRadius: theme.borders.borderRadiusMd,
|
|
7432
|
+
overflow: 'hidden'
|
|
7433
|
+
},
|
|
7434
|
+
user: {
|
|
7435
|
+
borderRadius: '100%',
|
|
7436
|
+
overflow: 'hidden'
|
|
7437
|
+
},
|
|
7438
|
+
userIcon: {
|
|
7439
|
+
alignItems: 'flex-end'
|
|
7440
|
+
}
|
|
7441
|
+
};
|
|
7442
|
+
}
|
|
7443
|
+
function AvatarImg(props) {
|
|
7444
|
+
const {
|
|
7445
|
+
theme
|
|
7446
|
+
} = useDesignSystemTheme();
|
|
7447
|
+
const styles = getAvatarEmotionStyles(theme);
|
|
7448
|
+
switch (props.type) {
|
|
7449
|
+
case 'entity':
|
|
7450
|
+
if ('src' in props && props.src) {
|
|
7451
|
+
return jsx("img", {
|
|
7452
|
+
css: [styles.default, styles.img, styles.system, process.env.NODE_ENV === "production" ? "" : ";label:AvatarImg;"],
|
|
7453
|
+
src: props.src,
|
|
7454
|
+
alt: props.label
|
|
7455
|
+
});
|
|
7456
|
+
} else if ('icon' in props && props.icon) {
|
|
7457
|
+
return jsx("div", {
|
|
7458
|
+
css: [styles.default, styles.system, styles.icon, process.env.NODE_ENV === "production" ? "" : ";label:AvatarImg;"],
|
|
7459
|
+
role: "img",
|
|
7460
|
+
"aria-label": props.label,
|
|
7461
|
+
children: props.icon
|
|
7462
|
+
});
|
|
7463
|
+
}
|
|
7464
|
+
return jsx("div", {
|
|
7465
|
+
css: [styles.default, styles.system, styles.icon, process.env.NODE_ENV === "production" ? "" : ";label:AvatarImg;"],
|
|
7466
|
+
role: "img",
|
|
7467
|
+
"aria-label": props.label,
|
|
7468
|
+
children: jsx(SvgSparkleIcon, {})
|
|
7469
|
+
});
|
|
7470
|
+
case 'user':
|
|
7471
|
+
if ('label' in props && props.label.trim()) {
|
|
7472
|
+
if (props.src) {
|
|
7473
|
+
return jsx("img", {
|
|
7474
|
+
css: [styles.default, styles.img, styles.user, process.env.NODE_ENV === "production" ? "" : ";label:AvatarImg;"],
|
|
7475
|
+
src: props.src,
|
|
7476
|
+
alt: props.label
|
|
7477
|
+
});
|
|
7478
|
+
} else if (props.icon) {
|
|
7479
|
+
return jsx("div", {
|
|
7480
|
+
css: [styles.default, styles.user, styles.icon, process.env.NODE_ENV === "production" ? "" : ";label:AvatarImg;"],
|
|
7481
|
+
role: "img",
|
|
7482
|
+
"aria-label": props.label,
|
|
7483
|
+
children: props.icon
|
|
7484
|
+
});
|
|
7485
|
+
}
|
|
7486
|
+
// display first initial of name when no image / icon is provided
|
|
7487
|
+
return jsx("div", {
|
|
7488
|
+
css: [styles.default, styles.user, styles.icon, process.env.NODE_ENV === "production" ? "" : ";label:AvatarImg;"],
|
|
7489
|
+
children: jsx("abbr", {
|
|
7490
|
+
css: styles.abbr,
|
|
7491
|
+
title: props.label.substring(0, 1),
|
|
7492
|
+
children: props.label.substring(0, 1)
|
|
7493
|
+
})
|
|
7494
|
+
});
|
|
7495
|
+
}
|
|
7496
|
+
|
|
7497
|
+
// default to user icon when no user info is provided
|
|
7498
|
+
return jsx("div", {
|
|
7499
|
+
css: [styles.default, styles.user, styles.icon, styles.userIcon, process.env.NODE_ENV === "production" ? "" : ";label:AvatarImg;"],
|
|
7500
|
+
role: "img",
|
|
7501
|
+
"aria-label": "user",
|
|
7502
|
+
children: jsx(SvgUserIcon, {})
|
|
7503
|
+
});
|
|
7504
|
+
}
|
|
7505
|
+
}
|
|
7506
|
+
function Avatar(props) {
|
|
7507
|
+
const {
|
|
7508
|
+
theme
|
|
7509
|
+
} = useDesignSystemTheme();
|
|
7510
|
+
const styles = getAvatarEmotionStyles(theme);
|
|
7511
|
+
if ('displayLabel' in props && props.displayLabel) {
|
|
7512
|
+
return jsxs("div", {
|
|
7513
|
+
css: styles.container,
|
|
7514
|
+
children: [jsx(AvatarImg, {
|
|
7515
|
+
...props
|
|
7516
|
+
}), jsxs("div", {
|
|
7517
|
+
children: [jsx(Typography.Text, {
|
|
7518
|
+
bold: !Boolean(props.caption),
|
|
7519
|
+
children: props.label
|
|
7520
|
+
}), Boolean(props.caption) && jsx(Typography.Hint, {
|
|
7521
|
+
children: props.caption
|
|
7522
|
+
})]
|
|
7523
|
+
})]
|
|
7524
|
+
});
|
|
7525
|
+
}
|
|
7526
|
+
return jsx(AvatarImg, {
|
|
7527
|
+
...props
|
|
7528
|
+
});
|
|
7529
|
+
}
|
|
7530
|
+
function DBAssistantAvatar(props) {
|
|
7531
|
+
return jsx(Avatar, {
|
|
7532
|
+
type: "entity",
|
|
7533
|
+
label: "Assistant",
|
|
7534
|
+
caption: props.caption,
|
|
7535
|
+
displayLabel: props.displayLabel,
|
|
7536
|
+
icon: jsx(SvgDatabricksIcon, {})
|
|
7537
|
+
});
|
|
7538
|
+
}
|
|
7539
|
+
|
|
7236
7540
|
const Breadcrumb = /* #__PURE__ */(() => {
|
|
7237
7541
|
const Breadcrumb = _ref => {
|
|
7238
7542
|
let {
|
|
@@ -7634,6 +7938,7 @@ const Table = /*#__PURE__*/forwardRef(function Table(_ref, ref) {
|
|
|
7634
7938
|
} = useDesignSystemTheme();
|
|
7635
7939
|
const [shouldBeFocusable, setShouldBeFocusable] = useState(false);
|
|
7636
7940
|
const tableContentRef = useRef(null);
|
|
7941
|
+
const useReflowWrapStyles = safex('databricks.fe.wexp.enableReflowWrapStyles', false);
|
|
7637
7942
|
useImperativeHandle(ref, () => tableContentRef.current);
|
|
7638
7943
|
useEffect(() => {
|
|
7639
7944
|
const ref = tableContentRef.current;
|
|
@@ -7671,7 +7976,9 @@ const Table = /*#__PURE__*/forwardRef(function Table(_ref, ref) {
|
|
|
7671
7976
|
['--table-spacing-sm']: `${theme.spacing.sm}px`,
|
|
7672
7977
|
['--table-spacing-xs']: `${theme.spacing.xs}px`
|
|
7673
7978
|
},
|
|
7674
|
-
css: tableStyles$1.tableWrapper,
|
|
7979
|
+
css: [tableStyles$1.tableWrapper, /*#__PURE__*/css(useReflowWrapStyles && {
|
|
7980
|
+
minHeight: !empty && pagination ? 150 : 100
|
|
7981
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Table;"), process.env.NODE_ENV === "production" ? "" : ";label:Table;"],
|
|
7675
7982
|
className: classnames({
|
|
7676
7983
|
'table-isScrollable': scrollable,
|
|
7677
7984
|
'table-isGrid': grid
|
|
@@ -8280,7 +8587,7 @@ const DuboisCheckbox = /*#__PURE__*/forwardRef(function Checkbox(_ref2, ref) {
|
|
|
8280
8587
|
indeterminate: isChecked === null
|
|
8281
8588
|
// Individual checkboxes don't depend on isHorizontal flag, orientation and spacing is handled by end users
|
|
8282
8589
|
,
|
|
8283
|
-
css: /*#__PURE__*/css(importantify(getCheckboxEmotionStyles(clsPrefix, theme, false)), process.env.NODE_ENV === "production" ? "" : ";label:
|
|
8590
|
+
css: /*#__PURE__*/css(importantify(getCheckboxEmotionStyles(clsPrefix, theme, false)), process.env.NODE_ENV === "production" ? "" : ";label:Checkbox;"),
|
|
8284
8591
|
style: style,
|
|
8285
8592
|
"aria-checked": isChecked === null ? 'mixed' : isChecked,
|
|
8286
8593
|
...restProps,
|
|
@@ -8355,8 +8662,7 @@ const Tooltip = _ref => {
|
|
|
8355
8662
|
'aria-relevant': 'additions'
|
|
8356
8663
|
};
|
|
8357
8664
|
if (dataTestId) {
|
|
8358
|
-
|
|
8359
|
-
titleProps['data-test-id'] = dataTestId;
|
|
8665
|
+
titleProps['data-testid'] = dataTestId;
|
|
8360
8666
|
}
|
|
8361
8667
|
const liveTitle = title && /*#__PURE__*/React__default.isValidElement(title) ? /*#__PURE__*/React__default.cloneElement(title, titleProps) : jsx("span", {
|
|
8362
8668
|
...titleProps,
|
|
@@ -8441,6 +8747,56 @@ const InfoTooltip = _ref => {
|
|
|
8441
8747
|
});
|
|
8442
8748
|
};
|
|
8443
8749
|
|
|
8750
|
+
const infoIconStyles = theme => ({
|
|
8751
|
+
display: 'inline-flex',
|
|
8752
|
+
paddingLeft: theme.spacing.xs,
|
|
8753
|
+
color: theme.colors.textSecondary,
|
|
8754
|
+
pointerEvents: 'all'
|
|
8755
|
+
});
|
|
8756
|
+
const getNewChildren = (children, props, disabledReason, ref) => {
|
|
8757
|
+
const childCount = Children.count(children);
|
|
8758
|
+
const tooltip = jsx(Tooltip, {
|
|
8759
|
+
title: disabledReason,
|
|
8760
|
+
placement: "right",
|
|
8761
|
+
dangerouslySetAntdProps: {
|
|
8762
|
+
getPopupContainer: () => ref.current || document.body
|
|
8763
|
+
},
|
|
8764
|
+
children: jsx("span", {
|
|
8765
|
+
css: theme => infoIconStyles(theme),
|
|
8766
|
+
onClick: e => {
|
|
8767
|
+
if (props.disabled) {
|
|
8768
|
+
e.stopPropagation();
|
|
8769
|
+
}
|
|
8770
|
+
},
|
|
8771
|
+
children: jsx(InfoIcon$1, {
|
|
8772
|
+
role: "presentation",
|
|
8773
|
+
alt: "Disabled state reason",
|
|
8774
|
+
"aria-hidden": "false"
|
|
8775
|
+
})
|
|
8776
|
+
})
|
|
8777
|
+
});
|
|
8778
|
+
if (childCount === 1) {
|
|
8779
|
+
return getChild(children, Boolean(props['disabled']), disabledReason, tooltip, 0, childCount);
|
|
8780
|
+
}
|
|
8781
|
+
return Children.map(children, (child, idx) => {
|
|
8782
|
+
return getChild(child, Boolean(props['disabled']), disabledReason, tooltip, idx, childCount);
|
|
8783
|
+
});
|
|
8784
|
+
};
|
|
8785
|
+
const getChild = (child, isDisabled, disabledReason, tooltip, index, siblingCount) => {
|
|
8786
|
+
const HintColumnType = jsx(HintColumn, {}).type;
|
|
8787
|
+
const isHintColumnType = Boolean(child && typeof child !== 'string' && typeof child !== 'number' && typeof child !== 'boolean' && 'type' in child && (child === null || child === void 0 ? void 0 : child.type) === HintColumnType);
|
|
8788
|
+
if (isDisabled && disabledReason && child && isHintColumnType) {
|
|
8789
|
+
return jsxs(Fragment, {
|
|
8790
|
+
children: [tooltip, child]
|
|
8791
|
+
});
|
|
8792
|
+
} else if (index === siblingCount - 1 && isDisabled && disabledReason) {
|
|
8793
|
+
return jsxs(Fragment, {
|
|
8794
|
+
children: [child, tooltip]
|
|
8795
|
+
});
|
|
8796
|
+
}
|
|
8797
|
+
return child;
|
|
8798
|
+
};
|
|
8799
|
+
|
|
8444
8800
|
const Root$5 = DropdownMenu$1.Root; // Behavioral component only
|
|
8445
8801
|
|
|
8446
8802
|
const Content$5 = /*#__PURE__*/forwardRef(function Content(_ref, ref) {
|
|
@@ -8491,14 +8847,69 @@ const SubContent$1 = /*#__PURE__*/forwardRef(function Content(_ref2, ref) {
|
|
|
8491
8847
|
const {
|
|
8492
8848
|
getPopupContainer
|
|
8493
8849
|
} = useDesignSystemContext();
|
|
8850
|
+
const [contentFitsInViewport, setContentFitsInViewport] = React__default.useState(true);
|
|
8851
|
+
const [dataSide, setDataSide] = React__default.useState(null);
|
|
8852
|
+
const {
|
|
8853
|
+
isOpen
|
|
8854
|
+
} = useSubContext();
|
|
8855
|
+
const useResponsiveDropdownPosition = safex('databricks.fe.designsystem.useResponsiveDropdownPosition', false);
|
|
8856
|
+
const elemRef = useRef(null);
|
|
8857
|
+
useImperativeHandle(ref, () => elemRef.current);
|
|
8858
|
+
const checkAvailableWidth = useCallback(() => {
|
|
8859
|
+
if (useResponsiveDropdownPosition) {
|
|
8860
|
+
if (elemRef.current) {
|
|
8861
|
+
const elemStyle = getComputedStyle(elemRef.current);
|
|
8862
|
+
const availableWidth = parseFloat(elemStyle.getPropertyValue('--radix-dropdown-menu-content-available-width'));
|
|
8863
|
+
const elemWidth = elemRef.current.offsetWidth;
|
|
8864
|
+
const openOnSide = elemRef.current.getAttribute('data-side');
|
|
8865
|
+
if (openOnSide === 'left' || openOnSide === 'right') {
|
|
8866
|
+
setDataSide(openOnSide);
|
|
8867
|
+
} else {
|
|
8868
|
+
setDataSide(null);
|
|
8869
|
+
}
|
|
8870
|
+
if (availableWidth < elemWidth) {
|
|
8871
|
+
setContentFitsInViewport(false);
|
|
8872
|
+
} else {
|
|
8873
|
+
setContentFitsInViewport(true);
|
|
8874
|
+
}
|
|
8875
|
+
}
|
|
8876
|
+
}
|
|
8877
|
+
}, [useResponsiveDropdownPosition]);
|
|
8878
|
+
useEffect(() => {
|
|
8879
|
+
if (useResponsiveDropdownPosition) {
|
|
8880
|
+
window.addEventListener('resize', checkAvailableWidth);
|
|
8881
|
+
checkAvailableWidth();
|
|
8882
|
+
return () => {
|
|
8883
|
+
window.removeEventListener('resize', checkAvailableWidth);
|
|
8884
|
+
};
|
|
8885
|
+
}
|
|
8886
|
+
return;
|
|
8887
|
+
}, [useResponsiveDropdownPosition, checkAvailableWidth]);
|
|
8888
|
+
useEffect(() => {
|
|
8889
|
+
if (useResponsiveDropdownPosition) {
|
|
8890
|
+
if (isOpen) {
|
|
8891
|
+
setTimeout(() => {
|
|
8892
|
+
checkAvailableWidth();
|
|
8893
|
+
}, 25);
|
|
8894
|
+
}
|
|
8895
|
+
}
|
|
8896
|
+
}, [isOpen, useResponsiveDropdownPosition, checkAvailableWidth]);
|
|
8897
|
+
let transformCalc = `calc(var(--radix-dropdown-menu-content-available-width) + var(--radix-dropdown-menu-trigger-width) * -1)`;
|
|
8898
|
+
if (dataSide === 'left') {
|
|
8899
|
+
transformCalc = `calc(var(--radix-dropdown-menu-trigger-width) - var(--radix-dropdown-menu-content-available-width))`;
|
|
8900
|
+
}
|
|
8901
|
+
const responsiveCss = `
|
|
8902
|
+
transform-origin: var(--radix-dropdown-menu-content-transform-origin) !important;
|
|
8903
|
+
transform: translateX(${transformCalc}) !important;
|
|
8904
|
+
`;
|
|
8494
8905
|
return jsx(DropdownMenu$1.Portal, {
|
|
8495
8906
|
container: getPopupContainer && getPopupContainer(),
|
|
8496
8907
|
children: jsx(DropdownMenu$1.SubContent, {
|
|
8497
|
-
ref:
|
|
8908
|
+
ref: elemRef,
|
|
8498
8909
|
loop: true,
|
|
8499
8910
|
css: [contentStyles$1, {
|
|
8500
8911
|
minWidth
|
|
8501
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:
|
|
8912
|
+
}, useResponsiveDropdownPosition ? contentFitsInViewport ? '' : responsiveCss : '', process.env.NODE_ENV === "production" ? "" : ";label:Content;"],
|
|
8502
8913
|
sideOffset: -2,
|
|
8503
8914
|
alignOffset: -5,
|
|
8504
8915
|
...props,
|
|
@@ -8584,7 +8995,7 @@ const SubTrigger$1 = /*#__PURE__*/forwardRef(function TriggerItem(_ref7, ref) {
|
|
|
8584
8995
|
'&[data-state="open"]': {
|
|
8585
8996
|
backgroundColor: theme.colors.actionTertiaryBackgroundHover
|
|
8586
8997
|
}
|
|
8587
|
-
}), process.env.NODE_ENV === "production" ? "" : ";label:
|
|
8998
|
+
}), process.env.NODE_ENV === "production" ? "" : ";label:TriggerItem;"],
|
|
8588
8999
|
...props,
|
|
8589
9000
|
children: [getNewChildren(children, props, disabledReason, subTriggerRef), jsx(HintColumn, {
|
|
8590
9001
|
css: theme => ({
|
|
@@ -8687,18 +9098,44 @@ const RadioItem$1 = /*#__PURE__*/forwardRef(function RadioItem(_ref11, ref) {
|
|
|
8687
9098
|
children: getNewChildren(children, props, disabledReason, radioItemRef)
|
|
8688
9099
|
});
|
|
8689
9100
|
});
|
|
9101
|
+
const SubContext = /*#__PURE__*/createContext({
|
|
9102
|
+
isOpen: false
|
|
9103
|
+
});
|
|
9104
|
+
const useSubContext = () => React__default.useContext(SubContext);
|
|
9105
|
+
const Sub$1 = _ref12 => {
|
|
9106
|
+
var _props$defaultOpen;
|
|
9107
|
+
let {
|
|
9108
|
+
children,
|
|
9109
|
+
onOpenChange,
|
|
9110
|
+
...props
|
|
9111
|
+
} = _ref12;
|
|
9112
|
+
const [isOpen, setIsOpen] = React__default.useState((_props$defaultOpen = props.defaultOpen) !== null && _props$defaultOpen !== void 0 ? _props$defaultOpen : false);
|
|
9113
|
+
const handleOpenChange = isOpen => {
|
|
9114
|
+
onOpenChange === null || onOpenChange === void 0 || onOpenChange(isOpen);
|
|
9115
|
+
setIsOpen(isOpen);
|
|
9116
|
+
};
|
|
9117
|
+
return jsx(DropdownMenu$1.Sub, {
|
|
9118
|
+
onOpenChange: handleOpenChange,
|
|
9119
|
+
...props,
|
|
9120
|
+
children: jsx(SubContext.Provider, {
|
|
9121
|
+
value: {
|
|
9122
|
+
isOpen
|
|
9123
|
+
},
|
|
9124
|
+
children: children
|
|
9125
|
+
})
|
|
9126
|
+
});
|
|
9127
|
+
};
|
|
8690
9128
|
|
|
8691
9129
|
// UNWRAPPED RADIX-UI-COMPONENTS
|
|
8692
9130
|
const Group$2 = DropdownMenu$1.Group;
|
|
8693
9131
|
const RadioGroup$1 = DropdownMenu$1.RadioGroup;
|
|
8694
|
-
const Sub$1 = DropdownMenu$1.Sub;
|
|
8695
9132
|
|
|
8696
9133
|
// EXTRA COMPONENTS
|
|
8697
|
-
const HintColumn = /*#__PURE__*/forwardRef(function HintColumn(
|
|
9134
|
+
const HintColumn = /*#__PURE__*/forwardRef(function HintColumn(_ref13, ref) {
|
|
8698
9135
|
let {
|
|
8699
9136
|
children,
|
|
8700
9137
|
...props
|
|
8701
|
-
} =
|
|
9138
|
+
} = _ref13;
|
|
8702
9139
|
return jsx("div", {
|
|
8703
9140
|
ref: ref,
|
|
8704
9141
|
css: [metaTextStyles, "margin-left:auto;" + (process.env.NODE_ENV === "production" ? "" : ";label:HintColumn;")],
|
|
@@ -8706,11 +9143,11 @@ const HintColumn = /*#__PURE__*/forwardRef(function HintColumn(_ref12, ref) {
|
|
|
8706
9143
|
children: children
|
|
8707
9144
|
});
|
|
8708
9145
|
});
|
|
8709
|
-
const HintRow$1 = /*#__PURE__*/forwardRef(function HintRow(
|
|
9146
|
+
const HintRow$1 = /*#__PURE__*/forwardRef(function HintRow(_ref14, ref) {
|
|
8710
9147
|
let {
|
|
8711
9148
|
children,
|
|
8712
9149
|
...props
|
|
8713
|
-
} =
|
|
9150
|
+
} = _ref14;
|
|
8714
9151
|
return jsx("div", {
|
|
8715
9152
|
ref: ref,
|
|
8716
9153
|
css: [metaTextStyles, "min-width:100%;" + (process.env.NODE_ENV === "production" ? "" : ";label:HintRow;")],
|
|
@@ -8718,11 +9155,11 @@ const HintRow$1 = /*#__PURE__*/forwardRef(function HintRow(_ref13, ref) {
|
|
|
8718
9155
|
children: children
|
|
8719
9156
|
});
|
|
8720
9157
|
});
|
|
8721
|
-
const IconWrapper = /*#__PURE__*/forwardRef(function IconWrapper(
|
|
9158
|
+
const IconWrapper = /*#__PURE__*/forwardRef(function IconWrapper(_ref15, ref) {
|
|
8722
9159
|
let {
|
|
8723
9160
|
children,
|
|
8724
9161
|
...props
|
|
8725
|
-
} =
|
|
9162
|
+
} = _ref15;
|
|
8726
9163
|
return jsx("div", {
|
|
8727
9164
|
ref: ref,
|
|
8728
9165
|
css: theme => ({
|
|
@@ -8734,44 +9171,6 @@ const IconWrapper = /*#__PURE__*/forwardRef(function IconWrapper(_ref14, ref) {
|
|
|
8734
9171
|
children: children
|
|
8735
9172
|
});
|
|
8736
9173
|
});
|
|
8737
|
-
const getNewChildren = (children, props, disabledReason, ref) => {
|
|
8738
|
-
const childCount = Children.count(children);
|
|
8739
|
-
const tooltip = jsx(Tooltip, {
|
|
8740
|
-
title: disabledReason,
|
|
8741
|
-
placement: "right",
|
|
8742
|
-
dangerouslySetAntdProps: {
|
|
8743
|
-
getPopupContainer: () => ref.current || document.body
|
|
8744
|
-
},
|
|
8745
|
-
children: jsx("span", {
|
|
8746
|
-
css: theme => infoIconStyles(theme),
|
|
8747
|
-
children: jsx(InfoIcon$1, {
|
|
8748
|
-
role: "presentation",
|
|
8749
|
-
alt: "Disabled state reason",
|
|
8750
|
-
"aria-hidden": "false"
|
|
8751
|
-
})
|
|
8752
|
-
})
|
|
8753
|
-
});
|
|
8754
|
-
if (childCount === 1) {
|
|
8755
|
-
return getChild(children, Boolean(props['disabled']), disabledReason, tooltip, 0, childCount);
|
|
8756
|
-
}
|
|
8757
|
-
return Children.map(children, (child, idx) => {
|
|
8758
|
-
return getChild(child, Boolean(props['disabled']), disabledReason, tooltip, idx, childCount);
|
|
8759
|
-
});
|
|
8760
|
-
};
|
|
8761
|
-
const getChild = (child, isDisabled, disabledReason, tooltip, index, siblingCount) => {
|
|
8762
|
-
const HintColumnType = jsx(HintColumn, {}).type;
|
|
8763
|
-
const isHintColumnType = Boolean(child && typeof child !== 'string' && typeof child !== 'number' && typeof child !== 'boolean' && 'type' in child && (child === null || child === void 0 ? void 0 : child.type) === HintColumnType);
|
|
8764
|
-
if (isDisabled && disabledReason && child && isHintColumnType) {
|
|
8765
|
-
return jsxs(Fragment, {
|
|
8766
|
-
children: [tooltip, child]
|
|
8767
|
-
});
|
|
8768
|
-
} else if (index === siblingCount - 1 && isDisabled && disabledReason) {
|
|
8769
|
-
return jsxs(Fragment, {
|
|
8770
|
-
children: [child, tooltip]
|
|
8771
|
-
});
|
|
8772
|
-
}
|
|
8773
|
-
return child;
|
|
8774
|
-
};
|
|
8775
9174
|
|
|
8776
9175
|
// CONSTANTS
|
|
8777
9176
|
const CONSTANTS$1 = {
|
|
@@ -8866,12 +9265,6 @@ const dangerItemStyles = theme => ({
|
|
|
8866
9265
|
backgroundColor: theme.colors.actionDangerDefaultBackgroundHover
|
|
8867
9266
|
}
|
|
8868
9267
|
});
|
|
8869
|
-
const infoIconStyles = theme => ({
|
|
8870
|
-
display: 'inline-flex',
|
|
8871
|
-
paddingLeft: theme.spacing.xs,
|
|
8872
|
-
color: theme.colors.textSecondary,
|
|
8873
|
-
pointerEvents: 'all'
|
|
8874
|
-
});
|
|
8875
9268
|
const checkboxItemStyles = theme => ({
|
|
8876
9269
|
position: 'relative',
|
|
8877
9270
|
paddingLeft: CONSTANTS$1.checkboxIconWidth(theme) + CONSTANTS$1.checkboxPaddingLeft(theme) + CONSTANTS$1.checkboxPaddingRight(theme)
|
|
@@ -8925,15 +9318,21 @@ const Sub = ContextMenuSub;
|
|
|
8925
9318
|
const SubTrigger = _ref => {
|
|
8926
9319
|
let {
|
|
8927
9320
|
children,
|
|
9321
|
+
disabledReason,
|
|
9322
|
+
withChevron,
|
|
8928
9323
|
...props
|
|
8929
9324
|
} = _ref;
|
|
8930
9325
|
const {
|
|
8931
9326
|
theme
|
|
8932
9327
|
} = useDesignSystemTheme();
|
|
8933
|
-
|
|
9328
|
+
const ref = useRef(null);
|
|
9329
|
+
return jsxs(ContextMenuSubTrigger, {
|
|
8934
9330
|
...props,
|
|
8935
9331
|
css: dropdownItemStyles(theme),
|
|
8936
|
-
|
|
9332
|
+
ref: ref,
|
|
9333
|
+
children: [getNewChildren(children, props, disabledReason, ref), withChevron && jsx(ContextMenu.Hint, {
|
|
9334
|
+
children: jsx(ChevronRightIcon, {})
|
|
9335
|
+
})]
|
|
8937
9336
|
});
|
|
8938
9337
|
};
|
|
8939
9338
|
const Content$4 = _ref2 => {
|
|
@@ -8985,28 +9384,34 @@ const SubContent = _ref3 => {
|
|
|
8985
9384
|
const Item = _ref4 => {
|
|
8986
9385
|
let {
|
|
8987
9386
|
children,
|
|
9387
|
+
disabledReason,
|
|
8988
9388
|
...props
|
|
8989
9389
|
} = _ref4;
|
|
8990
9390
|
const {
|
|
8991
9391
|
theme
|
|
8992
9392
|
} = useDesignSystemTheme();
|
|
9393
|
+
const ref = useRef(null);
|
|
8993
9394
|
return jsx(ContextMenuItem, {
|
|
8994
9395
|
...props,
|
|
8995
9396
|
css: dropdownItemStyles(theme),
|
|
8996
|
-
|
|
9397
|
+
ref: ref,
|
|
9398
|
+
children: getNewChildren(children, props, disabledReason, ref)
|
|
8997
9399
|
});
|
|
8998
9400
|
};
|
|
8999
9401
|
const CheckboxItem = _ref5 => {
|
|
9000
9402
|
let {
|
|
9001
9403
|
children,
|
|
9404
|
+
disabledReason,
|
|
9002
9405
|
...props
|
|
9003
9406
|
} = _ref5;
|
|
9004
9407
|
const {
|
|
9005
9408
|
theme
|
|
9006
9409
|
} = useDesignSystemTheme();
|
|
9410
|
+
const ref = useRef(null);
|
|
9007
9411
|
return jsxs(ContextMenuCheckboxItem, {
|
|
9008
9412
|
...props,
|
|
9009
9413
|
css: dropdownItemStyles(theme),
|
|
9414
|
+
ref: ref,
|
|
9010
9415
|
children: [jsx(ContextMenuItemIndicator, {
|
|
9011
9416
|
css: itemIndicatorStyles(theme),
|
|
9012
9417
|
children: jsx(CheckIcon, {})
|
|
@@ -9014,17 +9419,19 @@ const CheckboxItem = _ref5 => {
|
|
|
9014
9419
|
style: {
|
|
9015
9420
|
width: theme.general.iconFontSize + theme.spacing.xs
|
|
9016
9421
|
}
|
|
9017
|
-
}), children]
|
|
9422
|
+
}), getNewChildren(children, props, disabledReason, ref)]
|
|
9018
9423
|
});
|
|
9019
9424
|
};
|
|
9020
9425
|
const RadioItem = _ref6 => {
|
|
9021
9426
|
let {
|
|
9022
9427
|
children,
|
|
9428
|
+
disabledReason,
|
|
9023
9429
|
...props
|
|
9024
9430
|
} = _ref6;
|
|
9025
9431
|
const {
|
|
9026
9432
|
theme
|
|
9027
9433
|
} = useDesignSystemTheme();
|
|
9434
|
+
const ref = useRef(null);
|
|
9028
9435
|
return jsxs(ContextMenuRadioItem, {
|
|
9029
9436
|
...props,
|
|
9030
9437
|
css: [dropdownItemStyles(theme), {
|
|
@@ -9032,10 +9439,11 @@ const RadioItem = _ref6 => {
|
|
|
9032
9439
|
paddingLeft: theme.general.iconFontSize + theme.spacing.xs + theme.spacing.sm
|
|
9033
9440
|
}
|
|
9034
9441
|
}, process.env.NODE_ENV === "production" ? "" : ";label:RadioItem;"],
|
|
9442
|
+
ref: ref,
|
|
9035
9443
|
children: [jsx(ContextMenuItemIndicator, {
|
|
9036
9444
|
css: itemIndicatorStyles(theme),
|
|
9037
9445
|
children: jsx(CheckIcon, {})
|
|
9038
|
-
}), children]
|
|
9446
|
+
}), getNewChildren(children, props, disabledReason, ref)]
|
|
9039
9447
|
});
|
|
9040
9448
|
};
|
|
9041
9449
|
const Label$1 = _ref7 => {
|
|
@@ -9168,20 +9576,48 @@ function useDatePickerStyles() {
|
|
|
9168
9576
|
const clsPrefix = getPrefixedClassName('picker');
|
|
9169
9577
|
return getEmotionStyles(clsPrefix, theme);
|
|
9170
9578
|
}
|
|
9579
|
+
const AccessibilityWrapper = _ref => {
|
|
9580
|
+
let {
|
|
9581
|
+
children,
|
|
9582
|
+
ariaLive = 'assertive',
|
|
9583
|
+
...restProps
|
|
9584
|
+
} = _ref;
|
|
9585
|
+
const ref = useRef(null);
|
|
9586
|
+
useEffect(() => {
|
|
9587
|
+
if (ref.current) {
|
|
9588
|
+
const inputs = ref.current.querySelectorAll('.du-bois-light-picker-input > input');
|
|
9589
|
+
inputs.forEach(input => input.setAttribute('aria-live', ariaLive));
|
|
9590
|
+
}
|
|
9591
|
+
}, [ref, ariaLive]);
|
|
9592
|
+
return jsx("div", {
|
|
9593
|
+
...restProps,
|
|
9594
|
+
ref: ref,
|
|
9595
|
+
children: children
|
|
9596
|
+
});
|
|
9597
|
+
};
|
|
9171
9598
|
const DuboisDatePicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
9172
9599
|
const styles = useDatePickerStyles();
|
|
9173
9600
|
const {
|
|
9174
9601
|
theme
|
|
9175
9602
|
} = useDesignSystemTheme();
|
|
9603
|
+
const {
|
|
9604
|
+
ariaLive,
|
|
9605
|
+
wrapperDivProps,
|
|
9606
|
+
...restProps
|
|
9607
|
+
} = props;
|
|
9176
9608
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
9177
|
-
children: jsx(
|
|
9178
|
-
|
|
9179
|
-
|
|
9180
|
-
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
...
|
|
9184
|
-
|
|
9609
|
+
children: jsx(AccessibilityWrapper, {
|
|
9610
|
+
...wrapperDivProps,
|
|
9611
|
+
ariaLive: ariaLive,
|
|
9612
|
+
children: jsx(DatePicker, {
|
|
9613
|
+
css: styles,
|
|
9614
|
+
ref: ref,
|
|
9615
|
+
...restProps,
|
|
9616
|
+
popupStyle: {
|
|
9617
|
+
...getDropdownStyles$1(theme),
|
|
9618
|
+
...(props.popupStyle || {})
|
|
9619
|
+
}
|
|
9620
|
+
})
|
|
9185
9621
|
})
|
|
9186
9622
|
});
|
|
9187
9623
|
});
|
|
@@ -9190,15 +9626,24 @@ const RangePicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9190
9626
|
const {
|
|
9191
9627
|
theme
|
|
9192
9628
|
} = useDesignSystemTheme();
|
|
9629
|
+
const {
|
|
9630
|
+
ariaLive,
|
|
9631
|
+
wrapperDivProps,
|
|
9632
|
+
...restProps
|
|
9633
|
+
} = props;
|
|
9193
9634
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
9194
|
-
children: jsx(
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
...
|
|
9200
|
-
|
|
9201
|
-
|
|
9635
|
+
children: jsx(AccessibilityWrapper, {
|
|
9636
|
+
...wrapperDivProps,
|
|
9637
|
+
ariaLive: ariaLive,
|
|
9638
|
+
children: jsx(DatePicker.RangePicker, {
|
|
9639
|
+
css: styles,
|
|
9640
|
+
...restProps,
|
|
9641
|
+
ref: ref,
|
|
9642
|
+
popupStyle: {
|
|
9643
|
+
...getDropdownStyles$1(theme),
|
|
9644
|
+
...(props.popupStyle || {})
|
|
9645
|
+
}
|
|
9646
|
+
})
|
|
9202
9647
|
})
|
|
9203
9648
|
});
|
|
9204
9649
|
});
|
|
@@ -9207,15 +9652,24 @@ const TimePicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9207
9652
|
const {
|
|
9208
9653
|
theme
|
|
9209
9654
|
} = useDesignSystemTheme();
|
|
9655
|
+
const {
|
|
9656
|
+
ariaLive,
|
|
9657
|
+
wrapperDivProps,
|
|
9658
|
+
...restProps
|
|
9659
|
+
} = props;
|
|
9210
9660
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
9211
|
-
children: jsx(
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
|
|
9215
|
-
|
|
9216
|
-
...
|
|
9217
|
-
|
|
9218
|
-
|
|
9661
|
+
children: jsx(AccessibilityWrapper, {
|
|
9662
|
+
...wrapperDivProps,
|
|
9663
|
+
ariaLive: ariaLive,
|
|
9664
|
+
children: jsx(DatePicker.TimePicker, {
|
|
9665
|
+
css: styles,
|
|
9666
|
+
...restProps,
|
|
9667
|
+
ref: ref,
|
|
9668
|
+
popupStyle: {
|
|
9669
|
+
...getDropdownStyles$1(theme),
|
|
9670
|
+
...(props.popupStyle || {})
|
|
9671
|
+
}
|
|
9672
|
+
})
|
|
9219
9673
|
})
|
|
9220
9674
|
});
|
|
9221
9675
|
});
|
|
@@ -9224,15 +9678,24 @@ const QuarterPicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9224
9678
|
const {
|
|
9225
9679
|
theme
|
|
9226
9680
|
} = useDesignSystemTheme();
|
|
9681
|
+
const {
|
|
9682
|
+
ariaLive,
|
|
9683
|
+
wrapperDivProps,
|
|
9684
|
+
...restProps
|
|
9685
|
+
} = props;
|
|
9227
9686
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
9228
|
-
children: jsx(
|
|
9229
|
-
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
|
-
|
|
9233
|
-
...
|
|
9234
|
-
|
|
9235
|
-
|
|
9687
|
+
children: jsx(AccessibilityWrapper, {
|
|
9688
|
+
...wrapperDivProps,
|
|
9689
|
+
ariaLive: ariaLive,
|
|
9690
|
+
children: jsx(DatePicker.QuarterPicker, {
|
|
9691
|
+
css: styles,
|
|
9692
|
+
...restProps,
|
|
9693
|
+
ref: ref,
|
|
9694
|
+
popupStyle: {
|
|
9695
|
+
...getDropdownStyles$1(theme),
|
|
9696
|
+
...(props.popupStyle || {})
|
|
9697
|
+
}
|
|
9698
|
+
})
|
|
9236
9699
|
})
|
|
9237
9700
|
});
|
|
9238
9701
|
});
|
|
@@ -9241,15 +9704,24 @@ const WeekPicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9241
9704
|
const {
|
|
9242
9705
|
theme
|
|
9243
9706
|
} = useDesignSystemTheme();
|
|
9707
|
+
const {
|
|
9708
|
+
ariaLive,
|
|
9709
|
+
wrapperDivProps,
|
|
9710
|
+
...restProps
|
|
9711
|
+
} = props;
|
|
9244
9712
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
9245
|
-
children: jsx(
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
...
|
|
9251
|
-
|
|
9252
|
-
|
|
9713
|
+
children: jsx(AccessibilityWrapper, {
|
|
9714
|
+
...wrapperDivProps,
|
|
9715
|
+
ariaLive: ariaLive,
|
|
9716
|
+
children: jsx(DatePicker.WeekPicker, {
|
|
9717
|
+
css: styles,
|
|
9718
|
+
...restProps,
|
|
9719
|
+
ref: ref,
|
|
9720
|
+
popupStyle: {
|
|
9721
|
+
...getDropdownStyles$1(theme),
|
|
9722
|
+
...(props.popupStyle || {})
|
|
9723
|
+
}
|
|
9724
|
+
})
|
|
9253
9725
|
})
|
|
9254
9726
|
});
|
|
9255
9727
|
});
|
|
@@ -9258,15 +9730,24 @@ const MonthPicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9258
9730
|
const {
|
|
9259
9731
|
theme
|
|
9260
9732
|
} = useDesignSystemTheme();
|
|
9733
|
+
const {
|
|
9734
|
+
ariaLive,
|
|
9735
|
+
wrapperDivProps,
|
|
9736
|
+
...restProps
|
|
9737
|
+
} = props;
|
|
9261
9738
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
9262
|
-
children: jsx(
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
|
|
9267
|
-
...
|
|
9268
|
-
|
|
9269
|
-
|
|
9739
|
+
children: jsx(AccessibilityWrapper, {
|
|
9740
|
+
...wrapperDivProps,
|
|
9741
|
+
ariaLive: ariaLive,
|
|
9742
|
+
children: jsx(DatePicker.MonthPicker, {
|
|
9743
|
+
css: styles,
|
|
9744
|
+
...restProps,
|
|
9745
|
+
ref: ref,
|
|
9746
|
+
popupStyle: {
|
|
9747
|
+
...getDropdownStyles$1(theme),
|
|
9748
|
+
...(props.popupStyle || {})
|
|
9749
|
+
}
|
|
9750
|
+
})
|
|
9270
9751
|
})
|
|
9271
9752
|
});
|
|
9272
9753
|
});
|
|
@@ -9275,15 +9756,24 @@ const YearPicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9275
9756
|
const {
|
|
9276
9757
|
theme
|
|
9277
9758
|
} = useDesignSystemTheme();
|
|
9759
|
+
const {
|
|
9760
|
+
ariaLive,
|
|
9761
|
+
wrapperDivProps,
|
|
9762
|
+
...restProps
|
|
9763
|
+
} = props;
|
|
9278
9764
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
9279
|
-
children: jsx(
|
|
9280
|
-
|
|
9281
|
-
|
|
9282
|
-
|
|
9283
|
-
|
|
9284
|
-
...
|
|
9285
|
-
|
|
9286
|
-
|
|
9765
|
+
children: jsx(AccessibilityWrapper, {
|
|
9766
|
+
...wrapperDivProps,
|
|
9767
|
+
ariaLive: ariaLive,
|
|
9768
|
+
children: jsx(DatePicker.YearPicker, {
|
|
9769
|
+
css: styles,
|
|
9770
|
+
...restProps,
|
|
9771
|
+
ref: ref,
|
|
9772
|
+
popupStyle: {
|
|
9773
|
+
...getDropdownStyles$1(theme),
|
|
9774
|
+
...(props.popupStyle || {})
|
|
9775
|
+
}
|
|
9776
|
+
})
|
|
9287
9777
|
})
|
|
9288
9778
|
});
|
|
9289
9779
|
});
|
|
@@ -9608,6 +10098,13 @@ function findClosestOptionSibling(element, direction) {
|
|
|
9608
10098
|
}
|
|
9609
10099
|
return null;
|
|
9610
10100
|
}
|
|
10101
|
+
const resetAllHighlightedOptions = currentSelection => {
|
|
10102
|
+
const options = getContentOptions(currentSelection);
|
|
10103
|
+
options === null || options === void 0 || options.forEach(option => {
|
|
10104
|
+
option.setAttribute('tabIndex', '-1');
|
|
10105
|
+
option.setAttribute('data-highlighted', 'false');
|
|
10106
|
+
});
|
|
10107
|
+
};
|
|
9611
10108
|
const highlightOption = function (currentSelection, prevSelection) {
|
|
9612
10109
|
var _currentSelection$scr;
|
|
9613
10110
|
let focus = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
@@ -9685,10 +10182,7 @@ const getKeyboardNavigationFunctions = (handleSelect, _ref) => {
|
|
|
9685
10182
|
};
|
|
9686
10183
|
};
|
|
9687
10184
|
const resetTabIndexToFocusedElement = elem => {
|
|
9688
|
-
|
|
9689
|
-
(_elem$closest = elem.closest('[role="list"]')) === null || _elem$closest === void 0 || _elem$closest.querySelectorAll('[role="option"]').forEach(el => {
|
|
9690
|
-
el.setAttribute('tabIndex', '-1');
|
|
9691
|
-
});
|
|
10185
|
+
resetAllHighlightedOptions(elem);
|
|
9692
10186
|
elem.setAttribute('tabIndex', '0');
|
|
9693
10187
|
elem.focus();
|
|
9694
10188
|
};
|
|
@@ -9885,7 +10379,46 @@ const getHintColumnStyles = (theme, disabled, textOverflowMode) => {
|
|
|
9885
10379
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getHintColumnStyles;");
|
|
9886
10380
|
};
|
|
9887
10381
|
|
|
10382
|
+
const DialogComboboxAddButton = _ref => {
|
|
10383
|
+
let {
|
|
10384
|
+
children,
|
|
10385
|
+
...restProps
|
|
10386
|
+
} = _ref;
|
|
10387
|
+
const {
|
|
10388
|
+
theme
|
|
10389
|
+
} = useDesignSystemTheme();
|
|
10390
|
+
const {
|
|
10391
|
+
isInsideDialogCombobox
|
|
10392
|
+
} = useDialogComboboxContext();
|
|
10393
|
+
if (!isInsideDialogCombobox) {
|
|
10394
|
+
throw new Error('`DialogComboboxAddButton` must be used within `DialogCombobox`');
|
|
10395
|
+
}
|
|
10396
|
+
return jsx(Button, {
|
|
10397
|
+
componentId: "codegen_design-system_src_design-system_dialogcombobox_dialogcomboboxaddbutton.tsx_19",
|
|
10398
|
+
...restProps,
|
|
10399
|
+
type: "tertiary",
|
|
10400
|
+
className: "combobox-footer-add-button",
|
|
10401
|
+
css: /*#__PURE__*/css({
|
|
10402
|
+
...getComboboxOptionItemWrapperStyles(theme),
|
|
10403
|
+
... /*#__PURE__*/css(importantify({
|
|
10404
|
+
width: '100%',
|
|
10405
|
+
padding: 0,
|
|
10406
|
+
display: 'flex',
|
|
10407
|
+
alignItems: 'center',
|
|
10408
|
+
borderRadius: 0,
|
|
10409
|
+
'&:focus': {
|
|
10410
|
+
background: theme.colors.actionTertiaryBackgroundHover,
|
|
10411
|
+
outline: 'none'
|
|
10412
|
+
}
|
|
10413
|
+
}), process.env.NODE_ENV === "production" ? "" : ";label:DialogComboboxAddButton;")
|
|
10414
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:DialogComboboxAddButton;"),
|
|
10415
|
+
icon: jsx(PlusIcon$1, {}),
|
|
10416
|
+
children: children
|
|
10417
|
+
});
|
|
10418
|
+
};
|
|
10419
|
+
|
|
9888
10420
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$n() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
10421
|
+
const defaultMaxHeight = 'var(--radix-popover-content-available-height)';
|
|
9889
10422
|
var _ref2$g = process.env.NODE_ENV === "production" ? {
|
|
9890
10423
|
name: "1ij1o5n",
|
|
9891
10424
|
styles: "display:flex;flex-direction:column;align-items:flex-start;justify-content:center"
|
|
@@ -9901,7 +10434,7 @@ const DialogComboboxContent = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
|
|
|
9901
10434
|
loadingDescription = 'DialogComboboxContent',
|
|
9902
10435
|
matchTriggerWidth,
|
|
9903
10436
|
textOverflowMode,
|
|
9904
|
-
maxHeight
|
|
10437
|
+
maxHeight,
|
|
9905
10438
|
maxWidth,
|
|
9906
10439
|
minHeight,
|
|
9907
10440
|
minWidth = 240,
|
|
@@ -9976,7 +10509,7 @@ const DialogComboboxContent = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
|
|
|
9976
10509
|
role: "listbox",
|
|
9977
10510
|
"aria-multiselectable": multiSelect,
|
|
9978
10511
|
css: getComboboxContentWrapperStyles(theme, {
|
|
9979
|
-
maxHeight,
|
|
10512
|
+
maxHeight: maxHeight ? `min(${maxHeight}px, ${defaultMaxHeight})` : defaultMaxHeight,
|
|
9980
10513
|
maxWidth,
|
|
9981
10514
|
minHeight,
|
|
9982
10515
|
minWidth,
|
|
@@ -11435,7 +11968,7 @@ function getEmptyDescriptionStyles(theme, clsPrefix) {
|
|
|
11435
11968
|
};
|
|
11436
11969
|
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEmptyDescriptionStyles;");
|
|
11437
11970
|
}
|
|
11438
|
-
var _ref$
|
|
11971
|
+
var _ref$6 = process.env.NODE_ENV === "production" ? {
|
|
11439
11972
|
name: "zl1inp",
|
|
11440
11973
|
styles: "display:flex;justify-content:center"
|
|
11441
11974
|
} : {
|
|
@@ -11458,7 +11991,7 @@ const Empty = props => {
|
|
|
11458
11991
|
} = props;
|
|
11459
11992
|
return jsx("div", {
|
|
11460
11993
|
...dataProps,
|
|
11461
|
-
css: _ref$
|
|
11994
|
+
css: _ref$6,
|
|
11462
11995
|
children: jsxs("div", {
|
|
11463
11996
|
css: [getEmptyStyles(theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Empty;"],
|
|
11464
11997
|
children: [image, title && jsx(Title$1, {
|
|
@@ -11701,339 +12234,11 @@ const Label = props => {
|
|
|
11701
12234
|
});
|
|
11702
12235
|
};
|
|
11703
12236
|
|
|
11704
|
-
|
|
12237
|
+
function getSelectEmotionStyles(_ref) {
|
|
11705
12238
|
let {
|
|
11706
12239
|
clsPrefix,
|
|
11707
12240
|
theme,
|
|
11708
|
-
|
|
11709
|
-
} = _ref;
|
|
11710
|
-
return {
|
|
11711
|
-
[`.${clsPrefix}`]: {
|
|
11712
|
-
alignSelf: 'start',
|
|
11713
|
-
// Unchecked Styles
|
|
11714
|
-
[`> .${clsPrefix}-input + .${clsPrefix}-inner`]: {
|
|
11715
|
-
width: theme.spacing.md,
|
|
11716
|
-
height: theme.spacing.md,
|
|
11717
|
-
background: useNewStyles ? theme.colors.actionDefaultBackgroundDefault : theme.colors.radioDefaultBackground,
|
|
11718
|
-
borderStyle: 'solid',
|
|
11719
|
-
borderColor: useNewStyles ? theme.colors.actionDefaultBorderDefault : theme.colors.radioDefaultBorder,
|
|
11720
|
-
boxShadow: 'unset',
|
|
11721
|
-
transform: 'unset',
|
|
11722
|
-
// This prevents an awkward jitter on the border
|
|
11723
|
-
display: 'flex',
|
|
11724
|
-
justifyContent: 'center',
|
|
11725
|
-
alignItems: 'center',
|
|
11726
|
-
borderRadius: '50%',
|
|
11727
|
-
'&:after': {
|
|
11728
|
-
all: 'unset'
|
|
11729
|
-
}
|
|
11730
|
-
},
|
|
11731
|
-
// Hover
|
|
11732
|
-
[`&:not(.${clsPrefix}-disabled) > .${clsPrefix}-input:hover + .${clsPrefix}-inner`]: {
|
|
11733
|
-
borderColor: useNewStyles ? theme.colors.actionPrimaryBackgroundHover : theme.colors.radioInteractiveHover,
|
|
11734
|
-
background: useNewStyles ? theme.colors.actionDefaultBackgroundHover : theme.colors.radioInteractiveHoverSecondary
|
|
11735
|
-
},
|
|
11736
|
-
// Focus
|
|
11737
|
-
[`&:not(.${clsPrefix}-disabled)> .${clsPrefix}-input:focus + .${clsPrefix}-inner`]: {
|
|
11738
|
-
borderColor: useNewStyles ? theme.colors.actionPrimaryBackgroundDefault : theme.colors.primary
|
|
11739
|
-
},
|
|
11740
|
-
// Active
|
|
11741
|
-
[`&:not(.${clsPrefix}-disabled)> .${clsPrefix}-input:active + .${clsPrefix}-inner`]: {
|
|
11742
|
-
borderColor: useNewStyles ? theme.colors.actionPrimaryBackgroundPress : theme.colors.radioInteractivePress,
|
|
11743
|
-
background: useNewStyles ? theme.colors.actionDefaultBackgroundPress : theme.colors.radioInteractivePressSecondary
|
|
11744
|
-
},
|
|
11745
|
-
// Disabled
|
|
11746
|
-
[`&.${clsPrefix}-disabled > .${clsPrefix}-input + .${clsPrefix}-inner`]: {
|
|
11747
|
-
...(useNewStyles ? {
|
|
11748
|
-
border: `none !important`,
|
|
11749
|
-
// Ant uses !important
|
|
11750
|
-
background: theme.colors.actionDisabledBackground
|
|
11751
|
-
} : {
|
|
11752
|
-
borderColor: `${theme.colors.radioDisabled}!important` // Ant uses !important
|
|
11753
|
-
}),
|
|
11754
|
-
|
|
11755
|
-
'@media (forced-colors: active)': {
|
|
11756
|
-
borderColor: 'GrayText !important'
|
|
11757
|
-
}
|
|
11758
|
-
},
|
|
11759
|
-
// Checked Styles
|
|
11760
|
-
[`&.${clsPrefix}-checked`]: {
|
|
11761
|
-
'&:after': {
|
|
11762
|
-
border: 'unset'
|
|
11763
|
-
},
|
|
11764
|
-
[`> .${clsPrefix}-input + .${clsPrefix}-inner`]: {
|
|
11765
|
-
background: useNewStyles ? theme.colors.actionPrimaryBackgroundDefault : theme.colors.primary,
|
|
11766
|
-
borderColor: theme.colors.primary,
|
|
11767
|
-
'&:after': {
|
|
11768
|
-
content: `""`,
|
|
11769
|
-
borderRadius: theme.spacing.xs,
|
|
11770
|
-
backgroundColor: useNewStyles ? theme.colors.white : theme.colors.radioDefaultBackground,
|
|
11771
|
-
width: theme.spacing.xs,
|
|
11772
|
-
height: theme.spacing.xs
|
|
11773
|
-
},
|
|
11774
|
-
'@media (forced-colors: active)': {
|
|
11775
|
-
borderColor: 'Highlight !important',
|
|
11776
|
-
backgroundColor: 'Highlight !important'
|
|
11777
|
-
}
|
|
11778
|
-
},
|
|
11779
|
-
// Hover
|
|
11780
|
-
[`&:not(.${clsPrefix}-disabled) > .${clsPrefix}-input:hover + .${clsPrefix}-inner`]: {
|
|
11781
|
-
background: useNewStyles ? theme.colors.actionPrimaryBackgroundHover : theme.colors.radioInteractiveHover,
|
|
11782
|
-
borderColor: useNewStyles ? theme.colors.actionPrimaryBackgroundPress : theme.colors.radioInteractiveHover
|
|
11783
|
-
},
|
|
11784
|
-
// Focus
|
|
11785
|
-
[`&:not(.${clsPrefix}-disabled) > .${clsPrefix}-input:focus-visible + .${clsPrefix}-inner`]: {
|
|
11786
|
-
background: useNewStyles ? theme.colors.actionDefaultBackgroundPress : theme.colors.primary,
|
|
11787
|
-
borderColor: useNewStyles ? theme.colors.actionDefaultBorderFocus : theme.colors.primary,
|
|
11788
|
-
boxShadow: `0 0 0 1px ${useNewStyles ? theme.colors.actionDefaultBackgroundDefault : theme.colors.radioDefaultBackground}, 0 0 0 3px ${theme.colors.primary}`
|
|
11789
|
-
},
|
|
11790
|
-
// Active
|
|
11791
|
-
[`&:not(.${clsPrefix}-disabled) > .${clsPrefix}-input:active + .${clsPrefix}-inner`]: {
|
|
11792
|
-
background: useNewStyles ? theme.colors.actionDefaultBackgroundPress : theme.colors.radioInteractivePress,
|
|
11793
|
-
borderColor: useNewStyles ? theme.colors.actionDefaultBorderPress : theme.colors.radioInteractivePress
|
|
11794
|
-
},
|
|
11795
|
-
// Disabled
|
|
11796
|
-
[`&.${clsPrefix}-disabled > .${clsPrefix}-input + .${clsPrefix}-inner`]: {
|
|
11797
|
-
background: useNewStyles ? theme.colors.actionDisabledBackground : theme.colors.radioDisabled,
|
|
11798
|
-
border: useNewStyles ? 'none !important' : `2px solid ${theme.colors.radioDisabled}!important`,
|
|
11799
|
-
// !important inherited from ant
|
|
11800
|
-
'@media (forced-colors: active)': {
|
|
11801
|
-
borderColor: 'GrayText !important',
|
|
11802
|
-
backgroundColor: 'GrayText !important'
|
|
11803
|
-
}
|
|
11804
|
-
}
|
|
11805
|
-
}
|
|
11806
|
-
}
|
|
11807
|
-
};
|
|
11808
|
-
};
|
|
11809
|
-
const getCommonRadioGroupStyles = _ref2 => {
|
|
11810
|
-
let {
|
|
11811
|
-
theme,
|
|
11812
|
-
clsPrefix,
|
|
11813
|
-
classNamePrefix,
|
|
11814
|
-
useNewStyles
|
|
11815
|
-
} = _ref2;
|
|
11816
|
-
return /*#__PURE__*/css({
|
|
11817
|
-
'& > label': {
|
|
11818
|
-
...(useNewStyles && {
|
|
11819
|
-
[`&.${classNamePrefix}-radio-wrapper-disabled > span`]: {
|
|
11820
|
-
color: theme.colors.actionDisabledText
|
|
11821
|
-
}
|
|
11822
|
-
})
|
|
11823
|
-
},
|
|
11824
|
-
[`& > label + .${classNamePrefix}-hint`]: {
|
|
11825
|
-
paddingLeft: theme.spacing.lg
|
|
11826
|
-
},
|
|
11827
|
-
...getRadioInputStyles({
|
|
11828
|
-
theme,
|
|
11829
|
-
clsPrefix,
|
|
11830
|
-
useNewStyles
|
|
11831
|
-
}),
|
|
11832
|
-
...getAnimationCss(theme.options.enableAnimation)
|
|
11833
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getCommonRadioGroupStyles;");
|
|
11834
|
-
};
|
|
11835
|
-
const getHorizontalRadioGroupStyles = _ref3 => {
|
|
11836
|
-
let {
|
|
11837
|
-
theme,
|
|
11838
|
-
classNamePrefix,
|
|
11839
|
-
useNewStyles
|
|
11840
|
-
} = _ref3;
|
|
11841
|
-
return /*#__PURE__*/css({
|
|
11842
|
-
'&&': {
|
|
11843
|
-
display: 'grid',
|
|
11844
|
-
gridTemplateRows: '[label] auto [hint] auto',
|
|
11845
|
-
gridAutoColumns: 'max-content',
|
|
11846
|
-
gridColumnGap: useNewStyles ? theme.spacing.md : theme.spacing.sm
|
|
11847
|
-
},
|
|
11848
|
-
'& > label': {
|
|
11849
|
-
gridRow: 'label / label',
|
|
11850
|
-
marginRight: 0
|
|
11851
|
-
},
|
|
11852
|
-
[`& > label + .${classNamePrefix}-hint`]: {
|
|
11853
|
-
display: 'inline-block',
|
|
11854
|
-
gridRow: 'hint / hint'
|
|
11855
|
-
}
|
|
11856
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getHorizontalRadioGroupStyles;");
|
|
11857
|
-
};
|
|
11858
|
-
const getVerticalRadioGroupStyles = _ref4 => {
|
|
11859
|
-
let {
|
|
11860
|
-
theme,
|
|
11861
|
-
classNamePrefix,
|
|
11862
|
-
useNewStyles
|
|
11863
|
-
} = _ref4;
|
|
11864
|
-
return /*#__PURE__*/css({
|
|
11865
|
-
display: 'flex',
|
|
11866
|
-
flexDirection: 'column',
|
|
11867
|
-
flexWrap: 'wrap',
|
|
11868
|
-
'& > label': {
|
|
11869
|
-
fontWeight: 'normal',
|
|
11870
|
-
...(useNewStyles && {
|
|
11871
|
-
paddingBottom: theme.spacing.sm
|
|
11872
|
-
})
|
|
11873
|
-
},
|
|
11874
|
-
[`& > label:last-of-type`]: {
|
|
11875
|
-
paddingBottom: 0
|
|
11876
|
-
},
|
|
11877
|
-
[`& > label + .${classNamePrefix}-hint`]: {
|
|
11878
|
-
marginBottom: theme.spacing.sm,
|
|
11879
|
-
paddingLeft: theme.spacing.lg,
|
|
11880
|
-
...(useNewStyles && {
|
|
11881
|
-
marginTop: `-${theme.spacing.sm}px`
|
|
11882
|
-
})
|
|
11883
|
-
},
|
|
11884
|
-
[`& > label:last-of-type + .${classNamePrefix}-hint`]: {
|
|
11885
|
-
...(useNewStyles && {
|
|
11886
|
-
marginTop: 0
|
|
11887
|
-
})
|
|
11888
|
-
}
|
|
11889
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getVerticalRadioGroupStyles;");
|
|
11890
|
-
};
|
|
11891
|
-
const getRadioStyles = _ref5 => {
|
|
11892
|
-
let {
|
|
11893
|
-
theme,
|
|
11894
|
-
clsPrefix,
|
|
11895
|
-
useNewStyles
|
|
11896
|
-
} = _ref5;
|
|
11897
|
-
// Default as bold for standalone radios
|
|
11898
|
-
const fontWeight = 'normal';
|
|
11899
|
-
const styles = {
|
|
11900
|
-
fontWeight
|
|
11901
|
-
};
|
|
11902
|
-
return /*#__PURE__*/css({
|
|
11903
|
-
...getRadioInputStyles({
|
|
11904
|
-
theme,
|
|
11905
|
-
clsPrefix,
|
|
11906
|
-
useNewStyles
|
|
11907
|
-
}),
|
|
11908
|
-
...styles
|
|
11909
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getRadioStyles;");
|
|
11910
|
-
};
|
|
11911
|
-
const DuboisRadio = /*#__PURE__*/forwardRef(function Radio(_ref6, ref) {
|
|
11912
|
-
let {
|
|
11913
|
-
children,
|
|
11914
|
-
dangerouslySetAntdProps,
|
|
11915
|
-
...props
|
|
11916
|
-
} = _ref6;
|
|
11917
|
-
const {
|
|
11918
|
-
theme,
|
|
11919
|
-
getPrefixedClassName
|
|
11920
|
-
} = useDesignSystemTheme();
|
|
11921
|
-
const useNewStyles = safex('databricks.fe.designsystem.enableNewRadioStyles', false);
|
|
11922
|
-
const clsPrefix = getPrefixedClassName('radio');
|
|
11923
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
11924
|
-
children: jsx(Radio$1, {
|
|
11925
|
-
css: getRadioStyles({
|
|
11926
|
-
theme,
|
|
11927
|
-
clsPrefix,
|
|
11928
|
-
useNewStyles
|
|
11929
|
-
}),
|
|
11930
|
-
...props,
|
|
11931
|
-
...dangerouslySetAntdProps,
|
|
11932
|
-
ref: ref,
|
|
11933
|
-
children: jsx(RestoreAntDDefaultClsPrefix, {
|
|
11934
|
-
children: children
|
|
11935
|
-
})
|
|
11936
|
-
})
|
|
11937
|
-
});
|
|
11938
|
-
});
|
|
11939
|
-
const StyledRadioGroup = /*#__PURE__*/forwardRef(function StyledRadioGroup(_ref7, ref) {
|
|
11940
|
-
let {
|
|
11941
|
-
children,
|
|
11942
|
-
dangerouslySetAntdProps,
|
|
11943
|
-
...props
|
|
11944
|
-
} = _ref7;
|
|
11945
|
-
const {
|
|
11946
|
-
theme,
|
|
11947
|
-
getPrefixedClassName,
|
|
11948
|
-
classNamePrefix
|
|
11949
|
-
} = useDesignSystemTheme();
|
|
11950
|
-
const useNewStyles = safex('databricks.fe.designsystem.enableNewRadioStyles', false);
|
|
11951
|
-
const clsPrefix = getPrefixedClassName('radio');
|
|
11952
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
11953
|
-
children: jsx(Radio$1.Group, {
|
|
11954
|
-
...props,
|
|
11955
|
-
css: getCommonRadioGroupStyles({
|
|
11956
|
-
theme,
|
|
11957
|
-
clsPrefix,
|
|
11958
|
-
classNamePrefix,
|
|
11959
|
-
useNewStyles
|
|
11960
|
-
}),
|
|
11961
|
-
...dangerouslySetAntdProps,
|
|
11962
|
-
ref: ref,
|
|
11963
|
-
children: jsx(RestoreAntDDefaultClsPrefix, {
|
|
11964
|
-
children: children
|
|
11965
|
-
})
|
|
11966
|
-
})
|
|
11967
|
-
});
|
|
11968
|
-
});
|
|
11969
|
-
const HorizontalGroup = /*#__PURE__*/forwardRef(function HorizontalGroup(_ref8, ref) {
|
|
11970
|
-
let {
|
|
11971
|
-
dangerouslySetAntdProps,
|
|
11972
|
-
...props
|
|
11973
|
-
} = _ref8;
|
|
11974
|
-
const {
|
|
11975
|
-
theme,
|
|
11976
|
-
classNamePrefix
|
|
11977
|
-
} = useDesignSystemTheme();
|
|
11978
|
-
const useNewStyles = safex('databricks.fe.designsystem.enableNewRadioStyles', false);
|
|
11979
|
-
return jsx(StyledRadioGroup, {
|
|
11980
|
-
css: getHorizontalRadioGroupStyles({
|
|
11981
|
-
theme,
|
|
11982
|
-
classNamePrefix,
|
|
11983
|
-
useNewStyles
|
|
11984
|
-
}),
|
|
11985
|
-
...props,
|
|
11986
|
-
ref: ref,
|
|
11987
|
-
...dangerouslySetAntdProps
|
|
11988
|
-
});
|
|
11989
|
-
});
|
|
11990
|
-
const Group = /*#__PURE__*/forwardRef(function HorizontalGroup(_ref9, ref) {
|
|
11991
|
-
let {
|
|
11992
|
-
dangerouslySetAntdProps,
|
|
11993
|
-
layout = 'vertical',
|
|
11994
|
-
...props
|
|
11995
|
-
} = _ref9;
|
|
11996
|
-
const {
|
|
11997
|
-
theme,
|
|
11998
|
-
classNamePrefix
|
|
11999
|
-
} = useDesignSystemTheme();
|
|
12000
|
-
const useNewStyles = safex('databricks.fe.designsystem.enableNewRadioStyles', false);
|
|
12001
|
-
return jsx(StyledRadioGroup, {
|
|
12002
|
-
css: layout === 'horizontal' ? getHorizontalRadioGroupStyles({
|
|
12003
|
-
theme,
|
|
12004
|
-
classNamePrefix,
|
|
12005
|
-
useNewStyles
|
|
12006
|
-
}) : getVerticalRadioGroupStyles({
|
|
12007
|
-
theme,
|
|
12008
|
-
classNamePrefix,
|
|
12009
|
-
useNewStyles
|
|
12010
|
-
}),
|
|
12011
|
-
...props,
|
|
12012
|
-
ref: ref,
|
|
12013
|
-
...dangerouslySetAntdProps
|
|
12014
|
-
});
|
|
12015
|
-
});
|
|
12016
|
-
|
|
12017
|
-
// Note: We are overriding ant's default "Group" with our own.
|
|
12018
|
-
const RadioNamespace = /* #__PURE__ */Object.assign(DuboisRadio, {
|
|
12019
|
-
Group,
|
|
12020
|
-
HorizontalGroup
|
|
12021
|
-
});
|
|
12022
|
-
const Radio = RadioNamespace;
|
|
12023
|
-
|
|
12024
|
-
// TODO: I'm doing this to support storybook's docgen;
|
|
12025
|
-
// We should remove this once we have a better storybook integration,
|
|
12026
|
-
// since these will be exposed in the library's exports.
|
|
12027
|
-
// We should ideally be using __Group instead of __VerticalGroup, but that exists under Checkbox too and conflicts, therefore
|
|
12028
|
-
// we show a wrong component name in "Show code" in docs, fix included in story to replace this with correct name
|
|
12029
|
-
const __INTERNAL_DO_NOT_USE__VerticalGroup = Group;
|
|
12030
|
-
const __INTERNAL_DO_NOT_USE__HorizontalGroup = HorizontalGroup;
|
|
12031
|
-
|
|
12032
|
-
function getSelectEmotionStyles(_ref) {
|
|
12033
|
-
let {
|
|
12034
|
-
clsPrefix,
|
|
12035
|
-
theme,
|
|
12036
|
-
validationState
|
|
12241
|
+
validationState
|
|
12037
12242
|
} = _ref;
|
|
12038
12243
|
const classFocused = `.${clsPrefix}-focused`;
|
|
12039
12244
|
const classOpen = `.${clsPrefix}-open`;
|
|
@@ -12072,481 +12277,795 @@ function getSelectEmotionStyles(_ref) {
|
|
|
12072
12277
|
'::after': {
|
|
12073
12278
|
lineHeight: theme.typography.lineHeightBase
|
|
12074
12279
|
},
|
|
12075
|
-
'::before': {
|
|
12076
|
-
lineHeight: theme.typography.lineHeightBase
|
|
12280
|
+
'::before': {
|
|
12281
|
+
lineHeight: theme.typography.lineHeightBase
|
|
12282
|
+
}
|
|
12283
|
+
},
|
|
12284
|
+
[classSingle]: {
|
|
12285
|
+
[`&${classSelector}`]: {
|
|
12286
|
+
height: theme.general.heightSm
|
|
12287
|
+
}
|
|
12288
|
+
},
|
|
12289
|
+
[classItem]: {
|
|
12290
|
+
color: theme.colors.textPrimary,
|
|
12291
|
+
paddingRight: 32,
|
|
12292
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
12293
|
+
paddingTop: 5,
|
|
12294
|
+
paddingBottom: 5
|
|
12295
|
+
},
|
|
12296
|
+
// Note: This supports search, which we don't support. The styles here support legacy usages.
|
|
12297
|
+
[classSearch]: {
|
|
12298
|
+
right: 24,
|
|
12299
|
+
left: 8,
|
|
12300
|
+
marginInlineStart: 4,
|
|
12301
|
+
[classSearchInput]: {
|
|
12302
|
+
color: theme.colors.actionDefaultTextDefault,
|
|
12303
|
+
height: 24
|
|
12304
|
+
}
|
|
12305
|
+
},
|
|
12306
|
+
[`&${classSingle}`]: {
|
|
12307
|
+
[classSearchInput]: {
|
|
12308
|
+
height: theme.general.heightSm
|
|
12309
|
+
}
|
|
12310
|
+
},
|
|
12311
|
+
// Note: This supports search, which we don't support. The styles here support legacy usages.
|
|
12312
|
+
[`&${classShowSearch}${classOpen}${classSingle}`]: {
|
|
12313
|
+
[classItem]: {
|
|
12314
|
+
color: theme.colors.actionDisabledText
|
|
12315
|
+
}
|
|
12316
|
+
},
|
|
12317
|
+
// Note: This supports search, which we don't support. The styles here support legacy usages.
|
|
12318
|
+
[classSearchClear]: {
|
|
12319
|
+
right: 24,
|
|
12320
|
+
backgroundColor: 'transparent'
|
|
12321
|
+
},
|
|
12322
|
+
[`&${classFocused}`]: {
|
|
12323
|
+
[classSelector]: {
|
|
12324
|
+
outlineColor: theme.colors.actionPrimaryBackgroundDefault,
|
|
12325
|
+
outlineWidth: 2,
|
|
12326
|
+
outlineOffset: -2,
|
|
12327
|
+
outlineStyle: 'solid',
|
|
12328
|
+
borderColor: 'transparent',
|
|
12329
|
+
boxShadow: 'none'
|
|
12330
|
+
}
|
|
12331
|
+
},
|
|
12332
|
+
[`&${classDisabled}`]: {
|
|
12333
|
+
[classSelector]: {
|
|
12334
|
+
backgroundColor: theme.colors.actionDisabledBackground,
|
|
12335
|
+
color: theme.colors.actionDisabledText,
|
|
12336
|
+
border: 'transparent'
|
|
12337
|
+
},
|
|
12338
|
+
[classItem]: {
|
|
12339
|
+
color: theme.colors.actionDisabledText
|
|
12340
|
+
},
|
|
12341
|
+
[classArrow]: {
|
|
12342
|
+
color: theme.colors.actionDisabledText
|
|
12343
|
+
}
|
|
12344
|
+
},
|
|
12345
|
+
[classArrow]: {
|
|
12346
|
+
height: theme.general.iconFontSize,
|
|
12347
|
+
width: theme.general.iconFontSize,
|
|
12348
|
+
top: (theme.general.heightSm - theme.general.iconFontSize) / 2,
|
|
12349
|
+
marginTop: 0,
|
|
12350
|
+
color: theme.colors.textSecondary,
|
|
12351
|
+
fontSize: theme.general.iconFontSize,
|
|
12352
|
+
'.anticon': {
|
|
12353
|
+
// For some reason ant sets this to 'auto'. Need to set it back to 'none' to allow the element below to receive
|
|
12354
|
+
// the click event.
|
|
12355
|
+
pointerEvents: 'none'
|
|
12356
|
+
},
|
|
12357
|
+
[`&${classArrowLoading}`]: {
|
|
12358
|
+
top: (theme.general.heightSm - theme.general.iconFontSize) / 2,
|
|
12359
|
+
display: 'flex',
|
|
12360
|
+
alignItems: 'center',
|
|
12361
|
+
justifyContent: 'center',
|
|
12362
|
+
fontSize: theme.general.iconFontSize
|
|
12363
|
+
}
|
|
12364
|
+
},
|
|
12365
|
+
[classPlaceholder]: {
|
|
12366
|
+
color: theme.colors.textPlaceholder,
|
|
12367
|
+
right: 'auto',
|
|
12368
|
+
left: 'auto',
|
|
12369
|
+
width: '100%',
|
|
12370
|
+
paddingRight: 32,
|
|
12371
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
12372
|
+
alignSelf: 'center'
|
|
12373
|
+
},
|
|
12374
|
+
[`&${classMultiple}`]: {
|
|
12375
|
+
[classSelector]: {
|
|
12376
|
+
paddingTop: 3,
|
|
12377
|
+
paddingBottom: 3,
|
|
12378
|
+
paddingLeft: 8,
|
|
12379
|
+
paddingRight: 30,
|
|
12380
|
+
minHeight: theme.general.heightSm,
|
|
12381
|
+
height: 'auto',
|
|
12382
|
+
'&::after': {
|
|
12383
|
+
margin: 0
|
|
12384
|
+
}
|
|
12385
|
+
},
|
|
12386
|
+
[classItem]: {
|
|
12387
|
+
backgroundColor: theme.colors.tagDefault,
|
|
12388
|
+
color: theme.colors.textPrimary,
|
|
12389
|
+
border: 'none',
|
|
12390
|
+
height: 20,
|
|
12391
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
12392
|
+
fontSize: theme.typography.fontSizeBase,
|
|
12393
|
+
marginInlineEnd: 4,
|
|
12394
|
+
marginTop: 2,
|
|
12395
|
+
marginBottom: 2,
|
|
12396
|
+
paddingRight: 0,
|
|
12397
|
+
paddingTop: 0,
|
|
12398
|
+
paddingBottom: 0
|
|
12399
|
+
},
|
|
12400
|
+
[classItemOverflowContainer]: {
|
|
12401
|
+
minHeight: 24
|
|
12402
|
+
},
|
|
12403
|
+
[classItemOverflowItem]: {
|
|
12404
|
+
alignSelf: 'auto',
|
|
12405
|
+
height: 24,
|
|
12406
|
+
lineHeight: theme.typography.lineHeightBase
|
|
12407
|
+
},
|
|
12408
|
+
[classSearch]: {
|
|
12409
|
+
marginTop: 0,
|
|
12410
|
+
left: 0,
|
|
12411
|
+
right: 0
|
|
12412
|
+
},
|
|
12413
|
+
[`&${classDisabled}`]: {
|
|
12414
|
+
[classItem]: {
|
|
12415
|
+
paddingRight: 2
|
|
12416
|
+
}
|
|
12417
|
+
},
|
|
12418
|
+
[classArrow]: {
|
|
12419
|
+
top: (theme.general.heightSm - theme.general.iconFontSize) / 2
|
|
12420
|
+
},
|
|
12421
|
+
[`&${classAllowClear}`]: {
|
|
12422
|
+
[classSearchClear]: {
|
|
12423
|
+
top: (theme.general.heightSm - theme.general.iconFontSize + 4) / 2
|
|
12424
|
+
}
|
|
12425
|
+
},
|
|
12426
|
+
[classPlaceholder]: {
|
|
12427
|
+
// Compensate for the caret placeholder width
|
|
12428
|
+
paddingLeft: 4,
|
|
12429
|
+
color: theme.colors.textPlaceholder
|
|
12430
|
+
},
|
|
12431
|
+
[`&:not(${classFocused})`]: {
|
|
12432
|
+
[classItemOverflowSuffix]: {
|
|
12433
|
+
// Do not keep the caret's placeholder at full height when not focused,
|
|
12434
|
+
// because it introduces a new line even when not focused. Using display: none would break the caret
|
|
12435
|
+
height: 0
|
|
12436
|
+
}
|
|
12077
12437
|
}
|
|
12078
12438
|
},
|
|
12079
|
-
[
|
|
12080
|
-
[
|
|
12081
|
-
|
|
12439
|
+
[`&${classMultiple}${classDisabled}`]: {
|
|
12440
|
+
[classItem]: {
|
|
12441
|
+
color: theme.colors.actionDisabledText
|
|
12082
12442
|
}
|
|
12083
12443
|
},
|
|
12084
|
-
[
|
|
12444
|
+
[`&${classAllowClear}`]: {
|
|
12445
|
+
[classItem]: {
|
|
12446
|
+
paddingRight: 0
|
|
12447
|
+
},
|
|
12448
|
+
[classSelector]: {
|
|
12449
|
+
paddingRight: 52
|
|
12450
|
+
},
|
|
12451
|
+
[classSearchClear]: {
|
|
12452
|
+
top: (theme.general.heightSm - theme.general.iconFontSize + 4) / 2,
|
|
12453
|
+
opacity: 100,
|
|
12454
|
+
width: theme.general.iconFontSize,
|
|
12455
|
+
height: theme.general.iconFontSize,
|
|
12456
|
+
marginTop: 0
|
|
12457
|
+
}
|
|
12458
|
+
},
|
|
12459
|
+
[classCloseButton]: {
|
|
12085
12460
|
color: theme.colors.textPrimary,
|
|
12086
|
-
|
|
12461
|
+
borderTopRightRadius: theme.borders.borderRadiusMd,
|
|
12462
|
+
borderBottomRightRadius: theme.borders.borderRadiusMd,
|
|
12463
|
+
height: theme.general.iconFontSize,
|
|
12464
|
+
width: theme.general.iconFontSize,
|
|
12087
12465
|
lineHeight: theme.typography.lineHeightBase,
|
|
12088
|
-
|
|
12089
|
-
|
|
12090
|
-
|
|
12091
|
-
|
|
12092
|
-
|
|
12093
|
-
|
|
12094
|
-
|
|
12095
|
-
|
|
12096
|
-
|
|
12097
|
-
|
|
12098
|
-
|
|
12466
|
+
paddingInlineEnd: 0,
|
|
12467
|
+
marginInlineEnd: 0,
|
|
12468
|
+
'& > .anticon': {
|
|
12469
|
+
height: theme.general.iconFontSize - 4,
|
|
12470
|
+
fontSize: theme.general.iconFontSize - 4
|
|
12471
|
+
},
|
|
12472
|
+
'&:hover': {
|
|
12473
|
+
color: theme.colors.actionTertiaryTextHover,
|
|
12474
|
+
backgroundColor: theme.colors.tagHover
|
|
12475
|
+
},
|
|
12476
|
+
'&:active': {
|
|
12477
|
+
color: theme.colors.actionTertiaryTextPress,
|
|
12478
|
+
backgroundColor: theme.colors.tagPress
|
|
12099
12479
|
}
|
|
12100
12480
|
},
|
|
12101
|
-
|
|
12102
|
-
[
|
|
12103
|
-
|
|
12481
|
+
...(validationState && {
|
|
12482
|
+
[`& > ${classSelector}`]: {
|
|
12483
|
+
borderColor: validationColor,
|
|
12484
|
+
'&:hover': {
|
|
12485
|
+
borderColor: validationColor
|
|
12486
|
+
}
|
|
12487
|
+
},
|
|
12488
|
+
[`&${classFocused} > ${classSelector}`]: {
|
|
12489
|
+
outlineColor: validationColor,
|
|
12490
|
+
outlineOffset: -2
|
|
12104
12491
|
}
|
|
12492
|
+
}),
|
|
12493
|
+
...getAnimationCss(theme.options.enableAnimation)
|
|
12494
|
+
};
|
|
12495
|
+
const importantStyles = importantify(styles);
|
|
12496
|
+
return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getSelectEmotionStyles;");
|
|
12497
|
+
}
|
|
12498
|
+
function getDropdownStyles(clsPrefix, theme) {
|
|
12499
|
+
const classItem = `.${clsPrefix}-item-option`;
|
|
12500
|
+
const classItemActive = `.${clsPrefix}-item-option-active`;
|
|
12501
|
+
const classItemSelected = `.${clsPrefix}-item-option-selected`;
|
|
12502
|
+
const classItemState = `.${clsPrefix}-item-option-state`;
|
|
12503
|
+
const styles = {
|
|
12504
|
+
borderColor: theme.colors.borderDecorative,
|
|
12505
|
+
borderWidth: 1,
|
|
12506
|
+
borderStyle: 'solid',
|
|
12507
|
+
zIndex: theme.options.zIndexBase + 50,
|
|
12508
|
+
boxShadow: theme.general.shadowLow,
|
|
12509
|
+
[classItem]: {
|
|
12510
|
+
height: theme.general.heightSm
|
|
12105
12511
|
},
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
|
|
12512
|
+
[classItemActive]: {
|
|
12513
|
+
backgroundColor: theme.colors.actionTertiaryBackgroundHover,
|
|
12514
|
+
height: theme.general.heightSm,
|
|
12515
|
+
'&:hover': {
|
|
12516
|
+
backgroundColor: theme.colors.actionTertiaryBackgroundHover
|
|
12110
12517
|
}
|
|
12111
12518
|
},
|
|
12112
|
-
|
|
12113
|
-
|
|
12114
|
-
|
|
12115
|
-
|
|
12116
|
-
|
|
12117
|
-
[`&${classFocused}`]: {
|
|
12118
|
-
[classSelector]: {
|
|
12119
|
-
outlineColor: theme.colors.actionPrimaryBackgroundDefault,
|
|
12120
|
-
outlineWidth: 2,
|
|
12121
|
-
outlineOffset: -2,
|
|
12122
|
-
outlineStyle: 'solid',
|
|
12123
|
-
borderColor: 'transparent',
|
|
12124
|
-
boxShadow: 'none'
|
|
12519
|
+
[classItemSelected]: {
|
|
12520
|
+
backgroundColor: theme.colors.actionTertiaryBackgroundHover,
|
|
12521
|
+
fontWeight: 'normal',
|
|
12522
|
+
'&:hover': {
|
|
12523
|
+
backgroundColor: theme.colors.actionTertiaryBackgroundHover
|
|
12125
12524
|
}
|
|
12126
12525
|
},
|
|
12127
|
-
[
|
|
12128
|
-
|
|
12129
|
-
|
|
12130
|
-
|
|
12131
|
-
border: 'transparent'
|
|
12132
|
-
},
|
|
12133
|
-
[classItem]: {
|
|
12134
|
-
color: theme.colors.actionDisabledText
|
|
12135
|
-
},
|
|
12136
|
-
[classArrow]: {
|
|
12137
|
-
color: theme.colors.actionDisabledText
|
|
12526
|
+
[classItemState]: {
|
|
12527
|
+
color: theme.colors.textSecondary,
|
|
12528
|
+
'& > span': {
|
|
12529
|
+
verticalAlign: 'middle'
|
|
12138
12530
|
}
|
|
12139
12531
|
},
|
|
12140
|
-
[
|
|
12141
|
-
|
|
12142
|
-
|
|
12143
|
-
|
|
12144
|
-
|
|
12145
|
-
|
|
12146
|
-
|
|
12147
|
-
|
|
12148
|
-
|
|
12149
|
-
|
|
12150
|
-
|
|
12151
|
-
|
|
12152
|
-
|
|
12153
|
-
|
|
12532
|
+
[`.${clsPrefix}-loading-options`]: {
|
|
12533
|
+
pointerEvents: 'none',
|
|
12534
|
+
margin: '0 auto',
|
|
12535
|
+
height: theme.general.heightSm,
|
|
12536
|
+
display: 'block'
|
|
12537
|
+
},
|
|
12538
|
+
...getAnimationCss(theme.options.enableAnimation),
|
|
12539
|
+
...getDarkModePortalStyles(theme)
|
|
12540
|
+
};
|
|
12541
|
+
const importantStyles = importantify(styles);
|
|
12542
|
+
return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getDropdownStyles;");
|
|
12543
|
+
}
|
|
12544
|
+
function getLoadingIconStyles(theme) {
|
|
12545
|
+
return /*#__PURE__*/css({
|
|
12546
|
+
fontSize: 20,
|
|
12547
|
+
color: theme.colors.textSecondary,
|
|
12548
|
+
lineHeight: '20px'
|
|
12549
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getLoadingIconStyles;");
|
|
12550
|
+
}
|
|
12551
|
+
const scrollbarVisibleItemsCount = 8;
|
|
12552
|
+
const getIconSizeStyle = (theme, newIconDefault) => importantify({
|
|
12553
|
+
fontSize: newIconDefault !== null && newIconDefault !== void 0 ? newIconDefault : theme.general.iconFontSize
|
|
12554
|
+
});
|
|
12555
|
+
function DuboisSelect(_ref2, ref) {
|
|
12556
|
+
let {
|
|
12557
|
+
children,
|
|
12558
|
+
validationState,
|
|
12559
|
+
loading,
|
|
12560
|
+
loadingDescription = 'Select',
|
|
12561
|
+
mode,
|
|
12562
|
+
options,
|
|
12563
|
+
notFoundContent,
|
|
12564
|
+
optionFilterProp,
|
|
12565
|
+
dangerouslySetAntdProps,
|
|
12566
|
+
virtual,
|
|
12567
|
+
dropdownClassName,
|
|
12568
|
+
id,
|
|
12569
|
+
onDropdownVisibleChange,
|
|
12570
|
+
maxHeight,
|
|
12571
|
+
...restProps
|
|
12572
|
+
} = _ref2;
|
|
12573
|
+
const {
|
|
12574
|
+
theme,
|
|
12575
|
+
getPrefixedClassName
|
|
12576
|
+
} = useDesignSystemTheme();
|
|
12577
|
+
const clsPrefix = getPrefixedClassName('select');
|
|
12578
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
12579
|
+
const [uniqueId, setUniqueId] = useState('');
|
|
12580
|
+
|
|
12581
|
+
// Antd's default is 256, to show half an extra item when scrolling we add 0.5 height extra
|
|
12582
|
+
// Reducing to 5.5 as it's default with other components is not an option here because it would break existing usages relying on 8 items being shown by default
|
|
12583
|
+
const MAX_HEIGHT = maxHeight !== null && maxHeight !== void 0 ? maxHeight : theme.general.heightSm * 8.5;
|
|
12584
|
+
useEffect(() => {
|
|
12585
|
+
setUniqueId(id || _uniqueId('dubois-select-'));
|
|
12586
|
+
}, [id]);
|
|
12587
|
+
useEffect(() => {
|
|
12588
|
+
var _document$getElementB;
|
|
12589
|
+
// Ant doesn't populate aria-expanded on init (only on user interaction) so we need to do it ourselves
|
|
12590
|
+
// in order to pass accessibility tests (Microsoft Accessibility Insights). See: JOBS-11125
|
|
12591
|
+
(_document$getElementB = document.getElementById(uniqueId)) === null || _document$getElementB === void 0 || _document$getElementB.setAttribute('aria-expanded', 'false');
|
|
12592
|
+
}, [uniqueId]);
|
|
12593
|
+
return jsx(ClassNames, {
|
|
12594
|
+
children: _ref3 => {
|
|
12595
|
+
let {
|
|
12596
|
+
css: css$1
|
|
12597
|
+
} = _ref3;
|
|
12598
|
+
return jsxs(DesignSystemAntDConfigProvider, {
|
|
12599
|
+
children: [loading && jsx(LoadingState, {
|
|
12600
|
+
description: loadingDescription
|
|
12601
|
+
}), jsx(Select$1, {
|
|
12602
|
+
onDropdownVisibleChange: visible => {
|
|
12603
|
+
onDropdownVisibleChange === null || onDropdownVisibleChange === void 0 || onDropdownVisibleChange(visible);
|
|
12604
|
+
setIsOpen(visible);
|
|
12605
|
+
}
|
|
12606
|
+
// unset aria-owns, aria-controls, and aria-activedescendant if the dropdown is closed;
|
|
12607
|
+
// ant always sets these even if the dropdown isn't present in the DOM yet.
|
|
12608
|
+
// This was flagged by Microsoft Accessibility Insights. See: JOBS-11125
|
|
12609
|
+
,
|
|
12610
|
+
...(!isOpen ? {
|
|
12611
|
+
'aria-owns': undefined,
|
|
12612
|
+
'aria-controls': undefined,
|
|
12613
|
+
'aria-activedescendant': undefined
|
|
12614
|
+
} : {}),
|
|
12615
|
+
id: uniqueId,
|
|
12616
|
+
css: getSelectEmotionStyles({
|
|
12617
|
+
clsPrefix,
|
|
12618
|
+
theme,
|
|
12619
|
+
validationState
|
|
12620
|
+
}),
|
|
12621
|
+
removeIcon: jsx(CloseIcon, {
|
|
12622
|
+
"aria-hidden": "false",
|
|
12623
|
+
css: getIconSizeStyle(theme)
|
|
12624
|
+
}),
|
|
12625
|
+
clearIcon: jsx(XCircleFillIcon$1, {
|
|
12626
|
+
"aria-hidden": "false",
|
|
12627
|
+
css: getIconSizeStyle(theme, 12),
|
|
12628
|
+
"aria-label": "close-circle"
|
|
12629
|
+
}),
|
|
12630
|
+
ref: ref,
|
|
12631
|
+
suffixIcon: loading && mode === 'tags' ? jsx(LoadingIcon, {
|
|
12632
|
+
spin: true,
|
|
12633
|
+
"aria-label": "loading",
|
|
12634
|
+
"aria-hidden": "false",
|
|
12635
|
+
css: getIconSizeStyle(theme, 12)
|
|
12636
|
+
}) : jsx(ChevronDownIcon$1, {
|
|
12637
|
+
css: getIconSizeStyle(theme)
|
|
12638
|
+
}),
|
|
12639
|
+
menuItemSelectedIcon: jsx(CheckIcon, {
|
|
12640
|
+
css: getIconSizeStyle(theme)
|
|
12641
|
+
}),
|
|
12642
|
+
showArrow: true,
|
|
12643
|
+
dropdownMatchSelectWidth: true,
|
|
12644
|
+
notFoundContent: notFoundContent !== null && notFoundContent !== void 0 ? notFoundContent : jsx("div", {
|
|
12645
|
+
css: /*#__PURE__*/css({
|
|
12646
|
+
color: theme.colors.textSecondary,
|
|
12647
|
+
textAlign: 'center'
|
|
12648
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:DuboisSelect;"),
|
|
12649
|
+
children: "No results found"
|
|
12650
|
+
}),
|
|
12651
|
+
dropdownClassName: css$1([getDropdownStyles(clsPrefix, theme), dropdownClassName]),
|
|
12652
|
+
listHeight: MAX_HEIGHT,
|
|
12653
|
+
maxTagPlaceholder: items => `+ ${items.length} more`,
|
|
12654
|
+
mode: mode,
|
|
12655
|
+
options: options,
|
|
12656
|
+
loading: loading,
|
|
12657
|
+
filterOption: true
|
|
12658
|
+
// NOTE(FEINF-1102): This is needed to avoid ghost scrollbar that generates error when clicked on exactly 8 elements
|
|
12659
|
+
// Because by default AntD uses true for virtual, we want to replicate the same even if there are no children
|
|
12660
|
+
,
|
|
12661
|
+
virtual: virtual !== null && virtual !== void 0 ? virtual : children && Array.isArray(children) && children.length !== scrollbarVisibleItemsCount || options && options.length !== scrollbarVisibleItemsCount || !children && !options,
|
|
12662
|
+
optionFilterProp: optionFilterProp !== null && optionFilterProp !== void 0 ? optionFilterProp : 'children',
|
|
12663
|
+
...restProps,
|
|
12664
|
+
...dangerouslySetAntdProps,
|
|
12665
|
+
children: loading && mode !== 'tags' ? jsxs(Fragment, {
|
|
12666
|
+
children: [children, jsx(LegacyOption, {
|
|
12667
|
+
disabled: true,
|
|
12668
|
+
value: "select-loading-options",
|
|
12669
|
+
className: `${clsPrefix}-loading-options`,
|
|
12670
|
+
children: jsx(LoadingIcon, {
|
|
12671
|
+
"aria-hidden": "false",
|
|
12672
|
+
spin: true,
|
|
12673
|
+
css: getLoadingIconStyles(theme),
|
|
12674
|
+
"aria-label": "loading"
|
|
12675
|
+
})
|
|
12676
|
+
})]
|
|
12677
|
+
}) : children
|
|
12678
|
+
})]
|
|
12679
|
+
});
|
|
12680
|
+
}
|
|
12681
|
+
});
|
|
12682
|
+
}
|
|
12683
|
+
|
|
12684
|
+
/** @deprecated Use `LegacySelectOptionProps` */
|
|
12685
|
+
|
|
12686
|
+
const LegacySelectOption = /*#__PURE__*/forwardRef(function Option(props, ref) {
|
|
12687
|
+
const {
|
|
12688
|
+
dangerouslySetAntdProps,
|
|
12689
|
+
...restProps
|
|
12690
|
+
} = props;
|
|
12691
|
+
return jsx(Select$1.Option, {
|
|
12692
|
+
...restProps,
|
|
12693
|
+
ref: ref,
|
|
12694
|
+
...dangerouslySetAntdProps
|
|
12695
|
+
});
|
|
12696
|
+
});
|
|
12697
|
+
|
|
12698
|
+
// Needed for rc-select to not throw warning about our component not being Select.Option
|
|
12699
|
+
LegacySelectOption.isSelectOption = true;
|
|
12700
|
+
|
|
12701
|
+
/**
|
|
12702
|
+
* @deprecated use LegacySelect.Option instead
|
|
12703
|
+
*/
|
|
12704
|
+
const LegacyOption = LegacySelectOption;
|
|
12705
|
+
|
|
12706
|
+
/** @deprecated Use `LegacySelectOptGroupProps` */
|
|
12707
|
+
|
|
12708
|
+
const LegacySelectOptGroup = /* #__PURE__ */(() => {
|
|
12709
|
+
const OptGroup = /*#__PURE__*/forwardRef(function OptGroup(props, ref) {
|
|
12710
|
+
return jsx(Select$1.OptGroup, {
|
|
12711
|
+
...props,
|
|
12712
|
+
isSelectOptGroup: true,
|
|
12713
|
+
ref: ref
|
|
12714
|
+
});
|
|
12715
|
+
});
|
|
12716
|
+
// Needed for antd to work properly and for rc-select to not throw warning about our component not being Select.OptGroup
|
|
12717
|
+
OptGroup.isSelectOptGroup = true;
|
|
12718
|
+
return OptGroup;
|
|
12719
|
+
})();
|
|
12720
|
+
|
|
12721
|
+
/**
|
|
12722
|
+
* @deprecated use LegacySelect.OptGroup instead
|
|
12723
|
+
*/
|
|
12724
|
+
const LegacyOptGroup = LegacySelectOptGroup;
|
|
12725
|
+
|
|
12726
|
+
/**
|
|
12727
|
+
* @deprecated Use Select, TypeaheadCombobox, or DialogCombobox depending on your use-case. See http://go/deprecate-ant-select for more information
|
|
12728
|
+
*/
|
|
12729
|
+
const LegacySelect = /* #__PURE__ */(() => {
|
|
12730
|
+
const DuboisRefForwardedSelect = /*#__PURE__*/forwardRef(DuboisSelect);
|
|
12731
|
+
DuboisRefForwardedSelect.Option = LegacySelectOption;
|
|
12732
|
+
DuboisRefForwardedSelect.OptGroup = LegacySelectOptGroup;
|
|
12733
|
+
return DuboisRefForwardedSelect;
|
|
12734
|
+
})();
|
|
12735
|
+
|
|
12736
|
+
const getRadioInputStyles = _ref => {
|
|
12737
|
+
let {
|
|
12738
|
+
clsPrefix,
|
|
12739
|
+
theme,
|
|
12740
|
+
useNewStyles
|
|
12741
|
+
} = _ref;
|
|
12742
|
+
return {
|
|
12743
|
+
[`.${clsPrefix}`]: {
|
|
12744
|
+
alignSelf: 'start',
|
|
12745
|
+
// Unchecked Styles
|
|
12746
|
+
[`> .${clsPrefix}-input + .${clsPrefix}-inner`]: {
|
|
12747
|
+
width: theme.spacing.md,
|
|
12748
|
+
height: theme.spacing.md,
|
|
12749
|
+
background: useNewStyles ? theme.colors.actionDefaultBackgroundDefault : theme.colors.radioDefaultBackground,
|
|
12750
|
+
borderStyle: 'solid',
|
|
12751
|
+
borderColor: useNewStyles ? theme.colors.actionDefaultBorderDefault : theme.colors.radioDefaultBorder,
|
|
12752
|
+
boxShadow: 'unset',
|
|
12753
|
+
transform: 'unset',
|
|
12754
|
+
// This prevents an awkward jitter on the border
|
|
12154
12755
|
display: 'flex',
|
|
12155
|
-
alignItems: 'center',
|
|
12156
12756
|
justifyContent: 'center',
|
|
12157
|
-
|
|
12158
|
-
|
|
12159
|
-
|
|
12160
|
-
|
|
12161
|
-
color: theme.colors.textPlaceholder,
|
|
12162
|
-
right: 'auto',
|
|
12163
|
-
left: 'auto',
|
|
12164
|
-
width: '100%',
|
|
12165
|
-
paddingRight: 32,
|
|
12166
|
-
lineHeight: theme.typography.lineHeightBase,
|
|
12167
|
-
alignSelf: 'center'
|
|
12168
|
-
},
|
|
12169
|
-
[`&${classMultiple}`]: {
|
|
12170
|
-
[classSelector]: {
|
|
12171
|
-
paddingTop: 3,
|
|
12172
|
-
paddingBottom: 3,
|
|
12173
|
-
paddingLeft: 8,
|
|
12174
|
-
paddingRight: 30,
|
|
12175
|
-
minHeight: theme.general.heightSm,
|
|
12176
|
-
height: 'auto',
|
|
12177
|
-
'&::after': {
|
|
12178
|
-
margin: 0
|
|
12179
|
-
}
|
|
12180
|
-
},
|
|
12181
|
-
[classItem]: {
|
|
12182
|
-
backgroundColor: theme.colors.tagDefault,
|
|
12183
|
-
color: theme.colors.textPrimary,
|
|
12184
|
-
border: 'none',
|
|
12185
|
-
height: 20,
|
|
12186
|
-
lineHeight: theme.typography.lineHeightBase,
|
|
12187
|
-
fontSize: theme.typography.fontSizeBase,
|
|
12188
|
-
marginInlineEnd: 4,
|
|
12189
|
-
marginTop: 2,
|
|
12190
|
-
marginBottom: 2,
|
|
12191
|
-
paddingRight: 0,
|
|
12192
|
-
paddingTop: 0,
|
|
12193
|
-
paddingBottom: 0
|
|
12194
|
-
},
|
|
12195
|
-
[classItemOverflowContainer]: {
|
|
12196
|
-
minHeight: 24
|
|
12197
|
-
},
|
|
12198
|
-
[classItemOverflowItem]: {
|
|
12199
|
-
alignSelf: 'auto',
|
|
12200
|
-
height: 24,
|
|
12201
|
-
lineHeight: theme.typography.lineHeightBase
|
|
12202
|
-
},
|
|
12203
|
-
[classSearch]: {
|
|
12204
|
-
marginTop: 0,
|
|
12205
|
-
left: 0,
|
|
12206
|
-
right: 0
|
|
12207
|
-
},
|
|
12208
|
-
[`&${classDisabled}`]: {
|
|
12209
|
-
[classItem]: {
|
|
12210
|
-
paddingRight: 2
|
|
12757
|
+
alignItems: 'center',
|
|
12758
|
+
borderRadius: '50%',
|
|
12759
|
+
'&:after': {
|
|
12760
|
+
all: 'unset'
|
|
12211
12761
|
}
|
|
12212
12762
|
},
|
|
12213
|
-
|
|
12214
|
-
|
|
12763
|
+
// Hover
|
|
12764
|
+
[`&:not(.${clsPrefix}-disabled) > .${clsPrefix}-input:hover + .${clsPrefix}-inner`]: {
|
|
12765
|
+
borderColor: useNewStyles ? theme.colors.actionPrimaryBackgroundHover : theme.colors.radioInteractiveHover,
|
|
12766
|
+
background: useNewStyles ? theme.colors.actionDefaultBackgroundHover : theme.colors.radioInteractiveHoverSecondary
|
|
12215
12767
|
},
|
|
12216
|
-
|
|
12217
|
-
|
|
12218
|
-
|
|
12219
|
-
}
|
|
12768
|
+
// Focus
|
|
12769
|
+
[`&:not(.${clsPrefix}-disabled)> .${clsPrefix}-input:focus + .${clsPrefix}-inner`]: {
|
|
12770
|
+
borderColor: useNewStyles ? theme.colors.actionPrimaryBackgroundDefault : theme.colors.primary
|
|
12220
12771
|
},
|
|
12221
|
-
|
|
12222
|
-
|
|
12223
|
-
|
|
12224
|
-
|
|
12772
|
+
// Active
|
|
12773
|
+
[`&:not(.${clsPrefix}-disabled)> .${clsPrefix}-input:active + .${clsPrefix}-inner`]: {
|
|
12774
|
+
borderColor: useNewStyles ? theme.colors.actionPrimaryBackgroundPress : theme.colors.radioInteractivePress,
|
|
12775
|
+
background: useNewStyles ? theme.colors.actionDefaultBackgroundPress : theme.colors.radioInteractivePressSecondary
|
|
12225
12776
|
},
|
|
12226
|
-
|
|
12227
|
-
|
|
12228
|
-
|
|
12229
|
-
|
|
12230
|
-
|
|
12777
|
+
// Disabled
|
|
12778
|
+
[`&.${clsPrefix}-disabled > .${clsPrefix}-input + .${clsPrefix}-inner`]: {
|
|
12779
|
+
...(useNewStyles ? {
|
|
12780
|
+
border: `none !important`,
|
|
12781
|
+
// Ant uses !important
|
|
12782
|
+
background: theme.colors.actionDisabledBackground
|
|
12783
|
+
} : {
|
|
12784
|
+
borderColor: `${theme.colors.radioDisabled}!important` // Ant uses !important
|
|
12785
|
+
}),
|
|
12786
|
+
|
|
12787
|
+
'@media (forced-colors: active)': {
|
|
12788
|
+
borderColor: 'GrayText !important'
|
|
12231
12789
|
}
|
|
12232
|
-
}
|
|
12233
|
-
},
|
|
12234
|
-
[`&${classMultiple}${classDisabled}`]: {
|
|
12235
|
-
[classItem]: {
|
|
12236
|
-
color: theme.colors.actionDisabledText
|
|
12237
|
-
}
|
|
12238
|
-
},
|
|
12239
|
-
[`&${classAllowClear}`]: {
|
|
12240
|
-
[classItem]: {
|
|
12241
|
-
paddingRight: 0
|
|
12242
|
-
},
|
|
12243
|
-
[classSelector]: {
|
|
12244
|
-
paddingRight: 52
|
|
12245
|
-
},
|
|
12246
|
-
[classSearchClear]: {
|
|
12247
|
-
top: (theme.general.heightSm - theme.general.iconFontSize + 4) / 2,
|
|
12248
|
-
opacity: 100,
|
|
12249
|
-
width: theme.general.iconFontSize,
|
|
12250
|
-
height: theme.general.iconFontSize,
|
|
12251
|
-
marginTop: 0
|
|
12252
|
-
}
|
|
12253
|
-
},
|
|
12254
|
-
[classCloseButton]: {
|
|
12255
|
-
color: theme.colors.textPrimary,
|
|
12256
|
-
borderTopRightRadius: theme.borders.borderRadiusMd,
|
|
12257
|
-
borderBottomRightRadius: theme.borders.borderRadiusMd,
|
|
12258
|
-
height: theme.general.iconFontSize,
|
|
12259
|
-
width: theme.general.iconFontSize,
|
|
12260
|
-
lineHeight: theme.typography.lineHeightBase,
|
|
12261
|
-
paddingInlineEnd: 0,
|
|
12262
|
-
marginInlineEnd: 0,
|
|
12263
|
-
'& > .anticon': {
|
|
12264
|
-
height: theme.general.iconFontSize - 4,
|
|
12265
|
-
fontSize: theme.general.iconFontSize - 4
|
|
12266
|
-
},
|
|
12267
|
-
'&:hover': {
|
|
12268
|
-
color: theme.colors.actionTertiaryTextHover,
|
|
12269
|
-
backgroundColor: theme.colors.tagHover
|
|
12270
12790
|
},
|
|
12271
|
-
|
|
12272
|
-
|
|
12273
|
-
|
|
12274
|
-
|
|
12275
|
-
|
|
12276
|
-
|
|
12277
|
-
|
|
12278
|
-
|
|
12279
|
-
|
|
12280
|
-
|
|
12791
|
+
// Checked Styles
|
|
12792
|
+
[`&.${clsPrefix}-checked`]: {
|
|
12793
|
+
'&:after': {
|
|
12794
|
+
border: 'unset'
|
|
12795
|
+
},
|
|
12796
|
+
[`> .${clsPrefix}-input + .${clsPrefix}-inner`]: {
|
|
12797
|
+
background: useNewStyles ? theme.colors.actionPrimaryBackgroundDefault : theme.colors.primary,
|
|
12798
|
+
borderColor: theme.colors.primary,
|
|
12799
|
+
'&:after': {
|
|
12800
|
+
content: `""`,
|
|
12801
|
+
borderRadius: theme.spacing.xs,
|
|
12802
|
+
backgroundColor: useNewStyles ? theme.colors.white : theme.colors.radioDefaultBackground,
|
|
12803
|
+
width: theme.spacing.xs,
|
|
12804
|
+
height: theme.spacing.xs
|
|
12805
|
+
},
|
|
12806
|
+
'@media (forced-colors: active)': {
|
|
12807
|
+
borderColor: 'Highlight !important',
|
|
12808
|
+
backgroundColor: 'Highlight !important'
|
|
12809
|
+
}
|
|
12810
|
+
},
|
|
12811
|
+
// Hover
|
|
12812
|
+
[`&:not(.${clsPrefix}-disabled) > .${clsPrefix}-input:hover + .${clsPrefix}-inner`]: {
|
|
12813
|
+
background: useNewStyles ? theme.colors.actionPrimaryBackgroundHover : theme.colors.radioInteractiveHover,
|
|
12814
|
+
borderColor: useNewStyles ? theme.colors.actionPrimaryBackgroundPress : theme.colors.radioInteractiveHover
|
|
12815
|
+
},
|
|
12816
|
+
// Focus
|
|
12817
|
+
[`&:not(.${clsPrefix}-disabled) > .${clsPrefix}-input:focus-visible + .${clsPrefix}-inner`]: {
|
|
12818
|
+
background: useNewStyles ? theme.colors.actionDefaultBackgroundPress : theme.colors.primary,
|
|
12819
|
+
borderColor: useNewStyles ? theme.colors.actionDefaultBorderFocus : theme.colors.primary,
|
|
12820
|
+
boxShadow: `0 0 0 1px ${useNewStyles ? theme.colors.actionDefaultBackgroundDefault : theme.colors.radioDefaultBackground}, 0 0 0 3px ${theme.colors.primary}`
|
|
12821
|
+
},
|
|
12822
|
+
// Active
|
|
12823
|
+
[`&:not(.${clsPrefix}-disabled) > .${clsPrefix}-input:active + .${clsPrefix}-inner`]: {
|
|
12824
|
+
background: useNewStyles ? theme.colors.actionDefaultBackgroundPress : theme.colors.radioInteractivePress,
|
|
12825
|
+
borderColor: useNewStyles ? theme.colors.actionDefaultBorderPress : theme.colors.radioInteractivePress
|
|
12826
|
+
},
|
|
12827
|
+
// Disabled
|
|
12828
|
+
[`&.${clsPrefix}-disabled > .${clsPrefix}-input + .${clsPrefix}-inner`]: {
|
|
12829
|
+
background: useNewStyles ? theme.colors.actionDisabledBackground : theme.colors.radioDisabled,
|
|
12830
|
+
border: useNewStyles ? 'none !important' : `2px solid ${theme.colors.radioDisabled}!important`,
|
|
12831
|
+
// !important inherited from ant
|
|
12832
|
+
'@media (forced-colors: active)': {
|
|
12833
|
+
borderColor: 'GrayText !important',
|
|
12834
|
+
backgroundColor: 'GrayText !important'
|
|
12835
|
+
}
|
|
12281
12836
|
}
|
|
12282
|
-
},
|
|
12283
|
-
[`&${classFocused} > ${classSelector}`]: {
|
|
12284
|
-
outlineColor: validationColor,
|
|
12285
|
-
outlineOffset: -2
|
|
12286
12837
|
}
|
|
12287
|
-
}
|
|
12288
|
-
...getAnimationCss(theme.options.enableAnimation)
|
|
12838
|
+
}
|
|
12289
12839
|
};
|
|
12290
|
-
|
|
12291
|
-
|
|
12292
|
-
|
|
12293
|
-
|
|
12294
|
-
|
|
12295
|
-
|
|
12296
|
-
|
|
12297
|
-
|
|
12298
|
-
|
|
12299
|
-
|
|
12300
|
-
|
|
12301
|
-
|
|
12302
|
-
|
|
12303
|
-
|
|
12304
|
-
borderWidth: 1,
|
|
12305
|
-
borderStyle: 'solid',
|
|
12306
|
-
zIndex: theme.options.zIndexBase + 50,
|
|
12307
|
-
boxShadow: theme.general.shadowLow
|
|
12308
|
-
}),
|
|
12309
|
-
[classItem]: {
|
|
12310
|
-
height: theme.general.heightSm,
|
|
12311
|
-
...(useNewDropdownStyle && {
|
|
12312
|
-
padding: '4px 8px',
|
|
12313
|
-
alignItems: 'center',
|
|
12314
|
-
lineHeight: theme.typography.lineHeightBase
|
|
12840
|
+
};
|
|
12841
|
+
const getCommonRadioGroupStyles = _ref2 => {
|
|
12842
|
+
let {
|
|
12843
|
+
theme,
|
|
12844
|
+
clsPrefix,
|
|
12845
|
+
classNamePrefix,
|
|
12846
|
+
useNewStyles
|
|
12847
|
+
} = _ref2;
|
|
12848
|
+
return /*#__PURE__*/css({
|
|
12849
|
+
'& > label': {
|
|
12850
|
+
...(useNewStyles && {
|
|
12851
|
+
[`&.${classNamePrefix}-radio-wrapper-disabled > span`]: {
|
|
12852
|
+
color: theme.colors.actionDisabledText
|
|
12853
|
+
}
|
|
12315
12854
|
})
|
|
12316
12855
|
},
|
|
12317
|
-
|
|
12318
|
-
|
|
12319
|
-
|
|
12320
|
-
|
|
12856
|
+
[`& > label + .${classNamePrefix}-hint`]: {
|
|
12857
|
+
paddingLeft: theme.spacing.lg
|
|
12858
|
+
},
|
|
12859
|
+
...getRadioInputStyles({
|
|
12860
|
+
theme,
|
|
12861
|
+
clsPrefix,
|
|
12862
|
+
useNewStyles
|
|
12321
12863
|
}),
|
|
12322
|
-
|
|
12323
|
-
|
|
12324
|
-
|
|
12325
|
-
|
|
12326
|
-
|
|
12327
|
-
|
|
12864
|
+
...getAnimationCss(theme.options.enableAnimation)
|
|
12865
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getCommonRadioGroupStyles;");
|
|
12866
|
+
};
|
|
12867
|
+
const getHorizontalRadioGroupStyles = _ref3 => {
|
|
12868
|
+
let {
|
|
12869
|
+
theme,
|
|
12870
|
+
classNamePrefix,
|
|
12871
|
+
useNewStyles
|
|
12872
|
+
} = _ref3;
|
|
12873
|
+
return /*#__PURE__*/css({
|
|
12874
|
+
'&&': {
|
|
12875
|
+
display: 'grid',
|
|
12876
|
+
gridTemplateRows: '[label] auto [hint] auto',
|
|
12877
|
+
gridAutoColumns: 'max-content',
|
|
12878
|
+
gridColumnGap: useNewStyles ? theme.spacing.md : theme.spacing.sm
|
|
12328
12879
|
},
|
|
12329
|
-
|
|
12330
|
-
|
|
12880
|
+
'& > label': {
|
|
12881
|
+
gridRow: 'label / label',
|
|
12882
|
+
marginRight: 0
|
|
12883
|
+
},
|
|
12884
|
+
[`& > label + .${classNamePrefix}-hint`]: {
|
|
12885
|
+
display: 'inline-block',
|
|
12886
|
+
gridRow: 'hint / hint'
|
|
12887
|
+
}
|
|
12888
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getHorizontalRadioGroupStyles;");
|
|
12889
|
+
};
|
|
12890
|
+
const getVerticalRadioGroupStyles = _ref4 => {
|
|
12891
|
+
let {
|
|
12892
|
+
theme,
|
|
12893
|
+
classNamePrefix,
|
|
12894
|
+
useNewStyles
|
|
12895
|
+
} = _ref4;
|
|
12896
|
+
return /*#__PURE__*/css({
|
|
12897
|
+
display: 'flex',
|
|
12898
|
+
flexDirection: 'column',
|
|
12899
|
+
flexWrap: 'wrap',
|
|
12900
|
+
'& > label': {
|
|
12331
12901
|
fontWeight: 'normal',
|
|
12332
|
-
|
|
12333
|
-
|
|
12334
|
-
}
|
|
12902
|
+
...(useNewStyles && {
|
|
12903
|
+
paddingBottom: theme.spacing.sm
|
|
12904
|
+
})
|
|
12335
12905
|
},
|
|
12336
|
-
[
|
|
12337
|
-
|
|
12338
|
-
...(useNewDropdownStyle && {
|
|
12339
|
-
position: 'absolute'
|
|
12340
|
-
}),
|
|
12341
|
-
'& > span': {
|
|
12342
|
-
verticalAlign: 'middle'
|
|
12343
|
-
}
|
|
12906
|
+
[`& > label:last-of-type`]: {
|
|
12907
|
+
paddingBottom: 0
|
|
12344
12908
|
},
|
|
12345
|
-
[
|
|
12346
|
-
|
|
12347
|
-
|
|
12348
|
-
|
|
12349
|
-
|
|
12350
|
-
...(useNewDropdownStyle && {
|
|
12351
|
-
left: -CONTENT_LEFT_PADDING / 2
|
|
12909
|
+
[`& > label + .${classNamePrefix}-hint`]: {
|
|
12910
|
+
marginBottom: theme.spacing.sm,
|
|
12911
|
+
paddingLeft: theme.spacing.lg,
|
|
12912
|
+
...(useNewStyles && {
|
|
12913
|
+
marginTop: `-${theme.spacing.sm}px`
|
|
12352
12914
|
})
|
|
12353
12915
|
},
|
|
12354
|
-
|
|
12355
|
-
|
|
12916
|
+
[`& > label:last-of-type + .${classNamePrefix}-hint`]: {
|
|
12917
|
+
...(useNewStyles && {
|
|
12918
|
+
marginTop: 0
|
|
12919
|
+
})
|
|
12920
|
+
}
|
|
12921
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getVerticalRadioGroupStyles;");
|
|
12922
|
+
};
|
|
12923
|
+
const getRadioStyles = _ref5 => {
|
|
12924
|
+
let {
|
|
12925
|
+
theme,
|
|
12926
|
+
clsPrefix,
|
|
12927
|
+
useNewStyles
|
|
12928
|
+
} = _ref5;
|
|
12929
|
+
// Default as bold for standalone radios
|
|
12930
|
+
const fontWeight = 'normal';
|
|
12931
|
+
const styles = {
|
|
12932
|
+
fontWeight
|
|
12356
12933
|
};
|
|
12357
|
-
const importantStyles = importantify(styles);
|
|
12358
|
-
return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getDropdownStyles;");
|
|
12359
|
-
}
|
|
12360
|
-
function getLoadingIconStyles(theme) {
|
|
12361
12934
|
return /*#__PURE__*/css({
|
|
12362
|
-
|
|
12363
|
-
|
|
12364
|
-
|
|
12365
|
-
|
|
12366
|
-
}
|
|
12367
|
-
|
|
12368
|
-
|
|
12369
|
-
|
|
12935
|
+
...getRadioInputStyles({
|
|
12936
|
+
theme,
|
|
12937
|
+
clsPrefix,
|
|
12938
|
+
useNewStyles
|
|
12939
|
+
}),
|
|
12940
|
+
...styles
|
|
12941
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getRadioStyles;");
|
|
12942
|
+
};
|
|
12943
|
+
const DuboisRadio = /*#__PURE__*/forwardRef(function Radio(_ref6, ref) {
|
|
12944
|
+
let {
|
|
12945
|
+
children,
|
|
12946
|
+
dangerouslySetAntdProps,
|
|
12947
|
+
...props
|
|
12948
|
+
} = _ref6;
|
|
12949
|
+
const {
|
|
12950
|
+
theme,
|
|
12951
|
+
getPrefixedClassName
|
|
12952
|
+
} = useDesignSystemTheme();
|
|
12953
|
+
const useNewStyles = safex('databricks.fe.designsystem.enableNewRadioStyles', false);
|
|
12954
|
+
const clsPrefix = getPrefixedClassName('radio');
|
|
12955
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
12956
|
+
children: jsx(Radio$1, {
|
|
12957
|
+
css: getRadioStyles({
|
|
12958
|
+
theme,
|
|
12959
|
+
clsPrefix,
|
|
12960
|
+
useNewStyles
|
|
12961
|
+
}),
|
|
12962
|
+
...props,
|
|
12963
|
+
...dangerouslySetAntdProps,
|
|
12964
|
+
ref: ref,
|
|
12965
|
+
children: jsx(RestoreAntDDefaultClsPrefix, {
|
|
12966
|
+
children: children
|
|
12967
|
+
})
|
|
12968
|
+
})
|
|
12969
|
+
});
|
|
12970
|
+
});
|
|
12971
|
+
const StyledRadioGroup = /*#__PURE__*/forwardRef(function StyledRadioGroup(_ref7, ref) {
|
|
12972
|
+
let {
|
|
12973
|
+
children,
|
|
12974
|
+
dangerouslySetAntdProps,
|
|
12975
|
+
...props
|
|
12976
|
+
} = _ref7;
|
|
12977
|
+
const {
|
|
12978
|
+
theme,
|
|
12979
|
+
getPrefixedClassName,
|
|
12980
|
+
classNamePrefix
|
|
12981
|
+
} = useDesignSystemTheme();
|
|
12982
|
+
const useNewStyles = safex('databricks.fe.designsystem.enableNewRadioStyles', false);
|
|
12983
|
+
const clsPrefix = getPrefixedClassName('radio');
|
|
12984
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
12985
|
+
children: jsx(Radio$1.Group, {
|
|
12986
|
+
...props,
|
|
12987
|
+
css: getCommonRadioGroupStyles({
|
|
12988
|
+
theme,
|
|
12989
|
+
clsPrefix,
|
|
12990
|
+
classNamePrefix,
|
|
12991
|
+
useNewStyles
|
|
12992
|
+
}),
|
|
12993
|
+
...dangerouslySetAntdProps,
|
|
12994
|
+
ref: ref,
|
|
12995
|
+
children: jsx(RestoreAntDDefaultClsPrefix, {
|
|
12996
|
+
children: children
|
|
12997
|
+
})
|
|
12998
|
+
})
|
|
12999
|
+
});
|
|
13000
|
+
});
|
|
13001
|
+
const HorizontalGroup = /*#__PURE__*/forwardRef(function HorizontalGroup(_ref8, ref) {
|
|
13002
|
+
let {
|
|
13003
|
+
dangerouslySetAntdProps,
|
|
13004
|
+
...props
|
|
13005
|
+
} = _ref8;
|
|
13006
|
+
const {
|
|
13007
|
+
theme,
|
|
13008
|
+
classNamePrefix
|
|
13009
|
+
} = useDesignSystemTheme();
|
|
13010
|
+
const useNewStyles = safex('databricks.fe.designsystem.enableNewRadioStyles', false);
|
|
13011
|
+
return jsx(StyledRadioGroup, {
|
|
13012
|
+
css: getHorizontalRadioGroupStyles({
|
|
13013
|
+
theme,
|
|
13014
|
+
classNamePrefix,
|
|
13015
|
+
useNewStyles
|
|
13016
|
+
}),
|
|
13017
|
+
...props,
|
|
13018
|
+
ref: ref,
|
|
13019
|
+
...dangerouslySetAntdProps
|
|
13020
|
+
});
|
|
12370
13021
|
});
|
|
12371
|
-
function
|
|
13022
|
+
const Group = /*#__PURE__*/forwardRef(function HorizontalGroup(_ref9, ref) {
|
|
12372
13023
|
let {
|
|
12373
|
-
children,
|
|
12374
|
-
validationState,
|
|
12375
|
-
loading,
|
|
12376
|
-
loadingDescription = 'Select',
|
|
12377
|
-
mode,
|
|
12378
|
-
options,
|
|
12379
|
-
notFoundContent,
|
|
12380
|
-
optionFilterProp,
|
|
12381
13024
|
dangerouslySetAntdProps,
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
|
|
12385
|
-
onDropdownVisibleChange,
|
|
12386
|
-
maxHeight,
|
|
12387
|
-
...restProps
|
|
12388
|
-
} = _ref2;
|
|
13025
|
+
layout = 'vertical',
|
|
13026
|
+
...props
|
|
13027
|
+
} = _ref9;
|
|
12389
13028
|
const {
|
|
12390
13029
|
theme,
|
|
12391
|
-
|
|
13030
|
+
classNamePrefix
|
|
12392
13031
|
} = useDesignSystemTheme();
|
|
12393
|
-
const
|
|
12394
|
-
|
|
12395
|
-
|
|
12396
|
-
|
|
12397
|
-
|
|
12398
|
-
|
|
12399
|
-
|
|
12400
|
-
|
|
12401
|
-
|
|
12402
|
-
|
|
12403
|
-
|
|
12404
|
-
|
|
12405
|
-
var _document$getElementB;
|
|
12406
|
-
// Ant doesn't populate aria-expanded on init (only on user interaction) so we need to do it ourselves
|
|
12407
|
-
// in order to pass accessibility tests (Microsoft Accessibility Insights). See: JOBS-11125
|
|
12408
|
-
(_document$getElementB = document.getElementById(uniqueId)) === null || _document$getElementB === void 0 || _document$getElementB.setAttribute('aria-expanded', 'false');
|
|
12409
|
-
}, [uniqueId]);
|
|
12410
|
-
return jsx(ClassNames, {
|
|
12411
|
-
children: _ref3 => {
|
|
12412
|
-
let {
|
|
12413
|
-
css: css$1
|
|
12414
|
-
} = _ref3;
|
|
12415
|
-
return jsxs(DesignSystemAntDConfigProvider, {
|
|
12416
|
-
children: [loading && jsx(LoadingState, {
|
|
12417
|
-
description: loadingDescription
|
|
12418
|
-
}), jsx(Select$1, {
|
|
12419
|
-
onDropdownVisibleChange: visible => {
|
|
12420
|
-
onDropdownVisibleChange === null || onDropdownVisibleChange === void 0 || onDropdownVisibleChange(visible);
|
|
12421
|
-
setIsOpen(visible);
|
|
12422
|
-
}
|
|
12423
|
-
// unset aria-owns, aria-controls, and aria-activedescendant if the dropdown is closed;
|
|
12424
|
-
// ant always sets these even if the dropdown isn't present in the DOM yet.
|
|
12425
|
-
// This was flagged by Microsoft Accessibility Insights. See: JOBS-11125
|
|
12426
|
-
,
|
|
12427
|
-
...(!isOpen ? {
|
|
12428
|
-
'aria-owns': undefined,
|
|
12429
|
-
'aria-controls': undefined,
|
|
12430
|
-
'aria-activedescendant': undefined
|
|
12431
|
-
} : {}),
|
|
12432
|
-
id: uniqueId,
|
|
12433
|
-
css: getSelectEmotionStyles({
|
|
12434
|
-
clsPrefix,
|
|
12435
|
-
theme,
|
|
12436
|
-
validationState
|
|
12437
|
-
}),
|
|
12438
|
-
removeIcon: jsx(CloseIcon, {
|
|
12439
|
-
"aria-hidden": "false",
|
|
12440
|
-
css: getIconSizeStyle(theme)
|
|
12441
|
-
}),
|
|
12442
|
-
clearIcon: jsx(XCircleFillIcon$1, {
|
|
12443
|
-
"aria-hidden": "false",
|
|
12444
|
-
css: getIconSizeStyle(theme, 12),
|
|
12445
|
-
"aria-label": "close-circle"
|
|
12446
|
-
}),
|
|
12447
|
-
ref: ref,
|
|
12448
|
-
suffixIcon: loading && mode === 'tags' ? jsx(LoadingIcon, {
|
|
12449
|
-
spin: true,
|
|
12450
|
-
"aria-label": "loading",
|
|
12451
|
-
"aria-hidden": "false",
|
|
12452
|
-
css: getIconSizeStyle(theme, 12)
|
|
12453
|
-
}) : jsx(ChevronDownIcon$1, {
|
|
12454
|
-
css: getIconSizeStyle(theme)
|
|
12455
|
-
}),
|
|
12456
|
-
menuItemSelectedIcon: jsx(CheckIcon, {
|
|
12457
|
-
css: getIconSizeStyle(theme)
|
|
12458
|
-
}),
|
|
12459
|
-
showArrow: true,
|
|
12460
|
-
dropdownMatchSelectWidth: true,
|
|
12461
|
-
notFoundContent: notFoundContent !== null && notFoundContent !== void 0 ? notFoundContent : jsx("div", {
|
|
12462
|
-
css: /*#__PURE__*/css({
|
|
12463
|
-
color: theme.colors.textSecondary,
|
|
12464
|
-
textAlign: 'center'
|
|
12465
|
-
}),
|
|
12466
|
-
children: "No results found"
|
|
12467
|
-
}),
|
|
12468
|
-
dropdownClassName: css$1([getDropdownStyles(clsPrefix, theme, useNewSelectStyles), dropdownClassName]),
|
|
12469
|
-
listHeight: MAX_HEIGHT,
|
|
12470
|
-
maxTagPlaceholder: items => `+ ${items.length} more`,
|
|
12471
|
-
mode: mode,
|
|
12472
|
-
options: options,
|
|
12473
|
-
loading: loading,
|
|
12474
|
-
filterOption: true
|
|
12475
|
-
// NOTE(FEINF-1102): This is needed to avoid ghost scrollbar that generates error when clicked on exactly 8 elements
|
|
12476
|
-
// Because by default AntD uses true for virtual, we want to replicate the same even if there are no children
|
|
12477
|
-
,
|
|
12478
|
-
virtual: virtual !== null && virtual !== void 0 ? virtual : children && Array.isArray(children) && children.length !== scrollbarVisibleItemsCount || options && options.length !== scrollbarVisibleItemsCount || !children && !options,
|
|
12479
|
-
optionFilterProp: optionFilterProp !== null && optionFilterProp !== void 0 ? optionFilterProp : 'children',
|
|
12480
|
-
...restProps,
|
|
12481
|
-
...dangerouslySetAntdProps,
|
|
12482
|
-
children: loading && mode !== 'tags' ? jsxs(Fragment, {
|
|
12483
|
-
children: [children, jsx(Option, {
|
|
12484
|
-
disabled: true,
|
|
12485
|
-
value: "select-loading-options",
|
|
12486
|
-
className: `${clsPrefix}-loading-options`,
|
|
12487
|
-
children: jsx(LoadingIcon, {
|
|
12488
|
-
"aria-hidden": "false",
|
|
12489
|
-
spin: true,
|
|
12490
|
-
css: getLoadingIconStyles(theme),
|
|
12491
|
-
"aria-label": "loading"
|
|
12492
|
-
})
|
|
12493
|
-
})]
|
|
12494
|
-
}) : children
|
|
12495
|
-
})]
|
|
12496
|
-
});
|
|
12497
|
-
}
|
|
12498
|
-
});
|
|
12499
|
-
}
|
|
12500
|
-
|
|
12501
|
-
/** @deprecated Use `SelectOptionProps` */
|
|
12502
|
-
|
|
12503
|
-
const SelectOption = /*#__PURE__*/forwardRef(function Option(props, ref) {
|
|
12504
|
-
const {
|
|
12505
|
-
dangerouslySetAntdProps,
|
|
12506
|
-
...restProps
|
|
12507
|
-
} = props;
|
|
12508
|
-
return jsx(Select$1.Option, {
|
|
12509
|
-
...restProps,
|
|
13032
|
+
const useNewStyles = safex('databricks.fe.designsystem.enableNewRadioStyles', false);
|
|
13033
|
+
return jsx(StyledRadioGroup, {
|
|
13034
|
+
css: layout === 'horizontal' ? getHorizontalRadioGroupStyles({
|
|
13035
|
+
theme,
|
|
13036
|
+
classNamePrefix,
|
|
13037
|
+
useNewStyles
|
|
13038
|
+
}) : getVerticalRadioGroupStyles({
|
|
13039
|
+
theme,
|
|
13040
|
+
classNamePrefix,
|
|
13041
|
+
useNewStyles
|
|
13042
|
+
}),
|
|
13043
|
+
...props,
|
|
12510
13044
|
ref: ref,
|
|
12511
13045
|
...dangerouslySetAntdProps
|
|
12512
13046
|
});
|
|
12513
13047
|
});
|
|
12514
13048
|
|
|
12515
|
-
//
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
const Option = SelectOption;
|
|
12522
|
-
|
|
12523
|
-
/** @deprecated Use `SelectOptGroupProps` */
|
|
13049
|
+
// Note: We are overriding ant's default "Group" with our own.
|
|
13050
|
+
const RadioNamespace = /* #__PURE__ */Object.assign(DuboisRadio, {
|
|
13051
|
+
Group,
|
|
13052
|
+
HorizontalGroup
|
|
13053
|
+
});
|
|
13054
|
+
const Radio = RadioNamespace;
|
|
12524
13055
|
|
|
12525
|
-
|
|
12526
|
-
|
|
12527
|
-
|
|
12528
|
-
|
|
12529
|
-
|
|
12530
|
-
|
|
12531
|
-
|
|
12532
|
-
});
|
|
12533
|
-
// Needed for antd to work properly and for rc-select to not throw warning about our component not being Select.OptGroup
|
|
12534
|
-
OptGroup.isSelectOptGroup = true;
|
|
12535
|
-
return OptGroup;
|
|
12536
|
-
})();
|
|
13056
|
+
// TODO: I'm doing this to support storybook's docgen;
|
|
13057
|
+
// We should remove this once we have a better storybook integration,
|
|
13058
|
+
// since these will be exposed in the library's exports.
|
|
13059
|
+
// We should ideally be using __Group instead of __VerticalGroup, but that exists under Checkbox too and conflicts, therefore
|
|
13060
|
+
// we show a wrong component name in "Show code" in docs, fix included in story to replace this with correct name
|
|
13061
|
+
const __INTERNAL_DO_NOT_USE__VerticalGroup = Group;
|
|
13062
|
+
const __INTERNAL_DO_NOT_USE__HorizontalGroup = HorizontalGroup;
|
|
12537
13063
|
|
|
12538
13064
|
/**
|
|
12539
|
-
*
|
|
13065
|
+
* Please use `SimpleSelect` unless you have a specific use-case for this primitive.
|
|
13066
|
+
* Ask in #dubois if you have questions!
|
|
12540
13067
|
*/
|
|
12541
|
-
const
|
|
12542
|
-
const Select = /* #__PURE__ */(() => {
|
|
12543
|
-
const DuboisRefForwardedSelect = /*#__PURE__*/forwardRef(DuboisSelect);
|
|
12544
|
-
DuboisRefForwardedSelect.Option = SelectOption;
|
|
12545
|
-
DuboisRefForwardedSelect.OptGroup = SelectOptGroup;
|
|
12546
|
-
return DuboisRefForwardedSelect;
|
|
12547
|
-
})();
|
|
12548
|
-
|
|
12549
|
-
const SelectV2 = props => {
|
|
13068
|
+
const Select = props => {
|
|
12550
13069
|
const {
|
|
12551
13070
|
children,
|
|
12552
13071
|
placeholder,
|
|
@@ -12566,7 +13085,11 @@ const SelectV2 = props => {
|
|
|
12566
13085
|
});
|
|
12567
13086
|
};
|
|
12568
13087
|
|
|
12569
|
-
|
|
13088
|
+
/**
|
|
13089
|
+
* Please use `SimpleSelect` unless you have a specific use-case for this primitive.
|
|
13090
|
+
* Ask in #dubois if you have questions!
|
|
13091
|
+
*/
|
|
13092
|
+
const SelectContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
12570
13093
|
let {
|
|
12571
13094
|
children,
|
|
12572
13095
|
minWidth = 150,
|
|
@@ -12580,45 +13103,229 @@ const SelectV2Content = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
12580
13103
|
children: children
|
|
12581
13104
|
})
|
|
12582
13105
|
});
|
|
12583
|
-
});
|
|
13106
|
+
});
|
|
13107
|
+
|
|
13108
|
+
/**
|
|
13109
|
+
* Please use `SimpleSelect` unless you have a specific use-case for this primitive.
|
|
13110
|
+
* Ask in #dubois if you have questions!
|
|
13111
|
+
*/
|
|
13112
|
+
const SelectOption = /*#__PURE__*/forwardRef((props, ref) => {
|
|
13113
|
+
const {
|
|
13114
|
+
value
|
|
13115
|
+
} = useDialogComboboxContext();
|
|
13116
|
+
return jsx(DialogComboboxOptionListSelectItem, {
|
|
13117
|
+
checked: value && value[0] === props.value,
|
|
13118
|
+
...props,
|
|
13119
|
+
ref: ref
|
|
13120
|
+
});
|
|
13121
|
+
});
|
|
13122
|
+
|
|
13123
|
+
/**
|
|
13124
|
+
* Please use `SimpleSelect` unless you have a specific use-case for this primitive.
|
|
13125
|
+
* Ask in #dubois if you have questions!
|
|
13126
|
+
*/
|
|
13127
|
+
const SelectOptionGroup = props => {
|
|
13128
|
+
const {
|
|
13129
|
+
name,
|
|
13130
|
+
children,
|
|
13131
|
+
...restProps
|
|
13132
|
+
} = props;
|
|
13133
|
+
return jsxs(Fragment, {
|
|
13134
|
+
children: [jsx(DialogComboboxSectionHeader, {
|
|
13135
|
+
...restProps,
|
|
13136
|
+
children: name
|
|
13137
|
+
}), children]
|
|
13138
|
+
});
|
|
13139
|
+
};
|
|
13140
|
+
|
|
13141
|
+
/**
|
|
13142
|
+
* Please use `SimpleSelect` unless you have a specific use-case for this primitive.
|
|
13143
|
+
* Ask in #dubois if you have questions!
|
|
13144
|
+
*/
|
|
13145
|
+
const SelectTrigger = /*#__PURE__*/forwardRef((props, ref) => {
|
|
13146
|
+
const {
|
|
13147
|
+
children,
|
|
13148
|
+
...restProps
|
|
13149
|
+
} = props;
|
|
13150
|
+
return jsx(DialogComboboxTrigger, {
|
|
13151
|
+
allowClear: false,
|
|
13152
|
+
...restProps,
|
|
13153
|
+
ref: ref,
|
|
13154
|
+
children: children
|
|
13155
|
+
});
|
|
13156
|
+
});
|
|
13157
|
+
|
|
13158
|
+
const SimpleSelectContext = /*#__PURE__*/createContext(undefined);
|
|
13159
|
+
|
|
13160
|
+
// This is modelled to match the behavior of native select elements;
|
|
13161
|
+
// this allows SimpleSelect to be compatible natively with React Hook Form.
|
|
13162
|
+
const getSelectedOption = (children, value) => {
|
|
13163
|
+
const childArray = React__default.Children.toArray(children);
|
|
13164
|
+
for (const child of childArray) {
|
|
13165
|
+
if ( /*#__PURE__*/React__default.isValidElement(child)) {
|
|
13166
|
+
if (child.type === SimpleSelectOption && child.props.value === value) {
|
|
13167
|
+
return child;
|
|
13168
|
+
}
|
|
13169
|
+
if (child.props.children) {
|
|
13170
|
+
const nestedOption = getSelectedOption(child.props.children, value);
|
|
13171
|
+
if (nestedOption) {
|
|
13172
|
+
return nestedOption;
|
|
13173
|
+
}
|
|
13174
|
+
}
|
|
13175
|
+
}
|
|
13176
|
+
}
|
|
13177
|
+
return undefined;
|
|
13178
|
+
};
|
|
13179
|
+
const getSelectedOptionLabel = (children, value) => {
|
|
13180
|
+
const selectedOption = getSelectedOption(children, value);
|
|
13181
|
+
if ( /*#__PURE__*/React__default.isValidElement(selectedOption)) {
|
|
13182
|
+
return selectedOption.props.children;
|
|
13183
|
+
}
|
|
13184
|
+
return '';
|
|
13185
|
+
};
|
|
13186
|
+
|
|
13187
|
+
/**
|
|
13188
|
+
* This is the future `Select` component which simplifies the API of the current Select primitives.
|
|
13189
|
+
* It is temporarily named `SimpleSelect` pending cleanup.
|
|
13190
|
+
*/
|
|
13191
|
+
const SimpleSelect = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
13192
|
+
let {
|
|
13193
|
+
defaultValue,
|
|
13194
|
+
name,
|
|
13195
|
+
label,
|
|
13196
|
+
placeholder,
|
|
13197
|
+
children,
|
|
13198
|
+
contentProps,
|
|
13199
|
+
onChange,
|
|
13200
|
+
id,
|
|
13201
|
+
value,
|
|
13202
|
+
validationState,
|
|
13203
|
+
...rest
|
|
13204
|
+
} = _ref;
|
|
13205
|
+
const [defaultLabel] = useState(() => {
|
|
13206
|
+
if (value) {
|
|
13207
|
+
return getSelectedOptionLabel(children, value);
|
|
13208
|
+
}
|
|
13209
|
+
return '';
|
|
13210
|
+
});
|
|
13211
|
+
const innerRef = useRef(null);
|
|
13212
|
+
useImperativeHandle(ref, () => innerRef.current, []);
|
|
13213
|
+
const previousExternalValue = useRef(value);
|
|
13214
|
+
const [internalValue, setInternalValue] = useState(value);
|
|
13215
|
+
const [selectedLabel, setSelectedLabel] = useState(defaultLabel);
|
|
13216
|
+
const isControlled = value !== undefined;
|
|
13217
|
+
useEffect(() => {
|
|
13218
|
+
const element = innerRef.current;
|
|
12584
13219
|
|
|
12585
|
-
|
|
12586
|
-
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12590
|
-
|
|
12591
|
-
|
|
12592
|
-
|
|
13220
|
+
// Set initial state.
|
|
13221
|
+
if (!isControlled) {
|
|
13222
|
+
const initialValue = defaultValue || (element === null || element === void 0 ? void 0 : element.value) || '';
|
|
13223
|
+
setInternalValue(initialValue);
|
|
13224
|
+
setSelectedLabel(getSelectedOptionLabel(children, initialValue));
|
|
13225
|
+
previousExternalValue.current = initialValue;
|
|
13226
|
+
}
|
|
13227
|
+
|
|
13228
|
+
// Handle direct manipulation of the input element.
|
|
13229
|
+
const handleExternalChange = e => {
|
|
13230
|
+
const newValue = e.target.value;
|
|
13231
|
+
if (newValue !== previousExternalValue.current) {
|
|
13232
|
+
setInternalValue(newValue || '');
|
|
13233
|
+
setSelectedLabel(getSelectedOptionLabel(children, newValue || ''));
|
|
13234
|
+
previousExternalValue.current = newValue || '';
|
|
13235
|
+
}
|
|
13236
|
+
};
|
|
13237
|
+
element === null || element === void 0 || element.addEventListener('change', handleExternalChange);
|
|
13238
|
+
return () => {
|
|
13239
|
+
element === null || element === void 0 || element.removeEventListener('change', handleExternalChange);
|
|
13240
|
+
};
|
|
13241
|
+
}, [isControlled, children, defaultValue, value]);
|
|
13242
|
+
// Handles controlled state, and propagates changes to the input element.
|
|
13243
|
+
const handleChange = newValue => {
|
|
13244
|
+
var _innerRef$current;
|
|
13245
|
+
(_innerRef$current = innerRef.current) === null || _innerRef$current === void 0 || _innerRef$current.setAttribute('value', newValue || '');
|
|
13246
|
+
setInternalValue(newValue);
|
|
13247
|
+
setSelectedLabel(getSelectedOptionLabel(children, newValue));
|
|
13248
|
+
if (onChange) {
|
|
13249
|
+
onChange({
|
|
13250
|
+
target: {
|
|
13251
|
+
name,
|
|
13252
|
+
type: 'select',
|
|
13253
|
+
value: newValue
|
|
13254
|
+
},
|
|
13255
|
+
type: 'change'
|
|
13256
|
+
});
|
|
13257
|
+
}
|
|
13258
|
+
};
|
|
13259
|
+
return jsx(SimpleSelectContext.Provider, {
|
|
13260
|
+
value: {
|
|
13261
|
+
value: internalValue,
|
|
13262
|
+
onChange: handleChange
|
|
13263
|
+
},
|
|
13264
|
+
children: jsxs(Select, {
|
|
13265
|
+
value: internalValue,
|
|
13266
|
+
placeholder: placeholder,
|
|
13267
|
+
label: label,
|
|
13268
|
+
children: [jsx(SelectTrigger, {
|
|
13269
|
+
...rest,
|
|
13270
|
+
validationState: validationState,
|
|
13271
|
+
onClear: () => {
|
|
13272
|
+
handleChange('');
|
|
13273
|
+
},
|
|
13274
|
+
id: id,
|
|
13275
|
+
value: internalValue,
|
|
13276
|
+
children: selectedLabel || placeholder
|
|
13277
|
+
}), !isControlled && jsx("input", {
|
|
13278
|
+
type: "hidden",
|
|
13279
|
+
ref: innerRef
|
|
13280
|
+
}), jsx(SelectContent, {
|
|
13281
|
+
...contentProps,
|
|
13282
|
+
children: children
|
|
13283
|
+
})]
|
|
13284
|
+
})
|
|
12593
13285
|
});
|
|
12594
13286
|
});
|
|
12595
|
-
|
|
12596
|
-
|
|
12597
|
-
|
|
12598
|
-
name,
|
|
13287
|
+
const SimpleSelectOption = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
13288
|
+
let {
|
|
13289
|
+
value,
|
|
12599
13290
|
children,
|
|
12600
|
-
...
|
|
12601
|
-
} =
|
|
12602
|
-
|
|
12603
|
-
|
|
12604
|
-
|
|
12605
|
-
|
|
12606
|
-
}), children]
|
|
12607
|
-
});
|
|
12608
|
-
};
|
|
12609
|
-
|
|
12610
|
-
const SelectV2Trigger = /*#__PURE__*/forwardRef((props, ref) => {
|
|
13291
|
+
...rest
|
|
13292
|
+
} = _ref2;
|
|
13293
|
+
const context = useContext(SimpleSelectContext);
|
|
13294
|
+
if (!context) {
|
|
13295
|
+
throw new Error('SimpleSelectOption must be used within a SimpleSelect');
|
|
13296
|
+
}
|
|
12611
13297
|
const {
|
|
12612
|
-
|
|
12613
|
-
|
|
12614
|
-
|
|
12615
|
-
|
|
12616
|
-
allowClear: false,
|
|
12617
|
-
...restProps,
|
|
13298
|
+
onChange
|
|
13299
|
+
} = context;
|
|
13300
|
+
return jsx(SelectOption, {
|
|
13301
|
+
...rest,
|
|
12618
13302
|
ref: ref,
|
|
13303
|
+
value: value,
|
|
13304
|
+
onChange: _ref3 => {
|
|
13305
|
+
let {
|
|
13306
|
+
value
|
|
13307
|
+
} = _ref3;
|
|
13308
|
+
onChange(value);
|
|
13309
|
+
},
|
|
12619
13310
|
children: children
|
|
12620
13311
|
});
|
|
12621
13312
|
});
|
|
13313
|
+
const SimpleSelectOptionGroup = _ref4 => {
|
|
13314
|
+
let {
|
|
13315
|
+
children,
|
|
13316
|
+
label,
|
|
13317
|
+
...props
|
|
13318
|
+
} = _ref4;
|
|
13319
|
+
const context = useContext(SimpleSelectContext);
|
|
13320
|
+
if (!context) {
|
|
13321
|
+
throw new Error('SimpleSelectOptionGroup must be used within a SimpleSelect');
|
|
13322
|
+
}
|
|
13323
|
+
return jsx(SelectOptionGroup, {
|
|
13324
|
+
...props,
|
|
13325
|
+
name: label,
|
|
13326
|
+
children: children
|
|
13327
|
+
});
|
|
13328
|
+
};
|
|
12622
13329
|
|
|
12623
13330
|
const getSwitchWithLabelStyles = _ref => {
|
|
12624
13331
|
let {
|
|
@@ -12983,7 +13690,9 @@ function useComboboxState(_ref) {
|
|
|
12983
13690
|
props.setSelectedItems(props.selectedItems.filter(item => item !== newSelectedItem));
|
|
12984
13691
|
}
|
|
12985
13692
|
}
|
|
12986
|
-
}
|
|
13693
|
+
},
|
|
13694
|
+
initialInputValue: props.initialInputValue,
|
|
13695
|
+
initialSelectedItem: props.initialSelectedItem
|
|
12987
13696
|
});
|
|
12988
13697
|
return comboboxState;
|
|
12989
13698
|
}
|
|
@@ -13012,7 +13721,7 @@ const useTypeaheadComboboxContext = () => {
|
|
|
13012
13721
|
};
|
|
13013
13722
|
|
|
13014
13723
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$d() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
13015
|
-
var _ref$
|
|
13724
|
+
var _ref$5 = process.env.NODE_ENV === "production" ? {
|
|
13016
13725
|
name: "xv0ss6",
|
|
13017
13726
|
styles: "padding:0;margin:0;display:flex;flex-direction:column;align-items:flex-start;position:absolute"
|
|
13018
13727
|
} : {
|
|
@@ -13021,7 +13730,7 @@ var _ref$4 = process.env.NODE_ENV === "production" ? {
|
|
|
13021
13730
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$d
|
|
13022
13731
|
};
|
|
13023
13732
|
const getTypeaheadComboboxMenuStyles = () => {
|
|
13024
|
-
return _ref$
|
|
13733
|
+
return _ref$5;
|
|
13025
13734
|
};
|
|
13026
13735
|
const TypeaheadComboboxMenu = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
13027
13736
|
let {
|
|
@@ -13384,6 +14093,7 @@ const TypeaheadComboboxControls = _ref => {
|
|
|
13384
14093
|
let {
|
|
13385
14094
|
getDownshiftToggleButtonProps,
|
|
13386
14095
|
showClearSelectionButton,
|
|
14096
|
+
showComboboxToggleButton = true,
|
|
13387
14097
|
handleClear,
|
|
13388
14098
|
disabled
|
|
13389
14099
|
} = _ref;
|
|
@@ -13400,7 +14110,7 @@ const TypeaheadComboboxControls = _ref => {
|
|
|
13400
14110
|
children: [showClearSelectionButton && jsx(ClearSelectionButton, {
|
|
13401
14111
|
onClick: handleClear,
|
|
13402
14112
|
css: _ref2$5
|
|
13403
|
-
}), jsx(TypeaheadComboboxToggleButton, {
|
|
14113
|
+
}), showComboboxToggleButton && jsx(TypeaheadComboboxToggleButton, {
|
|
13404
14114
|
...getDownshiftToggleButtonProps(),
|
|
13405
14115
|
disabled: disabled
|
|
13406
14116
|
})]
|
|
@@ -13408,7 +14118,7 @@ const TypeaheadComboboxControls = _ref => {
|
|
|
13408
14118
|
};
|
|
13409
14119
|
|
|
13410
14120
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$9() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
13411
|
-
var _ref$
|
|
14121
|
+
var _ref$4 = process.env.NODE_ENV === "production" ? {
|
|
13412
14122
|
name: "5ob2ly",
|
|
13413
14123
|
styles: "display:flex;position:relative"
|
|
13414
14124
|
} : {
|
|
@@ -13417,10 +14127,10 @@ var _ref$3 = process.env.NODE_ENV === "production" ? {
|
|
|
13417
14127
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$9
|
|
13418
14128
|
};
|
|
13419
14129
|
const getContainerStyles$1 = () => {
|
|
13420
|
-
return _ref$
|
|
14130
|
+
return _ref$4;
|
|
13421
14131
|
};
|
|
13422
|
-
const getInputStyles$1 = theme => /*#__PURE__*/css({
|
|
13423
|
-
paddingRight: 52,
|
|
14132
|
+
const getInputStyles$1 = (theme, showComboboxToggleButton) => /*#__PURE__*/css({
|
|
14133
|
+
paddingRight: showComboboxToggleButton ? 52 : 26,
|
|
13424
14134
|
width: '100%',
|
|
13425
14135
|
minWidth: 72,
|
|
13426
14136
|
'&:disabled': {
|
|
@@ -13436,6 +14146,7 @@ const TypeaheadComboboxInput = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
13436
14146
|
let {
|
|
13437
14147
|
comboboxState,
|
|
13438
14148
|
allowClear = true,
|
|
14149
|
+
showComboboxToggleButton = true,
|
|
13439
14150
|
formOnChange,
|
|
13440
14151
|
onClick,
|
|
13441
14152
|
...restProps
|
|
@@ -13497,11 +14208,12 @@ const TypeaheadComboboxInput = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
13497
14208
|
ref: mergedRef,
|
|
13498
14209
|
...downshiftProps,
|
|
13499
14210
|
onClick: handleClick,
|
|
13500
|
-
css: getInputStyles$1(theme),
|
|
14211
|
+
css: getInputStyles$1(theme, showComboboxToggleButton),
|
|
13501
14212
|
...restProps
|
|
13502
14213
|
}), jsx(TypeaheadComboboxControls, {
|
|
13503
14214
|
getDownshiftToggleButtonProps: getToggleButtonProps,
|
|
13504
14215
|
showClearSelectionButton: allowClear && Boolean(inputValue) && !restProps.disabled,
|
|
14216
|
+
showComboboxToggleButton: showComboboxToggleButton,
|
|
13505
14217
|
handleClear: handleClear,
|
|
13506
14218
|
disabled: restProps.disabled
|
|
13507
14219
|
})]
|
|
@@ -13673,7 +14385,7 @@ var _ref2$3 = process.env.NODE_ENV === "production" ? {
|
|
|
13673
14385
|
const getContentWrapperStyles = () => {
|
|
13674
14386
|
return _ref2$3;
|
|
13675
14387
|
};
|
|
13676
|
-
var _ref$
|
|
14388
|
+
var _ref$3 = process.env.NODE_ENV === "production" ? {
|
|
13677
14389
|
name: "qngrd1",
|
|
13678
14390
|
styles: "display:inline-flex;position:relative;max-width:100%;align-self:auto;flex:none"
|
|
13679
14391
|
} : {
|
|
@@ -13682,7 +14394,7 @@ var _ref$2 = process.env.NODE_ENV === "production" ? {
|
|
|
13682
14394
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
|
|
13683
14395
|
};
|
|
13684
14396
|
const getInputWrapperStyles = () => {
|
|
13685
|
-
return _ref$
|
|
14397
|
+
return _ref$3;
|
|
13686
14398
|
};
|
|
13687
14399
|
const getInputStyles = theme => {
|
|
13688
14400
|
return /*#__PURE__*/css({
|
|
@@ -13704,7 +14416,7 @@ const getInputStyles = theme => {
|
|
|
13704
14416
|
}
|
|
13705
14417
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getInputStyles;");
|
|
13706
14418
|
};
|
|
13707
|
-
var _ref4$
|
|
14419
|
+
var _ref4$1 = process.env.NODE_ENV === "production" ? {
|
|
13708
14420
|
name: "1r88pt9",
|
|
13709
14421
|
styles: "visibility:hidden;white-space:pre;position:absolute"
|
|
13710
14422
|
} : {
|
|
@@ -13830,7 +14542,7 @@ const TypeaheadComboboxMultiSelectInput = /*#__PURE__*/forwardRef((_ref3, ref) =
|
|
|
13830
14542
|
}), jsxs("span", {
|
|
13831
14543
|
ref: measureRef,
|
|
13832
14544
|
"aria-hidden": true,
|
|
13833
|
-
css: _ref4$
|
|
14545
|
+
css: _ref4$1,
|
|
13834
14546
|
children: [(_innerRef$current2 = innerRef.current) !== null && _innerRef$current2 !== void 0 && _innerRef$current2.value ? innerRef.current.value : placeholder, "\xA0"]
|
|
13835
14547
|
})]
|
|
13836
14548
|
})]
|
|
@@ -14014,7 +14726,10 @@ function RHFControlledTextArea(_ref3) {
|
|
|
14014
14726
|
defaultValue: restProps.defaultValue
|
|
14015
14727
|
});
|
|
14016
14728
|
}
|
|
14017
|
-
|
|
14729
|
+
/**
|
|
14730
|
+
* @deprecated Use `RHFControlledSelect` instead.
|
|
14731
|
+
*/
|
|
14732
|
+
function RHFControlledLegacySelect(_ref4) {
|
|
14018
14733
|
let {
|
|
14019
14734
|
name,
|
|
14020
14735
|
control,
|
|
@@ -14028,14 +14743,18 @@ function RHFControlledSelect(_ref4) {
|
|
|
14028
14743
|
control: control,
|
|
14029
14744
|
rules: rules
|
|
14030
14745
|
});
|
|
14031
|
-
return jsx(
|
|
14746
|
+
return jsx(LegacySelect, {
|
|
14032
14747
|
...restProps,
|
|
14033
14748
|
...field,
|
|
14034
14749
|
value: field.value,
|
|
14035
14750
|
defaultValue: field.value
|
|
14036
14751
|
});
|
|
14037
14752
|
}
|
|
14038
|
-
|
|
14753
|
+
/**
|
|
14754
|
+
* @deprecated This component is no longer necessary as `SimpleSelect` can be used uncontrolled by RHF.
|
|
14755
|
+
* Please consult the Forms Guide on go/dubois.
|
|
14756
|
+
*/
|
|
14757
|
+
function RHFControlledSelect(_ref5) {
|
|
14039
14758
|
let {
|
|
14040
14759
|
name,
|
|
14041
14760
|
control,
|
|
@@ -14085,25 +14804,25 @@ function RHFControlledSelectV2(_ref5) {
|
|
|
14085
14804
|
}
|
|
14086
14805
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
14087
14806
|
}, [field.value]);
|
|
14088
|
-
return jsxs(
|
|
14807
|
+
return jsxs(Select, {
|
|
14089
14808
|
...restProps,
|
|
14090
14809
|
value: field.value,
|
|
14091
|
-
children: [jsx(
|
|
14810
|
+
children: [jsx(SelectTrigger, {
|
|
14092
14811
|
...triggerProps,
|
|
14093
14812
|
width: width,
|
|
14094
14813
|
onBlur: field.onBlur,
|
|
14095
14814
|
validationState: validationState,
|
|
14096
14815
|
children: selectedValueLabel
|
|
14097
|
-
}), jsx(
|
|
14816
|
+
}), jsx(SelectContent, {
|
|
14098
14817
|
...contentProps,
|
|
14099
14818
|
side: "bottom",
|
|
14100
|
-
children: options && options.length > 0 ? options.map(option => createElement(
|
|
14819
|
+
children: options && options.length > 0 ? options.map(option => createElement(SelectOption, {
|
|
14101
14820
|
...optionProps,
|
|
14102
14821
|
key: option.value,
|
|
14103
14822
|
value: option.value,
|
|
14104
14823
|
onChange: handleOnChange
|
|
14105
|
-
}, option.label)) : //
|
|
14106
|
-
// We expose onChange through a children renderer function to let users pass this down to
|
|
14824
|
+
}, option.label)) : // SelectOption out of the box gives users control over state and in this case RHF is controlling state
|
|
14825
|
+
// We expose onChange through a children renderer function to let users pass this down to SelectOption
|
|
14107
14826
|
children === null || children === void 0 ? void 0 : children({
|
|
14108
14827
|
onChange: handleOnChange
|
|
14109
14828
|
})
|
|
@@ -14160,11 +14879,13 @@ function RHFControlledDialogCombobox(_ref6) {
|
|
|
14160
14879
|
field.onChange(updatedValue);
|
|
14161
14880
|
updateValueMap(updatedValue);
|
|
14162
14881
|
};
|
|
14163
|
-
const
|
|
14882
|
+
const handleOnChangeMultiSelect = option => {
|
|
14164
14883
|
var _field$value;
|
|
14165
|
-
let updatedValue
|
|
14884
|
+
let updatedValue;
|
|
14166
14885
|
if ((_field$value = field.value) !== null && _field$value !== void 0 && _field$value.includes(option)) {
|
|
14167
14886
|
updatedValue = field.value.filter(value => value !== option);
|
|
14887
|
+
} else if (!field.value) {
|
|
14888
|
+
updatedValue = [option];
|
|
14168
14889
|
} else {
|
|
14169
14890
|
updatedValue = [...field.value, option];
|
|
14170
14891
|
}
|
|
@@ -14173,7 +14894,7 @@ function RHFControlledDialogCombobox(_ref6) {
|
|
|
14173
14894
|
};
|
|
14174
14895
|
const handleOnChange = option => {
|
|
14175
14896
|
if (restProps.multiSelect) {
|
|
14176
|
-
|
|
14897
|
+
handleOnChangeMultiSelect(option);
|
|
14177
14898
|
} else {
|
|
14178
14899
|
handleOnChangeSingleSelect(option);
|
|
14179
14900
|
}
|
|
@@ -14428,8 +15149,8 @@ const RHFControlledComponents = {
|
|
|
14428
15149
|
Input: RHFControlledInput,
|
|
14429
15150
|
Password: RHFControlledPasswordInput,
|
|
14430
15151
|
TextArea: RHFControlledTextArea,
|
|
15152
|
+
LegacySelect: RHFControlledLegacySelect,
|
|
14431
15153
|
Select: RHFControlledSelect,
|
|
14432
|
-
SelectV2: RHFControlledSelectV2,
|
|
14433
15154
|
DialogCombobox: RHFControlledDialogCombobox,
|
|
14434
15155
|
Checkbox: RHFControlledCheckbox,
|
|
14435
15156
|
CheckboxGroup: RHFControlledCheckboxGroup,
|
|
@@ -14527,15 +15248,7 @@ const getHeaderStyles = (clsPrefix, theme) => {
|
|
|
14527
15248
|
};
|
|
14528
15249
|
return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:getHeaderStyles;");
|
|
14529
15250
|
};
|
|
14530
|
-
var _ref$
|
|
14531
|
-
name: "eh0igi",
|
|
14532
|
-
styles: "display:inline-flex;vertical-align:middle;align-items:center"
|
|
14533
|
-
} : {
|
|
14534
|
-
name: "n13uil-titleAddOnsWrapper",
|
|
14535
|
-
styles: "display:inline-flex;vertical-align:middle;align-items:center;label:titleAddOnsWrapper;",
|
|
14536
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
|
|
14537
|
-
};
|
|
14538
|
-
var _ref2$2 = process.env.NODE_ENV === "production" ? {
|
|
15251
|
+
var _ref$2 = process.env.NODE_ENV === "production" ? {
|
|
14539
15252
|
name: "1q4vxyr",
|
|
14540
15253
|
styles: "margin-left:8px"
|
|
14541
15254
|
} : {
|
|
@@ -14543,7 +15256,7 @@ var _ref2$2 = process.env.NODE_ENV === "production" ? {
|
|
|
14543
15256
|
styles: "margin-left:8px;label:buttonContainer;",
|
|
14544
15257
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
|
|
14545
15258
|
};
|
|
14546
|
-
var
|
|
15259
|
+
var _ref2$2 = process.env.NODE_ENV === "production" ? {
|
|
14547
15260
|
name: "s079uh",
|
|
14548
15261
|
styles: "margin-top:2px"
|
|
14549
15262
|
} : {
|
|
@@ -14551,7 +15264,7 @@ var _ref3$4 = process.env.NODE_ENV === "production" ? {
|
|
|
14551
15264
|
styles: "margin-top:2px;label:titleIfOtherElementsPresent;",
|
|
14552
15265
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
|
|
14553
15266
|
};
|
|
14554
|
-
var
|
|
15267
|
+
var _ref3$4 = process.env.NODE_ENV === "production" ? {
|
|
14555
15268
|
name: "fuxm9z",
|
|
14556
15269
|
styles: "margin-top:0;margin-bottom:0 !important;align-self:stretch"
|
|
14557
15270
|
} : {
|
|
@@ -14559,7 +15272,7 @@ var _ref4$1 = process.env.NODE_ENV === "production" ? {
|
|
|
14559
15272
|
styles: "margin-top:0;margin-bottom:0 !important;align-self:stretch;label:title;",
|
|
14560
15273
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
|
|
14561
15274
|
};
|
|
14562
|
-
const Header$1 =
|
|
15275
|
+
const Header$1 = _ref4 => {
|
|
14563
15276
|
let {
|
|
14564
15277
|
breadcrumbs,
|
|
14565
15278
|
title,
|
|
@@ -14568,7 +15281,7 @@ const Header$1 = _ref5 => {
|
|
|
14568
15281
|
buttons,
|
|
14569
15282
|
children,
|
|
14570
15283
|
...rest
|
|
14571
|
-
} =
|
|
15284
|
+
} = _ref4;
|
|
14572
15285
|
const {
|
|
14573
15286
|
classNamePrefix: clsPrefix,
|
|
14574
15287
|
theme
|
|
@@ -14595,11 +15308,18 @@ const Header$1 = _ref5 => {
|
|
|
14595
15308
|
breadcrumbWrapper: /*#__PURE__*/css({
|
|
14596
15309
|
lineHeight: theme.typography.lineHeightBase
|
|
14597
15310
|
}, process.env.NODE_ENV === "production" ? "" : ";label:breadcrumbWrapper;"),
|
|
14598
|
-
title:
|
|
15311
|
+
title: _ref3$4,
|
|
14599
15312
|
// TODO: Look into a more emotion-idomatic way of doing this.
|
|
14600
|
-
titleIfOtherElementsPresent:
|
|
14601
|
-
buttonContainer:
|
|
14602
|
-
titleAddOnsWrapper:
|
|
15313
|
+
titleIfOtherElementsPresent: _ref2$2,
|
|
15314
|
+
buttonContainer: _ref$2,
|
|
15315
|
+
titleAddOnsWrapper: /*#__PURE__*/css({
|
|
15316
|
+
display: 'inline-flex',
|
|
15317
|
+
verticalAlign: 'middle',
|
|
15318
|
+
alignItems: 'center',
|
|
15319
|
+
...(useReflowWrapStyles ? {
|
|
15320
|
+
flexWrap: 'wrap'
|
|
15321
|
+
} : {})
|
|
15322
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:titleAddOnsWrapper;")
|
|
14603
15323
|
};
|
|
14604
15324
|
return jsxs("div", {
|
|
14605
15325
|
css: [getHeaderStyles(clsPrefix, theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Header;"],
|
|
@@ -15107,7 +15827,7 @@ const CursorPagination = function CursorPagination(_ref2) {
|
|
|
15107
15827
|
onClick: onNextPage,
|
|
15108
15828
|
type: "tertiary",
|
|
15109
15829
|
children: nextPageText
|
|
15110
|
-
}), pageSizeOptions && jsx(
|
|
15830
|
+
}), pageSizeOptions && jsx(LegacySelect, {
|
|
15111
15831
|
"aria-label": ariaLabel,
|
|
15112
15832
|
value: String(pageSizeValue),
|
|
15113
15833
|
css: _ref3$3,
|
|
@@ -15116,7 +15836,7 @@ const CursorPagination = function CursorPagination(_ref2) {
|
|
|
15116
15836
|
onPageSizeChange === null || onPageSizeChange === void 0 || onPageSizeChange(updatedPageSize);
|
|
15117
15837
|
setPageSizeValue(updatedPageSize);
|
|
15118
15838
|
},
|
|
15119
|
-
children: pageSizeOptions.map(pageSize => jsx(
|
|
15839
|
+
children: pageSizeOptions.map(pageSize => jsx(LegacySelect.Option, {
|
|
15120
15840
|
value: String(pageSize),
|
|
15121
15841
|
children: (getPageSizeOptionText || getPageSizeOptionTextDefault)(pageSize)
|
|
15122
15842
|
}, pageSize))
|
|
@@ -15377,12 +16097,16 @@ const getModalEmotionStyles = args => {
|
|
|
15377
16097
|
...getAnimationCss(theme.options.enableAnimation)
|
|
15378
16098
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getModalEmotionStyles;");
|
|
15379
16099
|
};
|
|
16100
|
+
function closeButtonComponentId(componentId) {
|
|
16101
|
+
return componentId ? `${componentId}.footer.cancel` : 'codegen_design-system_src_design-system_modal_modal.tsx_260';
|
|
16102
|
+
}
|
|
15380
16103
|
|
|
15381
16104
|
/**
|
|
15382
16105
|
* Render default footer with our buttons. Copied from AntD.
|
|
15383
16106
|
*/
|
|
15384
16107
|
function DefaultFooter(_ref) {
|
|
15385
16108
|
let {
|
|
16109
|
+
componentId,
|
|
15386
16110
|
onOk,
|
|
15387
16111
|
onCancel,
|
|
15388
16112
|
confirmLoading,
|
|
@@ -15400,14 +16124,14 @@ function DefaultFooter(_ref) {
|
|
|
15400
16124
|
};
|
|
15401
16125
|
return jsxs(Fragment, {
|
|
15402
16126
|
children: [cancelText && jsx(Button, {
|
|
15403
|
-
componentId:
|
|
16127
|
+
componentId: closeButtonComponentId(componentId),
|
|
15404
16128
|
onClick: handleCancel,
|
|
15405
16129
|
autoFocus: autoFocusButton === 'cancel',
|
|
15406
16130
|
dangerouslyUseFocusPseudoClass: true,
|
|
15407
16131
|
...cancelButtonProps,
|
|
15408
16132
|
children: cancelText
|
|
15409
16133
|
}), okText && jsx(Button, {
|
|
15410
|
-
componentId:
|
|
16134
|
+
componentId: componentId ? `${componentId}.footer.ok` : 'codegen_design-system_src_design-system_modal_modal.tsx_271',
|
|
15411
16135
|
loading: confirmLoading,
|
|
15412
16136
|
onClick: handleOk,
|
|
15413
16137
|
type: "primary",
|
|
@@ -15420,6 +16144,8 @@ function DefaultFooter(_ref) {
|
|
|
15420
16144
|
}
|
|
15421
16145
|
function Modal(_ref2) {
|
|
15422
16146
|
let {
|
|
16147
|
+
componentId,
|
|
16148
|
+
analyticsEvents,
|
|
15423
16149
|
okButtonProps,
|
|
15424
16150
|
cancelButtonProps,
|
|
15425
16151
|
dangerouslySetAntdProps,
|
|
@@ -15436,6 +16162,29 @@ function Modal(_ref2) {
|
|
|
15436
16162
|
theme,
|
|
15437
16163
|
classNamePrefix
|
|
15438
16164
|
} = useDesignSystemTheme();
|
|
16165
|
+
const eventContext = useDesignSystemEventComponentCallbacks({
|
|
16166
|
+
componentType: DesignSystemEventProviderComponentTypes.Modal,
|
|
16167
|
+
componentId,
|
|
16168
|
+
analyticsEvents: analyticsEvents !== null && analyticsEvents !== void 0 ? analyticsEvents : [DesignSystemEventProviderAnalyticsEventTypes.OnView]
|
|
16169
|
+
});
|
|
16170
|
+
const {
|
|
16171
|
+
elementRef
|
|
16172
|
+
} = useNotifyOnFirstView({
|
|
16173
|
+
onView: eventContext.onView
|
|
16174
|
+
});
|
|
16175
|
+
|
|
16176
|
+
// Need to simulate the close button being closed if the user clicks outside of the modal or clicks on the dismiss button
|
|
16177
|
+
// This should only be applied to the modal prop and not to the footer component
|
|
16178
|
+
const closeButtonEventContext = useDesignSystemEventComponentCallbacks({
|
|
16179
|
+
componentType: DesignSystemEventProviderComponentTypes.Button,
|
|
16180
|
+
componentId: closeButtonComponentId(componentId),
|
|
16181
|
+
analyticsEvents: [DesignSystemEventProviderAnalyticsEventTypes.OnClick]
|
|
16182
|
+
});
|
|
16183
|
+
const onCancelWrapper = e => {
|
|
16184
|
+
var _props$onCancel;
|
|
16185
|
+
closeButtonEventContext.onClick();
|
|
16186
|
+
(_props$onCancel = props.onCancel) === null || _props$onCancel === void 0 || _props$onCancel.call(props, e);
|
|
16187
|
+
};
|
|
15439
16188
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
15440
16189
|
children: jsx(Modal$1, {
|
|
15441
16190
|
css: getModalEmotionStyles({
|
|
@@ -15458,6 +16207,7 @@ function Modal(_ref2) {
|
|
|
15458
16207
|
}),
|
|
15459
16208
|
footer: jsx(RestoreAntDDefaultClsPrefix, {
|
|
15460
16209
|
children: footer === undefined ? jsx(DefaultFooter, {
|
|
16210
|
+
componentId: componentId,
|
|
15461
16211
|
onOk: props.onOk,
|
|
15462
16212
|
onCancel: props.onCancel,
|
|
15463
16213
|
confirmLoading: props.confirmLoading,
|
|
@@ -15469,10 +16219,13 @@ function Modal(_ref2) {
|
|
|
15469
16219
|
}) : footer
|
|
15470
16220
|
}),
|
|
15471
16221
|
width: size ? SIZE_PRESETS[size] : undefined,
|
|
15472
|
-
closeIcon: jsx(CloseIcon, {
|
|
16222
|
+
closeIcon: jsx(CloseIcon, {
|
|
16223
|
+
ref: elementRef
|
|
16224
|
+
}),
|
|
15473
16225
|
centered: true,
|
|
15474
16226
|
zIndex: theme.options.zIndexBase,
|
|
15475
16227
|
...props,
|
|
16228
|
+
onCancel: onCancelWrapper,
|
|
15476
16229
|
...dangerouslySetAntdProps,
|
|
15477
16230
|
children: jsx(RestoreAntDDefaultClsPrefix, {
|
|
15478
16231
|
children: children
|
|
@@ -15528,14 +16281,16 @@ function DangerModal(props) {
|
|
|
15528
16281
|
})]
|
|
15529
16282
|
});
|
|
15530
16283
|
return jsx(Modal, {
|
|
16284
|
+
componentId: props.componentId,
|
|
16285
|
+
analyticsEvents: props.analyticsEvents,
|
|
15531
16286
|
title: titleComp,
|
|
15532
16287
|
footer: [jsx(Button, {
|
|
15533
|
-
componentId:
|
|
16288
|
+
componentId: props.componentId ? `${props.componentId}.danger.footer.cancel` : 'codegen_design-system_src_design-system_modal_modal.tsx_386',
|
|
15534
16289
|
onClick: onCancel,
|
|
15535
16290
|
...cancelButtonProps,
|
|
15536
16291
|
children: cancelText || 'Cancel'
|
|
15537
16292
|
}, "cancel"), jsx(Button, {
|
|
15538
|
-
componentId:
|
|
16293
|
+
componentId: props.componentId ? `${props.componentId}.danger.footer.ok` : 'codegen_design-system_src_design-system_modal_modal.tsx_395',
|
|
15539
16294
|
type: "primary",
|
|
15540
16295
|
danger: true,
|
|
15541
16296
|
onClick: onOk,
|
|
@@ -16400,6 +17155,85 @@ const SegmentedControlGroup = /*#__PURE__*/forwardRef(function SegmentedControlG
|
|
|
16400
17155
|
});
|
|
16401
17156
|
});
|
|
16402
17157
|
|
|
17158
|
+
/**
|
|
17159
|
+
* Copied from usehooks-ts.
|
|
17160
|
+
* Custom hook for using either `useLayoutEffect` or `useEffect` based on the environment (client-side or server-side).
|
|
17161
|
+
*
|
|
17162
|
+
* [Documentation](https://usehooks-ts.com/react-hook/use-isomorphic-layout-effect)
|
|
17163
|
+
*
|
|
17164
|
+
* Example:
|
|
17165
|
+
* ```
|
|
17166
|
+
* useIsomorphicLayoutEffect(() => {
|
|
17167
|
+
* // Code to be executed during the layout phase on the client side
|
|
17168
|
+
* }, [dependency1, dependency2]);
|
|
17169
|
+
* ```
|
|
17170
|
+
*/
|
|
17171
|
+
const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
|
|
17172
|
+
|
|
17173
|
+
const IS_SERVER = typeof window === 'undefined';
|
|
17174
|
+
/**
|
|
17175
|
+
* Copied from usehooks-ts.
|
|
17176
|
+
* Custom hook for tracking the state of a media query. Returns The current state of the media query (true if the query matches, false otherwise).
|
|
17177
|
+
*
|
|
17178
|
+
* [Documentation](https://usehooks-ts.com/react-hook/use-media-query)
|
|
17179
|
+
*
|
|
17180
|
+
* [MDN Match Media](https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia)
|
|
17181
|
+
*
|
|
17182
|
+
* Example:
|
|
17183
|
+
*
|
|
17184
|
+
* `const isSmallScreen = useMediaQuery('(max-width: 600px)');`
|
|
17185
|
+
*
|
|
17186
|
+
* Use `isSmallScreen` to conditionally apply styles or logic based on the screen size.
|
|
17187
|
+
*/
|
|
17188
|
+
function useMediaQuery(_ref) {
|
|
17189
|
+
var _options$defaultValue, _options$initializeWi;
|
|
17190
|
+
let {
|
|
17191
|
+
query,
|
|
17192
|
+
options
|
|
17193
|
+
} = _ref;
|
|
17194
|
+
// TODO: Refactor this code after the deprecated signature has been removed.
|
|
17195
|
+
const defaultValue = typeof options === 'boolean' ? options : (_options$defaultValue = options === null || options === void 0 ? void 0 : options.defaultValue) !== null && _options$defaultValue !== void 0 ? _options$defaultValue : false;
|
|
17196
|
+
const initializeWithValue = typeof options === 'boolean' ? undefined : (_options$initializeWi = options === null || options === void 0 ? void 0 : options.initializeWithValue) !== null && _options$initializeWi !== void 0 ? _options$initializeWi : undefined;
|
|
17197
|
+
const [matches, setMatches] = useState(() => {
|
|
17198
|
+
if (initializeWithValue) {
|
|
17199
|
+
return getMatches(query);
|
|
17200
|
+
}
|
|
17201
|
+
return defaultValue;
|
|
17202
|
+
});
|
|
17203
|
+
const getMatches = query => {
|
|
17204
|
+
if (IS_SERVER) {
|
|
17205
|
+
return defaultValue;
|
|
17206
|
+
}
|
|
17207
|
+
return window.matchMedia(query).matches;
|
|
17208
|
+
};
|
|
17209
|
+
|
|
17210
|
+
/** Handles the change event of the media query. */
|
|
17211
|
+
function handleChange() {
|
|
17212
|
+
setMatches(getMatches(query));
|
|
17213
|
+
}
|
|
17214
|
+
useIsomorphicLayoutEffect(() => {
|
|
17215
|
+
const matchMedia = window.matchMedia(query);
|
|
17216
|
+
|
|
17217
|
+
// Triggered at the first client-side load and if query changes
|
|
17218
|
+
handleChange();
|
|
17219
|
+
|
|
17220
|
+
// Use deprecated `addListener` and `removeListener` to support Safari < 14 (#135)
|
|
17221
|
+
if (matchMedia.addListener) {
|
|
17222
|
+
matchMedia.addListener(handleChange);
|
|
17223
|
+
} else {
|
|
17224
|
+
matchMedia.addEventListener('change', handleChange);
|
|
17225
|
+
}
|
|
17226
|
+
return () => {
|
|
17227
|
+
if (matchMedia.removeListener) {
|
|
17228
|
+
matchMedia.removeListener(handleChange);
|
|
17229
|
+
} else {
|
|
17230
|
+
matchMedia.removeEventListener('change', handleChange);
|
|
17231
|
+
}
|
|
17232
|
+
};
|
|
17233
|
+
}, [query]);
|
|
17234
|
+
return matches;
|
|
17235
|
+
}
|
|
17236
|
+
|
|
16403
17237
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$2() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
16404
17238
|
const DEFAULT_WIDTH = 200;
|
|
16405
17239
|
const ContentContextDefaults = {
|
|
@@ -16413,11 +17247,11 @@ const SidebarContextDefaults = {
|
|
|
16413
17247
|
};
|
|
16414
17248
|
const ContentContext = /*#__PURE__*/createContext(ContentContextDefaults);
|
|
16415
17249
|
const SidebarContext = /*#__PURE__*/createContext(SidebarContextDefaults);
|
|
16416
|
-
function Nav(
|
|
17250
|
+
function Nav(_ref2) {
|
|
16417
17251
|
let {
|
|
16418
17252
|
children,
|
|
16419
17253
|
dangerouslyAppendEmotionCSS
|
|
16420
|
-
} =
|
|
17254
|
+
} = _ref2;
|
|
16421
17255
|
const {
|
|
16422
17256
|
theme
|
|
16423
17257
|
} = useDesignSystemTheme();
|
|
@@ -16431,7 +17265,7 @@ function Nav(_ref) {
|
|
|
16431
17265
|
children: children
|
|
16432
17266
|
});
|
|
16433
17267
|
}
|
|
16434
|
-
function NavButton(
|
|
17268
|
+
function NavButton(_ref3) {
|
|
16435
17269
|
let {
|
|
16436
17270
|
active,
|
|
16437
17271
|
disabled,
|
|
@@ -16441,7 +17275,7 @@ function NavButton(_ref2) {
|
|
|
16441
17275
|
dangerouslyAppendEmotionCSS,
|
|
16442
17276
|
'aria-label': ariaLabel,
|
|
16443
17277
|
...restProps
|
|
16444
|
-
} =
|
|
17278
|
+
} = _ref3;
|
|
16445
17279
|
const {
|
|
16446
17280
|
theme
|
|
16447
17281
|
} = useDesignSystemTheme();
|
|
@@ -16465,11 +17299,104 @@ function NavButton(_ref2) {
|
|
|
16465
17299
|
})
|
|
16466
17300
|
});
|
|
16467
17301
|
}
|
|
16468
|
-
|
|
17302
|
+
const TOGGLE_BUTTON_Z_INDEX = 100;
|
|
17303
|
+
const COMPACT_CONTENT_Z_INDEX = 50;
|
|
17304
|
+
const ToggleButton$1 = _ref4 => {
|
|
17305
|
+
let {
|
|
17306
|
+
isExpanded,
|
|
17307
|
+
position,
|
|
17308
|
+
toggleIsExpanded
|
|
17309
|
+
} = _ref4;
|
|
17310
|
+
const {
|
|
17311
|
+
theme
|
|
17312
|
+
} = useDesignSystemTheme();
|
|
17313
|
+
const positionStyle = useMemo(() => {
|
|
17314
|
+
if (position === 'right') {
|
|
17315
|
+
return isExpanded ? {
|
|
17316
|
+
right: DEFAULT_WIDTH,
|
|
17317
|
+
transform: 'translateX(+50%)'
|
|
17318
|
+
} : {
|
|
17319
|
+
left: 0,
|
|
17320
|
+
transform: 'translateX(-50%)'
|
|
17321
|
+
};
|
|
17322
|
+
} else {
|
|
17323
|
+
return isExpanded ? {
|
|
17324
|
+
left: DEFAULT_WIDTH,
|
|
17325
|
+
transform: 'translateX(-50%)'
|
|
17326
|
+
} : {
|
|
17327
|
+
right: 0,
|
|
17328
|
+
transform: 'translateX(+50%)'
|
|
17329
|
+
};
|
|
17330
|
+
}
|
|
17331
|
+
}, [isExpanded, position]);
|
|
17332
|
+
const ToggleIcon = useMemo(() => {
|
|
17333
|
+
if (position === 'right') {
|
|
17334
|
+
return isExpanded ? ChevronRightIcon : ChevronLeftIcon;
|
|
17335
|
+
} else {
|
|
17336
|
+
return isExpanded ? ChevronLeftIcon : ChevronRightIcon;
|
|
17337
|
+
}
|
|
17338
|
+
}, [isExpanded, position]);
|
|
17339
|
+
return jsxs("div", {
|
|
17340
|
+
css: /*#__PURE__*/css({
|
|
17341
|
+
position: 'absolute',
|
|
17342
|
+
top: 0,
|
|
17343
|
+
height: 46,
|
|
17344
|
+
display: 'flex',
|
|
17345
|
+
alignItems: 'center',
|
|
17346
|
+
zIndex: TOGGLE_BUTTON_Z_INDEX,
|
|
17347
|
+
...positionStyle
|
|
17348
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:ToggleButton;"),
|
|
17349
|
+
children: [jsx("div", {
|
|
17350
|
+
css: /*#__PURE__*/css({
|
|
17351
|
+
borderRadius: '100%',
|
|
17352
|
+
width: theme.spacing.lg,
|
|
17353
|
+
height: theme.spacing.lg,
|
|
17354
|
+
backgroundColor: theme.colors.backgroundPrimary,
|
|
17355
|
+
position: 'absolute'
|
|
17356
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:ToggleButton;")
|
|
17357
|
+
}), jsx(Button, {
|
|
17358
|
+
componentId: "sidebar-toggle",
|
|
17359
|
+
css: /*#__PURE__*/css({
|
|
17360
|
+
borderRadius: '100%',
|
|
17361
|
+
'&&': {
|
|
17362
|
+
padding: '0px !important',
|
|
17363
|
+
width: `${theme.spacing.lg}px !important`
|
|
17364
|
+
}
|
|
17365
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:ToggleButton;"),
|
|
17366
|
+
onClick: toggleIsExpanded,
|
|
17367
|
+
size: "small",
|
|
17368
|
+
"aria-label": isExpanded ? 'hide sidebar' : 'expand sidebar',
|
|
17369
|
+
"aria-expanded": isExpanded,
|
|
17370
|
+
children: jsx(ToggleIcon, {})
|
|
17371
|
+
})]
|
|
17372
|
+
});
|
|
17373
|
+
};
|
|
17374
|
+
const getContentAnimation = width => {
|
|
17375
|
+
const showAnimation = keyframes`
|
|
17376
|
+
from { opacity: 0 }
|
|
17377
|
+
80% { opacity: 0 }
|
|
17378
|
+
to { opacity: 1 }`;
|
|
17379
|
+
const openAnimation = keyframes`
|
|
17380
|
+
from { width: 50px }
|
|
17381
|
+
to { width: ${width}px }`;
|
|
17382
|
+
return {
|
|
17383
|
+
open: `${openAnimation} .2s cubic-bezier(0, 0, 0.2, 1)`,
|
|
17384
|
+
show: `${showAnimation} .25s linear`
|
|
17385
|
+
};
|
|
17386
|
+
};
|
|
17387
|
+
var _ref$1 = process.env.NODE_ENV === "production" ? {
|
|
17388
|
+
name: "1h0bf8r",
|
|
17389
|
+
styles: "body, :host{user-select:none;}"
|
|
17390
|
+
} : {
|
|
17391
|
+
name: "15c18a5-Content",
|
|
17392
|
+
styles: "body, :host{user-select:none;};label:Content;",
|
|
17393
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
17394
|
+
};
|
|
17395
|
+
function Content(_ref5) {
|
|
16469
17396
|
let {
|
|
16470
17397
|
disableResize,
|
|
16471
17398
|
openPanelId,
|
|
16472
|
-
closable,
|
|
17399
|
+
closable = true,
|
|
16473
17400
|
onClose,
|
|
16474
17401
|
onResizeStart,
|
|
16475
17402
|
onResizeStop,
|
|
@@ -16478,18 +17405,23 @@ function Content(_ref3) {
|
|
|
16478
17405
|
maxWidth,
|
|
16479
17406
|
destroyInactivePanels = false,
|
|
16480
17407
|
children,
|
|
16481
|
-
dangerouslyAppendEmotionCSS
|
|
16482
|
-
|
|
16483
|
-
|
|
16484
|
-
|
|
16485
|
-
to { width: ${width || DEFAULT_WIDTH}px }`;
|
|
16486
|
-
const showAnimation = keyframes`
|
|
16487
|
-
from { opacity: 0 }
|
|
16488
|
-
80% { opacity: 0 }
|
|
16489
|
-
to { opacity: 1 }`;
|
|
17408
|
+
dangerouslyAppendEmotionCSS,
|
|
17409
|
+
enableCompact,
|
|
17410
|
+
resizeBoxStyle
|
|
17411
|
+
} = _ref5;
|
|
16490
17412
|
const {
|
|
16491
17413
|
theme
|
|
16492
17414
|
} = useDesignSystemTheme();
|
|
17415
|
+
const isCompact = useMediaQuery({
|
|
17416
|
+
query: `not (min-width: ${theme.responsive.breakpoints.sm}px)`
|
|
17417
|
+
}) && enableCompact;
|
|
17418
|
+
const defaultAnimation = useMemo(() => getContentAnimation(isCompact ? DEFAULT_WIDTH : width || DEFAULT_WIDTH), [isCompact, width]);
|
|
17419
|
+
// specifically for non closable panel in compact mode
|
|
17420
|
+
const [isExpanded, setIsExpanded] = useState(true);
|
|
17421
|
+
// hide the panel in compact mode when the panel is not closable and collapsed
|
|
17422
|
+
const isNotExpandedStyle = /*#__PURE__*/css(isCompact && !closable && !isExpanded && {
|
|
17423
|
+
display: 'none'
|
|
17424
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:isNotExpandedStyle;");
|
|
16493
17425
|
const sidebarContext = useContext(SidebarContext);
|
|
16494
17426
|
const onCloseRef = useRef(onClose);
|
|
16495
17427
|
const resizeHandleStyle = sidebarContext.position === 'right' ? {
|
|
@@ -16499,10 +17431,21 @@ function Content(_ref3) {
|
|
|
16499
17431
|
};
|
|
16500
17432
|
const [dragging, setDragging] = useState(false);
|
|
16501
17433
|
const isPanelClosed = openPanelId == null;
|
|
16502
|
-
const [animation, setAnimation] = useState(isPanelClosed ?
|
|
16503
|
-
|
|
16504
|
-
|
|
16505
|
-
|
|
17434
|
+
const [animation, setAnimation] = useState(isPanelClosed ? defaultAnimation : undefined);
|
|
17435
|
+
const compactStyle = /*#__PURE__*/css(isCompact && {
|
|
17436
|
+
position: 'absolute',
|
|
17437
|
+
zIndex: COMPACT_CONTENT_Z_INDEX,
|
|
17438
|
+
left: sidebarContext.position === 'left' && closable ? '100%' : undefined,
|
|
17439
|
+
right: sidebarContext.position === 'right' && closable ? '100%' : undefined,
|
|
17440
|
+
backgroundColor: theme.colors.backgroundPrimary,
|
|
17441
|
+
borderBottom: `1px solid ${theme.colors.border}`,
|
|
17442
|
+
borderTop: `1px solid ${theme.colors.border}`,
|
|
17443
|
+
borderRight: sidebarContext.position === 'left' ? `1px solid ${theme.colors.border}` : undefined,
|
|
17444
|
+
borderLeft: sidebarContext.position === 'right' ? `1px solid ${theme.colors.border}` : undefined,
|
|
17445
|
+
width: DEFAULT_WIDTH,
|
|
17446
|
+
// shift to the top due to border
|
|
17447
|
+
top: -1
|
|
17448
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:compactStyle;");
|
|
16506
17449
|
const hiddenPanelStyle = /*#__PURE__*/css(isPanelClosed && {
|
|
16507
17450
|
display: 'none'
|
|
16508
17451
|
}, process.env.NODE_ENV === "production" ? "" : ";label:hiddenPanelStyle;");
|
|
@@ -16524,93 +17467,116 @@ function Content(_ref3) {
|
|
|
16524
17467
|
useEffect(() => {
|
|
16525
17468
|
onCloseRef.current = onClose;
|
|
16526
17469
|
}, [onClose]);
|
|
17470
|
+
|
|
17471
|
+
// For non closable panel, reset expanded state to true so that the panel stays open
|
|
17472
|
+
// the next time the screen goes into compact mode.
|
|
17473
|
+
useEffect(() => {
|
|
17474
|
+
if (!closable && enableCompact && !isCompact) {
|
|
17475
|
+
setIsExpanded(true);
|
|
17476
|
+
}
|
|
17477
|
+
}, [isCompact, closable, defaultAnimation, enableCompact]);
|
|
16527
17478
|
const value = useMemo(() => ({
|
|
16528
17479
|
openPanelId,
|
|
16529
|
-
closable
|
|
17480
|
+
closable,
|
|
16530
17481
|
destroyInactivePanels,
|
|
16531
17482
|
setIsClosed: () => {
|
|
16532
17483
|
var _onCloseRef$current;
|
|
16533
17484
|
(_onCloseRef$current = onCloseRef.current) === null || _onCloseRef$current === void 0 || _onCloseRef$current.call(onCloseRef);
|
|
16534
17485
|
if (!animation) {
|
|
16535
|
-
setAnimation(
|
|
16536
|
-
open: `${openAnimation} .2s cubic-bezier(0, 0, 0.2, 1)`,
|
|
16537
|
-
show: `${showAnimation} .25s linear`
|
|
16538
|
-
});
|
|
17486
|
+
setAnimation(defaultAnimation);
|
|
16539
17487
|
}
|
|
16540
17488
|
}
|
|
16541
|
-
}), [openPanelId, closable,
|
|
17489
|
+
}), [openPanelId, closable, defaultAnimation, animation, destroyInactivePanels]);
|
|
16542
17490
|
return jsx(ContentContext.Provider, {
|
|
16543
17491
|
value: value,
|
|
16544
|
-
children: disableResize ?
|
|
16545
|
-
|
|
16546
|
-
|
|
16547
|
-
|
|
16548
|
-
overflow: 'hidden'
|
|
16549
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:Content;"), dangerouslyAppendEmotionCSS, hiddenPanelStyle, process.env.NODE_ENV === "production" ? "" : ";label:Content;"],
|
|
16550
|
-
"aria-hidden": isPanelClosed,
|
|
16551
|
-
children: jsx("div", {
|
|
16552
|
-
css: /*#__PURE__*/css({
|
|
16553
|
-
opacity: 1,
|
|
17492
|
+
children: disableResize || isCompact ? jsxs(Fragment, {
|
|
17493
|
+
children: [jsx("div", {
|
|
17494
|
+
css: [/*#__PURE__*/css({
|
|
17495
|
+
width: width || '100%',
|
|
16554
17496
|
height: '100%',
|
|
16555
|
-
|
|
16556
|
-
|
|
16557
|
-
|
|
16558
|
-
children:
|
|
16559
|
-
|
|
16560
|
-
|
|
16561
|
-
|
|
16562
|
-
|
|
16563
|
-
|
|
16564
|
-
|
|
16565
|
-
|
|
16566
|
-
|
|
16567
|
-
|
|
16568
|
-
let {
|
|
16569
|
-
size
|
|
16570
|
-
} = _ref4;
|
|
16571
|
-
onResizeStart === null || onResizeStart === void 0 || onResizeStart(size.width);
|
|
16572
|
-
setDragging(true);
|
|
16573
|
-
},
|
|
16574
|
-
onResizeStop: (_, _ref5) => {
|
|
16575
|
-
let {
|
|
16576
|
-
size
|
|
16577
|
-
} = _ref5;
|
|
16578
|
-
onResizeStop === null || onResizeStop === void 0 || onResizeStop(size.width);
|
|
16579
|
-
setDragging(false);
|
|
16580
|
-
},
|
|
16581
|
-
handle: jsx("div", {
|
|
17497
|
+
overflow: 'hidden'
|
|
17498
|
+
}, containerStyle, compactStyle, process.env.NODE_ENV === "production" ? "" : ";label:Content;"), dangerouslyAppendEmotionCSS, hiddenPanelStyle, isNotExpandedStyle, process.env.NODE_ENV === "production" ? "" : ";label:Content;"],
|
|
17499
|
+
"aria-hidden": isPanelClosed,
|
|
17500
|
+
children: jsx("div", {
|
|
17501
|
+
css: /*#__PURE__*/css({
|
|
17502
|
+
opacity: 1,
|
|
17503
|
+
height: '100%',
|
|
17504
|
+
animation: animation === null || animation === void 0 ? void 0 : animation.show,
|
|
17505
|
+
direction: 'ltr'
|
|
17506
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Content;"),
|
|
17507
|
+
children: children
|
|
17508
|
+
})
|
|
17509
|
+
}), !closable && isCompact && jsx("div", {
|
|
16582
17510
|
css: /*#__PURE__*/css({
|
|
16583
|
-
width:
|
|
16584
|
-
|
|
16585
|
-
position: '
|
|
16586
|
-
|
|
16587
|
-
|
|
16588
|
-
|
|
16589
|
-
|
|
16590
|
-
|
|
16591
|
-
|
|
16592
|
-
|
|
16593
|
-
|
|
16594
|
-
children: jsx(
|
|
16595
|
-
|
|
16596
|
-
|
|
16597
|
-
|
|
16598
|
-
|
|
16599
|
-
|
|
16600
|
-
|
|
16601
|
-
|
|
16602
|
-
|
|
17511
|
+
width: !isExpanded ? theme.spacing.md : undefined,
|
|
17512
|
+
marginRight: isExpanded ? theme.spacing.md : undefined,
|
|
17513
|
+
position: 'relative'
|
|
17514
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Content;"),
|
|
17515
|
+
children: jsx(ToggleButton$1, {
|
|
17516
|
+
isExpanded: isExpanded,
|
|
17517
|
+
position: sidebarContext.position || 'left',
|
|
17518
|
+
toggleIsExpanded: () => setIsExpanded(prev => !prev)
|
|
17519
|
+
})
|
|
17520
|
+
})]
|
|
17521
|
+
}) : jsxs(Fragment, {
|
|
17522
|
+
children: [dragging && jsx(Global, {
|
|
17523
|
+
styles: _ref$1
|
|
17524
|
+
}), jsx(ResizableBox, {
|
|
17525
|
+
style: resizeBoxStyle,
|
|
17526
|
+
width: width || DEFAULT_WIDTH,
|
|
17527
|
+
height: undefined,
|
|
17528
|
+
axis: "x",
|
|
17529
|
+
resizeHandles: sidebarContext.position === 'right' ? ['w'] : ['e'],
|
|
17530
|
+
minConstraints: [minWidth !== null && minWidth !== void 0 ? minWidth : DEFAULT_WIDTH, 150],
|
|
17531
|
+
maxConstraints: [maxWidth !== null && maxWidth !== void 0 ? maxWidth : 800, 150],
|
|
17532
|
+
onResizeStart: (_, _ref6) => {
|
|
17533
|
+
let {
|
|
17534
|
+
size
|
|
17535
|
+
} = _ref6;
|
|
17536
|
+
onResizeStart === null || onResizeStart === void 0 || onResizeStart(size.width);
|
|
17537
|
+
setDragging(true);
|
|
17538
|
+
},
|
|
17539
|
+
onResizeStop: (_, _ref7) => {
|
|
17540
|
+
let {
|
|
17541
|
+
size
|
|
17542
|
+
} = _ref7;
|
|
17543
|
+
onResizeStop === null || onResizeStop === void 0 || onResizeStop(size.width);
|
|
17544
|
+
setDragging(false);
|
|
17545
|
+
},
|
|
17546
|
+
handle: jsx("div", {
|
|
17547
|
+
css: /*#__PURE__*/css({
|
|
17548
|
+
width: 10,
|
|
17549
|
+
height: '100%',
|
|
17550
|
+
position: 'absolute',
|
|
17551
|
+
top: 0,
|
|
17552
|
+
cursor: sidebarContext.position === 'right' ? 'w-resize' : 'e-resize',
|
|
17553
|
+
'&:hover': highlightedBorderStyle,
|
|
17554
|
+
...resizeHandleStyle
|
|
17555
|
+
}, dragging && highlightedBorderStyle, process.env.NODE_ENV === "production" ? "" : ";label:Content;")
|
|
17556
|
+
}),
|
|
17557
|
+
css: [containerStyle, hiddenPanelStyle, process.env.NODE_ENV === "production" ? "" : ";label:Content;"],
|
|
17558
|
+
"aria-hidden": isPanelClosed,
|
|
17559
|
+
children: jsx("div", {
|
|
17560
|
+
css: [{
|
|
17561
|
+
opacity: 1,
|
|
17562
|
+
animation: animation === null || animation === void 0 ? void 0 : animation.show,
|
|
17563
|
+
direction: 'ltr',
|
|
17564
|
+
height: '100%'
|
|
17565
|
+
}, dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Content;"],
|
|
17566
|
+
children: children
|
|
17567
|
+
})
|
|
17568
|
+
})]
|
|
16603
17569
|
})
|
|
16604
17570
|
});
|
|
16605
17571
|
}
|
|
16606
|
-
function Panel(
|
|
17572
|
+
function Panel(_ref8) {
|
|
16607
17573
|
let {
|
|
16608
17574
|
panelId,
|
|
16609
17575
|
children,
|
|
16610
17576
|
forceRender = false,
|
|
16611
17577
|
dangerouslyAppendEmotionCSS,
|
|
16612
17578
|
...delegated
|
|
16613
|
-
} =
|
|
17579
|
+
} = _ref8;
|
|
16614
17580
|
const {
|
|
16615
17581
|
openPanelId,
|
|
16616
17582
|
destroyInactivePanels
|
|
@@ -16630,7 +17596,7 @@ function Panel(_ref6) {
|
|
|
16630
17596
|
children: children
|
|
16631
17597
|
});
|
|
16632
17598
|
}
|
|
16633
|
-
var
|
|
17599
|
+
var _ref10 = process.env.NODE_ENV === "production" ? {
|
|
16634
17600
|
name: "1066lcq",
|
|
16635
17601
|
styles: "display:flex;justify-content:space-between;align-items:center"
|
|
16636
17602
|
} : {
|
|
@@ -16638,11 +17604,11 @@ var _ref8 = process.env.NODE_ENV === "production" ? {
|
|
|
16638
17604
|
styles: "display:flex;justify-content:space-between;align-items:center;label:PanelHeader;",
|
|
16639
17605
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
16640
17606
|
};
|
|
16641
|
-
function PanelHeader(
|
|
17607
|
+
function PanelHeader(_ref9) {
|
|
16642
17608
|
let {
|
|
16643
17609
|
children,
|
|
16644
17610
|
dangerouslyAppendEmotionCSS
|
|
16645
|
-
} =
|
|
17611
|
+
} = _ref9;
|
|
16646
17612
|
const {
|
|
16647
17613
|
theme
|
|
16648
17614
|
} = useDesignSystemTheme();
|
|
@@ -16663,7 +17629,7 @@ function PanelHeader(_ref7) {
|
|
|
16663
17629
|
width: contentContext.closable ? `calc(100% - ${theme.spacing.lg}px)` : '100%'
|
|
16664
17630
|
}, process.env.NODE_ENV === "production" ? "" : ";label:PanelHeader;"),
|
|
16665
17631
|
children: jsx("div", {
|
|
16666
|
-
css:
|
|
17632
|
+
css: _ref10,
|
|
16667
17633
|
children: children
|
|
16668
17634
|
})
|
|
16669
17635
|
}), contentContext.closable ? jsx("div", {
|
|
@@ -16679,22 +17645,22 @@ function PanelHeader(_ref7) {
|
|
|
16679
17645
|
}) : null]
|
|
16680
17646
|
});
|
|
16681
17647
|
}
|
|
16682
|
-
function PanelHeaderTitle(
|
|
17648
|
+
function PanelHeaderTitle(_ref11) {
|
|
16683
17649
|
let {
|
|
16684
17650
|
title,
|
|
16685
17651
|
dangerouslyAppendEmotionCSS
|
|
16686
|
-
} =
|
|
17652
|
+
} = _ref11;
|
|
16687
17653
|
return jsx("div", {
|
|
16688
17654
|
title: title,
|
|
16689
17655
|
css: ["align-self:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;", dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:PanelHeaderTitle;"],
|
|
16690
17656
|
children: title
|
|
16691
17657
|
});
|
|
16692
17658
|
}
|
|
16693
|
-
function PanelHeaderButtons(
|
|
17659
|
+
function PanelHeaderButtons(_ref12) {
|
|
16694
17660
|
let {
|
|
16695
17661
|
children,
|
|
16696
17662
|
dangerouslyAppendEmotionCSS
|
|
16697
|
-
} =
|
|
17663
|
+
} = _ref12;
|
|
16698
17664
|
const {
|
|
16699
17665
|
theme
|
|
16700
17666
|
} = useDesignSystemTheme();
|
|
@@ -16708,11 +17674,11 @@ function PanelHeaderButtons(_ref10) {
|
|
|
16708
17674
|
children: children
|
|
16709
17675
|
});
|
|
16710
17676
|
}
|
|
16711
|
-
function PanelBody(
|
|
17677
|
+
function PanelBody(_ref13) {
|
|
16712
17678
|
let {
|
|
16713
17679
|
children,
|
|
16714
17680
|
dangerouslyAppendEmotionCSS
|
|
16715
|
-
} =
|
|
17681
|
+
} = _ref13;
|
|
16716
17682
|
const {
|
|
16717
17683
|
theme
|
|
16718
17684
|
} = useDesignSystemTheme();
|
|
@@ -16745,12 +17711,12 @@ function PanelBody(_ref11) {
|
|
|
16745
17711
|
});
|
|
16746
17712
|
}
|
|
16747
17713
|
const Sidebar = /* #__PURE__ */(() => {
|
|
16748
|
-
function Sidebar(
|
|
17714
|
+
function Sidebar(_ref14) {
|
|
16749
17715
|
let {
|
|
16750
17716
|
position,
|
|
16751
17717
|
children,
|
|
16752
17718
|
dangerouslyAppendEmotionCSS
|
|
16753
|
-
} =
|
|
17719
|
+
} = _ref14;
|
|
16754
17720
|
const {
|
|
16755
17721
|
theme
|
|
16756
17722
|
} = useDesignSystemTheme();
|
|
@@ -16770,7 +17736,8 @@ const Sidebar = /* #__PURE__ */(() => {
|
|
|
16770
17736
|
borderStyle: 'solid',
|
|
16771
17737
|
borderColor: theme.colors.borderDecorative,
|
|
16772
17738
|
borderWidth: theme.general.borderWidth,
|
|
16773
|
-
boxSizing: 'content-box'
|
|
17739
|
+
boxSizing: 'content-box',
|
|
17740
|
+
position: 'relative'
|
|
16774
17741
|
}, dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Sidebar;"],
|
|
16775
17742
|
children: children
|
|
16776
17743
|
})
|
|
@@ -18039,12 +19006,14 @@ function WizardFooter(props) {
|
|
|
18039
19006
|
justifyContent: 'flex-end',
|
|
18040
19007
|
columnGap: theme.spacing.sm,
|
|
18041
19008
|
paddingTop: theme.spacing.md,
|
|
19009
|
+
paddingBottom: theme.spacing.md,
|
|
18042
19010
|
borderTop: `1px solid ${theme.colors.border}`
|
|
18043
19011
|
}, process.env.NODE_ENV === "production" ? "" : ";label:WizardFooter;"),
|
|
18044
19012
|
children: getWizardFooterButtons(props)
|
|
18045
19013
|
});
|
|
18046
19014
|
}
|
|
18047
19015
|
function getWizardFooterButtons(_ref) {
|
|
19016
|
+
var _extraFooterButtonsRi;
|
|
18048
19017
|
let {
|
|
18049
19018
|
goToNextStepOrDone,
|
|
18050
19019
|
isLastStep,
|
|
@@ -18063,7 +19032,8 @@ function getWizardFooterButtons(_ref) {
|
|
|
18063
19032
|
nextButtonContent,
|
|
18064
19033
|
previousButtonContent,
|
|
18065
19034
|
doneButtonContent,
|
|
18066
|
-
|
|
19035
|
+
extraFooterButtonsLeft,
|
|
19036
|
+
extraFooterButtonsRight,
|
|
18067
19037
|
onCancel
|
|
18068
19038
|
} = _ref;
|
|
18069
19039
|
return _compact([!cancelStepButtonHidden && jsx(Button, {
|
|
@@ -18071,10 +19041,10 @@ function getWizardFooterButtons(_ref) {
|
|
|
18071
19041
|
type: "tertiary",
|
|
18072
19042
|
componentId: "codegen_dubois_src_wizard_wizardfooter_cancel",
|
|
18073
19043
|
children: cancelButtonContent
|
|
18074
|
-
}, "cancel"),
|
|
19044
|
+
}, "cancel"), extraFooterButtonsLeft && extraFooterButtonsLeft.map((buttonProps, index) => createElement(Button, {
|
|
18075
19045
|
...buttonProps,
|
|
18076
19046
|
type: undefined,
|
|
18077
|
-
key: `extra-${index}`
|
|
19047
|
+
key: `extra-left-${index}`
|
|
18078
19048
|
})), currentStepIndex > 0 && !previousStepButtonHidden && jsx(Button, {
|
|
18079
19049
|
onClick: goToPreviousStep,
|
|
18080
19050
|
disabled: previousButtonDisabled,
|
|
@@ -18085,16 +19055,21 @@ function getWizardFooterButtons(_ref) {
|
|
|
18085
19055
|
onClick: goToNextStepOrDone,
|
|
18086
19056
|
disabled: nextButtonDisabled,
|
|
18087
19057
|
loading: nextButtonLoading || busyValidatingNextStep,
|
|
18088
|
-
type:
|
|
19058
|
+
type: ((_extraFooterButtonsRi = extraFooterButtonsRight === null || extraFooterButtonsRight === void 0 ? void 0 : extraFooterButtonsRight.length) !== null && _extraFooterButtonsRi !== void 0 ? _extraFooterButtonsRi : 0) > 0 ? undefined : 'primary',
|
|
18089
19059
|
componentId: "codegen_dubois_src_wizard_wizardfooter_next",
|
|
18090
19060
|
children: nextButtonContentOverride ? nextButtonContentOverride : isLastStep ? doneButtonContent : nextButtonContent
|
|
18091
|
-
}, "next")
|
|
19061
|
+
}, "next"), extraFooterButtonsRight && extraFooterButtonsRight.map((buttonProps, index) => createElement(Button, {
|
|
19062
|
+
...buttonProps,
|
|
19063
|
+
type: index === extraFooterButtonsRight.length - 1 ? 'primary' : undefined,
|
|
19064
|
+
key: `extra-right-${index}`
|
|
19065
|
+
}))]);
|
|
18092
19066
|
}
|
|
18093
19067
|
|
|
18094
19068
|
function WizardStepsContent(_ref) {
|
|
18095
19069
|
let {
|
|
18096
19070
|
steps: wizardSteps,
|
|
18097
19071
|
currentStepIndex,
|
|
19072
|
+
expandContentToFullHeight,
|
|
18098
19073
|
localizeStepNumber
|
|
18099
19074
|
} = _ref;
|
|
18100
19075
|
const {
|
|
@@ -18110,7 +19085,10 @@ function WizardStepsContent(_ref) {
|
|
|
18110
19085
|
responsive: false
|
|
18111
19086
|
}), jsx("div", {
|
|
18112
19087
|
css: /*#__PURE__*/css({
|
|
18113
|
-
marginTop: theme.spacing.md
|
|
19088
|
+
marginTop: theme.spacing.md,
|
|
19089
|
+
flexGrow: expandContentToFullHeight ? 1 : undefined,
|
|
19090
|
+
overflowY: 'auto',
|
|
19091
|
+
...getShadowScrollStyles(theme)
|
|
18114
19092
|
}, process.env.NODE_ENV === "production" ? "" : ";label:WizardStepsContent;"),
|
|
18115
19093
|
children: wizardSteps[currentStepIndex].content
|
|
18116
19094
|
})]
|
|
@@ -18198,10 +19176,12 @@ function WizardControlled(_ref2) {
|
|
|
18198
19176
|
initialStep = 0,
|
|
18199
19177
|
steps,
|
|
18200
19178
|
width = '100%',
|
|
19179
|
+
height = '100%',
|
|
18201
19180
|
currentStepIndex,
|
|
18202
19181
|
localizeStepNumber,
|
|
18203
19182
|
onStepsChange,
|
|
18204
19183
|
isLastStep,
|
|
19184
|
+
expandContentToFullHeight = true,
|
|
18205
19185
|
...footerProps
|
|
18206
19186
|
} = _ref2;
|
|
18207
19187
|
if (steps.length === 0 || !_isUndefined(initialStep) && (initialStep < 0 || initialStep >= steps.length)) {
|
|
@@ -18210,6 +19190,7 @@ function WizardControlled(_ref2) {
|
|
|
18210
19190
|
return jsxs("div", {
|
|
18211
19191
|
css: /*#__PURE__*/css({
|
|
18212
19192
|
width,
|
|
19193
|
+
height,
|
|
18213
19194
|
display: 'flex',
|
|
18214
19195
|
flexDirection: 'column',
|
|
18215
19196
|
justifyContent: 'flex-start'
|
|
@@ -18217,7 +19198,8 @@ function WizardControlled(_ref2) {
|
|
|
18217
19198
|
children: [jsx(WizardStepsContent, {
|
|
18218
19199
|
steps: steps,
|
|
18219
19200
|
currentStepIndex: currentStepIndex,
|
|
18220
|
-
localizeStepNumber: localizeStepNumber
|
|
19201
|
+
localizeStepNumber: localizeStepNumber,
|
|
19202
|
+
expandContentToFullHeight: expandContentToFullHeight
|
|
18221
19203
|
}), jsx(Spacer, {
|
|
18222
19204
|
size: "lg"
|
|
18223
19205
|
}), jsx(WizardFooter, {
|
|
@@ -18275,10 +19257,11 @@ function WizardModal(_ref) {
|
|
|
18275
19257
|
children: jsx(WizardStepsContent, {
|
|
18276
19258
|
steps: steps,
|
|
18277
19259
|
currentStepIndex: currentStepIndex,
|
|
18278
|
-
localizeStepNumber: localizeStepNumber
|
|
19260
|
+
localizeStepNumber: localizeStepNumber,
|
|
19261
|
+
expandContentToFullHeight: false
|
|
18279
19262
|
})
|
|
18280
19263
|
});
|
|
18281
19264
|
}
|
|
18282
19265
|
|
|
18283
|
-
export { AccessibleContainer, Accordion, AccordionPanel, Alert, AlignCenterIcon$1 as AlignCenterIcon, AlignLeftIcon$1 as AlignLeftIcon, AlignRightIcon$1 as AlignRightIcon, AppIcon$1 as AppIcon, ApplyDesignSystemContextOverrides, ApplyGlobalStyles, ArrowDownIcon$1 as ArrowDownIcon, ArrowInIcon$1 as ArrowInIcon, ArrowLeftIcon$1 as ArrowLeftIcon, ArrowRightIcon$1 as ArrowRightIcon, ArrowUpIcon$1 as ArrowUpIcon, ArrowsUpDownIcon$1 as ArrowsUpDownIcon, AssistantIcon$1 as AssistantIcon, AutoComplete, BadgeCodeIcon$1 as BadgeCodeIcon, BadgeCodeOffIcon$1 as BadgeCodeOffIcon, BarChartIcon$1 as BarChartIcon, BarGroupedIcon$1 as BarGroupedIcon, BarStackedIcon$1 as BarStackedIcon, BarStackedPercentageIcon$1 as BarStackedPercentageIcon, BeakerIcon$1 as BeakerIcon, BinaryIcon$1 as BinaryIcon, BoldIcon$1 as BoldIcon, BookIcon$1 as BookIcon, BookmarkFillIcon$1 as BookmarkFillIcon, BookmarkIcon$1 as BookmarkIcon, BooksIcon$1 as BooksIcon, BracketsCurlyIcon$1 as BracketsCurlyIcon, BracketsSquareIcon$1 as BracketsSquareIcon, BracketsXIcon$1 as BracketsXIcon, BranchIcon$1 as BranchIcon, Breadcrumb, BriefcaseFillIcon$1 as BriefcaseFillIcon, BriefcaseIcon$1 as BriefcaseIcon, Button, CalendarClockIcon$1 as CalendarClockIcon, CalendarEventIcon$1 as CalendarEventIcon, CalendarIcon$1 as CalendarIcon, Card, CaretDownSquareIcon$1 as CaretDownSquareIcon, CaretUpSquareIcon$1 as CaretUpSquareIcon, CatalogCloudIcon$1 as CatalogCloudIcon, CatalogIcon$1 as CatalogIcon, CatalogOffIcon$1 as CatalogOffIcon, ChartLineIcon$1 as ChartLineIcon, CheckCircleBadgeIcon$1 as CheckCircleBadgeIcon, CheckCircleFillIcon$1 as CheckCircleFillIcon, CheckCircleIcon$1 as CheckCircleIcon, CheckIcon, CheckLineIcon$1 as CheckLineIcon, Checkbox, CheckboxIcon$1 as CheckboxIcon, ChecklistIcon$1 as ChecklistIcon, ChevronDoubleDownIcon$1 as ChevronDoubleDownIcon, ChevronDoubleLeftIcon$1 as ChevronDoubleLeftIcon, ChevronDoubleRightIcon$1 as ChevronDoubleRightIcon, ChevronDoubleUpIcon$1 as ChevronDoubleUpIcon, ChevronDownIcon$1 as ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon$1 as ChevronUpIcon, CircleIcon$1 as CircleIcon, ClipboardIcon$1 as ClipboardIcon, ClockIcon$1 as ClockIcon, ClockKeyIcon$1 as ClockKeyIcon, CloseIcon, CloudDownloadIcon$1 as CloudDownloadIcon, CloudIcon$1 as CloudIcon, CloudKeyIcon$1 as CloudKeyIcon, CloudModelIcon$1 as CloudModelIcon, CloudOffIcon$1 as CloudOffIcon, CloudUploadIcon$1 as CloudUploadIcon, CodeIcon$1 as CodeIcon, Col, ColorFillIcon$1 as ColorFillIcon, ColumnIcon$1 as ColumnIcon, ColumnsIcon$1 as ColumnsIcon, ConnectIcon$1 as ConnectIcon, Content, ContextMenu$1 as ContextMenu, CopyIcon$1 as CopyIcon, CursorPagination, CursorTypeIcon$1 as CursorTypeIcon, DIcon$1 as DIcon, DU_BOIS_ENABLE_ANIMATION_CLASSNAME, DagIcon$1 as DagIcon, DangerFillIcon$1 as DangerFillIcon, DangerIcon, DangerModal, DashIcon$1 as DashIcon, DashboardIcon$1 as DashboardIcon, DataIcon$1 as DataIcon, DatabaseIcon$1 as DatabaseIcon, DecimalIcon$1 as DecimalIcon, DesignSystemAntDConfigProvider, DialogCombobox, DialogComboboxContent, DialogComboboxCountBadge, DialogComboboxCustomButtonTriggerWrapper, EmptyResults as DialogComboboxEmpty, DialogComboboxFooter, DialogComboboxHintRow, DialogComboboxOptionControlledList, DialogComboboxOptionList, DialogComboboxOptionListCheckboxItem, DialogComboboxOptionListSearch, DialogComboboxOptionListSelectItem, DialogComboboxSectionHeader, DialogComboboxSeparator, DialogComboboxTrigger, DotsCircleIcon$1 as DotsCircleIcon, DownloadIcon$1 as DownloadIcon, DragIcon$1 as DragIcon, Drawer, Dropdown, DropdownMenu, DuboisDatePicker, Empty, ErdIcon$1 as ErdIcon, ExpandLessIcon$1 as ExpandLessIcon, ExpandMoreIcon$1 as ExpandMoreIcon, FileCodeIcon$1 as FileCodeIcon, FileDocumentIcon$1 as FileDocumentIcon, FileIcon$1 as FileIcon, FileImageIcon$1 as FileImageIcon, FileModelIcon$1 as FileModelIcon, FilterIcon$1 as FilterIcon, FloatIcon$1 as FloatIcon, FolderBranchIcon$1 as FolderBranchIcon, FolderCloudFilledIcon$1 as FolderCloudFilledIcon, FolderCloudIcon$1 as FolderCloudIcon, FolderFillIcon$1 as FolderFillIcon, FolderIcon$1 as FolderIcon, FontIcon$1 as FontIcon, ForkIcon$1 as ForkIcon, Form, FormDubois, FormUI, FullscreenExitIcon$1 as FullscreenExitIcon, FullscreenIcon$1 as FullscreenIcon, FunctionIcon$1 as FunctionIcon, GearFillIcon$1 as GearFillIcon, GearIcon$1 as GearIcon, GenericSkeleton, GiftIcon$1 as GiftIcon, GitCommitIcon$1 as GitCommitIcon, GlobeIcon$1 as GlobeIcon, GridDashIcon$1 as GridDashIcon, GridIcon$1 as GridIcon, H1Icon$1 as H1Icon, H2Icon$1 as H2Icon, H3Icon$1 as H3Icon, Header$1 as Header, HistoryIcon$1 as HistoryIcon, HomeIcon$1 as HomeIcon, Icon, ImageIcon$1 as ImageIcon, IndentDecreaseIcon$1 as IndentDecreaseIcon, IndentIncreaseIcon$1 as IndentIncreaseIcon, InfinityIcon$1 as InfinityIcon, InfoFillIcon$1 as InfoFillIcon, InfoIcon$1 as InfoIcon, InfoPopover, InfoTooltip, IngestionIcon$1 as IngestionIcon, Input, ItalicIcon$1 as ItalicIcon, KeyIcon$1 as KeyIcon, KeyboardIcon$1 as KeyboardIcon, LayerGraphIcon$1 as LayerGraphIcon, LayerIcon$1 as LayerIcon, Layout, LegacyDatePicker, LegacyPopover, LegacySkeleton, LegacyTable, LettersIcon$1 as LettersIcon, LibrariesIcon$1 as LibrariesIcon, LightningIcon$1 as LightningIcon, LinkIcon$1 as LinkIcon, LinkOffIcon$1 as LinkOffIcon, ListBorderIcon$1 as ListBorderIcon, ListClearIcon$1 as ListClearIcon, ListIcon$1 as ListIcon, LoadingIcon, LoadingState, LockFillIcon$1 as LockFillIcon, LockIcon$1 as LockIcon, LockUnlockedIcon$1 as LockUnlockedIcon, MIcon$1 as MIcon, MailIcon$1 as MailIcon, Menu, MenuIcon$1 as MenuIcon, MinusBoxIcon$1 as MinusBoxIcon, MinusCircleFillIcon$1 as MinusCircleFillIcon, MinusCircleIcon$1 as MinusCircleIcon, Modal, ModelsIcon$1 as ModelsIcon, Nav, NavButton, NoIcon$1 as NoIcon, NotebookIcon$1 as NotebookIcon, Notification, NotificationIcon$1 as NotificationIcon, NotificationOffIcon$1 as NotificationOffIcon, NumbersIcon$1 as NumbersIcon, OfficeIcon$1 as OfficeIcon, OptGroup, Option, Overflow, OverflowIcon$1 as OverflowIcon, PageBottomIcon$1 as PageBottomIcon, PageFirstIcon$1 as PageFirstIcon, PageLastIcon$1 as PageLastIcon, PageTopIcon$1 as PageTopIcon, PageWrapper, Pagination, Panel, PanelBody, PanelHeader, PanelHeaderButtons, PanelHeaderTitle, ParagraphSkeleton, PauseIcon$1 as PauseIcon, PencilIcon$1 as PencilIcon, PinCancelIcon$1 as PinCancelIcon, PinFillIcon$1 as PinFillIcon, PinIcon$1 as PinIcon, PipelineIcon$1 as PipelineIcon, PlayCircleFillIcon$1 as PlayCircleFillIcon, PlayCircleIcon$1 as PlayCircleIcon, PlayIcon$1 as PlayIcon, PlugIcon$1 as PlugIcon, PlusCircleFillIcon$1 as PlusCircleFillIcon, PlusCircleIcon$1 as PlusCircleIcon, PlusIcon$1 as PlusIcon, PlusSquareIcon$1 as PlusSquareIcon, Popover, QueryEditorIcon$1 as QueryEditorIcon, QueryIcon$1 as QueryIcon, QuestionMarkFillIcon$1 as QuestionMarkFillIcon, QuestionMarkIcon$1 as QuestionMarkIcon, QuestionMarkSpeechBubbleIcon$1 as QuestionMarkSpeechBubbleIcon, RHFControlledComponents, ROW_GUTTER_SIZE, Radio, ReaderModeIcon$1 as ReaderModeIcon, RedoIcon$1 as RedoIcon, RefreshIcon$1 as RefreshIcon, RestoreAntDDefaultClsPrefix, RobotIcon$1 as RobotIcon, Row, SaveIcon$1 as SaveIcon, SchoolIcon$1 as SchoolIcon, SearchIcon$1 as SearchIcon, SecurityIcon$1 as SecurityIcon, SegmentedControlButton, SegmentedControlGroup, Select, SelectOptGroup, SelectOption, SelectV2, SelectV2Content, SelectV2Option, SelectV2OptionGroup, SelectV2Trigger, SendIcon$1 as SendIcon, ShareIcon$1 as ShareIcon, Sidebar, SidebarAutoIcon$1 as SidebarAutoIcon, SidebarCollapseIcon$1 as SidebarCollapseIcon, SidebarExpandIcon$1 as SidebarExpandIcon, SidebarIcon$1 as SidebarIcon, SlidersIcon$1 as SlidersIcon, SortAlphabeticalAscendingIcon$1 as SortAlphabeticalAscendingIcon, SortAlphabeticalDescendingIcon$1 as SortAlphabeticalDescendingIcon, SortAlphabeticalLeftIcon$1 as SortAlphabeticalLeftIcon, SortAlphabeticalRightIcon$1 as SortAlphabeticalRightIcon, SortAscendingIcon$1 as SortAscendingIcon, SortDescendingIcon$1 as SortDescendingIcon, SortUnsortedIcon$1 as SortUnsortedIcon, Space, Spacer, SparkleIcon$1 as SparkleIcon, SpeechBubbleIcon$1 as SpeechBubbleIcon, SpeechBubblePlusIcon$1 as SpeechBubblePlusIcon, SpeechBubbleQuestionMarkIcon$1 as SpeechBubbleQuestionMarkIcon, Spinner, SplitButton, StarFillIcon$1 as StarFillIcon, StarIcon$1 as StarIcon, StepIntoIcon$1 as StepIntoIcon, StepOutIcon$1 as StepOutIcon, StepOverIcon$1 as StepOverIcon, Steps, StopCircleFillIcon$1 as StopCircleFillIcon, StopCircleIcon$1 as StopCircleIcon, StopIcon$1 as StopIcon, StorefrontIcon$1 as StorefrontIcon, StreamIcon$1 as StreamIcon, Switch, SyncIcon$1 as SyncIcon, TabPane, Table, TableCell, TableContext, TableFilterInput, TableFilterLayout, TableGlassesIcon$1 as TableGlassesIcon, TableHeader, TableIcon$1 as TableIcon, TableLightningIcon$1 as TableLightningIcon, TableOnlineViewIcon$1 as TableOnlineViewIcon, TableRow, TableRowAction, TableRowActionHeader, TableRowContext, TableRowMenuContainer, TableRowSelectCell, TableSkeleton, TableSkeletonRows, TableStreamIcon$1 as TableStreamIcon, TableVectorIcon$1 as TableVectorIcon, TableViewIcon$1 as TableViewIcon, Tabs, Tag, TargetIcon$1 as TargetIcon, TextBoxIcon$1 as TextBoxIcon, ThumbsDownIcon$1 as ThumbsDownIcon, ThumbsUpIcon$1 as ThumbsUpIcon, TitleSkeleton, ToggleButton, Tooltip, TrashIcon$1 as TrashIcon, Tree, TreeIcon$1 as TreeIcon, TypeaheadComboboxAddButton, TypeaheadComboboxCheckboxItem, TypeaheadComboboxFooter, TypeaheadComboboxInput, TypeaheadComboboxMenu, TypeaheadComboboxMenuItem, TypeaheadComboboxMultiSelectInput, TypeaheadComboboxRoot, TypeaheadComboboxSectionHeader, TypeaheadComboboxSelectedItem, TypeaheadComboboxSeparator, TypeaheadComboboxToggleButton, Typography, UnderlineIcon$1 as UnderlineIcon, UndoIcon$1 as UndoIcon, UploadIcon$1 as UploadIcon, UsbIcon$1 as UsbIcon, UserBadgeIcon$1 as UserBadgeIcon, UserCircleIcon$1 as UserCircleIcon, UserGroupIcon$1 as UserGroupIcon, UserIcon$1 as UserIcon, VectorTableIcon$1 as VectorTableIcon, VisibleIcon$1 as VisibleIcon, VisibleOffIcon$1 as VisibleOffIcon, WarningFillIcon$1 as WarningFillIcon, WarningIcon, Wizard, WizardControlled, WizardModal, WorkflowsIcon$1 as WorkflowsIcon, WorkspacesIcon$1 as WorkspacesIcon, XCircleFillIcon$1 as XCircleFillIcon, XCircleIcon$1 as XCircleIcon, ZoomInIcon$1 as ZoomInIcon, ZoomMarqueeSelection$1 as ZoomMarqueeSelection, ZoomOutIcon$1 as ZoomOutIcon, __INTERNAL_DO_NOT_USE__FormItem, __INTERNAL_DO_NOT_USE__Group, __INTERNAL_DO_NOT_USE__HorizontalGroup, __INTERNAL_DO_NOT_USE__VerticalGroup, dialogComboboxLookAheadKeyDown, findClosestOptionSibling, findHighlightedOption, getAnimationCss, getComboboxOptionItemWrapperStyles, getComboboxOptionLabelStyles, getContentOptions, getDarkModePortalStyles, getDialogComboboxOptionLabelWidth, getGlobalStyles, getKeyboardNavigationFunctions, getPaginationEmotionStyles, getRadioStyles, getShadowScrollStyles, getTabEmotionStyles, getValidationStateColor, getWrapperStyle, highlightFirstNonDisabledOption, highlightOption, importantify, isOptionDisabled, resetTabIndexToFocusedElement, useComboboxState, useDesignSystemFlags, useDesignSystemTheme, useLegacyNotification, useMultipleSelectionState, useThemedStyles, useTypeaheadComboboxContext, useWizardCurrentStep, visuallyHidden, withNotifications };
|
|
19266
|
+
export { AccessibleContainer, Accordion, AccordionPanel, Alert, AlignCenterIcon$1 as AlignCenterIcon, AlignLeftIcon$1 as AlignLeftIcon, AlignRightIcon$1 as AlignRightIcon, AppIcon$1 as AppIcon, ApplyDesignSystemContextOverrides, ApplyGlobalStyles, ArrowDownIcon$1 as ArrowDownIcon, ArrowInIcon$1 as ArrowInIcon, ArrowLeftIcon$1 as ArrowLeftIcon, ArrowRightIcon$1 as ArrowRightIcon, ArrowUpIcon$1 as ArrowUpIcon, ArrowsUpDownIcon$1 as ArrowsUpDownIcon, AssistantIcon$1 as AssistantIcon, AutoComplete, Avatar, BadgeCodeIcon$1 as BadgeCodeIcon, BadgeCodeOffIcon$1 as BadgeCodeOffIcon, BarChartIcon$1 as BarChartIcon, BarGroupedIcon$1 as BarGroupedIcon, BarStackedIcon$1 as BarStackedIcon, BarStackedPercentageIcon$1 as BarStackedPercentageIcon, BeakerIcon$1 as BeakerIcon, BinaryIcon$1 as BinaryIcon, BoldIcon$1 as BoldIcon, BookIcon$1 as BookIcon, BookmarkFillIcon$1 as BookmarkFillIcon, BookmarkIcon$1 as BookmarkIcon, BooksIcon$1 as BooksIcon, BracketsCurlyIcon$1 as BracketsCurlyIcon, BracketsSquareIcon$1 as BracketsSquareIcon, BracketsXIcon$1 as BracketsXIcon, BranchIcon$1 as BranchIcon, Breadcrumb, BriefcaseFillIcon$1 as BriefcaseFillIcon, BriefcaseIcon$1 as BriefcaseIcon, Button, CalendarClockIcon$1 as CalendarClockIcon, CalendarEventIcon$1 as CalendarEventIcon, CalendarIcon$1 as CalendarIcon, Card, CaretDownSquareIcon$1 as CaretDownSquareIcon, CaretUpSquareIcon$1 as CaretUpSquareIcon, CatalogCloudIcon$1 as CatalogCloudIcon, CatalogIcon$1 as CatalogIcon, CatalogOffIcon$1 as CatalogOffIcon, ChartLineIcon$1 as ChartLineIcon, CheckCircleBadgeIcon$1 as CheckCircleBadgeIcon, CheckCircleFillIcon$1 as CheckCircleFillIcon, CheckCircleIcon$1 as CheckCircleIcon, CheckIcon, CheckLineIcon$1 as CheckLineIcon, Checkbox, CheckboxIcon$1 as CheckboxIcon, ChecklistIcon$1 as ChecklistIcon, ChevronDoubleDownIcon$1 as ChevronDoubleDownIcon, ChevronDoubleLeftIcon$1 as ChevronDoubleLeftIcon, ChevronDoubleRightIcon$1 as ChevronDoubleRightIcon, ChevronDoubleUpIcon$1 as ChevronDoubleUpIcon, ChevronDownIcon$1 as ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon$1 as ChevronUpIcon, CircleIcon$1 as CircleIcon, ClipboardIcon$1 as ClipboardIcon, ClockIcon$1 as ClockIcon, ClockKeyIcon$1 as ClockKeyIcon, CloseIcon, CloudDownloadIcon$1 as CloudDownloadIcon, CloudIcon$1 as CloudIcon, CloudKeyIcon$1 as CloudKeyIcon, CloudModelIcon$1 as CloudModelIcon, CloudOffIcon$1 as CloudOffIcon, CloudUploadIcon$1 as CloudUploadIcon, CodeIcon$1 as CodeIcon, Col, ColorFillIcon$1 as ColorFillIcon, ColumnIcon$1 as ColumnIcon, ColumnsIcon$1 as ColumnsIcon, ConnectIcon$1 as ConnectIcon, Content, ContextMenu$1 as ContextMenu, CopyIcon$1 as CopyIcon, CursorPagination, CursorTypeIcon$1 as CursorTypeIcon, DBAssistantAvatar, DIcon$1 as DIcon, DU_BOIS_ENABLE_ANIMATION_CLASSNAME, DagIcon$1 as DagIcon, DangerFillIcon$1 as DangerFillIcon, DangerIcon, DangerModal, DashIcon$1 as DashIcon, DashboardIcon$1 as DashboardIcon, DataIcon$1 as DataIcon, DatabaseIcon$1 as DatabaseIcon, DecimalIcon$1 as DecimalIcon, DesignSystemAntDConfigProvider, DesignSystemEventProviderAnalyticsEventTypes, DesignSystemEventProviderComponentTypes, DialogCombobox, DialogComboboxAddButton, DialogComboboxContent, DialogComboboxCountBadge, DialogComboboxCustomButtonTriggerWrapper, EmptyResults as DialogComboboxEmpty, DialogComboboxFooter, DialogComboboxHintRow, DialogComboboxOptionControlledList, DialogComboboxOptionList, DialogComboboxOptionListCheckboxItem, DialogComboboxOptionListSearch, DialogComboboxOptionListSelectItem, DialogComboboxSectionHeader, DialogComboboxSeparator, DialogComboboxTrigger, DotsCircleIcon$1 as DotsCircleIcon, DownloadIcon$1 as DownloadIcon, DragIcon$1 as DragIcon, Drawer, Dropdown, DropdownMenu, DuboisDatePicker, Empty, ErdIcon$1 as ErdIcon, ExpandLessIcon$1 as ExpandLessIcon, ExpandMoreIcon$1 as ExpandMoreIcon, FileCodeIcon$1 as FileCodeIcon, FileDocumentIcon$1 as FileDocumentIcon, FileIcon$1 as FileIcon, FileImageIcon$1 as FileImageIcon, FileModelIcon$1 as FileModelIcon, FilterIcon$1 as FilterIcon, FloatIcon$1 as FloatIcon, FolderBranchIcon$1 as FolderBranchIcon, FolderCloudFilledIcon$1 as FolderCloudFilledIcon, FolderCloudIcon$1 as FolderCloudIcon, FolderFillIcon$1 as FolderFillIcon, FolderIcon$1 as FolderIcon, FontIcon$1 as FontIcon, ForkIcon$1 as ForkIcon, Form, FormDubois, FormUI, FullscreenExitIcon$1 as FullscreenExitIcon, FullscreenIcon$1 as FullscreenIcon, FunctionIcon$1 as FunctionIcon, GearFillIcon$1 as GearFillIcon, GearIcon$1 as GearIcon, GenericSkeleton, GiftIcon$1 as GiftIcon, GitCommitIcon$1 as GitCommitIcon, GlobeIcon$1 as GlobeIcon, GridDashIcon$1 as GridDashIcon, GridIcon$1 as GridIcon, H1Icon$1 as H1Icon, H2Icon$1 as H2Icon, H3Icon$1 as H3Icon, Header$1 as Header, HistoryIcon$1 as HistoryIcon, HomeIcon$1 as HomeIcon, Icon, ImageIcon$1 as ImageIcon, IndentDecreaseIcon$1 as IndentDecreaseIcon, IndentIncreaseIcon$1 as IndentIncreaseIcon, InfinityIcon$1 as InfinityIcon, InfoBookIcon$1 as InfoBookIcon, InfoFillIcon$1 as InfoFillIcon, InfoIcon$1 as InfoIcon, InfoPopover, InfoTooltip, IngestionIcon$1 as IngestionIcon, Input, ItalicIcon$1 as ItalicIcon, KeyIcon$1 as KeyIcon, KeyboardIcon$1 as KeyboardIcon, LayerGraphIcon$1 as LayerGraphIcon, LayerIcon$1 as LayerIcon, Layout, LegacyDatePicker, LegacyOptGroup, LegacyOption, LegacyPopover, LegacySelect, LegacySelectOptGroup, LegacySelectOption, LegacySkeleton, LegacyTable, LettersIcon$1 as LettersIcon, LibrariesIcon$1 as LibrariesIcon, LightningIcon$1 as LightningIcon, LinkIcon$1 as LinkIcon, LinkOffIcon$1 as LinkOffIcon, ListBorderIcon$1 as ListBorderIcon, ListClearIcon$1 as ListClearIcon, ListIcon$1 as ListIcon, LoadingIcon, LoadingState, LockFillIcon$1 as LockFillIcon, LockIcon$1 as LockIcon, LockUnlockedIcon$1 as LockUnlockedIcon, MIcon$1 as MIcon, MailIcon$1 as MailIcon, Menu, MenuIcon$1 as MenuIcon, MinusBoxIcon$1 as MinusBoxIcon, MinusCircleFillIcon$1 as MinusCircleFillIcon, MinusCircleIcon$1 as MinusCircleIcon, Modal, ModelsIcon$1 as ModelsIcon, Nav, NavButton, NoIcon$1 as NoIcon, NotebookIcon$1 as NotebookIcon, Notification, NotificationIcon$1 as NotificationIcon, NotificationOffIcon$1 as NotificationOffIcon, NumbersIcon$1 as NumbersIcon, OfficeIcon$1 as OfficeIcon, Overflow, OverflowIcon$1 as OverflowIcon, PageBottomIcon$1 as PageBottomIcon, PageFirstIcon$1 as PageFirstIcon, PageLastIcon$1 as PageLastIcon, PageTopIcon$1 as PageTopIcon, PageWrapper, Pagination, Panel, PanelBody, PanelHeader, PanelHeaderButtons, PanelHeaderTitle, ParagraphSkeleton, PauseIcon$1 as PauseIcon, PencilIcon$1 as PencilIcon, PinCancelIcon$1 as PinCancelIcon, PinFillIcon$1 as PinFillIcon, PinIcon$1 as PinIcon, PipelineIcon$1 as PipelineIcon, PlayCircleFillIcon$1 as PlayCircleFillIcon, PlayCircleIcon$1 as PlayCircleIcon, PlayIcon$1 as PlayIcon, PlugIcon$1 as PlugIcon, PlusCircleFillIcon$1 as PlusCircleFillIcon, PlusCircleIcon$1 as PlusCircleIcon, PlusIcon$1 as PlusIcon, PlusSquareIcon$1 as PlusSquareIcon, Popover, QueryEditorIcon$1 as QueryEditorIcon, QueryIcon$1 as QueryIcon, QuestionMarkFillIcon$1 as QuestionMarkFillIcon, QuestionMarkIcon$1 as QuestionMarkIcon, QuestionMarkSpeechBubbleIcon$1 as QuestionMarkSpeechBubbleIcon, RHFControlledComponents, ROW_GUTTER_SIZE, Radio, ReaderModeIcon$1 as ReaderModeIcon, RedoIcon$1 as RedoIcon, RefreshIcon$1 as RefreshIcon, RestoreAntDDefaultClsPrefix, RobotIcon$1 as RobotIcon, Row, RunningIcon$1 as RunningIcon, SaveIcon$1 as SaveIcon, SchemaIcon$1 as SchemaIcon, SchoolIcon$1 as SchoolIcon, SearchIcon$1 as SearchIcon, SecurityIcon$1 as SecurityIcon, SegmentedControlButton, SegmentedControlGroup, Select, SelectContent, SelectOption, SelectOptionGroup, SelectTrigger, SendIcon$1 as SendIcon, ShareIcon$1 as ShareIcon, Sidebar, SidebarAutoIcon$1 as SidebarAutoIcon, SidebarCollapseIcon$1 as SidebarCollapseIcon, SidebarExpandIcon$1 as SidebarExpandIcon, SidebarIcon$1 as SidebarIcon, SimpleSelect, SimpleSelectOption, SimpleSelectOptionGroup, SlidersIcon$1 as SlidersIcon, SortAlphabeticalAscendingIcon$1 as SortAlphabeticalAscendingIcon, SortAlphabeticalDescendingIcon$1 as SortAlphabeticalDescendingIcon, SortAlphabeticalLeftIcon$1 as SortAlphabeticalLeftIcon, SortAlphabeticalRightIcon$1 as SortAlphabeticalRightIcon, SortAscendingIcon$1 as SortAscendingIcon, SortDescendingIcon$1 as SortDescendingIcon, SortUnsortedIcon$1 as SortUnsortedIcon, Space, Spacer, SparkleIcon$1 as SparkleIcon, SpeechBubbleIcon$1 as SpeechBubbleIcon, SpeechBubblePlusIcon$1 as SpeechBubblePlusIcon, SpeechBubbleQuestionMarkIcon$1 as SpeechBubbleQuestionMarkIcon, SpeechBubbleStarIcon$1 as SpeechBubbleStarIcon, Spinner, SplitButton, StarFillIcon$1 as StarFillIcon, StarIcon$1 as StarIcon, StepIntoIcon$1 as StepIntoIcon, StepOutIcon$1 as StepOutIcon, StepOverIcon$1 as StepOverIcon, Steps, StopCircleFillIcon$1 as StopCircleFillIcon, StopCircleIcon$1 as StopCircleIcon, StopIcon$1 as StopIcon, StorefrontIcon$1 as StorefrontIcon, StreamIcon$1 as StreamIcon, Switch, SyncIcon$1 as SyncIcon, TabPane, Table, TableCell, TableContext, TableFilterInput, TableFilterLayout, TableGlassesIcon$1 as TableGlassesIcon, TableHeader, TableIcon$1 as TableIcon, TableLightningIcon$1 as TableLightningIcon, TableOnlineViewIcon$1 as TableOnlineViewIcon, TableRow, TableRowAction, TableRowActionHeader, TableRowContext, TableRowMenuContainer, TableRowSelectCell, TableSkeleton, TableSkeletonRows, TableStreamIcon$1 as TableStreamIcon, TableVectorIcon$1 as TableVectorIcon, TableViewIcon$1 as TableViewIcon, Tabs, Tag, TagIcon$1 as TagIcon, TargetIcon$1 as TargetIcon, TextBoxIcon$1 as TextBoxIcon, ThumbsDownIcon$1 as ThumbsDownIcon, ThumbsUpIcon$1 as ThumbsUpIcon, TitleSkeleton, ToggleButton, Tooltip, TrashIcon$1 as TrashIcon, Tree, TreeIcon$1 as TreeIcon, TypeaheadComboboxAddButton, TypeaheadComboboxCheckboxItem, TypeaheadComboboxFooter, TypeaheadComboboxInput, TypeaheadComboboxMenu, TypeaheadComboboxMenuItem, TypeaheadComboboxMultiSelectInput, TypeaheadComboboxRoot, TypeaheadComboboxSectionHeader, TypeaheadComboboxSelectedItem, TypeaheadComboboxSeparator, TypeaheadComboboxToggleButton, Typography, UnderlineIcon$1 as UnderlineIcon, UndoIcon$1 as UndoIcon, UploadIcon$1 as UploadIcon, UsbIcon$1 as UsbIcon, UserBadgeIcon$1 as UserBadgeIcon, UserCircleIcon$1 as UserCircleIcon, UserGroupIcon$1 as UserGroupIcon, UserIcon$1 as UserIcon, VectorTableIcon$1 as VectorTableIcon, VisibleIcon$1 as VisibleIcon, VisibleOffIcon$1 as VisibleOffIcon, WarningFillIcon$1 as WarningFillIcon, WarningIcon, Wizard, WizardControlled, WizardModal, WorkflowsIcon$1 as WorkflowsIcon, WorkspacesIcon$1 as WorkspacesIcon, XCircleFillIcon$1 as XCircleFillIcon, XCircleIcon$1 as XCircleIcon, ZoomInIcon$1 as ZoomInIcon, ZoomMarqueeSelection$1 as ZoomMarqueeSelection, ZoomOutIcon$1 as ZoomOutIcon, __INTERNAL_DO_NOT_USE__FormItem, __INTERNAL_DO_NOT_USE__Group, __INTERNAL_DO_NOT_USE__HorizontalGroup, __INTERNAL_DO_NOT_USE__VerticalGroup, dialogComboboxLookAheadKeyDown, findClosestOptionSibling, findHighlightedOption, getAnimationCss, getComboboxOptionItemWrapperStyles, getComboboxOptionLabelStyles, getContentOptions, getDarkModePortalStyles, getDialogComboboxOptionLabelWidth, getGlobalStyles, getKeyboardNavigationFunctions, getPaginationEmotionStyles, getRadioStyles, getShadowScrollStyles, getTabEmotionStyles, getValidationStateColor, getWrapperStyle, highlightFirstNonDisabledOption, highlightOption, importantify, isOptionDisabled, resetTabIndexToFocusedElement, useComboboxState, useDesignSystemEventComponentCallbacks, useDesignSystemFlags, useDesignSystemTheme, useLegacyNotification, useMultipleSelectionState, useNotifyOnFirstView, useThemedStyles, useTypeaheadComboboxContext, useWizardCurrentStep, visuallyHidden, withNotifications };
|
|
18284
19267
|
//# sourceMappingURL=index.js.map
|