@databricks/design-system 1.12.8 → 1.12.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/dist/{Typography-e3d5ff23.js → DropdownMenu-e0c3fc1d.js} +860 -159
- package/dist/DropdownMenu-e0c3fc1d.js.map +1 -0
- package/dist/{common-1fb3eeb9.js → common-31040b66.js} +1 -1
- package/dist/{common-1fb3eeb9.js.map → common-31040b66.js.map} +1 -1
- package/dist/design-system/AccessibleContainer/index.d.ts +7 -0
- package/dist/design-system/AccessibleContainer/index.d.ts.map +1 -0
- package/dist/design-system/Alert/Alert.d.ts.map +1 -1
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts +4 -7
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogCombobox.d.ts +3 -1
- package/dist/design-system/DialogCombobox/DialogCombobox.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxAddButton.d.ts +2 -0
- package/dist/design-system/DialogCombobox/DialogComboboxAddButton.d.ts.map +1 -0
- package/dist/design-system/DialogCombobox/DialogComboboxContent.d.ts +3 -1
- package/dist/design-system/DialogCombobox/DialogComboboxContent.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxFooter.d.ts +2 -0
- package/dist/design-system/DialogCombobox/DialogComboboxFooter.d.ts.map +1 -0
- package/dist/design-system/DialogCombobox/DialogComboboxHintRow.d.ts +7 -0
- package/dist/design-system/DialogCombobox/DialogComboboxHintRow.d.ts.map +1 -0
- package/dist/design-system/DialogCombobox/DialogComboboxOptionControlledList.d.ts +2 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionControlledList.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionList.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts +1 -0
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts +1 -0
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts +4 -2
- package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/index.d.ts +2 -0
- package/dist/design-system/DialogCombobox/index.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/providers/DialogComboboxContext.d.ts +7 -0
- package/dist/design-system/DialogCombobox/providers/DialogComboboxContext.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/providers/DialogComboboxOptionListContext.d.ts +2 -2
- package/dist/design-system/DialogCombobox/providers/DialogComboboxOptionListContext.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/shared.d.ts +3 -0
- package/dist/design-system/DialogCombobox/shared.d.ts.map +1 -1
- package/dist/design-system/Drawer/Drawer.d.ts +7 -2
- package/dist/design-system/Drawer/Drawer.d.ts.map +1 -1
- package/dist/design-system/DropdownMenu/DropdownMenu.d.ts +7 -0
- package/dist/design-system/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/design-system/FormV2/RHFAdapters.d.ts +38 -1
- package/dist/design-system/FormV2/RHFAdapters.d.ts.map +1 -1
- package/dist/design-system/Header/Header.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BarGroupedIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/BarGroupedIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/BarStackedIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/BarStackedIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/CalendarClockIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/CalendarClockIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/CatalogOffIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/CatalogOffIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/CheckboxIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/CheckboxIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/ColumnsIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/ColumnsIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/FaceNeutralIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FloatIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/FloatIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/FolderCloudFilledIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/FolderCloudFilledIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/FolderCloudIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/FolderCloudIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/LibrariesIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/LibrariesIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/RobotIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/RobotIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalAscendingIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalAscendingIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalDescendingIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalDescendingIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalLeftIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalLeftIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalRightIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalRightIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/StopIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/WorkflowsIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/WorkflowsIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/index.d.ts +16 -1
- package/dist/design-system/Icon/__generated/icons/index.d.ts.map +1 -1
- package/dist/design-system/Input/Input.d.ts.map +1 -1
- package/dist/design-system/Layout/Layout.d.ts +3 -0
- package/dist/design-system/Layout/Layout.d.ts.map +1 -1
- package/dist/design-system/Radio/Radio.d.ts.map +1 -1
- package/dist/{development → design-system}/SelectV2/Select.d.ts +1 -1
- package/dist/design-system/SelectV2/Select.d.ts.map +1 -0
- package/dist/{development → design-system}/SelectV2/SelectContent.d.ts +1 -1
- package/dist/design-system/SelectV2/SelectContent.d.ts.map +1 -0
- package/dist/{development → design-system}/SelectV2/SelectOption.d.ts +1 -1
- package/dist/design-system/SelectV2/SelectOption.d.ts.map +1 -0
- package/dist/design-system/SelectV2/SelectOptionGroup.d.ts.map +1 -0
- package/dist/{development → design-system}/SelectV2/SelectTrigger.d.ts +1 -1
- package/dist/design-system/SelectV2/SelectTrigger.d.ts.map +1 -0
- package/dist/design-system/SelectV2/hooks/useSelectContext.d.ts.map +1 -0
- package/dist/design-system/SelectV2/index.d.ts.map +1 -0
- package/dist/design-system/SelectV2/providers/SelectContext.d.ts.map +1 -0
- package/dist/design-system/Sidebar/Sidebar.d.ts +2 -1
- package/dist/design-system/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/design-system/Skeleton/LegacySkeleton.d.ts +16 -0
- package/dist/design-system/Skeleton/LegacySkeleton.d.ts.map +1 -0
- package/dist/design-system/Skeleton/index.d.ts +1 -1
- package/dist/design-system/Skeleton/index.d.ts.map +1 -1
- package/dist/design-system/SkeletonV2/GenericSkeleton.d.ts +12 -0
- package/dist/design-system/SkeletonV2/GenericSkeleton.d.ts.map +1 -0
- package/dist/design-system/SkeletonV2/ParagraphSkeleton.d.ts +15 -0
- package/dist/design-system/SkeletonV2/ParagraphSkeleton.d.ts.map +1 -0
- package/dist/design-system/{TableUI → SkeletonV2}/TableSkeleton.d.ts +2 -0
- package/dist/design-system/SkeletonV2/TableSkeleton.d.ts.map +1 -0
- package/dist/design-system/SkeletonV2/TitleSkeleton.d.ts +12 -0
- package/dist/design-system/SkeletonV2/TitleSkeleton.d.ts.map +1 -0
- package/dist/design-system/SkeletonV2/index.d.ts +5 -0
- package/dist/design-system/SkeletonV2/index.d.ts.map +1 -0
- package/dist/design-system/SkeletonV2/utils.d.ts +7 -0
- package/dist/design-system/SkeletonV2/utils.d.ts.map +1 -0
- package/dist/design-system/Spinner/Spinner.d.ts +1 -0
- package/dist/design-system/Spinner/Spinner.d.ts.map +1 -1
- package/dist/design-system/TableUI/TableCell.d.ts +3 -1
- package/dist/design-system/TableUI/TableCell.d.ts.map +1 -1
- package/dist/design-system/TableUI/TableHeader.d.ts +3 -1
- package/dist/design-system/TableUI/TableHeader.d.ts.map +1 -1
- package/dist/design-system/TableUI/TableRowAction.d.ts.map +1 -1
- package/dist/design-system/TableUI/index.d.ts +0 -1
- package/dist/design-system/TableUI/index.d.ts.map +1 -1
- package/dist/design-system/Tag/index.d.ts.map +1 -1
- package/dist/design-system/Tooltip/InfoTooltip.d.ts +8 -0
- package/dist/design-system/Tooltip/InfoTooltip.d.ts.map +1 -0
- package/dist/design-system/Tooltip/index.d.ts +1 -0
- package/dist/design-system/Tooltip/index.d.ts.map +1 -1
- package/dist/design-system/Tree/Tree.d.ts +2 -2
- package/dist/design-system/Tree/Tree.d.ts.map +1 -1
- package/dist/design-system/Typography/Hint.d.ts +14 -0
- package/dist/design-system/Typography/Hint.d.ts.map +1 -0
- package/dist/design-system/Typography/Paragraph.d.ts.map +1 -1
- package/dist/design-system/Typography/Text.d.ts +3 -0
- package/dist/design-system/Typography/Text.d.ts.map +1 -1
- package/dist/design-system/Typography/Title.d.ts.map +1 -1
- package/dist/design-system/Typography/Typography.d.ts +2 -0
- package/dist/design-system/Typography/Typography.d.ts.map +1 -1
- package/dist/design-system/index.d.ts +3 -0
- package/dist/design-system/index.d.ts.map +1 -1
- package/dist/design-system/utils/index.d.ts +1 -0
- package/dist/design-system/utils/index.d.ts.map +1 -1
- package/dist/development/ChatUI/ChatInput.d.ts.map +1 -1
- package/dist/development/ChatUI/CodeSnippet.d.ts.map +1 -1
- package/dist/development/ChatUI/Feedback.d.ts.map +1 -1
- package/dist/development/ChatUI/MessageActionButton.d.ts +4 -0
- package/dist/development/ChatUI/MessageActionButton.d.ts.map +1 -0
- package/dist/development/ChatUI/MessageHeader.d.ts.map +1 -1
- package/dist/development/ChatUI/index.d.ts +1 -0
- package/dist/development/ChatUI/index.d.ts.map +1 -1
- package/dist/development/ContextMenu/ContextMenu.d.ts +58 -0
- package/dist/development/ContextMenu/ContextMenu.d.ts.map +1 -0
- package/dist/development/ContextMenu/index.d.ts +2 -0
- package/dist/development/ContextMenu/index.d.ts.map +1 -0
- package/dist/development/index.d.ts +2 -1
- package/dist/development/index.d.ts.map +1 -1
- package/dist/development.js +394 -135
- package/dist/development.js.map +1 -1
- package/dist/flags.d.ts +0 -1
- package/dist/flags.d.ts.map +1 -1
- package/dist/index-dark.css +230 -3520
- package/dist/index.css +230 -3520
- package/dist/index.js +3334 -2650
- package/dist/index.js.map +1 -1
- package/dist/rollup/less.d.ts +3 -0
- package/dist/rollup/less.d.ts.map +1 -0
- package/dist/styles.js +1 -0
- package/dist/styles.js.map +1 -0
- package/dist/test-utils/enzyme.js +6 -3
- package/dist/test-utils/enzyme.js.map +1 -1
- package/dist/test-utils/rtl/selectEvent.d.ts.map +1 -1
- package/dist/test-utils/rtl.js +55 -13
- package/dist/test-utils/rtl.js.map +1 -1
- package/dist/theme/colorList.d.ts +10 -0
- package/dist/theme/colorList.d.ts.map +1 -1
- package/dist/theme/colors.d.ts.map +1 -1
- package/package.json +28 -34
- package/dist/Spinner-140f57ac.js +0 -2525
- package/dist/Spinner-140f57ac.js.map +0 -1
- package/dist/Typography-1b037412.js +0 -2074
- package/dist/Typography-1b037412.js.map +0 -1
- package/dist/Typography-e3d5ff23.js.map +0 -1
- package/dist/common-3ab0e300.js +0 -15
- package/dist/common-3ab0e300.js.map +0 -1
- package/dist/common-819b45d4.js +0 -15
- package/dist/common-819b45d4.js.map +0 -1
- package/dist/design-system/Button/Button.test.d.ts +0 -2
- package/dist/design-system/Button/Button.test.d.ts.map +0 -1
- package/dist/design-system/Checkbox/Checkbox.test.d.ts +0 -2
- package/dist/design-system/Checkbox/Checkbox.test.d.ts.map +0 -1
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.test.d.ts +0 -2
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.test.d.ts.map +0 -1
- package/dist/design-system/DesignSystemProvider/DesignSystemThemeProvider.test.d.ts +0 -2
- package/dist/design-system/DesignSystemProvider/DesignSystemThemeProvider.test.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/tests/DialogCombobox.test.d.ts +0 -2
- package/dist/design-system/DialogCombobox/tests/DialogCombobox.test.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/tests/DialogComboboxButtonContainer.test.d.ts +0 -2
- package/dist/design-system/DialogCombobox/tests/DialogComboboxButtonContainer.test.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/tests/DialogComboboxContent.test.d.ts +0 -2
- package/dist/design-system/DialogCombobox/tests/DialogComboboxContent.test.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/tests/DialogComboboxOptionList.test.d.ts +0 -2
- package/dist/design-system/DialogCombobox/tests/DialogComboboxOptionList.test.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/tests/DialogComboboxOptionListCheckboxItem.test.d.ts +0 -2
- package/dist/design-system/DialogCombobox/tests/DialogComboboxOptionListCheckboxItem.test.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/tests/DialogComboboxOptionListSelectItem.test.d.ts +0 -2
- package/dist/design-system/DialogCombobox/tests/DialogComboboxOptionListSelectItem.test.d.ts.map +0 -1
- package/dist/design-system/DialogCombobox/tests/DialogComboboxTrigger.test.d.ts +0 -2
- package/dist/design-system/DialogCombobox/tests/DialogComboboxTrigger.test.d.ts.map +0 -1
- package/dist/design-system/DropdownMenu/DropdownMenu.test.d.ts +0 -2
- package/dist/design-system/DropdownMenu/DropdownMenu.test.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/AppIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/AppIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BinaryIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/BinaryIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BoldIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/BoldIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BracketsCurlyIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/BracketsCurlyIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BracketsSquareIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/BracketsSquareIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BracketsXIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/BracketsXIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CatalogIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/CatalogIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ChartLineIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/ChartLineIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleBadgeIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/CheckCircleBadgeIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CloudKeyIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/CloudKeyIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CloudModelIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/CloudModelIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ColorFillIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/ColorFillIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ConnectIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/ConnectIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CursorIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/CursorIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/DagIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/DagIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/DecimalIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/DecimalIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/DotsCircleIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/DotsCircleIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FontIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/FontIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/FunctionIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/FunctionIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/GiftIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/GiftIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ItalicIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/ItalicIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/LettersIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/LettersIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/MenuIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/MenuIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/NotificationOffIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/NotificationOffIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/NumbersIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/NumbersIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PipelineIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/PipelineIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PlugIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/PlugIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ReposIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/ReposIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SaveIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/SaveIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SlidersIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/SlidersIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SortAscendingIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/SortAscendingIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SortDescendingIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/SortDescendingIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/SortUnsortedIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/SortUnsortedIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StorefrontIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/StorefrontIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/TextBoxIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/TextBoxIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/UnderlineIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/UnderlineIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/VariableIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/VariableIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/VariableIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/VariableIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/WorkspacesIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/WorkspacesIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Input/Input.test.d.ts +0 -2
- package/dist/design-system/Input/Input.test.d.ts.map +0 -1
- package/dist/design-system/LegacyNotification/LegacyNotification.test.d.ts +0 -2
- package/dist/design-system/LegacyNotification/LegacyNotification.test.d.ts.map +0 -1
- package/dist/design-system/Modal/Modal.test.d.ts +0 -2
- package/dist/design-system/Modal/Modal.test.d.ts.map +0 -1
- package/dist/design-system/Notification/Notification.test.d.ts +0 -2
- package/dist/design-system/Notification/Notification.test.d.ts.map +0 -1
- package/dist/design-system/NotificationV2/NotificationV2.d.ts +0 -24
- package/dist/design-system/NotificationV2/NotificationV2.d.ts.map +0 -1
- package/dist/design-system/NotificationV2/index.d.ts +0 -2
- package/dist/design-system/NotificationV2/index.d.ts.map +0 -1
- package/dist/design-system/Popover/Popover.test.d.ts +0 -2
- package/dist/design-system/Popover/Popover.test.d.ts.map +0 -1
- package/dist/design-system/PopoverV2/PopoverV2.d.ts +0 -11
- package/dist/design-system/PopoverV2/PopoverV2.d.ts.map +0 -1
- package/dist/design-system/PopoverV2/PopoverV2.test.d.ts +0 -2
- package/dist/design-system/PopoverV2/PopoverV2.test.d.ts.map +0 -1
- package/dist/design-system/PopoverV2/index.d.ts +0 -2
- package/dist/design-system/PopoverV2/index.d.ts.map +0 -1
- package/dist/design-system/Sidebar/Sidebar.test.d.ts +0 -2
- package/dist/design-system/Sidebar/Sidebar.test.d.ts.map +0 -1
- package/dist/design-system/Skeleton/Skeleton.d.ts +0 -15
- package/dist/design-system/Skeleton/Skeleton.d.ts.map +0 -1
- package/dist/design-system/Table/Table.d.ts +0 -17
- package/dist/design-system/Table/Table.d.ts.map +0 -1
- package/dist/design-system/Table/index.d.ts +0 -2
- package/dist/design-system/Table/index.d.ts.map +0 -1
- package/dist/design-system/TableUI/TableSkeleton.d.ts.map +0 -1
- package/dist/design-system/TableUI/TableUI.test.d.ts +0 -2
- package/dist/design-system/TableUI/TableUI.test.d.ts.map +0 -1
- package/dist/design-system/utils/accessibility.test.d.ts +0 -2
- package/dist/design-system/utils/accessibility.test.d.ts.map +0 -1
- package/dist/design-system/utils/safex.test.d.ts +0 -2
- package/dist/design-system/utils/safex.test.d.ts.map +0 -1
- package/dist/development/Filter/Filter.d.ts +0 -10
- package/dist/development/Filter/Filter.d.ts.map +0 -1
- package/dist/development/Filter/Filter.test.d.ts +0 -2
- package/dist/development/Filter/Filter.test.d.ts.map +0 -1
- package/dist/development/Filter/FilterButtonContainer.d.ts +0 -2
- package/dist/development/Filter/FilterButtonContainer.d.ts.map +0 -1
- package/dist/development/Filter/FilterContent.d.ts +0 -14
- package/dist/development/Filter/FilterContent.d.ts.map +0 -1
- package/dist/development/Filter/FilterCountBadge.d.ts +0 -2
- package/dist/development/Filter/FilterCountBadge.d.ts.map +0 -1
- package/dist/development/Filter/FilterLoadingSpinner.d.ts +0 -2
- package/dist/development/Filter/FilterLoadingSpinner.d.ts.map +0 -1
- package/dist/development/Filter/FilterOptionControlledList.d.ts +0 -9
- package/dist/development/Filter/FilterOptionControlledList.d.ts.map +0 -1
- package/dist/development/Filter/FilterOptionList.d.ts +0 -10
- package/dist/development/Filter/FilterOptionList.d.ts.map +0 -1
- package/dist/development/Filter/FilterOptionListCheckboxItem.d.ts +0 -11
- package/dist/development/Filter/FilterOptionListCheckboxItem.d.ts.map +0 -1
- package/dist/development/Filter/FilterOptionListSearch.d.ts +0 -7
- package/dist/development/Filter/FilterOptionListSearch.d.ts.map +0 -1
- package/dist/development/Filter/FilterOptionListSelectItem.d.ts +0 -10
- package/dist/development/Filter/FilterOptionListSelectItem.d.ts.map +0 -1
- package/dist/development/Filter/FilterSectionHeader.d.ts +0 -2
- package/dist/development/Filter/FilterSectionHeader.d.ts.map +0 -1
- package/dist/development/Filter/FilterSeparator.d.ts +0 -2
- package/dist/development/Filter/FilterSeparator.d.ts.map +0 -1
- package/dist/development/Filter/FilterTrigger.d.ts +0 -15
- package/dist/development/Filter/FilterTrigger.d.ts.map +0 -1
- package/dist/development/Filter/hooks/useFilterContext.d.ts +0 -2
- package/dist/development/Filter/hooks/useFilterContext.d.ts.map +0 -1
- package/dist/development/Filter/hooks/useFilterOptionListContext.d.ts +0 -2
- package/dist/development/Filter/hooks/useFilterOptionListContext.d.ts.map +0 -1
- package/dist/development/Filter/index.d.ts +0 -14
- package/dist/development/Filter/index.d.ts.map +0 -1
- package/dist/development/Filter/providers/FilterContext.d.ts +0 -15
- package/dist/development/Filter/providers/FilterContext.d.ts.map +0 -1
- package/dist/development/Filter/providers/FilterOptionListContext.d.ts +0 -10
- package/dist/development/Filter/providers/FilterOptionListContext.d.ts.map +0 -1
- package/dist/development/Filter/shared.d.ts +0 -3
- package/dist/development/Filter/shared.d.ts.map +0 -1
- package/dist/development/ListPagePattern/index.d.ts +0 -1
- package/dist/development/ListPagePattern/index.d.ts.map +0 -1
- package/dist/development/SelectV2/Select.d.ts.map +0 -1
- package/dist/development/SelectV2/SelectContent.d.ts.map +0 -1
- package/dist/development/SelectV2/SelectOption.d.ts.map +0 -1
- package/dist/development/SelectV2/SelectOptionGroup.d.ts.map +0 -1
- package/dist/development/SelectV2/SelectTrigger.d.ts.map +0 -1
- package/dist/development/SelectV2/hooks/useSelectContext.d.ts.map +0 -1
- package/dist/development/SelectV2/index.d.ts.map +0 -1
- package/dist/development/SelectV2/providers/SelectContext.d.ts.map +0 -1
- package/dist/development/TableUI/TableUI.test.d.ts +0 -2
- package/dist/development/TableUI/TableUI.test.d.ts.map +0 -1
- package/dist/development/TableUI/index.d.ts +0 -75
- package/dist/development/TableUI/index.d.ts.map +0 -1
- package/dist/index-mfe-dark.css +0 -17525
- package/dist/index-mfe.css +0 -17184
- package/dist/rollup-less-tilde-importer.d.ts +0 -3
- package/dist/rollup-less-tilde-importer.d.ts.map +0 -1
- package/dist/test-utils/enzyme/selectEvent.test.d.ts +0 -2
- package/dist/test-utils/enzyme/selectEvent.test.d.ts.map +0 -1
- package/dist/test-utils/enzyme/table.test.d.ts +0 -2
- package/dist/test-utils/enzyme/table.test.d.ts.map +0 -1
- package/dist/test-utils/rtl/selectEvent.test.d.ts +0 -2
- package/dist/test-utils/rtl/selectEvent.test.d.ts.map +0 -1
- package/dist/test-utils/rtl/table.test.d.ts +0 -2
- package/dist/test-utils/rtl/table.test.d.ts.map +0 -1
- package/dist/tsconfig.build.tsbuildinfo +0 -1
- package/dist/useDesignSystemTheme-1e16bcf5.js +0 -441
- package/dist/useDesignSystemTheme-1e16bcf5.js.map +0 -1
- package/dist/useDesignSystemTheme-3d2c1acb.js +0 -440
- package/dist/useDesignSystemTheme-3d2c1acb.js.map +0 -1
- package/dist/useDesignSystemTheme-6e6f5867.js +0 -441
- package/dist/useDesignSystemTheme-6e6f5867.js.map +0 -1
- package/dist/useDesignSystemTheme-ac536b0f.js +0 -443
- package/dist/useDesignSystemTheme-ac536b0f.js.map +0 -1
- package/dist/useDesignSystemTheme-c859571c.js +0 -468
- package/dist/useDesignSystemTheme-c859571c.js.map +0 -1
- package/dist/useDesignSystemTheme-c867a35d.js +0 -470
- package/dist/useDesignSystemTheme-c867a35d.js.map +0 -1
- package/dist/useDesignSystemTheme-ef39204e.js +0 -468
- package/dist/useDesignSystemTheme-ef39204e.js.map +0 -1
- /package/dist/{development → design-system}/SelectV2/SelectOptionGroup.d.ts +0 -0
- /package/dist/{development → design-system}/SelectV2/hooks/useSelectContext.d.ts +0 -0
- /package/dist/{development → design-system}/SelectV2/index.d.ts +0 -0
- /package/dist/{development → design-system}/SelectV2/providers/SelectContext.d.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React__default, { createContext, useContext, useMemo, useEffect, forwardRef } from 'react';
|
|
2
|
-
import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
1
|
+
import React__default, { createContext, useContext, useMemo, useEffect, forwardRef, useRef, useImperativeHandle, Children } from 'react';
|
|
2
|
+
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
3
3
|
import { useTheme, ThemeProvider, css } from '@emotion/react';
|
|
4
|
-
import { notification, ConfigProvider, Button as Button$1, Input as Input$1, Typography as Typography$1 } from 'antd';
|
|
4
|
+
import { notification, ConfigProvider, Button as Button$1, Tooltip as Tooltip$1, Input as Input$1, Typography as Typography$1 } from 'antd';
|
|
5
|
+
import * as DropdownMenu$1 from '@radix-ui/react-dropdown-menu';
|
|
5
6
|
import chroma from 'chroma-js';
|
|
6
|
-
import AntDIcon from '@ant-design/icons';
|
|
7
7
|
import _isNil from 'lodash/isNil';
|
|
8
8
|
import _endsWith from 'lodash/endsWith';
|
|
9
9
|
import _isBoolean from 'lodash/isBoolean';
|
|
@@ -11,6 +11,81 @@ import _isNumber from 'lodash/isNumber';
|
|
|
11
11
|
import _isString from 'lodash/isString';
|
|
12
12
|
import _mapValues from 'lodash/mapValues';
|
|
13
13
|
import unitless from '@emotion/unitless';
|
|
14
|
+
import AntDIcon from '@ant-design/icons';
|
|
15
|
+
|
|
16
|
+
const ColorVars = {
|
|
17
|
+
primary: 'textPrimary',
|
|
18
|
+
secondary: 'textSecondary',
|
|
19
|
+
info: 'textValidationInfo',
|
|
20
|
+
error: 'textValidationDanger',
|
|
21
|
+
success: 'textValidationSuccess',
|
|
22
|
+
warning: 'textValidationWarning'
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Recursively appends `!important` to all CSS properties in an Emotion `CSSObject`.
|
|
27
|
+
* Used to ensure that we always override Ant styles, without worrying about selector precedence.
|
|
28
|
+
*/
|
|
29
|
+
function importantify(obj) {
|
|
30
|
+
return _mapValues(obj, (value, key) => {
|
|
31
|
+
if (_isString(value) || _isNumber(value) || _isBoolean(value)) {
|
|
32
|
+
// Make sure we don't double-append important
|
|
33
|
+
if (_isString(value) && _endsWith(value, '!important')) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
if (_isNumber(value)) {
|
|
37
|
+
if (unitless[key]) {
|
|
38
|
+
return `${value}!important`;
|
|
39
|
+
}
|
|
40
|
+
return `${value}px!important`;
|
|
41
|
+
}
|
|
42
|
+
return `${value}!important`;
|
|
43
|
+
}
|
|
44
|
+
if (_isNil(value)) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return importantify(value);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Returns a text color, in case of invalid/missing key and missing fallback color it will return textPrimary
|
|
53
|
+
* @param theme
|
|
54
|
+
* @param key - key of TypographyColor
|
|
55
|
+
* @param fallbackColor - color to return as fallback -- used to remove tertiary check inline
|
|
56
|
+
*/
|
|
57
|
+
function getTypographyColor(theme, key, fallbackColor) {
|
|
58
|
+
if (theme && key && Object(theme.colors).hasOwnProperty(ColorVars[key])) {
|
|
59
|
+
return theme.colors[ColorVars[key]];
|
|
60
|
+
}
|
|
61
|
+
return fallbackColor !== null && fallbackColor !== void 0 ? fallbackColor : theme.colors.textPrimary;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Returns validation color based on state, has default validation colors if params are not provided
|
|
66
|
+
* @param theme
|
|
67
|
+
* @param validationState
|
|
68
|
+
* @param errorColor
|
|
69
|
+
* @param warningColor
|
|
70
|
+
* @param successColor
|
|
71
|
+
*/
|
|
72
|
+
function getValidationStateColor(theme, validationState) {
|
|
73
|
+
let {
|
|
74
|
+
errorColor,
|
|
75
|
+
warningColor,
|
|
76
|
+
successColor
|
|
77
|
+
} = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
78
|
+
switch (validationState) {
|
|
79
|
+
case 'error':
|
|
80
|
+
return errorColor || theme.colors.actionDangerPrimaryBackgroundDefault;
|
|
81
|
+
case 'warning':
|
|
82
|
+
return warningColor || theme.colors.textValidationWarning;
|
|
83
|
+
case 'success':
|
|
84
|
+
return successColor || theme.colors.textValidationSuccess;
|
|
85
|
+
default:
|
|
86
|
+
return undefined;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
14
89
|
|
|
15
90
|
// Border variables
|
|
16
91
|
const borders = {
|
|
@@ -51,6 +126,24 @@ const responsive = {
|
|
|
51
126
|
};
|
|
52
127
|
var responsive$1 = responsive;
|
|
53
128
|
|
|
129
|
+
/**
|
|
130
|
+
* Provides access to http://go/safex flags from the frontend. Note that this is a temporary
|
|
131
|
+
* workaround until direct `safex` imports are available.
|
|
132
|
+
* @param flag The name of the flag to check
|
|
133
|
+
* @param defaultValue The default value to return if the flag is not set
|
|
134
|
+
* @returns
|
|
135
|
+
*/
|
|
136
|
+
const safex = (flag, defaultValue) => {
|
|
137
|
+
// Catching errors here, because we don't have type-safety to ensure
|
|
138
|
+
// that `__debug__safex`'s API hasn't changed.
|
|
139
|
+
try {
|
|
140
|
+
const globalSafex = window.__debug__safex;
|
|
141
|
+
return globalSafex ? globalSafex(flag, defaultValue) : defaultValue;
|
|
142
|
+
} catch (e) {
|
|
143
|
+
return defaultValue;
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
|
|
54
147
|
// Exported from go/designsystem/colorsheet
|
|
55
148
|
const colorPalettePrimary = {
|
|
56
149
|
primary: '#2272B4',
|
|
@@ -96,6 +189,16 @@ const colorPalettePrimary = {
|
|
|
96
189
|
yellow700: '#93320B',
|
|
97
190
|
yellow800: '#5F1B02'
|
|
98
191
|
};
|
|
192
|
+
const newGreys = {
|
|
193
|
+
grey100: '#F8F8F8',
|
|
194
|
+
grey200: '#E8E8E8',
|
|
195
|
+
grey300: '#D0D0D0',
|
|
196
|
+
grey400: '#AFAFAF',
|
|
197
|
+
grey500: '#969696',
|
|
198
|
+
grey600: '#727272',
|
|
199
|
+
grey700: '#403F3F',
|
|
200
|
+
grey800: '#181818'
|
|
201
|
+
};
|
|
99
202
|
const colorPaletteSecondary = {
|
|
100
203
|
brown: '#A6630C',
|
|
101
204
|
coral: '#C83243',
|
|
@@ -279,7 +382,12 @@ const lightColors = {
|
|
|
279
382
|
...colorPaletteSecondary
|
|
280
383
|
};
|
|
281
384
|
function getSemanticColors(isDarkMode) {
|
|
282
|
-
|
|
385
|
+
const colorList = isDarkMode ? darkColors : lightColors;
|
|
386
|
+
const enableNewGreys = safex('databricks.fe.designsystem.enableNewGreys', false);
|
|
387
|
+
return enableNewGreys ? {
|
|
388
|
+
...colorList,
|
|
389
|
+
...newGreys
|
|
390
|
+
} : colorList;
|
|
283
391
|
}
|
|
284
392
|
|
|
285
393
|
// TODO (FEINF-1674): Remove when removing USE_NEW_RADIO_STYLES
|
|
@@ -526,7 +634,9 @@ const DesignSystemProvider = _ref2 => {
|
|
|
526
634
|
enableAnimation = false,
|
|
527
635
|
zIndexBase = 1000,
|
|
528
636
|
getPopupContainer,
|
|
529
|
-
flags = {}
|
|
637
|
+
flags = {},
|
|
638
|
+
// Disable virtualization of legacy AntD components when running tests so that all items are rendered
|
|
639
|
+
disableLegacyAntVirtualization = process.env.NODE_ENV === 'test' ? true : undefined
|
|
530
640
|
} = _ref2;
|
|
531
641
|
const {
|
|
532
642
|
isDarkMode: contextDarkModeVal
|
|
@@ -569,7 +679,8 @@ const DesignSystemProvider = _ref2 => {
|
|
|
569
679
|
children: jsx(AntDConfigProviderPropsContext.Provider, {
|
|
570
680
|
value: {
|
|
571
681
|
prefixCls: classNamePrefix,
|
|
572
|
-
getPopupContainer
|
|
682
|
+
getPopupContainer,
|
|
683
|
+
virtual: !disableLegacyAntVirtualization
|
|
573
684
|
},
|
|
574
685
|
children: jsx(DesignSystemContext.Provider, {
|
|
575
686
|
value: value,
|
|
@@ -728,19 +839,42 @@ const Icon = props => {
|
|
|
728
839
|
});
|
|
729
840
|
};
|
|
730
841
|
|
|
731
|
-
function
|
|
842
|
+
function SvgCheckIcon(props) {
|
|
732
843
|
return jsx("svg", {
|
|
844
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
733
845
|
width: "1em",
|
|
734
846
|
height: "1em",
|
|
735
|
-
viewBox: "0 0 16 16",
|
|
736
847
|
fill: "none",
|
|
848
|
+
viewBox: "0 0 16 16",
|
|
849
|
+
...props,
|
|
850
|
+
children: jsx("path", {
|
|
851
|
+
fill: "currentColor",
|
|
852
|
+
fillRule: "evenodd",
|
|
853
|
+
d: "m15.06 3.56-9.53 9.531L1 8.561 2.06 7.5l3.47 3.47L14 2.5l1.06 1.06Z",
|
|
854
|
+
clipRule: "evenodd"
|
|
855
|
+
})
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
function CheckIcon(props) {
|
|
859
|
+
return jsx(Icon, {
|
|
860
|
+
...props,
|
|
861
|
+
component: SvgCheckIcon
|
|
862
|
+
});
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
function SvgChevronLeftIcon(props) {
|
|
866
|
+
return jsx("svg", {
|
|
737
867
|
xmlns: "http://www.w3.org/2000/svg",
|
|
868
|
+
width: "1em",
|
|
869
|
+
height: "1em",
|
|
870
|
+
fill: "none",
|
|
871
|
+
viewBox: "0 0 16 16",
|
|
738
872
|
...props,
|
|
739
873
|
children: jsx("path", {
|
|
874
|
+
fill: "currentColor",
|
|
740
875
|
fillRule: "evenodd",
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
fill: "currentColor"
|
|
876
|
+
d: "M7.083 8 10 10.947 8.958 12 5 8l3.958-4L10 5.053 7.083 8Z",
|
|
877
|
+
clipRule: "evenodd"
|
|
744
878
|
})
|
|
745
879
|
});
|
|
746
880
|
}
|
|
@@ -753,17 +887,17 @@ function ChevronLeftIcon(props) {
|
|
|
753
887
|
|
|
754
888
|
function SvgChevronRightIcon(props) {
|
|
755
889
|
return jsx("svg", {
|
|
890
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
756
891
|
width: "1em",
|
|
757
892
|
height: "1em",
|
|
758
|
-
viewBox: "0 0 16 16",
|
|
759
893
|
fill: "none",
|
|
760
|
-
|
|
894
|
+
viewBox: "0 0 16 16",
|
|
761
895
|
...props,
|
|
762
896
|
children: jsx("path", {
|
|
897
|
+
fill: "currentColor",
|
|
763
898
|
fillRule: "evenodd",
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
fill: "currentColor"
|
|
899
|
+
d: "M8.917 8 6 5.053 7.042 4 11 8l-3.958 4L6 10.947 8.917 8Z",
|
|
900
|
+
clipRule: "evenodd"
|
|
767
901
|
})
|
|
768
902
|
});
|
|
769
903
|
}
|
|
@@ -776,17 +910,17 @@ function ChevronRightIcon(props) {
|
|
|
776
910
|
|
|
777
911
|
function SvgCloseIcon(props) {
|
|
778
912
|
return jsx("svg", {
|
|
913
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
779
914
|
width: "1em",
|
|
780
915
|
height: "1em",
|
|
781
|
-
viewBox: "0 0 16 16",
|
|
782
916
|
fill: "none",
|
|
783
|
-
|
|
917
|
+
viewBox: "0 0 16 16",
|
|
784
918
|
...props,
|
|
785
919
|
children: jsx("path", {
|
|
920
|
+
fill: "currentColor",
|
|
786
921
|
fillRule: "evenodd",
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
fill: "currentColor"
|
|
922
|
+
d: "M6.97 8.03 2 3.06 3.06 2l4.97 4.97L13 2l1.06 1.06-4.969 4.97 4.97 4.97L13 14.06 8.03 9.092l-4.97 4.97L2 13l4.97-4.97Z",
|
|
923
|
+
clipRule: "evenodd"
|
|
790
924
|
})
|
|
791
925
|
});
|
|
792
926
|
}
|
|
@@ -799,27 +933,26 @@ function CloseIcon(props) {
|
|
|
799
933
|
|
|
800
934
|
function SvgCursorIcon(props) {
|
|
801
935
|
return jsxs("svg", {
|
|
936
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
802
937
|
width: "1em",
|
|
803
938
|
height: "1em",
|
|
804
|
-
viewBox: "0 0 16 16",
|
|
805
939
|
fill: "none",
|
|
806
|
-
|
|
940
|
+
viewBox: "0 0 16 16",
|
|
807
941
|
...props,
|
|
808
942
|
children: [jsx("g", {
|
|
809
|
-
clipPath: "url(#
|
|
943
|
+
clipPath: "url(#CursorIcon_svg__a)",
|
|
810
944
|
children: jsx("path", {
|
|
945
|
+
fill: "currentColor",
|
|
811
946
|
fillRule: "evenodd",
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
fill: "currentColor"
|
|
947
|
+
d: "M1.22 1.22a.75.75 0 0 1 .802-.169l13.5 5.25a.75.75 0 0 1-.043 1.413L9.597 9.597l-1.883 5.882a.75.75 0 0 1-1.413.043l-5.25-13.5a.75.75 0 0 1 .169-.802Zm1.847 1.847 3.864 9.937 1.355-4.233a.75.75 0 0 1 .485-.485l4.233-1.355-9.937-3.864Z",
|
|
948
|
+
clipRule: "evenodd"
|
|
815
949
|
})
|
|
816
950
|
}), jsx("defs", {
|
|
817
951
|
children: jsx("clipPath", {
|
|
818
|
-
id: "
|
|
952
|
+
id: "CursorIcon_svg__a",
|
|
819
953
|
children: jsx("path", {
|
|
820
954
|
fill: "#fff",
|
|
821
|
-
|
|
822
|
-
d: "M0 0h16v16H0z"
|
|
955
|
+
d: "M16 0H0v16h16z"
|
|
823
956
|
})
|
|
824
957
|
})
|
|
825
958
|
})]
|
|
@@ -834,25 +967,25 @@ function CursorIcon(props) {
|
|
|
834
967
|
|
|
835
968
|
function SvgFaceFrownIcon(props) {
|
|
836
969
|
return jsxs("svg", {
|
|
970
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
837
971
|
width: "1em",
|
|
838
972
|
height: "1em",
|
|
839
|
-
viewBox: "0 0 16 16",
|
|
840
973
|
fill: "none",
|
|
841
|
-
|
|
974
|
+
viewBox: "0 0 16 16",
|
|
842
975
|
...props,
|
|
843
976
|
children: [jsxs("g", {
|
|
844
|
-
clipPath: "url(#FaceFrownIcon_svg__clip0_16320_32311)",
|
|
845
977
|
fill: "currentColor",
|
|
978
|
+
clipPath: "url(#FaceFrownIcon_svg__a)",
|
|
846
979
|
children: [jsx("path", {
|
|
847
|
-
d: "M6 5.25a.75.75 0
|
|
980
|
+
d: "M6 5.25a.75.75 0 0 0 0 1.5h.007a.75.75 0 0 0 0-1.5H6ZM9.25 6a.75.75 0 0 1 .75-.75h.007a.75.75 0 0 1 0 1.5H10A.75.75 0 0 1 9.25 6ZM10.07 11.12a.75.75 0 0 0 1.197-.903l-.001-.001v-.001l-.003-.003-.005-.006-.015-.02a2.95 2.95 0 0 0-.217-.246 4.717 4.717 0 0 0-.627-.546C9.86 9 9.04 8.584 8 8.584s-1.858.416-2.4.81a4.716 4.716 0 0 0-.795.733 2.87 2.87 0 0 0-.048.06l-.015.019-.005.006-.002.003-.031.044.03-.042a.75.75 0 1 0 1.22.875 3.219 3.219 0 0 1 .529-.485c.375-.273.89-.523 1.517-.523.627 0 1.142.25 1.517.523a3.219 3.219 0 0 1 .529.485l.021.025.002.003Z"
|
|
848
981
|
}), jsx("path", {
|
|
849
982
|
fillRule: "evenodd",
|
|
850
|
-
|
|
851
|
-
|
|
983
|
+
d: "M8 .583a7.417 7.417 0 1 0 0 14.834A7.417 7.417 0 0 0 8 .583ZM2.083 8a5.917 5.917 0 1 1 11.834 0A5.917 5.917 0 0 1 2.083 8Z",
|
|
984
|
+
clipRule: "evenodd"
|
|
852
985
|
})]
|
|
853
986
|
}), jsx("defs", {
|
|
854
987
|
children: jsx("clipPath", {
|
|
855
|
-
id: "
|
|
988
|
+
id: "FaceFrownIcon_svg__a",
|
|
856
989
|
children: jsx("path", {
|
|
857
990
|
fill: "#fff",
|
|
858
991
|
d: "M0 0h16v16H0z"
|
|
@@ -870,25 +1003,25 @@ function FaceFrownIcon(props) {
|
|
|
870
1003
|
|
|
871
1004
|
function SvgFaceNeutralIcon(props) {
|
|
872
1005
|
return jsxs("svg", {
|
|
1006
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
873
1007
|
width: "1em",
|
|
874
1008
|
height: "1em",
|
|
875
|
-
viewBox: "0 0 16 16",
|
|
876
1009
|
fill: "none",
|
|
877
|
-
|
|
1010
|
+
viewBox: "0 0 16 16",
|
|
878
1011
|
...props,
|
|
879
1012
|
children: [jsxs("g", {
|
|
880
|
-
|
|
1013
|
+
fill: "currentColor",
|
|
881
1014
|
fillRule: "evenodd",
|
|
1015
|
+
clipPath: "url(#FaceNeutralIcon_svg__a)",
|
|
882
1016
|
clipRule: "evenodd",
|
|
883
|
-
fill: "currentColor",
|
|
884
1017
|
children: [jsx("path", {
|
|
885
|
-
d: "M8 2.083a5.917 5.917 0
|
|
1018
|
+
d: "M8 2.083a5.917 5.917 0 1 0 0 11.834A5.917 5.917 0 0 0 8 2.084ZM.583 8a7.417 7.417 0 1 1 14.834 0A7.417 7.417 0 0 1 .583 8Z"
|
|
886
1019
|
}), jsx("path", {
|
|
887
|
-
d: "M4.583 10a.75.75 0
|
|
1020
|
+
d: "M4.583 10a.75.75 0 0 1 .75-.75h5.334a.75.75 0 1 1 0 1.5H5.333a.75.75 0 0 1-.75-.75ZM5.25 6A.75.75 0 0 1 6 5.25h.007a.75.75 0 0 1 0 1.5H6A.75.75 0 0 1 5.25 6ZM9.25 6a.75.75 0 0 1 .75-.75h.007a.75.75 0 1 1 0 1.5H10A.75.75 0 0 1 9.25 6Z"
|
|
888
1021
|
})]
|
|
889
1022
|
}), jsx("defs", {
|
|
890
1023
|
children: jsx("clipPath", {
|
|
891
|
-
id: "
|
|
1024
|
+
id: "FaceNeutralIcon_svg__a",
|
|
892
1025
|
children: jsx("path", {
|
|
893
1026
|
fill: "#fff",
|
|
894
1027
|
d: "M0 0h16v16H0z"
|
|
@@ -906,29 +1039,29 @@ function FaceNeutralIcon(props) {
|
|
|
906
1039
|
|
|
907
1040
|
function SvgFaceSmileIcon(props) {
|
|
908
1041
|
return jsxs("svg", {
|
|
1042
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
909
1043
|
width: "1em",
|
|
910
1044
|
height: "1em",
|
|
911
|
-
viewBox: "0 0 16 16",
|
|
912
1045
|
fill: "none",
|
|
913
|
-
|
|
1046
|
+
viewBox: "0 0 16 16",
|
|
914
1047
|
...props,
|
|
915
1048
|
children: [jsxs("g", {
|
|
916
|
-
clipPath: "url(#FaceSmileIcon_svg__clip0_16320_32307)",
|
|
917
1049
|
fill: "currentColor",
|
|
1050
|
+
clipPath: "url(#FaceSmileIcon_svg__a)",
|
|
918
1051
|
children: [jsx("path", {
|
|
919
1052
|
fillRule: "evenodd",
|
|
920
|
-
|
|
921
|
-
|
|
1053
|
+
d: "M8 2.083a5.917 5.917 0 1 0 0 11.834A5.917 5.917 0 0 0 8 2.084ZM.583 8a7.417 7.417 0 1 1 14.834 0A7.417 7.417 0 0 1 .583 8Z",
|
|
1054
|
+
clipRule: "evenodd"
|
|
922
1055
|
}), jsx("path", {
|
|
923
|
-
d: "M4.883 8.733a.75.75 0
|
|
1056
|
+
d: "M4.883 8.733a.75.75 0 0 1 1.048.147l.002.003.021.026a3.216 3.216 0 0 0 .529.485c.375.273.89.523 1.517.523.627 0 1.142-.25 1.517-.523a3.215 3.215 0 0 0 .55-.511.75.75 0 0 1 1.2.9l.029-.042-.03.043-.001.002-.002.002-.005.007-.015.019a3.878 3.878 0 0 1-.217.247c-.144.15-.354.348-.627.546-.54.393-1.359.81-2.399.81s-1.858-.417-2.4-.81a4.716 4.716 0 0 1-.795-.734 2.643 2.643 0 0 1-.048-.059l-.015-.02-.005-.006-.002-.002v-.002h-.002a.75.75 0 0 1 .15-1.05Z"
|
|
924
1057
|
}), jsx("path", {
|
|
925
1058
|
fillRule: "evenodd",
|
|
926
|
-
|
|
927
|
-
|
|
1059
|
+
d: "M5.25 6A.75.75 0 0 1 6 5.25h.007a.75.75 0 0 1 0 1.5H6A.75.75 0 0 1 5.25 6ZM9.25 6a.75.75 0 0 1 .75-.75h.007a.75.75 0 1 1 0 1.5H10A.75.75 0 0 1 9.25 6Z",
|
|
1060
|
+
clipRule: "evenodd"
|
|
928
1061
|
})]
|
|
929
1062
|
}), jsx("defs", {
|
|
930
1063
|
children: jsx("clipPath", {
|
|
931
|
-
id: "
|
|
1064
|
+
id: "FaceSmileIcon_svg__a",
|
|
932
1065
|
children: jsx("path", {
|
|
933
1066
|
fill: "#fff",
|
|
934
1067
|
d: "M0 0h16v16H0z"
|
|
@@ -944,102 +1077,54 @@ function FaceSmileIcon(props) {
|
|
|
944
1077
|
});
|
|
945
1078
|
}
|
|
946
1079
|
|
|
947
|
-
function
|
|
1080
|
+
function SvgInfoIcon(props) {
|
|
948
1081
|
return jsxs("svg", {
|
|
1082
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
949
1083
|
width: "1em",
|
|
950
1084
|
height: "1em",
|
|
951
|
-
viewBox: "0 0 16 16",
|
|
952
1085
|
fill: "none",
|
|
953
|
-
|
|
1086
|
+
viewBox: "0 0 16 16",
|
|
954
1087
|
...props,
|
|
955
1088
|
children: [jsx("path", {
|
|
956
|
-
|
|
957
|
-
|
|
1089
|
+
fill: "currentColor",
|
|
1090
|
+
d: "M7.25 11V7h1.5v4h-1.5ZM8 4.5A.75.75 0 1 1 8 6a.75.75 0 0 1 0-1.5Z"
|
|
958
1091
|
}), jsx("path", {
|
|
959
|
-
|
|
960
|
-
|
|
1092
|
+
fill: "currentColor",
|
|
1093
|
+
fillRule: "evenodd",
|
|
1094
|
+
d: "M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13Z",
|
|
1095
|
+
clipRule: "evenodd"
|
|
961
1096
|
})]
|
|
962
1097
|
});
|
|
963
1098
|
}
|
|
964
|
-
function
|
|
1099
|
+
function InfoIcon(props) {
|
|
965
1100
|
return jsx(Icon, {
|
|
966
1101
|
...props,
|
|
967
|
-
component:
|
|
1102
|
+
component: SvgInfoIcon
|
|
968
1103
|
});
|
|
969
1104
|
}
|
|
970
1105
|
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
if (_isString(value) || _isNumber(value) || _isBoolean(value)) {
|
|
987
|
-
// Make sure we don't double-append important
|
|
988
|
-
if (_isString(value) && _endsWith(value, '!important')) {
|
|
989
|
-
return value;
|
|
990
|
-
}
|
|
991
|
-
if (_isNumber(value)) {
|
|
992
|
-
if (unitless[key]) {
|
|
993
|
-
return `${value}!important`;
|
|
994
|
-
}
|
|
995
|
-
return `${value}px!important`;
|
|
996
|
-
}
|
|
997
|
-
return `${value}!important`;
|
|
998
|
-
}
|
|
999
|
-
if (_isNil(value)) {
|
|
1000
|
-
return value;
|
|
1001
|
-
}
|
|
1002
|
-
return importantify(value);
|
|
1106
|
+
function SvgNewWindowIcon(props) {
|
|
1107
|
+
return jsxs("svg", {
|
|
1108
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1109
|
+
width: "1em",
|
|
1110
|
+
height: "1em",
|
|
1111
|
+
fill: "none",
|
|
1112
|
+
viewBox: "0 0 16 16",
|
|
1113
|
+
...props,
|
|
1114
|
+
children: [jsx("path", {
|
|
1115
|
+
fill: "currentColor",
|
|
1116
|
+
d: "M10 1h5v5h-1.5V3.56L8.53 8.53 7.47 7.47l4.97-4.97H10V1Z"
|
|
1117
|
+
}), jsx("path", {
|
|
1118
|
+
fill: "currentColor",
|
|
1119
|
+
d: "M1 2.75A.75.75 0 0 1 1.75 2H8v1.5H2.5v10h10V8H14v6.25a.75.75 0 0 1-.75.75H1.75a.75.75 0 0 1-.75-.75V2.75Z"
|
|
1120
|
+
})]
|
|
1003
1121
|
});
|
|
1004
1122
|
}
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
* @param fallbackColor - color to return as fallback -- used to remove tertiary check inline
|
|
1011
|
-
*/
|
|
1012
|
-
function getTypographyColor(theme, key, fallbackColor) {
|
|
1013
|
-
if (theme && key && Object(theme.colors).hasOwnProperty(ColorVars[key])) {
|
|
1014
|
-
return theme.colors[ColorVars[key]];
|
|
1015
|
-
}
|
|
1016
|
-
return fallbackColor !== null && fallbackColor !== void 0 ? fallbackColor : theme.colors.textPrimary;
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
/**
|
|
1020
|
-
* Returns validation color based on state, has default validation colors if params are not provided
|
|
1021
|
-
* @param theme
|
|
1022
|
-
* @param validationState
|
|
1023
|
-
* @param errorColor
|
|
1024
|
-
* @param warningColor
|
|
1025
|
-
* @param successColor
|
|
1026
|
-
*/
|
|
1027
|
-
function getValidationStateColor(theme, validationState) {
|
|
1028
|
-
let {
|
|
1029
|
-
errorColor,
|
|
1030
|
-
warningColor,
|
|
1031
|
-
successColor
|
|
1032
|
-
} = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
1033
|
-
switch (validationState) {
|
|
1034
|
-
case 'error':
|
|
1035
|
-
return errorColor || theme.colors.actionDangerPrimaryBackgroundDefault;
|
|
1036
|
-
case 'warning':
|
|
1037
|
-
return warningColor || theme.colors.textValidationWarning;
|
|
1038
|
-
case 'success':
|
|
1039
|
-
return successColor || theme.colors.textValidationSuccess;
|
|
1040
|
-
default:
|
|
1041
|
-
return undefined;
|
|
1042
|
-
}
|
|
1123
|
+
function NewWindowIcon(props) {
|
|
1124
|
+
return jsx(Icon, {
|
|
1125
|
+
...props,
|
|
1126
|
+
component: SvgNewWindowIcon
|
|
1127
|
+
});
|
|
1043
1128
|
}
|
|
1044
1129
|
|
|
1045
1130
|
function getDefaultStyles(theme) {
|
|
@@ -1243,7 +1328,7 @@ const getButtonEmotionStyles = _ref => {
|
|
|
1243
1328
|
})
|
|
1244
1329
|
};
|
|
1245
1330
|
const inactiveIconCss = {
|
|
1246
|
-
color: theme.colors.
|
|
1331
|
+
color: theme.colors.textSecondary
|
|
1247
1332
|
};
|
|
1248
1333
|
const endIconCssSelector = `span > ${clsEndIcon} > ${clsIcon}`;
|
|
1249
1334
|
const styles = {
|
|
@@ -1520,6 +1605,61 @@ const Button = /* #__PURE__ */(() => {
|
|
|
1520
1605
|
return Button;
|
|
1521
1606
|
})();
|
|
1522
1607
|
|
|
1608
|
+
const Tooltip = _ref => {
|
|
1609
|
+
let {
|
|
1610
|
+
children,
|
|
1611
|
+
title,
|
|
1612
|
+
placement = 'top',
|
|
1613
|
+
dataTestId,
|
|
1614
|
+
dangerouslySetAntdProps,
|
|
1615
|
+
...props
|
|
1616
|
+
} = _ref;
|
|
1617
|
+
const {
|
|
1618
|
+
theme
|
|
1619
|
+
} = useDesignSystemTheme();
|
|
1620
|
+
if (!title) {
|
|
1621
|
+
return jsx(React__default.Fragment, {
|
|
1622
|
+
children: children
|
|
1623
|
+
});
|
|
1624
|
+
}
|
|
1625
|
+
const {
|
|
1626
|
+
overlayInnerStyle,
|
|
1627
|
+
overlayStyle,
|
|
1628
|
+
...delegatedDangerouslySetAntdProps
|
|
1629
|
+
} = dangerouslySetAntdProps || {};
|
|
1630
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
1631
|
+
children: jsx(Tooltip$1
|
|
1632
|
+
// eslint-disable-next-line react/forbid-dom-props -- FEINF-1337 - this should turn into data-testid
|
|
1633
|
+
, {
|
|
1634
|
+
title: jsx("span", {
|
|
1635
|
+
"data-test-id": dataTestId,
|
|
1636
|
+
children: title
|
|
1637
|
+
}),
|
|
1638
|
+
placement: placement
|
|
1639
|
+
// Always trigger on hover and focus
|
|
1640
|
+
,
|
|
1641
|
+
trigger: ['hover', 'focus'],
|
|
1642
|
+
overlayInnerStyle: {
|
|
1643
|
+
backgroundColor: '#2F3941',
|
|
1644
|
+
lineHeight: '22px',
|
|
1645
|
+
padding: '4px 8px',
|
|
1646
|
+
boxShadow: theme.general.shadowLow,
|
|
1647
|
+
...overlayInnerStyle
|
|
1648
|
+
},
|
|
1649
|
+
overlayStyle: {
|
|
1650
|
+
zIndex: theme.options.zIndexBase + 70,
|
|
1651
|
+
...overlayStyle
|
|
1652
|
+
},
|
|
1653
|
+
css: /*#__PURE__*/css({
|
|
1654
|
+
...getAnimationCss(theme.options.enableAnimation)
|
|
1655
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Tooltip;"),
|
|
1656
|
+
...delegatedDangerouslySetAntdProps,
|
|
1657
|
+
...props,
|
|
1658
|
+
children: children
|
|
1659
|
+
})
|
|
1660
|
+
});
|
|
1661
|
+
};
|
|
1662
|
+
|
|
1523
1663
|
const getInputEmotionStyles = (clsPrefix, theme, _ref, useTransparent) => {
|
|
1524
1664
|
let {
|
|
1525
1665
|
validationState
|
|
@@ -1552,6 +1692,9 @@ const getInputEmotionStyles = (clsPrefix, theme, _ref, useTransparent) => {
|
|
|
1552
1692
|
'&:disabled': {
|
|
1553
1693
|
backgroundColor: theme.colors.actionDisabledBackground,
|
|
1554
1694
|
color: theme.colors.actionDisabledText
|
|
1695
|
+
},
|
|
1696
|
+
'&::placeholder': {
|
|
1697
|
+
color: theme.colors.textPlaceholder
|
|
1555
1698
|
}
|
|
1556
1699
|
},
|
|
1557
1700
|
[`&${inputClass}, ${inputClass}`]: {
|
|
@@ -1721,7 +1864,7 @@ const DuboisInput = /*#__PURE__*/forwardRef(function Input(_ref4, ref) {
|
|
|
1721
1864
|
})
|
|
1722
1865
|
});
|
|
1723
1866
|
});
|
|
1724
|
-
const Group = _ref5 => {
|
|
1867
|
+
const Group$1 = _ref5 => {
|
|
1725
1868
|
let {
|
|
1726
1869
|
dangerouslySetAntdProps,
|
|
1727
1870
|
dangerouslyAppendEmotionCSS,
|
|
@@ -1746,7 +1889,7 @@ const Group = _ref5 => {
|
|
|
1746
1889
|
const InputNamespace = /* #__PURE__ */Object.assign(DuboisInput, {
|
|
1747
1890
|
TextArea,
|
|
1748
1891
|
Password,
|
|
1749
|
-
Group
|
|
1892
|
+
Group: Group$1
|
|
1750
1893
|
});
|
|
1751
1894
|
const Input = InputNamespace;
|
|
1752
1895
|
|
|
@@ -1755,7 +1898,46 @@ const Input = InputNamespace;
|
|
|
1755
1898
|
// since these will be exposed in the library's exports.
|
|
1756
1899
|
const __INTERNAL_DO_NOT_USE__TextArea = TextArea;
|
|
1757
1900
|
const __INTERNAL_DO_NOT_USE__Password = Password;
|
|
1758
|
-
const __INTERNAL_DO_NOT_USE_DEDUPE__Group = Group;
|
|
1901
|
+
const __INTERNAL_DO_NOT_USE_DEDUPE__Group = Group$1;
|
|
1902
|
+
|
|
1903
|
+
const {
|
|
1904
|
+
Text: AntDText$1
|
|
1905
|
+
} = Typography$1;
|
|
1906
|
+
function getTextEmotionStyles$1(theme, props) {
|
|
1907
|
+
return /*#__PURE__*/css({
|
|
1908
|
+
'&&': {
|
|
1909
|
+
display: 'block',
|
|
1910
|
+
fontSize: theme.typography.fontSizeSm,
|
|
1911
|
+
lineHeight: theme.typography.lineHeightSm,
|
|
1912
|
+
color: theme.colors.textSecondary,
|
|
1913
|
+
...(props.withoutMargins && {
|
|
1914
|
+
'&&': {
|
|
1915
|
+
marginTop: 0,
|
|
1916
|
+
marginBottom: 0
|
|
1917
|
+
}
|
|
1918
|
+
})
|
|
1919
|
+
}
|
|
1920
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getTextEmotionStyles;");
|
|
1921
|
+
}
|
|
1922
|
+
function Hint(userProps) {
|
|
1923
|
+
const {
|
|
1924
|
+
dangerouslySetAntdProps,
|
|
1925
|
+
bold,
|
|
1926
|
+
withoutMargins,
|
|
1927
|
+
color,
|
|
1928
|
+
...props
|
|
1929
|
+
} = userProps;
|
|
1930
|
+
const {
|
|
1931
|
+
theme
|
|
1932
|
+
} = useDesignSystemTheme();
|
|
1933
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
1934
|
+
children: jsx(AntDText$1, {
|
|
1935
|
+
...props,
|
|
1936
|
+
css: getTextEmotionStyles$1(theme, userProps),
|
|
1937
|
+
...dangerouslySetAntdProps
|
|
1938
|
+
})
|
|
1939
|
+
});
|
|
1940
|
+
}
|
|
1759
1941
|
|
|
1760
1942
|
const getLinkStyles = (theme, clsPrefix) => {
|
|
1761
1943
|
const classTypography = `.${clsPrefix}-typography`;
|
|
@@ -1852,13 +2034,18 @@ function Link(_ref) {
|
|
|
1852
2034
|
const {
|
|
1853
2035
|
Paragraph: AntDParagraph
|
|
1854
2036
|
} = Typography$1;
|
|
1855
|
-
function getParagraphEmotionStyles(theme, props) {
|
|
2037
|
+
function getParagraphEmotionStyles(theme, props, centerIcons) {
|
|
1856
2038
|
return /*#__PURE__*/css({
|
|
1857
2039
|
'&&': {
|
|
1858
2040
|
fontSize: theme.typography.fontSizeBase,
|
|
1859
2041
|
lineHeight: theme.typography.lineHeightBase,
|
|
1860
2042
|
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
1861
|
-
}
|
|
2043
|
+
},
|
|
2044
|
+
...(centerIcons && {
|
|
2045
|
+
'& .anticon': {
|
|
2046
|
+
verticalAlign: 'text-bottom'
|
|
2047
|
+
}
|
|
2048
|
+
})
|
|
1862
2049
|
}, props.disabled && {
|
|
1863
2050
|
'&&': {
|
|
1864
2051
|
color: theme.colors.actionDisabledText
|
|
@@ -1880,11 +2067,12 @@ function Paragraph(userProps) {
|
|
|
1880
2067
|
const {
|
|
1881
2068
|
theme
|
|
1882
2069
|
} = useDesignSystemTheme();
|
|
2070
|
+
const centerIconsInText = safex('databricks.fe.designsystem.centerIconsInText', false);
|
|
1883
2071
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
1884
2072
|
children: jsx(AntDParagraph, {
|
|
1885
2073
|
...props,
|
|
1886
2074
|
className: props.className,
|
|
1887
|
-
css: getParagraphEmotionStyles(theme, userProps),
|
|
2075
|
+
css: getParagraphEmotionStyles(theme, userProps, centerIconsInText),
|
|
1888
2076
|
...dangerouslySetAntdProps
|
|
1889
2077
|
})
|
|
1890
2078
|
});
|
|
@@ -1893,13 +2081,19 @@ function Paragraph(userProps) {
|
|
|
1893
2081
|
const {
|
|
1894
2082
|
Text: AntDText
|
|
1895
2083
|
} = Typography$1;
|
|
1896
|
-
function getTextEmotionStyles(theme, props) {
|
|
2084
|
+
function getTextEmotionStyles(theme, props, centerIcons) {
|
|
1897
2085
|
return /*#__PURE__*/css({
|
|
1898
2086
|
'&&': {
|
|
1899
2087
|
fontSize: theme.typography.fontSizeBase,
|
|
1900
2088
|
lineHeight: theme.typography.lineHeightBase,
|
|
1901
2089
|
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
1902
|
-
}
|
|
2090
|
+
},
|
|
2091
|
+
...(centerIcons && {
|
|
2092
|
+
'& .anticon': {
|
|
2093
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
2094
|
+
verticalAlign: 'middle'
|
|
2095
|
+
}
|
|
2096
|
+
})
|
|
1903
2097
|
}, props.disabled && {
|
|
1904
2098
|
'&&': {
|
|
1905
2099
|
color: theme.colors.actionDisabledText
|
|
@@ -1932,27 +2126,53 @@ function getTextEmotionStyles(theme, props) {
|
|
|
1932
2126
|
case 'xxl':
|
|
1933
2127
|
return {
|
|
1934
2128
|
fontSize: theme.typography.fontSizeXxl,
|
|
1935
|
-
lineHeight: theme.typography.lineHeightXxl
|
|
2129
|
+
lineHeight: theme.typography.lineHeightXxl,
|
|
2130
|
+
...(centerIcons && {
|
|
2131
|
+
'& .anticon': {
|
|
2132
|
+
lineHeight: theme.typography.lineHeightXxl
|
|
2133
|
+
}
|
|
2134
|
+
})
|
|
1936
2135
|
};
|
|
1937
2136
|
case 'xl':
|
|
1938
2137
|
return {
|
|
1939
2138
|
fontSize: theme.typography.fontSizeXl,
|
|
1940
|
-
lineHeight: theme.typography.lineHeightXl
|
|
2139
|
+
lineHeight: theme.typography.lineHeightXl,
|
|
2140
|
+
...(centerIcons && {
|
|
2141
|
+
'& .anticon': {
|
|
2142
|
+
lineHeight: theme.typography.lineHeightXl
|
|
2143
|
+
}
|
|
2144
|
+
})
|
|
1941
2145
|
};
|
|
1942
2146
|
case 'lg':
|
|
1943
2147
|
return {
|
|
1944
2148
|
fontSize: theme.typography.fontSizeLg,
|
|
1945
|
-
lineHeight: theme.typography.lineHeightLg
|
|
2149
|
+
lineHeight: theme.typography.lineHeightLg,
|
|
2150
|
+
...(centerIcons && {
|
|
2151
|
+
'& .anticon': {
|
|
2152
|
+
lineHeight: theme.typography.lineHeightLg
|
|
2153
|
+
}
|
|
2154
|
+
})
|
|
1946
2155
|
};
|
|
1947
2156
|
case 'sm':
|
|
1948
2157
|
return {
|
|
1949
2158
|
fontSize: theme.typography.fontSizeSm,
|
|
1950
|
-
lineHeight: theme.typography.lineHeightSm
|
|
2159
|
+
lineHeight: theme.typography.lineHeightSm,
|
|
2160
|
+
...(centerIcons && {
|
|
2161
|
+
'& .anticon': {
|
|
2162
|
+
lineHeight: theme.typography.lineHeightSm
|
|
2163
|
+
}
|
|
2164
|
+
})
|
|
1951
2165
|
};
|
|
1952
2166
|
default:
|
|
1953
2167
|
return {
|
|
1954
2168
|
fontSize: theme.typography.fontSizeMd,
|
|
1955
|
-
lineHeight: theme.typography.lineHeightMd
|
|
2169
|
+
lineHeight: theme.typography.lineHeightMd,
|
|
2170
|
+
...(centerIcons && {
|
|
2171
|
+
'& .anticon': {
|
|
2172
|
+
lineHeight: theme.typography.lineHeightMd,
|
|
2173
|
+
verticalAlign: 'sub'
|
|
2174
|
+
}
|
|
2175
|
+
})
|
|
1956
2176
|
};
|
|
1957
2177
|
}
|
|
1958
2178
|
})()
|
|
@@ -1976,11 +2196,12 @@ function Text(userProps) {
|
|
|
1976
2196
|
const {
|
|
1977
2197
|
theme
|
|
1978
2198
|
} = useDesignSystemTheme();
|
|
2199
|
+
const centerIconsInText = safex('databricks.fe.designsystem.centerIconsInText', false);
|
|
1979
2200
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
1980
2201
|
children: jsx(AntDText, {
|
|
1981
2202
|
...props,
|
|
1982
2203
|
className: props.className,
|
|
1983
|
-
css: getTextEmotionStyles(theme, userProps),
|
|
2204
|
+
css: getTextEmotionStyles(theme, userProps, centerIconsInText),
|
|
1984
2205
|
...dangerouslySetAntdProps
|
|
1985
2206
|
})
|
|
1986
2207
|
});
|
|
@@ -1989,7 +2210,7 @@ function Text(userProps) {
|
|
|
1989
2210
|
const {
|
|
1990
2211
|
Title: AntDTitle
|
|
1991
2212
|
} = Typography$1;
|
|
1992
|
-
function getLevelStyles(theme, props) {
|
|
2213
|
+
function getLevelStyles(theme, props, centerIcons) {
|
|
1993
2214
|
switch (props.level) {
|
|
1994
2215
|
case 1:
|
|
1995
2216
|
return /*#__PURE__*/css({
|
|
@@ -1997,7 +2218,12 @@ function getLevelStyles(theme, props) {
|
|
|
1997
2218
|
fontSize: theme.typography.fontSizeXxl,
|
|
1998
2219
|
lineHeight: theme.typography.lineHeightXxl,
|
|
1999
2220
|
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2000
|
-
}
|
|
2221
|
+
},
|
|
2222
|
+
...(centerIcons && {
|
|
2223
|
+
'& .anticon': {
|
|
2224
|
+
lineHeight: theme.typography.lineHeightXxl
|
|
2225
|
+
}
|
|
2226
|
+
})
|
|
2001
2227
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2002
2228
|
case 2:
|
|
2003
2229
|
return /*#__PURE__*/css({
|
|
@@ -2005,7 +2231,12 @@ function getLevelStyles(theme, props) {
|
|
|
2005
2231
|
fontSize: theme.typography.fontSizeXl,
|
|
2006
2232
|
lineHeight: theme.typography.lineHeightXl,
|
|
2007
2233
|
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2008
|
-
}
|
|
2234
|
+
},
|
|
2235
|
+
...(centerIcons && {
|
|
2236
|
+
'& .anticon': {
|
|
2237
|
+
lineHeight: theme.typography.lineHeightXl
|
|
2238
|
+
}
|
|
2239
|
+
})
|
|
2009
2240
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2010
2241
|
case 3:
|
|
2011
2242
|
return /*#__PURE__*/css({
|
|
@@ -2013,7 +2244,12 @@ function getLevelStyles(theme, props) {
|
|
|
2013
2244
|
fontSize: theme.typography.fontSizeLg,
|
|
2014
2245
|
lineHeight: theme.typography.lineHeightLg,
|
|
2015
2246
|
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2016
|
-
}
|
|
2247
|
+
},
|
|
2248
|
+
...(centerIcons && {
|
|
2249
|
+
'& .anticon': {
|
|
2250
|
+
lineHeight: theme.typography.lineHeightLg
|
|
2251
|
+
}
|
|
2252
|
+
})
|
|
2017
2253
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2018
2254
|
case 4:
|
|
2019
2255
|
default:
|
|
@@ -2022,15 +2258,25 @@ function getLevelStyles(theme, props) {
|
|
|
2022
2258
|
fontSize: theme.typography.fontSizeMd,
|
|
2023
2259
|
lineHeight: theme.typography.lineHeightMd,
|
|
2024
2260
|
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2025
|
-
}
|
|
2261
|
+
},
|
|
2262
|
+
...(centerIcons && {
|
|
2263
|
+
'& .anticon': {
|
|
2264
|
+
lineHeight: theme.typography.lineHeightMd
|
|
2265
|
+
}
|
|
2266
|
+
})
|
|
2026
2267
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2027
2268
|
}
|
|
2028
2269
|
}
|
|
2029
|
-
function getTitleEmotionStyles(theme, props) {
|
|
2030
|
-
return /*#__PURE__*/css(getLevelStyles(theme, props), {
|
|
2270
|
+
function getTitleEmotionStyles(theme, props, centerIcons) {
|
|
2271
|
+
return /*#__PURE__*/css(getLevelStyles(theme, props, centerIcons), {
|
|
2031
2272
|
'&&': {
|
|
2032
2273
|
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
2033
|
-
}
|
|
2274
|
+
},
|
|
2275
|
+
...(centerIcons && {
|
|
2276
|
+
'& .anticon': {
|
|
2277
|
+
verticalAlign: 'middle'
|
|
2278
|
+
}
|
|
2279
|
+
})
|
|
2034
2280
|
}, props.withoutMargins && {
|
|
2035
2281
|
'&&': {
|
|
2036
2282
|
marginTop: '0 !important',
|
|
@@ -2049,11 +2295,12 @@ function Title(userProps) {
|
|
|
2049
2295
|
const {
|
|
2050
2296
|
theme
|
|
2051
2297
|
} = useDesignSystemTheme();
|
|
2298
|
+
const centerIconsInText = safex('databricks.fe.designsystem.centerIconsInText', false);
|
|
2052
2299
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
2053
2300
|
children: jsx(AntDTitle, {
|
|
2054
2301
|
...props,
|
|
2055
2302
|
className: props.className,
|
|
2056
|
-
css: getTitleEmotionStyles(theme, userProps),
|
|
2303
|
+
css: getTitleEmotionStyles(theme, userProps, centerIconsInText),
|
|
2057
2304
|
...dangerouslySetAntdProps
|
|
2058
2305
|
})
|
|
2059
2306
|
});
|
|
@@ -2076,8 +2323,462 @@ const Typography = /* #__PURE__ */(() => {
|
|
|
2076
2323
|
Typography.Title = Title;
|
|
2077
2324
|
Typography.Paragraph = Paragraph;
|
|
2078
2325
|
Typography.Link = Link;
|
|
2326
|
+
Typography.Hint = Hint;
|
|
2079
2327
|
return Typography;
|
|
2080
2328
|
})();
|
|
2081
2329
|
|
|
2082
|
-
|
|
2083
|
-
|
|
2330
|
+
const Root = DropdownMenu$1.Root; // Behavioral component only
|
|
2331
|
+
|
|
2332
|
+
const Content = /*#__PURE__*/forwardRef(function Content(_ref, ref) {
|
|
2333
|
+
let {
|
|
2334
|
+
children,
|
|
2335
|
+
minWidth = 220,
|
|
2336
|
+
...props
|
|
2337
|
+
} = _ref;
|
|
2338
|
+
const {
|
|
2339
|
+
getPopupContainer
|
|
2340
|
+
} = useDesignSystemContext();
|
|
2341
|
+
return jsx(DropdownMenu$1.Portal, {
|
|
2342
|
+
container: getPopupContainer && getPopupContainer(),
|
|
2343
|
+
children: jsx(DropdownMenu$1.Content, {
|
|
2344
|
+
ref: ref,
|
|
2345
|
+
loop: true,
|
|
2346
|
+
css: [contentStyles, {
|
|
2347
|
+
minWidth
|
|
2348
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Content;"],
|
|
2349
|
+
sideOffset: 4,
|
|
2350
|
+
align: "start",
|
|
2351
|
+
...props,
|
|
2352
|
+
children: children
|
|
2353
|
+
})
|
|
2354
|
+
});
|
|
2355
|
+
});
|
|
2356
|
+
const SubContent = /*#__PURE__*/forwardRef(function Content(_ref2, ref) {
|
|
2357
|
+
let {
|
|
2358
|
+
children,
|
|
2359
|
+
minWidth = 220,
|
|
2360
|
+
...props
|
|
2361
|
+
} = _ref2;
|
|
2362
|
+
const {
|
|
2363
|
+
getPopupContainer
|
|
2364
|
+
} = useDesignSystemContext();
|
|
2365
|
+
return jsx(DropdownMenu$1.Portal, {
|
|
2366
|
+
container: getPopupContainer && getPopupContainer(),
|
|
2367
|
+
children: jsx(DropdownMenu$1.SubContent, {
|
|
2368
|
+
ref: ref,
|
|
2369
|
+
loop: true,
|
|
2370
|
+
css: [contentStyles, {
|
|
2371
|
+
minWidth
|
|
2372
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:SubContent;"],
|
|
2373
|
+
sideOffset: -2,
|
|
2374
|
+
alignOffset: -5,
|
|
2375
|
+
...props,
|
|
2376
|
+
children: children
|
|
2377
|
+
})
|
|
2378
|
+
});
|
|
2379
|
+
});
|
|
2380
|
+
const Trigger = /*#__PURE__*/forwardRef(function Trigger(_ref3, ref) {
|
|
2381
|
+
let {
|
|
2382
|
+
children,
|
|
2383
|
+
...props
|
|
2384
|
+
} = _ref3;
|
|
2385
|
+
return jsx(DropdownMenu$1.Trigger, {
|
|
2386
|
+
ref: ref,
|
|
2387
|
+
...props,
|
|
2388
|
+
children: children
|
|
2389
|
+
});
|
|
2390
|
+
});
|
|
2391
|
+
const Item = /*#__PURE__*/forwardRef(function Item(_ref4, ref) {
|
|
2392
|
+
let {
|
|
2393
|
+
children,
|
|
2394
|
+
disabledReason,
|
|
2395
|
+
danger,
|
|
2396
|
+
onClick,
|
|
2397
|
+
...props
|
|
2398
|
+
} = _ref4;
|
|
2399
|
+
const itemRef = useRef(null);
|
|
2400
|
+
useImperativeHandle(ref, () => itemRef.current);
|
|
2401
|
+
return jsx(DropdownMenu$1.Item, {
|
|
2402
|
+
css: theme => [dropdownItemStyles, danger && dangerItemStyles(theme)],
|
|
2403
|
+
ref: itemRef,
|
|
2404
|
+
onClick: e => {
|
|
2405
|
+
if (props.disabled) {
|
|
2406
|
+
e.preventDefault();
|
|
2407
|
+
} else {
|
|
2408
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
2409
|
+
}
|
|
2410
|
+
},
|
|
2411
|
+
...props,
|
|
2412
|
+
children: getNewChildren(children, props, disabledReason, itemRef)
|
|
2413
|
+
});
|
|
2414
|
+
});
|
|
2415
|
+
const Label = /*#__PURE__*/forwardRef(function Label(_ref5, ref) {
|
|
2416
|
+
let {
|
|
2417
|
+
children,
|
|
2418
|
+
...props
|
|
2419
|
+
} = _ref5;
|
|
2420
|
+
return jsx(DropdownMenu$1.Label, {
|
|
2421
|
+
ref: ref,
|
|
2422
|
+
css: [dropdownItemStyles, theme => ({
|
|
2423
|
+
color: theme.colors.textSecondary,
|
|
2424
|
+
'&:hover': {
|
|
2425
|
+
cursor: 'default'
|
|
2426
|
+
}
|
|
2427
|
+
}), process.env.NODE_ENV === "production" ? "" : ";label:Label;"],
|
|
2428
|
+
...props,
|
|
2429
|
+
children: children
|
|
2430
|
+
});
|
|
2431
|
+
});
|
|
2432
|
+
const Separator = /*#__PURE__*/forwardRef(function Separator(_ref6, ref) {
|
|
2433
|
+
let {
|
|
2434
|
+
children,
|
|
2435
|
+
...props
|
|
2436
|
+
} = _ref6;
|
|
2437
|
+
return jsx(DropdownMenu$1.Separator, {
|
|
2438
|
+
ref: ref,
|
|
2439
|
+
css: dropdownSeparatorStyles,
|
|
2440
|
+
...props,
|
|
2441
|
+
children: children
|
|
2442
|
+
});
|
|
2443
|
+
});
|
|
2444
|
+
const SubTrigger = /*#__PURE__*/forwardRef(function TriggerItem(_ref7, ref) {
|
|
2445
|
+
let {
|
|
2446
|
+
children,
|
|
2447
|
+
disabledReason,
|
|
2448
|
+
...props
|
|
2449
|
+
} = _ref7;
|
|
2450
|
+
const subTriggerRef = useRef(null);
|
|
2451
|
+
useImperativeHandle(ref, () => subTriggerRef.current);
|
|
2452
|
+
return jsxs(DropdownMenu$1.SubTrigger, {
|
|
2453
|
+
ref: subTriggerRef,
|
|
2454
|
+
css: [dropdownItemStyles, theme => ({
|
|
2455
|
+
'&[data-state="open"]': {
|
|
2456
|
+
backgroundColor: theme.colors.actionTertiaryBackgroundHover
|
|
2457
|
+
}
|
|
2458
|
+
}), process.env.NODE_ENV === "production" ? "" : ";label:SubTrigger;"],
|
|
2459
|
+
...props,
|
|
2460
|
+
children: [getNewChildren(children, props, disabledReason, subTriggerRef), jsx(HintColumn, {
|
|
2461
|
+
css: theme => ({
|
|
2462
|
+
margin: CONSTANTS.subMenuIconMargin(theme),
|
|
2463
|
+
display: 'flex',
|
|
2464
|
+
alignSelf: 'stretch',
|
|
2465
|
+
alignItems: 'center'
|
|
2466
|
+
}),
|
|
2467
|
+
children: jsx(ChevronRightIcon, {
|
|
2468
|
+
css: theme => ({
|
|
2469
|
+
fontSize: CONSTANTS.subMenuIconSize(theme)
|
|
2470
|
+
})
|
|
2471
|
+
})
|
|
2472
|
+
})]
|
|
2473
|
+
});
|
|
2474
|
+
});
|
|
2475
|
+
|
|
2476
|
+
/**
|
|
2477
|
+
* Deprecated. Use `SubTrigger` instead.
|
|
2478
|
+
* @deprecated
|
|
2479
|
+
*/
|
|
2480
|
+
const TriggerItem = SubTrigger;
|
|
2481
|
+
const CheckboxItem = /*#__PURE__*/forwardRef(function CheckboxItem(_ref8, ref) {
|
|
2482
|
+
let {
|
|
2483
|
+
children,
|
|
2484
|
+
disabledReason,
|
|
2485
|
+
...props
|
|
2486
|
+
} = _ref8;
|
|
2487
|
+
const checkboxItemRef = useRef(null);
|
|
2488
|
+
useImperativeHandle(ref, () => checkboxItemRef.current);
|
|
2489
|
+
return jsx(DropdownMenu$1.CheckboxItem, {
|
|
2490
|
+
ref: checkboxItemRef,
|
|
2491
|
+
css: theme => [dropdownItemStyles, checkboxItemStyles(theme)],
|
|
2492
|
+
...props,
|
|
2493
|
+
children: getNewChildren(children, props, disabledReason, checkboxItemRef)
|
|
2494
|
+
});
|
|
2495
|
+
});
|
|
2496
|
+
const ItemIndicator = /*#__PURE__*/forwardRef(function ItemIndicator(_ref9, ref) {
|
|
2497
|
+
let {
|
|
2498
|
+
children,
|
|
2499
|
+
...props
|
|
2500
|
+
} = _ref9;
|
|
2501
|
+
return jsx(DropdownMenu$1.ItemIndicator, {
|
|
2502
|
+
ref: ref,
|
|
2503
|
+
css: theme => ({
|
|
2504
|
+
marginLeft: -(CONSTANTS.checkboxIconWidth(theme) + CONSTANTS.checkboxPaddingRight(theme)),
|
|
2505
|
+
position: 'absolute',
|
|
2506
|
+
fontSize: theme.general.iconFontSize
|
|
2507
|
+
}),
|
|
2508
|
+
...props,
|
|
2509
|
+
children: children !== null && children !== void 0 ? children : jsx(CheckIcon, {
|
|
2510
|
+
css: theme => ({
|
|
2511
|
+
color: theme.colors.textSecondary
|
|
2512
|
+
})
|
|
2513
|
+
})
|
|
2514
|
+
});
|
|
2515
|
+
});
|
|
2516
|
+
const Arrow = /*#__PURE__*/forwardRef(function Arrow(_ref10, ref) {
|
|
2517
|
+
let {
|
|
2518
|
+
children,
|
|
2519
|
+
...props
|
|
2520
|
+
} = _ref10;
|
|
2521
|
+
const {
|
|
2522
|
+
theme
|
|
2523
|
+
} = useDesignSystemTheme();
|
|
2524
|
+
return jsx(DropdownMenu$1.Arrow, {
|
|
2525
|
+
css: /*#__PURE__*/css({
|
|
2526
|
+
fill: theme.colors.backgroundPrimary,
|
|
2527
|
+
stroke: theme.colors.borderDecorative,
|
|
2528
|
+
strokeDashoffset: -CONSTANTS.arrowBottomLength(),
|
|
2529
|
+
strokeDasharray: CONSTANTS.arrowBottomLength() + 2 * CONSTANTS.arrowSide(),
|
|
2530
|
+
strokeWidth: CONSTANTS.arrowStrokeWidth(),
|
|
2531
|
+
// TODO: This is a temporary fix for the alignment of the Arrow;
|
|
2532
|
+
// Radix has changed the implementation for v1.0.0 (uses floating-ui)
|
|
2533
|
+
// which has new behaviors for alignment that we don't want. Generally
|
|
2534
|
+
// we need to fix the arrow to always be aligned to the left of the menu (with
|
|
2535
|
+
// offset equal to border radius)
|
|
2536
|
+
position: 'relative',
|
|
2537
|
+
top: -1
|
|
2538
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Arrow;"),
|
|
2539
|
+
ref: ref,
|
|
2540
|
+
width: 12,
|
|
2541
|
+
height: 6,
|
|
2542
|
+
...props,
|
|
2543
|
+
children: children
|
|
2544
|
+
});
|
|
2545
|
+
});
|
|
2546
|
+
const RadioItem = /*#__PURE__*/forwardRef(function RadioItem(_ref11, ref) {
|
|
2547
|
+
let {
|
|
2548
|
+
children,
|
|
2549
|
+
disabledReason,
|
|
2550
|
+
...props
|
|
2551
|
+
} = _ref11;
|
|
2552
|
+
const radioItemRef = useRef(null);
|
|
2553
|
+
useImperativeHandle(ref, () => radioItemRef.current);
|
|
2554
|
+
return jsx(DropdownMenu$1.RadioItem, {
|
|
2555
|
+
ref: radioItemRef,
|
|
2556
|
+
css: theme => [dropdownItemStyles, checkboxItemStyles(theme)],
|
|
2557
|
+
...props,
|
|
2558
|
+
children: getNewChildren(children, props, disabledReason, radioItemRef)
|
|
2559
|
+
});
|
|
2560
|
+
});
|
|
2561
|
+
|
|
2562
|
+
// UNWRAPPED RADIX-UI-COMPONENTS
|
|
2563
|
+
const Group = DropdownMenu$1.Group;
|
|
2564
|
+
const RadioGroup = DropdownMenu$1.RadioGroup;
|
|
2565
|
+
const Sub = DropdownMenu$1.Sub;
|
|
2566
|
+
|
|
2567
|
+
// EXTRA COMPONENTS
|
|
2568
|
+
const HintColumn = /*#__PURE__*/forwardRef(function HintColumn(_ref12, ref) {
|
|
2569
|
+
let {
|
|
2570
|
+
children,
|
|
2571
|
+
...props
|
|
2572
|
+
} = _ref12;
|
|
2573
|
+
return jsx("div", {
|
|
2574
|
+
ref: ref,
|
|
2575
|
+
css: [metaTextStyles, "margin-left:auto;" + (process.env.NODE_ENV === "production" ? "" : ";label:HintColumn;")],
|
|
2576
|
+
...props,
|
|
2577
|
+
children: children
|
|
2578
|
+
});
|
|
2579
|
+
});
|
|
2580
|
+
const HintRow = /*#__PURE__*/forwardRef(function HintRow(_ref13, ref) {
|
|
2581
|
+
let {
|
|
2582
|
+
children,
|
|
2583
|
+
...props
|
|
2584
|
+
} = _ref13;
|
|
2585
|
+
return jsx("div", {
|
|
2586
|
+
ref: ref,
|
|
2587
|
+
css: [metaTextStyles, "min-width:100%;" + (process.env.NODE_ENV === "production" ? "" : ";label:HintRow;")],
|
|
2588
|
+
...props,
|
|
2589
|
+
children: children
|
|
2590
|
+
});
|
|
2591
|
+
});
|
|
2592
|
+
const IconWrapper = /*#__PURE__*/forwardRef(function IconWrapper(_ref14, ref) {
|
|
2593
|
+
let {
|
|
2594
|
+
children,
|
|
2595
|
+
...props
|
|
2596
|
+
} = _ref14;
|
|
2597
|
+
return jsx("div", {
|
|
2598
|
+
ref: ref,
|
|
2599
|
+
css: theme => ({
|
|
2600
|
+
fontSize: 16,
|
|
2601
|
+
color: theme.colors.textSecondary,
|
|
2602
|
+
paddingRight: theme.spacing.sm
|
|
2603
|
+
}),
|
|
2604
|
+
...props,
|
|
2605
|
+
children: children
|
|
2606
|
+
});
|
|
2607
|
+
});
|
|
2608
|
+
const getNewChildren = (children, props, disabledReason, ref) => {
|
|
2609
|
+
const childCount = Children.count(children);
|
|
2610
|
+
const tooltip = jsx(Tooltip, {
|
|
2611
|
+
title: disabledReason,
|
|
2612
|
+
placement: "right",
|
|
2613
|
+
dangerouslySetAntdProps: {
|
|
2614
|
+
getPopupContainer: () => ref.current || document.body
|
|
2615
|
+
},
|
|
2616
|
+
children: jsx("span", {
|
|
2617
|
+
css: theme => infoIconStyles(theme),
|
|
2618
|
+
children: jsx(InfoIcon, {})
|
|
2619
|
+
})
|
|
2620
|
+
});
|
|
2621
|
+
if (childCount === 1) {
|
|
2622
|
+
return getChild(children, Boolean(props['disabled']), disabledReason, tooltip, 0, childCount);
|
|
2623
|
+
}
|
|
2624
|
+
return Children.map(children, (child, idx) => {
|
|
2625
|
+
return getChild(child, Boolean(props['disabled']), disabledReason, tooltip, idx, childCount);
|
|
2626
|
+
});
|
|
2627
|
+
};
|
|
2628
|
+
const getChild = (child, isDisabled, disabledReason, tooltip, index, siblingCount) => {
|
|
2629
|
+
const HintColumnType = jsx(HintColumn, {}).type;
|
|
2630
|
+
const isHintColumnType = Boolean(child && typeof child !== 'string' && typeof child !== 'number' && typeof child !== 'boolean' && 'type' in child && (child === null || child === void 0 ? void 0 : child.type) === HintColumnType);
|
|
2631
|
+
if (isDisabled && disabledReason && child && isHintColumnType) {
|
|
2632
|
+
return jsxs(Fragment, {
|
|
2633
|
+
children: [tooltip, child]
|
|
2634
|
+
});
|
|
2635
|
+
} else if (index === siblingCount - 1 && isDisabled && disabledReason) {
|
|
2636
|
+
return jsxs(Fragment, {
|
|
2637
|
+
children: [child, tooltip]
|
|
2638
|
+
});
|
|
2639
|
+
}
|
|
2640
|
+
return child;
|
|
2641
|
+
};
|
|
2642
|
+
|
|
2643
|
+
// CONSTANTS
|
|
2644
|
+
const CONSTANTS = {
|
|
2645
|
+
itemPaddingVertical(theme) {
|
|
2646
|
+
// The number from the mocks is the midpoint between constants
|
|
2647
|
+
return 0.5 * theme.spacing.xs + 0.5 * theme.spacing.sm;
|
|
2648
|
+
},
|
|
2649
|
+
itemPaddingHorizontal(theme) {
|
|
2650
|
+
return theme.spacing.sm;
|
|
2651
|
+
},
|
|
2652
|
+
checkboxIconWidth(theme) {
|
|
2653
|
+
return theme.general.iconFontSize;
|
|
2654
|
+
},
|
|
2655
|
+
checkboxPaddingLeft(theme) {
|
|
2656
|
+
return theme.spacing.sm + theme.spacing.xs;
|
|
2657
|
+
},
|
|
2658
|
+
checkboxPaddingRight(theme) {
|
|
2659
|
+
return theme.spacing.sm;
|
|
2660
|
+
},
|
|
2661
|
+
subMenuIconMargin(theme) {
|
|
2662
|
+
// Negative margin so the icons can be larger without increasing the overall item height
|
|
2663
|
+
const iconMarginVertical = this.itemPaddingVertical(theme) / 2;
|
|
2664
|
+
const iconMarginRight = -this.itemPaddingVertical(theme) + theme.spacing.sm * 1.5;
|
|
2665
|
+
return `${-iconMarginVertical}px ${-iconMarginRight}px ${-iconMarginVertical}px auto`;
|
|
2666
|
+
},
|
|
2667
|
+
subMenuIconSize(theme) {
|
|
2668
|
+
return theme.spacing.lg;
|
|
2669
|
+
},
|
|
2670
|
+
arrowBottomLength() {
|
|
2671
|
+
// The built in arrow is a polygon: 0,0 30,0 15,10
|
|
2672
|
+
return 30;
|
|
2673
|
+
},
|
|
2674
|
+
arrowHeight() {
|
|
2675
|
+
return 10;
|
|
2676
|
+
},
|
|
2677
|
+
arrowSide() {
|
|
2678
|
+
return 2 * (this.arrowHeight() ** 2 * 2) ** 0.5;
|
|
2679
|
+
},
|
|
2680
|
+
arrowStrokeWidth() {
|
|
2681
|
+
// This is eyeballed b/c relative to the svg viewbox coordinate system
|
|
2682
|
+
return 2;
|
|
2683
|
+
}
|
|
2684
|
+
};
|
|
2685
|
+
const dropdownContentStyles = theme => ({
|
|
2686
|
+
backgroundColor: theme.colors.backgroundPrimary,
|
|
2687
|
+
color: theme.colors.textPrimary,
|
|
2688
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
2689
|
+
border: `1px solid ${theme.colors.borderDecorative}`,
|
|
2690
|
+
borderRadius: theme.borders.borderRadiusMd,
|
|
2691
|
+
padding: `${theme.spacing.xs}px 0`,
|
|
2692
|
+
boxShadow: theme.general.shadowLow,
|
|
2693
|
+
userSelect: 'none',
|
|
2694
|
+
// Ant Design uses 1000s for their zIndex space; this ensures Radix works with that, but
|
|
2695
|
+
// we'll likely need to be sure that all Radix components are using the same zIndex going forward.
|
|
2696
|
+
//
|
|
2697
|
+
// Additionally, there is an issue where macOS overlay scrollbars in Chrome and Safari (sometimes!)
|
|
2698
|
+
// overlap other elements with higher zIndex, because the scrollbars themselves have zIndex 9999,
|
|
2699
|
+
// so we have to use a higher value than that: https://github.com/databricks/universe/pull/232825
|
|
2700
|
+
zIndex: 10000,
|
|
2701
|
+
a: importantify({
|
|
2702
|
+
color: theme.colors.textPrimary,
|
|
2703
|
+
'&:hover, &:focus': {
|
|
2704
|
+
color: theme.colors.textPrimary
|
|
2705
|
+
}
|
|
2706
|
+
})
|
|
2707
|
+
});
|
|
2708
|
+
const contentStyles = theme => ({
|
|
2709
|
+
...dropdownContentStyles(theme)
|
|
2710
|
+
});
|
|
2711
|
+
const dropdownItemStyles = theme => ({
|
|
2712
|
+
padding: `${CONSTANTS.itemPaddingVertical(theme)}px ${CONSTANTS.itemPaddingHorizontal(theme)}px`,
|
|
2713
|
+
display: 'flex',
|
|
2714
|
+
flexWrap: 'wrap',
|
|
2715
|
+
alignItems: 'center',
|
|
2716
|
+
outline: 'unset',
|
|
2717
|
+
'&:hover': {
|
|
2718
|
+
cursor: 'pointer'
|
|
2719
|
+
},
|
|
2720
|
+
'&:focus': {
|
|
2721
|
+
backgroundColor: theme.colors.actionTertiaryBackgroundHover
|
|
2722
|
+
},
|
|
2723
|
+
'&[data-disabled]': {
|
|
2724
|
+
pointerEvents: 'none',
|
|
2725
|
+
color: theme.colors.actionDisabledText
|
|
2726
|
+
}
|
|
2727
|
+
});
|
|
2728
|
+
const dangerItemStyles = theme => ({
|
|
2729
|
+
color: theme.colors.textValidationDanger,
|
|
2730
|
+
'&:hover, &:focus': {
|
|
2731
|
+
backgroundColor: theme.colors.actionDangerDefaultBackgroundHover
|
|
2732
|
+
}
|
|
2733
|
+
});
|
|
2734
|
+
const infoIconStyles = theme => ({
|
|
2735
|
+
display: 'inline-flex',
|
|
2736
|
+
paddingLeft: theme.spacing.xs,
|
|
2737
|
+
color: theme.colors.textSecondary,
|
|
2738
|
+
pointerEvents: 'all'
|
|
2739
|
+
});
|
|
2740
|
+
const checkboxItemStyles = theme => ({
|
|
2741
|
+
position: 'relative',
|
|
2742
|
+
paddingLeft: CONSTANTS.checkboxIconWidth(theme) + CONSTANTS.checkboxPaddingLeft(theme) + CONSTANTS.checkboxPaddingRight(theme)
|
|
2743
|
+
});
|
|
2744
|
+
const metaTextStyles = theme => ({
|
|
2745
|
+
color: theme.colors.textSecondary,
|
|
2746
|
+
fontSize: theme.typography.fontSizeSm,
|
|
2747
|
+
'[data-disabled] &': {
|
|
2748
|
+
color: theme.colors.actionDisabledText
|
|
2749
|
+
}
|
|
2750
|
+
});
|
|
2751
|
+
const dropdownSeparatorStyles = theme => ({
|
|
2752
|
+
height: 1,
|
|
2753
|
+
margin: `${theme.spacing.xs}px ${theme.spacing.sm}px`,
|
|
2754
|
+
backgroundColor: theme.colors.borderDecorative
|
|
2755
|
+
});
|
|
2756
|
+
|
|
2757
|
+
var DropdownMenu = /*#__PURE__*/Object.freeze({
|
|
2758
|
+
__proto__: null,
|
|
2759
|
+
Arrow: Arrow,
|
|
2760
|
+
CheckboxItem: CheckboxItem,
|
|
2761
|
+
Content: Content,
|
|
2762
|
+
Group: Group,
|
|
2763
|
+
HintColumn: HintColumn,
|
|
2764
|
+
HintRow: HintRow,
|
|
2765
|
+
IconWrapper: IconWrapper,
|
|
2766
|
+
Item: Item,
|
|
2767
|
+
ItemIndicator: ItemIndicator,
|
|
2768
|
+
Label: Label,
|
|
2769
|
+
RadioGroup: RadioGroup,
|
|
2770
|
+
RadioItem: RadioItem,
|
|
2771
|
+
Root: Root,
|
|
2772
|
+
Separator: Separator,
|
|
2773
|
+
Sub: Sub,
|
|
2774
|
+
SubContent: SubContent,
|
|
2775
|
+
SubTrigger: SubTrigger,
|
|
2776
|
+
Trigger: Trigger,
|
|
2777
|
+
TriggerItem: TriggerItem,
|
|
2778
|
+
dropdownContentStyles: dropdownContentStyles,
|
|
2779
|
+
dropdownItemStyles: dropdownItemStyles,
|
|
2780
|
+
dropdownSeparatorStyles: dropdownSeparatorStyles
|
|
2781
|
+
});
|
|
2782
|
+
|
|
2783
|
+
export { ApplyDesignSystemContextOverrides as A, Button as B, CloseIcon as C, DesignSystemAntDConfigProvider as D, DesignSystemProvider as E, ApplyDesignSystemFlags as F, useAntDConfigProviderContext as G, DropdownMenu as H, Icon as I, CursorIcon as J, FaceFrownIcon as K, FaceNeutralIcon as L, FaceSmileIcon as M, NewWindowIcon as N, __INTERNAL_DO_NOT_USE__Password as O, __INTERNAL_DO_NOT_USE_DEDUPE__Group as P, getTypographyColor as Q, RestoreAntDDefaultClsPrefix as R, dropdownItemStyles as S, Tooltip as T, dropdownSeparatorStyles as U, WithDesignSystemThemeHoc as W, __INTERNAL_DO_NOT_USE__TextArea as _, ChevronRightIcon as a, useDesignSystemFlags as b, DU_BOIS_ENABLE_ANIMATION_CLASSNAME as c, useDesignSystemContext as d, InfoIcon as e, Input as f, getAnimationCss as g, CheckIcon as h, importantify as i, getValidationStateColor as j, Typography as k, dropdownContentStyles as l, Title as m, ChevronLeftIcon as n, Root as o, Trigger as p, getDefaultStyles as q, getPrimaryStyles as r, safex as s, getDisabledStyles as t, useDesignSystemTheme as u, lightColorList as v, getButtonEmotionStyles as w, DesignSystemThemeContext as x, DesignSystemContext as y, DesignSystemThemeProvider as z };
|
|
2784
|
+
//# sourceMappingURL=DropdownMenu-e0c3fc1d.js.map
|