@databricks/design-system 1.12.9 → 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-91d3d591.js → DropdownMenu-e0c3fc1d.js} +842 -164
- 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 +2 -0
- 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 +1 -0
- 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/shared.d.ts +1 -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 +10 -4
- 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 -0
- 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/design-system/SelectV2/SelectContent.d.ts.map +1 -1
- 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 +2 -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/MessageHeader.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 +322 -133
- 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 +3218 -2786
- 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 +30 -5
- 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 +26 -32
- 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-91d3d591.js.map +0 -1
- package/dist/Typography-e3d5ff23.js +0 -2083
- 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 +0 -7
- package/dist/development/SelectV2/Select.d.ts.map +0 -1
- package/dist/development/SelectV2/SelectContent.d.ts +0 -6
- package/dist/development/SelectV2/SelectContent.d.ts.map +0 -1
- package/dist/development/SelectV2/SelectOption.d.ts +0 -6
- package/dist/development/SelectV2/SelectOption.d.ts.map +0 -1
- package/dist/development/SelectV2/SelectOptionGroup.d.ts +0 -7
- package/dist/development/SelectV2/SelectOptionGroup.d.ts.map +0 -1
- package/dist/development/SelectV2/SelectTrigger.d.ts +0 -6
- package/dist/development/SelectV2/SelectTrigger.d.ts.map +0 -1
- package/dist/development/SelectV2/hooks/useSelectContext.d.ts +0 -2
- package/dist/development/SelectV2/hooks/useSelectContext.d.ts.map +0 -1
- package/dist/development/SelectV2/index.d.ts +0 -6
- package/dist/development/SelectV2/index.d.ts.map +0 -1
- package/dist/development/SelectV2/providers/SelectContext.d.ts +0 -11
- 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
|
@@ -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,
|
|
@@ -730,17 +841,17 @@ const Icon = props => {
|
|
|
730
841
|
|
|
731
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",
|
|
737
|
-
|
|
848
|
+
viewBox: "0 0 16 16",
|
|
738
849
|
...props,
|
|
739
850
|
children: jsx("path", {
|
|
851
|
+
fill: "currentColor",
|
|
740
852
|
fillRule: "evenodd",
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
fill: "currentColor"
|
|
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"
|
|
744
855
|
})
|
|
745
856
|
});
|
|
746
857
|
}
|
|
@@ -753,17 +864,17 @@ function CheckIcon(props) {
|
|
|
753
864
|
|
|
754
865
|
function SvgChevronLeftIcon(props) {
|
|
755
866
|
return jsx("svg", {
|
|
867
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
756
868
|
width: "1em",
|
|
757
869
|
height: "1em",
|
|
758
|
-
viewBox: "0 0 16 16",
|
|
759
870
|
fill: "none",
|
|
760
|
-
|
|
871
|
+
viewBox: "0 0 16 16",
|
|
761
872
|
...props,
|
|
762
873
|
children: jsx("path", {
|
|
874
|
+
fill: "currentColor",
|
|
763
875
|
fillRule: "evenodd",
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
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"
|
|
767
878
|
})
|
|
768
879
|
});
|
|
769
880
|
}
|
|
@@ -776,17 +887,17 @@ function ChevronLeftIcon(props) {
|
|
|
776
887
|
|
|
777
888
|
function SvgChevronRightIcon(props) {
|
|
778
889
|
return jsx("svg", {
|
|
890
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
779
891
|
width: "1em",
|
|
780
892
|
height: "1em",
|
|
781
|
-
viewBox: "0 0 16 16",
|
|
782
893
|
fill: "none",
|
|
783
|
-
|
|
894
|
+
viewBox: "0 0 16 16",
|
|
784
895
|
...props,
|
|
785
896
|
children: jsx("path", {
|
|
897
|
+
fill: "currentColor",
|
|
786
898
|
fillRule: "evenodd",
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
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"
|
|
790
901
|
})
|
|
791
902
|
});
|
|
792
903
|
}
|
|
@@ -799,17 +910,17 @@ function ChevronRightIcon(props) {
|
|
|
799
910
|
|
|
800
911
|
function SvgCloseIcon(props) {
|
|
801
912
|
return jsx("svg", {
|
|
913
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
802
914
|
width: "1em",
|
|
803
915
|
height: "1em",
|
|
804
|
-
viewBox: "0 0 16 16",
|
|
805
916
|
fill: "none",
|
|
806
|
-
|
|
917
|
+
viewBox: "0 0 16 16",
|
|
807
918
|
...props,
|
|
808
919
|
children: jsx("path", {
|
|
920
|
+
fill: "currentColor",
|
|
809
921
|
fillRule: "evenodd",
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
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"
|
|
813
924
|
})
|
|
814
925
|
});
|
|
815
926
|
}
|
|
@@ -822,27 +933,26 @@ function CloseIcon(props) {
|
|
|
822
933
|
|
|
823
934
|
function SvgCursorIcon(props) {
|
|
824
935
|
return jsxs("svg", {
|
|
936
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
825
937
|
width: "1em",
|
|
826
938
|
height: "1em",
|
|
827
|
-
viewBox: "0 0 16 16",
|
|
828
939
|
fill: "none",
|
|
829
|
-
|
|
940
|
+
viewBox: "0 0 16 16",
|
|
830
941
|
...props,
|
|
831
942
|
children: [jsx("g", {
|
|
832
|
-
clipPath: "url(#
|
|
943
|
+
clipPath: "url(#CursorIcon_svg__a)",
|
|
833
944
|
children: jsx("path", {
|
|
945
|
+
fill: "currentColor",
|
|
834
946
|
fillRule: "evenodd",
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
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"
|
|
838
949
|
})
|
|
839
950
|
}), jsx("defs", {
|
|
840
951
|
children: jsx("clipPath", {
|
|
841
|
-
id: "
|
|
952
|
+
id: "CursorIcon_svg__a",
|
|
842
953
|
children: jsx("path", {
|
|
843
954
|
fill: "#fff",
|
|
844
|
-
|
|
845
|
-
d: "M0 0h16v16H0z"
|
|
955
|
+
d: "M16 0H0v16h16z"
|
|
846
956
|
})
|
|
847
957
|
})
|
|
848
958
|
})]
|
|
@@ -857,25 +967,25 @@ function CursorIcon(props) {
|
|
|
857
967
|
|
|
858
968
|
function SvgFaceFrownIcon(props) {
|
|
859
969
|
return jsxs("svg", {
|
|
970
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
860
971
|
width: "1em",
|
|
861
972
|
height: "1em",
|
|
862
|
-
viewBox: "0 0 16 16",
|
|
863
973
|
fill: "none",
|
|
864
|
-
|
|
974
|
+
viewBox: "0 0 16 16",
|
|
865
975
|
...props,
|
|
866
976
|
children: [jsxs("g", {
|
|
867
|
-
clipPath: "url(#FaceFrownIcon_svg__clip0_16320_32311)",
|
|
868
977
|
fill: "currentColor",
|
|
978
|
+
clipPath: "url(#FaceFrownIcon_svg__a)",
|
|
869
979
|
children: [jsx("path", {
|
|
870
|
-
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"
|
|
871
981
|
}), jsx("path", {
|
|
872
982
|
fillRule: "evenodd",
|
|
873
|
-
|
|
874
|
-
|
|
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"
|
|
875
985
|
})]
|
|
876
986
|
}), jsx("defs", {
|
|
877
987
|
children: jsx("clipPath", {
|
|
878
|
-
id: "
|
|
988
|
+
id: "FaceFrownIcon_svg__a",
|
|
879
989
|
children: jsx("path", {
|
|
880
990
|
fill: "#fff",
|
|
881
991
|
d: "M0 0h16v16H0z"
|
|
@@ -893,25 +1003,25 @@ function FaceFrownIcon(props) {
|
|
|
893
1003
|
|
|
894
1004
|
function SvgFaceNeutralIcon(props) {
|
|
895
1005
|
return jsxs("svg", {
|
|
1006
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
896
1007
|
width: "1em",
|
|
897
1008
|
height: "1em",
|
|
898
|
-
viewBox: "0 0 16 16",
|
|
899
1009
|
fill: "none",
|
|
900
|
-
|
|
1010
|
+
viewBox: "0 0 16 16",
|
|
901
1011
|
...props,
|
|
902
1012
|
children: [jsxs("g", {
|
|
903
|
-
|
|
1013
|
+
fill: "currentColor",
|
|
904
1014
|
fillRule: "evenodd",
|
|
1015
|
+
clipPath: "url(#FaceNeutralIcon_svg__a)",
|
|
905
1016
|
clipRule: "evenodd",
|
|
906
|
-
fill: "currentColor",
|
|
907
1017
|
children: [jsx("path", {
|
|
908
|
-
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"
|
|
909
1019
|
}), jsx("path", {
|
|
910
|
-
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"
|
|
911
1021
|
})]
|
|
912
1022
|
}), jsx("defs", {
|
|
913
1023
|
children: jsx("clipPath", {
|
|
914
|
-
id: "
|
|
1024
|
+
id: "FaceNeutralIcon_svg__a",
|
|
915
1025
|
children: jsx("path", {
|
|
916
1026
|
fill: "#fff",
|
|
917
1027
|
d: "M0 0h16v16H0z"
|
|
@@ -929,29 +1039,29 @@ function FaceNeutralIcon(props) {
|
|
|
929
1039
|
|
|
930
1040
|
function SvgFaceSmileIcon(props) {
|
|
931
1041
|
return jsxs("svg", {
|
|
1042
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
932
1043
|
width: "1em",
|
|
933
1044
|
height: "1em",
|
|
934
|
-
viewBox: "0 0 16 16",
|
|
935
1045
|
fill: "none",
|
|
936
|
-
|
|
1046
|
+
viewBox: "0 0 16 16",
|
|
937
1047
|
...props,
|
|
938
1048
|
children: [jsxs("g", {
|
|
939
|
-
clipPath: "url(#FaceSmileIcon_svg__clip0_16320_32307)",
|
|
940
1049
|
fill: "currentColor",
|
|
1050
|
+
clipPath: "url(#FaceSmileIcon_svg__a)",
|
|
941
1051
|
children: [jsx("path", {
|
|
942
1052
|
fillRule: "evenodd",
|
|
943
|
-
|
|
944
|
-
|
|
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"
|
|
945
1055
|
}), jsx("path", {
|
|
946
|
-
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"
|
|
947
1057
|
}), jsx("path", {
|
|
948
1058
|
fillRule: "evenodd",
|
|
949
|
-
|
|
950
|
-
|
|
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"
|
|
951
1061
|
})]
|
|
952
1062
|
}), jsx("defs", {
|
|
953
1063
|
children: jsx("clipPath", {
|
|
954
|
-
id: "
|
|
1064
|
+
id: "FaceSmileIcon_svg__a",
|
|
955
1065
|
children: jsx("path", {
|
|
956
1066
|
fill: "#fff",
|
|
957
1067
|
d: "M0 0h16v16H0z"
|
|
@@ -967,102 +1077,54 @@ function FaceSmileIcon(props) {
|
|
|
967
1077
|
});
|
|
968
1078
|
}
|
|
969
1079
|
|
|
970
|
-
function
|
|
1080
|
+
function SvgInfoIcon(props) {
|
|
971
1081
|
return jsxs("svg", {
|
|
1082
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
972
1083
|
width: "1em",
|
|
973
1084
|
height: "1em",
|
|
974
|
-
viewBox: "0 0 16 16",
|
|
975
1085
|
fill: "none",
|
|
976
|
-
|
|
1086
|
+
viewBox: "0 0 16 16",
|
|
977
1087
|
...props,
|
|
978
1088
|
children: [jsx("path", {
|
|
979
|
-
|
|
980
|
-
|
|
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"
|
|
981
1091
|
}), jsx("path", {
|
|
982
|
-
|
|
983
|
-
|
|
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"
|
|
984
1096
|
})]
|
|
985
1097
|
});
|
|
986
1098
|
}
|
|
987
|
-
function
|
|
1099
|
+
function InfoIcon(props) {
|
|
988
1100
|
return jsx(Icon, {
|
|
989
1101
|
...props,
|
|
990
|
-
component:
|
|
1102
|
+
component: SvgInfoIcon
|
|
991
1103
|
});
|
|
992
1104
|
}
|
|
993
1105
|
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
if (_isString(value) || _isNumber(value) || _isBoolean(value)) {
|
|
1010
|
-
// Make sure we don't double-append important
|
|
1011
|
-
if (_isString(value) && _endsWith(value, '!important')) {
|
|
1012
|
-
return value;
|
|
1013
|
-
}
|
|
1014
|
-
if (_isNumber(value)) {
|
|
1015
|
-
if (unitless[key]) {
|
|
1016
|
-
return `${value}!important`;
|
|
1017
|
-
}
|
|
1018
|
-
return `${value}px!important`;
|
|
1019
|
-
}
|
|
1020
|
-
return `${value}!important`;
|
|
1021
|
-
}
|
|
1022
|
-
if (_isNil(value)) {
|
|
1023
|
-
return value;
|
|
1024
|
-
}
|
|
1025
|
-
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
|
+
})]
|
|
1026
1121
|
});
|
|
1027
1122
|
}
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
* @param fallbackColor - color to return as fallback -- used to remove tertiary check inline
|
|
1034
|
-
*/
|
|
1035
|
-
function getTypographyColor(theme, key, fallbackColor) {
|
|
1036
|
-
if (theme && key && Object(theme.colors).hasOwnProperty(ColorVars[key])) {
|
|
1037
|
-
return theme.colors[ColorVars[key]];
|
|
1038
|
-
}
|
|
1039
|
-
return fallbackColor !== null && fallbackColor !== void 0 ? fallbackColor : theme.colors.textPrimary;
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
/**
|
|
1043
|
-
* Returns validation color based on state, has default validation colors if params are not provided
|
|
1044
|
-
* @param theme
|
|
1045
|
-
* @param validationState
|
|
1046
|
-
* @param errorColor
|
|
1047
|
-
* @param warningColor
|
|
1048
|
-
* @param successColor
|
|
1049
|
-
*/
|
|
1050
|
-
function getValidationStateColor(theme, validationState) {
|
|
1051
|
-
let {
|
|
1052
|
-
errorColor,
|
|
1053
|
-
warningColor,
|
|
1054
|
-
successColor
|
|
1055
|
-
} = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
1056
|
-
switch (validationState) {
|
|
1057
|
-
case 'error':
|
|
1058
|
-
return errorColor || theme.colors.actionDangerPrimaryBackgroundDefault;
|
|
1059
|
-
case 'warning':
|
|
1060
|
-
return warningColor || theme.colors.textValidationWarning;
|
|
1061
|
-
case 'success':
|
|
1062
|
-
return successColor || theme.colors.textValidationSuccess;
|
|
1063
|
-
default:
|
|
1064
|
-
return undefined;
|
|
1065
|
-
}
|
|
1123
|
+
function NewWindowIcon(props) {
|
|
1124
|
+
return jsx(Icon, {
|
|
1125
|
+
...props,
|
|
1126
|
+
component: SvgNewWindowIcon
|
|
1127
|
+
});
|
|
1066
1128
|
}
|
|
1067
1129
|
|
|
1068
1130
|
function getDefaultStyles(theme) {
|
|
@@ -1266,7 +1328,7 @@ const getButtonEmotionStyles = _ref => {
|
|
|
1266
1328
|
})
|
|
1267
1329
|
};
|
|
1268
1330
|
const inactiveIconCss = {
|
|
1269
|
-
color: theme.colors.
|
|
1331
|
+
color: theme.colors.textSecondary
|
|
1270
1332
|
};
|
|
1271
1333
|
const endIconCssSelector = `span > ${clsEndIcon} > ${clsIcon}`;
|
|
1272
1334
|
const styles = {
|
|
@@ -1543,6 +1605,61 @@ const Button = /* #__PURE__ */(() => {
|
|
|
1543
1605
|
return Button;
|
|
1544
1606
|
})();
|
|
1545
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
|
+
|
|
1546
1663
|
const getInputEmotionStyles = (clsPrefix, theme, _ref, useTransparent) => {
|
|
1547
1664
|
let {
|
|
1548
1665
|
validationState
|
|
@@ -1575,6 +1692,9 @@ const getInputEmotionStyles = (clsPrefix, theme, _ref, useTransparent) => {
|
|
|
1575
1692
|
'&:disabled': {
|
|
1576
1693
|
backgroundColor: theme.colors.actionDisabledBackground,
|
|
1577
1694
|
color: theme.colors.actionDisabledText
|
|
1695
|
+
},
|
|
1696
|
+
'&::placeholder': {
|
|
1697
|
+
color: theme.colors.textPlaceholder
|
|
1578
1698
|
}
|
|
1579
1699
|
},
|
|
1580
1700
|
[`&${inputClass}, ${inputClass}`]: {
|
|
@@ -1744,7 +1864,7 @@ const DuboisInput = /*#__PURE__*/forwardRef(function Input(_ref4, ref) {
|
|
|
1744
1864
|
})
|
|
1745
1865
|
});
|
|
1746
1866
|
});
|
|
1747
|
-
const Group = _ref5 => {
|
|
1867
|
+
const Group$1 = _ref5 => {
|
|
1748
1868
|
let {
|
|
1749
1869
|
dangerouslySetAntdProps,
|
|
1750
1870
|
dangerouslyAppendEmotionCSS,
|
|
@@ -1769,7 +1889,7 @@ const Group = _ref5 => {
|
|
|
1769
1889
|
const InputNamespace = /* #__PURE__ */Object.assign(DuboisInput, {
|
|
1770
1890
|
TextArea,
|
|
1771
1891
|
Password,
|
|
1772
|
-
Group
|
|
1892
|
+
Group: Group$1
|
|
1773
1893
|
});
|
|
1774
1894
|
const Input = InputNamespace;
|
|
1775
1895
|
|
|
@@ -1778,7 +1898,46 @@ const Input = InputNamespace;
|
|
|
1778
1898
|
// since these will be exposed in the library's exports.
|
|
1779
1899
|
const __INTERNAL_DO_NOT_USE__TextArea = TextArea;
|
|
1780
1900
|
const __INTERNAL_DO_NOT_USE__Password = Password;
|
|
1781
|
-
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
|
+
}
|
|
1782
1941
|
|
|
1783
1942
|
const getLinkStyles = (theme, clsPrefix) => {
|
|
1784
1943
|
const classTypography = `.${clsPrefix}-typography`;
|
|
@@ -1875,13 +2034,18 @@ function Link(_ref) {
|
|
|
1875
2034
|
const {
|
|
1876
2035
|
Paragraph: AntDParagraph
|
|
1877
2036
|
} = Typography$1;
|
|
1878
|
-
function getParagraphEmotionStyles(theme, props) {
|
|
2037
|
+
function getParagraphEmotionStyles(theme, props, centerIcons) {
|
|
1879
2038
|
return /*#__PURE__*/css({
|
|
1880
2039
|
'&&': {
|
|
1881
2040
|
fontSize: theme.typography.fontSizeBase,
|
|
1882
2041
|
lineHeight: theme.typography.lineHeightBase,
|
|
1883
2042
|
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
1884
|
-
}
|
|
2043
|
+
},
|
|
2044
|
+
...(centerIcons && {
|
|
2045
|
+
'& .anticon': {
|
|
2046
|
+
verticalAlign: 'text-bottom'
|
|
2047
|
+
}
|
|
2048
|
+
})
|
|
1885
2049
|
}, props.disabled && {
|
|
1886
2050
|
'&&': {
|
|
1887
2051
|
color: theme.colors.actionDisabledText
|
|
@@ -1903,11 +2067,12 @@ function Paragraph(userProps) {
|
|
|
1903
2067
|
const {
|
|
1904
2068
|
theme
|
|
1905
2069
|
} = useDesignSystemTheme();
|
|
2070
|
+
const centerIconsInText = safex('databricks.fe.designsystem.centerIconsInText', false);
|
|
1906
2071
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
1907
2072
|
children: jsx(AntDParagraph, {
|
|
1908
2073
|
...props,
|
|
1909
2074
|
className: props.className,
|
|
1910
|
-
css: getParagraphEmotionStyles(theme, userProps),
|
|
2075
|
+
css: getParagraphEmotionStyles(theme, userProps, centerIconsInText),
|
|
1911
2076
|
...dangerouslySetAntdProps
|
|
1912
2077
|
})
|
|
1913
2078
|
});
|
|
@@ -1916,13 +2081,19 @@ function Paragraph(userProps) {
|
|
|
1916
2081
|
const {
|
|
1917
2082
|
Text: AntDText
|
|
1918
2083
|
} = Typography$1;
|
|
1919
|
-
function getTextEmotionStyles(theme, props) {
|
|
2084
|
+
function getTextEmotionStyles(theme, props, centerIcons) {
|
|
1920
2085
|
return /*#__PURE__*/css({
|
|
1921
2086
|
'&&': {
|
|
1922
2087
|
fontSize: theme.typography.fontSizeBase,
|
|
1923
2088
|
lineHeight: theme.typography.lineHeightBase,
|
|
1924
2089
|
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
1925
|
-
}
|
|
2090
|
+
},
|
|
2091
|
+
...(centerIcons && {
|
|
2092
|
+
'& .anticon': {
|
|
2093
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
2094
|
+
verticalAlign: 'middle'
|
|
2095
|
+
}
|
|
2096
|
+
})
|
|
1926
2097
|
}, props.disabled && {
|
|
1927
2098
|
'&&': {
|
|
1928
2099
|
color: theme.colors.actionDisabledText
|
|
@@ -1955,27 +2126,53 @@ function getTextEmotionStyles(theme, props) {
|
|
|
1955
2126
|
case 'xxl':
|
|
1956
2127
|
return {
|
|
1957
2128
|
fontSize: theme.typography.fontSizeXxl,
|
|
1958
|
-
lineHeight: theme.typography.lineHeightXxl
|
|
2129
|
+
lineHeight: theme.typography.lineHeightXxl,
|
|
2130
|
+
...(centerIcons && {
|
|
2131
|
+
'& .anticon': {
|
|
2132
|
+
lineHeight: theme.typography.lineHeightXxl
|
|
2133
|
+
}
|
|
2134
|
+
})
|
|
1959
2135
|
};
|
|
1960
2136
|
case 'xl':
|
|
1961
2137
|
return {
|
|
1962
2138
|
fontSize: theme.typography.fontSizeXl,
|
|
1963
|
-
lineHeight: theme.typography.lineHeightXl
|
|
2139
|
+
lineHeight: theme.typography.lineHeightXl,
|
|
2140
|
+
...(centerIcons && {
|
|
2141
|
+
'& .anticon': {
|
|
2142
|
+
lineHeight: theme.typography.lineHeightXl
|
|
2143
|
+
}
|
|
2144
|
+
})
|
|
1964
2145
|
};
|
|
1965
2146
|
case 'lg':
|
|
1966
2147
|
return {
|
|
1967
2148
|
fontSize: theme.typography.fontSizeLg,
|
|
1968
|
-
lineHeight: theme.typography.lineHeightLg
|
|
2149
|
+
lineHeight: theme.typography.lineHeightLg,
|
|
2150
|
+
...(centerIcons && {
|
|
2151
|
+
'& .anticon': {
|
|
2152
|
+
lineHeight: theme.typography.lineHeightLg
|
|
2153
|
+
}
|
|
2154
|
+
})
|
|
1969
2155
|
};
|
|
1970
2156
|
case 'sm':
|
|
1971
2157
|
return {
|
|
1972
2158
|
fontSize: theme.typography.fontSizeSm,
|
|
1973
|
-
lineHeight: theme.typography.lineHeightSm
|
|
2159
|
+
lineHeight: theme.typography.lineHeightSm,
|
|
2160
|
+
...(centerIcons && {
|
|
2161
|
+
'& .anticon': {
|
|
2162
|
+
lineHeight: theme.typography.lineHeightSm
|
|
2163
|
+
}
|
|
2164
|
+
})
|
|
1974
2165
|
};
|
|
1975
2166
|
default:
|
|
1976
2167
|
return {
|
|
1977
2168
|
fontSize: theme.typography.fontSizeMd,
|
|
1978
|
-
lineHeight: theme.typography.lineHeightMd
|
|
2169
|
+
lineHeight: theme.typography.lineHeightMd,
|
|
2170
|
+
...(centerIcons && {
|
|
2171
|
+
'& .anticon': {
|
|
2172
|
+
lineHeight: theme.typography.lineHeightMd,
|
|
2173
|
+
verticalAlign: 'sub'
|
|
2174
|
+
}
|
|
2175
|
+
})
|
|
1979
2176
|
};
|
|
1980
2177
|
}
|
|
1981
2178
|
})()
|
|
@@ -1999,11 +2196,12 @@ function Text(userProps) {
|
|
|
1999
2196
|
const {
|
|
2000
2197
|
theme
|
|
2001
2198
|
} = useDesignSystemTheme();
|
|
2199
|
+
const centerIconsInText = safex('databricks.fe.designsystem.centerIconsInText', false);
|
|
2002
2200
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
2003
2201
|
children: jsx(AntDText, {
|
|
2004
2202
|
...props,
|
|
2005
2203
|
className: props.className,
|
|
2006
|
-
css: getTextEmotionStyles(theme, userProps),
|
|
2204
|
+
css: getTextEmotionStyles(theme, userProps, centerIconsInText),
|
|
2007
2205
|
...dangerouslySetAntdProps
|
|
2008
2206
|
})
|
|
2009
2207
|
});
|
|
@@ -2012,7 +2210,7 @@ function Text(userProps) {
|
|
|
2012
2210
|
const {
|
|
2013
2211
|
Title: AntDTitle
|
|
2014
2212
|
} = Typography$1;
|
|
2015
|
-
function getLevelStyles(theme, props) {
|
|
2213
|
+
function getLevelStyles(theme, props, centerIcons) {
|
|
2016
2214
|
switch (props.level) {
|
|
2017
2215
|
case 1:
|
|
2018
2216
|
return /*#__PURE__*/css({
|
|
@@ -2020,7 +2218,12 @@ function getLevelStyles(theme, props) {
|
|
|
2020
2218
|
fontSize: theme.typography.fontSizeXxl,
|
|
2021
2219
|
lineHeight: theme.typography.lineHeightXxl,
|
|
2022
2220
|
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2023
|
-
}
|
|
2221
|
+
},
|
|
2222
|
+
...(centerIcons && {
|
|
2223
|
+
'& .anticon': {
|
|
2224
|
+
lineHeight: theme.typography.lineHeightXxl
|
|
2225
|
+
}
|
|
2226
|
+
})
|
|
2024
2227
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2025
2228
|
case 2:
|
|
2026
2229
|
return /*#__PURE__*/css({
|
|
@@ -2028,7 +2231,12 @@ function getLevelStyles(theme, props) {
|
|
|
2028
2231
|
fontSize: theme.typography.fontSizeXl,
|
|
2029
2232
|
lineHeight: theme.typography.lineHeightXl,
|
|
2030
2233
|
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2031
|
-
}
|
|
2234
|
+
},
|
|
2235
|
+
...(centerIcons && {
|
|
2236
|
+
'& .anticon': {
|
|
2237
|
+
lineHeight: theme.typography.lineHeightXl
|
|
2238
|
+
}
|
|
2239
|
+
})
|
|
2032
2240
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2033
2241
|
case 3:
|
|
2034
2242
|
return /*#__PURE__*/css({
|
|
@@ -2036,7 +2244,12 @@ function getLevelStyles(theme, props) {
|
|
|
2036
2244
|
fontSize: theme.typography.fontSizeLg,
|
|
2037
2245
|
lineHeight: theme.typography.lineHeightLg,
|
|
2038
2246
|
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2039
|
-
}
|
|
2247
|
+
},
|
|
2248
|
+
...(centerIcons && {
|
|
2249
|
+
'& .anticon': {
|
|
2250
|
+
lineHeight: theme.typography.lineHeightLg
|
|
2251
|
+
}
|
|
2252
|
+
})
|
|
2040
2253
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2041
2254
|
case 4:
|
|
2042
2255
|
default:
|
|
@@ -2045,15 +2258,25 @@ function getLevelStyles(theme, props) {
|
|
|
2045
2258
|
fontSize: theme.typography.fontSizeMd,
|
|
2046
2259
|
lineHeight: theme.typography.lineHeightMd,
|
|
2047
2260
|
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2048
|
-
}
|
|
2261
|
+
},
|
|
2262
|
+
...(centerIcons && {
|
|
2263
|
+
'& .anticon': {
|
|
2264
|
+
lineHeight: theme.typography.lineHeightMd
|
|
2265
|
+
}
|
|
2266
|
+
})
|
|
2049
2267
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2050
2268
|
}
|
|
2051
2269
|
}
|
|
2052
|
-
function getTitleEmotionStyles(theme, props) {
|
|
2053
|
-
return /*#__PURE__*/css(getLevelStyles(theme, props), {
|
|
2270
|
+
function getTitleEmotionStyles(theme, props, centerIcons) {
|
|
2271
|
+
return /*#__PURE__*/css(getLevelStyles(theme, props, centerIcons), {
|
|
2054
2272
|
'&&': {
|
|
2055
2273
|
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
2056
|
-
}
|
|
2274
|
+
},
|
|
2275
|
+
...(centerIcons && {
|
|
2276
|
+
'& .anticon': {
|
|
2277
|
+
verticalAlign: 'middle'
|
|
2278
|
+
}
|
|
2279
|
+
})
|
|
2057
2280
|
}, props.withoutMargins && {
|
|
2058
2281
|
'&&': {
|
|
2059
2282
|
marginTop: '0 !important',
|
|
@@ -2072,11 +2295,12 @@ function Title(userProps) {
|
|
|
2072
2295
|
const {
|
|
2073
2296
|
theme
|
|
2074
2297
|
} = useDesignSystemTheme();
|
|
2298
|
+
const centerIconsInText = safex('databricks.fe.designsystem.centerIconsInText', false);
|
|
2075
2299
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
2076
2300
|
children: jsx(AntDTitle, {
|
|
2077
2301
|
...props,
|
|
2078
2302
|
className: props.className,
|
|
2079
|
-
css: getTitleEmotionStyles(theme, userProps),
|
|
2303
|
+
css: getTitleEmotionStyles(theme, userProps, centerIconsInText),
|
|
2080
2304
|
...dangerouslySetAntdProps
|
|
2081
2305
|
})
|
|
2082
2306
|
});
|
|
@@ -2099,8 +2323,462 @@ const Typography = /* #__PURE__ */(() => {
|
|
|
2099
2323
|
Typography.Title = Title;
|
|
2100
2324
|
Typography.Paragraph = Paragraph;
|
|
2101
2325
|
Typography.Link = Link;
|
|
2326
|
+
Typography.Hint = Hint;
|
|
2102
2327
|
return Typography;
|
|
2103
2328
|
})();
|
|
2104
2329
|
|
|
2105
|
-
|
|
2106
|
-
|
|
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
|