@databricks/design-system 2.0.8 → 2.0.10
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/AGENTS.md +7 -7
- package/CHANGELOG.md +26 -0
- package/README.md +14 -3
- package/design-guidance/docs/README.md +42 -5
- package/design-guidance/docs/component-reference.md +100 -0
- package/design-guidance/docs/tokens.md +2 -2
- package/design-guidance/skills/dbui-build-screen.md +1 -1
- package/design-guidance/skills/dbui-check-guidelines.md +1 -1
- package/design-guidance/skills/dbui-pick-component.md +1 -1
- package/design-guidance/skills/dbui-pick-icon.md +1 -1
- package/design-guidance/skills/dbui-review.md +1 -1
- package/design-guidance/skills/dbui-validate.md +1 -1
- package/dist/{RHFControlledTypeaheadComboboxV2-Boee19c1.js → RHFControlledTypeaheadComboboxV2-B8Al2z1N.js} +4 -3
- package/dist/{RHFControlledTypeaheadComboboxV2-Boee19c1.js.map → RHFControlledTypeaheadComboboxV2-B8Al2z1N.js.map} +1 -1
- package/dist/{WizardStepContentWrapper-DfErft8z.js → WizardStepContentWrapper-D_OEwjUE.js} +1310 -492
- package/dist/WizardStepContentWrapper-D_OEwjUE.js.map +1 -0
- package/dist/all-styles.css +89 -0
- package/dist/assets/fonts/dm-mono/DMMono-Regular.woff2 +0 -0
- package/dist/assets/fonts/dm-mono/dm-mono.css +11 -0
- package/dist/assets/fonts/dm-sans/DMSans-variable.woff2 +0 -0
- package/dist/assets/fonts/dm-sans/dm-sans.css +11 -0
- package/dist/assets/graphics/dark/accessDeniedGraphic.svg +1 -0
- package/dist/assets/graphics/dark/auth0Graphic.svg +1 -0
- package/dist/assets/graphics/dark/auth0GraphicLarge.svg +73 -0
- package/dist/assets/graphics/dark/dataMaskiingGraphic.svg +1 -0
- package/dist/assets/graphics/dark/emptyDashboardGraphic.svg +9 -0
- package/dist/assets/graphics/dark/missingBranchGraphic.svg +1 -0
- package/dist/assets/graphics/dark/missingGraphic.svg +1 -0
- package/dist/assets/graphics/dark/outageGraphic.svg +11 -0
- package/dist/assets/graphics/dark/usageOverageGraphic.svg +1 -0
- package/dist/assets/graphics/dark/usageSpikeGraphic.svg +1 -0
- package/dist/assets/graphics/light/accessDeniedGraphic.svg +1 -0
- package/dist/assets/graphics/light/auth0Graphic.svg +1 -0
- package/dist/assets/graphics/light/auth0GraphicLarge.svg +73 -0
- package/dist/assets/graphics/light/dataMaskiingGraphic.svg +1 -0
- package/dist/assets/graphics/light/emptyDashboardGraphic.svg +1 -0
- package/dist/assets/graphics/light/missingBranchGraphic.svg +1 -0
- package/dist/assets/graphics/light/missingGraphic.svg +1 -0
- package/dist/assets/graphics/light/outageGraphic.svg +1 -0
- package/dist/assets/graphics/light/usageOverageGraphic.svg +1 -0
- package/dist/assets/graphics/light/usageSpikeGraphic.svg +1 -0
- package/dist/assets/icons/AZHorizontalIcon.svg +4 -0
- package/dist/assets/icons/AZVerticalIcon.svg +11 -0
- package/dist/assets/icons/AlignCenterIcon.svg +7 -0
- package/dist/assets/icons/AlignJustifyIcon.svg +3 -0
- package/dist/assets/icons/AlignLeftIcon.svg +7 -0
- package/dist/assets/icons/AlignRightIcon.svg +7 -0
- package/dist/assets/icons/AlignVerticalBottomIcon.svg +3 -0
- package/dist/assets/icons/AlignVerticalCenterIcon.svg +5 -0
- package/dist/assets/icons/AlignVerticalTopIcon.svg +3 -0
- package/dist/assets/icons/AppIcon.svg +3 -0
- package/dist/assets/icons/ArrowDownDotIcon.svg +4 -0
- package/dist/assets/icons/ArrowDownFillIcon.svg +3 -0
- package/dist/assets/icons/ArrowDownIcon.svg +3 -0
- package/dist/assets/icons/ArrowInIcon.svg +4 -0
- package/dist/assets/icons/ArrowInTableIcon.svg +4 -0
- package/dist/assets/icons/ArrowLeftIcon.svg +3 -0
- package/dist/assets/icons/ArrowOutTableIcon.svg +4 -0
- package/dist/assets/icons/ArrowOverIcon.svg +4 -0
- package/dist/assets/icons/ArrowRightIcon.svg +3 -0
- package/dist/assets/icons/ArrowUpDotIcon.svg +4 -0
- package/dist/assets/icons/ArrowUpFillIcon.svg +3 -0
- package/dist/assets/icons/ArrowUpIcon.svg +3 -0
- package/dist/assets/icons/ArrowsCollapseIcon.svg +4 -0
- package/dist/assets/icons/ArrowsConnectIcon.svg +6 -0
- package/dist/assets/icons/ArrowsExpandIcon.svg +4 -0
- package/dist/assets/icons/ArrowsUpDownIcon.svg +4 -0
- package/dist/assets/icons/AssistantIcon.svg +3 -0
- package/dist/assets/icons/AtIcon.svg +3 -0
- package/dist/assets/icons/BackupIcon.svg +3 -0
- package/dist/assets/icons/BadgeCodeIcon.svg +5 -0
- package/dist/assets/icons/BadgeCodeOffIcon.svg +5 -0
- package/dist/assets/icons/BarChartIcon.svg +7 -0
- package/dist/assets/icons/BarGroupedIcon.svg +4 -0
- package/dist/assets/icons/BarStackedIcon.svg +3 -0
- package/dist/assets/icons/BarStackedPercentageIcon.svg +3 -0
- package/dist/assets/icons/BarsAscendingHorizontalIcon.svg +5 -0
- package/dist/assets/icons/BarsAscendingVerticalIcon.svg +5 -0
- package/dist/assets/icons/BarsDescendingHorizontalIcon.svg +5 -0
- package/dist/assets/icons/BarsDescendingVerticalIcon.svg +5 -0
- package/dist/assets/icons/BeakerIcon.svg +3 -0
- package/dist/assets/icons/BinaryIcon.svg +3 -0
- package/dist/assets/icons/BlockQuoteIcon.svg +8 -0
- package/dist/assets/icons/BoldIcon.svg +3 -0
- package/dist/assets/icons/BookIcon.svg +3 -0
- package/dist/assets/icons/BookmarkFillIcon.svg +3 -0
- package/dist/assets/icons/BookmarkIcon.svg +3 -0
- package/dist/assets/icons/BooksIcon.svg +5 -0
- package/dist/assets/icons/BracketsCheckIcon.svg +5 -0
- package/dist/assets/icons/BracketsCurlyIcon.svg +4 -0
- package/dist/assets/icons/BracketsErrorIcon.svg +5 -0
- package/dist/assets/icons/BracketsSquareIcon.svg +3 -0
- package/dist/assets/icons/BracketsXIcon.svg +12 -0
- package/dist/assets/icons/BranchCheckIcon.svg +4 -0
- package/dist/assets/icons/BranchIcon.svg +3 -0
- package/dist/assets/icons/BranchResetIcon.svg +5 -0
- package/dist/assets/icons/BriefcaseFillIcon.svg +3 -0
- package/dist/assets/icons/BriefcaseIcon.svg +3 -0
- package/dist/assets/icons/BrushIcon.svg +3 -0
- package/dist/assets/icons/BugIcon.svg +3 -0
- package/dist/assets/icons/CalendarClockIcon.svg +5 -0
- package/dist/assets/icons/CalendarEventIcon.svg +4 -0
- package/dist/assets/icons/CalendarIcon.svg +3 -0
- package/dist/assets/icons/CalendarRangeIcon.svg +11 -0
- package/dist/assets/icons/CalendarSyncIcon.svg +5 -0
- package/dist/assets/icons/CameraIcon.svg +3 -0
- package/dist/assets/icons/CapitalizeIcon.svg +3 -0
- package/dist/assets/icons/CaretDownSquareIcon.svg +4 -0
- package/dist/assets/icons/CaretUpSquareIcon.svg +4 -0
- package/dist/assets/icons/CatalogCloudIcon.svg +4 -0
- package/dist/assets/icons/CatalogGearIcon.svg +11 -0
- package/dist/assets/icons/CatalogHomeIcon.svg +4 -0
- package/dist/assets/icons/CatalogIcon.svg +3 -0
- package/dist/assets/icons/CatalogOffIcon.svg +11 -0
- package/dist/assets/icons/CatalogSharedIcon.svg +4 -0
- package/dist/assets/icons/CatalogUserHomeIcon.svg +4 -0
- package/dist/assets/icons/CellsSquareIcon.svg +3 -0
- package/dist/assets/icons/CertifiedFillIcon.svg +3 -0
- package/dist/assets/icons/CertifiedFillSmallIcon.svg +3 -0
- package/dist/assets/icons/CertifiedIcon.svg +11 -0
- package/dist/assets/icons/ChainIcon.svg +4 -0
- package/dist/assets/icons/ChartLineIcon.svg +4 -0
- package/dist/assets/icons/ChatNewTabIcon.svg +3 -0
- package/dist/assets/icons/ChatSpinnerIcon.svg +3 -0
- package/dist/assets/icons/CheckCircleBadgeIcon.svg +5 -0
- package/dist/assets/icons/CheckCircleFillIcon.svg +3 -0
- package/dist/assets/icons/CheckCircleIcon.svg +4 -0
- package/dist/assets/icons/CheckCircleSmallIcon.svg +3 -0
- package/dist/assets/icons/CheckIcon.svg +3 -0
- package/dist/assets/icons/CheckLineIcon.svg +3 -0
- package/dist/assets/icons/CheckSmallIcon.svg +3 -0
- package/dist/assets/icons/CheckboxIcon.svg +4 -0
- package/dist/assets/icons/ChecklistIcon.svg +7 -0
- package/dist/assets/icons/ChevronDoubleDownIcon.svg +4 -0
- package/dist/assets/icons/ChevronDoubleLeftIcon.svg +4 -0
- package/dist/assets/icons/ChevronDoubleLeftOffIcon.svg +4 -0
- package/dist/assets/icons/ChevronDoubleRightIcon.svg +4 -0
- package/dist/assets/icons/ChevronDoubleRightOffIcon.svg +4 -0
- package/dist/assets/icons/ChevronDoubleUpIcon.svg +4 -0
- package/dist/assets/icons/ChevronDownIcon.svg +3 -0
- package/dist/assets/icons/ChevronLeftIcon.svg +3 -0
- package/dist/assets/icons/ChevronRightIcon.svg +3 -0
- package/dist/assets/icons/ChevronUpIcon.svg +3 -0
- package/dist/assets/icons/ChipIcon.svg +4 -0
- package/dist/assets/icons/CircleIcon.svg +3 -0
- package/dist/assets/icons/CircleOffIcon.svg +3 -0
- package/dist/assets/icons/CircleOffLargeIcon.svg +4 -0
- package/dist/assets/icons/CircleOutlineIcon.svg +3 -0
- package/dist/assets/icons/CircleOutlineLargeIcon.svg +3 -0
- package/dist/assets/icons/ClipboardIcon.svg +3 -0
- package/dist/assets/icons/ClockIcon.svg +4 -0
- package/dist/assets/icons/ClockKeyIcon.svg +5 -0
- package/dist/assets/icons/ClockOffIcon.svg +5 -0
- package/dist/assets/icons/CloseIcon.svg +3 -0
- package/dist/assets/icons/CloseSmallIcon.svg +3 -0
- package/dist/assets/icons/CloudCheckIcon.svg +4 -0
- package/dist/assets/icons/CloudDatabaseIcon.svg +4 -0
- package/dist/assets/icons/CloudDownloadIcon.svg +4 -0
- package/dist/assets/icons/CloudIcon.svg +3 -0
- package/dist/assets/icons/CloudKeyIcon.svg +3 -0
- package/dist/assets/icons/CloudModelIcon.svg +4 -0
- package/dist/assets/icons/CloudOffIcon.svg +4 -0
- package/dist/assets/icons/CloudUploadIcon.svg +4 -0
- package/dist/assets/icons/CodeIcon.svg +4 -0
- package/dist/assets/icons/ColorFillIcon.svg +3 -0
- package/dist/assets/icons/ColorMappingEditIcon.svg +6 -0
- package/dist/assets/icons/ColorMappingIcon.svg +6 -0
- package/dist/assets/icons/ColumnIcon.svg +3 -0
- package/dist/assets/icons/ColumnSplitIcon.svg +3 -0
- package/dist/assets/icons/ColumnTagIcon.svg +4 -0
- package/dist/assets/icons/ColumnsIcon.svg +3 -0
- package/dist/assets/icons/CommandIcon.svg +3 -0
- package/dist/assets/icons/CommandPaletteIcon.svg +3 -0
- package/dist/assets/icons/CompassIcon.svg +4 -0
- package/dist/assets/icons/ConnectIcon.svg +6 -0
- package/dist/assets/icons/CopyIcon.svg +3 -0
- package/dist/assets/icons/CreditCardIcon.svg +4 -0
- package/dist/assets/icons/CursorClickIcon.svg +7 -0
- package/dist/assets/icons/CursorIcon.svg +10 -0
- package/dist/assets/icons/CursorTypeIcon.svg +4 -0
- package/dist/assets/icons/CustomAppIcon.svg +4 -0
- package/dist/assets/icons/DAGHorizontalIcon.svg +3 -0
- package/dist/assets/icons/DAGIcon.svg +3 -0
- package/dist/assets/icons/DAGVerticalIcon.svg +3 -0
- package/dist/assets/icons/DangerFillIcon.svg +3 -0
- package/dist/assets/icons/DangerIcon.svg +5 -0
- package/dist/assets/icons/DangerSmallIcon.svg +3 -0
- package/dist/assets/icons/DashIcon.svg +3 -0
- package/dist/assets/icons/DashboardCodeIcon.svg +5 -0
- package/dist/assets/icons/DashboardIcon.svg +3 -0
- package/dist/assets/icons/DataIcon.svg +5 -0
- package/dist/assets/icons/DatabaseClockIcon.svg +4 -0
- package/dist/assets/icons/DatabaseIcon.svg +3 -0
- package/dist/assets/icons/DatabaseImportIcon.svg +4 -0
- package/dist/assets/icons/DecimalIcon.svg +5 -0
- package/dist/assets/icons/DeprecatedIcon.svg +3 -0
- package/dist/assets/icons/DeprecatedSmallIcon.svg +3 -0
- package/dist/assets/icons/DollarIcon.svg +4 -0
- package/dist/assets/icons/DomainCirclesThree.svg +5 -0
- package/dist/assets/icons/DomainsIcon.svg +5 -0
- package/dist/assets/icons/DotsCircleIcon.svg +13 -0
- package/dist/assets/icons/DownloadIcon.svg +4 -0
- package/dist/assets/icons/DragIcon.svg +8 -0
- package/dist/assets/icons/ERDIcon.svg +3 -0
- package/dist/assets/icons/ExpandLessIcon.svg +4 -0
- package/dist/assets/icons/ExpandMoreIcon.svg +4 -0
- package/dist/assets/icons/FaceFrownIcon.svg +13 -0
- package/dist/assets/icons/FaceNeutralIcon.svg +13 -0
- package/dist/assets/icons/FaceSmileIcon.svg +13 -0
- package/dist/assets/icons/FileCodeIcon.svg +5 -0
- package/dist/assets/icons/FileCubeIcon.svg +4 -0
- package/dist/assets/icons/FileDocumentIcon.svg +5 -0
- package/dist/assets/icons/FileIcon.svg +3 -0
- package/dist/assets/icons/FileImageIcon.svg +5 -0
- package/dist/assets/icons/FileLockIcon.svg +11 -0
- package/dist/assets/icons/FileModelIcon.svg +4 -0
- package/dist/assets/icons/FileNewIcon.svg +4 -0
- package/dist/assets/icons/FilePipelineIcon.svg +4 -0
- package/dist/assets/icons/FilterFillIcon.svg +3 -0
- package/dist/assets/icons/FilterIcon.svg +3 -0
- package/dist/assets/icons/FlagPointerIcon.svg +3 -0
- package/dist/assets/icons/FloatIcon.svg +5 -0
- package/dist/assets/icons/FlowIcon.svg +3 -0
- package/dist/assets/icons/FlowsIcon.svg +3 -0
- package/dist/assets/icons/FolderBranchFillIcon.svg +4 -0
- package/dist/assets/icons/FolderBranchIcon.svg +3 -0
- package/dist/assets/icons/FolderCloudFilledIcon.svg +11 -0
- package/dist/assets/icons/FolderCloudIcon.svg +11 -0
- package/dist/assets/icons/FolderCubeIcon.svg +4 -0
- package/dist/assets/icons/FolderCubeOutlineIcon.svg +4 -0
- package/dist/assets/icons/FolderFillIcon.svg +3 -0
- package/dist/assets/icons/FolderHomeIcon.svg +4 -0
- package/dist/assets/icons/FolderIcon.svg +3 -0
- package/dist/assets/icons/FolderNewIcon.svg +4 -0
- package/dist/assets/icons/FolderNodeIcon.svg +3 -0
- package/dist/assets/icons/FolderOpenBranchIcon.svg +4 -0
- package/dist/assets/icons/FolderOpenCloudIcon.svg +4 -0
- package/dist/assets/icons/FolderOpenCubeIcon.svg +4 -0
- package/dist/assets/icons/FolderOpenIcon.svg +3 -0
- package/dist/assets/icons/FolderOpenPipelineIcon.svg +4 -0
- package/dist/assets/icons/FolderOutlinePipelineIcon.svg +4 -0
- package/dist/assets/icons/FolderSolidPipelineIcon.svg +4 -0
- package/dist/assets/icons/FontIcon.svg +10 -0
- package/dist/assets/icons/ForkHorizontalIcon.svg +3 -0
- package/dist/assets/icons/ForkIcon.svg +3 -0
- package/dist/assets/icons/FullscreenExitIcon.svg +6 -0
- package/dist/assets/icons/FullscreenIcon.svg +6 -0
- package/dist/assets/icons/FunctionIcon.svg +10 -0
- package/dist/assets/icons/FunctionInputIcon.svg +6 -0
- package/dist/assets/icons/GavelIcon.svg +3 -0
- package/dist/assets/icons/GearFillIcon.svg +3 -0
- package/dist/assets/icons/GearIcon.svg +11 -0
- package/dist/assets/icons/GenieCodeIcon.svg +3 -0
- package/dist/assets/icons/GenieDeepResearchIcon.svg +6 -0
- package/dist/assets/icons/GiftIcon.svg +3 -0
- package/dist/assets/icons/GitCommitIcon.svg +3 -0
- package/dist/assets/icons/GitMergeIcon.svg +3 -0
- package/dist/assets/icons/GitRebaseIcon.svg +4 -0
- package/dist/assets/icons/GlobeIcon.svg +10 -0
- package/dist/assets/icons/GridDashIcon.svg +10 -0
- package/dist/assets/icons/GridIcon.svg +6 -0
- package/dist/assets/icons/GroupIcon.svg +12 -0
- package/dist/assets/icons/H1Icon.svg +4 -0
- package/dist/assets/icons/H2Icon.svg +4 -0
- package/dist/assets/icons/H3Icon.svg +4 -0
- package/dist/assets/icons/H4Icon.svg +4 -0
- package/dist/assets/icons/H5Icon.svg +4 -0
- package/dist/assets/icons/H6Icon.svg +4 -0
- package/dist/assets/icons/HashIcon.svg +3 -0
- package/dist/assets/icons/HistoryIcon.svg +11 -0
- package/dist/assets/icons/HomeIcon.svg +3 -0
- package/dist/assets/icons/ImageIcon.svg +4 -0
- package/dist/assets/icons/IndentDecreaseIcon.svg +7 -0
- package/dist/assets/icons/IndentIncreaseIcon.svg +7 -0
- package/dist/assets/icons/InfinityIcon.svg +3 -0
- package/dist/assets/icons/InfoBookIcon.svg +5 -0
- package/dist/assets/icons/InfoFillIcon.svg +3 -0
- package/dist/assets/icons/InfoIcon.svg +3 -0
- package/dist/assets/icons/InfoSmallIcon.svg +5 -0
- package/dist/assets/icons/IngestionIcon.svg +4 -0
- package/dist/assets/icons/ItalicIcon.svg +3 -0
- package/dist/assets/icons/JoinOperatorIcon.svg +3 -0
- package/dist/assets/icons/KeyIcon.svg +3 -0
- package/dist/assets/icons/KeyboardIcon.svg +3 -0
- package/dist/assets/icons/LakebaseCatalogIcon.svg +4 -0
- package/dist/assets/icons/LakebaseIcon.svg +3 -0
- package/dist/assets/icons/LakeflowDesignerIcon.svg +3 -0
- package/dist/assets/icons/LakewatchAlertIcon.svg +4 -0
- package/dist/assets/icons/LakewatchDatasourceIcon.svg +3 -0
- package/dist/assets/icons/LakewatchDetectionRuleIcon.svg +3 -0
- package/dist/assets/icons/LakewatchIcon.svg +4 -0
- package/dist/assets/icons/LakewatchParserIcon.svg +16 -0
- package/dist/assets/icons/LayerGraphIcon.svg +5 -0
- package/dist/assets/icons/LayerIcon.svg +5 -0
- package/dist/assets/icons/LeafIcon.svg +3 -0
- package/dist/assets/icons/LetterFormatIcon.svg +5 -0
- package/dist/assets/icons/LettersIcon.svg +5 -0
- package/dist/assets/icons/LettersNumbersIcon.svg +8 -0
- package/dist/assets/icons/LibrariesIcon.svg +5 -0
- package/dist/assets/icons/LifesaverIcon.svg +3 -0
- package/dist/assets/icons/LightbulbIcon.svg +8 -0
- package/dist/assets/icons/LightningCircleFillIcon.svg +3 -0
- package/dist/assets/icons/LightningIcon.svg +3 -0
- package/dist/assets/icons/LinearLineIcon.svg +3 -0
- package/dist/assets/icons/LinkIcon.svg +5 -0
- package/dist/assets/icons/LinkOffIcon.svg +5 -0
- package/dist/assets/icons/ListBorderIcon.svg +9 -0
- package/dist/assets/icons/ListClearIcon.svg +13 -0
- package/dist/assets/icons/ListIcon.svg +6 -0
- package/dist/assets/icons/ListNumberIcon.svg +6 -0
- package/dist/assets/icons/LoadingIcon.svg +5 -0
- package/dist/assets/icons/LockFillIcon.svg +3 -0
- package/dist/assets/icons/LockIcon.svg +4 -0
- package/dist/assets/icons/LockShareIcon.svg +4 -0
- package/dist/assets/icons/LockUnlockedIcon.svg +4 -0
- package/dist/assets/icons/LoopIcon.svg +3 -0
- package/dist/assets/icons/LowercaseIcon.svg +4 -0
- package/dist/assets/icons/MailIcon.svg +3 -0
- package/dist/assets/icons/MapIcon.svg +3 -0
- package/dist/assets/icons/MarkdownIcon.svg +4 -0
- package/dist/assets/icons/McpIcon.svg +11 -0
- package/dist/assets/icons/MeasureIcon.svg +3 -0
- package/dist/assets/icons/MegaphoneIcon.svg +3 -0
- package/dist/assets/icons/MenuIcon.svg +3 -0
- package/dist/assets/icons/MicrophoneIcon.svg +4 -0
- package/dist/assets/icons/MicrophoneOffIcon.svg +5 -0
- package/dist/assets/icons/MinusCircleFillIcon.svg +3 -0
- package/dist/assets/icons/MinusCircleIcon.svg +4 -0
- package/dist/assets/icons/MinusCircleSmallIcon.svg +4 -0
- package/dist/assets/icons/MinusSquareIcon.svg +4 -0
- package/dist/assets/icons/ModelsIcon.svg +10 -0
- package/dist/assets/icons/MonotoneLineIcon.svg +3 -0
- package/dist/assets/icons/MoonIcon.svg +3 -0
- package/dist/assets/icons/NeonProjectIcon.svg +4 -0
- package/dist/assets/icons/NewChatIcon.svg +4 -0
- package/dist/assets/icons/NewTabIcon.svg +4 -0
- package/dist/assets/icons/NewWindowIcon.svg +4 -0
- package/dist/assets/icons/NoCaseIcon.svg +4 -0
- package/dist/assets/icons/NoIcon.svg +3 -0
- package/dist/assets/icons/NotebookIcon.svg +3 -0
- package/dist/assets/icons/NotebookPipelineIcon.svg +4 -0
- package/dist/assets/icons/NotificationIcon.svg +3 -0
- package/dist/assets/icons/NotificationOffIcon.svg +3 -0
- package/dist/assets/icons/NumberFormatIcon.svg +5 -0
- package/dist/assets/icons/NumbersIcon.svg +5 -0
- package/dist/assets/icons/OfficeIcon.svg +6 -0
- package/dist/assets/icons/OntologyIcon.svg +5 -0
- package/dist/assets/icons/OperatorIcon.svg +4 -0
- package/dist/assets/icons/OverflowHorizontalIcon.svg +3 -0
- package/dist/assets/icons/OverflowIcon.svg +5 -0
- package/dist/assets/icons/PageBottomIcon.svg +3 -0
- package/dist/assets/icons/PageFirstIcon.svg +3 -0
- package/dist/assets/icons/PageIcon.svg +6 -0
- package/dist/assets/icons/PageLastIcon.svg +3 -0
- package/dist/assets/icons/PageTopIcon.svg +3 -0
- package/dist/assets/icons/PanelDockedIcon.svg +3 -0
- package/dist/assets/icons/PanelFloatingIcon.svg +3 -0
- package/dist/assets/icons/PaperclipIcon.svg +3 -0
- package/dist/assets/icons/PassFailChecklistIcon.svg +7 -0
- package/dist/assets/icons/PauseIcon.svg +3 -0
- package/dist/assets/icons/PencilFillIcon.svg +3 -0
- package/dist/assets/icons/PencilIcon.svg +3 -0
- package/dist/assets/icons/PencilSparkleIcon.svg +5 -0
- package/dist/assets/icons/PieChartIcon.svg +4 -0
- package/dist/assets/icons/PinCancelIcon.svg +4 -0
- package/dist/assets/icons/PinFillIcon.svg +3 -0
- package/dist/assets/icons/PinIcon.svg +3 -0
- package/dist/assets/icons/PipelineCodeIcon.svg +5 -0
- package/dist/assets/icons/PipelineCubeIcon.svg +4 -0
- package/dist/assets/icons/PipelineIcon.svg +3 -0
- package/dist/assets/icons/PivotOperatorIcon.svg +4 -0
- package/dist/assets/icons/PlayCircleFillIcon.svg +3 -0
- package/dist/assets/icons/PlayCircleIcon.svg +4 -0
- package/dist/assets/icons/PlayDoubleIcon.svg +4 -0
- package/dist/assets/icons/PlayIcon.svg +3 -0
- package/dist/assets/icons/PlayMultipleIcon.svg +3 -0
- package/dist/assets/icons/PlugIcon.svg +4 -0
- package/dist/assets/icons/PlusCircleFillIcon.svg +3 -0
- package/dist/assets/icons/PlusCircleIcon.svg +4 -0
- package/dist/assets/icons/PlusCircleSmallIcon.svg +4 -0
- package/dist/assets/icons/PlusIcon.svg +3 -0
- package/dist/assets/icons/PlusMinusSquareIcon.svg +5 -0
- package/dist/assets/icons/PlusSquareIcon.svg +4 -0
- package/dist/assets/icons/PositionBottomIcon.svg +4 -0
- package/dist/assets/icons/PositionLeftIcon.svg +4 -0
- package/dist/assets/icons/PositionRightIcon.svg +4 -0
- package/dist/assets/icons/PositionTopIcon.svg +4 -0
- package/dist/assets/icons/PullRequestIcon.svg +4 -0
- package/dist/assets/icons/PuzzleIcon.svg +3 -0
- package/dist/assets/icons/QueryEditorIcon.svg +5 -0
- package/dist/assets/icons/QueryIcon.svg +12 -0
- package/dist/assets/icons/QuestionMarkFillIcon.svg +3 -0
- package/dist/assets/icons/QuestionMarkIcon.svg +5 -0
- package/dist/assets/icons/RadioIcon.svg +3 -0
- package/dist/assets/icons/ReaderModeIcon.svg +6 -0
- package/dist/assets/icons/RedoIcon.svg +10 -0
- package/dist/assets/icons/RefreshIcon.svg +3 -0
- package/dist/assets/icons/RefreshPlayIcon.svg +4 -0
- package/dist/assets/icons/RefreshXIcon.svg +4 -0
- package/dist/assets/icons/ReplyIcon.svg +8 -0
- package/dist/assets/icons/ResizeIcon.svg +3 -0
- package/dist/assets/icons/RichTextIcon.svg +8 -0
- package/dist/assets/icons/RobotIcon.svg +3 -0
- package/dist/assets/icons/RocketIcon.svg +4 -0
- package/dist/assets/icons/RowsIcon.svg +3 -0
- package/dist/assets/icons/RunIcon.svg +3 -0
- package/dist/assets/icons/RunningIcon.svg +10 -0
- package/dist/assets/icons/SQLIcon.svg +6 -0
- package/dist/assets/icons/SaveClockIcon.svg +5 -0
- package/dist/assets/icons/SaveIcon.svg +4 -0
- package/dist/assets/icons/SchemaIcon.svg +3 -0
- package/dist/assets/icons/SchoolIcon.svg +3 -0
- package/dist/assets/icons/SearchDataIcon.svg +6 -0
- package/dist/assets/icons/SearchIcon.svg +10 -0
- package/dist/assets/icons/SendIcon.svg +3 -0
- package/dist/assets/icons/ShareIcon.svg +4 -0
- package/dist/assets/icons/ShareNodesIcon.svg +3 -0
- package/dist/assets/icons/ShieldCheckIcon.svg +3 -0
- package/dist/assets/icons/ShieldIcon.svg +3 -0
- package/dist/assets/icons/ShieldOffIcon.svg +4 -0
- package/dist/assets/icons/ShortcutIcon.svg +4 -0
- package/dist/assets/icons/SidebarAutoIcon.svg +5 -0
- package/dist/assets/icons/SidebarClosedIcon.svg +4 -0
- package/dist/assets/icons/SidebarCollapseIcon.svg +4 -0
- package/dist/assets/icons/SidebarExpandIcon.svg +4 -0
- package/dist/assets/icons/SidebarIcon.svg +3 -0
- package/dist/assets/icons/SidebarOpenIcon.svg +3 -0
- package/dist/assets/icons/SidebarSyncIcon.svg +4 -0
- package/dist/assets/icons/SlashSquareIcon.svg +4 -0
- package/dist/assets/icons/SlidersIcon.svg +4 -0
- package/dist/assets/icons/SlidesIcon.svg +4 -0
- package/dist/assets/icons/SnippetIcon.svg +4 -0
- package/dist/assets/icons/SortAscendingIcon.svg +6 -0
- package/dist/assets/icons/SortCustomHorizontalIcon.svg +4 -0
- package/dist/assets/icons/SortCustomVerticalIcon.svg +4 -0
- package/dist/assets/icons/SortDescendingIcon.svg +3 -0
- package/dist/assets/icons/SortHorizontalAscendingIcon.svg +3 -0
- package/dist/assets/icons/SortHorizontalDescendingIcon.svg +3 -0
- package/dist/assets/icons/SortLetterHorizontalAscendingIcon.svg +12 -0
- package/dist/assets/icons/SortLetterHorizontalDescendingIcon.svg +12 -0
- package/dist/assets/icons/SortLetterUnsortedIcon.svg +5 -0
- package/dist/assets/icons/SortLetterVerticalAscendingIcon.svg +12 -0
- package/dist/assets/icons/SortLetterVerticalDescendingIcon.svg +12 -0
- package/dist/assets/icons/SortUnsortedIcon.svg +6 -0
- package/dist/assets/icons/SparkleDoubleFillIcon.svg +4 -0
- package/dist/assets/icons/SparkleDoubleIcon.svg +5 -0
- package/dist/assets/icons/SparkleFillIcon.svg +3 -0
- package/dist/assets/icons/SparkleIcon.svg +3 -0
- package/dist/assets/icons/SparkleRectangleIcon.svg +3 -0
- package/dist/assets/icons/SpeechBubbleIcon.svg +6 -0
- package/dist/assets/icons/SpeechBubblePlusIcon.svg +4 -0
- package/dist/assets/icons/SpeechBubbleQuestionMarkFillIcon.svg +3 -0
- package/dist/assets/icons/SpeechBubbleQuestionMarkIcon.svg +3 -0
- package/dist/assets/icons/SpeechBubbleStarIcon.svg +4 -0
- package/dist/assets/icons/SpeedometerIcon.svg +4 -0
- package/dist/assets/icons/StarFillIcon.svg +3 -0
- package/dist/assets/icons/StarIcon.svg +3 -0
- package/dist/assets/icons/StepAfterLineIcon.svg +3 -0
- package/dist/assets/icons/StepBeforeLineIcon.svg +3 -0
- package/dist/assets/icons/StopCircleFillIcon.svg +3 -0
- package/dist/assets/icons/StopCircleIcon.svg +3 -0
- package/dist/assets/icons/StopIcon.svg +3 -0
- package/dist/assets/icons/StoredProcedureIcon.svg +7 -0
- package/dist/assets/icons/StorefrontIcon.svg +3 -0
- package/dist/assets/icons/StreamIcon.svg +3 -0
- package/dist/assets/icons/StrikeThroughIcon.svg +4 -0
- package/dist/assets/icons/SunIcon.svg +11 -0
- package/dist/assets/icons/SyncIcon.svg +4 -0
- package/dist/assets/icons/SyncSmallIcon.svg +4 -0
- package/dist/assets/icons/SyncToFileIcon.svg +4 -0
- package/dist/assets/icons/TableAsteriskIcon.svg +4 -0
- package/dist/assets/icons/TableClockIcon.svg +4 -0
- package/dist/assets/icons/TableCombineIcon.svg +5 -0
- package/dist/assets/icons/TableGlassesIcon.svg +4 -0
- package/dist/assets/icons/TableGlobeIcon.svg +4 -0
- package/dist/assets/icons/TableIcon.svg +3 -0
- package/dist/assets/icons/TableLightningIcon.svg +4 -0
- package/dist/assets/icons/TableMeasureIcon.svg +4 -0
- package/dist/assets/icons/TableModelIcon.svg +4 -0
- package/dist/assets/icons/TableReportIcon.svg +4 -0
- package/dist/assets/icons/TableStreamIcon.svg +5 -0
- package/dist/assets/icons/TableVectorIcon.svg +10 -0
- package/dist/assets/icons/TableViewIcon.svg +11 -0
- package/dist/assets/icons/TagColumnIcon.svg +5 -0
- package/dist/assets/icons/TagIcon.svg +4 -0
- package/dist/assets/icons/TagTableIcon.svg +5 -0
- package/dist/assets/icons/TargetIcon.svg +7 -0
- package/dist/assets/icons/TerminalIcon.svg +5 -0
- package/dist/assets/icons/TextBoxIcon.svg +3 -0
- package/dist/assets/icons/TextColorIcon.svg +3 -0
- package/dist/assets/icons/TextIcon.svg +3 -0
- package/dist/assets/icons/TextJustifyIcon.svg +7 -0
- package/dist/assets/icons/TextUnderlineIcon.svg +5 -0
- package/dist/assets/icons/ThreeDotsIcon.svg +3 -0
- package/dist/assets/icons/ThumbsDownFilledIcon.svg +5 -0
- package/dist/assets/icons/ThumbsDownIcon.svg +10 -0
- package/dist/assets/icons/ThumbsUpFilledIcon.svg +3 -0
- package/dist/assets/icons/ThumbsUpIcon.svg +10 -0
- package/dist/assets/icons/TokenIcon.svg +8 -0
- package/dist/assets/icons/TrashIcon.svg +3 -0
- package/dist/assets/icons/TreeIcon.svg +3 -0
- package/dist/assets/icons/TrendingFillIcon.svg +3 -0
- package/dist/assets/icons/TrendingIcon.svg +3 -0
- package/dist/assets/icons/TriangleIcon.svg +3 -0
- package/dist/assets/icons/UnderlineIcon.svg +4 -0
- package/dist/assets/icons/UndoIcon.svg +10 -0
- package/dist/assets/icons/UploadIcon.svg +4 -0
- package/dist/assets/icons/UppercaseIcon.svg +4 -0
- package/dist/assets/icons/UsbIcon.svg +3 -0
- package/dist/assets/icons/UserBadgeIcon.svg +4 -0
- package/dist/assets/icons/UserCircleIcon.svg +4 -0
- package/dist/assets/icons/UserGroupFillIcon.svg +3 -0
- package/dist/assets/icons/UserGroupIcon.svg +5 -0
- package/dist/assets/icons/UserIcon.svg +4 -0
- package/dist/assets/icons/UserKeyIconIcon.svg +5 -0
- package/dist/assets/icons/UserShieldIcon.svg +4 -0
- package/dist/assets/icons/UserSparkleIcon.svg +5 -0
- package/dist/assets/icons/UserTeamIcon.svg +8 -0
- package/dist/assets/icons/VisibleFillIcon.svg +10 -0
- package/dist/assets/icons/VisibleIcon.svg +11 -0
- package/dist/assets/icons/VisibleOffIcon.svg +12 -0
- package/dist/assets/icons/VoiceModeIcon.svg +7 -0
- package/dist/assets/icons/WarningFillIcon.svg +3 -0
- package/dist/assets/icons/WarningIcon.svg +5 -0
- package/dist/assets/icons/WorkflowCodeIcon.svg +5 -0
- package/dist/assets/icons/WorkflowCubeIcon.svg +5 -0
- package/dist/assets/icons/WorkflowsIcon.svg +3 -0
- package/dist/assets/icons/WorkspacesIcon.svg +4 -0
- package/dist/assets/icons/WrenchIcon.svg +3 -0
- package/dist/assets/icons/WrenchSparkleIcon.svg +5 -0
- package/dist/assets/icons/XCircleFillIcon.svg +3 -0
- package/dist/assets/icons/XCircleIcon.svg +4 -0
- package/dist/assets/icons/ZAHorizontalIcon.svg +4 -0
- package/dist/assets/icons/ZAVerticalIcon.svg +4 -0
- package/dist/assets/icons/ZeroOpsIcon.svg +3 -0
- package/dist/assets/icons/ZeroOpsOutlineIcon.svg +3 -0
- package/dist/assets/icons/ZoomInIcon.svg +4 -0
- package/dist/assets/icons/ZoomMarqueeSelection.svg +8 -0
- package/dist/assets/icons/ZoomOutIcon.svg +4 -0
- package/dist/assets/icons/ZoomToFitIcon.svg +6 -0
- package/dist/design-system/Avatar/tokens.css +28 -0
- package/dist/design-system/Banner/tokens.css +0 -0
- package/dist/design-system/Breadcrumb/NativeBreadcrumb.css +43 -0
- package/dist/design-system/Breadcrumb/breadcrumb.less +8 -0
- package/dist/design-system/Breadcrumb/tokens.css +13 -0
- package/dist/design-system/Button/NativeButton.css +370 -0
- package/dist/design-system/Button/tokens.css +56 -0
- package/dist/design-system/Card/tokens.css +29 -0
- package/dist/design-system/Checkbox/NativeCheckbox.css +258 -0
- package/dist/design-system/Checkbox/tokens.css +37 -0
- package/dist/design-system/ContextMenu/tokens.css +18 -0
- package/dist/design-system/DialogCombobox/tokens.css +78 -0
- package/dist/design-system/Drawer/tokens.css +30 -0
- package/dist/design-system/DropdownMenu/tokens.css +23 -0
- package/dist/design-system/Empty/tokens.css +11 -0
- package/dist/design-system/Form/tokens.css +0 -0
- package/dist/design-system/FormMessage/tokens.css +0 -0
- package/dist/design-system/FormV2/tokens.css +0 -0
- package/dist/design-system/Header/tokens.css +10 -0
- package/dist/design-system/Hint/tokens.css +0 -0
- package/dist/design-system/HoverCard/tokens.css +26 -0
- package/dist/design-system/Icon/NativeIcon.css +97 -0
- package/dist/design-system/Icon/generator/CalendarRangeIcon.png +0 -0
- package/dist/design-system/Icon/tokens.css +12 -0
- package/dist/design-system/Input/NativeInput.css +111 -0
- package/dist/design-system/Input/group/NativeGroup.css +51 -0
- package/dist/design-system/Input/textarea/NativeTextArea.css +27 -0
- package/dist/design-system/Label/tokens.css +0 -0
- package/dist/design-system/LegacyNotification/notification.less +45 -0
- package/dist/design-system/Listbox/tokens.css +15 -0
- package/dist/design-system/Modal/tokens.css +42 -0
- package/dist/design-system/NavigationMenu/tokens.css +23 -0
- package/dist/design-system/Notification/tokens.css +35 -0
- package/dist/design-system/Overflow/tokens.css +11 -0
- package/dist/design-system/PageWrapper/tokens.css +14 -0
- package/dist/design-system/PillControl/tokens.css +73 -0
- package/dist/design-system/Popover/tokens.css +29 -0
- package/dist/design-system/PreviewCard/tokens.css +46 -0
- package/dist/design-system/Progress/tokens.css +17 -0
- package/dist/design-system/Radio/NativeRadio.css +323 -0
- package/dist/design-system/Radio/tokens.css +37 -0
- package/dist/design-system/ResourceStatusIndicator/tokens.css +5 -0
- package/dist/design-system/Select/tokens.css +0 -0
- package/dist/design-system/Sidebar/tokens.css +36 -0
- package/dist/design-system/Skeleton/tokens.css +0 -0
- package/dist/design-system/Slider/tokens.css +22 -0
- package/dist/design-system/SnackBar/tokens.css +37 -0
- package/dist/design-system/Spacer/tokens.css +11 -0
- package/dist/design-system/Spinner/tokens.css +0 -0
- package/dist/design-system/Stepper/tokens.css +0 -0
- package/dist/design-system/Switch/NativeSwitch.css +172 -0
- package/dist/design-system/Switch/switch.less +93 -0
- package/dist/design-system/Switch/tokens.css +38 -0
- package/dist/design-system/Tabs/tokens.css +52 -0
- package/dist/design-system/Tag/tokens.css +0 -0
- package/dist/design-system/ToggleButton/tokens.css +36 -0
- package/dist/design-system/Toolbar/tokens.css +23 -0
- package/dist/design-system/Tooltip/tokens.css +44 -0
- package/dist/design-system/_shared_/Menu/tokens.css +42 -0
- package/dist/design-system/general-overrides.less +33 -0
- package/dist/design-system/utils/debug.less +4 -0
- package/dist/design-tokens/family-tokens/actions-tokens.css +29 -0
- package/dist/design-tokens/family-tokens/cards-tokens.css +10 -0
- package/dist/design-tokens/family-tokens/inputs-tokens.css +43 -0
- package/dist/design-tokens/family-tokens/lists-tokens.css +26 -0
- package/dist/design-tokens/family-tokens/popups-tokens.css +13 -0
- package/dist/design-tokens/family-tokens/selection-toggles-tokens.css +34 -0
- package/dist/design-tokens/system-tokens/colors-dark-tokens.css +103 -0
- package/dist/design-tokens/system-tokens/colors-light-tokens.css +103 -0
- package/dist/design-tokens/system-tokens/density-tokens.css +28 -0
- package/dist/design-tokens/system-tokens/elevation-tokens.css +6 -0
- package/dist/design-tokens/system-tokens/focus-ring-tokens.css +5 -0
- package/dist/design-tokens/system-tokens/shape-tokens.css +8 -0
- package/dist/design-tokens/system-tokens/typography-tokens.css +24 -0
- package/dist/dubois-colors.less +2 -0
- package/dist/icon-metadata.json +8 -0
- package/dist/{index-CUzS-Vjx.js → index-CKurXbfF.js} +339 -204
- package/dist/index-CKurXbfF.js.map +1 -0
- package/dist/index-dark.css +578 -51
- package/dist/index-dark.mitigated.css +578 -51
- package/dist/index.css +819 -51
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mitigated.css +819 -51
- package/dist/mcp.mjs +23232 -0
- package/dist/mortar/action.css +93 -0
- package/dist/mortar/input.css +86 -0
- package/dist/mortar/layout.css +57 -0
- package/dist/mortar/typography.css +72 -0
- package/dist/patterns.js +2 -1
- package/dist/patterns.js.map +1 -1
- package/dist/rollup/noop.less +0 -0
- package/dist/test-utils/rtl.js +2 -2
- package/dist/test-utils/rtl.js.map +1 -1
- package/dist/tokens-groups/system-tokens.css +139 -0
- package/dist/tokens-groups/system-tokens.dark.css +126 -0
- package/dist-types/design-system/Breadcrumb/AntDBreadcrumbInternal.d.ts +5 -0
- package/dist-types/design-system/Breadcrumb/Breadcrumb.d.ts +25 -7
- package/dist-types/design-system/Breadcrumb/NativeBreadcrumb.d.ts +5 -0
- package/dist-types/design-system/Button/getBtnClassName.d.ts +1 -1
- package/dist-types/design-system/Card/Card.d.ts +1 -1
- package/dist-types/design-system/DatePicker/DatePicker.d.ts +1 -1
- package/dist-types/design-system/DatePicker/LegacyDatePicker.d.ts +1 -1
- package/dist-types/design-system/DesignSystemProvider/DesignSystemProvider.d.ts +11 -2
- package/dist-types/design-system/DesignSystemProvider/DesignTokenScopeWithEmotionTheme.d.ts +3 -1
- package/dist-types/design-system/DropdownMenu/HintColumn.d.ts +2 -3
- package/dist-types/design-system/Form/Form.d.ts +1 -1
- package/dist-types/design-system/FormV2/index.d.ts +1 -0
- package/dist-types/design-system/Grid/NativeCol.d.ts +1 -1
- package/dist-types/design-system/Grid/NativeRow.d.ts +3 -3
- package/dist-types/design-system/Grid/rowConstants.d.ts +1 -1
- package/dist-types/design-system/Grid/types.d.ts +2 -2
- package/dist-types/design-system/Header/Header.d.ts +1 -1
- package/dist-types/design-system/Icon/LegacyAntDIcon.d.ts +1 -1
- package/dist-types/design-system/Icon/__generated/icons/ChatNewTabIcon.d.ts +4 -0
- package/dist-types/design-system/Icon/__generated/icons/ChatSpinnerIcon.d.ts +4 -0
- package/dist-types/design-system/Icon/__generated/icons/index.d.ts +2 -0
- package/dist-types/design-system/Input/AntDInput.d.ts +26 -0
- package/dist-types/design-system/Input/Input.d.ts +7 -25
- package/dist-types/design-system/Input/NativeInput.d.ts +4 -0
- package/dist-types/design-system/Input/force-mode.d.ts +13 -0
- package/dist-types/design-system/Input/group/AntDGroup.d.ts +2 -0
- package/dist-types/design-system/Input/group/Group.d.ts +28 -0
- package/dist-types/design-system/Input/group/NativeGroup.d.ts +2 -0
- package/dist-types/design-system/Input/index-defs.d.ts +3 -3
- package/dist-types/design-system/Input/index.d.ts +7 -2
- package/dist-types/design-system/Input/input-container-styling.d.ts +13 -0
- package/dist-types/design-system/Input/input-focus.d.ts +8 -0
- package/dist-types/design-system/Input/input-props.d.ts +37 -0
- package/dist-types/design-system/Input/input-refs.d.ts +22 -0
- package/dist-types/design-system/Input/password/AntDPassword.d.ts +4 -0
- package/dist-types/design-system/Input/password/NativePassword.d.ts +4 -0
- package/dist-types/design-system/Input/password/Password.d.ts +15 -0
- package/dist-types/design-system/Input/testing/keyboard-input.d.ts +9 -0
- package/dist-types/design-system/Input/textarea/AntDTextArea.d.ts +4 -0
- package/dist-types/design-system/Input/textarea/NativeTextArea.d.ts +4 -0
- package/dist-types/design-system/Input/textarea/TextArea.d.ts +27 -0
- package/dist-types/design-system/Input/textarea/useTextAreaAutoSize.d.ts +22 -0
- package/dist-types/design-system/Input/useInputClearHandler.d.ts +20 -0
- package/dist-types/design-system/Input/useTextFieldAnalytics.d.ts +23 -0
- package/dist-types/design-system/Input/useTextFieldFocusHandler.d.ts +9 -0
- package/dist-types/design-system/Input/useTextFieldKeyHandlers.d.ts +31 -0
- package/dist-types/design-system/Skeleton/GenericSkeleton.d.ts +1 -2
- package/dist-types/design-system/SplitButton/SplitButton.d.ts +1 -1
- package/dist-types/design-system/TypeaheadComboboxV2/hooks/useComboboxState.d.ts +18 -1
- package/dist-types/design-system/TypeaheadComboboxV2/hooks/useComboboxStateProps.d.ts +2 -1
- package/dist-types/design-system/TypeaheadComboboxV2/providers/TypeaheadComboboxContext.d.ts +4 -0
- package/dist-types/design-system/utils/security/url-safety.d.ts +2 -5
- package/dist-types/maybe-mitigate-expensive-selectors/mitigateExpensiveSelectorsMonacoPkgrPlugins.d.ts +1 -1
- package/dist-types/mcp/server.d.ts +3 -0
- package/dist-types/test-utils/rtl/switch.d.ts +1 -1
- package/dist-types/test-utils/rtl/table.d.ts +1 -1
- package/dist-types/theme/_generated/ValidSemanticColors.d.ts +1 -0
- package/package.json +27 -6
- package/processes/process-runner.js +19 -0
- package/processes/spawn-process-runner.js +67 -0
- package/scaffold-agents.md +3 -0
- package/scaffold_tool/src/dependency-installer.js +52 -0
- package/scaffold_tool/src/file-system.js +2 -0
- package/scaffold_tool/src/get-progress-reporter.js +10 -0
- package/scaffold_tool/src/listr-progress-reporter.js +93 -0
- package/scaffold_tool/src/local-main.js +50 -0
- package/scaffold_tool/src/local-package-builder.js +101 -0
- package/scaffold_tool/src/main.js +47 -0
- package/scaffold_tool/src/node-file-system.js +33 -0
- package/scaffold_tool/src/package-manifest.js +40 -0
- package/scaffold_tool/src/progress-reporter.js +2 -0
- package/scaffold_tool/src/project-configurator.js +139 -0
- package/scaffold_tool/src/project-inspector.js +74 -0
- package/scaffold_tool/src/project-templates.js +191 -0
- package/scaffold_tool/src/readline-terminal.js +23 -0
- package/scaffold_tool/src/scaffold-config.js +18 -0
- package/scaffold_tool/src/scaffold-options.js +99 -0
- package/scaffold_tool/src/scaffold-theme.js +33 -0
- package/scaffold_tool/src/scaffold-tool.js +127 -0
- package/scaffold_tool/src/terminal-progress-reporter.js +39 -0
- package/scaffold_tool/src/terminal.js +2 -0
- package/scaffold_tool/src/theme-picker-templates.js +191 -0
- package/scaffold_tool/src/theme-templates.js +157 -0
- package/scaffold_tool/src/themes/base.js +143 -0
- package/scaffold_tool/src/themes/genie-one.js +36 -0
- package/scaffold_tool/src/themes/shadcn.js +135 -0
- package/dist/WizardStepContentWrapper-DfErft8z.js.map +0 -1
- package/dist/index-CUzS-Vjx.js.map +0 -1
- package/dist-types/design-system/Input/Group.d.ts +0 -2
- package/dist-types/design-system/Input/Password.d.ts +0 -3
- package/dist-types/design-system/Input/TextArea.d.ts +0 -4
- package/dist-types/design-system/Input/common.d.ts +0 -25
- package/setup.mjs +0 -586
|
@@ -3,10 +3,11 @@ import isUndefined from 'lodash/isUndefined';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { useRef, useEffect, useMemo, useCallback, useContext, createContext, useState, forwardRef, useLayoutEffect, useImperativeHandle, Children, isValidElement } from 'react';
|
|
5
5
|
import { useTheme, ThemeProvider, css, keyframes, ClassNames, Global, createElement } from '@emotion/react';
|
|
6
|
-
import { ConfigProvider, notification, Collapse, Button as Button$1, Typography as Typography$1, Checkbox as Checkbox$1, Input as Input$2, Select as Select$1, Radio as Radio$1, Layout as Layout$1, Form as Form$1, Pagination as Pagination$1, Table, Dropdown, Tree as Tree$1 } from 'antd';
|
|
6
|
+
import { ConfigProvider, notification, Collapse, Button as Button$1, Typography as Typography$1, Breadcrumb, Checkbox as Checkbox$1, Input as Input$2, Select as Select$1, Radio as Radio$1, Layout as Layout$1, Form as Form$1, Pagination as Pagination$1, Table, Dropdown, Tree as Tree$1 } from 'antd';
|
|
7
7
|
import classnames from 'classnames';
|
|
8
8
|
import { useMergeRefs } from '@floating-ui/react';
|
|
9
9
|
import uniqueId$1 from 'lodash/uniqueId';
|
|
10
|
+
import '@react-aria/breadcrumbs';
|
|
10
11
|
import { format, isBefore, startOfMonth, isAfter, parse, isValid, startOfToday, startOfYesterday, sub, startOfWeek, endOfToday, endOfYesterday, getISOWeekYear, getISOWeek, parseISO, startOfISOWeek } from 'date-fns';
|
|
11
12
|
import * as Popover$1 from '@radix-ui/react-popover';
|
|
12
13
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
@@ -445,6 +446,7 @@ const darkColorList = {
|
|
|
445
446
|
borderAccessible: primitiveColors.grey300,
|
|
446
447
|
borderDanger: primitiveColors.red500,
|
|
447
448
|
borderWarning: primitiveColors.yellow500,
|
|
449
|
+
certified: primitiveColors.blue500,
|
|
448
450
|
codeBackground: primitiveColors.grey650,
|
|
449
451
|
composerBackground: primitiveColors.grey700,
|
|
450
452
|
iconTrending: primitiveColors.orange,
|
|
@@ -532,6 +534,7 @@ const lightColorList = {
|
|
|
532
534
|
borderAccessible: primitiveColors.neutral500,
|
|
533
535
|
borderDanger: primitiveColors.red300,
|
|
534
536
|
borderWarning: primitiveColors.yellow300,
|
|
537
|
+
certified: primitiveColors.blue600,
|
|
535
538
|
codeBackground: 'rgba(82, 82, 82, 0.0800)',
|
|
536
539
|
composerBackground: primitiveColors.white,
|
|
537
540
|
iconTrending: primitiveColors.orange,
|
|
@@ -911,6 +914,7 @@ var ValidSemanticColors = /*#__PURE__*/ function(ValidSemanticColors) {
|
|
|
911
914
|
ValidSemanticColors["BorderAccessible"] = "borderAccessible";
|
|
912
915
|
ValidSemanticColors["BorderDanger"] = "borderDanger";
|
|
913
916
|
ValidSemanticColors["BorderWarning"] = "borderWarning";
|
|
917
|
+
ValidSemanticColors["Certified"] = "certified";
|
|
914
918
|
ValidSemanticColors["CodeBackground"] = "codeBackground";
|
|
915
919
|
ValidSemanticColors["ComposerBackground"] = "composerBackground";
|
|
916
920
|
ValidSemanticColors["IconTrending"] = "iconTrending";
|
|
@@ -1754,7 +1758,7 @@ const DU_BOIS_ENABLE_ANIMATION_CLASSNAME = 'du-bois-enable-animation';
|
|
|
1754
1758
|
* `container` pointing inside this wrapper, so `container.firstChild` / emptiness assertions see the
|
|
1755
1759
|
* component's own output.
|
|
1756
1760
|
*/ const DS_OVERRIDE_TOKENS_WRAPPER_TESTID = 'ds-override-tokens-wrapper';
|
|
1757
|
-
// getAnimationCss is called from every
|
|
1761
|
+
// getAnimationCss is called from every dbui component on every render. It only depends
|
|
1758
1762
|
// on a single boolean and produces a (deep) object literal, so memoize the result at module
|
|
1759
1763
|
// level — at most 2 cache entries. Sharing the same reference across all callers also lets
|
|
1760
1764
|
// Emotion cache the serialized class name.
|
|
@@ -1771,7 +1775,7 @@ const getAnimationCss = memoize((enableAnimation)=>{
|
|
|
1771
1775
|
'&::after': disableAnimationCss,
|
|
1772
1776
|
// Also apply to all child elements with a class that starts with our prefix, except elements
|
|
1773
1777
|
// which must keep their own animation. Mark those elements directly rather than matching an
|
|
1774
|
-
// ancestor scope for every
|
|
1778
|
+
// ancestor scope for every dbui descendant.
|
|
1775
1779
|
[`[class*=du-bois]:not(.${DU_BOIS_ENABLE_ANIMATION_CLASSNAME})`]: {
|
|
1776
1780
|
...disableAnimationCss,
|
|
1777
1781
|
// Also target any pseudo-elements associated with those elements, since these can also be animated.
|
|
@@ -1827,6 +1831,29 @@ function semanticColorsToStyle(semanticColors) {
|
|
|
1827
1831
|
colorOverrideStyleCache.set(semanticColors, style);
|
|
1828
1832
|
return style;
|
|
1829
1833
|
}
|
|
1834
|
+
const FONT_SIZE_SCALE = {
|
|
1835
|
+
fontSizeSm: 'sm',
|
|
1836
|
+
fontSizeBase: 'base',
|
|
1837
|
+
fontSizeMd: 'md',
|
|
1838
|
+
fontSizeLg: 'lg',
|
|
1839
|
+
fontSizeXl: 'xl'
|
|
1840
|
+
};
|
|
1841
|
+
const fontSizeOverrideStyleCache = new WeakMap();
|
|
1842
|
+
// px, not rem: the token is a bare var substitution, so a px value reproduces the Emotion
|
|
1843
|
+
// font-size regardless of the root font size.
|
|
1844
|
+
function fontSizesToStyle(fontSizes) {
|
|
1845
|
+
const cached = fontSizeOverrideStyleCache.get(fontSizes);
|
|
1846
|
+
if (cached) return cached;
|
|
1847
|
+
const style = {};
|
|
1848
|
+
for (const [key, scale] of Object.entries(FONT_SIZE_SCALE)){
|
|
1849
|
+
const value = fontSizes[key];
|
|
1850
|
+
if (value !== undefined) {
|
|
1851
|
+
style[`--db-font-size-${scale}`] = `${value}px`;
|
|
1852
|
+
}
|
|
1853
|
+
}
|
|
1854
|
+
fontSizeOverrideStyleCache.set(fontSizes, style);
|
|
1855
|
+
return style;
|
|
1856
|
+
}
|
|
1830
1857
|
/**
|
|
1831
1858
|
* Returns the inline style that re-declares the consumer's design-token overrides as `--db-*` custom
|
|
1832
1859
|
* properties, or `undefined` when none are set. It merges the `semanticColors` override (emitted as
|
|
@@ -1853,7 +1880,7 @@ function semanticColorsToStyle(semanticColors) {
|
|
|
1853
1880
|
]);
|
|
1854
1881
|
}
|
|
1855
1882
|
/**
|
|
1856
|
-
* Internal DOM-scope primitive: a `display: contents` element that (re-)establishes a
|
|
1883
|
+
* Internal DOM-scope primitive: a `display: contents` element that (re-)establishes a dbui token
|
|
1857
1884
|
* scope on a DOM subtree — it carries the `du-bois-light`/`-dark` class and stamps `--db-*` overrides
|
|
1858
1885
|
* that native (CSS-variable) components below inherit. It reaches in-tree descendants only; portaled
|
|
1859
1886
|
* surfaces escape the DOM subtree. Consumers use the exported `DesignTokenScope` below (which also
|
|
@@ -4632,6 +4659,54 @@ const ChartLineIcon = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
|
4632
4659
|
});
|
|
4633
4660
|
ChartLineIcon.displayName = "ChartLineIcon";
|
|
4634
4661
|
|
|
4662
|
+
function SvgChatNewTabIcon(props) {
|
|
4663
|
+
return /*#__PURE__*/ jsx("svg", {
|
|
4664
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4665
|
+
width: "1em",
|
|
4666
|
+
height: "1em",
|
|
4667
|
+
fill: "none",
|
|
4668
|
+
viewBox: "0 0 16 16",
|
|
4669
|
+
...props,
|
|
4670
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
4671
|
+
fill: "currentColor",
|
|
4672
|
+
fillRule: "evenodd",
|
|
4673
|
+
d: "M11.015 4.235h-4.25v1.5h2.439l-4.97 4.97 1.061 1.06 4.97-4.97v2.44h1.5v-5z",
|
|
4674
|
+
clipRule: "evenodd"
|
|
4675
|
+
})
|
|
4676
|
+
});
|
|
4677
|
+
}
|
|
4678
|
+
const ChatNewTabIcon = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
4679
|
+
return /*#__PURE__*/ jsx(Icon, {
|
|
4680
|
+
ref: forwardedRef,
|
|
4681
|
+
...props,
|
|
4682
|
+
component: SvgChatNewTabIcon
|
|
4683
|
+
});
|
|
4684
|
+
});
|
|
4685
|
+
ChatNewTabIcon.displayName = "ChatNewTabIcon";
|
|
4686
|
+
|
|
4687
|
+
function SvgChatSpinnerIcon(props) {
|
|
4688
|
+
return /*#__PURE__*/ jsx("svg", {
|
|
4689
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4690
|
+
width: "1em",
|
|
4691
|
+
height: "1em",
|
|
4692
|
+
fill: "none",
|
|
4693
|
+
viewBox: "0 0 16 16",
|
|
4694
|
+
...props,
|
|
4695
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
4696
|
+
fill: "currentColor",
|
|
4697
|
+
d: "M7.5 4.5a3 3 0 0 0-3 3s0 .755-.75.755S3 7.5 3 7.5A4.5 4.5 0 0 1 7.5 3s.746 0 .746.75-.746.75-.746.75"
|
|
4698
|
+
})
|
|
4699
|
+
});
|
|
4700
|
+
}
|
|
4701
|
+
const ChatSpinnerIcon = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
4702
|
+
return /*#__PURE__*/ jsx(Icon, {
|
|
4703
|
+
ref: forwardedRef,
|
|
4704
|
+
...props,
|
|
4705
|
+
component: SvgChatSpinnerIcon
|
|
4706
|
+
});
|
|
4707
|
+
});
|
|
4708
|
+
ChatSpinnerIcon.displayName = "ChatSpinnerIcon";
|
|
4709
|
+
|
|
4635
4710
|
function SvgCheckCircleBadgeIcon(props) {
|
|
4636
4711
|
return /*#__PURE__*/ jsxs("svg", {
|
|
4637
4712
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -17377,7 +17452,7 @@ const FormContextResetBoundary = ({ children })=>/*#__PURE__*/ jsx(FormContext.P
|
|
|
17377
17452
|
const formRef = useRef(null);
|
|
17378
17453
|
const eventRef = useRef(null);
|
|
17379
17454
|
if (formContext.componentId !== undefined) {
|
|
17380
|
-
throw new Error('
|
|
17455
|
+
throw new Error('dbui Form component cannot be nested');
|
|
17381
17456
|
}
|
|
17382
17457
|
const memoizedAnalyticsEvents = useMemo(()=>analyticsEvents, [
|
|
17383
17458
|
analyticsEvents
|
|
@@ -17411,7 +17486,7 @@ const FormContextResetBoundary = ({ children })=>/*#__PURE__*/ jsx(FormContext.P
|
|
|
17411
17486
|
// useLayoutEffect so the guard fires synchronously after DOM commit, before paint
|
|
17412
17487
|
useLayoutEffect(()=>{
|
|
17413
17488
|
if (formRef.current?.parentElement?.closest('form')) {
|
|
17414
|
-
throw new Error('
|
|
17489
|
+
throw new Error('dbui Form: nested <form> elements produce invalid HTML. FormContextResetBoundary should only be used with React portals.');
|
|
17415
17490
|
}
|
|
17416
17491
|
}, []);
|
|
17417
17492
|
const contextValue = useMemo(()=>({
|
|
@@ -17440,7 +17515,7 @@ const FormContextResetBoundary = ({ children })=>/*#__PURE__*/ jsx(FormContext.P
|
|
|
17440
17515
|
});
|
|
17441
17516
|
};
|
|
17442
17517
|
/**
|
|
17443
|
-
* Form is a wrapper around the Form
|
|
17518
|
+
* Form is a wrapper around the Form dbui component to better integrate with React Hook Form and to track the active
|
|
17444
17519
|
* element before the form is submitted. This is useful for analytics purposes to know what component was last focused
|
|
17445
17520
|
* when the form was sent for submission, along with being able to pass in the initial and final values of the form.
|
|
17446
17521
|
*
|
|
@@ -17585,7 +17660,7 @@ var ShapeTokens = /*#__PURE__*/ function(ShapeTokens) {
|
|
|
17585
17660
|
|
|
17586
17661
|
const token = (token, fallback)=>`var(${token}, ${typeof fallback === 'number' ? `${fallback}px` : fallback})`;
|
|
17587
17662
|
|
|
17588
|
-
const SMALL_BUTTON_HEIGHT$
|
|
17663
|
+
const SMALL_BUTTON_HEIGHT$1 = 24;
|
|
17589
17664
|
const ICON_SELECTOR$1 = `${getIconClassName()}`;
|
|
17590
17665
|
// Hoisted to module level so the default reference is stable across renders and instances.
|
|
17591
17666
|
// Without this, the default `analyticsEvents = [...]` literal would be a fresh array on every
|
|
@@ -17685,10 +17760,10 @@ const getButtonEmotionStyles = ({ theme, classNamePrefix, loading, withIcon, onl
|
|
|
17685
17760
|
width: theme.general.heightSm
|
|
17686
17761
|
},
|
|
17687
17762
|
...size === 'small' && {
|
|
17688
|
-
height: SMALL_BUTTON_HEIGHT$
|
|
17763
|
+
height: SMALL_BUTTON_HEIGHT$1,
|
|
17689
17764
|
lineHeight: theme.typography.lineHeightBase,
|
|
17690
17765
|
...(onlyIcon || forceIconStyles) && {
|
|
17691
|
-
width: SMALL_BUTTON_HEIGHT$
|
|
17766
|
+
width: SMALL_BUTTON_HEIGHT$1,
|
|
17692
17767
|
paddingTop: 0,
|
|
17693
17768
|
paddingBottom: 0,
|
|
17694
17769
|
verticalAlign: 'middle'
|
|
@@ -18234,7 +18309,7 @@ const Button = /* #__PURE__ */ (()=>{
|
|
|
18234
18309
|
})();
|
|
18235
18310
|
|
|
18236
18311
|
/**
|
|
18237
|
-
* Emotion selector that matches a
|
|
18312
|
+
* Emotion selector that matches a dbui button by BOTH its legacy AntD-prefixed class
|
|
18238
18313
|
* (`.<clsNamePrefix>-btn…`) and the NativeButton class (`.db-btn…`). Style overrides keyed off the
|
|
18239
18314
|
* button class must match `.db-btn` too, so they survive the migration off the AntD-prefixed
|
|
18240
18315
|
* `Button` onto `NativeButton`.
|
|
@@ -18852,32 +18927,31 @@ const wrapperStyles = /*#__PURE__*/ css({
|
|
|
18852
18927
|
width: '100%',
|
|
18853
18928
|
height: '100%'
|
|
18854
18929
|
});
|
|
18855
|
-
const overlayStyles = (
|
|
18930
|
+
const overlayStyles = (zIndex, maskStyle)=>// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
18856
18931
|
// @ts-ignore [FEINF-3177] TODO: fix to work with React 18 types
|
|
18857
18932
|
/*#__PURE__*/ css({
|
|
18858
18933
|
position: 'fixed',
|
|
18859
18934
|
inset: 0,
|
|
18860
|
-
backgroundColor:
|
|
18935
|
+
backgroundColor: 'var(--db-modal-overlay-surface)',
|
|
18861
18936
|
zIndex,
|
|
18862
|
-
borderRadius:
|
|
18937
|
+
borderRadius: 'var(--db-modal-overlay-border-radius)',
|
|
18863
18938
|
pointerEvents: 'none',
|
|
18864
18939
|
width: '100%',
|
|
18865
18940
|
height: '100%',
|
|
18866
18941
|
...maskStyle
|
|
18867
18942
|
});
|
|
18868
18943
|
const modalContentStyles = (theme, maxedOutHeight)=>{
|
|
18869
|
-
const MODAL_PADDING = theme.spacing.lg;
|
|
18870
18944
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
18871
18945
|
// @ts-ignore [FEINF-3177] TODO: fix to work with React 18 types
|
|
18872
18946
|
return /*#__PURE__*/ css({
|
|
18873
|
-
backgroundColor:
|
|
18947
|
+
backgroundColor: 'var(--db-modal-surface)',
|
|
18874
18948
|
maxHeight: '90vh',
|
|
18875
18949
|
height: maxedOutHeight ? '90vh' : undefined,
|
|
18876
|
-
paddingBottom:
|
|
18950
|
+
paddingBottom: 'var(--db-modal-content-padding-bottom)',
|
|
18877
18951
|
display: 'flex',
|
|
18878
18952
|
flexDirection: 'column',
|
|
18879
|
-
borderRadius:
|
|
18880
|
-
boxShadow:
|
|
18953
|
+
borderRadius: 'var(--db-modal-border-radius)',
|
|
18954
|
+
boxShadow: 'var(--db-modal-shadow)',
|
|
18881
18955
|
overflow: 'auto',
|
|
18882
18956
|
...getDarkModePortalStyles(theme),
|
|
18883
18957
|
transform: 'unset !important',
|
|
@@ -18890,22 +18964,19 @@ const modalContentStyles = (theme, maxedOutHeight)=>{
|
|
|
18890
18964
|
pointerEvents: 'auto'
|
|
18891
18965
|
});
|
|
18892
18966
|
};
|
|
18893
|
-
const modalHeaderStyles =
|
|
18894
|
-
|
|
18895
|
-
|
|
18896
|
-
|
|
18897
|
-
|
|
18898
|
-
|
|
18899
|
-
|
|
18900
|
-
|
|
18901
|
-
|
|
18902
|
-
|
|
18967
|
+
const modalHeaderStyles = /*#__PURE__*/ css({
|
|
18968
|
+
display: 'flex',
|
|
18969
|
+
background: 'transparent',
|
|
18970
|
+
paddingTop: 'var(--db-modal-header-padding-top)',
|
|
18971
|
+
paddingLeft: 'var(--db-modal-header-padding-left)',
|
|
18972
|
+
paddingRight: 'var(--db-modal-header-padding-right)',
|
|
18973
|
+
paddingBottom: 'var(--db-modal-header-padding-bottom)'
|
|
18974
|
+
});
|
|
18975
|
+
// fontSize/lineHeight/fontWeight are owned by Typography.Title (higher specificity); don't set them here.
|
|
18976
|
+
const modalTitleStyles = (truncated, closable)=>{
|
|
18903
18977
|
const headerHeight = 64;
|
|
18904
18978
|
return /*#__PURE__*/ css({
|
|
18905
|
-
|
|
18906
|
-
lineHeight: compactTitle ? theme.typography.lineHeightMd : theme.typography.lineHeightXl,
|
|
18907
|
-
fontWeight: theme.typography.typographyBoldFontWeight,
|
|
18908
|
-
paddingRight: closable ? MODAL_PADDING : theme.spacing.sm,
|
|
18979
|
+
paddingRight: closable ? 'var(--db-modal-title-padding-right)' : 'var(--db-modal-title-padding-right-non-closable)',
|
|
18909
18980
|
minHeight: headerHeight / 2,
|
|
18910
18981
|
display: 'flex',
|
|
18911
18982
|
overflowWrap: 'anywhere',
|
|
@@ -18923,29 +18994,26 @@ const modalTitleStyles = (theme, truncated, closable, compactTitle)=>{
|
|
|
18923
18994
|
});
|
|
18924
18995
|
};
|
|
18925
18996
|
const modalBodyStyles = (theme, hasFooter, isScrollable)=>{
|
|
18926
|
-
const MODAL_PADDING = theme.spacing.lg;
|
|
18927
18997
|
const headerHeight = 64;
|
|
18928
18998
|
const footerHeight = hasFooter ? 52 : 0;
|
|
18929
|
-
const
|
|
18930
|
-
const bodyMaxHeight = `calc(90vh - ${headerHeight}px - ${footerHeight}px - ${MODAL_PADDING}px)`;
|
|
18999
|
+
const bodyMaxHeight = `calc(90vh - ${headerHeight}px - ${footerHeight}px - var(--db-modal-content-padding-bottom))`;
|
|
18931
19000
|
return /*#__PURE__*/ css({
|
|
18932
19001
|
overflowY: 'auto',
|
|
18933
19002
|
maxHeight: bodyMaxHeight,
|
|
18934
|
-
paddingLeft:
|
|
18935
|
-
paddingRight:
|
|
18936
|
-
paddingTop:
|
|
18937
|
-
paddingBottom:
|
|
19003
|
+
paddingLeft: 'var(--db-modal-body-padding-horizontal)',
|
|
19004
|
+
paddingRight: 'var(--db-modal-body-padding-horizontal)',
|
|
19005
|
+
paddingTop: 'var(--db-modal-body-padding-vertical)',
|
|
19006
|
+
paddingBottom: 'var(--db-modal-body-padding-vertical)',
|
|
18938
19007
|
// The modal portals to `document.body`, outside the theme-scope ancestor, so no global rule sets
|
|
18939
19008
|
// body text size — set it explicitly.
|
|
18940
|
-
fontSize:
|
|
19009
|
+
fontSize: 'var(--db-modal-body-font-size)',
|
|
19010
|
+
// No v2 line-height token. TODO(FEINF-6557): adopt one when it lands.
|
|
18941
19011
|
lineHeight: theme.typography.lineHeightBase,
|
|
18942
19012
|
overflowWrap: 'break-word',
|
|
18943
19013
|
...isScrollable && getShadowScrollStyles(theme)
|
|
18944
19014
|
});
|
|
18945
19015
|
};
|
|
18946
|
-
const modalFooterStyles = (
|
|
18947
|
-
const MODAL_PADDING = theme.spacing.lg;
|
|
18948
|
-
const CONTENT_BUFFER = 8;
|
|
19016
|
+
const modalFooterStyles = (prefixCls, hasCustomFooter)=>{
|
|
18949
19017
|
const footerHeight = 52;
|
|
18950
19018
|
return /*#__PURE__*/ css({
|
|
18951
19019
|
...hasCustomFooter ? {
|
|
@@ -18959,32 +19027,32 @@ const modalFooterStyles = (theme, prefixCls, hasCustomFooter)=>{
|
|
|
18959
19027
|
// Right-align footer buttons. For a custom footer (`display: block`) this is what aligns the
|
|
18960
19028
|
// inline-block buttons.
|
|
18961
19029
|
textAlign: 'right',
|
|
18962
|
-
//
|
|
19030
|
+
// Gap between adjacent footer buttons. Descendant selector so it reaches buttons that a
|
|
18963
19031
|
// custom footer nests inside wrapper elements, not just the footer's direct children.
|
|
18964
19032
|
'& button + button': {
|
|
18965
|
-
marginLeft:
|
|
19033
|
+
marginLeft: 'var(--db-modal-footer-button-gap)'
|
|
18966
19034
|
},
|
|
18967
19035
|
height: footerHeight,
|
|
18968
|
-
paddingTop:
|
|
18969
|
-
paddingLeft:
|
|
18970
|
-
paddingRight:
|
|
19036
|
+
paddingTop: 'var(--db-modal-footer-padding-top)',
|
|
19037
|
+
paddingLeft: 'var(--db-modal-footer-padding-horizontal)',
|
|
19038
|
+
paddingRight: 'var(--db-modal-footer-padding-horizontal)',
|
|
18971
19039
|
marginTop: 'auto',
|
|
18972
19040
|
[getBtnClassName(prefixCls, ':nth-of-type(2)', `.${prefixCls}-dropdown-button > `)]: {
|
|
18973
19041
|
marginLeft: -1
|
|
18974
19042
|
}
|
|
18975
19043
|
});
|
|
18976
19044
|
};
|
|
18977
|
-
// Module-level caches. RadixModal
|
|
18978
|
-
//
|
|
19045
|
+
// Module-level caches. RadixModal builds many style objects per render, each keyed by a small set
|
|
19046
|
+
// of inputs, so re-renders with unchanged inputs reuse the object. Same pattern as
|
|
19047
|
+
// getShadowScrollStylesMemoized in css-utils.tsx.
|
|
18979
19048
|
const getMemoizedModalContainerStyles = memoize((theme)=>modalContainerStyles(theme));
|
|
18980
19049
|
const getMemoizedModalContentStyles = memoize((theme, maxedOutHeight)=>modalContentStyles(theme, maxedOutHeight), (theme, maxedOutHeight)=>`${themeMemoKey(theme)}|${maxedOutHeight}`);
|
|
18981
|
-
const
|
|
18982
|
-
const getMemoizedModalTitleStyles = memoize((theme, truncated, closable, compactTitle)=>modalTitleStyles(theme, truncated, closable, compactTitle), (theme, truncated, closable, compactTitle)=>`${themeMemoKey(theme)}|${truncated}|${closable}|${compactTitle}`);
|
|
19050
|
+
const getMemoizedModalTitleStyles = memoize((truncated, closable)=>modalTitleStyles(truncated, closable), (truncated, closable)=>`${truncated}|${closable}`);
|
|
18983
19051
|
const getMemoizedModalBodyStyles = memoize((theme, hasFooter, isScrollable)=>modalBodyStyles(theme, hasFooter, isScrollable), (theme, hasFooter, isScrollable)=>`${themeMemoKey(theme)}|${hasFooter}|${isScrollable}`);
|
|
18984
|
-
const getMemoizedModalFooterStyles = memoize((
|
|
18985
|
-
// Overlay styles depend on
|
|
18986
|
-
// object per
|
|
18987
|
-
const getMemoizedDefaultOverlayStyles = memoize((
|
|
19052
|
+
const getMemoizedModalFooterStyles = memoize((prefixCls, hasCustomFooter)=>modalFooterStyles(prefixCls, hasCustomFooter), (prefixCls, hasCustomFooter)=>`${prefixCls}|${hasCustomFooter}`);
|
|
19053
|
+
// Overlay styles depend on zIndex and an optional maskStyle. When no maskStyle override, share one
|
|
19054
|
+
// object per zIndex. When override is present, fall back to per-instance.
|
|
19055
|
+
const getMemoizedDefaultOverlayStyles = memoize((zIndex)=>overlayStyles(zIndex, undefined), (zIndex)=>`${zIndex}`);
|
|
18988
19056
|
// Static — never depends on theme.
|
|
18989
19057
|
const MODAL_FIXED_CENTER_CSS = /*#__PURE__*/ css({
|
|
18990
19058
|
position: 'fixed',
|
|
@@ -19242,15 +19310,16 @@ function ModalInternal({ componentId, analyticsEvents = [
|
|
|
19242
19310
|
// typographic properties aren't picked up from anywhere else. `fontVariant`/`fontFeatureSettings`
|
|
19243
19311
|
// (tabular figures) are the load-bearing ones — without them, digits in modal body text (numbered
|
|
19244
19312
|
// lists, dates, IDs) render with proportional figures and shift.
|
|
19245
|
-
color:
|
|
19246
|
-
fontSize:
|
|
19313
|
+
color: 'var(--db-modal-text)',
|
|
19314
|
+
fontSize: 'var(--db-modal-body-font-size)',
|
|
19315
|
+
// No v2 line-height token. TODO(FEINF-6557): adopt one when it lands.
|
|
19247
19316
|
lineHeight: theme.typography.lineHeightBase,
|
|
19248
19317
|
fontVariant: 'tabular-nums',
|
|
19249
19318
|
fontFeatureSettings: "'tnum'",
|
|
19250
19319
|
listStyle: 'none',
|
|
19251
19320
|
'@media (max-width: 767px)': {
|
|
19252
19321
|
maxWidth: 'calc(100vw - 16px)',
|
|
19253
|
-
margin:
|
|
19322
|
+
margin: 'var(--db-modal-mobile-margin) auto'
|
|
19254
19323
|
}
|
|
19255
19324
|
}),
|
|
19256
19325
|
className: `${classNamePrefix}-modal`,
|
|
@@ -19273,7 +19342,7 @@ function ModalInternal({ componentId, analyticsEvents = [
|
|
|
19273
19342
|
...dangerouslySetAntdProps?.wrapProps,
|
|
19274
19343
|
children: [
|
|
19275
19344
|
/*#__PURE__*/ jsx("div", {
|
|
19276
|
-
css:
|
|
19345
|
+
css: modalHeaderStyles,
|
|
19277
19346
|
className: `${classNamePrefix}-modal-header`,
|
|
19278
19347
|
children: /*#__PURE__*/ jsx(DialogPrimitive.Title, {
|
|
19279
19348
|
asChild: true,
|
|
@@ -19281,7 +19350,7 @@ function ModalInternal({ componentId, analyticsEvents = [
|
|
|
19281
19350
|
withoutMargins: true,
|
|
19282
19351
|
level: compactTitle ? 4 : 2,
|
|
19283
19352
|
className: `${classNamePrefix}-modal-title`,
|
|
19284
|
-
css: getMemoizedModalTitleStyles(
|
|
19353
|
+
css: getMemoizedModalTitleStyles(Boolean(truncateTitle), dangerouslySetAntdProps?.closable === undefined || Boolean(dangerouslySetAntdProps?.closable)),
|
|
19285
19354
|
id: `modal-${uuid}`,
|
|
19286
19355
|
// @ts-expect-error - used to prevent auto focusing the first focusable element when the modal is opened -- mimic antd behavior
|
|
19287
19356
|
autoFocus: preventAutoFocus ? true : undefined,
|
|
@@ -19307,7 +19376,7 @@ function ModalInternal({ componentId, analyticsEvents = [
|
|
|
19307
19376
|
children: augmentedChildren
|
|
19308
19377
|
}),
|
|
19309
19378
|
footer !== null && /*#__PURE__*/ jsx("div", {
|
|
19310
|
-
css: getMemoizedModalFooterStyles(
|
|
19379
|
+
css: getMemoizedModalFooterStyles(classNamePrefix, footer !== null),
|
|
19311
19380
|
className: `${classNamePrefix}-modal-footer`,
|
|
19312
19381
|
children: footer ?? /*#__PURE__*/ jsx(DefaultFooter, {
|
|
19313
19382
|
componentId: componentId,
|
|
@@ -19337,8 +19406,8 @@ function ModalInternal({ componentId, analyticsEvents = [
|
|
|
19337
19406
|
shouldStartInteraction: shouldStartInteraction,
|
|
19338
19407
|
css: /*#__PURE__*/ css({
|
|
19339
19408
|
position: 'absolute',
|
|
19340
|
-
top:
|
|
19341
|
-
right:
|
|
19409
|
+
top: 'var(--db-modal-close-offset)',
|
|
19410
|
+
right: 'var(--db-modal-close-offset)'
|
|
19342
19411
|
})
|
|
19343
19412
|
})
|
|
19344
19413
|
}) : null
|
|
@@ -19368,7 +19437,7 @@ function ModalInternal({ componentId, analyticsEvents = [
|
|
|
19368
19437
|
},
|
|
19369
19438
|
children: dangerouslySetAntdProps?.mask !== false ? /*#__PURE__*/ jsx(DialogPrimitive.Overlay, {
|
|
19370
19439
|
css: [
|
|
19371
|
-
dangerouslySetAntdProps?.maskStyle ? overlayStyles(
|
|
19440
|
+
dangerouslySetAntdProps?.maskStyle ? overlayStyles(resolvedZIndex, dangerouslySetAntdProps.maskStyle) : getMemoizedDefaultOverlayStyles(resolvedZIndex)
|
|
19372
19441
|
],
|
|
19373
19442
|
children: renderedDialogContent
|
|
19374
19443
|
}) : /*#__PURE__*/ jsx(Fragment, {
|
|
@@ -19392,7 +19461,6 @@ function ModalInternal({ componentId, analyticsEvents = [
|
|
|
19392
19461
|
});
|
|
19393
19462
|
}
|
|
19394
19463
|
function DangerModal(props) {
|
|
19395
|
-
const { theme } = useDesignSystemTheme();
|
|
19396
19464
|
const { title, onCancel, onOk, cancelText, okText, okButtonProps, cancelButtonProps, confirmLoading, ...restProps } = props;
|
|
19397
19465
|
const iconSize = 18;
|
|
19398
19466
|
const iconFontSize = 18;
|
|
@@ -19405,7 +19473,7 @@ function DangerModal(props) {
|
|
|
19405
19473
|
children: [
|
|
19406
19474
|
/*#__PURE__*/ jsx(DangerIcon, {
|
|
19407
19475
|
css: /*#__PURE__*/ css({
|
|
19408
|
-
color:
|
|
19476
|
+
color: 'var(--db-modal-danger-icon)',
|
|
19409
19477
|
left: 2,
|
|
19410
19478
|
height: iconSize,
|
|
19411
19479
|
width: iconSize,
|
|
@@ -19740,7 +19808,7 @@ const getMemoizedTooltipStyles = memoize(getTooltipStyles, (theme, clsPrefix)=>`
|
|
|
19740
19808
|
* composes a ref onto whatever it renders, so this has to forward it on to the content.
|
|
19741
19809
|
*/ const TooltipContent = /*#__PURE__*/ forwardRef(function TooltipContent({ content, side, sideOffset, align, maxWidth, componentId, analyticsEvents, zIndex, shouldReportViewRef, ...props }, ref) {
|
|
19742
19810
|
const { theme, classNamePrefix } = useDesignSystemTheme();
|
|
19743
|
-
// The Radix portal mounts on the body, outside any
|
|
19811
|
+
// The Radix portal mounts on the body, outside any dbui scope, so re-establish the token scope
|
|
19744
19812
|
// here the way other portaled surfaces (Modal, Drawer, DropdownMenu, …) do: the theme class carries
|
|
19745
19813
|
// the base `--db-*` tokens and the override style re-declares any consumer overrides on top.
|
|
19746
19814
|
const themeClass = useDuboisThemeClass();
|
|
@@ -20067,6 +20135,59 @@ const Banner = (props)=>{
|
|
|
20067
20135
|
});
|
|
20068
20136
|
};
|
|
20069
20137
|
|
|
20138
|
+
const AntDBreadcrumbWithChildren = Breadcrumb;
|
|
20139
|
+
const AntDBreadcrumbItem = AntDBreadcrumbWithChildren.Item;
|
|
20140
|
+
const AntDBreadcrumbSeparator = AntDBreadcrumbWithChildren.Separator;
|
|
20141
|
+
function AntDBreadcrumbInternal({ dangerouslySetAntdProps, includeTrailingCaret = true, separator, useLegacyBreadcrumb: _useLegacyBreadcrumb, ...props }) {
|
|
20142
|
+
const { theme, classNamePrefix } = useDesignSystemTheme();
|
|
20143
|
+
const separatorClass = `.${classNamePrefix}-breadcrumb-separator`;
|
|
20144
|
+
const styles = /*#__PURE__*/ css({
|
|
20145
|
+
'a, span:last-child a': {
|
|
20146
|
+
color: theme.colors.actionLinkDefault,
|
|
20147
|
+
':hover, :focus': {
|
|
20148
|
+
color: theme.colors.actionLinkHover
|
|
20149
|
+
}
|
|
20150
|
+
},
|
|
20151
|
+
a: {
|
|
20152
|
+
'&:focus-visible': {
|
|
20153
|
+
outlineColor: `${theme.colors.actionDefaultBorderFocus} !important`,
|
|
20154
|
+
outlineStyle: 'auto !important'
|
|
20155
|
+
}
|
|
20156
|
+
},
|
|
20157
|
+
[separatorClass]: {
|
|
20158
|
+
fontSize: theme.general.iconFontSize,
|
|
20159
|
+
[`& :is(${getIconClassName()})`]: {
|
|
20160
|
+
fontSize: theme.typography.fontSizeBase
|
|
20161
|
+
}
|
|
20162
|
+
},
|
|
20163
|
+
[`& :is(${getIconClassName()})`]: {
|
|
20164
|
+
fontSize: theme.typography.fontSizeBase
|
|
20165
|
+
},
|
|
20166
|
+
'& > span': {
|
|
20167
|
+
display: 'inline-flex',
|
|
20168
|
+
alignItems: 'center'
|
|
20169
|
+
}
|
|
20170
|
+
});
|
|
20171
|
+
const hasDeprecatedSeparator = dangerouslySetAntdProps !== undefined && Object.prototype.hasOwnProperty.call(dangerouslySetAntdProps, 'separator');
|
|
20172
|
+
const { separator: _deprecatedSeparator, ...deprecatedAntdProps } = dangerouslySetAntdProps ?? {};
|
|
20173
|
+
const separatorNode = separator !== undefined ? separator : hasDeprecatedSeparator ? dangerouslySetAntdProps.separator : /*#__PURE__*/ jsx(ChevronRightIcon, {});
|
|
20174
|
+
return /*#__PURE__*/ jsx(DesignSystemAntDConfigProvider, {
|
|
20175
|
+
children: /*#__PURE__*/ jsxs(AntDBreadcrumbWithChildren, {
|
|
20176
|
+
...addDebugOutlineIfEnabled(),
|
|
20177
|
+
...deprecatedAntdProps,
|
|
20178
|
+
separator: separatorNode,
|
|
20179
|
+
...props,
|
|
20180
|
+
css: /*#__PURE__*/ css(getAnimationCss(theme.options.enableAnimation), styles),
|
|
20181
|
+
children: [
|
|
20182
|
+
props.children,
|
|
20183
|
+
includeTrailingCaret && props.children && /*#__PURE__*/ jsx(AntDBreadcrumbItem, {
|
|
20184
|
+
children: " "
|
|
20185
|
+
})
|
|
20186
|
+
]
|
|
20187
|
+
})
|
|
20188
|
+
});
|
|
20189
|
+
}
|
|
20190
|
+
|
|
20070
20191
|
// This is a very simple PRNG that is seeded (so that the output is deterministic).
|
|
20071
20192
|
// We need this in order to produce a random ragged edge for the table skeleton.
|
|
20072
20193
|
function pseudoRandomNumberGeneratorFromSeed(seed) {
|
|
@@ -20818,7 +20939,7 @@ const NativeCheckboxGroup = /*#__PURE__*/ forwardRef(function NativeCheckboxGrou
|
|
|
20818
20939
|
});
|
|
20819
20940
|
});
|
|
20820
20941
|
|
|
20821
|
-
const ROOT_CLASS$
|
|
20942
|
+
const ROOT_CLASS$2 = 'db-checkbox';
|
|
20822
20943
|
// The checkbox's own <input> carries this class so CSS targets it specifically
|
|
20823
20944
|
// rather than any `input` descendant — a consumer may render an inline <input>
|
|
20824
20945
|
// (e.g. a number field) inside the label children, and a bare `input` selector
|
|
@@ -20924,7 +21045,7 @@ disabled: htmlDisabledProp, id, ...restProps }, ref) {
|
|
|
20924
21045
|
const isIndeterminate = effectiveChecked === null;
|
|
20925
21046
|
// Inherits the `--db-color-*` scope (theme-class + consumer override) from the DesignSystemProvider
|
|
20926
21047
|
// wrapper; no self-scoped theme class, so a consumer override set on that wrapper reaches here.
|
|
20927
|
-
const rootClassName = classnames(ROOT_CLASS$
|
|
21048
|
+
const rootClassName = classnames(ROOT_CLASS$2, className);
|
|
20928
21049
|
// Skip `checked` when uncontrolled (avoids React's controlled-vs-uncontrolled warning when
|
|
20929
21050
|
// a `defaultChecked` is also passed). Indeterminate drives controlled mode with checked=false.
|
|
20930
21051
|
const checkedProp = isIndeterminate ? false : effectiveChecked;
|
|
@@ -21017,13 +21138,13 @@ const Checkbox = CheckboxNamespace;
|
|
|
21017
21138
|
// since these will be exposed in the library's exports.
|
|
21018
21139
|
const __INTERNAL_DO_NOT_USE__Group = CheckboxGroup;
|
|
21019
21140
|
|
|
21020
|
-
const metaTextStyles = (
|
|
21021
|
-
|
|
21022
|
-
|
|
21023
|
-
|
|
21024
|
-
|
|
21025
|
-
|
|
21026
|
-
|
|
21141
|
+
const metaTextStyles = /*#__PURE__*/ css({
|
|
21142
|
+
color: 'var(--db-menu-meta-text)',
|
|
21143
|
+
fontSize: 'var(--db-menu-meta-font-size)',
|
|
21144
|
+
'[data-disabled] &': {
|
|
21145
|
+
color: 'var(--db-menu-item-text-disabled)'
|
|
21146
|
+
}
|
|
21147
|
+
});
|
|
21027
21148
|
const HintColumn = /*#__PURE__*/ forwardRef(function HintColumn({ children, ...props }, ref) {
|
|
21028
21149
|
return /*#__PURE__*/ jsx("div", {
|
|
21029
21150
|
ref: ref,
|
|
@@ -21111,13 +21232,13 @@ const handleKeyboardNavigation = (e)=>{
|
|
|
21111
21232
|
}
|
|
21112
21233
|
};
|
|
21113
21234
|
|
|
21114
|
-
const infoIconStyles = (
|
|
21115
|
-
|
|
21116
|
-
|
|
21117
|
-
|
|
21118
|
-
|
|
21119
|
-
|
|
21120
|
-
const getNewChildren = (children, props, disabledReason, // Supplied by the menu component so the tooltip renders above its content: the
|
|
21235
|
+
const infoIconStyles = /*#__PURE__*/ css({
|
|
21236
|
+
display: 'inline-flex',
|
|
21237
|
+
paddingLeft: 'var(--db-menu-info-icon-padding-start)',
|
|
21238
|
+
color: 'var(--db-menu-info-icon-text)',
|
|
21239
|
+
pointerEvents: 'all'
|
|
21240
|
+
});
|
|
21241
|
+
const getNewChildren = (children, props, disabledReason, // Supplied by the menu component so the tooltip renders above its content: the dbui Tooltip
|
|
21121
21242
|
// portals to document.body at zIndexBase + 70 (~1070), which is below the menu's own z-index, so
|
|
21122
21243
|
// without this it renders behind the open menu.
|
|
21123
21244
|
zIndex)=>{
|
|
@@ -21129,7 +21250,7 @@ zIndex)=>{
|
|
|
21129
21250
|
zIndex: zIndex,
|
|
21130
21251
|
children: /*#__PURE__*/ jsx("span", {
|
|
21131
21252
|
"data-disabled-tooltip": true,
|
|
21132
|
-
css:
|
|
21253
|
+
css: infoIconStyles,
|
|
21133
21254
|
onClick: (e)=>{
|
|
21134
21255
|
if (props.disabled) {
|
|
21135
21256
|
e.stopPropagation();
|
|
@@ -21393,10 +21514,10 @@ const Item$3 = /*#__PURE__*/ forwardRef(function Item({ children, disabledReason
|
|
|
21393
21514
|
dropdownMenuItemRef
|
|
21394
21515
|
]);
|
|
21395
21516
|
return /*#__PURE__*/ jsx(DropdownMenu$1.Item, {
|
|
21396
|
-
css:
|
|
21397
|
-
|
|
21398
|
-
|
|
21399
|
-
|
|
21517
|
+
css: [
|
|
21518
|
+
dropdownItemStyles,
|
|
21519
|
+
danger && dangerItemStyles
|
|
21520
|
+
],
|
|
21400
21521
|
ref: mergedRefs,
|
|
21401
21522
|
onClick: (e)=>{
|
|
21402
21523
|
if (props.disabled) {
|
|
@@ -21428,12 +21549,12 @@ const Label$1 = /*#__PURE__*/ forwardRef(function Label({ children, ...props },
|
|
|
21428
21549
|
ref: ref,
|
|
21429
21550
|
css: [
|
|
21430
21551
|
dropdownItemStyles,
|
|
21431
|
-
|
|
21432
|
-
|
|
21433
|
-
|
|
21434
|
-
|
|
21435
|
-
|
|
21436
|
-
|
|
21552
|
+
{
|
|
21553
|
+
color: 'var(--db-dropdown-menu-label-text)',
|
|
21554
|
+
'&:hover': {
|
|
21555
|
+
cursor: 'default'
|
|
21556
|
+
}
|
|
21557
|
+
}
|
|
21437
21558
|
],
|
|
21438
21559
|
...props,
|
|
21439
21560
|
children: children
|
|
@@ -21454,11 +21575,11 @@ const SubTrigger$1 = /*#__PURE__*/ forwardRef(function TriggerItem({ children, d
|
|
|
21454
21575
|
ref: subTriggerRef,
|
|
21455
21576
|
css: [
|
|
21456
21577
|
dropdownItemStyles,
|
|
21457
|
-
|
|
21458
|
-
|
|
21459
|
-
|
|
21460
|
-
|
|
21461
|
-
|
|
21578
|
+
{
|
|
21579
|
+
'&[data-state="open"]': {
|
|
21580
|
+
backgroundColor: 'var(--db-dropdown-menu-subtrigger-surface-open)'
|
|
21581
|
+
}
|
|
21582
|
+
}
|
|
21462
21583
|
],
|
|
21463
21584
|
onKeyDown: (e)=>{
|
|
21464
21585
|
if (e.key === 'Tab' || e.key === 'ArrowDown' || e.key === 'ArrowUp') {
|
|
@@ -21470,16 +21591,16 @@ const SubTrigger$1 = /*#__PURE__*/ forwardRef(function TriggerItem({ children, d
|
|
|
21470
21591
|
children: [
|
|
21471
21592
|
getNewChildren(children, props, disabledReason, getZIndex() + 1),
|
|
21472
21593
|
/*#__PURE__*/ jsx(HintColumn, {
|
|
21473
|
-
css: (
|
|
21474
|
-
|
|
21475
|
-
|
|
21476
|
-
|
|
21477
|
-
|
|
21478
|
-
|
|
21594
|
+
css: /*#__PURE__*/ css({
|
|
21595
|
+
margin: 'var(--db-dropdown-menu-submenu-icon-margin)',
|
|
21596
|
+
display: 'flex',
|
|
21597
|
+
alignSelf: 'stretch',
|
|
21598
|
+
alignItems: 'center'
|
|
21599
|
+
}),
|
|
21479
21600
|
children: /*#__PURE__*/ jsx(ChevronRightIcon, {
|
|
21480
|
-
css: (
|
|
21481
|
-
|
|
21482
|
-
|
|
21601
|
+
css: /*#__PURE__*/ css({
|
|
21602
|
+
fontSize: 'var(--db-dropdown-menu-submenu-icon-size)'
|
|
21603
|
+
})
|
|
21483
21604
|
})
|
|
21484
21605
|
})
|
|
21485
21606
|
]
|
|
@@ -21525,10 +21646,10 @@ const CheckboxItem$1 = /*#__PURE__*/ forwardRef(function CheckboxItem({ children
|
|
|
21525
21646
|
]);
|
|
21526
21647
|
return /*#__PURE__*/ jsx(DropdownMenu$1.CheckboxItem, {
|
|
21527
21648
|
ref: mergedRefs,
|
|
21528
|
-
css:
|
|
21529
|
-
|
|
21530
|
-
|
|
21531
|
-
|
|
21649
|
+
css: [
|
|
21650
|
+
dropdownItemStyles,
|
|
21651
|
+
checkboxItemStyles
|
|
21652
|
+
],
|
|
21532
21653
|
onCheckedChange: onCheckedChangeWrapper,
|
|
21533
21654
|
onKeyDown: (e)=>{
|
|
21534
21655
|
if (e.key === 'Tab' || e.key === 'ArrowDown' || e.key === 'ArrowUp') {
|
|
@@ -21586,25 +21707,24 @@ const RadioGroup$1 = /*#__PURE__*/ forwardRef(function RadioGroup({ children, co
|
|
|
21586
21707
|
const ItemIndicator$1 = /*#__PURE__*/ forwardRef(function ItemIndicator({ children, ...props }, ref) {
|
|
21587
21708
|
return /*#__PURE__*/ jsx(DropdownMenu$1.ItemIndicator, {
|
|
21588
21709
|
ref: ref,
|
|
21589
|
-
css: (
|
|
21590
|
-
|
|
21591
|
-
|
|
21592
|
-
|
|
21593
|
-
|
|
21710
|
+
css: /*#__PURE__*/ css({
|
|
21711
|
+
marginLeft: 'var(--db-dropdown-menu-indicator-offset)',
|
|
21712
|
+
position: 'absolute',
|
|
21713
|
+
fontSize: 'var(--db-dropdown-menu-indicator-icon-size)'
|
|
21714
|
+
}),
|
|
21594
21715
|
...props,
|
|
21595
21716
|
children: children ?? /*#__PURE__*/ jsx(CheckIcon, {
|
|
21596
|
-
css: (
|
|
21597
|
-
|
|
21598
|
-
|
|
21717
|
+
css: /*#__PURE__*/ css({
|
|
21718
|
+
color: 'var(--db-dropdown-menu-indicator-text)'
|
|
21719
|
+
})
|
|
21599
21720
|
})
|
|
21600
21721
|
});
|
|
21601
21722
|
});
|
|
21602
21723
|
const Arrow$1 = /*#__PURE__*/ forwardRef(function Arrow({ children, ...props }, ref) {
|
|
21603
|
-
const { theme } = useDesignSystemTheme();
|
|
21604
21724
|
return /*#__PURE__*/ jsx(DropdownMenu$1.Arrow, {
|
|
21605
|
-
css: {
|
|
21606
|
-
fill:
|
|
21607
|
-
stroke:
|
|
21725
|
+
css: /*#__PURE__*/ css({
|
|
21726
|
+
fill: 'var(--db-dropdown-menu-arrow-fill)',
|
|
21727
|
+
stroke: 'var(--db-dropdown-menu-arrow-stroke)',
|
|
21608
21728
|
strokeDashoffset: -CONSTANTS.arrowBottomLength(),
|
|
21609
21729
|
strokeDasharray: CONSTANTS.arrowBottomLength() + 2 * CONSTANTS.arrowSide(),
|
|
21610
21730
|
strokeWidth: CONSTANTS.arrowStrokeWidth(),
|
|
@@ -21615,7 +21735,7 @@ const Arrow$1 = /*#__PURE__*/ forwardRef(function Arrow({ children, ...props },
|
|
|
21615
21735
|
// offset equal to border radius)
|
|
21616
21736
|
position: 'relative',
|
|
21617
21737
|
top: -1
|
|
21618
|
-
},
|
|
21738
|
+
}),
|
|
21619
21739
|
ref: ref,
|
|
21620
21740
|
width: 12,
|
|
21621
21741
|
height: 6,
|
|
@@ -21628,10 +21748,10 @@ const RadioItem$1 = /*#__PURE__*/ forwardRef(function RadioItem({ children, disa
|
|
|
21628
21748
|
useImperativeHandle(ref, ()=>radioItemRef.current);
|
|
21629
21749
|
return /*#__PURE__*/ jsx(DropdownMenu$1.RadioItem, {
|
|
21630
21750
|
ref: radioItemRef,
|
|
21631
|
-
css:
|
|
21632
|
-
|
|
21633
|
-
|
|
21634
|
-
|
|
21751
|
+
css: [
|
|
21752
|
+
dropdownItemStyles,
|
|
21753
|
+
checkboxItemStyles
|
|
21754
|
+
],
|
|
21635
21755
|
...props,
|
|
21636
21756
|
children: getNewChildren(children, props, disabledReason, getZIndex() + 1)
|
|
21637
21757
|
});
|
|
@@ -21675,42 +21795,17 @@ const HintRow$1 = /*#__PURE__*/ forwardRef(function HintRow({ children, ...props
|
|
|
21675
21795
|
const IconWrapper = /*#__PURE__*/ forwardRef(function IconWrapper({ children, ...props }, ref) {
|
|
21676
21796
|
return /*#__PURE__*/ jsx("div", {
|
|
21677
21797
|
ref: ref,
|
|
21678
|
-
css: (
|
|
21679
|
-
|
|
21680
|
-
|
|
21681
|
-
|
|
21682
|
-
|
|
21798
|
+
css: /*#__PURE__*/ css({
|
|
21799
|
+
fontSize: 'var(--db-dropdown-menu-icon-size)',
|
|
21800
|
+
color: 'var(--db-dropdown-menu-icon-text)',
|
|
21801
|
+
paddingRight: 'var(--db-dropdown-menu-icon-padding-end)'
|
|
21802
|
+
}),
|
|
21683
21803
|
...props,
|
|
21684
21804
|
children: children
|
|
21685
21805
|
});
|
|
21686
21806
|
});
|
|
21687
21807
|
// CONSTANTS
|
|
21688
21808
|
const CONSTANTS = {
|
|
21689
|
-
itemPaddingVertical (theme) {
|
|
21690
|
-
// The number from the mocks is the midpoint between constants
|
|
21691
|
-
return 0.5 * theme.spacing.xs + 0.5 * theme.spacing.sm;
|
|
21692
|
-
},
|
|
21693
|
-
itemPaddingHorizontal (theme) {
|
|
21694
|
-
return theme.spacing.sm + theme.spacing.xs;
|
|
21695
|
-
},
|
|
21696
|
-
checkboxIconWidth (theme) {
|
|
21697
|
-
return theme.general.iconFontSize;
|
|
21698
|
-
},
|
|
21699
|
-
checkboxPaddingLeft (theme) {
|
|
21700
|
-
return theme.spacing.sm + theme.spacing.xs;
|
|
21701
|
-
},
|
|
21702
|
-
checkboxPaddingRight (theme) {
|
|
21703
|
-
return theme.spacing.sm;
|
|
21704
|
-
},
|
|
21705
|
-
subMenuIconMargin (theme) {
|
|
21706
|
-
// Negative margin so the icons can be larger without increasing the overall item height
|
|
21707
|
-
const iconMarginVertical = this.itemPaddingVertical(theme) / 2;
|
|
21708
|
-
const iconMarginRight = -this.itemPaddingVertical(theme) + theme.spacing.sm * 1.5;
|
|
21709
|
-
return `${-iconMarginVertical}px ${-iconMarginRight}px ${-iconMarginVertical}px auto`;
|
|
21710
|
-
},
|
|
21711
|
-
subMenuIconSize (theme) {
|
|
21712
|
-
return theme.spacing.lg;
|
|
21713
|
-
},
|
|
21714
21809
|
arrowBottomLength () {
|
|
21715
21810
|
// The built in arrow is a polygon: 0,0 30,0 15,10
|
|
21716
21811
|
return 30;
|
|
@@ -21727,13 +21822,14 @@ const CONSTANTS = {
|
|
|
21727
21822
|
}
|
|
21728
21823
|
};
|
|
21729
21824
|
const dropdownContentStyles = (theme)=>({
|
|
21730
|
-
backgroundColor:
|
|
21731
|
-
color:
|
|
21825
|
+
backgroundColor: 'var(--db-menu-surface)',
|
|
21826
|
+
color: 'var(--db-menu-text)',
|
|
21827
|
+
// No v2 line-height token. TODO(FEINF-6557): adopt one when it lands.
|
|
21732
21828
|
lineHeight: theme.typography.lineHeightBase,
|
|
21733
|
-
border: `1px solid
|
|
21734
|
-
borderRadius:
|
|
21735
|
-
padding:
|
|
21736
|
-
boxShadow:
|
|
21829
|
+
border: `1px solid var(--db-menu-border)`,
|
|
21830
|
+
borderRadius: 'var(--db-menu-border-radius)',
|
|
21831
|
+
padding: `var(--db-menu-content-padding-vertical) 0`,
|
|
21832
|
+
boxShadow: 'var(--db-menu-elevation)',
|
|
21737
21833
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
21738
21834
|
// @ts-ignore [FEINF-3177] TODO: fix to work with React 18 types
|
|
21739
21835
|
userSelect: 'none',
|
|
@@ -21742,7 +21838,6 @@ const dropdownContentStyles = (theme)=>({
|
|
|
21742
21838
|
// @ts-ignore [FEINF-3177] TODO: fix to work with React 18 types
|
|
21743
21839
|
overflowY: 'auto',
|
|
21744
21840
|
maxHeight: 'var(--radix-dropdown-menu-content-available-height)',
|
|
21745
|
-
...getDarkModePortalStyles(theme),
|
|
21746
21841
|
// Ant Design uses 1000s for their zIndex space; this ensures Radix works with that, but
|
|
21747
21842
|
// we'll likely need to be sure that all Radix components are using the same zIndex going forward.
|
|
21748
21843
|
//
|
|
@@ -21751,9 +21846,9 @@ const dropdownContentStyles = (theme)=>({
|
|
|
21751
21846
|
// so we have to use a higher value than that: https://github.com/databricks/universe/pull/232825
|
|
21752
21847
|
zIndex: getZIndex(),
|
|
21753
21848
|
a: importantify({
|
|
21754
|
-
color:
|
|
21849
|
+
color: 'var(--db-menu-text)',
|
|
21755
21850
|
'&:hover, &:focus': {
|
|
21756
|
-
color:
|
|
21851
|
+
color: 'var(--db-menu-text)',
|
|
21757
21852
|
textDecoration: 'none'
|
|
21758
21853
|
}
|
|
21759
21854
|
})
|
|
@@ -21761,8 +21856,8 @@ const dropdownContentStyles = (theme)=>({
|
|
|
21761
21856
|
const contentStyles = (theme)=>({
|
|
21762
21857
|
...dropdownContentStyles(theme)
|
|
21763
21858
|
});
|
|
21764
|
-
const dropdownItemStyles = (
|
|
21765
|
-
padding:
|
|
21859
|
+
const dropdownItemStyles = ()=>({
|
|
21860
|
+
padding: `var(--db-menu-item-padding-vertical) var(--db-menu-item-padding-horizontal)`,
|
|
21766
21861
|
display: 'flex',
|
|
21767
21862
|
flexWrap: 'wrap',
|
|
21768
21863
|
alignItems: 'center',
|
|
@@ -21771,31 +21866,31 @@ const dropdownItemStyles = (theme)=>({
|
|
|
21771
21866
|
cursor: 'pointer'
|
|
21772
21867
|
},
|
|
21773
21868
|
'&:focus': {
|
|
21774
|
-
backgroundColor:
|
|
21869
|
+
backgroundColor: 'var(--db-menu-item-surface-hover)',
|
|
21775
21870
|
'&:not(:hover)': {
|
|
21776
|
-
outline: `
|
|
21777
|
-
outlineOffset: '-
|
|
21871
|
+
outline: `var(--db-menu-item-focus-ring-width) auto var(--db-menu-item-focus-ring)`,
|
|
21872
|
+
outlineOffset: 'var(--db-menu-item-focus-ring-offset)'
|
|
21778
21873
|
}
|
|
21779
21874
|
},
|
|
21780
21875
|
'&[data-disabled]': {
|
|
21781
21876
|
pointerEvents: 'none',
|
|
21782
|
-
color:
|
|
21783
|
-
}
|
|
21784
|
-
});
|
|
21785
|
-
const dangerItemStyles = (theme)=>({
|
|
21786
|
-
color: theme.colors.textValidationDanger,
|
|
21787
|
-
'&:hover, &:focus': {
|
|
21788
|
-
backgroundColor: theme.colors.actionDangerDefaultBackgroundHover
|
|
21877
|
+
color: `var(--db-menu-item-text-disabled) !important`
|
|
21789
21878
|
}
|
|
21790
21879
|
});
|
|
21791
|
-
const
|
|
21792
|
-
|
|
21793
|
-
|
|
21794
|
-
|
|
21795
|
-
|
|
21796
|
-
|
|
21797
|
-
|
|
21798
|
-
|
|
21880
|
+
const dangerItemStyles = /*#__PURE__*/ css({
|
|
21881
|
+
color: 'var(--db-dropdown-menu-item-danger-text)',
|
|
21882
|
+
'&:hover, &:focus': {
|
|
21883
|
+
backgroundColor: 'var(--db-dropdown-menu-item-danger-surface-hover)'
|
|
21884
|
+
}
|
|
21885
|
+
});
|
|
21886
|
+
const checkboxItemStyles = /*#__PURE__*/ css({
|
|
21887
|
+
position: 'relative',
|
|
21888
|
+
paddingLeft: 'var(--db-dropdown-menu-checkbox-indent)'
|
|
21889
|
+
});
|
|
21890
|
+
const dropdownSeparatorStyles = ()=>({
|
|
21891
|
+
height: 'var(--db-menu-separator-height)',
|
|
21892
|
+
margin: `var(--db-menu-separator-margin-vertical) var(--db-menu-separator-margin-horizontal)`,
|
|
21893
|
+
backgroundColor: 'var(--db-menu-separator)'
|
|
21799
21894
|
});
|
|
21800
21895
|
function getZIndex() {
|
|
21801
21896
|
return 10000;
|
|
@@ -21850,26 +21945,24 @@ const VALUE_DEFAULT_EVENTS_WITH_VIEW = [
|
|
|
21850
21945
|
const VALUE_DEFAULT_EVENTS_NO_VIEW = [
|
|
21851
21946
|
DesignSystemEventProviderAnalyticsEventTypes.OnValueChange
|
|
21852
21947
|
];
|
|
21853
|
-
|
|
21854
|
-
|
|
21855
|
-
|
|
21856
|
-
|
|
21857
|
-
|
|
21858
|
-
|
|
21859
|
-
|
|
21860
|
-
|
|
21861
|
-
|
|
21862
|
-
|
|
21863
|
-
|
|
21864
|
-
|
|
21865
|
-
|
|
21866
|
-
|
|
21867
|
-
|
|
21868
|
-
|
|
21869
|
-
|
|
21870
|
-
|
|
21871
|
-
}
|
|
21872
|
-
}));
|
|
21948
|
+
const itemIndicatorCss = /*#__PURE__*/ css({
|
|
21949
|
+
display: 'inline-flex',
|
|
21950
|
+
paddingInlineEnd: 'var(--db-context-menu-item-indicator-padding-end)'
|
|
21951
|
+
});
|
|
21952
|
+
const labelCss = {
|
|
21953
|
+
color: 'var(--db-context-menu-label-text)',
|
|
21954
|
+
padding: 'var(--db-context-menu-label-padding-vertical) var(--db-context-menu-label-padding-horizontal)'
|
|
21955
|
+
};
|
|
21956
|
+
const hintCss = {
|
|
21957
|
+
display: 'inline-flex',
|
|
21958
|
+
marginInlineStart: 'auto',
|
|
21959
|
+
paddingInlineStart: 'var(--db-context-menu-hint-padding-start)'
|
|
21960
|
+
};
|
|
21961
|
+
const radioItemUncheckedCss = {
|
|
21962
|
+
'&[data-state="unchecked"]': {
|
|
21963
|
+
paddingLeft: 'var(--db-context-menu-radio-unchecked-indent)'
|
|
21964
|
+
}
|
|
21965
|
+
};
|
|
21873
21966
|
const ContextMenuProps = /*#__PURE__*/ createContext({
|
|
21874
21967
|
isOpen: false,
|
|
21875
21968
|
setIsOpen: (isOpen)=>{}
|
|
@@ -21898,7 +21991,7 @@ const SubTrigger = ({ children, disabledReason, withChevron, ...props })=>{
|
|
|
21898
21991
|
const ref = useRef(null);
|
|
21899
21992
|
return /*#__PURE__*/ jsxs(ContextMenuSubTrigger, {
|
|
21900
21993
|
...props,
|
|
21901
|
-
css: dropdownItemStyles(
|
|
21994
|
+
css: dropdownItemStyles(),
|
|
21902
21995
|
ref: ref,
|
|
21903
21996
|
onKeyDown: (e)=>{
|
|
21904
21997
|
if (e.key === 'Tab' || e.key === 'ArrowDown' || e.key === 'ArrowUp') {
|
|
@@ -22033,7 +22126,7 @@ const Item$2 = ({ children, disabledReason, onClick, componentId, analyticsEvent
|
|
|
22033
22126
|
...props,
|
|
22034
22127
|
asChild: asChild,
|
|
22035
22128
|
onClick: onClickWrapper,
|
|
22036
|
-
css: dropdownItemStyles(
|
|
22129
|
+
css: dropdownItemStyles(),
|
|
22037
22130
|
ref: mergedRef,
|
|
22038
22131
|
onKeyDown: (e)=>{
|
|
22039
22132
|
if (e.key === 'Tab' || e.key === 'ArrowDown' || e.key === 'ArrowUp') {
|
|
@@ -22074,7 +22167,7 @@ const CheckboxItem = ({ children, disabledReason, onCheckedChange, componentId,
|
|
|
22074
22167
|
return /*#__PURE__*/ jsxs(ContextMenuCheckboxItem, {
|
|
22075
22168
|
...props,
|
|
22076
22169
|
onCheckedChange: onCheckedChangeWrapper,
|
|
22077
|
-
css: dropdownItemStyles(
|
|
22170
|
+
css: dropdownItemStyles(),
|
|
22078
22171
|
ref: mergedRef,
|
|
22079
22172
|
onKeyDown: (e)=>{
|
|
22080
22173
|
if (e.key === 'Tab' || e.key === 'ArrowDown' || e.key === 'ArrowUp') {
|
|
@@ -22085,12 +22178,12 @@ const CheckboxItem = ({ children, disabledReason, onCheckedChange, componentId,
|
|
|
22085
22178
|
...eventContext.dataComponentProps,
|
|
22086
22179
|
children: [
|
|
22087
22180
|
/*#__PURE__*/ jsx(ContextMenuItemIndicator, {
|
|
22088
|
-
css:
|
|
22181
|
+
css: itemIndicatorCss,
|
|
22089
22182
|
children: /*#__PURE__*/ jsx(CheckIcon, {})
|
|
22090
22183
|
}),
|
|
22091
22184
|
!props.checked && /*#__PURE__*/ jsx("div", {
|
|
22092
22185
|
style: {
|
|
22093
|
-
width:
|
|
22186
|
+
width: 'var(--db-context-menu-checkbox-gap)'
|
|
22094
22187
|
}
|
|
22095
22188
|
}),
|
|
22096
22189
|
getNewChildren(children, props, disabledReason, getZIndex() + 1)
|
|
@@ -22130,13 +22223,13 @@ const RadioItem = ({ children, disabledReason, ...props })=>{
|
|
|
22130
22223
|
return /*#__PURE__*/ jsxs(ContextMenuRadioItem, {
|
|
22131
22224
|
...props,
|
|
22132
22225
|
css: [
|
|
22133
|
-
dropdownItemStyles(
|
|
22134
|
-
|
|
22226
|
+
dropdownItemStyles(),
|
|
22227
|
+
radioItemUncheckedCss
|
|
22135
22228
|
],
|
|
22136
22229
|
ref: ref,
|
|
22137
22230
|
children: [
|
|
22138
22231
|
/*#__PURE__*/ jsx(ContextMenuItemIndicator, {
|
|
22139
|
-
css:
|
|
22232
|
+
css: itemIndicatorCss,
|
|
22140
22233
|
children: /*#__PURE__*/ jsx(CheckIcon, {})
|
|
22141
22234
|
}),
|
|
22142
22235
|
getNewChildren(children, props, disabledReason, getZIndex() + 1)
|
|
@@ -22144,30 +22237,24 @@ const RadioItem = ({ children, disabledReason, ...props })=>{
|
|
|
22144
22237
|
});
|
|
22145
22238
|
};
|
|
22146
22239
|
const Label = ({ children, ...props })=>{
|
|
22147
|
-
const { theme } = useDesignSystemTheme();
|
|
22148
22240
|
return /*#__PURE__*/ jsx(ContextMenuLabel, {
|
|
22149
22241
|
...props,
|
|
22150
|
-
css:
|
|
22242
|
+
css: labelCss,
|
|
22151
22243
|
children: children
|
|
22152
22244
|
});
|
|
22153
22245
|
};
|
|
22154
22246
|
const Hint$1 = ({ children })=>{
|
|
22155
|
-
const { theme } = useDesignSystemTheme();
|
|
22156
22247
|
return /*#__PURE__*/ jsx("span", {
|
|
22157
|
-
css:
|
|
22248
|
+
css: hintCss,
|
|
22158
22249
|
children: children
|
|
22159
22250
|
});
|
|
22160
22251
|
};
|
|
22161
22252
|
const Separator = ()=>{
|
|
22162
|
-
const { theme } = useDesignSystemTheme();
|
|
22163
22253
|
return /*#__PURE__*/ jsx(ContextMenuSeparator, {
|
|
22164
|
-
css: dropdownSeparatorStyles
|
|
22254
|
+
css: dropdownSeparatorStyles
|
|
22165
22255
|
});
|
|
22166
22256
|
};
|
|
22167
|
-
const itemIndicatorStyles = (
|
|
22168
|
-
display: 'inline-flex',
|
|
22169
|
-
paddingRight: theme.spacing.xs
|
|
22170
|
-
});
|
|
22257
|
+
const itemIndicatorStyles = ()=>itemIndicatorCss;
|
|
22171
22258
|
const ContextMenu = {
|
|
22172
22259
|
Root: Root$7,
|
|
22173
22260
|
Trigger: Trigger$3,
|
|
@@ -22410,7 +22497,7 @@ const getInputEmotionStyles = (clsPrefix, theme, { validationState, type, hasVal
|
|
|
22410
22497
|
}, {});
|
|
22411
22498
|
return /*#__PURE__*/ css(importantify(styles));
|
|
22412
22499
|
};
|
|
22413
|
-
const
|
|
22500
|
+
const AntDInput = /*#__PURE__*/ forwardRef(function AntDInput({ validationState, autoComplete = 'off', dangerouslySetAntdProps, dangerouslyAppendEmotionCSS, onChange, onClear, onFocus, onPressEnter, onWheel, onCompositionStart, onCompositionEnd, componentId, shouldPreventFormSubmission, analyticsEvents, readOnly, locked, size = 'middle', type, allowClear, ...props }, ref) {
|
|
22414
22501
|
// The clear (X) button overlaps the native number-input spinner arrows and
|
|
22415
22502
|
// causes misclicks, so default allowClear to false for type="number". An
|
|
22416
22503
|
// explicit value from the caller is still honored. See DUBOIS-353.
|
|
@@ -22538,6 +22625,8 @@ const Input$1 = /*#__PURE__*/ forwardRef(function Input({ validationState, autoC
|
|
|
22538
22625
|
...addDebugOutlineIfEnabled(),
|
|
22539
22626
|
autoComplete: autoComplete,
|
|
22540
22627
|
"data-validation": validationState,
|
|
22628
|
+
// The public ref type (InputRef) is a structural subset of antd's Input instance, which
|
|
22629
|
+
// is what antd populates the ref with — safe to cast at this AntD boundary.
|
|
22541
22630
|
ref: ref,
|
|
22542
22631
|
css: [
|
|
22543
22632
|
getInputEmotionStyles(classNamePrefix, theme, {
|
|
@@ -23483,6 +23572,393 @@ const isValidCustomInputDate = (date, format$1)=>{
|
|
|
23483
23572
|
}
|
|
23484
23573
|
};
|
|
23485
23574
|
|
|
23575
|
+
const ROOT_CLASS$1 = 'db-input';
|
|
23576
|
+
/**
|
|
23577
|
+
* Builds the class name for the shared `.db-input` container (see `mortar/input.css`) plus its size,
|
|
23578
|
+
* locked, and validation-state modifiers. Shared by the native input and password so the root class
|
|
23579
|
+
* and its modifier names live in one place.
|
|
23580
|
+
*/ function getInputContainerClassName({ size, locked, validationState }) {
|
|
23581
|
+
return classnames(ROOT_CLASS$1, {
|
|
23582
|
+
[`${ROOT_CLASS$1}-small`]: size === 'small',
|
|
23583
|
+
[`${ROOT_CLASS$1}-locked`]: locked,
|
|
23584
|
+
[`${ROOT_CLASS$1}-error`]: validationState === 'error',
|
|
23585
|
+
[`${ROOT_CLASS$1}-warning`]: validationState === 'warning',
|
|
23586
|
+
[`${ROOT_CLASS$1}-success`]: validationState === 'success'
|
|
23587
|
+
});
|
|
23588
|
+
}
|
|
23589
|
+
|
|
23590
|
+
/** Options accepted by {@link InputRef.focus}: the DOM `FocusOptions` plus a cursor-placement hint. */ /** Focuses the field (input or textarea) and sets the cursor location and text selection state. */ function focusWithCursor(field, options) {
|
|
23591
|
+
field.focus(options);
|
|
23592
|
+
switch(options?.cursor){
|
|
23593
|
+
case 'start':
|
|
23594
|
+
field.setSelectionRange(0, 0);
|
|
23595
|
+
break;
|
|
23596
|
+
case 'end':
|
|
23597
|
+
field.setSelectionRange(field.value.length, field.value.length);
|
|
23598
|
+
break;
|
|
23599
|
+
case 'all':
|
|
23600
|
+
field.select();
|
|
23601
|
+
break;
|
|
23602
|
+
}
|
|
23603
|
+
}
|
|
23604
|
+
|
|
23605
|
+
/**
|
|
23606
|
+
* Builds the change event fired when the clear button empties the input: it retargets the button's
|
|
23607
|
+
* own click event at the (now-empty) input so `onChange` handlers reading `event.target.value` see
|
|
23608
|
+
* the cleared value. Retargeting the real SyntheticEvent — rather than fabricating one — keeps
|
|
23609
|
+
* `preventDefault`, `stopPropagation`, etc. intact. This is the same bridge rc-input used.
|
|
23610
|
+
*/ function createClearedChangeEvent(clickEvent, clearedInput) {
|
|
23611
|
+
return Object.create(clickEvent, {
|
|
23612
|
+
target: {
|
|
23613
|
+
value: clearedInput
|
|
23614
|
+
},
|
|
23615
|
+
currentTarget: {
|
|
23616
|
+
value: clearedInput
|
|
23617
|
+
}
|
|
23618
|
+
});
|
|
23619
|
+
}
|
|
23620
|
+
/**
|
|
23621
|
+
* Produces the clear button's click handler: it empties the input, keeps focus on it, and reports
|
|
23622
|
+
* the change through `onClear` — or through `onChange` with the emptied value when no `onClear` is
|
|
23623
|
+
* given, matching the AntD-backed input.
|
|
23624
|
+
*/ function useInputClearHandler({ inputRef, isControlled, setUncontrolledHasValue, reportValueChange, onClear, onChange }) {
|
|
23625
|
+
return useCallback((e)=>{
|
|
23626
|
+
const inputElement = inputRef.current;
|
|
23627
|
+
if (!inputElement) return;
|
|
23628
|
+
// Empty the field (for an uncontrolled input) and keep focus where the value was; a controlled
|
|
23629
|
+
// caller re-empties it from `value` in response to the callbacks below.
|
|
23630
|
+
inputElement.value = '';
|
|
23631
|
+
inputElement.focus();
|
|
23632
|
+
if (!isControlled) {
|
|
23633
|
+
setUncontrolledHasValue(false);
|
|
23634
|
+
}
|
|
23635
|
+
reportValueChange();
|
|
23636
|
+
if (onClear) {
|
|
23637
|
+
onClear();
|
|
23638
|
+
} else {
|
|
23639
|
+
onChange?.(createClearedChangeEvent(e, inputElement));
|
|
23640
|
+
}
|
|
23641
|
+
}, [
|
|
23642
|
+
inputRef,
|
|
23643
|
+
isControlled,
|
|
23644
|
+
onChange,
|
|
23645
|
+
onClear,
|
|
23646
|
+
reportValueChange,
|
|
23647
|
+
setUncontrolledHasValue
|
|
23648
|
+
]);
|
|
23649
|
+
}
|
|
23650
|
+
|
|
23651
|
+
/**
|
|
23652
|
+
* Owns the observability wiring shared by the native Input and TextArea: the default analytics-event
|
|
23653
|
+
* set, the component event context, first-view reporting, and once-per-focus value-change reporting.
|
|
23654
|
+
* The component merges {@link elementRef} into its field ref, spreads {@link dataComponentProps} onto
|
|
23655
|
+
* the element, calls {@link reportValueChange} from its change handler, and re-arms it on focus via
|
|
23656
|
+
* {@link resetOnFocus} (which {@link useTextFieldFocusHandler} composes into the focus handler).
|
|
23657
|
+
*/ function useTextFieldAnalytics({ componentType, componentId, analyticsEvents }) {
|
|
23658
|
+
const memoizedAnalyticsEvents = useMemo(()=>analyticsEvents ?? [
|
|
23659
|
+
DesignSystemEventProviderAnalyticsEventTypes.OnValueChange
|
|
23660
|
+
], [
|
|
23661
|
+
analyticsEvents
|
|
23662
|
+
]);
|
|
23663
|
+
const eventContext = useDesignSystemEventComponentCallbacks({
|
|
23664
|
+
componentType,
|
|
23665
|
+
componentId,
|
|
23666
|
+
analyticsEvents: memoizedAnalyticsEvents,
|
|
23667
|
+
valueHasNoPii: false
|
|
23668
|
+
});
|
|
23669
|
+
// Emit the view event the first time the field scrolls into view (once).
|
|
23670
|
+
const { elementRef } = useNotifyOnFirstView({
|
|
23671
|
+
onView: eventContext.onView
|
|
23672
|
+
});
|
|
23673
|
+
// Emit onValueChange at most once per focus, until a focus re-arms it.
|
|
23674
|
+
const { callbackOnceUntilReset: reportValueChange, reset: resetOnFocus } = useCallbackOnceUntilReset(eventContext.onValueChange);
|
|
23675
|
+
return {
|
|
23676
|
+
elementRef,
|
|
23677
|
+
dataComponentProps: eventContext.dataComponentProps,
|
|
23678
|
+
reportValueChange,
|
|
23679
|
+
resetOnFocus
|
|
23680
|
+
};
|
|
23681
|
+
}
|
|
23682
|
+
|
|
23683
|
+
/**
|
|
23684
|
+
* Composes the text field's focus handler shared by the native Input and TextArea: re-arm the
|
|
23685
|
+
* once-per-focus value-change reporter (`resetOnFocus`, from {@link useTextFieldAnalytics}), then
|
|
23686
|
+
* forward the consumer's `onFocus`.
|
|
23687
|
+
*/ function useTextFieldFocusHandler(onFocus, resetOnFocus) {
|
|
23688
|
+
return useCallback((e)=>{
|
|
23689
|
+
resetOnFocus();
|
|
23690
|
+
onFocus?.(e);
|
|
23691
|
+
}, [
|
|
23692
|
+
onFocus,
|
|
23693
|
+
resetOnFocus
|
|
23694
|
+
]);
|
|
23695
|
+
}
|
|
23696
|
+
|
|
23697
|
+
/**
|
|
23698
|
+
* Wires the key behaviour shared by the native Input and TextArea: submit-the-form-on-Enter (IME-safe,
|
|
23699
|
+
* via {@link useCallbackOnEnter}), the `onPressEnter` callback, and chaining of the consumer's own key
|
|
23700
|
+
* and composition handlers. The composition handlers travel with the keydown handler because the
|
|
23701
|
+
* submit-on-Enter logic relies on their composition tracking to avoid firing mid-IME-composition.
|
|
23702
|
+
*/ function useTextFieldKeyHandlers({ formRef, allowBasicEnter, allowPlatformEnter, stopKeyDownAfterSubmit, onPressEnter, onKeyDown, onCompositionStart, onCompositionEnd }) {
|
|
23703
|
+
const onFormSubmit = useCallback((e)=>{
|
|
23704
|
+
if (!formRef?.current) return;
|
|
23705
|
+
e.preventDefault();
|
|
23706
|
+
formRef.current.requestSubmit();
|
|
23707
|
+
}, [
|
|
23708
|
+
formRef
|
|
23709
|
+
]);
|
|
23710
|
+
const submitHandlers = useCallbackOnEnter({
|
|
23711
|
+
callback: onFormSubmit,
|
|
23712
|
+
allowBasicEnter,
|
|
23713
|
+
allowPlatformEnter
|
|
23714
|
+
});
|
|
23715
|
+
// onPressEnter fires only on Enter, unlike the general onKeyDown chain it rides in.
|
|
23716
|
+
const handlePressEnter = useCallback((e)=>{
|
|
23717
|
+
if (e.key === 'Enter') onPressEnter?.(e);
|
|
23718
|
+
}, [
|
|
23719
|
+
onPressEnter
|
|
23720
|
+
]);
|
|
23721
|
+
const onKeyDownChain = useChainEventHandlers(useMemo(()=>({
|
|
23722
|
+
handlers: [
|
|
23723
|
+
submitHandlers.onKeyDown,
|
|
23724
|
+
handlePressEnter,
|
|
23725
|
+
onKeyDown
|
|
23726
|
+
],
|
|
23727
|
+
stopOnDefaultPrevented: stopKeyDownAfterSubmit
|
|
23728
|
+
}), [
|
|
23729
|
+
handlePressEnter,
|
|
23730
|
+
onKeyDown,
|
|
23731
|
+
stopKeyDownAfterSubmit,
|
|
23732
|
+
submitHandlers.onKeyDown
|
|
23733
|
+
]));
|
|
23734
|
+
const onCompositionStartChain = useChainEventHandlers(useMemo(()=>({
|
|
23735
|
+
handlers: [
|
|
23736
|
+
submitHandlers.onCompositionStart,
|
|
23737
|
+
onCompositionStart
|
|
23738
|
+
]
|
|
23739
|
+
}), [
|
|
23740
|
+
onCompositionStart,
|
|
23741
|
+
submitHandlers.onCompositionStart
|
|
23742
|
+
]));
|
|
23743
|
+
const onCompositionEndChain = useChainEventHandlers(useMemo(()=>({
|
|
23744
|
+
handlers: [
|
|
23745
|
+
submitHandlers.onCompositionEnd,
|
|
23746
|
+
onCompositionEnd
|
|
23747
|
+
]
|
|
23748
|
+
}), [
|
|
23749
|
+
onCompositionEnd,
|
|
23750
|
+
submitHandlers.onCompositionEnd
|
|
23751
|
+
]));
|
|
23752
|
+
return {
|
|
23753
|
+
onKeyDown: onKeyDownChain,
|
|
23754
|
+
onCompositionStart: onCompositionStartChain,
|
|
23755
|
+
onCompositionEnd: onCompositionEndChain
|
|
23756
|
+
};
|
|
23757
|
+
}
|
|
23758
|
+
|
|
23759
|
+
// Styles are not imported here — consumers load them via `@databricks/design-system/src/all-styles.css`.
|
|
23760
|
+
// The bordered-box surface is the shared `.db-input` from `mortar/input.css`; the affix/group
|
|
23761
|
+
// composition is in this component's `NativeInput.css`.
|
|
23762
|
+
const NativeInput = /*#__PURE__*/ forwardRef(function NativeInput({ validationState, autoComplete = 'off', // Emotion- and AntD-specific escape hatches have no meaning for the native input; drop them so
|
|
23763
|
+
// they never reach the DOM.
|
|
23764
|
+
dangerouslySetAntdProps, dangerouslyAppendEmotionCSS, onChange, onClear, onFocus, onKeyDown, onPressEnter, onWheel, onCompositionStart, onCompositionEnd, componentId, shouldPreventFormSubmission, analyticsEvents, readOnly, locked, size = 'middle', type, className, prefix, suffix, addonBefore, allowClear, ...props }, ref) {
|
|
23765
|
+
const formContext = useFormContext();
|
|
23766
|
+
const themeClass = useDuboisThemeClass();
|
|
23767
|
+
// A controlled input derives "has a value" straight from `value`; an uncontrolled one has no such
|
|
23768
|
+
// prop to read (the value lives in the DOM), so track it in state, seeded from `defaultValue`.
|
|
23769
|
+
const isControlled = props.value !== undefined;
|
|
23770
|
+
const [uncontrolledHasValue, setUncontrolledHasValue] = useState(()=>props.defaultValue != null && props.defaultValue !== '');
|
|
23771
|
+
const hasValue = isControlled ? props.value != null && props.value !== '' : uncontrolledHasValue;
|
|
23772
|
+
const { elementRef, dataComponentProps, reportValueChange, resetOnFocus } = useTextFieldAnalytics({
|
|
23773
|
+
componentType: DesignSystemEventProviderComponentTypes.Input,
|
|
23774
|
+
componentId,
|
|
23775
|
+
analyticsEvents
|
|
23776
|
+
});
|
|
23777
|
+
const inputRef = useRef(null);
|
|
23778
|
+
const mergedInputRef = useMergeRefs([
|
|
23779
|
+
inputRef,
|
|
23780
|
+
elementRef
|
|
23781
|
+
]);
|
|
23782
|
+
const handleChange = useCallback((e)=>{
|
|
23783
|
+
reportValueChange();
|
|
23784
|
+
onChange?.(e);
|
|
23785
|
+
if (!isControlled) {
|
|
23786
|
+
setUncontrolledHasValue(Boolean(e.target.value));
|
|
23787
|
+
}
|
|
23788
|
+
}, [
|
|
23789
|
+
isControlled,
|
|
23790
|
+
onChange,
|
|
23791
|
+
reportValueChange
|
|
23792
|
+
]);
|
|
23793
|
+
const handleClear = useInputClearHandler({
|
|
23794
|
+
inputRef,
|
|
23795
|
+
isControlled,
|
|
23796
|
+
setUncontrolledHasValue,
|
|
23797
|
+
reportValueChange,
|
|
23798
|
+
onClear,
|
|
23799
|
+
onChange
|
|
23800
|
+
});
|
|
23801
|
+
const handleFocus = useTextFieldFocusHandler(onFocus, resetOnFocus);
|
|
23802
|
+
const handleWheel = useCallback((e)=>{
|
|
23803
|
+
// A focused <input type="number"> changes its value when the wheel is scrolled over it
|
|
23804
|
+
// (Chrome). preventDefault can't stop it here: React binds onWheel as a passive listener,
|
|
23805
|
+
// where preventDefault is a no-op (facebook/react#32156). Blurring sidesteps it — the value
|
|
23806
|
+
// only changes while focused, so an unfocused input lets the page scroll normally instead.
|
|
23807
|
+
// Only applied when the caller hasn't taken over onWheel. See CJ-72625.
|
|
23808
|
+
if (type === 'number' && !onWheel) {
|
|
23809
|
+
e.currentTarget.blur();
|
|
23810
|
+
return;
|
|
23811
|
+
}
|
|
23812
|
+
onWheel?.(e);
|
|
23813
|
+
}, [
|
|
23814
|
+
onWheel,
|
|
23815
|
+
type
|
|
23816
|
+
]);
|
|
23817
|
+
// A plain input submits the form on both plain and platform Enter (unless the caller opts out); the
|
|
23818
|
+
// input runs onPressEnter and the caller's onKeyDown even after a submit, so it doesn't stop the chain.
|
|
23819
|
+
const { onKeyDown: onKeyDownChain, onCompositionStart: onCompositionStartChain, onCompositionEnd: onCompositionEndChain } = useTextFieldKeyHandlers({
|
|
23820
|
+
formRef: formContext.formRef,
|
|
23821
|
+
allowBasicEnter: !shouldPreventFormSubmission,
|
|
23822
|
+
allowPlatformEnter: !shouldPreventFormSubmission,
|
|
23823
|
+
stopKeyDownAfterSubmit: false,
|
|
23824
|
+
onPressEnter,
|
|
23825
|
+
onKeyDown,
|
|
23826
|
+
onCompositionStart,
|
|
23827
|
+
onCompositionEnd
|
|
23828
|
+
});
|
|
23829
|
+
useImperativeHandle(ref, ()=>({
|
|
23830
|
+
focus: (options)=>inputRef.current && focusWithCursor(inputRef.current, options),
|
|
23831
|
+
blur: ()=>inputRef.current?.blur(),
|
|
23832
|
+
setSelectionRange: (start, end, direction)=>inputRef.current?.setSelectionRange(start, end, direction),
|
|
23833
|
+
select: ()=>inputRef.current?.select(),
|
|
23834
|
+
// Typed non-null to match AntD's public `InputRef.input`; it is null only before mount, which
|
|
23835
|
+
// consumers already treat as unreachable when they hold the ref.
|
|
23836
|
+
get input () {
|
|
23837
|
+
return inputRef.current;
|
|
23838
|
+
},
|
|
23839
|
+
get state () {
|
|
23840
|
+
return {
|
|
23841
|
+
value: inputRef.current?.value ?? ''
|
|
23842
|
+
};
|
|
23843
|
+
},
|
|
23844
|
+
setValue: (value)=>{
|
|
23845
|
+
if (inputRef.current) {
|
|
23846
|
+
inputRef.current.value = value;
|
|
23847
|
+
}
|
|
23848
|
+
}
|
|
23849
|
+
}), []);
|
|
23850
|
+
const containerClassName = getInputContainerClassName({
|
|
23851
|
+
size,
|
|
23852
|
+
locked,
|
|
23853
|
+
validationState
|
|
23854
|
+
});
|
|
23855
|
+
// The clear (X) button overlaps the number-input spinner arrows and causes misclicks, so
|
|
23856
|
+
// allowClear defaults off for type="number"; an explicit value from the caller still wins.
|
|
23857
|
+
// See DUBOIS-353.
|
|
23858
|
+
const canClear = Boolean(allowClear ?? (type === 'number' ? false : undefined));
|
|
23859
|
+
const isClearButtonVisible = canClear && hasValue && !props.disabled && !(locked || readOnly);
|
|
23860
|
+
// The suffix is a lock icon when locked; otherwise the caller's suffix, hidden for an empty number
|
|
23861
|
+
// input where it would sit on top of the spinner arrows.
|
|
23862
|
+
const suffixContent = locked ? /*#__PURE__*/ jsx(LockIcon, {}) : !hasValue && type === 'number' ? undefined : suffix;
|
|
23863
|
+
// The affix container is present whenever an affix is configured (not just currently shown) so the
|
|
23864
|
+
// inner <input> is never remounted — and focus never lost — as the clear button or suffix appears.
|
|
23865
|
+
const hasAffixContainer = Boolean(prefix) || Boolean(suffix) || Boolean(locked) || canClear;
|
|
23866
|
+
// Outer-level attributes — the theme class (so the token custom properties resolve for the whole
|
|
23867
|
+
// control), the caller's className, and the debug outline — belong on the outermost element. That
|
|
23868
|
+
// is the control itself here; with an addon it is instead the group at the end.
|
|
23869
|
+
const outerClassName = addonBefore ? undefined : classnames(themeClass, className);
|
|
23870
|
+
const outerProps = addonBefore ? undefined : addDebugOutlineIfEnabled();
|
|
23871
|
+
const input = /*#__PURE__*/ jsx("input", {
|
|
23872
|
+
...hasAffixContainer ? undefined : outerProps,
|
|
23873
|
+
ref: mergedInputRef,
|
|
23874
|
+
className: hasAffixContainer ? undefined : classnames(containerClassName, outerClassName),
|
|
23875
|
+
type: type,
|
|
23876
|
+
autoComplete: autoComplete,
|
|
23877
|
+
readOnly: locked || readOnly,
|
|
23878
|
+
onChange: handleChange,
|
|
23879
|
+
onFocus: handleFocus,
|
|
23880
|
+
onWheel: handleWheel,
|
|
23881
|
+
onKeyDown: onKeyDownChain,
|
|
23882
|
+
onCompositionStart: onCompositionStartChain,
|
|
23883
|
+
onCompositionEnd: onCompositionEndChain,
|
|
23884
|
+
...hasAffixContainer ? {} : {
|
|
23885
|
+
'data-validation': validationState
|
|
23886
|
+
},
|
|
23887
|
+
...props,
|
|
23888
|
+
...dataComponentProps
|
|
23889
|
+
});
|
|
23890
|
+
const control = hasAffixContainer ? /*#__PURE__*/ jsxs("span", {
|
|
23891
|
+
...outerProps,
|
|
23892
|
+
className: classnames(containerClassName, 'db-input-affix-container', outerClassName),
|
|
23893
|
+
"data-validation": validationState,
|
|
23894
|
+
children: [
|
|
23895
|
+
prefix ? /*#__PURE__*/ jsx("span", {
|
|
23896
|
+
className: "db-input-prefix",
|
|
23897
|
+
children: prefix
|
|
23898
|
+
}) : null,
|
|
23899
|
+
input,
|
|
23900
|
+
isClearButtonVisible || suffixContent ? /*#__PURE__*/ jsxs("span", {
|
|
23901
|
+
className: "db-input-suffix",
|
|
23902
|
+
children: [
|
|
23903
|
+
isClearButtonVisible ? /*#__PURE__*/ jsx("button", {
|
|
23904
|
+
type: "button",
|
|
23905
|
+
className: "db-input-clear",
|
|
23906
|
+
"aria-label": "Clear",
|
|
23907
|
+
onClick: handleClear,
|
|
23908
|
+
children: /*#__PURE__*/ jsx(XCircleFillIcon, {})
|
|
23909
|
+
}) : null,
|
|
23910
|
+
suffixContent
|
|
23911
|
+
]
|
|
23912
|
+
}) : null
|
|
23913
|
+
]
|
|
23914
|
+
}) : input;
|
|
23915
|
+
// With an addon, the group is the outermost element and carries the outer-level attributes;
|
|
23916
|
+
// otherwise `control` already carries them.
|
|
23917
|
+
if (addonBefore) {
|
|
23918
|
+
return /*#__PURE__*/ jsxs("span", {
|
|
23919
|
+
...addDebugOutlineIfEnabled(),
|
|
23920
|
+
className: classnames('db-input-addon-group', themeClass, className),
|
|
23921
|
+
children: [
|
|
23922
|
+
/*#__PURE__*/ jsx("span", {
|
|
23923
|
+
className: "db-input-addon",
|
|
23924
|
+
children: addonBefore
|
|
23925
|
+
}),
|
|
23926
|
+
control
|
|
23927
|
+
]
|
|
23928
|
+
});
|
|
23929
|
+
}
|
|
23930
|
+
return control;
|
|
23931
|
+
});
|
|
23932
|
+
|
|
23933
|
+
/** Gets whether the native (non-AntD) implementation should render for the given `forceMode`. */ function shouldUseNativeInput(forceMode = 'flag') {
|
|
23934
|
+
if (forceMode === 'native') {
|
|
23935
|
+
return true;
|
|
23936
|
+
}
|
|
23937
|
+
if (forceMode === 'legacy-antd') {
|
|
23938
|
+
return false;
|
|
23939
|
+
}
|
|
23940
|
+
// serverSideSafe (not safex) resolves synchronously at first paint from the server-injected flags,
|
|
23941
|
+
// so it never trips the "flag accessed before the SAFE RPC is ready" guard when an Input renders in
|
|
23942
|
+
// a page's initial chrome. This mirrors the Button/Breadcrumb/Icon native migrations.
|
|
23943
|
+
return serverSideSafe('databricks.fe.designsystem.useNativeInput', false);
|
|
23944
|
+
}
|
|
23945
|
+
|
|
23946
|
+
/**
|
|
23947
|
+
* The Du Bois text input. Renders the native (non-AntD) or AntD-backed implementation per `forceMode`,
|
|
23948
|
+
* which defaults to the `databricks.fe.designsystem.useNativeInput` SAFE flag.
|
|
23949
|
+
*/ const Input$1 = /*#__PURE__*/ forwardRef(function Input({ forceMode, ...props }, ref) {
|
|
23950
|
+
if (shouldUseNativeInput(forceMode)) {
|
|
23951
|
+
return /*#__PURE__*/ jsx(NativeInput, {
|
|
23952
|
+
...props,
|
|
23953
|
+
ref: ref
|
|
23954
|
+
});
|
|
23955
|
+
}
|
|
23956
|
+
return /*#__PURE__*/ jsx(AntDInput, {
|
|
23957
|
+
...props,
|
|
23958
|
+
ref: ref
|
|
23959
|
+
});
|
|
23960
|
+
});
|
|
23961
|
+
|
|
23486
23962
|
const DEFAULT_MIN_DATE = '1900-01-01 00:00:00';
|
|
23487
23963
|
const DEFAULT_MAX_DATE = '2100-12-31 23:59:59';
|
|
23488
23964
|
// Module-level caches for the DatePicker style/className helpers. Their outputs depend
|
|
@@ -25519,6 +25995,38 @@ const getHintColumnStyles = (theme, disabled, textOverflowMode)=>{
|
|
|
25519
25995
|
});
|
|
25520
25996
|
};
|
|
25521
25997
|
|
|
25998
|
+
const ADD_BUTTON_STYLES = /*#__PURE__*/ css(importantify({
|
|
25999
|
+
width: '100%',
|
|
26000
|
+
padding: 0,
|
|
26001
|
+
display: 'flex',
|
|
26002
|
+
alignItems: 'center',
|
|
26003
|
+
borderRadius: 0,
|
|
26004
|
+
'&:focus': {
|
|
26005
|
+
background: 'var(--db-dialog-combobox-option-surface-hover)',
|
|
26006
|
+
outline: 'none'
|
|
26007
|
+
}
|
|
26008
|
+
}));
|
|
26009
|
+
const DialogComboboxAddButton = ({ children, ...restProps })=>{
|
|
26010
|
+
const { theme } = useDesignSystemTheme();
|
|
26011
|
+
const { isInsideDialogCombobox, componentId } = useDialogComboboxContext();
|
|
26012
|
+
if (!isInsideDialogCombobox) {
|
|
26013
|
+
throw new Error('`DialogComboboxAddButton` must be used within `DialogCombobox`');
|
|
26014
|
+
}
|
|
26015
|
+
return /*#__PURE__*/ jsx(Button, {
|
|
26016
|
+
// oxlint-disable-next-line @databricks/no-dynamic-property-value -- Contextual component ID validated through DialogCombobox component exempt:fc0846cb-b73b-401b-834e-75bb8b6d4c20
|
|
26017
|
+
componentId: `${componentId ? componentId : 'design_system.dialogcombobox'}.add_option`,
|
|
26018
|
+
...restProps,
|
|
26019
|
+
type: "tertiary",
|
|
26020
|
+
className: "combobox-footer-add-button",
|
|
26021
|
+
css: /*#__PURE__*/ css({
|
|
26022
|
+
...getComboboxOptionItemWrapperStyles(theme),
|
|
26023
|
+
...ADD_BUTTON_STYLES
|
|
26024
|
+
}),
|
|
26025
|
+
icon: /*#__PURE__*/ jsx(PlusIcon, {}),
|
|
26026
|
+
children: children
|
|
26027
|
+
});
|
|
26028
|
+
};
|
|
26029
|
+
|
|
25522
26030
|
const defaultMaxHeight = 'var(--radix-popover-content-available-height)';
|
|
25523
26031
|
const DialogComboboxContent = /*#__PURE__*/ forwardRef(// eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
25524
26032
|
({ children, loading, loadingDescription = 'DialogComboboxContent', matchTriggerWidth, textOverflowMode, maxHeight, maxWidth, minHeight, minWidth = 240, width, align = 'start', side = 'bottom', sideOffset = 4, onEscapeKeyDown, onKeyDown, forceCloseOnEscape, className, style, ...restProps }, forwardedRef)=>{
|
|
@@ -25635,24 +26143,23 @@ const DialogComboboxContent = /*#__PURE__*/ forwardRef(// eslint-disable-next-li
|
|
|
25635
26143
|
});
|
|
25636
26144
|
});
|
|
25637
26145
|
|
|
25638
|
-
const
|
|
25639
|
-
|
|
25640
|
-
|
|
25641
|
-
|
|
25642
|
-
|
|
25643
|
-
|
|
25644
|
-
|
|
25645
|
-
|
|
25646
|
-
|
|
25647
|
-
|
|
25648
|
-
|
|
26146
|
+
const COUNT_BADGE_STYLES = /*#__PURE__*/ css(importantify({
|
|
26147
|
+
display: 'inline-flex',
|
|
26148
|
+
alignItems: 'center',
|
|
26149
|
+
justifyContent: 'center',
|
|
26150
|
+
boxSizing: 'border-box',
|
|
26151
|
+
padding: 'var(--db-dialog-combobox-count-badge-padding-vertical) var(--db-dialog-combobox-count-badge-padding-horizontal)',
|
|
26152
|
+
background: 'var(--db-dialog-combobox-count-badge-surface)',
|
|
26153
|
+
borderRadius: 'var(--db-dialog-combobox-count-badge-border-radius)',
|
|
26154
|
+
fontSize: 'var(--db-dialog-combobox-count-badge-font-size)',
|
|
26155
|
+
height: 20
|
|
26156
|
+
}));
|
|
25649
26157
|
const DialogComboboxCountBadge = (props)=>{
|
|
25650
26158
|
const { countStartAt, ...restOfProps } = props;
|
|
25651
|
-
const { theme } = useDesignSystemTheme();
|
|
25652
26159
|
const { value } = useDialogComboboxContext();
|
|
25653
26160
|
return /*#__PURE__*/ jsx("div", {
|
|
25654
26161
|
...restOfProps,
|
|
25655
|
-
css:
|
|
26162
|
+
css: COUNT_BADGE_STYLES,
|
|
25656
26163
|
children: Array.isArray(value) ? countStartAt ? `+${value.length - countStartAt}` : value.length : value ? 1 : 0
|
|
25657
26164
|
});
|
|
25658
26165
|
};
|
|
@@ -25761,6 +26268,12 @@ const useDialogComboboxOptionListContext = ()=>{
|
|
|
25761
26268
|
return useContext(DialogComboboxOptionListContext);
|
|
25762
26269
|
};
|
|
25763
26270
|
|
|
26271
|
+
const DISABLED_REASON_ICON_STYLES = /*#__PURE__*/ css({
|
|
26272
|
+
display: 'flex',
|
|
26273
|
+
alignItems: 'center',
|
|
26274
|
+
alignSelf: 'flex-start',
|
|
26275
|
+
marginTop: 'var(--db-dialog-combobox-option-info-icon-spacing)'
|
|
26276
|
+
});
|
|
25764
26277
|
const DuboisDialogComboboxOptionListCheckboxItem = /*#__PURE__*/ forwardRef(({ value, checked, indeterminate, onChange, children, disabledReason, _TYPE, ...props }, ref)=>{
|
|
25765
26278
|
const { theme } = useDesignSystemTheme();
|
|
25766
26279
|
const { textOverflowMode, contentWidth, disableMouseOver, setDisableMouseOver } = useDialogComboboxContext();
|
|
@@ -25776,22 +26289,22 @@ const DuboisDialogComboboxOptionListCheckboxItem = /*#__PURE__*/ forwardRef(({ v
|
|
|
25776
26289
|
let content = children ?? value;
|
|
25777
26290
|
if (props.disabled && disabledReason) {
|
|
25778
26291
|
content = /*#__PURE__*/ jsxs("div", {
|
|
25779
|
-
css: {
|
|
26292
|
+
css: /*#__PURE__*/ css({
|
|
25780
26293
|
display: 'flex'
|
|
25781
|
-
},
|
|
26294
|
+
}),
|
|
25782
26295
|
children: [
|
|
25783
26296
|
/*#__PURE__*/ jsx("div", {
|
|
25784
|
-
css: {
|
|
26297
|
+
css: /*#__PURE__*/ css({
|
|
25785
26298
|
flex: 1,
|
|
25786
26299
|
minWidth: 0
|
|
25787
|
-
},
|
|
26300
|
+
}),
|
|
25788
26301
|
children: content
|
|
25789
26302
|
}),
|
|
25790
26303
|
/*#__PURE__*/ jsx("div", {
|
|
25791
|
-
css: {
|
|
26304
|
+
css: /*#__PURE__*/ css({
|
|
25792
26305
|
display: 'flex',
|
|
25793
26306
|
flexShrink: 0
|
|
25794
|
-
},
|
|
26307
|
+
}),
|
|
25795
26308
|
children: /*#__PURE__*/ jsx(Tooltip, {
|
|
25796
26309
|
componentId: "dialog-combobox-option-list-checkbox-item-disabled-reason-tooltip",
|
|
25797
26310
|
content: disabledReason,
|
|
@@ -25799,12 +26312,7 @@ const DuboisDialogComboboxOptionListCheckboxItem = /*#__PURE__*/ forwardRef(({ v
|
|
|
25799
26312
|
children: /*#__PURE__*/ jsx("span", {
|
|
25800
26313
|
css: [
|
|
25801
26314
|
getInfoIconStyles(theme),
|
|
25802
|
-
|
|
25803
|
-
display: 'flex',
|
|
25804
|
-
alignItems: 'center',
|
|
25805
|
-
alignSelf: 'flex-start',
|
|
25806
|
-
marginTop: theme.spacing.xs / 2
|
|
25807
|
-
}
|
|
26315
|
+
DISABLED_REASON_ICON_STYLES
|
|
25808
26316
|
],
|
|
25809
26317
|
children: /*#__PURE__*/ jsx(InfoSmallIcon, {
|
|
25810
26318
|
"aria-label": "Disabled status information",
|
|
@@ -25859,12 +26367,12 @@ const DuboisDialogComboboxOptionListCheckboxItem = /*#__PURE__*/ forwardRef(({ v
|
|
|
25859
26367
|
handleSelect(e);
|
|
25860
26368
|
},
|
|
25861
26369
|
children: /*#__PURE__*/ jsx("div", {
|
|
25862
|
-
css: {
|
|
26370
|
+
css: /*#__PURE__*/ css({
|
|
25863
26371
|
maxWidth: '100%',
|
|
25864
26372
|
...props.disabled && disabledReason ? {
|
|
25865
26373
|
width: '100%'
|
|
25866
26374
|
} : {}
|
|
25867
|
-
},
|
|
26375
|
+
}),
|
|
25868
26376
|
children: content
|
|
25869
26377
|
})
|
|
25870
26378
|
})
|
|
@@ -25941,7 +26449,7 @@ const getInputGroupStyling = (clsPrefix, theme, buttonSide)=>{
|
|
|
25941
26449
|
}
|
|
25942
26450
|
});
|
|
25943
26451
|
};
|
|
25944
|
-
const
|
|
26452
|
+
const AntDGroup = ({ dangerouslySetAntdProps, dangerouslyAppendEmotionCSS, compact = true, buttonSide = 'right', ...props })=>{
|
|
25945
26453
|
const { classNamePrefix, theme } = useDesignSystemTheme();
|
|
25946
26454
|
return /*#__PURE__*/ jsx(DesignSystemAntDConfigProvider, {
|
|
25947
26455
|
children: /*#__PURE__*/ jsx(Input$2.Group, {
|
|
@@ -25957,12 +26465,43 @@ const Group$1 = ({ dangerouslySetAntdProps, dangerouslyAppendEmotionCSS, compact
|
|
|
25957
26465
|
});
|
|
25958
26466
|
};
|
|
25959
26467
|
|
|
25960
|
-
|
|
26468
|
+
// Styles are not imported here — consumers load them via `@databricks/design-system/src/all-styles.css`.
|
|
26469
|
+
// The seam that fuses the members lives in this component's `NativeGroup.css`; `buttonSide` selects
|
|
26470
|
+
// which side's corners it squares. The Emotion/AntD escape hatches and `prefixCls` have no meaning
|
|
26471
|
+
// here and are dropped so they never reach the DOM.
|
|
26472
|
+
const NativeGroup = ({ dangerouslySetAntdProps, dangerouslyAppendEmotionCSS, prefixCls, buttonSide = 'right', compact = true, className, style, children, ...props })=>{
|
|
26473
|
+
const groupClassNames = classnames(useDuboisThemeClass(), 'db-input-group', {
|
|
26474
|
+
'db-input-group-compact': compact
|
|
26475
|
+
}, buttonSide === 'left' ? 'db-input-group-button-start' : 'db-input-group-button-end', className);
|
|
26476
|
+
return /*#__PURE__*/ jsx("span", {
|
|
26477
|
+
...addDebugOutlineIfEnabled(),
|
|
26478
|
+
className: groupClassNames,
|
|
26479
|
+
style: style,
|
|
26480
|
+
...props,
|
|
26481
|
+
children: children
|
|
26482
|
+
});
|
|
26483
|
+
};
|
|
26484
|
+
|
|
26485
|
+
/**
|
|
26486
|
+
* The Du Bois input group, which joins an Input to an adjacent control (typically a Button) into a
|
|
26487
|
+
* single seamless control. Renders the native (non-AntD) or AntD-backed implementation per
|
|
26488
|
+
* `forceMode`, which defaults to the `databricks.fe.designsystem.useNativeInput` SAFE flag.
|
|
26489
|
+
*/ const Group$1 = ({ forceMode, ...props })=>{
|
|
26490
|
+
return shouldUseNativeInput(forceMode) ? /*#__PURE__*/ jsx(NativeGroup, {
|
|
26491
|
+
...props
|
|
26492
|
+
}) : /*#__PURE__*/ jsx(AntDGroup, {
|
|
26493
|
+
...props
|
|
26494
|
+
});
|
|
26495
|
+
};
|
|
26496
|
+
|
|
26497
|
+
const AntDPassword = /*#__PURE__*/ forwardRef(function AntDPassword({ validationState, autoComplete = 'off', visibilityToggle = false, dangerouslySetAntdProps, dangerouslyAppendEmotionCSS, ...props }, ref) {
|
|
25961
26498
|
const { classNamePrefix, theme } = useDesignSystemTheme();
|
|
25962
26499
|
return /*#__PURE__*/ jsx(DesignSystemAntDConfigProvider, {
|
|
25963
26500
|
children: /*#__PURE__*/ jsx(Input$2.Password, {
|
|
25964
26501
|
...addDebugOutlineIfEnabled(),
|
|
25965
|
-
visibilityToggle:
|
|
26502
|
+
visibilityToggle: visibilityToggle,
|
|
26503
|
+
// The public ref type (InputRef) is a structural subset of antd's Input instance, which is
|
|
26504
|
+
// what antd populates the ref with — safe to cast at this AntD boundary.
|
|
25966
26505
|
ref: ref,
|
|
25967
26506
|
autoComplete: autoComplete,
|
|
25968
26507
|
css: [
|
|
@@ -25977,7 +26516,91 @@ const Password = /*#__PURE__*/ forwardRef(function Password({ validationState, a
|
|
|
25977
26516
|
});
|
|
25978
26517
|
});
|
|
25979
26518
|
|
|
25980
|
-
const
|
|
26519
|
+
const NativePassword = /*#__PURE__*/ forwardRef(function NativePassword({ validationState, autoComplete = 'off', visibilityToggle = false, // Emotion- and AntD-specific escape hatches have no meaning for the native password; drop them
|
|
26520
|
+
// so they never reach the DOM.
|
|
26521
|
+
dangerouslySetAntdProps, dangerouslyAppendEmotionCSS, className, ...props }, ref) {
|
|
26522
|
+
const themeClass = useDuboisThemeClass();
|
|
26523
|
+
const inputRef = useRef(null);
|
|
26524
|
+
const [isVisible, setIsVisible] = useState(false);
|
|
26525
|
+
useImperativeHandle(ref, ()=>({
|
|
26526
|
+
focus: (options)=>inputRef.current && focusWithCursor(inputRef.current, options),
|
|
26527
|
+
blur: ()=>inputRef.current?.blur(),
|
|
26528
|
+
setSelectionRange: (start, end, direction)=>inputRef.current?.setSelectionRange(start, end, direction),
|
|
26529
|
+
select: ()=>inputRef.current?.select(),
|
|
26530
|
+
// Typed non-null to match AntD's public `InputRef.input`; it is null only before mount, which
|
|
26531
|
+
// consumers already treat as unreachable when they hold the ref.
|
|
26532
|
+
get input () {
|
|
26533
|
+
return inputRef.current;
|
|
26534
|
+
},
|
|
26535
|
+
get state () {
|
|
26536
|
+
return {
|
|
26537
|
+
value: inputRef.current?.value ?? ''
|
|
26538
|
+
};
|
|
26539
|
+
},
|
|
26540
|
+
setValue: (value)=>{
|
|
26541
|
+
if (inputRef.current) {
|
|
26542
|
+
inputRef.current.value = value;
|
|
26543
|
+
}
|
|
26544
|
+
}
|
|
26545
|
+
}), []);
|
|
26546
|
+
const containerClassName = getInputContainerClassName({
|
|
26547
|
+
validationState
|
|
26548
|
+
});
|
|
26549
|
+
// Without the toggle the password is a plain masked input; the container styles it directly.
|
|
26550
|
+
if (!visibilityToggle) {
|
|
26551
|
+
return /*#__PURE__*/ jsx("input", {
|
|
26552
|
+
...addDebugOutlineIfEnabled(),
|
|
26553
|
+
ref: inputRef,
|
|
26554
|
+
type: "password",
|
|
26555
|
+
className: classnames(containerClassName, themeClass, className),
|
|
26556
|
+
autoComplete: autoComplete,
|
|
26557
|
+
"data-validation": validationState,
|
|
26558
|
+
...props
|
|
26559
|
+
});
|
|
26560
|
+
}
|
|
26561
|
+
// With the toggle, the border box becomes an affix container and a button in the suffix flips
|
|
26562
|
+
// the value between masked (type="password") and visible (type="text").
|
|
26563
|
+
return /*#__PURE__*/ jsxs("span", {
|
|
26564
|
+
...addDebugOutlineIfEnabled(),
|
|
26565
|
+
className: classnames(containerClassName, 'db-input-affix-container', themeClass, className),
|
|
26566
|
+
"data-validation": validationState,
|
|
26567
|
+
children: [
|
|
26568
|
+
/*#__PURE__*/ jsx("input", {
|
|
26569
|
+
ref: inputRef,
|
|
26570
|
+
type: isVisible ? 'text' : 'password',
|
|
26571
|
+
autoComplete: autoComplete,
|
|
26572
|
+
...props
|
|
26573
|
+
}),
|
|
26574
|
+
/*#__PURE__*/ jsx("span", {
|
|
26575
|
+
className: "db-input-suffix",
|
|
26576
|
+
children: /*#__PURE__*/ jsx("button", {
|
|
26577
|
+
type: "button",
|
|
26578
|
+
"aria-label": isVisible ? 'Hide password' : 'Show password',
|
|
26579
|
+
onClick: ()=>setIsVisible((visible)=>!visible),
|
|
26580
|
+
children: isVisible ? /*#__PURE__*/ jsx(VisibleIcon, {}) : /*#__PURE__*/ jsx(VisibleOffIcon, {})
|
|
26581
|
+
})
|
|
26582
|
+
})
|
|
26583
|
+
]
|
|
26584
|
+
});
|
|
26585
|
+
});
|
|
26586
|
+
|
|
26587
|
+
/**
|
|
26588
|
+
* The Du Bois password input. Renders the native (non-AntD) or AntD-backed implementation per
|
|
26589
|
+
* `forceMode`, which defaults to the `databricks.fe.designsystem.useNativeInput` SAFE flag.
|
|
26590
|
+
*/ const Password = /*#__PURE__*/ forwardRef(function Password({ forceMode, ...props }, ref) {
|
|
26591
|
+
if (shouldUseNativeInput(forceMode)) {
|
|
26592
|
+
return /*#__PURE__*/ jsx(NativePassword, {
|
|
26593
|
+
...props,
|
|
26594
|
+
ref: ref
|
|
26595
|
+
});
|
|
26596
|
+
}
|
|
26597
|
+
return /*#__PURE__*/ jsx(AntDPassword, {
|
|
26598
|
+
...props,
|
|
26599
|
+
ref: ref
|
|
26600
|
+
});
|
|
26601
|
+
});
|
|
26602
|
+
|
|
26603
|
+
const AntDTextArea = /*#__PURE__*/ forwardRef(function AntDTextArea({ validationState, autoComplete = 'off', dangerouslySetAntdProps, dangerouslyAppendEmotionCSS, componentId, analyticsEvents, onChange, onFocus, onKeyDown, onCompositionStart, onCompositionEnd, allowFormSubmitOnEnter = false, ...props }, ref) {
|
|
25981
26604
|
const emitOnView = safex('databricks.fe.observability.defaultComponentView.textArea', false);
|
|
25982
26605
|
const formContext = useFormContext();
|
|
25983
26606
|
const { classNamePrefix, theme } = useDesignSystemTheme();
|
|
@@ -26069,6 +26692,8 @@ const TextArea = /*#__PURE__*/ forwardRef(function TextArea({ validationState, a
|
|
|
26069
26692
|
return /*#__PURE__*/ jsx(DesignSystemAntDConfigProvider, {
|
|
26070
26693
|
children: /*#__PURE__*/ jsx(Input$2.TextArea, {
|
|
26071
26694
|
...addDebugOutlineIfEnabled(),
|
|
26695
|
+
// The public ref type (TextAreaRef) is a structural subset of antd's TextArea instance,
|
|
26696
|
+
// which is what antd populates the ref with — safe to cast at this AntD boundary.
|
|
26072
26697
|
ref: ref,
|
|
26073
26698
|
autoComplete: autoComplete,
|
|
26074
26699
|
css: [
|
|
@@ -26090,6 +26715,201 @@ const TextArea = /*#__PURE__*/ forwardRef(function TextArea({ validationState, a
|
|
|
26090
26715
|
});
|
|
26091
26716
|
});
|
|
26092
26717
|
|
|
26718
|
+
// `field-sizing: content` lets the browser grow the textarea with the content and no JS. Detected
|
|
26719
|
+
// once; when it's unsupported we fall back to measuring scrollHeight ourselves. The `typeof CSS`
|
|
26720
|
+
// guard keeps this safe under server-side rendering. Over 99% of Databricks user sessions are on browsers
|
|
26721
|
+
// that support `field-sizing`.
|
|
26722
|
+
const SUPPORTS_FIELD_SIZING = typeof CSS !== 'undefined' && typeof CSS.supports === 'function' && CSS.supports('field-sizing', 'content');
|
|
26723
|
+
function getRowBounds(autoSize) {
|
|
26724
|
+
return typeof autoSize === 'object' ? autoSize : {};
|
|
26725
|
+
}
|
|
26726
|
+
/** Grows the textarea to fit its content, clamped to the autoSize row bounds (JS fallback path). */ function resizeToContent(textArea, autoSize) {
|
|
26727
|
+
const { minRows, maxRows } = getRowBounds(autoSize);
|
|
26728
|
+
const style = getComputedStyle(textArea);
|
|
26729
|
+
const lineHeight = parseFloat(style.lineHeight);
|
|
26730
|
+
const verticalPadding = parseFloat(style.paddingTop) + parseFloat(style.paddingBottom);
|
|
26731
|
+
const verticalBorder = parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
|
|
26732
|
+
const rowsToHeight = (rows)=>rows * lineHeight + verticalPadding + verticalBorder;
|
|
26733
|
+
// Collapse first so scrollHeight reflects the content, not the current height. scrollHeight
|
|
26734
|
+
// includes padding but not border, and the box is border-box, so add the border back.
|
|
26735
|
+
textArea.style.height = 'auto';
|
|
26736
|
+
let height = textArea.scrollHeight + verticalBorder;
|
|
26737
|
+
if (minRows != null) {
|
|
26738
|
+
height = Math.max(height, rowsToHeight(minRows));
|
|
26739
|
+
}
|
|
26740
|
+
if (maxRows != null) {
|
|
26741
|
+
const maxHeight = rowsToHeight(maxRows);
|
|
26742
|
+
// Once the content exceeds maxRows, cap the height and let the textarea scroll.
|
|
26743
|
+
textArea.style.overflowY = height > maxHeight ? 'auto' : 'hidden';
|
|
26744
|
+
height = Math.min(height, maxHeight);
|
|
26745
|
+
} else {
|
|
26746
|
+
textArea.style.overflowY = 'hidden';
|
|
26747
|
+
}
|
|
26748
|
+
textArea.style.height = `${height}px`;
|
|
26749
|
+
}
|
|
26750
|
+
/**
|
|
26751
|
+
* Drives the textarea's auto-grow. When the browser supports `field-sizing: content` the CSS owns
|
|
26752
|
+
* the height and this is inert; otherwise it measures the content and sets the height directly. Also
|
|
26753
|
+
* reports size changes through `onResize`. Returns `resizeTextarea`, the imperative re-measure the
|
|
26754
|
+
* component exposes on the ref.
|
|
26755
|
+
*/ function useTextAreaAutoSize({ textAreaRef, autoSize, value, onResize }) {
|
|
26756
|
+
const resizeTextarea = useCallback(()=>{
|
|
26757
|
+
const textArea = textAreaRef.current;
|
|
26758
|
+
if (textArea && autoSize && !SUPPORTS_FIELD_SIZING) {
|
|
26759
|
+
resizeToContent(textArea, autoSize);
|
|
26760
|
+
}
|
|
26761
|
+
}, [
|
|
26762
|
+
autoSize,
|
|
26763
|
+
textAreaRef
|
|
26764
|
+
]);
|
|
26765
|
+
// Re-measure on mount and when the controlled value changes; useLayoutEffect avoids a flash of the
|
|
26766
|
+
// wrong height. Typing is handled by the component calling resizeTextarea from its onChange.
|
|
26767
|
+
useLayoutEffect(()=>{
|
|
26768
|
+
resizeTextarea();
|
|
26769
|
+
}, [
|
|
26770
|
+
resizeTextarea,
|
|
26771
|
+
value
|
|
26772
|
+
]);
|
|
26773
|
+
const lastWidthRef = useRef();
|
|
26774
|
+
useEffect(()=>{
|
|
26775
|
+
const textArea = textAreaRef.current;
|
|
26776
|
+
const jsAutoSize = Boolean(autoSize) && !SUPPORTS_FIELD_SIZING;
|
|
26777
|
+
if (!textArea || !onResize && !jsAutoSize) return undefined;
|
|
26778
|
+
const observer = new ResizeObserver(()=>{
|
|
26779
|
+
// A width change re-wraps the text, so the height must be re-measured (JS fallback only).
|
|
26780
|
+
// Guarding on width avoids a feedback loop with our own height writes.
|
|
26781
|
+
if (jsAutoSize && textArea.clientWidth !== lastWidthRef.current) {
|
|
26782
|
+
lastWidthRef.current = textArea.clientWidth;
|
|
26783
|
+
resizeTextarea();
|
|
26784
|
+
}
|
|
26785
|
+
onResize?.({
|
|
26786
|
+
width: textArea.clientWidth,
|
|
26787
|
+
height: textArea.clientHeight
|
|
26788
|
+
});
|
|
26789
|
+
});
|
|
26790
|
+
observer.observe(textArea);
|
|
26791
|
+
return ()=>observer.disconnect();
|
|
26792
|
+
}, [
|
|
26793
|
+
autoSize,
|
|
26794
|
+
onResize,
|
|
26795
|
+
resizeTextarea,
|
|
26796
|
+
textAreaRef
|
|
26797
|
+
]);
|
|
26798
|
+
return {
|
|
26799
|
+
resizeTextarea
|
|
26800
|
+
};
|
|
26801
|
+
}
|
|
26802
|
+
|
|
26803
|
+
// Styles are not imported here — consumers load them via `@databricks/design-system/src/all-styles.css`.
|
|
26804
|
+
// The bordered-box surface is the shared `.db-input` from `mortar/input.css`; the textarea specifics
|
|
26805
|
+
// (auto-grow, resize) are in this component's `NativeTextArea.css`.
|
|
26806
|
+
const NativeTextArea = /*#__PURE__*/ forwardRef(function NativeTextArea({ validationState, autoComplete = 'off', // Emotion- and AntD-specific escape hatches have no meaning for the native textarea; drop them
|
|
26807
|
+
// so they never reach the DOM.
|
|
26808
|
+
dangerouslySetAntdProps, dangerouslyAppendEmotionCSS, // The native textarea does not yet render a clear button, so drop `allowClear` rather than
|
|
26809
|
+
// leaking it onto the DOM element.
|
|
26810
|
+
allowClear, componentId, analyticsEvents, onChange, onFocus, onKeyDown, onPressEnter, onCompositionStart, onCompositionEnd, onResize, allowFormSubmitOnEnter = false, autoSize, rows, style, className, ...props }, ref) {
|
|
26811
|
+
const formContext = useFormContext();
|
|
26812
|
+
const themeClass = useDuboisThemeClass();
|
|
26813
|
+
const { elementRef, dataComponentProps, reportValueChange, resetOnFocus } = useTextFieldAnalytics({
|
|
26814
|
+
componentType: DesignSystemEventProviderComponentTypes.TextArea,
|
|
26815
|
+
componentId,
|
|
26816
|
+
analyticsEvents
|
|
26817
|
+
});
|
|
26818
|
+
const textAreaRef = useRef(null);
|
|
26819
|
+
const mergedRef = useMergeRefs([
|
|
26820
|
+
textAreaRef,
|
|
26821
|
+
elementRef
|
|
26822
|
+
]);
|
|
26823
|
+
const { resizeTextarea } = useTextAreaAutoSize({
|
|
26824
|
+
textAreaRef,
|
|
26825
|
+
autoSize,
|
|
26826
|
+
value: props.value,
|
|
26827
|
+
onResize
|
|
26828
|
+
});
|
|
26829
|
+
const handleChange = useCallback((e)=>{
|
|
26830
|
+
reportValueChange();
|
|
26831
|
+
onChange?.(e);
|
|
26832
|
+
// Re-grow to the new content (JS fallback path; a no-op under field-sizing).
|
|
26833
|
+
resizeTextarea();
|
|
26834
|
+
}, [
|
|
26835
|
+
onChange,
|
|
26836
|
+
reportValueChange,
|
|
26837
|
+
resizeTextarea
|
|
26838
|
+
]);
|
|
26839
|
+
const handleFocus = useTextFieldFocusHandler(onFocus, resetOnFocus);
|
|
26840
|
+
// A textarea submits only on platform Enter by default (plain Enter inserts a newline unless the
|
|
26841
|
+
// caller opts in), and a submit stops the rest of the keydown chain so it doesn't also newline.
|
|
26842
|
+
const { onKeyDown: onKeyDownChain, onCompositionStart: onCompositionStartChain, onCompositionEnd: onCompositionEndChain } = useTextFieldKeyHandlers({
|
|
26843
|
+
formRef: formContext.formRef,
|
|
26844
|
+
allowBasicEnter: allowFormSubmitOnEnter,
|
|
26845
|
+
allowPlatformEnter: true,
|
|
26846
|
+
stopKeyDownAfterSubmit: true,
|
|
26847
|
+
onPressEnter,
|
|
26848
|
+
onKeyDown,
|
|
26849
|
+
onCompositionStart,
|
|
26850
|
+
onCompositionEnd
|
|
26851
|
+
});
|
|
26852
|
+
useImperativeHandle(ref, ()=>({
|
|
26853
|
+
focus: (options)=>textAreaRef.current && focusWithCursor(textAreaRef.current, options),
|
|
26854
|
+
blur: ()=>textAreaRef.current?.blur(),
|
|
26855
|
+
get resizableTextArea () {
|
|
26856
|
+
return textAreaRef.current ? {
|
|
26857
|
+
textArea: textAreaRef.current,
|
|
26858
|
+
resizeTextarea
|
|
26859
|
+
} : undefined;
|
|
26860
|
+
}
|
|
26861
|
+
}), [
|
|
26862
|
+
resizeTextarea
|
|
26863
|
+
]);
|
|
26864
|
+
// autoSize can be `true` (grow from content) or `{ minRows, maxRows }`. The row floor seeds the
|
|
26865
|
+
// `rows` attribute — `field-sizing` treats it as the minimum height — and defaults to one row when
|
|
26866
|
+
// the caller gives no minRows, matching the AntD textarea (whose autoSize floors at the content
|
|
26867
|
+
// height, one row, unless minRows is set). maxRows caps the height: the CSS reads it from
|
|
26868
|
+
// `--db-textarea-max-rows` under `field-sizing`, and the JS fallback clamps to it directly.
|
|
26869
|
+
const { minRows, maxRows } = typeof autoSize === 'object' ? autoSize : {};
|
|
26870
|
+
const autoSizeMinRows = minRows ?? 1;
|
|
26871
|
+
const mergedStyle = maxRows != null ? {
|
|
26872
|
+
...style,
|
|
26873
|
+
'--db-textarea-max-rows': maxRows
|
|
26874
|
+
} : style;
|
|
26875
|
+
return /*#__PURE__*/ jsx("textarea", {
|
|
26876
|
+
...addDebugOutlineIfEnabled(),
|
|
26877
|
+
ref: mergedRef,
|
|
26878
|
+
className: classnames(getInputContainerClassName({
|
|
26879
|
+
validationState
|
|
26880
|
+
}), 'db-input-textarea', {
|
|
26881
|
+
'db-input-textarea-autosize': Boolean(autoSize)
|
|
26882
|
+
}, themeClass, className),
|
|
26883
|
+
autoComplete: autoComplete,
|
|
26884
|
+
rows: autoSize ? autoSizeMinRows : rows,
|
|
26885
|
+
style: mergedStyle,
|
|
26886
|
+
"data-validation": validationState,
|
|
26887
|
+
onChange: handleChange,
|
|
26888
|
+
onFocus: handleFocus,
|
|
26889
|
+
onKeyDown: onKeyDownChain,
|
|
26890
|
+
onCompositionStart: onCompositionStartChain,
|
|
26891
|
+
onCompositionEnd: onCompositionEndChain,
|
|
26892
|
+
...props,
|
|
26893
|
+
...dataComponentProps
|
|
26894
|
+
});
|
|
26895
|
+
});
|
|
26896
|
+
|
|
26897
|
+
/**
|
|
26898
|
+
* The Du Bois multi-line text input. Renders the native (non-AntD) or AntD-backed implementation per
|
|
26899
|
+
* `forceMode`, which defaults to the `databricks.fe.designsystem.useNativeInput` SAFE flag.
|
|
26900
|
+
*/ const TextArea = /*#__PURE__*/ forwardRef(function TextArea({ forceMode, ...props }, ref) {
|
|
26901
|
+
if (shouldUseNativeInput(forceMode)) {
|
|
26902
|
+
return /*#__PURE__*/ jsx(NativeTextArea, {
|
|
26903
|
+
...props,
|
|
26904
|
+
ref: ref
|
|
26905
|
+
});
|
|
26906
|
+
}
|
|
26907
|
+
return /*#__PURE__*/ jsx(AntDTextArea, {
|
|
26908
|
+
...props,
|
|
26909
|
+
ref: ref
|
|
26910
|
+
});
|
|
26911
|
+
});
|
|
26912
|
+
|
|
26093
26913
|
// Properly creates the namespace and dot-notation components with correct types.
|
|
26094
26914
|
const InputNamespace = /* #__PURE__ */ Object.assign(Input$1, {
|
|
26095
26915
|
TextArea,
|
|
@@ -26113,6 +26933,43 @@ const useSelectContext = ()=>{
|
|
|
26113
26933
|
return useContext(SelectContext);
|
|
26114
26934
|
};
|
|
26115
26935
|
|
|
26936
|
+
const OPTION_ITEM_INTERACTION_STYLES = /*#__PURE__*/ css({
|
|
26937
|
+
'&:hover': {
|
|
26938
|
+
background: 'var(--db-dialog-combobox-option-surface-hover)'
|
|
26939
|
+
},
|
|
26940
|
+
'&:focus': {
|
|
26941
|
+
background: 'var(--db-dialog-combobox-option-surface-hover)',
|
|
26942
|
+
outline: 'none'
|
|
26943
|
+
},
|
|
26944
|
+
'&:focus-visible': {
|
|
26945
|
+
'&:not(:hover)': {
|
|
26946
|
+
outlineStyle: 'solid',
|
|
26947
|
+
outlineWidth: 2,
|
|
26948
|
+
outlineOffset: -2,
|
|
26949
|
+
outlineColor: 'var(--db-dialog-combobox-option-focus-ring)'
|
|
26950
|
+
}
|
|
26951
|
+
}
|
|
26952
|
+
});
|
|
26953
|
+
const OPTION_CHECK_ICON_STYLES = /*#__PURE__*/ css({
|
|
26954
|
+
marginTop: 'auto',
|
|
26955
|
+
marginBottom: 'auto',
|
|
26956
|
+
color: 'var(--db-dialog-combobox-option-icon)'
|
|
26957
|
+
});
|
|
26958
|
+
const OPTION_DISABLED_REASON_TITLE_STYLES = /*#__PURE__*/ css({
|
|
26959
|
+
display: 'flex',
|
|
26960
|
+
flexDirection: 'column',
|
|
26961
|
+
flex: '1 1 0',
|
|
26962
|
+
minWidth: 0
|
|
26963
|
+
});
|
|
26964
|
+
const OPTION_DISABLED_REASON_ICON_STYLES = /*#__PURE__*/ css({
|
|
26965
|
+
display: 'flex',
|
|
26966
|
+
alignItems: 'center',
|
|
26967
|
+
alignSelf: 'flex-start',
|
|
26968
|
+
flexShrink: 0,
|
|
26969
|
+
// Nudge the icon down to visually align with the title's first text line —
|
|
26970
|
+
// matches the same offset used by DialogComboboxOptionListCheckboxItem.
|
|
26971
|
+
marginTop: 'var(--db-dialog-combobox-option-info-icon-spacing)'
|
|
26972
|
+
});
|
|
26116
26973
|
const DuboisDialogComboboxOptionListSelectItem = /*#__PURE__*/ forwardRef(// eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
26117
26974
|
({ value, checked, disabledReason, onChange, hintColumn, hintColumnWidthPercent = 50, children, _TYPE, icon, dangerouslyHideCheck, ...props }, ref)=>{
|
|
26118
26975
|
const { theme } = useDesignSystemTheme();
|
|
@@ -26180,15 +27037,7 @@ const DuboisDialogComboboxOptionListSelectItem = /*#__PURE__*/ forwardRef(// esl
|
|
|
26180
27037
|
children: /*#__PURE__*/ jsx("span", {
|
|
26181
27038
|
css: [
|
|
26182
27039
|
getInfoIconStyles(theme),
|
|
26183
|
-
|
|
26184
|
-
display: 'flex',
|
|
26185
|
-
alignItems: 'center',
|
|
26186
|
-
alignSelf: 'flex-start',
|
|
26187
|
-
flexShrink: 0,
|
|
26188
|
-
// Nudge the icon down to visually align with the title's first text line —
|
|
26189
|
-
// matches the same offset used by DialogComboboxOptionListCheckboxItem.
|
|
26190
|
-
marginTop: theme.spacing.xs / 2
|
|
26191
|
-
}
|
|
27040
|
+
OPTION_DISABLED_REASON_ICON_STYLES
|
|
26192
27041
|
],
|
|
26193
27042
|
children: /*#__PURE__*/ jsx(InfoSmallIcon, {
|
|
26194
27043
|
"aria-label": "Disabled status information",
|
|
@@ -26200,23 +27049,7 @@ const DuboisDialogComboboxOptionListSelectItem = /*#__PURE__*/ forwardRef(// esl
|
|
|
26200
27049
|
ref: itemRef,
|
|
26201
27050
|
css: [
|
|
26202
27051
|
getComboboxOptionItemWrapperStyles(theme),
|
|
26203
|
-
|
|
26204
|
-
'&:hover': {
|
|
26205
|
-
background: theme.colors.actionTertiaryBackgroundHover
|
|
26206
|
-
},
|
|
26207
|
-
'&:focus': {
|
|
26208
|
-
background: theme.colors.actionTertiaryBackgroundHover,
|
|
26209
|
-
outline: 'none'
|
|
26210
|
-
},
|
|
26211
|
-
'&:focus-visible': {
|
|
26212
|
-
'&:not(:hover)': {
|
|
26213
|
-
outlineStyle: 'solid',
|
|
26214
|
-
outlineWidth: 2,
|
|
26215
|
-
outlineOffset: -2,
|
|
26216
|
-
outlineColor: theme.colors.actionDefaultBorderFocus
|
|
26217
|
-
}
|
|
26218
|
-
}
|
|
26219
|
-
}
|
|
27052
|
+
OPTION_ITEM_INTERACTION_STYLES
|
|
26220
27053
|
],
|
|
26221
27054
|
...props,
|
|
26222
27055
|
onClick: (e)=>{
|
|
@@ -26238,11 +27071,7 @@ const DuboisDialogComboboxOptionListSelectItem = /*#__PURE__*/ forwardRef(// esl
|
|
|
26238
27071
|
"aria-selected": checked,
|
|
26239
27072
|
children: [
|
|
26240
27073
|
!dangerouslyHideCheck && (checked ? /*#__PURE__*/ jsx(CheckIcon, {
|
|
26241
|
-
css:
|
|
26242
|
-
marginTop: 'auto',
|
|
26243
|
-
marginBottom: 'auto',
|
|
26244
|
-
color: theme.colors.textSecondary
|
|
26245
|
-
}
|
|
27074
|
+
css: OPTION_CHECK_ICON_STYLES
|
|
26246
27075
|
}) : /*#__PURE__*/ jsx("div", {
|
|
26247
27076
|
style: {
|
|
26248
27077
|
width: 16,
|
|
@@ -26267,8 +27096,8 @@ const DuboisDialogComboboxOptionListSelectItem = /*#__PURE__*/ forwardRef(// esl
|
|
|
26267
27096
|
style: {
|
|
26268
27097
|
position: 'relative',
|
|
26269
27098
|
top: 1,
|
|
26270
|
-
marginRight:
|
|
26271
|
-
color:
|
|
27099
|
+
marginRight: 'var(--db-dialog-combobox-option-icon-spacing)',
|
|
27100
|
+
color: 'var(--db-dialog-combobox-option-icon)'
|
|
26272
27101
|
},
|
|
26273
27102
|
children: icon
|
|
26274
27103
|
}),
|
|
@@ -26284,12 +27113,7 @@ const DuboisDialogComboboxOptionListSelectItem = /*#__PURE__*/ forwardRef(// esl
|
|
|
26284
27113
|
}) : isDisabledWithReason ? // Column-flex so a `DialogComboboxHintRow` child stacks below the title and so
|
|
26285
27114
|
// the title wraps by word (not one-character-per-line) inside narrow containers.
|
|
26286
27115
|
/*#__PURE__*/ jsx("div", {
|
|
26287
|
-
css:
|
|
26288
|
-
display: 'flex',
|
|
26289
|
-
flexDirection: 'column',
|
|
26290
|
-
flex: '1 1 0',
|
|
26291
|
-
minWidth: 0
|
|
26292
|
-
},
|
|
27116
|
+
css: OPTION_DISABLED_REASON_TITLE_STYLES,
|
|
26293
27117
|
children: titleNode
|
|
26294
27118
|
}) : titleNode,
|
|
26295
27119
|
disabledReasonIcon
|
|
@@ -26315,15 +27139,15 @@ const DialogComboboxSectionHeader = ({ children, ...props })=>{
|
|
|
26315
27139
|
};
|
|
26316
27140
|
|
|
26317
27141
|
/**
|
|
26318
|
-
* Small `DialogComboboxTrigger` outer height stays
|
|
27142
|
+
* Small `DialogComboboxTrigger` outer height stays 24px (`--db-dialog-combobox-trigger-height-small`). The inner value
|
|
26319
27143
|
* row uses `calc(lineHeightBase + Npx)` with this `N` so descenders are not clipped.
|
|
26320
27144
|
* Requires `theme.typography.lineHeightBase` to be a CSS length (e.g. `20px`) so `calc` is valid.
|
|
26321
27145
|
*/ const SMALL_TRIGGER_VALUE_ROW_EXTRA_PX = 2;
|
|
26322
|
-
const getTriggerWrapperStyles = (
|
|
27146
|
+
const getTriggerWrapperStyles = (clsPrefix, removable, disabled, width)=>/*#__PURE__*/ css(importantify({
|
|
26323
27147
|
display: 'inline-flex',
|
|
26324
27148
|
alignItems: 'center',
|
|
26325
27149
|
[`& + .${clsPrefix}-form-message`]: {
|
|
26326
|
-
marginTop:
|
|
27150
|
+
marginTop: 'var(--db-dialog-combobox-trigger-message-spacing)'
|
|
26327
27151
|
},
|
|
26328
27152
|
...width && {
|
|
26329
27153
|
width: width
|
|
@@ -26349,7 +27173,7 @@ const getTriggerStyles$1 = (theme, disabled = false, maxWidth, minWidth, removab
|
|
|
26349
27173
|
}
|
|
26350
27174
|
}
|
|
26351
27175
|
};
|
|
26352
|
-
const validationColor =
|
|
27176
|
+
const validationColor = validationState ? `var(--db-dialog-combobox-trigger-${validationState}-border)` : undefined;
|
|
26353
27177
|
return /*#__PURE__*/ css(importantify({
|
|
26354
27178
|
position: 'relative',
|
|
26355
27179
|
display: 'inline-flex',
|
|
@@ -26358,17 +27182,17 @@ const getTriggerStyles$1 = (theme, disabled = false, maxWidth, minWidth, removab
|
|
|
26358
27182
|
minWidth,
|
|
26359
27183
|
justifyContent: 'flex-start',
|
|
26360
27184
|
background: 'transparent',
|
|
26361
|
-
padding: isBare ? 0 : triggerSize === 'small' ? '0
|
|
27185
|
+
padding: isBare ? 0 : triggerSize === 'small' ? '0 var(--db-dialog-combobox-trigger-padding-horizontal)' : 'var(--db-dialog-combobox-trigger-padding-vertical) var(--db-dialog-combobox-trigger-padding-horizontal) var(--db-dialog-combobox-trigger-padding-vertical) var(--db-dialog-combobox-trigger-padding-horizontal-start)',
|
|
26362
27186
|
boxSizing: 'border-box',
|
|
26363
|
-
height: isBare ? theme.typography.lineHeightBase : triggerSize === 'small' ?
|
|
26364
|
-
border: isBare ? 'none' :
|
|
27187
|
+
height: isBare ? theme.typography.lineHeightBase : triggerSize === 'small' ? 'var(--db-dialog-combobox-trigger-height-small)' : 'var(--db-dialog-combobox-trigger-height)',
|
|
27188
|
+
border: isBare ? 'none' : '1px solid var(--db-dialog-combobox-trigger-border)',
|
|
26365
27189
|
...!isBare && {
|
|
26366
27190
|
boxShadow: 'none'
|
|
26367
27191
|
},
|
|
26368
|
-
borderRadius:
|
|
26369
|
-
color:
|
|
27192
|
+
borderRadius: 'var(--db-dialog-combobox-trigger-border-radius)',
|
|
27193
|
+
color: 'var(--db-dialog-combobox-trigger-text)',
|
|
26370
27194
|
lineHeight: theme.typography.lineHeightBase,
|
|
26371
|
-
fontSize:
|
|
27195
|
+
fontSize: 'var(--db-dialog-combobox-trigger-font-size)',
|
|
26372
27196
|
cursor: 'pointer',
|
|
26373
27197
|
...width && {
|
|
26374
27198
|
width: width,
|
|
@@ -26381,17 +27205,17 @@ const getTriggerStyles$1 = (theme, disabled = false, maxWidth, minWidth, removab
|
|
|
26381
27205
|
borderRightColor: 'transparent'
|
|
26382
27206
|
},
|
|
26383
27207
|
'&:hover': {
|
|
26384
|
-
background: isBare ? 'transparent' :
|
|
26385
|
-
borderColor:
|
|
27208
|
+
background: isBare ? 'transparent' : 'var(--db-dialog-combobox-trigger-surface-hover)',
|
|
27209
|
+
borderColor: 'var(--db-dialog-combobox-trigger-border-hover)',
|
|
26386
27210
|
...removeButtonInteractionStyles
|
|
26387
27211
|
},
|
|
26388
27212
|
'&:focus': {
|
|
26389
|
-
borderColor:
|
|
27213
|
+
borderColor: 'var(--db-dialog-combobox-trigger-focus-ring)',
|
|
26390
27214
|
outline: 'none',
|
|
26391
27215
|
...removeButtonInteractionStyles
|
|
26392
27216
|
},
|
|
26393
27217
|
'&:focus, &[data-state="open"]': {
|
|
26394
|
-
outlineColor:
|
|
27218
|
+
outlineColor: 'var(--db-dialog-combobox-trigger-focus-ring)',
|
|
26395
27219
|
outlineWidth: 2,
|
|
26396
27220
|
outlineOffset: -2,
|
|
26397
27221
|
outlineStyle: 'solid'
|
|
@@ -26411,21 +27235,24 @@ const getTriggerStyles$1 = (theme, disabled = false, maxWidth, minWidth, removab
|
|
|
26411
27235
|
background: 'transparent'
|
|
26412
27236
|
},
|
|
26413
27237
|
'&&:hover': {
|
|
26414
|
-
borderColor:
|
|
27238
|
+
borderColor: 'var(--db-dialog-combobox-trigger-border-hover)'
|
|
26415
27239
|
},
|
|
26416
27240
|
'&&:focus, &[data-state="open"]': {
|
|
26417
27241
|
borderColor: 'transparent'
|
|
26418
27242
|
}
|
|
26419
27243
|
},
|
|
26420
27244
|
[`&[disabled]`]: {
|
|
26421
|
-
background:
|
|
26422
|
-
color:
|
|
27245
|
+
background: 'var(--db-dialog-combobox-trigger-surface-disabled)',
|
|
27246
|
+
color: 'var(--db-dialog-combobox-trigger-text-disabled)',
|
|
26423
27247
|
pointerEvents: 'none',
|
|
26424
27248
|
userSelect: 'none',
|
|
26425
|
-
borderColor:
|
|
27249
|
+
borderColor: 'var(--db-dialog-combobox-trigger-border-disabled)'
|
|
26426
27250
|
}
|
|
26427
27251
|
}));
|
|
26428
27252
|
};
|
|
27253
|
+
const TRIGGER_PLACEHOLDER_STYLES = /*#__PURE__*/ css({
|
|
27254
|
+
color: 'var(--db-dialog-combobox-trigger-placeholder-text)'
|
|
27255
|
+
});
|
|
26429
27256
|
const DialogComboboxTrigger = /*#__PURE__*/ forwardRef(// eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
26430
27257
|
({ removable = false, onRemove, children, minWidth = 0, maxWidth = 9999, showTagAfterValueCount = 3, allowClear = true, controlled, onClear, wrapperProps, width, withChevronIcon = true, validationState, withInlineLabel = true, placeholder, id: legacyId, isBare = false, triggerSize = 'middle', renderDisplayedValue: formatDisplayedValue = (value)=>value, ...restProps }, forwardedRef)=>{
|
|
26431
27258
|
const { theme, classNamePrefix } = useDesignSystemTheme();
|
|
@@ -26435,6 +27262,7 @@ const DialogComboboxTrigger = /*#__PURE__*/ forwardRef(// eslint-disable-next-li
|
|
|
26435
27262
|
if (!isInsideDialogCombobox) {
|
|
26436
27263
|
throw new Error('`DialogComboboxTrigger` must be used within `DialogCombobox`');
|
|
26437
27264
|
}
|
|
27265
|
+
// No v2 line-height token. TODO(FEINF-6557): adopt one when it lands.
|
|
26438
27266
|
const lineHeightBase = theme.typography.lineHeightBase;
|
|
26439
27267
|
const valueRowHeight = useMemo(()=>triggerSize === 'small' ? `calc(${lineHeightBase} + ${SMALL_TRIGGER_VALUE_ROW_EXTRA_PX}px)` : lineHeightBase, [
|
|
26440
27268
|
triggerSize,
|
|
@@ -26561,9 +27389,7 @@ const DialogComboboxTrigger = /*#__PURE__*/ forwardRef(// eslint-disable-next-li
|
|
|
26561
27389
|
}),
|
|
26562
27390
|
ref: triggerContentRef,
|
|
26563
27391
|
children: value?.length ? customSelectContent ?? displayedValues : /*#__PURE__*/ jsx("span", {
|
|
26564
|
-
css:
|
|
26565
|
-
color: theme.colors.textPlaceholder
|
|
26566
|
-
}),
|
|
27392
|
+
css: TRIGGER_PLACEHOLDER_STYLES,
|
|
26567
27393
|
children: selectPlaceholder
|
|
26568
27394
|
})
|
|
26569
27395
|
}),
|
|
@@ -26572,8 +27398,8 @@ const DialogComboboxTrigger = /*#__PURE__*/ forwardRef(// eslint-disable-next-li
|
|
|
26572
27398
|
}) : null,
|
|
26573
27399
|
/*#__PURE__*/ jsx(ChevronDownIcon, {
|
|
26574
27400
|
css: /*#__PURE__*/ css({
|
|
26575
|
-
marginLeft:
|
|
26576
|
-
color: restProps.disabled ?
|
|
27401
|
+
marginLeft: 'var(--db-dialog-combobox-trigger-value-gap)',
|
|
27402
|
+
color: restProps.disabled ? 'var(--db-dialog-combobox-trigger-text-disabled)' : 'var(--db-dialog-combobox-trigger-icon)'
|
|
26577
27403
|
})
|
|
26578
27404
|
})
|
|
26579
27405
|
]
|
|
@@ -26609,7 +27435,7 @@ const DialogComboboxTrigger = /*#__PURE__*/ forwardRef(// eslint-disable-next-li
|
|
|
26609
27435
|
css: /*#__PURE__*/ css({
|
|
26610
27436
|
height: valueRowHeight,
|
|
26611
27437
|
lineHeight: theme.typography.lineHeightBase,
|
|
26612
|
-
marginRight:
|
|
27438
|
+
marginRight: 'var(--db-dialog-combobox-trigger-value-gap)',
|
|
26613
27439
|
whiteSpace: 'unset',
|
|
26614
27440
|
overflow: 'unset',
|
|
26615
27441
|
textOverflow: 'unset'
|
|
@@ -26619,16 +27445,14 @@ const DialogComboboxTrigger = /*#__PURE__*/ forwardRef(// eslint-disable-next-li
|
|
|
26619
27445
|
value?.length ? ':' : null
|
|
26620
27446
|
]
|
|
26621
27447
|
}) : !value?.length && /*#__PURE__*/ jsx("span", {
|
|
26622
|
-
css:
|
|
26623
|
-
color: theme.colors.textPlaceholder
|
|
26624
|
-
}),
|
|
27448
|
+
css: TRIGGER_PLACEHOLDER_STYLES,
|
|
26625
27449
|
children: placeholder
|
|
26626
27450
|
}),
|
|
26627
27451
|
value?.length > showTagAfterValueCount ? /*#__PURE__*/ jsxs(Fragment, {
|
|
26628
27452
|
children: [
|
|
26629
27453
|
/*#__PURE__*/ jsx("span", {
|
|
26630
27454
|
style: {
|
|
26631
|
-
marginRight:
|
|
27455
|
+
marginRight: 'var(--db-dialog-combobox-trigger-value-gap)'
|
|
26632
27456
|
},
|
|
26633
27457
|
children: valuesBeforeBadge
|
|
26634
27458
|
}),
|
|
@@ -26646,9 +27470,9 @@ const DialogComboboxTrigger = /*#__PURE__*/ forwardRef(// eslint-disable-next-li
|
|
|
26646
27470
|
}) : null,
|
|
26647
27471
|
withChevronIcon ? /*#__PURE__*/ jsx(ChevronDownIcon, {
|
|
26648
27472
|
css: /*#__PURE__*/ css({
|
|
26649
|
-
color: restProps.disabled ?
|
|
27473
|
+
color: restProps.disabled ? 'var(--db-dialog-combobox-trigger-text-disabled)' : 'var(--db-dialog-combobox-trigger-icon)',
|
|
26650
27474
|
justifySelf: 'flex-end',
|
|
26651
|
-
marginLeft:
|
|
27475
|
+
marginLeft: 'var(--db-dialog-combobox-trigger-value-gap)'
|
|
26652
27476
|
})
|
|
26653
27477
|
}) : null
|
|
26654
27478
|
]
|
|
@@ -26658,7 +27482,7 @@ const DialogComboboxTrigger = /*#__PURE__*/ forwardRef(// eslint-disable-next-li
|
|
|
26658
27482
|
...wrapperProps,
|
|
26659
27483
|
className: `${restProps?.className ?? ''} ${dialogComboboxClassname} ${selectV2Classname}`.trim(),
|
|
26660
27484
|
css: [
|
|
26661
|
-
getTriggerWrapperStyles(
|
|
27485
|
+
getTriggerWrapperStyles(classNamePrefix, removable, restProps.disabled, width),
|
|
26662
27486
|
wrapperProps?.css
|
|
26663
27487
|
],
|
|
26664
27488
|
...addDebugOutlineIfEnabled(),
|
|
@@ -33157,22 +33981,19 @@ const RadioGroupContext = /*#__PURE__*/ React__default.createContext('medium');
|
|
|
33157
33981
|
const DEFAULT_ANALYTICS_EVENTS$1 = [
|
|
33158
33982
|
DesignSystemEventProviderAnalyticsEventTypes.OnValueChange
|
|
33159
33983
|
];
|
|
33160
|
-
|
|
33161
|
-
|
|
33162
|
-
|
|
33163
|
-
|
|
33164
|
-
|
|
33165
|
-
|
|
33166
|
-
|
|
33167
|
-
const getMemoizedItemIconCss = memoize((theme, size)=>({
|
|
33168
|
-
marginRight: size === 'large' ? theme.spacing.sm : theme.spacing.xs,
|
|
33984
|
+
const rootCss = {
|
|
33985
|
+
display: 'flex',
|
|
33986
|
+
flexWrap: 'wrap',
|
|
33987
|
+
gap: 'var(--db-pill-control-gap)'
|
|
33988
|
+
};
|
|
33989
|
+
const getItemIconCss = memoize((size)=>({
|
|
33990
|
+
marginRight: size === 'large' ? 'var(--db-pill-control-icon-gap-large)' : 'var(--db-pill-control-icon-gap)',
|
|
33169
33991
|
[`& > ${getIconClassName()}`]: {
|
|
33170
|
-
verticalAlign:
|
|
33992
|
+
verticalAlign: '-3px'
|
|
33171
33993
|
}
|
|
33172
|
-
})
|
|
33994
|
+
}));
|
|
33173
33995
|
const Root$3 = /*#__PURE__*/ React__default.forwardRef(// eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
33174
33996
|
({ size, componentId, analyticsEvents = DEFAULT_ANALYTICS_EVENTS$1, valueHasNoPii, onValueChange, ...props }, forwardedRef)=>{
|
|
33175
|
-
const { theme } = useDesignSystemTheme();
|
|
33176
33997
|
const contextValue = React__default.useMemo(()=>size ?? 'medium', [
|
|
33177
33998
|
size
|
|
33178
33999
|
]);
|
|
@@ -33200,7 +34021,7 @@ const Root$3 = /*#__PURE__*/ React__default.forwardRef(// eslint-disable-next-li
|
|
|
33200
34021
|
return /*#__PURE__*/ jsx(RadioGroupContext.Provider, {
|
|
33201
34022
|
value: contextValue,
|
|
33202
34023
|
children: /*#__PURE__*/ jsx(RadioGroup$2, {
|
|
33203
|
-
css:
|
|
34024
|
+
css: rootCss,
|
|
33204
34025
|
onValueChange: onValueChangeWrapper,
|
|
33205
34026
|
...props,
|
|
33206
34027
|
ref: mergedRef,
|
|
@@ -33220,7 +34041,7 @@ const Item = // eslint-disable-next-line react-component-name/react-component-na
|
|
|
33220
34041
|
children: [
|
|
33221
34042
|
icon && /*#__PURE__*/ jsx("span", {
|
|
33222
34043
|
className: iconClass,
|
|
33223
|
-
css:
|
|
34044
|
+
css: getItemIconCss(size),
|
|
33224
34045
|
children: icon
|
|
33225
34046
|
}),
|
|
33226
34047
|
children
|
|
@@ -33236,95 +34057,95 @@ const getRadioGroupItemStyles = (theme, size, iconClass)=>{
|
|
|
33236
34057
|
appearance: 'none',
|
|
33237
34058
|
textDecoration: 'none',
|
|
33238
34059
|
background: 'none',
|
|
33239
|
-
border: '
|
|
34060
|
+
border: 'var(--db-pill-control-border-width) solid',
|
|
33240
34061
|
cursor: 'pointer',
|
|
33241
|
-
backgroundColor:
|
|
33242
|
-
borderColor:
|
|
33243
|
-
color:
|
|
34062
|
+
backgroundColor: 'var(--db-pill-control-surface)',
|
|
34063
|
+
borderColor: 'var(--db-pill-control-border)',
|
|
34064
|
+
color: 'var(--db-pill-control-text)',
|
|
34065
|
+
// No v2 line-height token. TODO(FEINF-6557): adopt one when it lands.
|
|
33244
34066
|
lineHeight: theme.typography.lineHeightBase,
|
|
33245
|
-
height:
|
|
33246
|
-
paddingInline: '
|
|
33247
|
-
fontWeight:
|
|
33248
|
-
fontSize:
|
|
33249
|
-
borderRadius:
|
|
33250
|
-
transition: 'background-color
|
|
34067
|
+
height: 'var(--db-pill-control-size)',
|
|
34068
|
+
paddingInline: 'var(--db-pill-control-padding-inline)',
|
|
34069
|
+
fontWeight: 'var(--db-pill-control-font-weight)',
|
|
34070
|
+
fontSize: 'var(--db-pill-control-font-size)',
|
|
34071
|
+
borderRadius: 'var(--db-pill-control-border-radius)',
|
|
34072
|
+
transition: 'background-color var(--db-pill-control-transition-duration) ease-in-out, border-color var(--db-pill-control-transition-duration) ease-in-out',
|
|
33251
34073
|
[`& > .${iconClass}`]: {
|
|
33252
|
-
color:
|
|
34074
|
+
color: 'var(--db-pill-control-icon)',
|
|
33253
34075
|
...size === 'large' ? {
|
|
33254
|
-
backgroundColor:
|
|
33255
|
-
padding:
|
|
33256
|
-
borderRadius:
|
|
34076
|
+
backgroundColor: 'var(--db-pill-control-icon-surface)',
|
|
34077
|
+
padding: 'var(--db-pill-control-icon-surface-padding)',
|
|
34078
|
+
borderRadius: 'var(--db-pill-control-border-radius)'
|
|
33257
34079
|
} : {}
|
|
33258
34080
|
},
|
|
33259
34081
|
'&[data-state="checked"]': {
|
|
33260
|
-
backgroundColor:
|
|
33261
|
-
borderColor: '
|
|
33262
|
-
color:
|
|
33263
|
-
// outline
|
|
34082
|
+
backgroundColor: 'var(--db-pill-control-surface-checked)',
|
|
34083
|
+
borderColor: 'var(--db-pill-control-border-checked)',
|
|
34084
|
+
color: 'var(--db-pill-control-text)',
|
|
33264
34085
|
outlineStyle: 'solid',
|
|
33265
|
-
outlineWidth: '
|
|
34086
|
+
outlineWidth: 'var(--db-pill-control-focus-ring-width)',
|
|
33266
34087
|
outlineOffset: '0px',
|
|
33267
|
-
outlineColor:
|
|
34088
|
+
outlineColor: 'var(--db-pill-control-focus-ring)',
|
|
33268
34089
|
'&:hover': {
|
|
33269
|
-
backgroundColor:
|
|
33270
|
-
borderColor:
|
|
34090
|
+
backgroundColor: 'var(--db-pill-control-surface-checked)',
|
|
34091
|
+
borderColor: 'var(--db-pill-control-border-checked-hover)',
|
|
33271
34092
|
color: 'inherit'
|
|
33272
34093
|
},
|
|
33273
34094
|
[`& > .${iconClass}, &:hover > .${iconClass}`]: {
|
|
33274
|
-
color:
|
|
34095
|
+
color: 'var(--db-pill-control-text-checked)',
|
|
33275
34096
|
...size === 'large' ? {
|
|
33276
|
-
backgroundColor:
|
|
34097
|
+
backgroundColor: 'var(--db-pill-control-icon-surface-checked)'
|
|
33277
34098
|
} : {}
|
|
33278
34099
|
}
|
|
33279
34100
|
},
|
|
33280
34101
|
'&:focus-visible': {
|
|
33281
34102
|
outlineStyle: 'solid',
|
|
33282
|
-
outlineWidth: '
|
|
34103
|
+
outlineWidth: 'var(--db-pill-control-focus-ring-width)',
|
|
33283
34104
|
outlineOffset: '0px',
|
|
33284
|
-
outlineColor:
|
|
34105
|
+
outlineColor: 'var(--db-pill-control-focus-ring)'
|
|
33285
34106
|
},
|
|
33286
34107
|
'&:hover': {
|
|
33287
|
-
backgroundColor:
|
|
33288
|
-
borderColor:
|
|
33289
|
-
color:
|
|
34108
|
+
backgroundColor: 'var(--db-pill-control-surface-hover)',
|
|
34109
|
+
borderColor: 'var(--db-pill-control-border-hover)',
|
|
34110
|
+
color: 'var(--db-pill-control-text-hover)',
|
|
33290
34111
|
[`& > .${iconClass}`]: {
|
|
33291
34112
|
color: 'inherit',
|
|
33292
34113
|
...size === 'large' ? {
|
|
33293
|
-
backgroundColor:
|
|
34114
|
+
backgroundColor: 'var(--db-pill-control-icon-surface-hover)'
|
|
33294
34115
|
} : {}
|
|
33295
34116
|
}
|
|
33296
34117
|
},
|
|
33297
34118
|
'&:active': {
|
|
33298
|
-
backgroundColor:
|
|
33299
|
-
borderColor:
|
|
33300
|
-
color:
|
|
34119
|
+
backgroundColor: 'var(--db-pill-control-surface-active)',
|
|
34120
|
+
borderColor: 'var(--db-pill-control-border-active)',
|
|
34121
|
+
color: 'var(--db-pill-control-text-active)',
|
|
33301
34122
|
[`& > .${iconClass}`]: {
|
|
33302
34123
|
color: 'inherit',
|
|
33303
34124
|
...size === 'large' ? {
|
|
33304
|
-
backgroundColor:
|
|
34125
|
+
backgroundColor: 'var(--db-pill-control-icon-surface-active)'
|
|
33305
34126
|
} : {}
|
|
33306
34127
|
}
|
|
33307
34128
|
},
|
|
33308
34129
|
'&:disabled': {
|
|
33309
|
-
backgroundColor:
|
|
33310
|
-
borderColor:
|
|
33311
|
-
color:
|
|
34130
|
+
backgroundColor: 'var(--db-pill-control-surface-disabled)',
|
|
34131
|
+
borderColor: 'var(--db-pill-control-border-disabled)',
|
|
34132
|
+
color: 'var(--db-pill-control-text-disabled)',
|
|
33312
34133
|
cursor: 'not-allowed',
|
|
33313
34134
|
[`& > .${iconClass}`]: {
|
|
33314
34135
|
color: 'inherit'
|
|
33315
34136
|
}
|
|
33316
34137
|
},
|
|
33317
34138
|
...size === 'small' ? {
|
|
33318
|
-
height:
|
|
34139
|
+
height: 'var(--db-pill-control-size-small)',
|
|
33319
34140
|
lineHeight: theme.typography.lineHeightSm,
|
|
33320
|
-
paddingInline:
|
|
34141
|
+
paddingInline: 'var(--db-pill-control-padding-inline-small)'
|
|
33321
34142
|
} : {},
|
|
33322
34143
|
...size === 'large' ? {
|
|
33323
|
-
height:
|
|
34144
|
+
height: 'var(--db-pill-control-size-large)',
|
|
33324
34145
|
lineHeight: theme.typography.lineHeightXl,
|
|
33325
|
-
paddingInline:
|
|
33326
|
-
paddingInlineStart: '
|
|
33327
|
-
borderRadius:
|
|
34146
|
+
paddingInline: 'var(--db-pill-control-padding-inline-large)',
|
|
34147
|
+
paddingInlineStart: 'var(--db-pill-control-padding-inline-start-large)',
|
|
34148
|
+
borderRadius: 'var(--db-pill-control-border-radius)'
|
|
33328
34149
|
} : {}
|
|
33329
34150
|
};
|
|
33330
34151
|
};
|
|
@@ -33748,7 +34569,7 @@ const RadioTile = (props)=>{
|
|
|
33748
34569
|
|
|
33749
34570
|
// TODO(GP): Add this to common spacing vars; I didn't want to make a decision on the value right now,
|
|
33750
34571
|
// so copied it from `Button`.
|
|
33751
|
-
const SMALL_BUTTON_HEIGHT
|
|
34572
|
+
const SMALL_BUTTON_HEIGHT = 24;
|
|
33752
34573
|
const DEFAULT_ANALYTICS_EVENTS_WITHOUT_VIEW$2 = [
|
|
33753
34574
|
DesignSystemEventProviderAnalyticsEventTypes.OnValueChange
|
|
33754
34575
|
];
|
|
@@ -33880,7 +34701,7 @@ function getSegmentedControlButtonEmotionStyles(clsPrefix, theme, size, spaced =
|
|
|
33880
34701
|
}
|
|
33881
34702
|
},
|
|
33882
34703
|
[`&${classWrapper}, ${classButton}`]: {
|
|
33883
|
-
height: size === 'middle' ? theme.general.heightSm : SMALL_BUTTON_HEIGHT
|
|
34704
|
+
height: size === 'middle' ? theme.general.heightSm : SMALL_BUTTON_HEIGHT,
|
|
33884
34705
|
lineHeight: theme.typography.lineHeightBase,
|
|
33885
34706
|
alignItems: 'center'
|
|
33886
34707
|
},
|
|
@@ -33953,7 +34774,7 @@ function getSegmentedControlButtonEmotionStyles(clsPrefix, theme, size, spaced =
|
|
|
33953
34774
|
}
|
|
33954
34775
|
},
|
|
33955
34776
|
[`&${classWrapper}, ${classButton}`]: {
|
|
33956
|
-
height: size === 'middle' ? theme.general.heightSm : SMALL_BUTTON_HEIGHT
|
|
34777
|
+
height: size === 'middle' ? theme.general.heightSm : SMALL_BUTTON_HEIGHT,
|
|
33957
34778
|
lineHeight: theme.typography.lineHeightBase,
|
|
33958
34779
|
alignItems: 'center'
|
|
33959
34780
|
},
|
|
@@ -34189,12 +35010,12 @@ const CollapseButton = /*#__PURE__*/ forwardRef(function CollapseButton({ isExpa
|
|
|
34189
35010
|
width: ROUND_BUTTON_SIZE,
|
|
34190
35011
|
height: ROUND_BUTTON_SIZE,
|
|
34191
35012
|
borderRadius: '50%',
|
|
34192
|
-
background:
|
|
35013
|
+
background: 'var(--db-sidebar-collapse-button-surface)',
|
|
34193
35014
|
display: 'flex',
|
|
34194
35015
|
alignItems: 'center',
|
|
34195
35016
|
justifyContent: 'center',
|
|
34196
35017
|
cursor: 'pointer',
|
|
34197
|
-
boxShadow:
|
|
35018
|
+
boxShadow: '0 0 0 1px var(--db-sidebar-border)',
|
|
34198
35019
|
outline: 'none',
|
|
34199
35020
|
...hiddenByDefault && {
|
|
34200
35021
|
opacity: 0,
|
|
@@ -34203,18 +35024,18 @@ const CollapseButton = /*#__PURE__*/ forwardRef(function CollapseButton({ isExpa
|
|
|
34203
35024
|
'&:hover': {
|
|
34204
35025
|
opacity: 1,
|
|
34205
35026
|
pointerEvents: 'auto',
|
|
34206
|
-
boxShadow:
|
|
35027
|
+
boxShadow: '0 0 0 2px var(--db-sidebar-border-hover)'
|
|
34207
35028
|
},
|
|
34208
35029
|
'&:focus-visible': {
|
|
34209
35030
|
opacity: 1,
|
|
34210
35031
|
pointerEvents: 'auto',
|
|
34211
|
-
boxShadow:
|
|
35032
|
+
boxShadow: '0 0 0 2px var(--db-sidebar-collapse-button-focus-ring)'
|
|
34212
35033
|
}
|
|
34213
35034
|
},
|
|
34214
35035
|
children: /*#__PURE__*/ jsx(Icon, {
|
|
34215
35036
|
css: {
|
|
34216
35037
|
fontSize: ROUND_BUTTON_SIZE * 0.75,
|
|
34217
|
-
color:
|
|
35038
|
+
color: 'var(--db-sidebar-collapse-button-icon)'
|
|
34218
35039
|
}
|
|
34219
35040
|
})
|
|
34220
35041
|
});
|
|
@@ -34375,60 +35196,61 @@ const TYPOGRAPHY_TITLE_CSS = {
|
|
|
34375
35196
|
margin: 0
|
|
34376
35197
|
}
|
|
34377
35198
|
};
|
|
34378
|
-
const
|
|
34379
|
-
|
|
34380
|
-
|
|
34381
|
-
|
|
34382
|
-
|
|
34383
|
-
|
|
34384
|
-
|
|
34385
|
-
|
|
34386
|
-
|
|
35199
|
+
const NAV_CSS = {
|
|
35200
|
+
display: 'flex',
|
|
35201
|
+
flexDirection: 'column',
|
|
35202
|
+
gap: 'var(--db-sidebar-nav-gap)',
|
|
35203
|
+
padding: 'var(--db-sidebar-nav-padding)'
|
|
35204
|
+
};
|
|
35205
|
+
// getIconClassName() reads the `useNativeIcon` SAFE flag, so resolve it at render time (memoized on
|
|
35206
|
+
// the two possible class strings) rather than freezing the selector when this module is imported.
|
|
35207
|
+
const getNavButtonActiveCss = memoize((iconClassName)=>importantify({
|
|
35208
|
+
borderRadius: 'var(--db-sidebar-nav-button-active-border-radius)',
|
|
35209
|
+
background: 'var(--db-sidebar-nav-button-active-surface)',
|
|
34387
35210
|
button: {
|
|
34388
|
-
[`&:enabled:not(:hover):not(:active) > ${
|
|
34389
|
-
color:
|
|
35211
|
+
[`&:enabled:not(:hover):not(:active) > ${iconClassName}`]: {
|
|
35212
|
+
color: 'var(--db-sidebar-nav-button-active-icon)'
|
|
34390
35213
|
}
|
|
34391
35214
|
}
|
|
34392
35215
|
}));
|
|
34393
|
-
const
|
|
34394
|
-
|
|
34395
|
-
|
|
34396
|
-
|
|
34397
|
-
|
|
34398
|
-
|
|
34399
|
-
|
|
34400
|
-
|
|
34401
|
-
|
|
34402
|
-
|
|
34403
|
-
const
|
|
34404
|
-
|
|
34405
|
-
|
|
34406
|
-
|
|
34407
|
-
|
|
34408
|
-
|
|
35216
|
+
const PANEL_HEADER_CSS = {
|
|
35217
|
+
display: 'flex',
|
|
35218
|
+
paddingInlineStart: 'var(--db-sidebar-panel-header-padding-start)',
|
|
35219
|
+
paddingInlineEnd: 'var(--db-sidebar-panel-header-padding-end)',
|
|
35220
|
+
alignItems: 'center',
|
|
35221
|
+
minHeight: 'var(--db-sidebar-panel-header-min-height)',
|
|
35222
|
+
justifyContent: 'space-between',
|
|
35223
|
+
fontWeight: 'var(--db-sidebar-panel-header-font-weight)',
|
|
35224
|
+
color: 'var(--db-sidebar-panel-header-text)'
|
|
35225
|
+
};
|
|
35226
|
+
const PANEL_HEADER_BUTTONS_CSS = {
|
|
35227
|
+
display: 'flex',
|
|
35228
|
+
alignItems: 'center',
|
|
35229
|
+
gap: 'var(--db-sidebar-panel-header-buttons-gap)',
|
|
35230
|
+
paddingInlineEnd: 'var(--db-sidebar-panel-header-buttons-padding-end)'
|
|
35231
|
+
};
|
|
34409
35232
|
const getMemoizedPanelBodyCss = memoize((theme)=>({
|
|
34410
35233
|
height: '100%',
|
|
34411
35234
|
overflowX: 'hidden',
|
|
34412
35235
|
overflowY: 'auto',
|
|
34413
|
-
padding: '0
|
|
35236
|
+
padding: '0 var(--db-sidebar-panel-body-padding-horizontal)',
|
|
34414
35237
|
colorScheme: theme.isDarkMode ? 'dark' : 'light'
|
|
34415
35238
|
}));
|
|
34416
|
-
const
|
|
35239
|
+
const getSidebarRootCss = memoize((position)=>({
|
|
34417
35240
|
display: 'flex',
|
|
34418
35241
|
height: '100%',
|
|
34419
|
-
backgroundColor:
|
|
35242
|
+
backgroundColor: 'var(--db-sidebar-surface)',
|
|
34420
35243
|
flexDirection: position === 'right' ? 'row-reverse' : 'row',
|
|
34421
35244
|
borderStyle: 'solid',
|
|
34422
|
-
borderColor:
|
|
34423
|
-
borderWidth: position === 'right' ?
|
|
35245
|
+
borderColor: 'var(--db-sidebar-border)',
|
|
35246
|
+
borderWidth: position === 'right' ? '0 0 0 1px' : '0px 1px 0 0',
|
|
34424
35247
|
boxSizing: 'content-box',
|
|
34425
35248
|
position: 'relative'
|
|
34426
|
-
})
|
|
35249
|
+
}));
|
|
34427
35250
|
function Nav({ children, dangerouslyAppendEmotionCSS }) {
|
|
34428
|
-
const { theme } = useDesignSystemTheme();
|
|
34429
35251
|
return /*#__PURE__*/ jsx("nav", {
|
|
34430
35252
|
css: [
|
|
34431
|
-
|
|
35253
|
+
NAV_CSS,
|
|
34432
35254
|
dangerouslyAppendEmotionCSS
|
|
34433
35255
|
],
|
|
34434
35256
|
children: children
|
|
@@ -34436,10 +35258,9 @@ function Nav({ children, dangerouslyAppendEmotionCSS }) {
|
|
|
34436
35258
|
}
|
|
34437
35259
|
const NavButton = /*#__PURE__*/ React__default.forwardRef(// eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
34438
35260
|
({ active, disabled, icon, onClick, children, dangerouslyAppendEmotionCSS, 'aria-label': ariaLabel, ...restProps }, ref)=>{
|
|
34439
|
-
const { theme } = useDesignSystemTheme();
|
|
34440
35261
|
return /*#__PURE__*/ jsx("div", {
|
|
34441
35262
|
css: [
|
|
34442
|
-
active ?
|
|
35263
|
+
active ? getNavButtonActiveCss(getIconClassName()) : undefined,
|
|
34443
35264
|
dangerouslyAppendEmotionCSS
|
|
34444
35265
|
],
|
|
34445
35266
|
children: /*#__PURE__*/ jsx(Button, {
|
|
@@ -34520,9 +35341,9 @@ const Content$2 = /*#__PURE__*/ forwardRef(function Content({ disableResize, ope
|
|
|
34520
35341
|
zIndex: COMPACT_CONTENT_Z_INDEX,
|
|
34521
35342
|
left: isRight ? undefined : closable ? '100%' : undefined,
|
|
34522
35343
|
right: isRight ? closable ? '100%' : undefined : undefined,
|
|
34523
|
-
borderRight: !isRight && !noSideBorder ?
|
|
34524
|
-
borderLeft: isRight && !noSideBorder ?
|
|
34525
|
-
backgroundColor:
|
|
35344
|
+
borderRight: !isRight && !noSideBorder ? '1px solid var(--db-sidebar-border)' : undefined,
|
|
35345
|
+
borderLeft: isRight && !noSideBorder ? '1px solid var(--db-sidebar-border)' : undefined,
|
|
35346
|
+
backgroundColor: 'var(--db-sidebar-surface)',
|
|
34526
35347
|
width: DEFAULT_WIDTH,
|
|
34527
35348
|
top: -1
|
|
34528
35349
|
});
|
|
@@ -34530,7 +35351,7 @@ const Content$2 = /*#__PURE__*/ forwardRef(function Content({ disableResize, ope
|
|
|
34530
35351
|
animation: animation?.open,
|
|
34531
35352
|
direction: isRight ? 'rtl' : 'ltr',
|
|
34532
35353
|
position: 'relative',
|
|
34533
|
-
borderWidth: isRight ? `0 ${noSideBorder ? 0 :
|
|
35354
|
+
borderWidth: isRight ? `0 ${noSideBorder ? 0 : 1}px 0 0 ` : `0 0 0 ${noSideBorder ? 0 : 1}px`,
|
|
34534
35355
|
borderStyle: 'inherit',
|
|
34535
35356
|
borderColor: 'inherit',
|
|
34536
35357
|
boxSizing: 'content-box'
|
|
@@ -34542,9 +35363,9 @@ const Content$2 = /*#__PURE__*/ forwardRef(function Content({ disableResize, ope
|
|
|
34542
35363
|
display: 'none'
|
|
34543
35364
|
});
|
|
34544
35365
|
const highlightedBorderStyle = isRight ? /*#__PURE__*/ css({
|
|
34545
|
-
borderLeft:
|
|
35366
|
+
borderLeft: '2px solid var(--db-sidebar-border-hover)'
|
|
34546
35367
|
}) : /*#__PURE__*/ css({
|
|
34547
|
-
borderRight:
|
|
35368
|
+
borderRight: '2px solid var(--db-sidebar-border-hover)'
|
|
34548
35369
|
});
|
|
34549
35370
|
const alwaysVisibleBtnStyle = /*#__PURE__*/ css({
|
|
34550
35371
|
[`.${EDGE_COLLAPSE_BTN_CLASS}`]: {
|
|
@@ -34556,16 +35377,16 @@ const Content$2 = /*#__PURE__*/ forwardRef(function Content({ disableResize, ope
|
|
|
34556
35377
|
[`.${EDGE_COLLAPSE_BTN_CLASS}`]: {
|
|
34557
35378
|
opacity: 1,
|
|
34558
35379
|
pointerEvents: 'auto',
|
|
34559
|
-
boxShadow:
|
|
35380
|
+
boxShadow: '0 0 0 2px var(--db-sidebar-border-hover), var(--db-sidebar-edge-highlight-shadow)'
|
|
34560
35381
|
}
|
|
34561
35382
|
});
|
|
34562
35383
|
const edgeHandleStyle = /*#__PURE__*/ css({
|
|
34563
35384
|
height: '100%',
|
|
34564
35385
|
position: 'relative',
|
|
34565
35386
|
...isRight ? {
|
|
34566
|
-
borderLeft:
|
|
35387
|
+
borderLeft: '1px solid var(--db-sidebar-border)'
|
|
34567
35388
|
} : {
|
|
34568
|
-
borderRight:
|
|
35389
|
+
borderRight: '1px solid var(--db-sidebar-border)'
|
|
34569
35390
|
},
|
|
34570
35391
|
'&:hover': [
|
|
34571
35392
|
highlightedBorderStyle,
|
|
@@ -34574,8 +35395,8 @@ const Content$2 = /*#__PURE__*/ forwardRef(function Content({ disableResize, ope
|
|
|
34574
35395
|
});
|
|
34575
35396
|
const compactToggleStyle = /*#__PURE__*/ css({
|
|
34576
35397
|
position: isExpanded ? 'static' : 'relative',
|
|
34577
|
-
width: isExpanded ? undefined :
|
|
34578
|
-
marginRight: isExpanded ?
|
|
35398
|
+
width: isExpanded ? undefined : 'var(--db-sidebar-compact-toggle-spacing)',
|
|
35399
|
+
marginRight: isExpanded ? 'var(--db-sidebar-compact-toggle-spacing)' : undefined,
|
|
34579
35400
|
height: '100%'
|
|
34580
35401
|
});
|
|
34581
35402
|
const compactToggleBtnPositioner = isExpanded ? /*#__PURE__*/ css({
|
|
@@ -34667,7 +35488,7 @@ const Content$2 = /*#__PURE__*/ forwardRef(function Content({ disableResize, ope
|
|
|
34667
35488
|
/*#__PURE__*/ jsx(ResizablePanelHandle, {
|
|
34668
35489
|
"data-testid": "sidebar-collapsed-strip",
|
|
34669
35490
|
css: /*#__PURE__*/ css(edgeHandleStyle, {
|
|
34670
|
-
width:
|
|
35491
|
+
width: 'var(--db-sidebar-collapsed-strip-width)',
|
|
34671
35492
|
display: showEdgeCollapse && !isExpanded ? undefined : 'none'
|
|
34672
35493
|
}, alwaysVisibleBtnStyle),
|
|
34673
35494
|
children: /*#__PURE__*/ jsx(CollapseButton, {
|
|
@@ -34775,13 +35596,11 @@ function Panel({ panelId, children, forceRender = false, dangerouslyAppendEmotio
|
|
|
34775
35596
|
});
|
|
34776
35597
|
}
|
|
34777
35598
|
function PanelHeader({ children, dangerouslyAppendEmotionCSS, componentId, closeIcon }) {
|
|
34778
|
-
const { theme } = useDesignSystemTheme();
|
|
34779
35599
|
const contentContext = useContext(ContentContext);
|
|
34780
35600
|
const titleColumnCss = useMemo(()=>({
|
|
34781
|
-
width: contentContext.closable ?
|
|
35601
|
+
width: contentContext.closable ? 'calc(100% - var(--db-sidebar-panel-header-title-close-button-offset))' : '100%'
|
|
34782
35602
|
}), [
|
|
34783
|
-
contentContext.closable
|
|
34784
|
-
theme.spacing.lg
|
|
35603
|
+
contentContext.closable
|
|
34785
35604
|
]);
|
|
34786
35605
|
const handleClose = useCallback(()=>{
|
|
34787
35606
|
contentContext.setIsClosed();
|
|
@@ -34790,7 +35609,7 @@ function PanelHeader({ children, dangerouslyAppendEmotionCSS, componentId, close
|
|
|
34790
35609
|
]);
|
|
34791
35610
|
return /*#__PURE__*/ jsxs("div", {
|
|
34792
35611
|
css: [
|
|
34793
|
-
|
|
35612
|
+
PANEL_HEADER_CSS,
|
|
34794
35613
|
dangerouslyAppendEmotionCSS
|
|
34795
35614
|
],
|
|
34796
35615
|
children: [
|
|
@@ -34825,10 +35644,9 @@ function PanelHeaderTitle({ title, dangerouslyAppendEmotionCSS }) {
|
|
|
34825
35644
|
});
|
|
34826
35645
|
}
|
|
34827
35646
|
function PanelHeaderButtons({ children, dangerouslyAppendEmotionCSS }) {
|
|
34828
|
-
const { theme } = useDesignSystemTheme();
|
|
34829
35647
|
return /*#__PURE__*/ jsx("div", {
|
|
34830
35648
|
css: [
|
|
34831
|
-
|
|
35649
|
+
PANEL_HEADER_BUTTONS_CSS,
|
|
34832
35650
|
dangerouslyAppendEmotionCSS
|
|
34833
35651
|
],
|
|
34834
35652
|
children: children
|
|
@@ -34865,7 +35683,6 @@ function PanelBody({ children, dangerouslyAppendEmotionCSS }) {
|
|
|
34865
35683
|
// ---------------------------------------------------------------------------
|
|
34866
35684
|
const Sidebar = /* #__PURE__ */ (()=>{
|
|
34867
35685
|
function Sidebar({ position, children, dangerouslyAppendEmotionCSS, ...dataProps }) {
|
|
34868
|
-
const { theme } = useDesignSystemTheme();
|
|
34869
35686
|
const resolvedPosition = position || 'left';
|
|
34870
35687
|
const value = useMemo(()=>({
|
|
34871
35688
|
position: resolvedPosition
|
|
@@ -34878,7 +35695,7 @@ const Sidebar = /* #__PURE__ */ (()=>{
|
|
|
34878
35695
|
...addDebugOutlineIfEnabled(),
|
|
34879
35696
|
...dataProps,
|
|
34880
35697
|
css: [
|
|
34881
|
-
|
|
35698
|
+
getSidebarRootCss(resolvedPosition),
|
|
34882
35699
|
dangerouslyAppendEmotionCSS
|
|
34883
35700
|
],
|
|
34884
35701
|
children: children
|
|
@@ -34906,7 +35723,7 @@ function React18CompatibleIconComponent(IconComponent) {
|
|
|
34906
35723
|
* the React DOM types.
|
|
34907
35724
|
*
|
|
34908
35725
|
* These are deliberately NOT reëxported from the design system's public API: product code should
|
|
34909
|
-
* use
|
|
35726
|
+
* use dbui icons from `__generated/icons`.
|
|
34910
35727
|
*/ const LegacyEllipsisOutlined = React18CompatibleIconComponent(EllipsisOutlined);
|
|
34911
35728
|
|
|
34912
35729
|
const ButtonGroup = Button$1.Group;
|
|
@@ -36119,7 +36936,6 @@ var Tabs = /*#__PURE__*/Object.freeze({
|
|
|
36119
36936
|
Trigger: Trigger$1
|
|
36120
36937
|
});
|
|
36121
36938
|
|
|
36122
|
-
const SMALL_BUTTON_HEIGHT = 24;
|
|
36123
36939
|
const DEFAULT_ANALYTICS_EVENTS_WITH_VIEW = [
|
|
36124
36940
|
DesignSystemEventProviderAnalyticsEventTypes.OnValueChange,
|
|
36125
36941
|
DesignSystemEventProviderAnalyticsEventTypes.OnView
|
|
@@ -36139,64 +36955,65 @@ const getStyles = (theme, size, onlyIcon, forceWithBorder)=>{
|
|
|
36139
36955
|
...!onlyIcon && {
|
|
36140
36956
|
boxShadow: 'none'
|
|
36141
36957
|
},
|
|
36142
|
-
border: `
|
|
36143
|
-
borderRadius:
|
|
36144
|
-
backgroundColor: '
|
|
36145
|
-
color:
|
|
36146
|
-
height:
|
|
36147
|
-
padding: '0
|
|
36148
|
-
fontSize:
|
|
36149
|
-
|
|
36958
|
+
border: `var(--db-toggle-button-border-width) solid var(--db-toggle-button-border)`,
|
|
36959
|
+
borderRadius: 'var(--db-toggle-button-border-radius)',
|
|
36960
|
+
backgroundColor: 'var(--db-toggle-button-surface)',
|
|
36961
|
+
color: 'var(--db-toggle-button-text)',
|
|
36962
|
+
height: 'var(--db-toggle-button-height)',
|
|
36963
|
+
padding: '0 var(--db-toggle-button-padding-horizontal)',
|
|
36964
|
+
fontSize: 'var(--db-toggle-button-font-size)',
|
|
36965
|
+
// No v2 line-height token. TODO(FEINF-6557): adopt one when it lands.
|
|
36966
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
36150
36967
|
'&[data-state="off"] .togglebutton-icon-wrapper': {
|
|
36151
|
-
color:
|
|
36968
|
+
color: 'var(--db-toggle-button-icon)'
|
|
36152
36969
|
},
|
|
36153
36970
|
'&[data-state="off"]:not(:disabled):hover .togglebutton-icon-wrapper': {
|
|
36154
|
-
color:
|
|
36971
|
+
color: 'var(--db-toggle-button-text-hover)'
|
|
36155
36972
|
},
|
|
36156
36973
|
'&[data-state="on"]': {
|
|
36157
|
-
backgroundColor:
|
|
36158
|
-
color:
|
|
36159
|
-
borderColor:
|
|
36974
|
+
backgroundColor: 'var(--db-toggle-button-surface-selected)',
|
|
36975
|
+
color: 'var(--db-toggle-button-text-selected)',
|
|
36976
|
+
borderColor: 'var(--db-toggle-button-border-selected)'
|
|
36160
36977
|
},
|
|
36161
36978
|
'&:hover': {
|
|
36162
36979
|
cursor: 'pointer',
|
|
36163
|
-
color:
|
|
36164
|
-
backgroundColor:
|
|
36165
|
-
borderColor:
|
|
36980
|
+
color: 'var(--db-toggle-button-text-hover)',
|
|
36981
|
+
backgroundColor: 'var(--db-toggle-button-surface-hover)',
|
|
36982
|
+
borderColor: 'var(--db-toggle-button-border-hover)',
|
|
36166
36983
|
'& > svg': {
|
|
36167
|
-
stroke:
|
|
36984
|
+
stroke: 'var(--db-toggle-button-border-hover)'
|
|
36168
36985
|
}
|
|
36169
36986
|
},
|
|
36170
36987
|
'&:disabled': {
|
|
36171
36988
|
cursor: 'default',
|
|
36172
|
-
borderColor:
|
|
36173
|
-
color:
|
|
36174
|
-
backgroundColor: '
|
|
36989
|
+
borderColor: 'var(--db-toggle-button-border-disabled)',
|
|
36990
|
+
color: 'var(--db-toggle-button-text-disabled)',
|
|
36991
|
+
backgroundColor: 'var(--db-toggle-button-surface)',
|
|
36175
36992
|
boxShadow: 'none',
|
|
36176
36993
|
'& > svg': {
|
|
36177
|
-
stroke:
|
|
36994
|
+
stroke: 'var(--db-toggle-button-icon-stroke)'
|
|
36178
36995
|
}
|
|
36179
36996
|
},
|
|
36180
36997
|
...!onlyIcon && {
|
|
36181
36998
|
'&&': {
|
|
36182
|
-
padding: '
|
|
36999
|
+
padding: 'var(--db-toggle-button-padding-vertical) var(--db-toggle-button-padding-horizontal)',
|
|
36183
37000
|
...size === 'small' && {
|
|
36184
|
-
padding: '0
|
|
37001
|
+
padding: '0 var(--db-toggle-button-padding-horizontal-small)'
|
|
36185
37002
|
}
|
|
36186
37003
|
}
|
|
36187
37004
|
},
|
|
36188
37005
|
...onlyIcon && {
|
|
36189
|
-
width:
|
|
37006
|
+
width: 'var(--db-toggle-button-height)',
|
|
36190
37007
|
// forceWithBorder keeps the compact icon-only sizing but restores the border.
|
|
36191
37008
|
...!forceWithBorder && {
|
|
36192
37009
|
border: 'none'
|
|
36193
37010
|
}
|
|
36194
37011
|
},
|
|
36195
37012
|
...size === 'small' && {
|
|
36196
|
-
height:
|
|
37013
|
+
height: 'var(--db-toggle-button-height-small)',
|
|
36197
37014
|
lineHeight: theme.typography.lineHeightBase,
|
|
36198
37015
|
...onlyIcon && {
|
|
36199
|
-
width:
|
|
37016
|
+
width: 'var(--db-toggle-button-height-small)',
|
|
36200
37017
|
paddingTop: 0,
|
|
36201
37018
|
paddingBottom: 0,
|
|
36202
37019
|
verticalAlign: 'middle'
|
|
@@ -36205,9 +37022,9 @@ const getStyles = (theme, size, onlyIcon, forceWithBorder)=>{
|
|
|
36205
37022
|
});
|
|
36206
37023
|
};
|
|
36207
37024
|
const getMemoizedStyles = memoize(getStyles, (theme, size, onlyIcon, forceWithBorder)=>`${themeMemoKey(theme)}|${size}|${onlyIcon}|${forceWithBorder}`);
|
|
36208
|
-
const
|
|
36209
|
-
|
|
36210
|
-
|
|
37025
|
+
const RECTANGLE_ICON_CSS = {
|
|
37026
|
+
stroke: 'var(--db-toggle-button-icon-stroke)'
|
|
37027
|
+
};
|
|
36211
37028
|
const RectangleSvg = (props)=>/*#__PURE__*/ jsx("svg", {
|
|
36212
37029
|
width: "16",
|
|
36213
37030
|
height: "16",
|
|
@@ -36270,20 +37087,19 @@ const ToggleButton = /*#__PURE__*/ forwardRef(// eslint-disable-next-line react-
|
|
|
36270
37087
|
const iconOnly = !hideIcon && !children && Boolean(icon);
|
|
36271
37088
|
const iconWrapperStyle = useMemo(()=>iconOnly ? ICON_WRAPPER_BASE_STYLE : {
|
|
36272
37089
|
...ICON_WRAPPER_BASE_STYLE,
|
|
36273
|
-
marginRight:
|
|
37090
|
+
marginRight: 'var(--db-toggle-button-icon-gap)'
|
|
36274
37091
|
}, [
|
|
36275
|
-
iconOnly
|
|
36276
|
-
theme.spacing.xs
|
|
37092
|
+
iconOnly
|
|
36277
37093
|
]);
|
|
36278
37094
|
const checkboxIcon = isPressed ? /*#__PURE__*/ jsx(CheckIcon, {}) : /*#__PURE__*/ jsx(RectangleIcon, {
|
|
36279
|
-
css:
|
|
37095
|
+
css: RECTANGLE_ICON_CSS
|
|
36280
37096
|
});
|
|
36281
37097
|
return /*#__PURE__*/ jsxs(Toggle.Root, {
|
|
36282
37098
|
...addDebugOutlineIfEnabled(),
|
|
36283
37099
|
css: getMemoizedStyles(theme, size, iconOnly, Boolean(forceWithBorder)),
|
|
36284
37100
|
...props,
|
|
36285
37101
|
// NB-623: stable marker class so a ToggleButton used as a compact `Input.Group` child is reached
|
|
36286
|
-
// by the
|
|
37102
|
+
// by the dbui compact-group corner/seam rewrites (they must target children by class, not the
|
|
36287
37103
|
// Monaco-hostile `> *`). Prefix-agnostic — the rewrite's ancestor compound already carries the
|
|
36288
37104
|
// theme prefix, so the child compound only needs to be a stable real class. Merge, don't clobber.
|
|
36289
37105
|
className: [
|
|
@@ -36642,6 +37458,7 @@ const defaults = {
|
|
|
36642
37458
|
isInsideTypeaheadCombobox: false,
|
|
36643
37459
|
multiSelect: false,
|
|
36644
37460
|
showAllOptionsOnOpen: false,
|
|
37461
|
+
allowNewValue: false,
|
|
36645
37462
|
comboBoxState: null,
|
|
36646
37463
|
inputProps: {},
|
|
36647
37464
|
listBoxProps: {},
|
|
@@ -36659,7 +37476,8 @@ const defaults = {
|
|
|
36659
37476
|
getKeyForItem: ()=>'',
|
|
36660
37477
|
itemToString: ()=>'',
|
|
36661
37478
|
removeByKey: ()=>{},
|
|
36662
|
-
clearSelection: ()=>{}
|
|
37479
|
+
clearSelection: ()=>{},
|
|
37480
|
+
onEnterKeypress: ()=>false
|
|
36663
37481
|
};
|
|
36664
37482
|
const TypeaheadComboboxV2Context = /*#__PURE__*/ createContext(defaults);
|
|
36665
37483
|
const TypeaheadComboboxV2ContextProvider = ({ children, value })=>{
|
|
@@ -37663,5 +38481,5 @@ function WizardStepContentWrapper({ header, title, description, alertContent, de
|
|
|
37663
38481
|
});
|
|
37664
38482
|
}
|
|
37665
38483
|
|
|
37666
|
-
export { repeatingElementsStyles as $, token as A, Button as B, CheckCircleFillIcon as C, DocumentationSidebar as D, getDarkModePortalStyles as E, FIXED_VERTICAL_STEPPER_WIDTH as F, useModalContext as G, Trigger$5 as H, InfoFillIcon as I, InfoSmallIcon as J, Content$7 as K, Arrow$2 as L, MAX_VERTICAL_WIZARD_CONTENT_WIDTH as M, Tooltip as N, SparkleDoubleIcon as O, getIconClassName as P, LoadingState as Q, Root$9 as R, ShapeTokens as S, Typography as T, visuallyHidden as U, genSkeletonAnimatedColor as V, Wizard as W, getOffsets as X, DesignSystemEventSuppressInteractionProviderContext as Y, DesignSystemEventSuppressInteractionTrueContextValue as Z, tableStyles as _, WizardControlled as a, SortUnsortedIcon as a$, tableClassNames as a0, hideIconButtonRowStyles as a1, hideIconButtonActionCellClassName as a2, safex as a3, TitleSkeleton as a4, useDialogComboboxContext as a5, PlusIcon as a6, importantify as a7, getComboboxOptionItemWrapperStyles as a8, getFooterStyles as a9, useMultipleSelectionState as aA, Radio as aB, Checkbox as aC, DialogCombobox as aD, DialogComboboxTrigger as aE, DialogComboboxContent as aF, Select as aG, SelectTrigger as aH, SelectContent as aI, SelectOption as aJ, LegacySelect as aK, WarningIcon as aL, CheckCircleIcon as aM, DangerIcon as aN, Hint as aO, Title$1 as aP, CloseIcon as aQ, RestoreAntDDefaultClsPrefix as aR, AccessibleContainer as aS, DU_BOIS_ENABLE_ANIMATION_CLASSNAME as aT, Tag as aU, CircleOffIcon as aV, CircleOutlineIcon as aW, CircleIcon as aX, getBtnClassName as aY, SortAscendingIcon as aZ, SortDescendingIcon as a_, useDialogComboboxOptionListContext as aa, generateUuidV4 as ab, getContentOptions as ac, findHighlightedOption as ad, highlightOption as ae, Input as af, SearchIcon as ag, EmptyResults as ah, findClosestOptionSibling as ai, DialogComboboxOptionListCheckboxItem as aj, DialogComboboxOptionListSelectItem as ak, DialogComboboxOptionListContextProvider as al, LoadingSpinner as am, DialogComboboxOptionList as an, useUniqueId as ao, TypeaheadComboboxContextProvider as ap, useTypeaheadComboboxContext as aq, useDuboisThemeClass as ar, useDesignTokenOverrideStyles as as, getComboboxContentWrapperStyles as at, ClearSelectionButton as au, TypeaheadComboboxSelectedItem$1 as av, CountBadge$1 as aw, getValidationStateColor as ax, SectionHeader as ay, useComboboxState as az, WizardModal as b, BarsDescendingVerticalIcon as b$, MinusSquareIcon as b0, PlusSquareIcon as b1, TypeaheadComboboxV2ContextProvider as b2, useTypeaheadComboboxV2Context as b3, useRadixModalContext as b4, useIsomorphicLayoutEffect as b5, useScrollOptionIntoView as b6, InfoTooltip as b7, getInfoIconStyles as b8, HintRow as b9, ArrowRightIcon as bA, ArrowUpDotIcon as bB, ArrowUpFillIcon as bC, ArrowUpIcon as bD, ArrowsCollapseIcon as bE, ArrowsConnectIcon as bF, ArrowsExpandIcon as bG, ArrowsUpDownIcon as bH, AssistantIcon as bI, AtIcon as bJ, Auth0Graphic as bK, Auth0GraphicLarge as bL, AzHorizontalIcon as bM, AzVerticalIcon as bN, BANNER_MAX_HEIGHT as bO, BANNER_MIN_HEIGHT as bP, BackupIcon as bQ, BadgeCodeIcon as bR, BadgeCodeOffIcon as bS, Banner as bT, BarChartIcon as bU, BarGroupedIcon as bV, BarStackedIcon as bW, BarStackedPercentageIcon as bX, BarsAscendingHorizontalIcon as bY, BarsAscendingVerticalIcon as bZ, BarsDescendingHorizontalIcon as b_, getCheckboxStyles as ba, getMenuItemStyles as bb, TypeaheadComboboxSelectedItem as bc, CountBadge as bd, TypeaheadComboboxMenuItem as be, AccessDeniedGraphic as bf, Accordion as bg, AccordionPanel as bh, AlignCenterIcon as bi, AlignJustifyIcon as bj, AlignLeftIcon as bk, AlignRightIcon as bl, AlignVerticalBottomIcon as bm, AlignVerticalCenterIcon as bn, AlignVerticalTopIcon as bo, AppIcon as bp, ApplyDesignSystemContextOverrides as bq, ApplyDesignSystemFlags as br, ArrowDownDotIcon as bs, ArrowDownFillIcon as bt, ArrowDownIcon as bu, ArrowInIcon as bv, ArrowInTableIcon as bw, ArrowLeftIcon as bx, ArrowOutTableIcon as by, ArrowOverIcon as bz, WizardStepContentWrapper as c, ClockOffIcon as c$, BeakerIcon as c0, BinaryIcon as c1, BlockQuoteIcon as c2, BoldIcon as c3, BookIcon as c4, BookmarkFillIcon as c5, BookmarkIcon as c6, BooksIcon as c7, BracketsCheckIcon as c8, BracketsCurlyIcon as c9, CellsSquareIcon as cA, CertifiedFillIcon as cB, CertifiedFillSmallIcon as cC, CertifiedIcon as cD, ChainIcon as cE, ChartLineIcon as cF, CheckCircleBadgeIcon as cG, CheckCircleSmallIcon as cH, CheckIcon as cI, CheckLineIcon as cJ, CheckSmallIcon as cK, CheckboxIcon as cL, ChecklistIcon as cM, ChevronDoubleDownIcon as cN, ChevronDoubleLeftIcon as cO, ChevronDoubleLeftOffIcon as cP, ChevronDoubleRightIcon as cQ, ChevronDoubleRightOffIcon as cR, ChevronDoubleUpIcon as cS, ChevronLeftIcon as cT, ChevronUpIcon as cU, ChipIcon as cV, CircleOffLargeIcon as cW, CircleOutlineLargeIcon as cX, ClipboardIcon as cY, ClockIcon as cZ, ClockKeyIcon as c_, BracketsErrorIcon as ca, BracketsSquareIcon as cb, BracketsXIcon as cc, BranchCheckIcon as cd, BranchIcon as ce, BranchResetIcon as cf, BriefcaseFillIcon as cg, BriefcaseIcon as ch, BrushIcon as ci, BugIcon as cj, CalendarClockIcon as ck, CalendarEventIcon as cl, CalendarIcon as cm, CalendarRangeIcon as cn, CalendarSyncIcon as co, CameraIcon as cp, CapitalizeIcon as cq, CaretDownSquareIcon as cr, CaretUpSquareIcon as cs, CatalogCloudIcon as ct, CatalogGearIcon as cu, CatalogHomeIcon as cv, CatalogIcon as cw, CatalogOffIcon as cx, CatalogSharedIcon as cy, CatalogUserHomeIcon as cz, WizardStepNavigationProvider as d, DragIcon as d$, CloudCheckIcon as d0, CloudDatabaseIcon as d1, CloudDownloadIcon as d2, CloudIcon as d3, CloudKeyIcon as d4, CloudModelIcon as d5, CloudOffIcon as d6, CloudUploadIcon as d7, CodeIcon as d8, ColorFillIcon as d9, DangerModal as dA, DangerSmallIcon as dB, DashIcon as dC, DashboardCodeIcon as dD, DashboardIcon as dE, DataIcon as dF, DataMaskiingGraphic as dG, DatabaseClockIcon as dH, DatabaseIcon as dI, DatabaseImportIcon as dJ, DatePicker as dK, DecimalIcon as dL, DeprecatedIcon as dM, DeprecatedSmallIcon as dN, DesignSystemContext as dO, DesignSystemEventProviderComponentSubTypes as dP, DesignSystemProvider as dQ, DesignSystemThemeContext as dR, DesignSystemThemeProvider as dS, DialogComboboxCountBadge as dT, DialogComboboxCustomButtonTriggerWrapper as dU, DialogComboboxSectionHeader as dV, DollarIcon as dW, DomainCirclesThree as dX, DomainsIcon as dY, DotsCircleIcon as dZ, DownloadIcon as d_, ColorMappingEditIcon as da, ColorMappingIcon as db, ColorVars as dc, ColumnIcon as dd, ColumnSplitIcon as de, ColumnTagIcon as df, ColumnsIcon as dg, CommandIcon as dh, CommandPaletteIcon as di, CompassIcon as dj, ComponentFinderContext as dk, ConnectIcon as dl, Content$2 as dm, ContextMenu$1 as dn, CopyIcon as dp, CreditCardIcon as dq, CursorClickIcon as dr, CursorIcon as ds, CursorPagination as dt, CursorTypeIcon as du, CustomAppIcon as dv, DS_OVERRIDE_TOKENS_WRAPPER_TESTID as dw, DagHorizontalIcon as dx, DagIcon as dy, DagVerticalIcon as dz, useWizardStepNavigation as e, GridDashIcon as e$, Drawer as e0, DropdownMenu as e1, Empty as e2, EmptyDashboardGraphic as e3, ErdIcon as e4, ExpandLessIcon as e5, ExpandMoreIcon as e6, FaceFrownIcon as e7, FaceNeutralIcon as e8, FaceSmileIcon as e9, FolderOpenBranchIcon as eA, FolderOpenCloudIcon as eB, FolderOpenCubeIcon as eC, FolderOpenIcon as eD, FolderOpenPipelineIcon as eE, FolderOutlinePipelineIcon as eF, FolderSolidPipelineIcon as eG, FontIcon as eH, ForkHorizontalIcon as eI, ForkIcon as eJ, Form as eK, FormContextResetBoundary as eL, FullscreenExitIcon as eM, FullscreenIcon as eN, FunctionIcon as eO, FunctionInputIcon as eP, GavelIcon as eQ, GearFillIcon as eR, GearIcon as eS, GenieCodeIcon as eT, GenieDeepResearchIcon as eU, GiftIcon as eV, GitCommitIcon as eW, GitMergeIcon as eX, GitRebaseIcon as eY, GlobeIcon as eZ, Graphic as e_, FileCodeIcon as ea, FileCubeIcon as eb, FileDocumentIcon as ec, FileIcon as ed, FileImageIcon as ee, FileLockIcon as ef, FileModelIcon as eg, FileNewIcon as eh, FilePipelineIcon as ei, FilterFillIcon as ej, FilterIcon as ek, FlagPointerIcon as el, FloatIcon as em, FlowIcon as en, FlowsIcon as eo, FolderBranchFillIcon as ep, FolderBranchIcon as eq, FolderCloudFilledIcon as er, FolderCloudIcon as es, FolderCubeIcon as et, FolderCubeOutlineIcon as eu, FolderFillIcon as ev, FolderHomeIcon as ew, FolderIcon as ex, FolderNewIcon as ey, FolderNodeIcon as ez, DesignSystemEventProvider as f, LockUnlockedIcon as f$, GridIcon as f0, GroupIcon as f1, H1Icon as f2, H2Icon as f3, H3Icon as f4, H4Icon as f5, H5Icon as f6, H6Icon as f7, HashIcon as f8, HistoryIcon as f9, LegacyFormDubois as fA, LegacyOptGroup as fB, LegacyOption as fC, LegacySelectOptGroup as fD, LegacySelectOption as fE, LegacyTable as fF, LetterFormatIcon as fG, LettersIcon as fH, LettersNumbersIcon as fI, LibrariesIcon as fJ, LifesaverIcon as fK, LightbulbIcon as fL, LightningCircleFillIcon as fM, LightningIcon as fN, LinearLineIcon as fO, LinkIcon as fP, LinkOffIcon as fQ, ListBorderIcon as fR, ListClearIcon as fS, ListIcon as fT, ListNumberIcon as fU, Listbox as fV, LoadingIcon as fW, LoadingStateContext as fX, LockFillIcon as fY, LockIcon as fZ, LockShareIcon as f_, HomeIcon as fa, Icon as fb, ImageIcon as fc, IndentDecreaseIcon as fd, IndentIncreaseIcon as fe, InfinityIcon as ff, InfoBookIcon as fg, InfoIcon as fh, IngestionIcon as fi, ItalicIcon as fj, JoinOperatorIcon as fk, KeyIcon as fl, KeyboardIcon as fm, LakebaseCatalogIcon as fn, LakebaseIcon as fo, LakeflowDesignerIcon as fp, LakewatchAlertIcon as fq, LakewatchDatasourceIcon as fr, LakewatchDetectionRuleIcon as fs, LakewatchIcon as ft, LakewatchParserIcon as fu, LayerGraphIcon as fv, LayerIcon as fw, Layout as fx, LeafIcon as fy, LegacyForm as fz, useDesignSystemTheme as g, PinFillIcon as g$, LoopIcon as g0, LowercaseIcon as g1, MailIcon as g2, MapIcon as g3, MarkdownIcon as g4, McpIcon as g5, MeasureIcon as g6, MegaphoneIcon as g7, MenuIcon as g8, MicrophoneIcon as g9, OntologyIcon as gA, OperatorIcon as gB, OutageGraphic as gC, OverflowHorizontalIcon as gD, OverflowIcon as gE, PageBottomIcon as gF, PageFirstIcon as gG, PageIcon as gH, PageLastIcon as gI, PageTopIcon as gJ, Pagination as gK, Panel as gL, PanelBody as gM, PanelDockedIcon as gN, PanelFloatingIcon as gO, PanelHeader as gP, PanelHeaderButtons as gQ, PanelHeaderTitle as gR, PaperclipIcon as gS, PassFailChecklistIcon as gT, PauseIcon as gU, PencilFillIcon as gV, PencilIcon as gW, PencilSparkleIcon as gX, PieChartIcon as gY, PillControl as gZ, PinCancelIcon as g_, MicrophoneOffIcon as ga, MinusCircleFillIcon as gb, MinusCircleIcon as gc, MinusCircleSmallIcon as gd, MissingBranchGraphic as ge, MissingGraphic as gf, ModelsIcon as gg, MonotoneLineIcon as gh, MonthPickerGrid as gi, MoonIcon as gj, Nav as gk, NavButton as gl, NavigationMenu as gm, NeonProjectIcon as gn, NewChatIcon as go, NewTabIcon as gp, NewWindowIcon as gq, NoCaseIcon as gr, NoIcon as gs, NotebookIcon as gt, NotebookPipelineIcon as gu, NotificationIcon as gv, NotificationOffIcon as gw, NumberFormatIcon as gx, NumbersIcon as gy, OfficeIcon as gz, DesignTokenScope as h, Sidebar as h$, PinIcon as h0, PipelineCodeIcon as h1, PipelineCubeIcon as h2, PipelineIcon as h3, PivotOperatorIcon as h4, PlayCircleFillIcon as h5, PlayCircleIcon as h6, PlayDoubleIcon as h7, PlayIcon as h8, PlayMultipleIcon as h9, ReplyIcon as hA, ResizeIcon as hB, RhfForm as hC, RichTextIcon as hD, RobotIcon as hE, RocketIcon as hF, RowsIcon as hG, RunIcon as hH, RunningIcon as hI, SMALL_BUTTON_HEIGHT$2 as hJ, SaveClockIcon as hK, SaveIcon as hL, SchemaIcon as hM, SchoolIcon as hN, SearchDataIcon as hO, SegmentedControlButton as hP, SegmentedControlGroup as hQ, SelectContext as hR, SelectContextProvider as hS, SelectOptionGroup as hT, SendIcon as hU, ShareIcon as hV, ShareNodesIcon as hW, ShieldCheckIcon as hX, ShieldIcon as hY, ShieldOffIcon as hZ, ShortcutIcon as h_, PlugIcon as ha, PlusCircleFillIcon as hb, PlusCircleIcon as hc, PlusCircleSmallIcon as hd, PlusMinusSquareIcon as he, Popover as hf, PositionBottomIcon as hg, PositionLeftIcon as hh, PositionRightIcon as hi, PositionTopIcon as hj, PreviewCard as hk, Progress as hl, PullRequestIcon as hm, PuzzleIcon as hn, QueryEditorIcon as ho, QueryIcon as hp, QuestionMarkFillIcon as hq, QuestionMarkIcon as hr, RadioIcon as hs, RadioTile as ht, RangePicker as hu, ReaderModeIcon as hv, RedoIcon as hw, RefreshIcon as hx, RefreshPlayIcon as hy, RefreshXIcon as hz, useDesignSystemContext as i, TableModelIcon as i$, SidebarAutoIcon as i0, SidebarClosedIcon as i1, SidebarCollapseIcon as i2, SidebarExpandIcon as i3, SidebarIcon as i4, SidebarOpenIcon as i5, SidebarSyncIcon as i6, SimpleSelect as i7, SimpleSelectOption as i8, SimpleSelectOptionGroup as i9, Spinner as iA, SplitButton as iB, SqlIcon as iC, StarFillIcon as iD, StarIcon as iE, StepAfterLineIcon as iF, StepBeforeLineIcon as iG, Stepper as iH, StopCircleFillIcon as iI, StopCircleIcon as iJ, StopIcon as iK, StoredProcedureIcon as iL, StorefrontIcon as iM, StreamIcon as iN, StrikeThroughIcon as iO, SunIcon as iP, SyncIcon as iQ, SyncSmallIcon as iR, SyncToFileIcon as iS, TableAsteriskIcon as iT, TableClockIcon as iU, TableCombineIcon as iV, TableGlassesIcon as iW, TableGlobeIcon as iX, TableIcon as iY, TableLightningIcon as iZ, TableMeasureIcon as i_, SlashSquareIcon as ia, SlidersIcon as ib, SlidesIcon as ic, SnippetIcon as id, SortCustomHorizontalIcon as ie, SortCustomVerticalIcon as ig, SortHorizontalAscendingIcon as ih, SortHorizontalDescendingIcon as ii, SortLetterHorizontalAscendingIcon as ij, SortLetterHorizontalDescendingIcon as ik, SortLetterUnsortedIcon as il, SortLetterVerticalAscendingIcon as im, SortLetterVerticalDescendingIcon as io, Spacer as ip, SparkleDoubleFillIcon as iq, SparkleFillIcon as ir, SparkleIcon as is, SparkleRectangleIcon as it, SpeechBubbleIcon as iu, SpeechBubblePlusIcon as iv, SpeechBubbleQuestionMarkFillIcon as iw, SpeechBubbleQuestionMarkIcon as ix, SpeechBubbleStarIcon as iy, SpeedometerIcon as iz, WarningFillIcon as j, ZaHorizontalIcon as j$, TableReportIcon as j0, TableStreamIcon as j1, TableVectorIcon as j2, TableViewIcon as j3, Tabs as j4, TagColumnIcon as j5, TagIcon as j6, TagTableIcon as j7, TargetIcon as j8, TerminalIcon as j9, UppercaseIcon as jA, UsageOverageGraphic as jB, UsageSpikeGraphic as jC, UsbIcon as jD, UserBadgeIcon as jE, UserCircleIcon as jF, UserGroupFillIcon as jG, UserGroupIcon as jH, UserIcon as jI, UserKeyIconIcon as jJ, UserShieldIcon as jK, UserSparkleIcon as jL, UserTeamIcon as jM, VisibleFillIcon as jN, VisibleIcon as jO, VisibleOffIcon as jP, VoiceModeIcon as jQ, WithDesignSystemThemeHoc as jR, WorkflowCodeIcon as jS, WorkflowCubeIcon as jT, WorkflowsIcon as jU, WorkspacesIcon as jV, WrenchIcon as jW, WrenchSparkleIcon as jX, XCircleFillIcon as jY, XCircleIcon as jZ, YearPickerGrid as j_, TextBoxIcon as ja, TextColorIcon as jb, TextIcon as jc, TextJustifyIcon as jd, TextUnderlineIcon as je, ThreeDotsIcon as jf, ThumbsDownFilledIcon as jg, ThumbsDownIcon as jh, ThumbsUpFilledIcon as ji, ThumbsUpIcon as jj, ToggleButton as jk, TokenIcon as jl, TrashIcon as jm, Tree as jn, TreeIcon as jo, TrendingFillIcon as jp, TrendingIcon as jq, TriangleIcon as jr, TypeaheadComboboxCheckboxItem as js, TypeaheadComboboxFooter as jt, TypeaheadComboboxMenuItem$1 as ju, TypeaheadComboboxMultiSelectStateChangeTypes as jv, TypeaheadComboboxStateChangeTypes as jw, UnderlineIcon as jx, UndoIcon as jy, UploadIcon as jz, DangerFillIcon as k, ZaVerticalIcon as k0, ZeroOpsIcon as k1, ZeroOpsOutlineIcon as k2, ZoomInIcon as k3, ZoomMarqueeSelection as k4, ZoomOutIcon as k5, ZoomToFitIcon as k6, __INTERNAL_DO_NOT_USE__FormItem as k7, __INTERNAL_DO_NOT_USE__Group as k8, __INTERNAL_DO_NOT_USE__HorizontalGroup as k9, setImplicitContextGetter as kA, skipHideIconButtonActionClassName as kB, themeMemoKey as kC, useAntDConfigProviderContext as kD, useCallbackOnEnter as kE, useComponentFinderContext as kF, useDesignSystemEventSuppressInteractionContext as kG, useFormContext as kH, useRadioGroupContext as kI, __INTERNAL_DO_NOT_USE__VerticalGroup as ka, __INTERNAL_DO_NOT_USE__wrapLegacyFormRules as kb, augmentWithDataComponentProps as kc, dialogComboboxLookAheadKeyDown as kd, getBottomOnlyShadowScrollStyles as ke, getButtonEmotionStyles as kf, getComboboxOptionLabelStyles as kg, getDatePickerQuickActionBasic as kh, getDialogComboboxOptionLabelWidth as ki, getHorizontalTabShadowStyles as kj, getInputStyles as kk, getKeyboardNavigationFunctions as kl, getMemoizedButtonEmotionStyles as km, getPaginationEmotionStyles as kn, getPanelContainmentStyle as ko, getRadioStyles as kp, getRangeQuickActionsBasic as kq, getShadowScrollStyles as kr, getTypographyColor as ks, getVirtualListScrollbarStyles as kt, getVirtualListScrollbarThumbColor as ku, getVirtualizedComboboxMenuItemStyles as kv, getWrapperStyle as kw, highlightFirstNonDisabledOption as kx, isOptionDisabled as ky, resetTabIndexToFocusedElement as kz, DesignSystemEventProviderAnalyticsEventTypes as l, useDesignSystemEventComponentCallbacks as m, DesignSystemEventProviderComponentTypes as n, DesignSystemEventProviderComponentSubTypeMap as o, primitiveColors as p, useNotifyOnFirstView as q, useStableUuidV4 as r, ChevronDownIcon as s, ChevronRightIcon as t, useWizardCurrentStep as u, DesignSystemAntDConfigProvider as v, CloseSmallIcon as w, addDebugOutlineIfEnabled as x, Modal as y, getAnimationCss as z };
|
|
37667
|
-
//# sourceMappingURL=WizardStepContentWrapper-
|
|
38484
|
+
export { getOffsets as $, token as A, Button as B, CheckCircleFillIcon as C, DocumentationSidebar as D, getDarkModePortalStyles as E, FIXED_VERTICAL_STEPPER_WIDTH as F, useModalContext as G, Trigger$5 as H, InfoFillIcon as I, InfoSmallIcon as J, Content$7 as K, Arrow$2 as L, MAX_VERTICAL_WIZARD_CONTENT_WIDTH as M, Tooltip as N, SparkleDoubleIcon as O, getIconClassName as P, AntDBreadcrumbItem as Q, Root$9 as R, ShapeTokens as S, Typography as T, AntDBreadcrumbSeparator as U, serverSideSafe as V, Wizard as W, AntDBreadcrumbInternal as X, LoadingState as Y, visuallyHidden as Z, genSkeletonAnimatedColor as _, WizardControlled as a, CircleIcon as a$, DesignSystemEventSuppressInteractionProviderContext as a0, DesignSystemEventSuppressInteractionTrueContextValue as a1, tableStyles as a2, repeatingElementsStyles as a3, tableClassNames as a4, hideIconButtonRowStyles as a5, hideIconButtonActionCellClassName as a6, safex as a7, TitleSkeleton as a8, useDialogComboboxContext as a9, SectionHeader as aA, PlusIcon as aB, getComboboxOptionItemWrapperStyles as aC, useComboboxState as aD, useMultipleSelectionState as aE, Radio as aF, Checkbox as aG, DialogCombobox as aH, DialogComboboxTrigger as aI, DialogComboboxContent as aJ, Select as aK, SelectTrigger as aL, SelectContent as aM, SelectOption as aN, LegacySelect as aO, WarningIcon as aP, CheckCircleIcon as aQ, DangerIcon as aR, Hint as aS, Title$1 as aT, CloseIcon as aU, RestoreAntDDefaultClsPrefix as aV, AccessibleContainer as aW, DU_BOIS_ENABLE_ANIMATION_CLASSNAME as aX, Tag as aY, CircleOffIcon as aZ, CircleOutlineIcon as a_, getFooterStyles as aa, useDialogComboboxOptionListContext as ab, generateUuidV4 as ac, getContentOptions as ad, findHighlightedOption as ae, highlightOption as af, Input as ag, SearchIcon as ah, EmptyResults as ai, findClosestOptionSibling as aj, DialogComboboxOptionListCheckboxItem as ak, DialogComboboxOptionListSelectItem as al, DialogComboboxOptionListContextProvider as am, LoadingSpinner as an, DialogComboboxOptionList as ao, importantify as ap, useUniqueId as aq, TypeaheadComboboxContextProvider as ar, useTypeaheadComboboxContext as as, useDuboisThemeClass as at, useDesignTokenOverrideStyles as au, getComboboxContentWrapperStyles as av, ClearSelectionButton as aw, TypeaheadComboboxSelectedItem$1 as ax, CountBadge$1 as ay, getValidationStateColor as az, WizardModal as b, BarStackedPercentageIcon as b$, getBtnClassName as b0, SortAscendingIcon as b1, SortDescendingIcon as b2, SortUnsortedIcon as b3, MinusSquareIcon as b4, PlusSquareIcon as b5, TypeaheadComboboxV2ContextProvider as b6, useTypeaheadComboboxV2Context as b7, useRadixModalContext as b8, useIsomorphicLayoutEffect as b9, ArrowInTableIcon as bA, ArrowLeftIcon as bB, ArrowOutTableIcon as bC, ArrowOverIcon as bD, ArrowRightIcon as bE, ArrowUpDotIcon as bF, ArrowUpFillIcon as bG, ArrowUpIcon as bH, ArrowsCollapseIcon as bI, ArrowsConnectIcon as bJ, ArrowsExpandIcon as bK, ArrowsUpDownIcon as bL, AssistantIcon as bM, AtIcon as bN, Auth0Graphic as bO, Auth0GraphicLarge as bP, AzHorizontalIcon as bQ, AzVerticalIcon as bR, BANNER_MAX_HEIGHT as bS, BANNER_MIN_HEIGHT as bT, BackupIcon as bU, BadgeCodeIcon as bV, BadgeCodeOffIcon as bW, Banner as bX, BarChartIcon as bY, BarGroupedIcon as bZ, BarStackedIcon as b_, useScrollOptionIntoView as ba, InfoTooltip as bb, getInfoIconStyles as bc, HintRow as bd, getCheckboxStyles as be, getMenuItemStyles as bf, TypeaheadComboboxSelectedItem as bg, CountBadge as bh, TypeaheadComboboxMenuItem as bi, AccessDeniedGraphic as bj, Accordion as bk, AccordionPanel as bl, AlignCenterIcon as bm, AlignJustifyIcon as bn, AlignLeftIcon as bo, AlignRightIcon as bp, AlignVerticalBottomIcon as bq, AlignVerticalCenterIcon as br, AlignVerticalTopIcon as bs, AppIcon as bt, ApplyDesignSystemContextOverrides as bu, ApplyDesignSystemFlags as bv, ArrowDownDotIcon as bw, ArrowDownFillIcon as bx, ArrowDownIcon as by, ArrowInIcon as bz, WizardStepContentWrapper as c, ChipIcon as c$, BarsAscendingHorizontalIcon as c0, BarsAscendingVerticalIcon as c1, BarsDescendingHorizontalIcon as c2, BarsDescendingVerticalIcon as c3, BeakerIcon as c4, BinaryIcon as c5, BlockQuoteIcon as c6, BoldIcon as c7, BookIcon as c8, BookmarkFillIcon as c9, CatalogIcon as cA, CatalogOffIcon as cB, CatalogSharedIcon as cC, CatalogUserHomeIcon as cD, CellsSquareIcon as cE, CertifiedFillIcon as cF, CertifiedFillSmallIcon as cG, CertifiedIcon as cH, ChainIcon as cI, ChartLineIcon as cJ, ChatNewTabIcon as cK, ChatSpinnerIcon as cL, CheckCircleBadgeIcon as cM, CheckCircleSmallIcon as cN, CheckIcon as cO, CheckLineIcon as cP, CheckSmallIcon as cQ, CheckboxIcon as cR, ChecklistIcon as cS, ChevronDoubleDownIcon as cT, ChevronDoubleLeftIcon as cU, ChevronDoubleLeftOffIcon as cV, ChevronDoubleRightIcon as cW, ChevronDoubleRightOffIcon as cX, ChevronDoubleUpIcon as cY, ChevronLeftIcon as cZ, ChevronUpIcon as c_, BookmarkIcon as ca, BooksIcon as cb, BracketsCheckIcon as cc, BracketsCurlyIcon as cd, BracketsErrorIcon as ce, BracketsSquareIcon as cf, BracketsXIcon as cg, BranchCheckIcon as ch, BranchIcon as ci, BranchResetIcon as cj, BriefcaseFillIcon as ck, BriefcaseIcon as cl, BrushIcon as cm, BugIcon as cn, CalendarClockIcon as co, CalendarEventIcon as cp, CalendarIcon as cq, CalendarRangeIcon as cr, CalendarSyncIcon as cs, CameraIcon as ct, CapitalizeIcon as cu, CaretDownSquareIcon as cv, CaretUpSquareIcon as cw, CatalogCloudIcon as cx, CatalogGearIcon as cy, CatalogHomeIcon as cz, WizardStepNavigationProvider as d, DialogComboboxCustomButtonTriggerWrapper as d$, CircleOffLargeIcon as d0, CircleOutlineLargeIcon as d1, ClipboardIcon as d2, ClockIcon as d3, ClockKeyIcon as d4, ClockOffIcon as d5, CloudCheckIcon as d6, CloudDatabaseIcon as d7, CloudDownloadIcon as d8, CloudIcon as d9, CursorTypeIcon as dA, CustomAppIcon as dB, DS_OVERRIDE_TOKENS_WRAPPER_TESTID as dC, DagHorizontalIcon as dD, DagIcon as dE, DagVerticalIcon as dF, DangerModal as dG, DangerSmallIcon as dH, DashIcon as dI, DashboardCodeIcon as dJ, DashboardIcon as dK, DataIcon as dL, DataMaskiingGraphic as dM, DatabaseClockIcon as dN, DatabaseIcon as dO, DatabaseImportIcon as dP, DatePicker as dQ, DecimalIcon as dR, DeprecatedIcon as dS, DeprecatedSmallIcon as dT, DesignSystemContext as dU, DesignSystemEventProviderComponentSubTypes as dV, DesignSystemProvider as dW, DesignSystemThemeContext as dX, DesignSystemThemeProvider as dY, DialogComboboxAddButton as dZ, DialogComboboxCountBadge as d_, CloudKeyIcon as da, CloudModelIcon as db, CloudOffIcon as dc, CloudUploadIcon as dd, CodeIcon as de, ColorFillIcon as df, ColorMappingEditIcon as dg, ColorMappingIcon as dh, ColorVars as di, ColumnIcon as dj, ColumnSplitIcon as dk, ColumnTagIcon as dl, ColumnsIcon as dm, CommandIcon as dn, CommandPaletteIcon as dp, CompassIcon as dq, ComponentFinderContext as dr, ConnectIcon as ds, Content$2 as dt, ContextMenu$1 as du, CopyIcon as dv, CreditCardIcon as dw, CursorClickIcon as dx, CursorIcon as dy, CursorPagination as dz, useWizardStepNavigation as e, GenieDeepResearchIcon as e$, DialogComboboxSectionHeader as e0, DollarIcon as e1, DomainCirclesThree as e2, DomainsIcon as e3, DotsCircleIcon as e4, DownloadIcon as e5, DragIcon as e6, Drawer as e7, DropdownMenu as e8, Empty as e9, FolderCubeIcon as eA, FolderCubeOutlineIcon as eB, FolderFillIcon as eC, FolderHomeIcon as eD, FolderIcon as eE, FolderNewIcon as eF, FolderNodeIcon as eG, FolderOpenBranchIcon as eH, FolderOpenCloudIcon as eI, FolderOpenCubeIcon as eJ, FolderOpenIcon as eK, FolderOpenPipelineIcon as eL, FolderOutlinePipelineIcon as eM, FolderSolidPipelineIcon as eN, FontIcon as eO, ForkHorizontalIcon as eP, ForkIcon as eQ, Form as eR, FormContextResetBoundary as eS, FullscreenExitIcon as eT, FullscreenIcon as eU, FunctionIcon as eV, FunctionInputIcon as eW, GavelIcon as eX, GearFillIcon as eY, GearIcon as eZ, GenieCodeIcon as e_, EmptyDashboardGraphic as ea, ErdIcon as eb, ExpandLessIcon as ec, ExpandMoreIcon as ed, FaceFrownIcon as ee, FaceNeutralIcon as ef, FaceSmileIcon as eg, FileCodeIcon as eh, FileCubeIcon as ei, FileDocumentIcon as ej, FileIcon as ek, FileImageIcon as el, FileLockIcon as em, FileModelIcon as en, FileNewIcon as eo, FilePipelineIcon as ep, FilterFillIcon as eq, FilterIcon as er, FlagPointerIcon as es, FloatIcon as et, FlowIcon as eu, FlowsIcon as ev, FolderBranchFillIcon as ew, FolderBranchIcon as ex, FolderCloudFilledIcon as ey, FolderCloudIcon as ez, DesignSystemEventProvider as f, ListNumberIcon as f$, GiftIcon as f0, GitCommitIcon as f1, GitMergeIcon as f2, GitRebaseIcon as f3, GlobeIcon as f4, Graphic as f5, GridDashIcon as f6, GridIcon as f7, GroupIcon as f8, H1Icon as f9, LakewatchIcon as fA, LakewatchParserIcon as fB, LayerGraphIcon as fC, LayerIcon as fD, Layout as fE, LeafIcon as fF, LegacyForm as fG, LegacyFormDubois as fH, LegacyOptGroup as fI, LegacyOption as fJ, LegacySelectOptGroup as fK, LegacySelectOption as fL, LegacyTable as fM, LetterFormatIcon as fN, LettersIcon as fO, LettersNumbersIcon as fP, LibrariesIcon as fQ, LifesaverIcon as fR, LightbulbIcon as fS, LightningCircleFillIcon as fT, LightningIcon as fU, LinearLineIcon as fV, LinkIcon as fW, LinkOffIcon as fX, ListBorderIcon as fY, ListClearIcon as fZ, ListIcon as f_, H2Icon as fa, H3Icon as fb, H4Icon as fc, H5Icon as fd, H6Icon as fe, HashIcon as ff, HistoryIcon as fg, HomeIcon as fh, Icon as fi, ImageIcon as fj, IndentDecreaseIcon as fk, IndentIncreaseIcon as fl, InfinityIcon as fm, InfoBookIcon as fn, InfoIcon as fo, IngestionIcon as fp, ItalicIcon as fq, JoinOperatorIcon as fr, KeyIcon as fs, KeyboardIcon as ft, LakebaseCatalogIcon as fu, LakebaseIcon as fv, LakeflowDesignerIcon as fw, LakewatchAlertIcon as fx, LakewatchDatasourceIcon as fy, LakewatchDetectionRuleIcon as fz, useDesignSystemTheme as g, PauseIcon as g$, Listbox as g0, LoadingIcon as g1, LoadingStateContext as g2, LockFillIcon as g3, LockIcon as g4, LockShareIcon as g5, LockUnlockedIcon as g6, LoopIcon as g7, LowercaseIcon as g8, MailIcon as g9, NotebookIcon as gA, NotebookPipelineIcon as gB, NotificationIcon as gC, NotificationOffIcon as gD, NumberFormatIcon as gE, NumbersIcon as gF, OfficeIcon as gG, OntologyIcon as gH, OperatorIcon as gI, OutageGraphic as gJ, OverflowHorizontalIcon as gK, OverflowIcon as gL, PageBottomIcon as gM, PageFirstIcon as gN, PageIcon as gO, PageLastIcon as gP, PageTopIcon as gQ, Pagination as gR, Panel as gS, PanelBody as gT, PanelDockedIcon as gU, PanelFloatingIcon as gV, PanelHeader as gW, PanelHeaderButtons as gX, PanelHeaderTitle as gY, PaperclipIcon as gZ, PassFailChecklistIcon as g_, MapIcon as ga, MarkdownIcon as gb, McpIcon as gc, MeasureIcon as gd, MegaphoneIcon as ge, MenuIcon as gf, MicrophoneIcon as gg, MicrophoneOffIcon as gh, MinusCircleFillIcon as gi, MinusCircleIcon as gj, MinusCircleSmallIcon as gk, MissingBranchGraphic as gl, MissingGraphic as gm, ModelsIcon as gn, MonotoneLineIcon as go, MonthPickerGrid as gp, MoonIcon as gq, Nav as gr, NavButton as gs, NavigationMenu as gt, NeonProjectIcon as gu, NewChatIcon as gv, NewTabIcon as gw, NewWindowIcon as gx, NoCaseIcon as gy, NoIcon as gz, DesignTokenScope as h, SendIcon as h$, PencilFillIcon as h0, PencilIcon as h1, PencilSparkleIcon as h2, PieChartIcon as h3, PillControl as h4, PinCancelIcon as h5, PinFillIcon as h6, PinIcon as h7, PipelineCodeIcon as h8, PipelineCubeIcon as h9, RadioTile as hA, RangePicker as hB, ReaderModeIcon as hC, RedoIcon as hD, RefreshIcon as hE, RefreshPlayIcon as hF, RefreshXIcon as hG, ReplyIcon as hH, ResizeIcon as hI, RhfForm as hJ, RichTextIcon as hK, RobotIcon as hL, RocketIcon as hM, RowsIcon as hN, RunIcon as hO, RunningIcon as hP, SMALL_BUTTON_HEIGHT$1 as hQ, SaveClockIcon as hR, SaveIcon as hS, SchemaIcon as hT, SchoolIcon as hU, SearchDataIcon as hV, SegmentedControlButton as hW, SegmentedControlGroup as hX, SelectContext as hY, SelectContextProvider as hZ, SelectOptionGroup as h_, PipelineIcon as ha, PivotOperatorIcon as hb, PlayCircleFillIcon as hc, PlayCircleIcon as hd, PlayDoubleIcon as he, PlayIcon as hf, PlayMultipleIcon as hg, PlugIcon as hh, PlusCircleFillIcon as hi, PlusCircleIcon as hj, PlusCircleSmallIcon as hk, PlusMinusSquareIcon as hl, Popover as hm, PositionBottomIcon as hn, PositionLeftIcon as ho, PositionRightIcon as hp, PositionTopIcon as hq, PreviewCard as hr, Progress as hs, PullRequestIcon as ht, PuzzleIcon as hu, QueryEditorIcon as hv, QueryIcon as hw, QuestionMarkFillIcon as hx, QuestionMarkIcon as hy, RadioIcon as hz, useDesignSystemContext as i, TableClockIcon as i$, ShareIcon as i0, ShareNodesIcon as i1, ShieldCheckIcon as i2, ShieldIcon as i3, ShieldOffIcon as i4, ShortcutIcon as i5, Sidebar as i6, SidebarAutoIcon as i7, SidebarClosedIcon as i8, SidebarCollapseIcon as i9, SparkleRectangleIcon as iA, SpeechBubbleIcon as iB, SpeechBubblePlusIcon as iC, SpeechBubbleQuestionMarkFillIcon as iD, SpeechBubbleQuestionMarkIcon as iE, SpeechBubbleStarIcon as iF, SpeedometerIcon as iG, Spinner as iH, SplitButton as iI, SqlIcon as iJ, StarFillIcon as iK, StarIcon as iL, StepAfterLineIcon as iM, StepBeforeLineIcon as iN, Stepper as iO, StopCircleFillIcon as iP, StopCircleIcon as iQ, StopIcon as iR, StoredProcedureIcon as iS, StorefrontIcon as iT, StreamIcon as iU, StrikeThroughIcon as iV, SunIcon as iW, SyncIcon as iX, SyncSmallIcon as iY, SyncToFileIcon as iZ, TableAsteriskIcon as i_, SidebarExpandIcon as ia, SidebarIcon as ib, SidebarOpenIcon as ic, SidebarSyncIcon as id, SimpleSelect as ie, SimpleSelectOption as ig, SimpleSelectOptionGroup as ih, SlashSquareIcon as ii, SlidersIcon as ij, SlidesIcon as ik, SnippetIcon as il, SortCustomHorizontalIcon as im, SortCustomVerticalIcon as io, SortHorizontalAscendingIcon as ip, SortHorizontalDescendingIcon as iq, SortLetterHorizontalAscendingIcon as ir, SortLetterHorizontalDescendingIcon as is, SortLetterUnsortedIcon as it, SortLetterVerticalAscendingIcon as iu, SortLetterVerticalDescendingIcon as iv, Spacer as iw, SparkleDoubleFillIcon as ix, SparkleFillIcon as iy, SparkleIcon as iz, WarningFillIcon as j, WorkflowsIcon as j$, TableCombineIcon as j0, TableGlassesIcon as j1, TableGlobeIcon as j2, TableIcon as j3, TableLightningIcon as j4, TableMeasureIcon as j5, TableModelIcon as j6, TableReportIcon as j7, TableStreamIcon as j8, TableVectorIcon as j9, TypeaheadComboboxFooter as jA, TypeaheadComboboxMenuItem$1 as jB, TypeaheadComboboxMultiSelectStateChangeTypes as jC, TypeaheadComboboxStateChangeTypes as jD, UnderlineIcon as jE, UndoIcon as jF, UploadIcon as jG, UppercaseIcon as jH, UsageOverageGraphic as jI, UsageSpikeGraphic as jJ, UsbIcon as jK, UserBadgeIcon as jL, UserCircleIcon as jM, UserGroupFillIcon as jN, UserGroupIcon as jO, UserIcon as jP, UserKeyIconIcon as jQ, UserShieldIcon as jR, UserSparkleIcon as jS, UserTeamIcon as jT, VisibleFillIcon as jU, VisibleIcon as jV, VisibleOffIcon as jW, VoiceModeIcon as jX, WithDesignSystemThemeHoc as jY, WorkflowCodeIcon as jZ, WorkflowCubeIcon as j_, TableViewIcon as ja, Tabs as jb, TagColumnIcon as jc, TagIcon as jd, TagTableIcon as je, TargetIcon as jf, TerminalIcon as jg, TextBoxIcon as jh, TextColorIcon as ji, TextIcon as jj, TextJustifyIcon as jk, TextUnderlineIcon as jl, ThreeDotsIcon as jm, ThumbsDownFilledIcon as jn, ThumbsDownIcon as jo, ThumbsUpFilledIcon as jp, ThumbsUpIcon as jq, ToggleButton as jr, TokenIcon as js, TrashIcon as jt, Tree as ju, TreeIcon as jv, TrendingFillIcon as jw, TrendingIcon as jx, TriangleIcon as jy, TypeaheadComboboxCheckboxItem as jz, DangerFillIcon as k, WorkspacesIcon as k0, WrenchIcon as k1, WrenchSparkleIcon as k2, XCircleFillIcon as k3, XCircleIcon as k4, YearPickerGrid as k5, ZaHorizontalIcon as k6, ZaVerticalIcon as k7, ZeroOpsIcon as k8, ZeroOpsOutlineIcon as k9, getTypographyColor as kA, getVirtualListScrollbarStyles as kB, getVirtualListScrollbarThumbColor as kC, getVirtualizedComboboxMenuItemStyles as kD, getWrapperStyle as kE, highlightFirstNonDisabledOption as kF, isOptionDisabled as kG, resetTabIndexToFocusedElement as kH, setImplicitContextGetter as kI, skipHideIconButtonActionClassName as kJ, themeMemoKey as kK, useAntDConfigProviderContext as kL, useCallbackOnEnter as kM, useComponentFinderContext as kN, useDesignSystemEventSuppressInteractionContext as kO, useFormContext as kP, useRadioGroupContext as kQ, ZoomInIcon as ka, ZoomMarqueeSelection as kb, ZoomOutIcon as kc, ZoomToFitIcon as kd, __INTERNAL_DO_NOT_USE__FormItem as ke, __INTERNAL_DO_NOT_USE__Group as kf, __INTERNAL_DO_NOT_USE__HorizontalGroup as kg, __INTERNAL_DO_NOT_USE__VerticalGroup as kh, __INTERNAL_DO_NOT_USE__wrapLegacyFormRules as ki, augmentWithDataComponentProps as kj, dialogComboboxLookAheadKeyDown as kk, fontSizesToStyle as kl, getBottomOnlyShadowScrollStyles as km, getButtonEmotionStyles as kn, getComboboxOptionLabelStyles as ko, getDatePickerQuickActionBasic as kp, getDialogComboboxOptionLabelWidth as kq, getHorizontalTabShadowStyles as kr, getInputStyles as ks, getKeyboardNavigationFunctions as kt, getMemoizedButtonEmotionStyles as ku, getPaginationEmotionStyles as kv, getPanelContainmentStyle as kw, getRadioStyles as kx, getRangeQuickActionsBasic as ky, getShadowScrollStyles as kz, DesignSystemEventProviderAnalyticsEventTypes as l, useDesignSystemEventComponentCallbacks as m, DesignSystemEventProviderComponentTypes as n, DesignSystemEventProviderComponentSubTypeMap as o, primitiveColors as p, useNotifyOnFirstView as q, useStableUuidV4 as r, ChevronDownIcon as s, ChevronRightIcon as t, useWizardCurrentStep as u, DesignSystemAntDConfigProvider as v, CloseSmallIcon as w, addDebugOutlineIfEnabled as x, Modal as y, getAnimationCss as z };
|
|
38485
|
+
//# sourceMappingURL=WizardStepContentWrapper-D_OEwjUE.js.map
|