@databricks/design-system 1.12.11 → 1.12.13
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/{DropdownMenu-eb8788e5.js → DropdownMenu-dbeef1b7.js} +1718 -1210
- package/dist/DropdownMenu-dbeef1b7.js.map +1 -0
- package/dist/common-5b60d682.js.map +1 -1
- package/dist/design-system/Alert/Alert.d.ts +1 -0
- package/dist/design-system/Alert/Alert.d.ts.map +1 -1
- package/dist/design-system/ApplyGlobalStyles/ApplyGlobalStyles.d.ts.map +1 -1
- package/dist/design-system/AutoComplete/AutoComplete.d.ts.map +1 -1
- package/dist/design-system/Button/Button.d.ts +3 -0
- package/dist/design-system/Button/Button.d.ts.map +1 -1
- package/dist/design-system/Card/Card.d.ts +51 -0
- package/dist/design-system/Card/Card.d.ts.map +1 -0
- package/dist/design-system/Card/index.d.ts +2 -0
- package/dist/design-system/Card/index.d.ts.map +1 -0
- package/dist/design-system/Checkbox/Checkbox.d.ts +2 -2
- package/dist/design-system/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts +44 -0
- package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts.map +1 -0
- package/dist/design-system/DesignSystemEventProvider/index.d.ts +2 -0
- package/dist/design-system/DesignSystemEventProvider/index.d.ts.map +1 -0
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts +0 -2
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogCombobox.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxContent.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxHintRow.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionControlledList.d.ts +1 -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 +2 -2
- 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 +11 -2
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts +7 -0
- package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/index.d.ts +0 -1
- package/dist/design-system/DialogCombobox/index.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/shared.d.ts +2 -0
- package/dist/design-system/DialogCombobox/shared.d.ts.map +1 -1
- package/dist/design-system/Drawer/Drawer.d.ts.map +1 -1
- package/dist/design-system/DropdownMenu/DropdownMenu.d.ts +2 -1
- package/dist/design-system/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/design-system/FormV2/RHFAdapters.d.ts +45 -0
- 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/Hooks/useDesignSystemFlags.d.ts.map +1 -1
- package/dist/design-system/Hooks/useThemedStyles.d.ts.map +1 -1
- package/dist/design-system/Icon/Icon.d.ts +2 -2
- package/dist/design-system/Icon/Icon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/AlignCenterIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/AlignCenterIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/AlignLeftIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/AlignLeftIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/AlignRightIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/AlignRightIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/AppIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/AppIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowDownIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ArrowDownIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowInIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/ArrowInIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/ArrowLeftIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ArrowLeftIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowRightIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ArrowRightIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowUpIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ArrowUpIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowsUpDownIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ArrowsUpDownIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/AssistantIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/AssistantIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/BadgeCodeIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/BadgeCodeIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/BadgeCodeOffIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/BadgeCodeOffIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/BarChartIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/BarChartIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BarGroupedIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/BarGroupedIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BarStackedIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/BarStackedIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BarStackedPercentageIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/BarStackedPercentageIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/BeakerIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/BeakerIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BinaryIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/BinaryIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BoldIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/BoldIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BookIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/BookIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BookmarkFillIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/BookmarkFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BookmarkIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/BookmarkIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BooksIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/BooksIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BracketsCurlyIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/BracketsCurlyIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BracketsSquareIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/BracketsSquareIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BracketsXIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/BracketsXIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BranchIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/BranchIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BriefcaseFillIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/BriefcaseFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BriefcaseIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/BriefcaseIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CalendarClockIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CalendarClockIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CalendarEventIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CalendarEventIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CalendarIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CalendarIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CaretDownSquareIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CaretDownSquareIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CaretUpSquareIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CaretUpSquareIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CatalogCloudIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/CatalogCloudIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/CatalogIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CatalogIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CatalogOffIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CatalogOffIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChartLineIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ChartLineIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleBadgeIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleBadgeIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleFillIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CheckIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckLineIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CheckLineIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckboxIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CheckboxIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChecklistIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ChecklistIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleDownIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleDownIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleLeftIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleLeftIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleRightIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleRightIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleUpIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleUpIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDownIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDownIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronLeftIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ChevronLeftIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronRightIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ChevronRightIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronUpIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ChevronUpIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CircleIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CircleIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ClipboardIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ClipboardIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ClockIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ClockIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ClockKeyIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ClockKeyIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CloseIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CloseIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudDownloadIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CloudDownloadIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CloudIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudKeyIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CloudKeyIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudModelIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CloudModelIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudOffIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CloudOffIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudUploadIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CloudUploadIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CodeIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CodeIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ColorFillIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ColorFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ColumnIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ColumnIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ColumnsIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ColumnsIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ConnectIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ConnectIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CopyIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CopyIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CursorIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CursorIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CursorTypeIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/CursorTypeIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/DIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DagIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/DagIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DangerFillIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/DangerFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DangerIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/DangerIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DashIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/DashIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DashboardIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/DashboardIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DataIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/DataIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DatabaseIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/DatabaseIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DecimalIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/DecimalIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DotsCircleIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/DotsCircleIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DownloadIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/DownloadIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DragIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/DragIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ErdIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/ErdIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/ExpandLessIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ExpandLessIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ExpandMoreIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ExpandMoreIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FaceFrownIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FaceFrownIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FaceNeutralIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FaceNeutralIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FaceSmileIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FaceSmileIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FileCodeIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FileCodeIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FileDocumentIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FileDocumentIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FileIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FileIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FileImageIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FileImageIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FileModelIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FileModelIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FilterIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FilterIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FloatIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FloatIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FolderBranchIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FolderBranchIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FolderCloudFilledIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FolderCloudFilledIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FolderCloudIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FolderCloudIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FolderFillIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FolderFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FolderIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FolderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FontIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FontIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ForkIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ForkIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FullscreenExitIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FullscreenExitIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FullscreenIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FullscreenIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FunctionIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/FunctionIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/GearFillIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/GearFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/GearIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/GearIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/GiftIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/GiftIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/GitCommitIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/GitCommitIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/GlobeIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/GlobeIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/GridDashIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/GridDashIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/GridIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/GridIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/H1Icon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/H1Icon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/H2Icon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/H2Icon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/H3Icon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/H3Icon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/HistoryIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/HistoryIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/HomeIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/HomeIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ImageIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ImageIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/IndentDecreaseIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/IndentDecreaseIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/IndentIncreaseIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/IndentIncreaseIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/InfinityIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/InfinityIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/InfoFillIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/InfoFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/InfoIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/InfoIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/IngestionIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/IngestionIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ItalicIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ItalicIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/KeyIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/KeyIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/KeyboardIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/KeyboardIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LayerGraphIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/LayerGraphIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/LayerIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/LayerIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LettersIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/LettersIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LibrariesIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/LibrariesIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LightningIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/LightningIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LinkIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/LinkIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LinkOffIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/LinkOffIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ListBorderIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ListBorderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ListClearIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/ListClearIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/ListIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ListIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LoadingIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/LoadingIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LockFillIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/LockFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LockIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/LockIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LockUnlockedIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/LockUnlockedIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/MIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/MIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/MailIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/MailIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/MegaphoneIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/MegaphoneIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/MenuIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/MenuIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/MinusBoxIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/MinusBoxIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/MinusCircleFillIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/MinusCircleFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/MinusCircleIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/MinusCircleIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ModelsIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ModelsIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/NewWindowIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/NewWindowIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/NoIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/NoIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/NotebookIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/NotebookIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/NotificationIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/NotificationIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/NotificationOffIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/NotificationOffIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/NumbersIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/NumbersIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/OfficeIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/OfficeIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/OverflowIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/OverflowIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PageBottomIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/PageBottomIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PageFirstIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/PageFirstIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PageLastIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/PageLastIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PageTopIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/PageTopIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PauseIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/PauseIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/PencilIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/PencilIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PinCancelIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/PinCancelIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PinFillIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/PinFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PinIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/PinIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PipelineIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/PipelineIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PlayCircleFillIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/PlayCircleFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PlayCircleIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/PlayCircleIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PlayIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/PlayIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PlugIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/PlugIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PlusCircleFillIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/PlusCircleFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PlusCircleIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/PlusCircleIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PlusIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/PlusIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PlusSquareIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/PlusSquareIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/QueryEditorIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/QueryEditorIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/QueryIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/QueryIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/QuestionMarkFillIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/QuestionMarkFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/QuestionMarkIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/QuestionMarkIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/QuestionMarkSpeechBubbleIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/QuestionMarkSpeechBubbleIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ReaderModeIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ReaderModeIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/RedoIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/RedoIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/RefreshIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/RefreshIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/RobotIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/RobotIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SaveIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SaveIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SchoolIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SchoolIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SearchIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SearchIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SecurityIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SecurityIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SendIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/SendIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/ShareIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ShareIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SidebarAutoIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SidebarAutoIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SidebarCollapseIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SidebarCollapseIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SidebarExpandIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SidebarExpandIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SidebarIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SidebarIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SlidersIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SlidersIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalAscendingIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalAscendingIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalDescendingIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalDescendingIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalLeftIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalLeftIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalRightIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SortAlphabeticalRightIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SortAscendingIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SortAscendingIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SortDescendingIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SortDescendingIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SortUnsortedIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SortUnsortedIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SparkleIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/SparkleIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/SpeechBubbleIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SpeechBubbleIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SpeechBubblePlusIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SpeechBubblePlusIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SpeechBubbleQuestionMarkIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/SpeechBubbleQuestionMarkIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/StarFillIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/StarFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/StarIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/StarIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/StepIntoIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/StepIntoIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/StepOutIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/StepOutIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/StepOverIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/StepOverIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/StopCircleFillIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/StopCircleFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/StopCircleIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/StopCircleIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/StopIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/StopIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/StorefrontIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/StorefrontIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/StreamIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/StreamIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SyncIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/SyncIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/TableGlassesIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/TableGlassesIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/TableIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/TableIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/TableLightningIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/TableLightningIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/TableOnlineViewIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/TableOnlineViewIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/TableStreamIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/TableStreamIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/TableVectorIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/TableVectorIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/TableViewIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/TableViewIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/TargetIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/TargetIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/TextBoxIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/TextBoxIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ThumbsDownIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ThumbsDownIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ThumbsUpIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ThumbsUpIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/TrashIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/TrashIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/TreeIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/TreeIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/UnderlineIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/UnderlineIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/UndoIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/UndoIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/UploadIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/UploadIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/UsbIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/UsbIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/UserBadgeIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/UserBadgeIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/UserCircleIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/UserCircleIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/UserGroupIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/UserGroupIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/UserIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/UserIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/VectorTableIcon.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/VectorTableIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/VisibleIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/VisibleIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/VisibleOffIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/VisibleOffIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/WarningFillIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/WarningFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/WarningIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/WarningIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/WorkflowsIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/WorkflowsIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/WorkspacesIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/WorkspacesIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/XCircleFillIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/XCircleFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/XCircleIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/XCircleIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ZoomInIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ZoomInIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ZoomMarqueeSelection.d.ts +5 -0
- package/dist/design-system/Icon/__generated/icons/ZoomMarqueeSelection.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/ZoomOutIcon.d.ts +2 -1
- package/dist/design-system/Icon/__generated/icons/ZoomOutIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/index.d.ts +25 -1
- package/dist/design-system/Icon/__generated/icons/index.d.ts.map +1 -1
- package/dist/design-system/Icon/iconMap.d.ts.map +1 -1
- package/dist/design-system/Input/Group.d.ts +3 -0
- package/dist/design-system/Input/Group.d.ts.map +1 -0
- package/dist/design-system/Input/Input.d.ts +8 -23
- package/dist/design-system/Input/Input.d.ts.map +1 -1
- package/dist/design-system/Input/Password.d.ts +4 -0
- package/dist/design-system/Input/Password.d.ts.map +1 -0
- package/dist/design-system/Input/TextArea.d.ts +5 -0
- package/dist/design-system/Input/TextArea.d.ts.map +1 -0
- package/dist/design-system/Input/common.d.ts +16 -0
- package/dist/design-system/Input/common.d.ts.map +1 -0
- package/dist/design-system/Input/index.d.ts +8 -1
- package/dist/design-system/Input/index.d.ts.map +1 -1
- package/dist/design-system/Label/Label.d.ts +1 -0
- package/dist/design-system/Label/Label.d.ts.map +1 -1
- package/dist/design-system/LegacyTable/LegacyTable.d.ts.map +1 -1
- package/dist/design-system/Modal/Modal.d.ts.map +1 -1
- package/dist/design-system/Notification/Notification.d.ts.map +1 -1
- package/dist/design-system/Overflow/Overflow.d.ts +9 -0
- package/dist/design-system/Overflow/Overflow.d.ts.map +1 -0
- package/dist/design-system/Overflow/faker.d.ts +5 -0
- package/dist/design-system/Overflow/faker.d.ts.map +1 -0
- package/dist/design-system/Overflow/index.d.ts +2 -0
- package/dist/design-system/Overflow/index.d.ts.map +1 -0
- package/dist/design-system/Pagination/index.d.ts +1 -0
- package/dist/design-system/Pagination/index.d.ts.map +1 -1
- package/dist/design-system/Popover/InfoPopover.d.ts +10 -0
- package/dist/design-system/Popover/InfoPopover.d.ts.map +1 -0
- package/dist/design-system/Popover/index.d.ts +1 -0
- package/dist/design-system/Popover/index.d.ts.map +1 -1
- package/dist/design-system/SegmentedControl/SegmentedControl.d.ts +1 -0
- package/dist/design-system/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/design-system/Select/Select.d.ts +1 -0
- package/dist/design-system/Select/Select.d.ts.map +1 -1
- package/dist/design-system/SelectV2/Select.d.ts.map +1 -1
- package/dist/design-system/Sidebar/Sidebar.d.ts +6 -3
- package/dist/design-system/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/design-system/Skeleton/GenericSkeleton.d.ts.map +1 -1
- package/dist/design-system/Skeleton/ParagraphSkeleton.d.ts.map +1 -1
- package/dist/design-system/Skeleton/TableSkeleton.d.ts.map +1 -1
- package/dist/design-system/Skeleton/TitleSkeleton.d.ts.map +1 -1
- package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts +1 -0
- package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts.map +1 -1
- package/dist/design-system/SplitButton/SplitButton.d.ts +1 -1
- package/dist/design-system/SplitButton/SplitButton.d.ts.map +1 -1
- package/dist/design-system/Steps/Steps.d.ts +11 -0
- package/dist/design-system/Steps/Steps.d.ts.map +1 -0
- package/dist/design-system/Steps/index.d.ts +2 -0
- package/dist/design-system/Steps/index.d.ts.map +1 -0
- package/dist/design-system/Switch/Switch.d.ts +5 -1
- package/dist/design-system/Switch/Switch.d.ts.map +1 -1
- package/dist/design-system/TableUI/Table.d.ts +0 -2
- package/dist/design-system/TableUI/Table.d.ts.map +1 -1
- package/dist/design-system/TableUI/TableCell.d.ts.map +1 -1
- package/dist/design-system/TableUI/TableFilterInput.d.ts +2 -0
- package/dist/design-system/TableUI/TableFilterInput.d.ts.map +1 -1
- package/dist/design-system/TableUI/TableHeader.d.ts.map +1 -1
- package/dist/design-system/TableUI/TableRow.d.ts.map +1 -1
- package/dist/design-system/TableUI/TableRowAction.d.ts.map +1 -1
- package/dist/design-system/TableUI/TableRowActionHeader.d.ts +5 -0
- package/dist/design-system/TableUI/TableRowActionHeader.d.ts.map +1 -0
- package/dist/design-system/TableUI/TableRowSelectCell.d.ts +1 -0
- package/dist/design-system/TableUI/TableRowSelectCell.d.ts.map +1 -1
- package/dist/design-system/TableUI/index.d.ts +1 -0
- package/dist/design-system/TableUI/index.d.ts.map +1 -1
- package/dist/design-system/TableUI/tableStyles.d.ts.map +1 -1
- package/dist/design-system/Tag/index.d.ts +3 -2
- package/dist/design-system/Tag/index.d.ts.map +1 -1
- package/dist/design-system/Tooltip/InfoTooltip.d.ts +2 -1
- package/dist/design-system/Tooltip/InfoTooltip.d.ts.map +1 -1
- package/dist/design-system/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/design-system/Tree/Tree.d.ts +24 -0
- package/dist/design-system/Tree/Tree.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxCheckboxItem.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxControls.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxInput.d.ts +1 -0
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxInput.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMenu.d.ts +2 -0
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMenu.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMenuItem.d.ts +2 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMenuItem.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMultiSelectInput.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxRoot.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxToggleButton.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts +6 -2
- package/dist/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/providers/TypeaheadComboboxContext.d.ts +2 -0
- package/dist/design-system/TypeaheadCombobox/providers/TypeaheadComboboxContext.d.ts.map +1 -1
- package/dist/design-system/Typography/Link.d.ts +1 -1
- package/dist/design-system/Typography/Link.d.ts.map +1 -1
- package/dist/design-system/Typography/Paragraph.d.ts.map +1 -1
- package/dist/design-system/Typography/Text.d.ts.map +1 -1
- package/dist/design-system/Typography/Title.d.ts.map +1 -1
- package/dist/design-system/Typography/Typography.d.ts +2 -3
- package/dist/design-system/Typography/Typography.d.ts.map +1 -1
- package/dist/design-system/_shared_/Combobox/EmptyResults.d.ts +5 -1
- package/dist/design-system/_shared_/Combobox/EmptyResults.d.ts.map +1 -1
- package/dist/design-system/_shared_/Combobox/styles.d.ts +3 -0
- package/dist/design-system/_shared_/Combobox/styles.d.ts.map +1 -1
- package/dist/design-system/constants.d.ts +2 -2
- package/dist/design-system/constants.d.ts.map +1 -1
- package/dist/design-system/index.d.ts +4 -0
- package/dist/design-system/index.d.ts.map +1 -1
- package/dist/design-system/types.d.ts +1 -1
- package/dist/design-system/types.d.ts.map +1 -1
- package/dist/design-system/utils/css-utils.d.ts +9 -0
- package/dist/design-system/utils/css-utils.d.ts.map +1 -1
- package/dist/design-system/utils/useStableUid.d.ts.map +1 -1
- package/dist/design-system/utils/useUniqueId.d.ts +1 -1
- package/dist/design-system/utils/useUniqueId.d.ts.map +1 -1
- package/dist/development/Banner/Banner.d.ts +18 -0
- package/dist/development/Banner/Banner.d.ts.map +1 -0
- package/dist/development/Banner/index.d.ts +2 -0
- package/dist/development/Banner/index.d.ts.map +1 -0
- package/dist/development/ChatUI/MessageHeader.d.ts +2 -1
- package/dist/development/ChatUI/MessageHeader.d.ts.map +1 -1
- package/dist/development/ChatUI/index.d.ts +2 -1
- package/dist/development/ChatUI/index.d.ts.map +1 -1
- package/dist/development/Toolbar/Toolbar.d.ts +15 -0
- package/dist/development/Toolbar/Toolbar.d.ts.map +1 -0
- package/dist/development/Toolbar/index.d.ts +2 -0
- package/dist/development/Toolbar/index.d.ts.map +1 -0
- package/dist/development/index.d.ts +3 -1
- package/dist/development/index.d.ts.map +1 -1
- package/dist/development.js +377 -123
- package/dist/development.js.map +1 -1
- package/dist/dubois-colors.less +203 -140
- package/dist/flags.d.ts +1 -4
- package/dist/flags.d.ts.map +1 -1
- package/dist/index-dark.css +1047 -266
- package/dist/index.css +890 -115
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10703 -8634
- package/dist/index.js.map +1 -1
- package/dist/rollup/less.d.ts.map +1 -1
- package/dist/test-utils/common.d.ts +7 -1
- package/dist/test-utils/common.d.ts.map +1 -1
- package/dist/test-utils/enzyme/selectEvent.d.ts +5 -0
- package/dist/test-utils/enzyme/selectEvent.d.ts.map +1 -1
- package/dist/test-utils/enzyme/table.d.ts +35 -1
- package/dist/test-utils/enzyme/table.d.ts.map +1 -1
- package/dist/test-utils/enzyme/utils.d.ts +6 -0
- package/dist/test-utils/enzyme/utils.d.ts.map +1 -1
- package/dist/test-utils/enzyme.js +95 -34
- package/dist/test-utils/enzyme.js.map +1 -1
- package/dist/test-utils/rtl/selectEvent.d.ts +5 -0
- package/dist/test-utils/rtl/selectEvent.d.ts.map +1 -1
- package/dist/test-utils/rtl/table.d.ts +36 -1
- package/dist/test-utils/rtl/table.d.ts.map +1 -1
- package/dist/test-utils/rtl.js +71 -12
- package/dist/test-utils/rtl.js.map +1 -1
- package/dist/theme/_generated/PrimitiveColors.d.ts +3 -0
- package/dist/theme/_generated/PrimitiveColors.d.ts.map +1 -0
- package/dist/theme/_generated/SemanticColors-Dark.d.ts +3 -0
- package/dist/theme/_generated/SemanticColors-Dark.d.ts.map +1 -0
- package/dist/theme/_generated/SemanticColors-Light.d.ts +3 -0
- package/dist/theme/_generated/SemanticColors-Light.d.ts.map +1 -0
- package/dist/theme/_generated/ValidPrimitiveColors.d.ts +56 -0
- package/dist/theme/_generated/ValidPrimitiveColors.d.ts.map +1 -0
- package/dist/theme/_generated/ValidSemanticColors.d.ts +99 -0
- package/dist/theme/_generated/ValidSemanticColors.d.ts.map +1 -0
- package/dist/theme/colors.d.ts +62 -141
- package/dist/theme/colors.d.ts.map +1 -1
- package/dist/theme/generalVariables.d.ts +7 -2
- package/dist/theme/generalVariables.d.ts.map +1 -1
- package/dist/theme/typography.d.ts +2 -0
- package/dist/theme/typography.d.ts.map +1 -1
- package/package.json +30 -28
- package/dist/DropdownMenu-eb8788e5.js.map +0 -1
- package/dist/design-system/DialogCombobox/DialogComboboxButtonContainer.d.ts +0 -2
- package/dist/design-system/DialogCombobox/DialogComboboxButtonContainer.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/TableInfinityIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/TableInfinityIcon.d.ts.map +0 -1
- package/dist/theme/colorList.d.ts +0 -130
- package/dist/theme/colorList.d.ts.map +0 -1
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import React__default, { createContext, useContext, useMemo, useEffect,
|
|
1
|
+
import React__default, { createContext, useContext, useMemo, useEffect, useState, forwardRef, useRef, useLayoutEffect, useImperativeHandle, Children } from 'react';
|
|
2
2
|
import { jsx, Fragment, jsxs } from '@emotion/react/jsx-runtime';
|
|
3
3
|
import { useTheme, ThemeProvider, css, keyframes } from '@emotion/react';
|
|
4
|
-
import { notification, ConfigProvider, Button as Button$1,
|
|
4
|
+
import { notification, ConfigProvider, Button as Button$1, Typography as Typography$1, Tooltip as Tooltip$1, Input as Input$2 } from 'antd';
|
|
5
5
|
import * as DropdownMenu$1 from '@radix-ui/react-dropdown-menu';
|
|
6
|
-
import chroma from 'chroma-js';
|
|
7
6
|
import _isNil from 'lodash/isNil';
|
|
8
7
|
import _endsWith from 'lodash/endsWith';
|
|
9
8
|
import _isBoolean from 'lodash/isBoolean';
|
|
10
9
|
import _isNumber from 'lodash/isNumber';
|
|
11
10
|
import _isString from 'lodash/isString';
|
|
12
11
|
import _mapValues from 'lodash/mapValues';
|
|
12
|
+
import _memoize from 'lodash/memoize';
|
|
13
13
|
import unitless from '@emotion/unitless';
|
|
14
14
|
import AntDIcon from '@ant-design/icons';
|
|
15
|
-
import _uniqueId from 'lodash/uniqueId';
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
17
|
* Used to hide text visually, but still be readable by screen-readers
|
|
@@ -32,13 +31,207 @@ const visuallyHidden = {
|
|
|
32
31
|
}
|
|
33
32
|
};
|
|
34
33
|
|
|
34
|
+
const DEFAULT_SPACING_UNIT = 8;
|
|
35
|
+
const MODAL_PADDING = 40;
|
|
36
|
+
const spacing = {
|
|
37
|
+
xs: DEFAULT_SPACING_UNIT / 2,
|
|
38
|
+
sm: DEFAULT_SPACING_UNIT,
|
|
39
|
+
md: DEFAULT_SPACING_UNIT * 2,
|
|
40
|
+
lg: DEFAULT_SPACING_UNIT * 3
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// Less variables that are used by AntD
|
|
44
|
+
({
|
|
45
|
+
defaultPaddingLg: spacing.lg,
|
|
46
|
+
defaultPaddingMd: spacing.md,
|
|
47
|
+
defaultPaddingSm: spacing.sm,
|
|
48
|
+
defaultPaddingXs: spacing.sm,
|
|
49
|
+
defaultPaddingXss: spacing.xs,
|
|
50
|
+
paddingLg: spacing.md,
|
|
51
|
+
// TODO: Check if there is a better alternative with team
|
|
52
|
+
paddingMd: spacing.sm,
|
|
53
|
+
paddingSm: spacing.sm,
|
|
54
|
+
paddingXs: spacing.xs,
|
|
55
|
+
paddingXss: 0,
|
|
56
|
+
marginSm: 12,
|
|
57
|
+
marginLg: spacing.lg,
|
|
58
|
+
// Button
|
|
59
|
+
btnPaddingHorizontalBase: DEFAULT_SPACING_UNIT * 2,
|
|
60
|
+
btnPaddingHorizontalLg: DEFAULT_SPACING_UNIT * 2,
|
|
61
|
+
btnPaddingHorizontalSm: DEFAULT_SPACING_UNIT * 2,
|
|
62
|
+
// Input
|
|
63
|
+
inputPaddingHorizontal: DEFAULT_SPACING_UNIT * 1.5,
|
|
64
|
+
inputPaddingHorizontalBase: DEFAULT_SPACING_UNIT * 1.5,
|
|
65
|
+
inputPaddingHorizontalSm: DEFAULT_SPACING_UNIT * 1.5,
|
|
66
|
+
inputPaddingHorizontalLg: DEFAULT_SPACING_UNIT * 1.5,
|
|
67
|
+
inputPaddingVertical: spacing.xs + 1,
|
|
68
|
+
inputPaddingVerticalBase: spacing.xs + 1,
|
|
69
|
+
inputPaddingVerticalSm: spacing.xs + 1,
|
|
70
|
+
inputPaddingVerticalLg: spacing.xs + 1,
|
|
71
|
+
// Modal
|
|
72
|
+
modalPadding: MODAL_PADDING,
|
|
73
|
+
modalLessPadding: MODAL_PADDING - 20,
|
|
74
|
+
modalHeaderPadding: `${MODAL_PADDING}px ${MODAL_PADDING}px ${MODAL_PADDING - 20}px`,
|
|
75
|
+
modalHeaderCloseSize: MODAL_PADDING * 2 + 22,
|
|
76
|
+
modalHeaderBorderWidth: 0,
|
|
77
|
+
modalBodyPadding: `0 ${MODAL_PADDING}px`,
|
|
78
|
+
modalFooterPaddingVertical: 0,
|
|
79
|
+
modalFooterPaddingHorizontal: 0,
|
|
80
|
+
modalFooterBorderWidth: 0,
|
|
81
|
+
// Switch
|
|
82
|
+
switchPadding: 0,
|
|
83
|
+
switchHeight: 16,
|
|
84
|
+
switchMinWidth: 28,
|
|
85
|
+
switchPinSize: 14
|
|
86
|
+
});
|
|
87
|
+
var spacing$1 = spacing;
|
|
88
|
+
|
|
89
|
+
// eslint-disable-next-line import/no-anonymous-default-export
|
|
90
|
+
var antdVars = {
|
|
91
|
+
// IMPORTANT: Do not read this directly from components. Use `React.useContext`.
|
|
92
|
+
'ant-prefix': 'du-bois'
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const heightBase = 40;
|
|
96
|
+
const borderWidth = 1;
|
|
97
|
+
const antdGeneralVariables = {
|
|
98
|
+
classnamePrefix: antdVars['ant-prefix'],
|
|
99
|
+
iconfontCssPrefix: 'anticon',
|
|
100
|
+
borderRadiusBase: 4,
|
|
101
|
+
borderWidth: borderWidth,
|
|
102
|
+
heightSm: 32,
|
|
103
|
+
heightBase: heightBase,
|
|
104
|
+
iconSize: 24,
|
|
105
|
+
iconFontSize: 16,
|
|
106
|
+
buttonHeight: heightBase,
|
|
107
|
+
// Height available within button (for label and icon). Same for middle and small buttons.
|
|
108
|
+
buttonInnerHeight: heightBase - spacing$1.sm * 2 - borderWidth * 2
|
|
109
|
+
};
|
|
110
|
+
const shadowLightRgb = '31, 39, 45';
|
|
111
|
+
const shadowDarkRgb = '0, 0, 0';
|
|
112
|
+
const getShadowVariables = isDarkMode => {
|
|
113
|
+
if (isDarkMode) {
|
|
114
|
+
return {
|
|
115
|
+
shadowLow: `0px 4px 16px rgba(${shadowDarkRgb}, 0.12)`,
|
|
116
|
+
shadowHigh: `0px 8px 24px rgba(${shadowDarkRgb}, 0.2);`
|
|
117
|
+
};
|
|
118
|
+
} else {
|
|
119
|
+
return {
|
|
120
|
+
shadowLow: `0px 4px 16px rgba(${shadowLightRgb}, 0.12)`,
|
|
121
|
+
shadowHigh: `0px 8px 24px rgba(${shadowLightRgb}, 0.2)`
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
127
|
+
|
|
128
|
+
let ValidSemanticColors = /*#__PURE__*/function (ValidSemanticColors) {
|
|
129
|
+
ValidSemanticColors["ActionDangerDefaultBackgroundDefault"] = "actionDangerDefaultBackgroundDefault";
|
|
130
|
+
ValidSemanticColors["ActionDangerDefaultBackgroundHover"] = "actionDangerDefaultBackgroundHover";
|
|
131
|
+
ValidSemanticColors["ActionDangerDefaultBackgroundPress"] = "actionDangerDefaultBackgroundPress";
|
|
132
|
+
ValidSemanticColors["ActionDangerDefaultBorderDefault"] = "actionDangerDefaultBorderDefault";
|
|
133
|
+
ValidSemanticColors["ActionDangerDefaultBorderHover"] = "actionDangerDefaultBorderHover";
|
|
134
|
+
ValidSemanticColors["ActionDangerDefaultBorderPress"] = "actionDangerDefaultBorderPress";
|
|
135
|
+
ValidSemanticColors["ActionDangerDefaultTextDefault"] = "actionDangerDefaultTextDefault";
|
|
136
|
+
ValidSemanticColors["ActionDangerDefaultTextHover"] = "actionDangerDefaultTextHover";
|
|
137
|
+
ValidSemanticColors["ActionDangerDefaultTextPress"] = "actionDangerDefaultTextPress";
|
|
138
|
+
ValidSemanticColors["ActionDangerPrimaryBackgroundDefault"] = "actionDangerPrimaryBackgroundDefault";
|
|
139
|
+
ValidSemanticColors["ActionDangerPrimaryBackgroundHover"] = "actionDangerPrimaryBackgroundHover";
|
|
140
|
+
ValidSemanticColors["ActionDangerPrimaryBackgroundPress"] = "actionDangerPrimaryBackgroundPress";
|
|
141
|
+
ValidSemanticColors["ActionDangerPrimaryText"] = "actionDangerPrimaryText";
|
|
142
|
+
ValidSemanticColors["ActionDefaultBackgroundDefault"] = "actionDefaultBackgroundDefault";
|
|
143
|
+
ValidSemanticColors["ActionDefaultBackgroundHover"] = "actionDefaultBackgroundHover";
|
|
144
|
+
ValidSemanticColors["ActionDefaultBackgroundPress"] = "actionDefaultBackgroundPress";
|
|
145
|
+
ValidSemanticColors["ActionDefaultBorderDefault"] = "actionDefaultBorderDefault";
|
|
146
|
+
ValidSemanticColors["ActionDefaultBorderFocus"] = "actionDefaultBorderFocus";
|
|
147
|
+
ValidSemanticColors["ActionDefaultBorderHover"] = "actionDefaultBorderHover";
|
|
148
|
+
ValidSemanticColors["ActionDefaultBorderPress"] = "actionDefaultBorderPress";
|
|
149
|
+
ValidSemanticColors["ActionDefaultIconDefault"] = "actionDefaultIconDefault";
|
|
150
|
+
ValidSemanticColors["ActionDefaultIconHover"] = "actionDefaultIconHover";
|
|
151
|
+
ValidSemanticColors["ActionDefaultIconPress"] = "actionDefaultIconPress";
|
|
152
|
+
ValidSemanticColors["ActionDefaultTextDefault"] = "actionDefaultTextDefault";
|
|
153
|
+
ValidSemanticColors["ActionDefaultTextHover"] = "actionDefaultTextHover";
|
|
154
|
+
ValidSemanticColors["ActionDefaultTextPress"] = "actionDefaultTextPress";
|
|
155
|
+
ValidSemanticColors["ActionDisabledBackground"] = "actionDisabledBackground";
|
|
156
|
+
ValidSemanticColors["ActionDisabledBorder"] = "actionDisabledBorder";
|
|
157
|
+
ValidSemanticColors["ActionDisabledText"] = "actionDisabledText";
|
|
158
|
+
ValidSemanticColors["ActionIconBackgroundDefault"] = "actionIconBackgroundDefault";
|
|
159
|
+
ValidSemanticColors["ActionIconBackgroundHover"] = "actionIconBackgroundHover";
|
|
160
|
+
ValidSemanticColors["ActionIconBackgroundPress"] = "actionIconBackgroundPress";
|
|
161
|
+
ValidSemanticColors["ActionIconIconDefault"] = "actionIconIconDefault";
|
|
162
|
+
ValidSemanticColors["ActionIconIconHover"] = "actionIconIconHover";
|
|
163
|
+
ValidSemanticColors["ActionIconIconPress"] = "actionIconIconPress";
|
|
164
|
+
ValidSemanticColors["ActionLinkDefault"] = "actionLinkDefault";
|
|
165
|
+
ValidSemanticColors["ActionLinkHover"] = "actionLinkHover";
|
|
166
|
+
ValidSemanticColors["ActionLinkPress"] = "actionLinkPress";
|
|
167
|
+
ValidSemanticColors["ActionPrimaryBackgroundDefault"] = "actionPrimaryBackgroundDefault";
|
|
168
|
+
ValidSemanticColors["ActionPrimaryBackgroundHover"] = "actionPrimaryBackgroundHover";
|
|
169
|
+
ValidSemanticColors["ActionPrimaryBackgroundPress"] = "actionPrimaryBackgroundPress";
|
|
170
|
+
ValidSemanticColors["ActionPrimaryIcon"] = "actionPrimaryIcon";
|
|
171
|
+
ValidSemanticColors["ActionPrimaryTextDefault"] = "actionPrimaryTextDefault";
|
|
172
|
+
ValidSemanticColors["ActionPrimaryTextHover"] = "actionPrimaryTextHover";
|
|
173
|
+
ValidSemanticColors["ActionPrimaryTextPress"] = "actionPrimaryTextPress";
|
|
174
|
+
ValidSemanticColors["ActionTertiaryBackgroundDefault"] = "actionTertiaryBackgroundDefault";
|
|
175
|
+
ValidSemanticColors["ActionTertiaryBackgroundHover"] = "actionTertiaryBackgroundHover";
|
|
176
|
+
ValidSemanticColors["ActionTertiaryBackgroundPress"] = "actionTertiaryBackgroundPress";
|
|
177
|
+
ValidSemanticColors["ActionTertiaryIconDefault"] = "actionTertiaryIconDefault";
|
|
178
|
+
ValidSemanticColors["ActionTertiaryIconHover"] = "actionTertiaryIconHover";
|
|
179
|
+
ValidSemanticColors["ActionTertiaryIconPress"] = "actionTertiaryIconPress";
|
|
180
|
+
ValidSemanticColors["ActionTertiaryTextDefault"] = "actionTertiaryTextDefault";
|
|
181
|
+
ValidSemanticColors["ActionTertiaryTextHover"] = "actionTertiaryTextHover";
|
|
182
|
+
ValidSemanticColors["ActionTertiaryTextPress"] = "actionTertiaryTextPress";
|
|
183
|
+
ValidSemanticColors["BackgroundDanger"] = "backgroundDanger";
|
|
184
|
+
ValidSemanticColors["BackgroundInfo"] = "backgroundInfo";
|
|
185
|
+
ValidSemanticColors["BackgroundPrimary"] = "backgroundPrimary";
|
|
186
|
+
ValidSemanticColors["BackgroundSecondary"] = "backgroundSecondary";
|
|
187
|
+
ValidSemanticColors["BackgroundSuccess"] = "backgroundSuccess";
|
|
188
|
+
ValidSemanticColors["BackgroundWarning"] = "backgroundWarning";
|
|
189
|
+
ValidSemanticColors["Border"] = "border";
|
|
190
|
+
ValidSemanticColors["BorderAccessible"] = "borderAccessible";
|
|
191
|
+
ValidSemanticColors["BorderDanger"] = "borderDanger";
|
|
192
|
+
ValidSemanticColors["BorderWarning"] = "borderWarning";
|
|
193
|
+
ValidSemanticColors["CodeBackground"] = "codeBackground";
|
|
194
|
+
ValidSemanticColors["OverlayOverlay"] = "overlayOverlay";
|
|
195
|
+
ValidSemanticColors["Skeleton"] = "skeleton";
|
|
196
|
+
ValidSemanticColors["TableBackgroundSelectedDefault"] = "tableBackgroundSelectedDefault";
|
|
197
|
+
ValidSemanticColors["TableBackgroundSelectedHover"] = "tableBackgroundSelectedHover";
|
|
198
|
+
ValidSemanticColors["TableBackgroundUnselectedDefault"] = "tableBackgroundUnselectedDefault";
|
|
199
|
+
ValidSemanticColors["TableBackgroundUnselectedHover"] = "tableBackgroundUnselectedHover";
|
|
200
|
+
ValidSemanticColors["TagBrown"] = "tagBrown";
|
|
201
|
+
ValidSemanticColors["TagCharcoal"] = "tagCharcoal";
|
|
202
|
+
ValidSemanticColors["TagCoral"] = "tagCoral";
|
|
203
|
+
ValidSemanticColors["TagDefault"] = "tagDefault";
|
|
204
|
+
ValidSemanticColors["TagHover"] = "tagHover";
|
|
205
|
+
ValidSemanticColors["TagIconDefault"] = "tagIconDefault";
|
|
206
|
+
ValidSemanticColors["TagIconHover"] = "tagIconHover";
|
|
207
|
+
ValidSemanticColors["TagIconPress"] = "tagIconPress";
|
|
208
|
+
ValidSemanticColors["TagIndigo"] = "tagIndigo";
|
|
209
|
+
ValidSemanticColors["TagInverse"] = "tagInverse";
|
|
210
|
+
ValidSemanticColors["TagLemon"] = "tagLemon";
|
|
211
|
+
ValidSemanticColors["TagLime"] = "tagLime";
|
|
212
|
+
ValidSemanticColors["TagPink"] = "tagPink";
|
|
213
|
+
ValidSemanticColors["TagPress"] = "tagPress";
|
|
214
|
+
ValidSemanticColors["TagPurple"] = "tagPurple";
|
|
215
|
+
ValidSemanticColors["TagTeal"] = "tagTeal";
|
|
216
|
+
ValidSemanticColors["TagText"] = "tagText";
|
|
217
|
+
ValidSemanticColors["TagTurquoise"] = "tagTurquoise";
|
|
218
|
+
ValidSemanticColors["TextPlaceholder"] = "textPlaceholder";
|
|
219
|
+
ValidSemanticColors["TextPrimary"] = "textPrimary";
|
|
220
|
+
ValidSemanticColors["TextSecondary"] = "textSecondary";
|
|
221
|
+
ValidSemanticColors["TextValidationDanger"] = "textValidationDanger";
|
|
222
|
+
ValidSemanticColors["TextValidationSuccess"] = "textValidationSuccess";
|
|
223
|
+
ValidSemanticColors["TextValidationWarning"] = "textValidationWarning";
|
|
224
|
+
ValidSemanticColors["TooltipBackgroundTooltip"] = "tooltipBackgroundTooltip";
|
|
225
|
+
return ValidSemanticColors;
|
|
226
|
+
}({});
|
|
227
|
+
|
|
35
228
|
const ColorVars = {
|
|
36
|
-
primary:
|
|
37
|
-
secondary:
|
|
38
|
-
info:
|
|
39
|
-
error:
|
|
40
|
-
success:
|
|
41
|
-
warning:
|
|
229
|
+
primary: ValidSemanticColors.TextPrimary,
|
|
230
|
+
secondary: ValidSemanticColors.TextSecondary,
|
|
231
|
+
info: ValidSemanticColors.TextSecondary,
|
|
232
|
+
error: ValidSemanticColors.TextValidationDanger,
|
|
233
|
+
success: ValidSemanticColors.TextValidationSuccess,
|
|
234
|
+
warning: ValidSemanticColors.TextValidationWarning
|
|
42
235
|
};
|
|
43
236
|
|
|
44
237
|
/**
|
|
@@ -105,6 +298,106 @@ function getValidationStateColor(theme, validationState) {
|
|
|
105
298
|
return undefined;
|
|
106
299
|
}
|
|
107
300
|
}
|
|
301
|
+
function getDarkModePortalStyles(theme) {
|
|
302
|
+
if (!theme || !theme.isDarkMode) {
|
|
303
|
+
return {};
|
|
304
|
+
}
|
|
305
|
+
return {
|
|
306
|
+
border: `1px solid ${theme.colors.borderDecorative}`,
|
|
307
|
+
boxShadow: 'none'
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
const shadowCoverTop = bgColor => `linear-gradient(${bgColor} 30%, rgba(0, 0, 0, 0)) center top`;
|
|
311
|
+
const shadowCoverBot = bgColor => `linear-gradient(rgba(0, 0, 0, 0), ${bgColor} 70%) center bottom`;
|
|
312
|
+
const shadowCoverLeft = bgColor => `linear-gradient(to left, rgba(0, 0, 0, 0), ${bgColor} 30%) left center`;
|
|
313
|
+
const shadowCoverRight = bgColor => `linear-gradient(to left, ${bgColor} 70%, rgba(0, 0, 0, 0)) right center`;
|
|
314
|
+
const shadowTop = shadowRgb => `radial-gradient(
|
|
315
|
+
farthest-side at 50% 0,
|
|
316
|
+
rgba(${shadowRgb}, 0.2),
|
|
317
|
+
rgba(${shadowRgb}, 0)
|
|
318
|
+
) center top`;
|
|
319
|
+
const shadowBot = shadowRgb => `radial-gradient(
|
|
320
|
+
farthest-side at 50% 100%,
|
|
321
|
+
rgba(${shadowRgb}, 0.2),
|
|
322
|
+
rgba(${shadowRgb}, 0)
|
|
323
|
+
) center bottom`;
|
|
324
|
+
const shadowLeft = shadowRgb => `radial-gradient(
|
|
325
|
+
farthest-side at 0 50%,
|
|
326
|
+
rgba(${shadowRgb}, 0.2),
|
|
327
|
+
rgba(${shadowRgb}, 0)
|
|
328
|
+
) left center`;
|
|
329
|
+
const shadowRight = shadowRgb => `radial-gradient(
|
|
330
|
+
farthest-side at 100% 50%,
|
|
331
|
+
rgba(${shadowRgb}, 0.2),
|
|
332
|
+
rgba(${shadowRgb}, 0)
|
|
333
|
+
) right center`;
|
|
334
|
+
const shadowCoverBackgroundSizeVertical = '100% 40px';
|
|
335
|
+
const shadowCoverBackgroundSizeHorizontal = '40px 100%';
|
|
336
|
+
const shadowBackgroundSizeVertical = '100% 14px';
|
|
337
|
+
const shadowBackgroundSizeHorizontal = '14px 100%';
|
|
338
|
+
const getShadowScrollStylesMemoized = _memoize(function getShadowScrollStylesMemoized(theme, backgroundColor) {
|
|
339
|
+
let orientation = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'vertical';
|
|
340
|
+
const bgColor = backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : theme.colors.backgroundPrimary;
|
|
341
|
+
const shadowColor = theme.isDarkMode ? shadowDarkRgb : shadowLightRgb;
|
|
342
|
+
if (orientation === 'horizontal') {
|
|
343
|
+
return {
|
|
344
|
+
background: `
|
|
345
|
+
${shadowCoverLeft(bgColor)},
|
|
346
|
+
${shadowCoverRight(bgColor)},
|
|
347
|
+
${shadowLeft(shadowColor)},
|
|
348
|
+
${shadowRight(shadowColor)}`,
|
|
349
|
+
backgroundRepeat: 'no-repeat',
|
|
350
|
+
backgroundSize: `
|
|
351
|
+
${shadowCoverBackgroundSizeHorizontal},
|
|
352
|
+
${shadowCoverBackgroundSizeHorizontal},
|
|
353
|
+
${shadowBackgroundSizeHorizontal},
|
|
354
|
+
${shadowBackgroundSizeHorizontal}`,
|
|
355
|
+
backgroundAttachment: 'local, local, scroll, scroll'
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
return {
|
|
359
|
+
background: `
|
|
360
|
+
${shadowCoverTop(bgColor)},
|
|
361
|
+
${shadowCoverBot(bgColor)},
|
|
362
|
+
${shadowTop(shadowColor)},
|
|
363
|
+
${shadowBot(shadowColor)}`,
|
|
364
|
+
backgroundRepeat: 'no-repeat',
|
|
365
|
+
backgroundSize: `
|
|
366
|
+
${shadowCoverBackgroundSizeVertical},
|
|
367
|
+
${shadowCoverBackgroundSizeVertical},
|
|
368
|
+
${shadowBackgroundSizeVertical},
|
|
369
|
+
${shadowBackgroundSizeVertical}`,
|
|
370
|
+
backgroundAttachment: 'local, local, scroll, scroll'
|
|
371
|
+
};
|
|
372
|
+
}, (theme, backgroundColor, orientation) => {
|
|
373
|
+
return `${theme.isDarkMode}-${backgroundColor}-${orientation}`;
|
|
374
|
+
});
|
|
375
|
+
const getShadowScrollStyles = function getShadowScrollStyles(theme) {
|
|
376
|
+
let {
|
|
377
|
+
backgroundColor,
|
|
378
|
+
orientation
|
|
379
|
+
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
380
|
+
return getShadowScrollStylesMemoized(theme, backgroundColor, orientation);
|
|
381
|
+
};
|
|
382
|
+
const getBottomOnlyShadowScrollStylesMemoized = _memoize(function getBottomOnlyShadowScrollStylesMemoized(theme, backgroundColor) {
|
|
383
|
+
const bgColor = backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : theme.colors.backgroundPrimary;
|
|
384
|
+
return {
|
|
385
|
+
background: `
|
|
386
|
+
${shadowCoverBot(bgColor)},
|
|
387
|
+
${shadowBot(theme.isDarkMode ? shadowDarkRgb : shadowLightRgb)}`,
|
|
388
|
+
backgroundRepeat: 'no-repeat',
|
|
389
|
+
backgroundSize: `
|
|
390
|
+
${shadowCoverBackgroundSizeVertical},
|
|
391
|
+
${shadowBackgroundSizeVertical}`,
|
|
392
|
+
backgroundAttachment: 'local, scroll'
|
|
393
|
+
};
|
|
394
|
+
});
|
|
395
|
+
const getBottomOnlyShadowScrollStyles = function getBottomOnlyShadowScrollStyles(theme) {
|
|
396
|
+
let {
|
|
397
|
+
backgroundColor
|
|
398
|
+
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
399
|
+
return getBottomOnlyShadowScrollStylesMemoized(theme, backgroundColor);
|
|
400
|
+
};
|
|
108
401
|
|
|
109
402
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
110
403
|
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
@@ -176,35 +469,19 @@ const responsive = {
|
|
|
176
469
|
};
|
|
177
470
|
var responsive$1 = responsive;
|
|
178
471
|
|
|
179
|
-
|
|
180
|
-
* Provides access to http://go/safex flags from the frontend. Note that this is a temporary
|
|
181
|
-
* workaround until direct `safex` imports are available.
|
|
182
|
-
* @param flag The name of the flag to check
|
|
183
|
-
* @param defaultValue The default value to return if the flag is not set
|
|
184
|
-
* @returns
|
|
185
|
-
*/
|
|
186
|
-
const safex = (flag, defaultValue) => {
|
|
187
|
-
// Catching errors here, because we don't have type-safety to ensure
|
|
188
|
-
// that `__debug__safex`'s API hasn't changed.
|
|
189
|
-
try {
|
|
190
|
-
const globalSafex = window.__debug__safex;
|
|
191
|
-
return globalSafex ? globalSafex(flag, defaultValue) : defaultValue;
|
|
192
|
-
} catch (e) {
|
|
193
|
-
return defaultValue;
|
|
194
|
-
}
|
|
195
|
-
};
|
|
472
|
+
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
196
473
|
|
|
197
|
-
|
|
198
|
-
const colorPalettePrimary = {
|
|
199
|
-
primary: '#2272B4',
|
|
474
|
+
const primitiveColors = {
|
|
200
475
|
blue100: '#F0F8FF',
|
|
201
476
|
blue200: '#D7EDFE',
|
|
202
477
|
blue300: '#BAE1FC',
|
|
203
|
-
blue400: '#
|
|
478
|
+
blue400: '#8ACAFF',
|
|
204
479
|
blue500: '#4299E0',
|
|
205
480
|
blue600: '#2272B4',
|
|
206
481
|
blue700: '#0E538B',
|
|
207
482
|
blue800: '#04355D',
|
|
483
|
+
brown: '#A6630C',
|
|
484
|
+
coral: '#C83243',
|
|
208
485
|
green100: '#F3FCF6',
|
|
209
486
|
green200: '#D4F7DF',
|
|
210
487
|
green300: '#B1ECC5',
|
|
@@ -213,15 +490,22 @@ const colorPalettePrimary = {
|
|
|
213
490
|
green600: '#277C43',
|
|
214
491
|
green700: '#115026',
|
|
215
492
|
green800: '#093919',
|
|
216
|
-
|
|
217
|
-
grey100: '#
|
|
218
|
-
grey200: '#
|
|
219
|
-
grey300: '#
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
493
|
+
grey050: '#F2F8F8',
|
|
494
|
+
grey100: '#E4ECF1',
|
|
495
|
+
grey200: '#CDDAE5',
|
|
496
|
+
grey300: '#BDCDDB',
|
|
497
|
+
grey350: '#90A4B5',
|
|
498
|
+
grey400: '#8196A7',
|
|
499
|
+
grey500: '#5D7283',
|
|
500
|
+
grey600: '#44535F',
|
|
501
|
+
grey650: '#354450',
|
|
502
|
+
grey700: '#1F272D',
|
|
503
|
+
grey800: '#11171C',
|
|
504
|
+
indigo: '#434A93',
|
|
505
|
+
lemon: '#FACB66',
|
|
506
|
+
lime: '#308613',
|
|
507
|
+
pink: '#B45091',
|
|
508
|
+
purple: '#8A63BF',
|
|
225
509
|
red100: '#FFF5F7',
|
|
226
510
|
red200: '#FDE2E8',
|
|
227
511
|
red300: '#FBD0D8',
|
|
@@ -230,6 +514,9 @@ const colorPalettePrimary = {
|
|
|
230
514
|
red600: '#C82D4C',
|
|
231
515
|
red700: '#9E102C',
|
|
232
516
|
red800: '#630316',
|
|
517
|
+
teal: '#04867D',
|
|
518
|
+
turquoise: '#137DAE',
|
|
519
|
+
white: '#FFFFFF',
|
|
233
520
|
yellow100: '#FFF9EB',
|
|
234
521
|
yellow200: '#FCEACA',
|
|
235
522
|
yellow300: '#F8D4A5',
|
|
@@ -239,360 +526,298 @@ const colorPalettePrimary = {
|
|
|
239
526
|
yellow700: '#93320B',
|
|
240
527
|
yellow800: '#5F1B02'
|
|
241
528
|
};
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
grey300: '#D0D0D0',
|
|
246
|
-
grey400: '#AFAFAF',
|
|
247
|
-
grey500: '#969696',
|
|
248
|
-
grey600: '#727272',
|
|
249
|
-
grey700: '#403F3F',
|
|
250
|
-
grey800: '#181818'
|
|
251
|
-
};
|
|
252
|
-
const colorPaletteSecondary = {
|
|
253
|
-
brown: '#A6630C',
|
|
254
|
-
coral: '#C83243',
|
|
255
|
-
charcoal: colorPalettePrimary.grey600,
|
|
256
|
-
indigo: '#434A93',
|
|
257
|
-
lemon: '#FACB66',
|
|
258
|
-
lime: '#308613',
|
|
259
|
-
pink: '#B45091',
|
|
260
|
-
purple: '#8A63BF',
|
|
261
|
-
teal: '#04867D',
|
|
262
|
-
turquoise: '#157CBC'
|
|
263
|
-
};
|
|
264
|
-
const lightColorList = {
|
|
265
|
-
backgroundPrimary: colorPalettePrimary.white,
|
|
266
|
-
actionDangerPrimaryBackgroundDefault: colorPalettePrimary.red600,
|
|
267
|
-
actionDangerPrimaryBackgroundHover: colorPalettePrimary.red700,
|
|
268
|
-
actionDangerPrimaryBackgroundPress: colorPalettePrimary.red800,
|
|
269
|
-
actionDangerDefaultBackgroundDefault: chroma(colorPalettePrimary.red600).alpha(0).hex(),
|
|
270
|
-
actionDangerDefaultBackgroundHover: chroma(colorPalettePrimary.red600).alpha(0.08).hex(),
|
|
271
|
-
actionDangerDefaultBackgroundPress: chroma(colorPalettePrimary.red600).alpha(0.16).hex(),
|
|
272
|
-
actionDangerDefaultBorderDefault: colorPalettePrimary.red600,
|
|
273
|
-
actionDangerDefaultBorderHover: colorPalettePrimary.red700,
|
|
274
|
-
actionDangerDefaultBorderPress: colorPalettePrimary.red800,
|
|
275
|
-
actionDangerDefaultTextDefault: colorPalettePrimary.red600,
|
|
276
|
-
actionDangerDefaultTextHover: colorPalettePrimary.red700,
|
|
277
|
-
actionDangerDefaultTextPress: colorPalettePrimary.red800,
|
|
278
|
-
actionDefaultBackgroundDefault: chroma(colorPalettePrimary.blue800).alpha(0).hex(),
|
|
279
|
-
actionDefaultBackgroundHover: chroma(colorPalettePrimary.blue600).alpha(0.08).hex(),
|
|
280
|
-
actionDefaultBackgroundPress: chroma(colorPalettePrimary.blue600).alpha(0.16).hex(),
|
|
281
|
-
actionDefaultBorderDefault: colorPalettePrimary.grey300,
|
|
282
|
-
actionDefaultBorderFocus: colorPalettePrimary.blue600,
|
|
283
|
-
actionDefaultBorderHover: colorPalettePrimary.blue700,
|
|
284
|
-
actionDefaultBorderPress: colorPalettePrimary.blue800,
|
|
285
|
-
actionDefaultTextDefault: colorPalettePrimary.grey800,
|
|
286
|
-
actionDefaultTextHover: colorPalettePrimary.blue700,
|
|
287
|
-
actionDefaultTextPress: colorPalettePrimary.blue800,
|
|
288
|
-
actionDisabledBackground: colorPalettePrimary.grey200,
|
|
289
|
-
actionDisabledText: colorPalettePrimary.grey400,
|
|
290
|
-
actionPrimaryBackgroundDefault: colorPalettePrimary.blue600,
|
|
291
|
-
actionPrimaryBackgroundHover: colorPalettePrimary.blue700,
|
|
292
|
-
actionPrimaryBackgroundPress: colorPalettePrimary.blue800,
|
|
293
|
-
actionPrimaryTextDefault: colorPalettePrimary.white,
|
|
294
|
-
actionPrimaryTextHover: colorPalettePrimary.white,
|
|
295
|
-
actionPrimaryTextPress: colorPalettePrimary.white,
|
|
296
|
-
actionTertiaryBackgroundDefault: chroma(colorPalettePrimary.blue600).alpha(0).hex(),
|
|
297
|
-
actionTertiaryBackgroundHover: chroma(colorPalettePrimary.blue600).alpha(0.08).hex(),
|
|
298
|
-
actionTertiaryBackgroundPress: chroma(colorPalettePrimary.blue600).alpha(0.16).hex(),
|
|
299
|
-
actionTertiaryTextDefault: colorPalettePrimary.blue600,
|
|
300
|
-
actionTertiaryTextHover: colorPalettePrimary.blue700,
|
|
301
|
-
actionTertiaryTextPress: colorPalettePrimary.blue800,
|
|
302
|
-
backgroundDanger: chroma(colorPalettePrimary.red100).alpha(0.08).hex(),
|
|
303
|
-
backgroundSecondary: colorPalettePrimary.grey100,
|
|
304
|
-
backgroundWarning: chroma(colorPalettePrimary.yellow100).alpha(0.08).hex(),
|
|
305
|
-
backgroundValidationDanger: colorPalettePrimary.red100,
|
|
306
|
-
backgroundValidationSuccess: colorPalettePrimary.blue100,
|
|
307
|
-
backgroundValidationWarning: colorPalettePrimary.yellow100,
|
|
308
|
-
border: colorPalettePrimary.grey300,
|
|
309
|
-
borderDecorative: colorPalettePrimary.grey200,
|
|
310
|
-
borderValidationDanger: colorPalettePrimary.red300,
|
|
311
|
-
borderValidationWarning: colorPalettePrimary.yellow300,
|
|
312
|
-
textPrimary: colorPalettePrimary.grey800,
|
|
313
|
-
textSecondary: colorPalettePrimary.grey600,
|
|
314
|
-
textPlaceholder: colorPalettePrimary.grey400,
|
|
315
|
-
textValidationDanger: colorPalettePrimary.red600,
|
|
316
|
-
textValidationSuccess: colorPalettePrimary.green600,
|
|
317
|
-
textValidationWarning: colorPalettePrimary.yellow600,
|
|
318
|
-
textValidationInfo: colorPalettePrimary.grey600,
|
|
319
|
-
overlayOverlay: chroma(colorPalettePrimary.grey100).alpha(0.72).hex(),
|
|
320
|
-
// Tags
|
|
321
|
-
tagDefault: chroma(colorPalettePrimary.grey600).alpha(0.08).hex(),
|
|
322
|
-
tagBrown: colorPaletteSecondary.brown,
|
|
323
|
-
tagCoral: colorPaletteSecondary.coral,
|
|
324
|
-
tagCharcoal: colorPaletteSecondary.charcoal,
|
|
325
|
-
tagIndigo: colorPaletteSecondary.indigo,
|
|
326
|
-
tagLemon: colorPaletteSecondary.lemon,
|
|
327
|
-
tagLime: colorPaletteSecondary.lime,
|
|
328
|
-
tagPink: colorPaletteSecondary.pink,
|
|
329
|
-
tagPurple: colorPaletteSecondary.purple,
|
|
330
|
-
tagTeal: colorPaletteSecondary.teal,
|
|
331
|
-
tagTurquoise: colorPaletteSecondary.turquoise,
|
|
332
|
-
tagText: colorPalettePrimary.white,
|
|
333
|
-
tagHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
|
|
334
|
-
tagPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
|
|
335
|
-
tagIconHover: chroma(colorPalettePrimary.white).alpha(0.8).hex(),
|
|
336
|
-
tagIconPress: chroma(colorPalettePrimary.white).alpha(0.76).hex(),
|
|
337
|
-
// Typography
|
|
338
|
-
typographyCodeBg: chroma(colorPalettePrimary.grey600).alpha(0.08).hex(),
|
|
339
|
-
// Table
|
|
340
|
-
tableRowHover: chroma(colorPalettePrimary.grey600).alpha(0.04).hex(),
|
|
341
|
-
tooltipBackgroundTooltip: colorPalettePrimary.grey800
|
|
342
|
-
};
|
|
529
|
+
|
|
530
|
+
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
531
|
+
|
|
343
532
|
const darkColorList = {
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
533
|
+
actionDangerDefaultBackgroundDefault: 'rgba(247, 146, 166, 0.0000)',
|
|
534
|
+
actionDangerDefaultBackgroundHover: 'rgba(247, 146, 166, 0.0800)',
|
|
535
|
+
actionDangerDefaultBackgroundPress: 'rgba(247, 146, 166, 0.1600)',
|
|
536
|
+
actionDangerDefaultBorderDefault: primitiveColors.red500,
|
|
537
|
+
actionDangerDefaultBorderHover: primitiveColors.red400,
|
|
538
|
+
actionDangerDefaultBorderPress: primitiveColors.red300,
|
|
539
|
+
actionDangerDefaultTextDefault: primitiveColors.red500,
|
|
540
|
+
actionDangerDefaultTextHover: primitiveColors.red400,
|
|
541
|
+
actionDangerDefaultTextPress: primitiveColors.red300,
|
|
542
|
+
actionDangerPrimaryBackgroundDefault: primitiveColors.red500,
|
|
543
|
+
actionDangerPrimaryBackgroundHover: primitiveColors.red400,
|
|
544
|
+
actionDangerPrimaryBackgroundPress: primitiveColors.red300,
|
|
545
|
+
actionDangerPrimaryText: primitiveColors.grey800,
|
|
546
|
+
actionDefaultBackgroundDefault: 'rgba(138, 202, 255, 0.0000)',
|
|
547
|
+
actionDefaultBackgroundHover: 'rgba(138, 202, 255, 0.0800)',
|
|
548
|
+
actionDefaultBackgroundPress: 'rgba(138, 202, 255, 0.1600)',
|
|
549
|
+
actionDefaultBorderDefault: primitiveColors.grey650,
|
|
550
|
+
actionDefaultBorderFocus: primitiveColors.blue400,
|
|
551
|
+
actionDefaultBorderHover: primitiveColors.blue400,
|
|
552
|
+
actionDefaultBorderPress: primitiveColors.blue300,
|
|
553
|
+
actionDefaultIconDefault: primitiveColors.grey350,
|
|
554
|
+
actionDefaultIconHover: primitiveColors.blue400,
|
|
555
|
+
actionDefaultIconPress: primitiveColors.blue300,
|
|
556
|
+
actionDefaultTextDefault: primitiveColors.grey100,
|
|
557
|
+
actionDefaultTextHover: primitiveColors.blue400,
|
|
558
|
+
actionDefaultTextPress: primitiveColors.blue300,
|
|
559
|
+
actionDisabledBackground: primitiveColors.grey700,
|
|
560
|
+
actionDisabledBorder: primitiveColors.grey650,
|
|
561
|
+
actionDisabledText: primitiveColors.grey600,
|
|
562
|
+
actionIconBackgroundDefault: 'rgba(255, 255, 255, 0.0000)',
|
|
563
|
+
actionIconBackgroundHover: 'rgba(255, 255, 255, 0.0800)',
|
|
564
|
+
actionIconBackgroundPress: 'rgba(255, 255, 255, 0.1600)',
|
|
565
|
+
actionIconIconDefault: primitiveColors.grey350,
|
|
566
|
+
actionIconIconHover: primitiveColors.grey300,
|
|
567
|
+
actionIconIconPress: primitiveColors.grey200,
|
|
568
|
+
actionLinkDefault: primitiveColors.blue500,
|
|
569
|
+
actionLinkHover: primitiveColors.blue400,
|
|
570
|
+
actionLinkPress: primitiveColors.blue300,
|
|
571
|
+
actionPrimaryBackgroundDefault: primitiveColors.blue500,
|
|
572
|
+
actionPrimaryBackgroundHover: primitiveColors.blue400,
|
|
573
|
+
actionPrimaryBackgroundPress: primitiveColors.blue300,
|
|
574
|
+
actionPrimaryIcon: primitiveColors.grey800,
|
|
575
|
+
actionPrimaryTextDefault: primitiveColors.grey800,
|
|
576
|
+
actionPrimaryTextHover: primitiveColors.grey800,
|
|
577
|
+
actionPrimaryTextPress: primitiveColors.grey800,
|
|
578
|
+
actionTertiaryBackgroundDefault: 'rgba(143, 205, 255, 0.0000)',
|
|
579
|
+
actionTertiaryBackgroundHover: 'rgba(143, 205, 255, 0.0800)',
|
|
580
|
+
actionTertiaryBackgroundPress: 'rgba(143, 205, 255, 0.1600)',
|
|
581
|
+
actionTertiaryIconDefault: primitiveColors.blue500,
|
|
582
|
+
actionTertiaryIconHover: primitiveColors.blue400,
|
|
583
|
+
actionTertiaryIconPress: primitiveColors.blue300,
|
|
584
|
+
actionTertiaryTextDefault: primitiveColors.blue500,
|
|
585
|
+
actionTertiaryTextHover: primitiveColors.blue400,
|
|
586
|
+
actionTertiaryTextPress: primitiveColors.blue300,
|
|
587
|
+
backgroundDanger: 'rgba(200, 45, 76, 0.1600)',
|
|
588
|
+
backgroundInfo: 'rgba(68, 83, 95, 0.1600)',
|
|
589
|
+
backgroundPrimary: primitiveColors.grey800,
|
|
590
|
+
backgroundSecondary: primitiveColors.grey700,
|
|
591
|
+
backgroundSuccess: 'rgba(39, 124, 67, 0.1600)',
|
|
592
|
+
backgroundWarning: 'rgba(190, 80, 30, 0.1600)',
|
|
593
|
+
border: primitiveColors.grey650,
|
|
594
|
+
borderAccessible: primitiveColors.grey300,
|
|
595
|
+
borderDanger: primitiveColors.red500,
|
|
596
|
+
borderWarning: primitiveColors.yellow500,
|
|
597
|
+
codeBackground: primitiveColors.grey700,
|
|
598
|
+
overlayOverlay: 'rgba(31, 38, 45, 0.7200)',
|
|
599
|
+
skeleton: 'rgba(228, 236, 241, 0.1000)',
|
|
600
|
+
tableBackgroundSelectedDefault: 'rgba(189, 205, 219, 0.0800)',
|
|
601
|
+
tableBackgroundSelectedHover: 'rgba(189, 205, 219, 0.1200)',
|
|
602
|
+
tableBackgroundUnselectedDefault: primitiveColors.grey800,
|
|
603
|
+
tableBackgroundUnselectedHover: 'rgba(189, 205, 219, 0.0400)',
|
|
604
|
+
tagBrown: 'rgba(166, 99, 12, 0.8600)',
|
|
605
|
+
tagCharcoal: 'rgba(68, 83, 95, 0.8600)',
|
|
606
|
+
tagCoral: 'rgba(200, 50, 67, 0.8600)',
|
|
607
|
+
tagDefault: primitiveColors.grey700,
|
|
608
|
+
tagHover: 'rgba(138, 202, 255, 0.0800)',
|
|
609
|
+
tagIconDefault: primitiveColors.grey350,
|
|
610
|
+
tagIconHover: primitiveColors.grey350,
|
|
611
|
+
tagIconPress: primitiveColors.grey350,
|
|
612
|
+
tagIndigo: 'rgba(67, 74, 147, 0.8600)',
|
|
613
|
+
tagInverse: primitiveColors.grey100,
|
|
614
|
+
tagLemon: 'rgba(250, 203, 102, 0.8600)',
|
|
615
|
+
tagLime: 'rgba(48, 134, 19, 0.8600)',
|
|
616
|
+
tagPink: 'rgba(180, 80, 145, 0.8600)',
|
|
617
|
+
tagPress: 'rgba(138, 202, 255, 0.1600)',
|
|
618
|
+
tagPurple: 'rgba(138, 99, 191, 0.8600)',
|
|
619
|
+
tagTeal: 'rgba(4, 134, 125, 0.8600)',
|
|
620
|
+
tagText: primitiveColors.grey100,
|
|
621
|
+
tagTurquoise: 'rgba(19, 125, 174, 0.8600)',
|
|
622
|
+
textPlaceholder: primitiveColors.grey650,
|
|
623
|
+
textPrimary: primitiveColors.grey100,
|
|
624
|
+
textSecondary: primitiveColors.grey350,
|
|
625
|
+
textValidationDanger: primitiveColors.red500,
|
|
626
|
+
textValidationSuccess: primitiveColors.green500,
|
|
627
|
+
textValidationWarning: primitiveColors.yellow500,
|
|
628
|
+
tooltipBackgroundTooltip: primitiveColors.grey300
|
|
425
629
|
};
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
630
|
+
|
|
631
|
+
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
632
|
+
|
|
633
|
+
const lightColorList = {
|
|
634
|
+
actionDangerDefaultBackgroundDefault: 'rgba(200, 45, 76, 0.0000)',
|
|
635
|
+
actionDangerDefaultBackgroundHover: 'rgba(200, 45, 76, 0.0800)',
|
|
636
|
+
actionDangerDefaultBackgroundPress: 'rgba(200, 45, 76, 0.1600)',
|
|
637
|
+
actionDangerDefaultBorderDefault: primitiveColors.red600,
|
|
638
|
+
actionDangerDefaultBorderHover: primitiveColors.red700,
|
|
639
|
+
actionDangerDefaultBorderPress: primitiveColors.red800,
|
|
640
|
+
actionDangerDefaultTextDefault: primitiveColors.red600,
|
|
641
|
+
actionDangerDefaultTextHover: primitiveColors.red700,
|
|
642
|
+
actionDangerDefaultTextPress: primitiveColors.red800,
|
|
643
|
+
actionDangerPrimaryBackgroundDefault: primitiveColors.red600,
|
|
644
|
+
actionDangerPrimaryBackgroundHover: primitiveColors.red700,
|
|
645
|
+
actionDangerPrimaryBackgroundPress: primitiveColors.red800,
|
|
646
|
+
actionDangerPrimaryText: primitiveColors.white,
|
|
647
|
+
actionDefaultBackgroundDefault: 'rgba(34, 114, 180, 0.0000)',
|
|
648
|
+
actionDefaultBackgroundHover: 'rgba(34, 114, 180, 0.0800)',
|
|
649
|
+
actionDefaultBackgroundPress: 'rgba(34, 114, 180, 0.1600)',
|
|
650
|
+
actionDefaultBorderDefault: primitiveColors.grey300,
|
|
651
|
+
actionDefaultBorderFocus: primitiveColors.blue700,
|
|
652
|
+
actionDefaultBorderHover: primitiveColors.blue600,
|
|
653
|
+
actionDefaultBorderPress: primitiveColors.blue800,
|
|
654
|
+
actionDefaultIconDefault: primitiveColors.grey600,
|
|
655
|
+
actionDefaultIconHover: primitiveColors.blue700,
|
|
656
|
+
actionDefaultIconPress: primitiveColors.blue800,
|
|
657
|
+
actionDefaultTextDefault: primitiveColors.grey800,
|
|
658
|
+
actionDefaultTextHover: primitiveColors.blue700,
|
|
659
|
+
actionDefaultTextPress: primitiveColors.blue800,
|
|
660
|
+
actionDisabledBackground: primitiveColors.grey050,
|
|
661
|
+
actionDisabledBorder: primitiveColors.grey100,
|
|
662
|
+
actionDisabledText: primitiveColors.grey300,
|
|
663
|
+
actionIconBackgroundDefault: 'rgba(34, 114, 180, 0.0000)',
|
|
664
|
+
actionIconBackgroundHover: 'rgba(34, 114, 180, 0.0800)',
|
|
665
|
+
actionIconBackgroundPress: 'rgba(34, 114, 180, 0.1600)',
|
|
666
|
+
actionIconIconDefault: primitiveColors.grey600,
|
|
667
|
+
actionIconIconHover: primitiveColors.blue700,
|
|
668
|
+
actionIconIconPress: primitiveColors.blue800,
|
|
669
|
+
actionLinkDefault: primitiveColors.blue600,
|
|
670
|
+
actionLinkHover: primitiveColors.blue700,
|
|
671
|
+
actionLinkPress: primitiveColors.blue800,
|
|
672
|
+
actionPrimaryBackgroundDefault: primitiveColors.blue600,
|
|
673
|
+
actionPrimaryBackgroundHover: primitiveColors.blue700,
|
|
674
|
+
actionPrimaryBackgroundPress: primitiveColors.blue800,
|
|
675
|
+
actionPrimaryIcon: primitiveColors.white,
|
|
676
|
+
actionPrimaryTextDefault: primitiveColors.white,
|
|
677
|
+
actionPrimaryTextHover: primitiveColors.white,
|
|
678
|
+
actionPrimaryTextPress: primitiveColors.white,
|
|
679
|
+
actionTertiaryBackgroundDefault: 'rgba(34, 114, 180, 0.0000)',
|
|
680
|
+
actionTertiaryBackgroundHover: 'rgba(34, 114, 180, 0.0800)',
|
|
681
|
+
actionTertiaryBackgroundPress: 'rgba(34, 114, 180, 0.1600)',
|
|
682
|
+
actionTertiaryIconDefault: primitiveColors.blue600,
|
|
683
|
+
actionTertiaryIconHover: primitiveColors.blue700,
|
|
684
|
+
actionTertiaryIconPress: primitiveColors.blue800,
|
|
685
|
+
actionTertiaryTextDefault: primitiveColors.blue600,
|
|
686
|
+
actionTertiaryTextHover: primitiveColors.blue700,
|
|
687
|
+
actionTertiaryTextPress: primitiveColors.blue800,
|
|
688
|
+
backgroundDanger: primitiveColors.red100,
|
|
689
|
+
backgroundInfo: primitiveColors.grey100,
|
|
690
|
+
backgroundPrimary: primitiveColors.white,
|
|
691
|
+
backgroundSecondary: primitiveColors.grey050,
|
|
692
|
+
backgroundSuccess: primitiveColors.green100,
|
|
693
|
+
backgroundWarning: primitiveColors.yellow100,
|
|
694
|
+
border: primitiveColors.grey200,
|
|
695
|
+
borderAccessible: primitiveColors.grey500,
|
|
696
|
+
borderDanger: primitiveColors.red300,
|
|
697
|
+
borderWarning: primitiveColors.yellow300,
|
|
698
|
+
codeBackground: 'rgba(68, 83, 95, 0.0800)',
|
|
699
|
+
overlayOverlay: 'rgba(64, 63, 63, 0.7200)',
|
|
700
|
+
skeleton: 'rgba(17, 23, 28, 0.1000)',
|
|
701
|
+
tableBackgroundSelectedDefault: 'rgba(68, 83, 95, 0.0800)',
|
|
702
|
+
tableBackgroundSelectedHover: 'rgba(68, 83, 95, 0.1200)',
|
|
703
|
+
tableBackgroundUnselectedDefault: primitiveColors.white,
|
|
704
|
+
tableBackgroundUnselectedHover: 'rgba(68, 83, 95, 0.0400)',
|
|
705
|
+
tagBrown: primitiveColors.brown,
|
|
706
|
+
tagCharcoal: primitiveColors.grey600,
|
|
707
|
+
tagCoral: primitiveColors.coral,
|
|
708
|
+
tagDefault: primitiveColors.grey050,
|
|
709
|
+
tagHover: 'rgba(34, 114, 180, 0.0800)',
|
|
710
|
+
tagIconDefault: primitiveColors.grey600,
|
|
711
|
+
tagIconHover: primitiveColors.grey600,
|
|
712
|
+
tagIconPress: primitiveColors.grey600,
|
|
713
|
+
tagIndigo: primitiveColors.indigo,
|
|
714
|
+
tagInverse: primitiveColors.grey800,
|
|
715
|
+
tagLemon: primitiveColors.lemon,
|
|
716
|
+
tagLime: primitiveColors.lime,
|
|
717
|
+
tagPink: primitiveColors.pink,
|
|
718
|
+
tagPress: 'rgba(34, 114, 180, 0.1600)',
|
|
719
|
+
tagPurple: primitiveColors.purple,
|
|
720
|
+
tagTeal: primitiveColors.teal,
|
|
721
|
+
tagText: primitiveColors.white,
|
|
722
|
+
tagTurquoise: primitiveColors.turquoise,
|
|
723
|
+
textPlaceholder: primitiveColors.grey400,
|
|
724
|
+
textPrimary: primitiveColors.grey800,
|
|
725
|
+
textSecondary: primitiveColors.grey600,
|
|
726
|
+
textValidationDanger: primitiveColors.red600,
|
|
727
|
+
textValidationSuccess: primitiveColors.green600,
|
|
728
|
+
textValidationWarning: primitiveColors.yellow600,
|
|
729
|
+
tooltipBackgroundTooltip: primitiveColors.grey800
|
|
454
730
|
};
|
|
455
731
|
|
|
732
|
+
// Currently these are the same for both light and dark mode, but we may want to change this in the future.
|
|
733
|
+
const branded = {
|
|
734
|
+
/** For AI components, the top-oriented start color of gradient treatments. */
|
|
735
|
+
aiGradientStart: '#677FFD',
|
|
736
|
+
/** For AI components, the bottom-oriented end color of gradient treatments. */
|
|
737
|
+
aiGradientEnd: '#79BFF1'
|
|
738
|
+
};
|
|
456
739
|
const darkColors = {
|
|
457
740
|
...darkColorList,
|
|
458
|
-
...
|
|
459
|
-
|
|
741
|
+
...primitiveColors,
|
|
742
|
+
branded
|
|
460
743
|
};
|
|
461
744
|
const lightColors = {
|
|
462
745
|
...lightColorList,
|
|
463
|
-
...
|
|
464
|
-
|
|
746
|
+
...primitiveColors,
|
|
747
|
+
branded
|
|
465
748
|
};
|
|
466
749
|
function getSemanticColors(isDarkMode) {
|
|
467
|
-
|
|
468
|
-
const colorList = isDarkMode ? darkColors : lightColors;
|
|
469
|
-
if (enableNewGreys) {
|
|
470
|
-
return {
|
|
471
|
-
...colorList,
|
|
472
|
-
...newGreys,
|
|
473
|
-
...secondaryColorsUsingNewGreys,
|
|
474
|
-
...(isDarkMode ? darkColorsUsingNewGreys : lightColorsUsingNewGreys)
|
|
475
|
-
};
|
|
476
|
-
} else {
|
|
477
|
-
return colorList;
|
|
478
|
-
}
|
|
750
|
+
return isDarkMode ? darkColors : lightColors;
|
|
479
751
|
}
|
|
480
752
|
|
|
481
|
-
//
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
753
|
+
// When deprecating a color, add it to this object with a comment explaining why it's deprecated and a link to a JIRA ticket.
|
|
754
|
+
// Example: `@deprecated This color supports XXXX will be removed in an upcoming release (FEINF-1234).`
|
|
755
|
+
const deprecatedPrimitiveColors = {
|
|
756
|
+
/** @deprecated This was an alias to `primitiveColors.blue600`, please use that instead.
|
|
757
|
+
* If possible, please use an appropriate semantic color, such as `actionPrimaryBackgroundDefault`. */
|
|
758
|
+
primary: primitiveColors.blue600,
|
|
759
|
+
/** @deprecated This was an alias to `primitiveColors.grey600`, please use that instead.
|
|
760
|
+
* If possible, please use an appropriate semantic color, such as `actionPrimaryBackgroundHover`. */
|
|
761
|
+
charcoal: primitiveColors.grey600,
|
|
762
|
+
/** @deprecated This color supports legacy radio styles and will be removed in an upcoming release (FEINF-1674). */
|
|
763
|
+
radioInteractiveAvailable: primitiveColors.blue600,
|
|
764
|
+
/** @deprecated This color supports legacy radio styles and will be removed in an upcoming release (FEINF-1674). */
|
|
488
765
|
radioInteractiveHover: '#186099',
|
|
766
|
+
/** @deprecated This color supports legacy radio styles and will be removed in an upcoming release (FEINF-1674). */
|
|
489
767
|
radioInteractivePress: '#0D4F85',
|
|
768
|
+
/** @deprecated This color supports legacy radio styles and will be removed in an upcoming release (FEINF-1674). */
|
|
490
769
|
radioDisabled: '#A2AEB8',
|
|
770
|
+
/** @deprecated This color supports legacy radio styles and will be removed in an upcoming release (FEINF-1674). */
|
|
491
771
|
radioDefaultBorder: '#64727D',
|
|
772
|
+
/** @deprecated This color supports legacy radio styles and will be removed in an upcoming release (FEINF-1674). */
|
|
492
773
|
radioDefaultBackground: '#FFFFFF',
|
|
774
|
+
/** @deprecated This color supports legacy radio styles and will be removed in an upcoming release (FEINF-1674). */
|
|
493
775
|
radioInteractiveHoverSecondary: 'rgba(34, 115, 181, 0.08)',
|
|
494
|
-
|
|
495
|
-
radioInteractivePressSecondary: 'rgba(34, 115, 181, 0.16)'
|
|
776
|
+
/** @deprecated This color supports legacy radio styles and will be removed in an upcoming release (FEINF-1674). */
|
|
777
|
+
radioInteractivePressSecondary: 'rgba(34, 115, 181, 0.16)'
|
|
778
|
+
};
|
|
779
|
+
const deprecatedSemanticColorsLight = {
|
|
780
|
+
/** @deprecated Use `backgroundDanger` (FEINF-xxxx) */
|
|
781
|
+
backgroundValidationDanger: lightColorList.backgroundDanger,
|
|
782
|
+
/** @deprecated Use `backgroundSuccess` (FEINF-xxxx) */
|
|
783
|
+
backgroundValidationSuccess: lightColorList.backgroundSuccess,
|
|
784
|
+
/** @deprecated Use `backgroundWarning` (FEINF-xxxx) */
|
|
785
|
+
backgroundValidationWarning: lightColorList.backgroundWarning,
|
|
786
|
+
/** @deprecated Use `border` (FEINF-xxxx) */
|
|
787
|
+
borderDecorative: lightColorList.border,
|
|
788
|
+
/** @deprecated Use `borderDanger` (FEINF-xxxx) */
|
|
789
|
+
borderValidationDanger: lightColorList.borderDanger,
|
|
790
|
+
/** @deprecated Use `borderWarning` (FEINF-xxxx) */
|
|
791
|
+
borderValidationWarning: lightColorList.borderWarning,
|
|
792
|
+
/** @deprecated Use `tableBackgroundUnselectedHover` (FEINF-xxxx) */
|
|
793
|
+
tableRowHover: lightColorList.tableBackgroundUnselectedHover,
|
|
794
|
+
/** @deprecated Use `textSecondary` (FEINF-xxxx) */
|
|
795
|
+
textValidationInfo: lightColorList.textSecondary,
|
|
796
|
+
/** @deprecated Use `codeBackground` (FEINF-xxxx) */
|
|
797
|
+
typographyCodeBg: lightColorList.codeBackground
|
|
798
|
+
};
|
|
799
|
+
const deprecatedSemanticColorsDark = {
|
|
800
|
+
backgroundValidationDanger: darkColorList.backgroundDanger,
|
|
801
|
+
backgroundValidationSuccess: darkColorList.backgroundSuccess,
|
|
802
|
+
backgroundValidationWarning: darkColorList.backgroundWarning,
|
|
803
|
+
borderDecorative: darkColorList.border,
|
|
804
|
+
borderValidationDanger: darkColorList.borderDanger,
|
|
805
|
+
borderValidationWarning: darkColorList.borderWarning,
|
|
806
|
+
tableRowHover: darkColorList.tableBackgroundUnselectedHover,
|
|
807
|
+
textValidationInfo: darkColorList.textSecondary,
|
|
808
|
+
typographyCodeBg: darkColorList.codeBackground
|
|
496
809
|
};
|
|
497
810
|
|
|
811
|
+
// A static list of secondary colors; these are used as a limited palette of color options in component props, i.e. `color="lime"`.
|
|
812
|
+
// TODO: We should split primitive colors into primary and secondary colors, and automatically generate this list.
|
|
498
813
|
function getColors(isDarkMode) {
|
|
499
814
|
return {
|
|
500
|
-
...
|
|
815
|
+
...deprecatedPrimitiveColors,
|
|
816
|
+
...(isDarkMode ? deprecatedSemanticColorsDark : deprecatedSemanticColorsLight),
|
|
501
817
|
...getSemanticColors(isDarkMode)
|
|
502
818
|
};
|
|
503
819
|
}
|
|
504
820
|
|
|
505
|
-
// eslint-disable-next-line import/no-anonymous-default-export
|
|
506
|
-
var antdVars = {
|
|
507
|
-
// IMPORTANT: Do not read this directly from components. Use `React.useContext`.
|
|
508
|
-
'ant-prefix': 'du-bois'
|
|
509
|
-
};
|
|
510
|
-
|
|
511
|
-
const DEFAULT_SPACING_UNIT = 8;
|
|
512
|
-
const MODAL_PADDING = 40;
|
|
513
|
-
const spacing = {
|
|
514
|
-
xs: DEFAULT_SPACING_UNIT / 2,
|
|
515
|
-
sm: DEFAULT_SPACING_UNIT,
|
|
516
|
-
md: DEFAULT_SPACING_UNIT * 2,
|
|
517
|
-
lg: DEFAULT_SPACING_UNIT * 3
|
|
518
|
-
};
|
|
519
|
-
|
|
520
|
-
// Less variables that are used by AntD
|
|
521
|
-
({
|
|
522
|
-
defaultPaddingLg: spacing.lg,
|
|
523
|
-
defaultPaddingMd: spacing.md,
|
|
524
|
-
defaultPaddingSm: spacing.sm,
|
|
525
|
-
defaultPaddingXs: spacing.sm,
|
|
526
|
-
defaultPaddingXss: spacing.xs,
|
|
527
|
-
paddingLg: spacing.md,
|
|
528
|
-
// TODO: Check if there is a better alternative with team
|
|
529
|
-
paddingMd: spacing.sm,
|
|
530
|
-
paddingSm: spacing.sm,
|
|
531
|
-
paddingXs: spacing.xs,
|
|
532
|
-
paddingXss: 0,
|
|
533
|
-
marginSm: 12,
|
|
534
|
-
marginLg: spacing.lg,
|
|
535
|
-
// Button
|
|
536
|
-
btnPaddingHorizontalBase: DEFAULT_SPACING_UNIT * 2,
|
|
537
|
-
btnPaddingHorizontalLg: DEFAULT_SPACING_UNIT * 2,
|
|
538
|
-
btnPaddingHorizontalSm: DEFAULT_SPACING_UNIT * 2,
|
|
539
|
-
// Input
|
|
540
|
-
inputPaddingHorizontal: DEFAULT_SPACING_UNIT * 1.5,
|
|
541
|
-
inputPaddingHorizontalBase: DEFAULT_SPACING_UNIT * 1.5,
|
|
542
|
-
inputPaddingHorizontalSm: DEFAULT_SPACING_UNIT * 1.5,
|
|
543
|
-
inputPaddingHorizontalLg: DEFAULT_SPACING_UNIT * 1.5,
|
|
544
|
-
inputPaddingVertical: spacing.xs + 1,
|
|
545
|
-
inputPaddingVerticalBase: spacing.xs + 1,
|
|
546
|
-
inputPaddingVerticalSm: spacing.xs + 1,
|
|
547
|
-
inputPaddingVerticalLg: spacing.xs + 1,
|
|
548
|
-
// Modal
|
|
549
|
-
modalPadding: MODAL_PADDING,
|
|
550
|
-
modalLessPadding: MODAL_PADDING - 20,
|
|
551
|
-
modalHeaderPadding: `${MODAL_PADDING}px ${MODAL_PADDING}px ${MODAL_PADDING - 20}px`,
|
|
552
|
-
modalHeaderCloseSize: MODAL_PADDING * 2 + 22,
|
|
553
|
-
modalHeaderBorderWidth: 0,
|
|
554
|
-
modalBodyPadding: `0 ${MODAL_PADDING}px`,
|
|
555
|
-
modalFooterPaddingVertical: 0,
|
|
556
|
-
modalFooterPaddingHorizontal: 0,
|
|
557
|
-
modalFooterBorderWidth: 0,
|
|
558
|
-
// Switch
|
|
559
|
-
switchPadding: 0,
|
|
560
|
-
switchHeight: 16,
|
|
561
|
-
switchMinWidth: 28,
|
|
562
|
-
switchPinSize: 14
|
|
563
|
-
});
|
|
564
|
-
var spacing$1 = spacing;
|
|
565
|
-
|
|
566
|
-
const heightBase = 40;
|
|
567
|
-
const borderWidth = 1;
|
|
568
|
-
const antdGeneralVariables = {
|
|
569
|
-
classnamePrefix: antdVars['ant-prefix'],
|
|
570
|
-
iconfontCssPrefix: 'anticon',
|
|
571
|
-
borderRadiusBase: 4,
|
|
572
|
-
borderWidth: borderWidth,
|
|
573
|
-
heightSm: 32,
|
|
574
|
-
heightBase: heightBase,
|
|
575
|
-
iconSize: 24,
|
|
576
|
-
iconFontSize: 16,
|
|
577
|
-
buttonHeight: heightBase,
|
|
578
|
-
// Height available within button (for label and icon). Same for middle and small buttons.
|
|
579
|
-
buttonInnerHeight: heightBase - spacing$1.sm * 2 - borderWidth * 2
|
|
580
|
-
};
|
|
581
|
-
const getShadowVariables = isDarkMode => {
|
|
582
|
-
if (isDarkMode) {
|
|
583
|
-
return {
|
|
584
|
-
shadowLow: '0px 4px 16px rgba(0, 0, 0, 0.12)',
|
|
585
|
-
shadowHigh: '0px 8px 24px rgba(0, 0, 0, 0.2);'
|
|
586
|
-
};
|
|
587
|
-
} else {
|
|
588
|
-
return {
|
|
589
|
-
shadowLow: '0px 4px 16px rgba(31, 39, 45, 0.12)',
|
|
590
|
-
shadowHigh: '0px 8px 24px rgba(31, 39, 45, 0.2)'
|
|
591
|
-
};
|
|
592
|
-
}
|
|
593
|
-
};
|
|
594
|
-
var generalVariables = antdGeneralVariables;
|
|
595
|
-
|
|
596
821
|
const FONT_SIZE_BASE = 13;
|
|
597
822
|
|
|
598
823
|
// Less variables that are used by AntD
|
|
@@ -609,6 +834,7 @@ const antdTypography = {
|
|
|
609
834
|
lineHeightLg: '24px',
|
|
610
835
|
lineHeightXl: '28px',
|
|
611
836
|
lineHeightXxl: '40px',
|
|
837
|
+
typographyRegularFontWeight: 400,
|
|
612
838
|
typographyBoldFontWeight: 600
|
|
613
839
|
};
|
|
614
840
|
|
|
@@ -630,7 +856,7 @@ function getTheme(isDarkMode) {
|
|
|
630
856
|
colors: getColors(isDarkMode),
|
|
631
857
|
spacing: spacing$1,
|
|
632
858
|
general: {
|
|
633
|
-
...
|
|
859
|
+
...antdGeneralVariables,
|
|
634
860
|
...getShadowVariables(isDarkMode)
|
|
635
861
|
},
|
|
636
862
|
typography,
|
|
@@ -717,7 +943,6 @@ const DesignSystemThemeProvider = _ref => {
|
|
|
717
943
|
};
|
|
718
944
|
const DesignSystemProvider = _ref2 => {
|
|
719
945
|
let {
|
|
720
|
-
isDarkMode: deprecatedDarkModeProp,
|
|
721
946
|
children,
|
|
722
947
|
enableAnimation = false,
|
|
723
948
|
zIndexBase = 1000,
|
|
@@ -727,9 +952,8 @@ const DesignSystemProvider = _ref2 => {
|
|
|
727
952
|
disableLegacyAntVirtualization = process.env.NODE_ENV === 'test' ? true : undefined
|
|
728
953
|
} = _ref2;
|
|
729
954
|
const {
|
|
730
|
-
isDarkMode
|
|
955
|
+
isDarkMode
|
|
731
956
|
} = useContext(DesignSystemThemeContext);
|
|
732
|
-
const isDarkMode = deprecatedDarkModeProp !== null && deprecatedDarkModeProp !== void 0 ? deprecatedDarkModeProp : contextDarkModeVal;
|
|
733
957
|
const theme = useMemo(() => getTheme(isDarkMode, {
|
|
734
958
|
enableAnimation,
|
|
735
959
|
zIndexBase
|
|
@@ -871,24 +1095,39 @@ function useDesignSystemFlags() {
|
|
|
871
1095
|
return context.flags;
|
|
872
1096
|
}
|
|
873
1097
|
|
|
874
|
-
const
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
}
|
|
879
|
-
|
|
1098
|
+
const uniqueId = () => new Date().getTime() + Array(16).fill('').map(() => parseInt((Math.random() * 10).toString())).join('');
|
|
1099
|
+
function useUniqueId() {
|
|
1100
|
+
let prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
1101
|
+
return useState(() => `${prefix}-${uniqueId()}`)[0];
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
const getIconVariantStyles = (theme, linearGradientId, color) => {
|
|
880
1105
|
switch (color) {
|
|
881
1106
|
case 'success':
|
|
882
|
-
return
|
|
1107
|
+
return {
|
|
1108
|
+
color: theme.colors.textValidationSuccess
|
|
1109
|
+
};
|
|
883
1110
|
case 'warning':
|
|
884
|
-
return
|
|
1111
|
+
return {
|
|
1112
|
+
color: theme.colors.textValidationWarning
|
|
1113
|
+
};
|
|
885
1114
|
case 'danger':
|
|
886
|
-
return
|
|
1115
|
+
return {
|
|
1116
|
+
color: theme.colors.textValidationDanger
|
|
1117
|
+
};
|
|
1118
|
+
case 'ai':
|
|
1119
|
+
return {
|
|
1120
|
+
'svg *': {
|
|
1121
|
+
fill: `url(#${linearGradientId})`
|
|
1122
|
+
}
|
|
1123
|
+
};
|
|
887
1124
|
default:
|
|
888
|
-
return
|
|
1125
|
+
return {
|
|
1126
|
+
color: color
|
|
1127
|
+
};
|
|
889
1128
|
}
|
|
890
1129
|
};
|
|
891
|
-
const Icon = props => {
|
|
1130
|
+
const Icon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
892
1131
|
const {
|
|
893
1132
|
component: Component,
|
|
894
1133
|
dangerouslySetAntdProps,
|
|
@@ -899,6 +1138,7 @@ const Icon = props => {
|
|
|
899
1138
|
const {
|
|
900
1139
|
theme
|
|
901
1140
|
} = useDesignSystemTheme();
|
|
1141
|
+
const linearGradientId = useUniqueId('ai-linear-gradient');
|
|
902
1142
|
const MemoizedComponent = useMemo(() => Component ? _ref => {
|
|
903
1143
|
let {
|
|
904
1144
|
fill,
|
|
@@ -907,26 +1147,50 @@ const Icon = props => {
|
|
|
907
1147
|
return (
|
|
908
1148
|
// We don't rely on top-level fills for our colors. Fills are specified
|
|
909
1149
|
// with "currentColor" on children of the top-most svg.
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
1150
|
+
jsxs(Fragment, {
|
|
1151
|
+
children: [jsx(Component, {
|
|
1152
|
+
fill: "none",
|
|
1153
|
+
...iconProps
|
|
1154
|
+
}), color === 'ai' && jsx("svg", {
|
|
1155
|
+
width: "0",
|
|
1156
|
+
height: "0",
|
|
1157
|
+
viewBox: "0 0 0 0",
|
|
1158
|
+
css: visuallyHidden,
|
|
1159
|
+
children: jsx("defs", {
|
|
1160
|
+
children: jsxs("linearGradient", {
|
|
1161
|
+
id: linearGradientId,
|
|
1162
|
+
x2: "100%",
|
|
1163
|
+
y2: "100%",
|
|
1164
|
+
children: [jsx("stop", {
|
|
1165
|
+
offset: "0%",
|
|
1166
|
+
stopColor: theme.colors.branded.aiGradientStart
|
|
1167
|
+
}), jsx("stop", {
|
|
1168
|
+
offset: "100%",
|
|
1169
|
+
stopColor: theme.colors.branded.aiGradientEnd
|
|
1170
|
+
})]
|
|
1171
|
+
})
|
|
1172
|
+
})
|
|
1173
|
+
})]
|
|
913
1174
|
})
|
|
914
1175
|
);
|
|
915
|
-
} : undefined, [Component]);
|
|
1176
|
+
} : undefined, [Component, color, linearGradientId, theme]);
|
|
916
1177
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
917
1178
|
children: jsx(AntDIcon, {
|
|
1179
|
+
ref: forwardedRef,
|
|
918
1180
|
"aria-hidden": "true",
|
|
919
|
-
css:
|
|
1181
|
+
css: /*#__PURE__*/css({
|
|
1182
|
+
fontSize: theme.general.iconFontSize,
|
|
1183
|
+
...getIconVariantStyles(theme, linearGradientId, color)
|
|
1184
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Icon;"),
|
|
920
1185
|
component: MemoizedComponent,
|
|
921
1186
|
style: {
|
|
922
|
-
color: getIconValidationColor(theme, color),
|
|
923
1187
|
...style
|
|
924
1188
|
},
|
|
925
1189
|
...otherProps,
|
|
926
1190
|
...dangerouslySetAntdProps
|
|
927
1191
|
})
|
|
928
1192
|
});
|
|
929
|
-
};
|
|
1193
|
+
});
|
|
930
1194
|
|
|
931
1195
|
function SvgCheckIcon(props) {
|
|
932
1196
|
return jsx("svg", {
|
|
@@ -944,12 +1208,15 @@ function SvgCheckIcon(props) {
|
|
|
944
1208
|
})
|
|
945
1209
|
});
|
|
946
1210
|
}
|
|
947
|
-
|
|
1211
|
+
const CheckIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
948
1212
|
return jsx(Icon, {
|
|
1213
|
+
ref: forwardedRef,
|
|
949
1214
|
...props,
|
|
950
1215
|
component: SvgCheckIcon
|
|
951
1216
|
});
|
|
952
|
-
}
|
|
1217
|
+
});
|
|
1218
|
+
CheckIcon.displayName = 'CheckIcon';
|
|
1219
|
+
var CheckIcon$1 = CheckIcon;
|
|
953
1220
|
|
|
954
1221
|
function SvgChevronLeftIcon(props) {
|
|
955
1222
|
return jsx("svg", {
|
|
@@ -967,12 +1234,15 @@ function SvgChevronLeftIcon(props) {
|
|
|
967
1234
|
})
|
|
968
1235
|
});
|
|
969
1236
|
}
|
|
970
|
-
|
|
1237
|
+
const ChevronLeftIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
971
1238
|
return jsx(Icon, {
|
|
1239
|
+
ref: forwardedRef,
|
|
972
1240
|
...props,
|
|
973
1241
|
component: SvgChevronLeftIcon
|
|
974
1242
|
});
|
|
975
|
-
}
|
|
1243
|
+
});
|
|
1244
|
+
ChevronLeftIcon.displayName = 'ChevronLeftIcon';
|
|
1245
|
+
var ChevronLeftIcon$1 = ChevronLeftIcon;
|
|
976
1246
|
|
|
977
1247
|
function SvgChevronRightIcon(props) {
|
|
978
1248
|
return jsx("svg", {
|
|
@@ -990,12 +1260,15 @@ function SvgChevronRightIcon(props) {
|
|
|
990
1260
|
})
|
|
991
1261
|
});
|
|
992
1262
|
}
|
|
993
|
-
|
|
1263
|
+
const ChevronRightIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
994
1264
|
return jsx(Icon, {
|
|
1265
|
+
ref: forwardedRef,
|
|
995
1266
|
...props,
|
|
996
1267
|
component: SvgChevronRightIcon
|
|
997
1268
|
});
|
|
998
|
-
}
|
|
1269
|
+
});
|
|
1270
|
+
ChevronRightIcon.displayName = 'ChevronRightIcon';
|
|
1271
|
+
var ChevronRightIcon$1 = ChevronRightIcon;
|
|
999
1272
|
|
|
1000
1273
|
function SvgCloseIcon(props) {
|
|
1001
1274
|
return jsx("svg", {
|
|
@@ -1013,12 +1286,15 @@ function SvgCloseIcon(props) {
|
|
|
1013
1286
|
})
|
|
1014
1287
|
});
|
|
1015
1288
|
}
|
|
1016
|
-
|
|
1289
|
+
const CloseIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1017
1290
|
return jsx(Icon, {
|
|
1291
|
+
ref: forwardedRef,
|
|
1018
1292
|
...props,
|
|
1019
1293
|
component: SvgCloseIcon
|
|
1020
1294
|
});
|
|
1021
|
-
}
|
|
1295
|
+
});
|
|
1296
|
+
CloseIcon.displayName = 'CloseIcon';
|
|
1297
|
+
var CloseIcon$1 = CloseIcon;
|
|
1022
1298
|
|
|
1023
1299
|
function SvgCursorIcon(props) {
|
|
1024
1300
|
return jsxs("svg", {
|
|
@@ -1047,12 +1323,44 @@ function SvgCursorIcon(props) {
|
|
|
1047
1323
|
})]
|
|
1048
1324
|
});
|
|
1049
1325
|
}
|
|
1050
|
-
|
|
1326
|
+
const CursorIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1051
1327
|
return jsx(Icon, {
|
|
1328
|
+
ref: forwardedRef,
|
|
1052
1329
|
...props,
|
|
1053
1330
|
component: SvgCursorIcon
|
|
1054
1331
|
});
|
|
1332
|
+
});
|
|
1333
|
+
CursorIcon.displayName = 'CursorIcon';
|
|
1334
|
+
var CursorIcon$1 = CursorIcon;
|
|
1335
|
+
|
|
1336
|
+
function SvgDangerIcon(props) {
|
|
1337
|
+
return jsxs("svg", {
|
|
1338
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1339
|
+
width: "1em",
|
|
1340
|
+
height: "1em",
|
|
1341
|
+
fill: "none",
|
|
1342
|
+
viewBox: "0 0 16 16",
|
|
1343
|
+
...props,
|
|
1344
|
+
children: [jsx("path", {
|
|
1345
|
+
fill: "currentColor",
|
|
1346
|
+
d: "M7.248 10.748a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM8.748 4.998v4h-1.5v-4h1.5Z"
|
|
1347
|
+
}), jsx("path", {
|
|
1348
|
+
fill: "currentColor",
|
|
1349
|
+
fillRule: "evenodd",
|
|
1350
|
+
d: "m11.533 15.776 4.243-4.243a.75.75 0 0 0 .22-.53v-6.01a.75.75 0 0 0-.22-.53L11.533.22a.75.75 0 0 0-.53-.22h-6.01a.75.75 0 0 0-.53.22L.22 4.462a.75.75 0 0 0-.22.53v6.011c0 .199.079.39.22.53l4.242 4.243c.141.14.332.22.53.22h6.011a.75.75 0 0 0 .53-.22Zm2.963-10.473v5.39l-3.804 3.803H5.303L1.5 10.692V5.303L5.303 1.5h5.39l3.803 3.803Z",
|
|
1351
|
+
clipRule: "evenodd"
|
|
1352
|
+
})]
|
|
1353
|
+
});
|
|
1055
1354
|
}
|
|
1355
|
+
const DangerIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1356
|
+
return jsx(Icon, {
|
|
1357
|
+
ref: forwardedRef,
|
|
1358
|
+
...props,
|
|
1359
|
+
component: SvgDangerIcon
|
|
1360
|
+
});
|
|
1361
|
+
});
|
|
1362
|
+
DangerIcon.displayName = 'DangerIcon';
|
|
1363
|
+
var DangerIcon$1 = DangerIcon;
|
|
1056
1364
|
|
|
1057
1365
|
function SvgFaceFrownIcon(props) {
|
|
1058
1366
|
return jsxs("svg", {
|
|
@@ -1083,12 +1391,15 @@ function SvgFaceFrownIcon(props) {
|
|
|
1083
1391
|
})]
|
|
1084
1392
|
});
|
|
1085
1393
|
}
|
|
1086
|
-
|
|
1394
|
+
const FaceFrownIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1087
1395
|
return jsx(Icon, {
|
|
1396
|
+
ref: forwardedRef,
|
|
1088
1397
|
...props,
|
|
1089
1398
|
component: SvgFaceFrownIcon
|
|
1090
1399
|
});
|
|
1091
|
-
}
|
|
1400
|
+
});
|
|
1401
|
+
FaceFrownIcon.displayName = 'FaceFrownIcon';
|
|
1402
|
+
var FaceFrownIcon$1 = FaceFrownIcon;
|
|
1092
1403
|
|
|
1093
1404
|
function SvgFaceNeutralIcon(props) {
|
|
1094
1405
|
return jsxs("svg", {
|
|
@@ -1119,12 +1430,15 @@ function SvgFaceNeutralIcon(props) {
|
|
|
1119
1430
|
})]
|
|
1120
1431
|
});
|
|
1121
1432
|
}
|
|
1122
|
-
|
|
1433
|
+
const FaceNeutralIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1123
1434
|
return jsx(Icon, {
|
|
1435
|
+
ref: forwardedRef,
|
|
1124
1436
|
...props,
|
|
1125
1437
|
component: SvgFaceNeutralIcon
|
|
1126
1438
|
});
|
|
1127
|
-
}
|
|
1439
|
+
});
|
|
1440
|
+
FaceNeutralIcon.displayName = 'FaceNeutralIcon';
|
|
1441
|
+
var FaceNeutralIcon$1 = FaceNeutralIcon;
|
|
1128
1442
|
|
|
1129
1443
|
function SvgFaceSmileIcon(props) {
|
|
1130
1444
|
return jsxs("svg", {
|
|
@@ -1159,12 +1473,15 @@ function SvgFaceSmileIcon(props) {
|
|
|
1159
1473
|
})]
|
|
1160
1474
|
});
|
|
1161
1475
|
}
|
|
1162
|
-
|
|
1476
|
+
const FaceSmileIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1163
1477
|
return jsx(Icon, {
|
|
1478
|
+
ref: forwardedRef,
|
|
1164
1479
|
...props,
|
|
1165
1480
|
component: SvgFaceSmileIcon
|
|
1166
1481
|
});
|
|
1167
|
-
}
|
|
1482
|
+
});
|
|
1483
|
+
FaceSmileIcon.displayName = 'FaceSmileIcon';
|
|
1484
|
+
var FaceSmileIcon$1 = FaceSmileIcon;
|
|
1168
1485
|
|
|
1169
1486
|
function SvgInfoIcon(props) {
|
|
1170
1487
|
return jsxs("svg", {
|
|
@@ -1185,12 +1502,15 @@ function SvgInfoIcon(props) {
|
|
|
1185
1502
|
})]
|
|
1186
1503
|
});
|
|
1187
1504
|
}
|
|
1188
|
-
|
|
1505
|
+
const InfoIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1189
1506
|
return jsx(Icon, {
|
|
1507
|
+
ref: forwardedRef,
|
|
1190
1508
|
...props,
|
|
1191
1509
|
component: SvgInfoIcon
|
|
1192
1510
|
});
|
|
1193
|
-
}
|
|
1511
|
+
});
|
|
1512
|
+
InfoIcon.displayName = 'InfoIcon';
|
|
1513
|
+
var InfoIcon$1 = InfoIcon;
|
|
1194
1514
|
|
|
1195
1515
|
function SvgLoadingIcon(props) {
|
|
1196
1516
|
return jsx("svg", {
|
|
@@ -1208,12 +1528,41 @@ function SvgLoadingIcon(props) {
|
|
|
1208
1528
|
})
|
|
1209
1529
|
});
|
|
1210
1530
|
}
|
|
1211
|
-
|
|
1531
|
+
const LoadingIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1212
1532
|
return jsx(Icon, {
|
|
1533
|
+
ref: forwardedRef,
|
|
1213
1534
|
...props,
|
|
1214
1535
|
component: SvgLoadingIcon
|
|
1215
1536
|
});
|
|
1537
|
+
});
|
|
1538
|
+
LoadingIcon.displayName = 'LoadingIcon';
|
|
1539
|
+
var LoadingIcon$1 = LoadingIcon;
|
|
1540
|
+
|
|
1541
|
+
function SvgMegaphoneIcon(props) {
|
|
1542
|
+
return jsx("svg", {
|
|
1543
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1544
|
+
width: "1em",
|
|
1545
|
+
height: "1em",
|
|
1546
|
+
fill: "none",
|
|
1547
|
+
viewBox: "0 0 18 18",
|
|
1548
|
+
...props,
|
|
1549
|
+
children: jsx("path", {
|
|
1550
|
+
fill: "currentColor",
|
|
1551
|
+
fillRule: "evenodd",
|
|
1552
|
+
d: "M16.25 2a.75.75 0 0 0-1.248-.56l-4.287 3.81H4A2.75 2.75 0 0 0 1.25 8v2A2.75 2.75 0 0 0 4 12.75h1.75V16a.75.75 0 0 0 1.5 0v-3.25h3.465l4.287 3.81A.75.75 0 0 0 16.25 16V2Zm-4.752 4.56 3.252-2.89v10.66l-3.252-2.89a.75.75 0 0 0-.498-.19H4c-.69 0-1.25-.56-1.25-1.25V8c0-.69.56-1.25 1.25-1.25h7a.75.75 0 0 0 .498-.19Z",
|
|
1553
|
+
clipRule: "evenodd"
|
|
1554
|
+
})
|
|
1555
|
+
});
|
|
1216
1556
|
}
|
|
1557
|
+
const MegaphoneIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1558
|
+
return jsx(Icon, {
|
|
1559
|
+
ref: forwardedRef,
|
|
1560
|
+
...props,
|
|
1561
|
+
component: SvgMegaphoneIcon
|
|
1562
|
+
});
|
|
1563
|
+
});
|
|
1564
|
+
MegaphoneIcon.displayName = 'MegaphoneIcon';
|
|
1565
|
+
var MegaphoneIcon$1 = MegaphoneIcon;
|
|
1217
1566
|
|
|
1218
1567
|
function SvgNewWindowIcon(props) {
|
|
1219
1568
|
return jsxs("svg", {
|
|
@@ -1232,129 +1581,44 @@ function SvgNewWindowIcon(props) {
|
|
|
1232
1581
|
})]
|
|
1233
1582
|
});
|
|
1234
1583
|
}
|
|
1235
|
-
|
|
1584
|
+
const NewWindowIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1236
1585
|
return jsx(Icon, {
|
|
1586
|
+
ref: forwardedRef,
|
|
1237
1587
|
...props,
|
|
1238
1588
|
component: SvgNewWindowIcon
|
|
1239
1589
|
});
|
|
1240
|
-
}
|
|
1590
|
+
});
|
|
1591
|
+
NewWindowIcon.displayName = 'NewWindowIcon';
|
|
1592
|
+
var NewWindowIcon$1 = NewWindowIcon;
|
|
1241
1593
|
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1594
|
+
function SvgWarningIcon(props) {
|
|
1595
|
+
return jsxs("svg", {
|
|
1596
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1597
|
+
width: "1em",
|
|
1598
|
+
height: "1em",
|
|
1599
|
+
fill: "none",
|
|
1600
|
+
viewBox: "0 0 16 16",
|
|
1601
|
+
...props,
|
|
1602
|
+
children: [jsx("path", {
|
|
1603
|
+
fill: "currentColor",
|
|
1604
|
+
d: "M7.25 10V6.5h1.5V10h-1.5ZM8 12.5A.75.75 0 1 0 8 11a.75.75 0 0 0 0 1.5Z"
|
|
1605
|
+
}), jsx("path", {
|
|
1606
|
+
fill: "currentColor",
|
|
1607
|
+
fillRule: "evenodd",
|
|
1608
|
+
d: "M8 1a.75.75 0 0 1 .649.374l7.25 12.5A.75.75 0 0 1 15.25 15H.75a.75.75 0 0 1-.649-1.126l7.25-12.5A.75.75 0 0 1 8 1Zm0 2.245L2.052 13.5h11.896L8 3.245Z",
|
|
1609
|
+
clipRule: "evenodd"
|
|
1610
|
+
})]
|
|
1611
|
+
});
|
|
1245
1612
|
}
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
* components in a "loading" state are mounted and unmounted.
|
|
1253
|
-
*/
|
|
1254
|
-
|
|
1255
|
-
const LoadingStateContext = /*#__PURE__*/createContext(null);
|
|
1256
|
-
/**
|
|
1257
|
-
* Indicates that the containing component is in a "loading" state, i.e. that the UI
|
|
1258
|
-
* displayed to the user is semantically equivalent to them seeing a spinner or a
|
|
1259
|
-
* loading indicator. This means that the UI is not in its final settled state yet.
|
|
1260
|
-
*
|
|
1261
|
-
* All components that are in a "loading" state should render a `<LoadingState>`
|
|
1262
|
-
* component, preferrably with an appropriate description.
|
|
1263
|
-
*
|
|
1264
|
-
* By itself, `<LoadingState>` doesn't do anything, but if used within `LoadingStateContext`,
|
|
1265
|
-
* it will call the provided `startLoading()`/`endLoading()` hooks when the component
|
|
1266
|
-
* is mounted/unmounted, which can be used to integrate existing latency instrumentation.
|
|
1267
|
-
*/
|
|
1268
|
-
const LoadingState = _ref => {
|
|
1269
|
-
let {
|
|
1270
|
-
description = 'Generic UI loading state'
|
|
1271
|
-
} = _ref;
|
|
1272
|
-
const uid = useStableUid();
|
|
1273
|
-
const loadingStateContext = useContext(LoadingStateContext);
|
|
1274
|
-
useLayoutEffect(() => {
|
|
1275
|
-
// mount
|
|
1276
|
-
if (loadingStateContext) {
|
|
1277
|
-
loadingStateContext.startLoading(uid, description);
|
|
1278
|
-
}
|
|
1279
|
-
return () => {
|
|
1280
|
-
// unmount
|
|
1281
|
-
if (loadingStateContext) {
|
|
1282
|
-
loadingStateContext.endLoading(uid);
|
|
1283
|
-
}
|
|
1284
|
-
};
|
|
1285
|
-
}, [uid, description, loadingStateContext]);
|
|
1286
|
-
return null;
|
|
1287
|
-
};
|
|
1288
|
-
|
|
1289
|
-
const rotate = keyframes({
|
|
1290
|
-
'0%': {
|
|
1291
|
-
transform: 'rotate(0deg) translate3d(0, 0, 0)'
|
|
1292
|
-
},
|
|
1293
|
-
'100%': {
|
|
1294
|
-
transform: 'rotate(360deg) translate3d(0, 0, 0)'
|
|
1295
|
-
}
|
|
1613
|
+
const WarningIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
1614
|
+
return jsx(Icon, {
|
|
1615
|
+
ref: forwardedRef,
|
|
1616
|
+
...props,
|
|
1617
|
+
component: SvgWarningIcon
|
|
1618
|
+
});
|
|
1296
1619
|
});
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
let delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
1300
|
-
let animationDuration = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
|
|
1301
|
-
let inheritColor = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
|
|
1302
|
-
const styles = {
|
|
1303
|
-
animation: `${rotate} ${animationDuration}s steps(${frameRate}, end) infinite`,
|
|
1304
|
-
...(inheritColor ? {
|
|
1305
|
-
color: 'inherit'
|
|
1306
|
-
} : {
|
|
1307
|
-
color: theme.colors.textSecondary
|
|
1308
|
-
}),
|
|
1309
|
-
animationDelay: `${delay}s`,
|
|
1310
|
-
'@media only percy': {
|
|
1311
|
-
animation: 'none'
|
|
1312
|
-
}
|
|
1313
|
-
};
|
|
1314
|
-
return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:cssSpinner;");
|
|
1315
|
-
};
|
|
1316
|
-
const Spinner = _ref => {
|
|
1317
|
-
let {
|
|
1318
|
-
frameRate,
|
|
1319
|
-
size = 'default',
|
|
1320
|
-
delay,
|
|
1321
|
-
className: propClass,
|
|
1322
|
-
label,
|
|
1323
|
-
animationDuration,
|
|
1324
|
-
inheritColor,
|
|
1325
|
-
loading = true,
|
|
1326
|
-
loadingDescription = 'Spinner',
|
|
1327
|
-
...props
|
|
1328
|
-
} = _ref;
|
|
1329
|
-
const {
|
|
1330
|
-
classNamePrefix,
|
|
1331
|
-
theme
|
|
1332
|
-
} = useDesignSystemTheme();
|
|
1333
|
-
|
|
1334
|
-
// We use Antd classes to keep styling unchanged
|
|
1335
|
-
// TODO(FEINF-1407): We want to move away from Antd classes and use Emotion for styling in the future
|
|
1336
|
-
const sizeSuffix = size === 'small' ? '-sm' : size === 'large' ? '-lg' : '';
|
|
1337
|
-
const sizeClass = sizeSuffix ? `${classNamePrefix}-spin${sizeSuffix}` : '';
|
|
1338
|
-
const wrapperClass = `${propClass || ''} ${classNamePrefix}-spin ${sizeClass} ${classNamePrefix}-spin-spinning ${DU_BOIS_ENABLE_ANIMATION_CLASSNAME}`.trim();
|
|
1339
|
-
const className = `${classNamePrefix}-spin-dot ${DU_BOIS_ENABLE_ANIMATION_CLASSNAME}`.trim();
|
|
1340
|
-
return (
|
|
1341
|
-
// className has to follow {...props}, otherwise is `css` prop is passed down it will overwrite our className
|
|
1342
|
-
jsxs("div", {
|
|
1343
|
-
...props,
|
|
1344
|
-
className: wrapperClass,
|
|
1345
|
-
children: [loading && jsx(LoadingState, {
|
|
1346
|
-
description: loadingDescription
|
|
1347
|
-
}), jsx(AccessibleContainer, {
|
|
1348
|
-
label: label,
|
|
1349
|
-
children: jsx(LoadingIcon, {
|
|
1350
|
-
"aria-hidden": "false",
|
|
1351
|
-
css: cssSpinner(theme, frameRate, delay, animationDuration, inheritColor),
|
|
1352
|
-
className: className
|
|
1353
|
-
})
|
|
1354
|
-
})]
|
|
1355
|
-
})
|
|
1356
|
-
);
|
|
1357
|
-
};
|
|
1620
|
+
WarningIcon.displayName = 'WarningIcon';
|
|
1621
|
+
var WarningIcon$1 = WarningIcon;
|
|
1358
1622
|
|
|
1359
1623
|
function getDefaultStyles(theme) {
|
|
1360
1624
|
let loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
@@ -1428,19 +1692,19 @@ function getPrimaryDangerStyles(theme) {
|
|
|
1428
1692
|
const defaultStyles = {
|
|
1429
1693
|
backgroundColor: theme.colors.actionDangerPrimaryBackgroundDefault,
|
|
1430
1694
|
borderColor: 'transparent',
|
|
1431
|
-
color: theme.colors.
|
|
1695
|
+
color: theme.colors.actionPrimaryTextDefault
|
|
1432
1696
|
};
|
|
1433
1697
|
return {
|
|
1434
1698
|
...defaultStyles,
|
|
1435
1699
|
'&:hover': {
|
|
1436
1700
|
backgroundColor: theme.colors.actionDangerPrimaryBackgroundHover,
|
|
1437
1701
|
borderColor: 'transparent',
|
|
1438
|
-
color: theme.colors.
|
|
1702
|
+
color: theme.colors.actionPrimaryTextHover
|
|
1439
1703
|
},
|
|
1440
1704
|
'&:active': {
|
|
1441
1705
|
backgroundColor: theme.colors.actionDangerPrimaryBackgroundPress,
|
|
1442
1706
|
borderColor: 'transparent',
|
|
1443
|
-
color: theme.colors.
|
|
1707
|
+
color: theme.colors.actionPrimaryTextPress
|
|
1444
1708
|
},
|
|
1445
1709
|
'&:focus-visible': {
|
|
1446
1710
|
outlineColor: theme.colors.actionDangerPrimaryBackgroundDefault
|
|
@@ -1511,66 +1775,318 @@ function getDisabledTertiaryStyles(theme) {
|
|
|
1511
1775
|
};
|
|
1512
1776
|
}
|
|
1513
1777
|
|
|
1514
|
-
function
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1778
|
+
let DesignSystemEventProviderComponentTypes = /*#__PURE__*/function (DesignSystemEventProviderComponentTypes) {
|
|
1779
|
+
DesignSystemEventProviderComponentTypes["Button"] = "button";
|
|
1780
|
+
DesignSystemEventProviderComponentTypes["Input"] = "input";
|
|
1781
|
+
return DesignSystemEventProviderComponentTypes;
|
|
1782
|
+
}({});
|
|
1783
|
+
let DesignSystemEventProviderAnalyticsEventTypes = /*#__PURE__*/function (DesignSystemEventProviderAnalyticsEventTypes) {
|
|
1784
|
+
DesignSystemEventProviderAnalyticsEventTypes["OnClick"] = "onClick";
|
|
1785
|
+
DesignSystemEventProviderAnalyticsEventTypes["OnView"] = "onView";
|
|
1786
|
+
DesignSystemEventProviderAnalyticsEventTypes["OnValueChange"] = "onValueChange";
|
|
1787
|
+
return DesignSystemEventProviderAnalyticsEventTypes;
|
|
1788
|
+
}({});
|
|
1789
|
+
const shouldTriggerCallback = (eventType, analyticsEvents) => {
|
|
1790
|
+
return analyticsEvents.includes(eventType);
|
|
1791
|
+
};
|
|
1792
|
+
const DefaultEmptyCallbacks = {
|
|
1793
|
+
callback: () => {}
|
|
1794
|
+
};
|
|
1795
|
+
const DesignSystemEventProviderContext = /*#__PURE__*/React__default.createContext(DefaultEmptyCallbacks);
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
* This gets the event provider, which is used to pass callbacks to the design system for events such as onClick, onView, and onValueChange.
|
|
1799
|
+
* If the value is undefined, then the expected behavior is to not emit any events.
|
|
1800
|
+
*
|
|
1801
|
+
* @returns DesignSystemEventProviderContextType
|
|
1802
|
+
*/
|
|
1803
|
+
const useDesignSystemEventProviderContext = () => {
|
|
1804
|
+
return useContext(DesignSystemEventProviderContext);
|
|
1805
|
+
};
|
|
1806
|
+
|
|
1807
|
+
/**
|
|
1808
|
+
* NOTE: This is not suggested for direct usage from engineers, and should emit your own events.
|
|
1809
|
+
* See https://databricks.atlassian.net/wiki/spaces/UN/pages/2533556277/Usage+Logging+in+UI#Send-usage-logging-from-UI for more details.
|
|
1810
|
+
*
|
|
1811
|
+
* This gets the event provider component event type callbacks.
|
|
1812
|
+
* If context & componentId are not undefined, then it will check if the event is in analyticsEvents or the default analyticsEvents for that component.
|
|
1813
|
+
* If the context or componentId are undefined, then the expected behavior is to not emit any events.
|
|
1814
|
+
*
|
|
1815
|
+
* @returns Object of event callbacks
|
|
1816
|
+
*/
|
|
1817
|
+
const useDesignSystemEventComponentCallbacks = _ref => {
|
|
1518
1818
|
let {
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
withIcon,
|
|
1523
|
-
onlyIcon,
|
|
1524
|
-
isAnchor,
|
|
1525
|
-
enableAnimation,
|
|
1526
|
-
size,
|
|
1527
|
-
type,
|
|
1528
|
-
isFlex,
|
|
1529
|
-
useFocusPseudoClass,
|
|
1530
|
-
forceIconStyles
|
|
1819
|
+
componentType,
|
|
1820
|
+
componentId,
|
|
1821
|
+
analyticsEvents
|
|
1531
1822
|
} = _ref;
|
|
1532
|
-
const
|
|
1533
|
-
const
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
const tertiaryColors = {
|
|
1541
|
-
background: theme.colors.actionTertiaryBackgroundDefault,
|
|
1542
|
-
color: theme.colors.actionTertiaryTextDefault,
|
|
1543
|
-
'&:hover': {
|
|
1544
|
-
background: theme.colors.actionTertiaryBackgroundHover,
|
|
1545
|
-
color: theme.colors.actionTertiaryTextHover
|
|
1546
|
-
},
|
|
1547
|
-
'&:active': {
|
|
1548
|
-
background: theme.colors.actionTertiaryBackgroundPress,
|
|
1549
|
-
color: theme.colors.actionTertiaryTextPress
|
|
1823
|
+
const context = useDesignSystemEventProviderContext();
|
|
1824
|
+
const callbacks = useMemo(() => {
|
|
1825
|
+
if (context === DefaultEmptyCallbacks || componentId === undefined) {
|
|
1826
|
+
return {
|
|
1827
|
+
onClick: () => {},
|
|
1828
|
+
onValueChange: () => {},
|
|
1829
|
+
onView: () => {}
|
|
1830
|
+
};
|
|
1550
1831
|
}
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1832
|
+
return {
|
|
1833
|
+
onClick: () => {
|
|
1834
|
+
if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnClick, analyticsEvents)) {
|
|
1835
|
+
context.callback(DesignSystemEventProviderAnalyticsEventTypes.OnClick, componentType, componentId);
|
|
1836
|
+
}
|
|
1837
|
+
},
|
|
1838
|
+
onValueChange: () => {
|
|
1839
|
+
if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnValueChange, analyticsEvents)) {
|
|
1840
|
+
context.callback(DesignSystemEventProviderAnalyticsEventTypes.OnValueChange, componentType, componentId);
|
|
1841
|
+
}
|
|
1842
|
+
},
|
|
1843
|
+
onView: () => {
|
|
1844
|
+
if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnView, analyticsEvents)) {
|
|
1845
|
+
context.callback(DesignSystemEventProviderAnalyticsEventTypes.OnView, componentType, componentId);
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
};
|
|
1849
|
+
}, [context, componentType, componentId, analyticsEvents]);
|
|
1850
|
+
return callbacks;
|
|
1851
|
+
};
|
|
1852
|
+
|
|
1853
|
+
/**
|
|
1854
|
+
* NOTE: This is not suggested for direct usage from engineers, and should use RecordEventContext instead.
|
|
1855
|
+
* See https://databricks.atlassian.net/wiki/spaces/UN/pages/2533556277/Usage+Logging+in+UI#Send-usage-logging-from-UI for more details.
|
|
1856
|
+
*
|
|
1857
|
+
* This is the Design System Event Context Provider, and is only used to pass callbacks to the design system for events such as onClick, onView, and onValueChange.
|
|
1858
|
+
*
|
|
1859
|
+
* @param children Children react elements
|
|
1860
|
+
* @param callback The event callback function
|
|
1861
|
+
* @returns Design System Event Context Provider with the children inside
|
|
1862
|
+
*/
|
|
1863
|
+
function DesignSystemEventProvider(_ref2) {
|
|
1864
|
+
let {
|
|
1865
|
+
children,
|
|
1866
|
+
callback
|
|
1867
|
+
} = _ref2;
|
|
1868
|
+
const contextValue = useMemo(() => {
|
|
1869
|
+
return {
|
|
1870
|
+
callback
|
|
1871
|
+
};
|
|
1872
|
+
}, [callback]);
|
|
1873
|
+
return jsx(DesignSystemEventProviderContext.Provider, {
|
|
1874
|
+
value: contextValue,
|
|
1875
|
+
children: children
|
|
1876
|
+
});
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
// Use Symbol to correctly handled null/undefined as stable values
|
|
1880
|
+
const NOT_INITIALIZED = Symbol('NOT_INITIALIZED');
|
|
1881
|
+
|
|
1882
|
+
/**
|
|
1883
|
+
* Use to keep a stable value on the first mount of a component
|
|
1884
|
+
* that cannot change.
|
|
1885
|
+
*/
|
|
1886
|
+
function useStable(valueCallback) {
|
|
1887
|
+
const ref = useRef(NOT_INITIALIZED);
|
|
1888
|
+
if (ref.current === NOT_INITIALIZED) {
|
|
1889
|
+
const val = valueCallback();
|
|
1890
|
+
ref.current = val;
|
|
1891
|
+
return val;
|
|
1892
|
+
}
|
|
1893
|
+
return ref.current;
|
|
1894
|
+
}
|
|
1895
|
+
let sequentialCounter = 0;
|
|
1896
|
+
function useStableUid() {
|
|
1897
|
+
return useStable(() => sequentialCounter++);
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
/** Props for UI components that support a "loading" state. */
|
|
1901
|
+
|
|
1902
|
+
/**
|
|
1903
|
+
* A handler for integrating UI components with external latency instrumentation.
|
|
1904
|
+
* If provided via `LoadingStateContext`, hooks will be called whenever child
|
|
1905
|
+
* components in a "loading" state are mounted and unmounted.
|
|
1906
|
+
*/
|
|
1907
|
+
|
|
1908
|
+
const LoadingStateContext = /*#__PURE__*/createContext(null);
|
|
1909
|
+
/**
|
|
1910
|
+
* Indicates that the containing component is in a "loading" state, i.e. that the UI
|
|
1911
|
+
* displayed to the user is semantically equivalent to them seeing a spinner or a
|
|
1912
|
+
* loading indicator. This means that the UI is not in its final settled state yet.
|
|
1913
|
+
*
|
|
1914
|
+
* All components that are in a "loading" state should render a `<LoadingState>`
|
|
1915
|
+
* component, preferrably with an appropriate description.
|
|
1916
|
+
*
|
|
1917
|
+
* By itself, `<LoadingState>` doesn't do anything, but if used within `LoadingStateContext`,
|
|
1918
|
+
* it will call the provided `startLoading()`/`endLoading()` hooks when the component
|
|
1919
|
+
* is mounted/unmounted, which can be used to integrate existing latency instrumentation.
|
|
1920
|
+
*/
|
|
1921
|
+
const LoadingState = _ref => {
|
|
1922
|
+
let {
|
|
1923
|
+
description = 'Generic UI loading state'
|
|
1924
|
+
} = _ref;
|
|
1925
|
+
const uid = useStableUid();
|
|
1926
|
+
const loadingStateContext = useContext(LoadingStateContext);
|
|
1927
|
+
useLayoutEffect(() => {
|
|
1928
|
+
// mount
|
|
1929
|
+
if (loadingStateContext) {
|
|
1930
|
+
loadingStateContext.startLoading(uid, description);
|
|
1931
|
+
}
|
|
1932
|
+
return () => {
|
|
1933
|
+
// unmount
|
|
1934
|
+
if (loadingStateContext) {
|
|
1935
|
+
loadingStateContext.endLoading(uid);
|
|
1936
|
+
}
|
|
1937
|
+
};
|
|
1938
|
+
}, [uid, description, loadingStateContext]);
|
|
1939
|
+
return null;
|
|
1940
|
+
};
|
|
1941
|
+
|
|
1942
|
+
const rotate = keyframes({
|
|
1943
|
+
'0%': {
|
|
1944
|
+
transform: 'rotate(0deg) translate3d(0, 0, 0)'
|
|
1945
|
+
},
|
|
1946
|
+
'100%': {
|
|
1947
|
+
transform: 'rotate(360deg) translate3d(0, 0, 0)'
|
|
1948
|
+
}
|
|
1949
|
+
});
|
|
1950
|
+
const cssSpinner = function (theme) {
|
|
1951
|
+
let frameRate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 60;
|
|
1952
|
+
let delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
1953
|
+
let animationDuration = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
|
|
1954
|
+
let inheritColor = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
|
|
1955
|
+
const styles = {
|
|
1956
|
+
animation: `${rotate} ${animationDuration}s steps(${frameRate}, end) infinite`,
|
|
1957
|
+
...(inheritColor ? {
|
|
1958
|
+
color: 'inherit'
|
|
1959
|
+
} : {
|
|
1960
|
+
color: theme.colors.textSecondary
|
|
1961
|
+
}),
|
|
1962
|
+
animationDelay: `${delay}s`,
|
|
1963
|
+
'@media only percy': {
|
|
1964
|
+
animation: 'none'
|
|
1965
|
+
}
|
|
1966
|
+
};
|
|
1967
|
+
return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:cssSpinner;");
|
|
1968
|
+
};
|
|
1969
|
+
const Spinner = _ref => {
|
|
1970
|
+
let {
|
|
1971
|
+
frameRate,
|
|
1972
|
+
size = 'default',
|
|
1973
|
+
delay,
|
|
1974
|
+
className: propClass,
|
|
1975
|
+
label,
|
|
1976
|
+
animationDuration,
|
|
1977
|
+
inheritColor,
|
|
1978
|
+
loading = true,
|
|
1979
|
+
loadingDescription = 'Spinner',
|
|
1980
|
+
...props
|
|
1981
|
+
} = _ref;
|
|
1982
|
+
const {
|
|
1983
|
+
classNamePrefix,
|
|
1984
|
+
theme
|
|
1985
|
+
} = useDesignSystemTheme();
|
|
1986
|
+
|
|
1987
|
+
// We use Antd classes to keep styling unchanged
|
|
1988
|
+
// TODO(FEINF-1407): We want to move away from Antd classes and use Emotion for styling in the future
|
|
1989
|
+
const sizeSuffix = size === 'small' ? '-sm' : size === 'large' ? '-lg' : '';
|
|
1990
|
+
const sizeClass = sizeSuffix ? `${classNamePrefix}-spin${sizeSuffix}` : '';
|
|
1991
|
+
const wrapperClass = `${propClass || ''} ${classNamePrefix}-spin ${sizeClass} ${classNamePrefix}-spin-spinning ${DU_BOIS_ENABLE_ANIMATION_CLASSNAME}`.trim();
|
|
1992
|
+
const className = `${classNamePrefix}-spin-dot ${DU_BOIS_ENABLE_ANIMATION_CLASSNAME}`.trim();
|
|
1993
|
+
return (
|
|
1994
|
+
// className has to follow {...props}, otherwise is `css` prop is passed down it will overwrite our className
|
|
1995
|
+
jsxs("div", {
|
|
1996
|
+
...props,
|
|
1997
|
+
className: wrapperClass,
|
|
1998
|
+
children: [loading && jsx(LoadingState, {
|
|
1999
|
+
description: loadingDescription
|
|
2000
|
+
}), jsx(AccessibleContainer, {
|
|
2001
|
+
label: label,
|
|
2002
|
+
children: jsx(LoadingIcon$1, {
|
|
2003
|
+
"aria-hidden": "false",
|
|
2004
|
+
css: cssSpinner(theme, frameRate, delay, animationDuration, inheritColor),
|
|
2005
|
+
className: className
|
|
2006
|
+
})
|
|
2007
|
+
})]
|
|
2008
|
+
})
|
|
2009
|
+
);
|
|
2010
|
+
};
|
|
2011
|
+
|
|
2012
|
+
/**
|
|
2013
|
+
* Provides access to http://go/safex flags from the frontend. Note that this is a temporary
|
|
2014
|
+
* workaround until direct `safex` imports are available.
|
|
2015
|
+
* @param flag The name of the flag to check
|
|
2016
|
+
* @param defaultValue The default value to return if the flag is not set
|
|
2017
|
+
* @returns
|
|
2018
|
+
*/
|
|
2019
|
+
const safex = (flag, defaultValue) => {
|
|
2020
|
+
// Catching errors here, because we don't have type-safety to ensure
|
|
2021
|
+
// that `__debug__safex`'s API hasn't changed.
|
|
2022
|
+
try {
|
|
2023
|
+
const globalSafex = window.__debug__safex;
|
|
2024
|
+
return globalSafex ? globalSafex(flag, defaultValue) : defaultValue;
|
|
2025
|
+
} catch (e) {
|
|
2026
|
+
return defaultValue;
|
|
2027
|
+
}
|
|
2028
|
+
};
|
|
2029
|
+
|
|
2030
|
+
function getEndIconClsName(theme) {
|
|
2031
|
+
return `${theme.general.iconfontCssPrefix}-btn-end-icon`;
|
|
2032
|
+
}
|
|
2033
|
+
const getButtonEmotionStyles = _ref => {
|
|
2034
|
+
let {
|
|
2035
|
+
theme,
|
|
2036
|
+
classNamePrefix,
|
|
2037
|
+
loading,
|
|
2038
|
+
withIcon,
|
|
2039
|
+
onlyIcon,
|
|
2040
|
+
isAnchor,
|
|
2041
|
+
enableAnimation,
|
|
2042
|
+
size,
|
|
2043
|
+
type,
|
|
2044
|
+
isFlex,
|
|
2045
|
+
useFocusPseudoClass,
|
|
2046
|
+
forceIconStyles
|
|
2047
|
+
} = _ref;
|
|
2048
|
+
const clsIcon = `.${theme.general.iconfontCssPrefix}`;
|
|
2049
|
+
const clsEndIcon = `.${getEndIconClsName(theme)}`;
|
|
2050
|
+
const clsLoadingIcon = `.${classNamePrefix}-btn-loading-icon`;
|
|
2051
|
+
const clsIconOnly = `.${classNamePrefix}-btn-icon-only`;
|
|
2052
|
+
const classPrimary = `.${classNamePrefix}-btn-primary`;
|
|
2053
|
+
const classLink = `.${classNamePrefix}-btn-link`;
|
|
2054
|
+
const classDangerous = `.${classNamePrefix}-btn-dangerous`;
|
|
2055
|
+
const SMALL_BUTTON_HEIGHT = 24;
|
|
2056
|
+
const tertiaryColors = {
|
|
2057
|
+
background: theme.colors.actionTertiaryBackgroundDefault,
|
|
2058
|
+
color: theme.colors.actionTertiaryTextDefault,
|
|
2059
|
+
'&:hover': {
|
|
2060
|
+
background: theme.colors.actionTertiaryBackgroundHover,
|
|
2061
|
+
color: theme.colors.actionTertiaryTextHover
|
|
2062
|
+
},
|
|
2063
|
+
'&:active': {
|
|
2064
|
+
background: theme.colors.actionTertiaryBackgroundPress,
|
|
2065
|
+
color: theme.colors.actionTertiaryTextPress
|
|
2066
|
+
}
|
|
2067
|
+
};
|
|
2068
|
+
const iconCss = {
|
|
2069
|
+
fontSize: theme.general.iconFontSize,
|
|
2070
|
+
...(!isFlex && {
|
|
2071
|
+
// verticalAlign used by AntD to move icon and label to center
|
|
2072
|
+
// TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
|
|
2073
|
+
// behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
|
|
2074
|
+
verticalAlign: -4,
|
|
2075
|
+
...(onlyIcon && {
|
|
2076
|
+
verticalAlign: -3
|
|
2077
|
+
}),
|
|
2078
|
+
// verticalAlign used by AntD to move icon and label to center
|
|
2079
|
+
// TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
|
|
2080
|
+
// behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
|
|
2081
|
+
// Need to make sure not to apply this to regular buttons as it will offset the icons
|
|
2082
|
+
...(!onlyIcon && {
|
|
2083
|
+
verticalAlign: -3
|
|
2084
|
+
})
|
|
2085
|
+
}),
|
|
2086
|
+
lineHeight: 0,
|
|
2087
|
+
...(size === 'small' && {
|
|
2088
|
+
lineHeight: theme.typography.lineHeightSm,
|
|
2089
|
+
...((onlyIcon || forceIconStyles) && {
|
|
1574
2090
|
fontSize: 16,
|
|
1575
2091
|
...(isFlex && {
|
|
1576
2092
|
height: 16
|
|
@@ -1821,6 +2337,8 @@ const Button = /* #__PURE__ */(() => {
|
|
|
1821
2337
|
dangerouslySetForceIconStyles,
|
|
1822
2338
|
dangerouslyUseFocusPseudoClass,
|
|
1823
2339
|
dangerouslyAppendWrapperCss,
|
|
2340
|
+
componentId,
|
|
2341
|
+
analyticsEvents,
|
|
1824
2342
|
...props
|
|
1825
2343
|
} = _ref2;
|
|
1826
2344
|
const {
|
|
@@ -1828,8 +2346,15 @@ const Button = /* #__PURE__ */(() => {
|
|
|
1828
2346
|
classNamePrefix
|
|
1829
2347
|
} = useDesignSystemTheme();
|
|
1830
2348
|
const {
|
|
1831
|
-
USE_FLEX_BUTTON:
|
|
2349
|
+
USE_FLEX_BUTTON: flexOverride
|
|
1832
2350
|
} = useDesignSystemFlags();
|
|
2351
|
+
const eventContext = useDesignSystemEventComponentCallbacks({
|
|
2352
|
+
componentType: DesignSystemEventProviderComponentTypes.Button,
|
|
2353
|
+
componentId,
|
|
2354
|
+
analyticsEvents: analyticsEvents !== null && analyticsEvents !== void 0 ? analyticsEvents : [DesignSystemEventProviderAnalyticsEventTypes.OnClick]
|
|
2355
|
+
});
|
|
2356
|
+
const flexSafex = safex('databricks.fe.designsystem.useFlexButtonStyles', false);
|
|
2357
|
+
const isFlex = flexOverride || flexSafex;
|
|
1833
2358
|
const clsEndIcon = getEndIconClsName(theme);
|
|
1834
2359
|
const loadingCls = `${classNamePrefix}-btn-loading-icon`;
|
|
1835
2360
|
const buttonRef = useRef(null);
|
|
@@ -1852,7 +2377,8 @@ const Button = /* #__PURE__ */(() => {
|
|
|
1852
2377
|
if (loading) {
|
|
1853
2378
|
return;
|
|
1854
2379
|
}
|
|
1855
|
-
onClick
|
|
2380
|
+
eventContext.onClick();
|
|
2381
|
+
onClick === null || onClick === void 0 || onClick(event);
|
|
1856
2382
|
};
|
|
1857
2383
|
const loadingSpinner = jsx(Spinner, {
|
|
1858
2384
|
className: loadingCls,
|
|
@@ -1930,746 +2456,710 @@ const Button = /* #__PURE__ */(() => {
|
|
|
1930
2456
|
return Button;
|
|
1931
2457
|
})();
|
|
1932
2458
|
|
|
1933
|
-
|
|
1934
|
-
|
|
2459
|
+
const {
|
|
2460
|
+
Text: AntDText$1
|
|
2461
|
+
} = Typography$1;
|
|
2462
|
+
function getTextEmotionStyles$1(theme, props) {
|
|
2463
|
+
return /*#__PURE__*/css({
|
|
2464
|
+
'&&': {
|
|
2465
|
+
display: 'block',
|
|
2466
|
+
fontSize: theme.typography.fontSizeSm,
|
|
2467
|
+
lineHeight: theme.typography.lineHeightSm,
|
|
2468
|
+
color: theme.colors.textSecondary,
|
|
2469
|
+
...(props.withoutMargins && {
|
|
2470
|
+
'&&': {
|
|
2471
|
+
marginTop: 0,
|
|
2472
|
+
marginBottom: 0
|
|
2473
|
+
}
|
|
2474
|
+
})
|
|
2475
|
+
}
|
|
2476
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getTextEmotionStyles;");
|
|
1935
2477
|
}
|
|
1936
|
-
|
|
1937
|
-
const
|
|
1938
|
-
let {
|
|
1939
|
-
children,
|
|
1940
|
-
title,
|
|
1941
|
-
placement = 'top',
|
|
1942
|
-
dataTestId,
|
|
2478
|
+
function Hint(userProps) {
|
|
2479
|
+
const {
|
|
1943
2480
|
dangerouslySetAntdProps,
|
|
1944
|
-
|
|
1945
|
-
|
|
2481
|
+
bold,
|
|
2482
|
+
withoutMargins,
|
|
2483
|
+
color,
|
|
1946
2484
|
...props
|
|
1947
|
-
} =
|
|
2485
|
+
} = userProps;
|
|
1948
2486
|
const {
|
|
1949
2487
|
theme
|
|
1950
2488
|
} = useDesignSystemTheme();
|
|
1951
|
-
const id = useUniqueId('dubois-tooltip-component-');
|
|
1952
|
-
if (!title) {
|
|
1953
|
-
return jsx(React__default.Fragment, {
|
|
1954
|
-
children: children
|
|
1955
|
-
});
|
|
1956
|
-
}
|
|
1957
|
-
const titleProps = silenceScreenReader ? {} : {
|
|
1958
|
-
'aria-live': 'polite',
|
|
1959
|
-
'aria-relevant': 'additions'
|
|
1960
|
-
};
|
|
1961
|
-
if (dataTestId) {
|
|
1962
|
-
// TODO FEINF-1337 - this should turn into data-testid
|
|
1963
|
-
titleProps['data-test-id'] = dataTestId;
|
|
1964
|
-
}
|
|
1965
|
-
const liveTitle = title && /*#__PURE__*/React__default.isValidElement(title) ? /*#__PURE__*/React__default.cloneElement(title, titleProps) : jsx("span", {
|
|
1966
|
-
...titleProps,
|
|
1967
|
-
children: title
|
|
1968
|
-
});
|
|
1969
|
-
const ariaProps = {
|
|
1970
|
-
[useAsLabel ? 'aria-labelledby' : 'aria-describedby']: id,
|
|
1971
|
-
'aria-hidden': false
|
|
1972
|
-
};
|
|
1973
|
-
const childWithProps = /*#__PURE__*/React__default.isValidElement(children) ? /*#__PURE__*/React__default.cloneElement(children, {
|
|
1974
|
-
...ariaProps,
|
|
1975
|
-
...children.props
|
|
1976
|
-
}) : _isNil(children) ? children : jsx("span", {
|
|
1977
|
-
...ariaProps,
|
|
1978
|
-
children: children
|
|
1979
|
-
});
|
|
1980
|
-
const {
|
|
1981
|
-
overlayInnerStyle,
|
|
1982
|
-
overlayStyle,
|
|
1983
|
-
...delegatedDangerouslySetAntdProps
|
|
1984
|
-
} = dangerouslySetAntdProps || {};
|
|
1985
2489
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
1986
|
-
children: jsx(
|
|
1987
|
-
id: id,
|
|
1988
|
-
title: liveTitle,
|
|
1989
|
-
placement: placement
|
|
1990
|
-
// Always trigger on hover and focus
|
|
1991
|
-
,
|
|
1992
|
-
trigger: ['hover', 'focus'],
|
|
1993
|
-
overlayInnerStyle: {
|
|
1994
|
-
backgroundColor: '#2F3941',
|
|
1995
|
-
lineHeight: '22px',
|
|
1996
|
-
padding: '4px 8px',
|
|
1997
|
-
boxShadow: theme.general.shadowLow,
|
|
1998
|
-
...overlayInnerStyle
|
|
1999
|
-
},
|
|
2000
|
-
overlayStyle: {
|
|
2001
|
-
zIndex: theme.options.zIndexBase + 70,
|
|
2002
|
-
...overlayStyle
|
|
2003
|
-
},
|
|
2004
|
-
css: /*#__PURE__*/css({
|
|
2005
|
-
...getAnimationCss(theme.options.enableAnimation)
|
|
2006
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:Tooltip;"),
|
|
2007
|
-
...delegatedDangerouslySetAntdProps,
|
|
2490
|
+
children: jsx(AntDText$1, {
|
|
2008
2491
|
...props,
|
|
2009
|
-
|
|
2492
|
+
css: getTextEmotionStyles$1(theme, userProps),
|
|
2493
|
+
...dangerouslySetAntdProps
|
|
2010
2494
|
})
|
|
2011
2495
|
});
|
|
2012
|
-
}
|
|
2496
|
+
}
|
|
2013
2497
|
|
|
2014
|
-
const
|
|
2015
|
-
|
|
2016
|
-
validationState
|
|
2017
|
-
} = _ref;
|
|
2018
|
-
const inputClass = `.${clsPrefix}-input`;
|
|
2019
|
-
const affixClass = `.${clsPrefix}-input-affix-wrapper`;
|
|
2020
|
-
const affixClassFocused = `.${clsPrefix}-input-affix-wrapper-focused`;
|
|
2021
|
-
const clearIcon = `.${clsPrefix}-input-clear-icon`;
|
|
2022
|
-
const prefixIcon = `.${clsPrefix}-input-prefix`;
|
|
2023
|
-
const suffixIcon = `.${clsPrefix}-input-suffix`;
|
|
2024
|
-
const validationColor = getValidationStateColor(theme, validationState);
|
|
2498
|
+
const getLinkStyles = (theme, clsPrefix) => {
|
|
2499
|
+
const classTypography = `.${clsPrefix}-typography`;
|
|
2025
2500
|
const styles = {
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
minHeight: theme.general.heightSm,
|
|
2029
|
-
...(validationState && {
|
|
2030
|
-
borderColor: validationColor
|
|
2031
|
-
}),
|
|
2032
|
-
'&:hover': {
|
|
2033
|
-
borderColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundHover
|
|
2034
|
-
},
|
|
2035
|
-
'&:focus': {
|
|
2036
|
-
outlineColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundDefault,
|
|
2037
|
-
outlineWidth: 2,
|
|
2038
|
-
outlineOffset: -2,
|
|
2039
|
-
outlineStyle: 'solid',
|
|
2040
|
-
boxShadow: 'none',
|
|
2041
|
-
borderColor: 'transparent'
|
|
2042
|
-
},
|
|
2043
|
-
'&:disabled': {
|
|
2044
|
-
backgroundColor: theme.colors.actionDisabledBackground,
|
|
2045
|
-
color: theme.colors.actionDisabledText
|
|
2046
|
-
},
|
|
2047
|
-
'&::placeholder': {
|
|
2048
|
-
color: theme.colors.textPlaceholder
|
|
2049
|
-
}
|
|
2050
|
-
},
|
|
2051
|
-
[`&${inputClass}, ${inputClass}`]: {
|
|
2052
|
-
...(useTransparent && {
|
|
2053
|
-
backgroundColor: 'transparent'
|
|
2054
|
-
})
|
|
2055
|
-
},
|
|
2056
|
-
[`&${affixClass}`]: {
|
|
2057
|
-
...(useTransparent && {
|
|
2058
|
-
backgroundColor: 'transparent'
|
|
2059
|
-
}),
|
|
2060
|
-
lineHeight: theme.typography.lineHeightBase,
|
|
2061
|
-
paddingTop: 5,
|
|
2062
|
-
paddingBottom: 5,
|
|
2063
|
-
minHeight: theme.general.heightSm,
|
|
2064
|
-
'::before': {
|
|
2065
|
-
lineHeight: theme.typography.lineHeightBase
|
|
2066
|
-
},
|
|
2067
|
-
'&:hover': {
|
|
2068
|
-
borderColor: theme.colors.actionPrimaryBackgroundHover
|
|
2069
|
-
},
|
|
2070
|
-
[`input.${clsPrefix}-input`]: {
|
|
2071
|
-
borderRadius: 0
|
|
2072
|
-
}
|
|
2073
|
-
},
|
|
2074
|
-
[`&${affixClassFocused}`]: {
|
|
2075
|
-
boxShadow: 'none',
|
|
2076
|
-
'&&, &:focus': {
|
|
2077
|
-
outlineColor: theme.colors.actionPrimaryBackgroundDefault,
|
|
2078
|
-
outlineWidth: 2,
|
|
2079
|
-
outlineOffset: -2,
|
|
2080
|
-
outlineStyle: 'solid',
|
|
2081
|
-
boxShadow: 'none',
|
|
2082
|
-
borderColor: 'transparent'
|
|
2083
|
-
}
|
|
2501
|
+
[`&${classTypography}, &${classTypography}:focus`]: {
|
|
2502
|
+
color: theme.colors.actionTertiaryTextDefault
|
|
2084
2503
|
},
|
|
2085
|
-
[
|
|
2086
|
-
|
|
2504
|
+
[`&${classTypography}:hover, &${classTypography}:hover .anticon`]: {
|
|
2505
|
+
color: theme.colors.actionTertiaryTextHover,
|
|
2506
|
+
textDecoration: 'underline'
|
|
2087
2507
|
},
|
|
2088
|
-
[
|
|
2089
|
-
|
|
2090
|
-
|
|
2508
|
+
[`&${classTypography}:active, &${classTypography}:active .anticon`]: {
|
|
2509
|
+
color: theme.colors.actionTertiaryTextPress,
|
|
2510
|
+
textDecoration: 'underline'
|
|
2091
2511
|
},
|
|
2092
|
-
[
|
|
2093
|
-
|
|
2094
|
-
color: theme.colors.textSecondary
|
|
2512
|
+
[`&${classTypography}:focus-visible`]: {
|
|
2513
|
+
textDecoration: 'underline'
|
|
2095
2514
|
},
|
|
2096
|
-
|
|
2515
|
+
'.anticon': {
|
|
2516
|
+
fontSize: 12,
|
|
2517
|
+
verticalAlign: 'baseline'
|
|
2518
|
+
}
|
|
2097
2519
|
};
|
|
2098
|
-
return /*#__PURE__*/css(
|
|
2520
|
+
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getLinkStyles;");
|
|
2099
2521
|
};
|
|
2100
|
-
const
|
|
2101
|
-
const
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
flexGrow: 1,
|
|
2108
|
-
'&:disabled': {
|
|
2109
|
-
border: 'none',
|
|
2110
|
-
'&:hover': {
|
|
2111
|
-
borderRight: `1px solid ${theme.colors.actionDisabledText} !important`
|
|
2112
|
-
}
|
|
2113
|
-
}
|
|
2114
|
-
},
|
|
2115
|
-
[`& > ${buttonClass} > span`]: {
|
|
2116
|
-
verticalAlign: 'middle'
|
|
2117
|
-
},
|
|
2118
|
-
[`& > ${buttonClass}:disabled, & > ${buttonClass}:disabled:hover`]: {
|
|
2119
|
-
borderLeft: `1px solid ${theme.colors.actionDisabledText} !important`
|
|
2120
|
-
}
|
|
2121
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getInputGroupStyling;");
|
|
2522
|
+
const getEllipsisNewTabLinkStyles = () => {
|
|
2523
|
+
const styles = {
|
|
2524
|
+
paddingRight: 'calc(2px + 1em)',
|
|
2525
|
+
// 1em for icon
|
|
2526
|
+
position: 'relative'
|
|
2527
|
+
};
|
|
2528
|
+
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisNewTabLinkStyles;");
|
|
2122
2529
|
};
|
|
2123
|
-
const
|
|
2530
|
+
const getIconStyles = theme => {
|
|
2531
|
+
const styles = {
|
|
2532
|
+
marginLeft: 2,
|
|
2533
|
+
color: theme.colors.actionTertiaryTextDefault
|
|
2534
|
+
};
|
|
2535
|
+
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getIconStyles;");
|
|
2536
|
+
};
|
|
2537
|
+
const getEllipsisIconStyles = useNewIcons => {
|
|
2538
|
+
const styles = {
|
|
2539
|
+
position: 'absolute',
|
|
2540
|
+
right: 0,
|
|
2541
|
+
bottom: 0,
|
|
2542
|
+
top: 0,
|
|
2543
|
+
display: 'flex',
|
|
2544
|
+
alignItems: 'center',
|
|
2545
|
+
...(useNewIcons && {
|
|
2546
|
+
fontSize: 12
|
|
2547
|
+
})
|
|
2548
|
+
};
|
|
2549
|
+
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisIconStyles;");
|
|
2550
|
+
};
|
|
2551
|
+
const Link = /*#__PURE__*/forwardRef(function Link(_ref, ref) {
|
|
2124
2552
|
let {
|
|
2125
|
-
validationState,
|
|
2126
|
-
autoComplete = 'off',
|
|
2127
2553
|
dangerouslySetAntdProps,
|
|
2128
|
-
dangerouslyAppendEmotionCSS,
|
|
2129
2554
|
...props
|
|
2130
|
-
} =
|
|
2555
|
+
} = _ref;
|
|
2131
2556
|
const {
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2557
|
+
children,
|
|
2558
|
+
openInNewTab,
|
|
2559
|
+
...restProps
|
|
2560
|
+
} = props;
|
|
2135
2561
|
const {
|
|
2136
|
-
|
|
2137
|
-
|
|
2562
|
+
theme,
|
|
2563
|
+
classNamePrefix
|
|
2564
|
+
} = useDesignSystemTheme();
|
|
2565
|
+
const newTabProps = {
|
|
2566
|
+
rel: 'noopener noreferrer',
|
|
2567
|
+
target: '_blank'
|
|
2568
|
+
};
|
|
2569
|
+
const linkProps = openInNewTab ? {
|
|
2570
|
+
...restProps,
|
|
2571
|
+
...newTabProps
|
|
2572
|
+
} : {
|
|
2573
|
+
...restProps
|
|
2574
|
+
};
|
|
2575
|
+
const linkStyles = props.ellipsis && openInNewTab ? [getLinkStyles(theme, classNamePrefix), getEllipsisNewTabLinkStyles()] : getLinkStyles(theme, classNamePrefix);
|
|
2576
|
+
const iconStyles = props.ellipsis ? [getIconStyles(theme), getEllipsisIconStyles()] : getIconStyles(theme);
|
|
2138
2577
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
2139
|
-
children:
|
|
2578
|
+
children: jsxs(Typography$1.Link, {
|
|
2579
|
+
"aria-disabled": linkProps.disabled,
|
|
2580
|
+
css: linkStyles,
|
|
2140
2581
|
ref: ref,
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2582
|
+
...linkProps,
|
|
2583
|
+
...dangerouslySetAntdProps,
|
|
2584
|
+
children: [children, openInNewTab ? jsx(NewWindowIcon$1, {
|
|
2585
|
+
css: iconStyles,
|
|
2586
|
+
...newTabProps
|
|
2587
|
+
}) : null]
|
|
2147
2588
|
})
|
|
2148
2589
|
});
|
|
2149
2590
|
});
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2591
|
+
|
|
2592
|
+
const {
|
|
2593
|
+
Paragraph: AntDParagraph
|
|
2594
|
+
} = Typography$1;
|
|
2595
|
+
function getParagraphEmotionStyles(theme, props) {
|
|
2596
|
+
return /*#__PURE__*/css({
|
|
2597
|
+
'&&': {
|
|
2598
|
+
fontSize: theme.typography.fontSizeBase,
|
|
2599
|
+
fontWeight: theme.typography.typographyRegularFontWeight,
|
|
2600
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
2601
|
+
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
2602
|
+
},
|
|
2603
|
+
'& .anticon': {
|
|
2604
|
+
verticalAlign: 'text-bottom'
|
|
2605
|
+
}
|
|
2606
|
+
}, props.disabled && {
|
|
2607
|
+
'&&': {
|
|
2608
|
+
color: theme.colors.actionDisabledText
|
|
2609
|
+
}
|
|
2610
|
+
}, props.withoutMargins && {
|
|
2611
|
+
'&&': {
|
|
2612
|
+
marginTop: 0,
|
|
2613
|
+
marginBottom: 0
|
|
2614
|
+
}
|
|
2615
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getParagraphEmotionStyles;");
|
|
2616
|
+
}
|
|
2617
|
+
function Paragraph(userProps) {
|
|
2162
2618
|
const {
|
|
2163
|
-
USE_TRANSPARENT_INPUT: useTransparent
|
|
2164
|
-
} = useDesignSystemFlags();
|
|
2165
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
2166
|
-
children: jsx(Input$1.Password, {
|
|
2167
|
-
visibilityToggle: false,
|
|
2168
|
-
ref: ref,
|
|
2169
|
-
autoComplete: autoComplete,
|
|
2170
|
-
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
2171
|
-
validationState
|
|
2172
|
-
}, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Password;"],
|
|
2173
|
-
...props,
|
|
2174
|
-
...dangerouslySetAntdProps
|
|
2175
|
-
})
|
|
2176
|
-
});
|
|
2177
|
-
});
|
|
2178
|
-
const DuboisInput = /*#__PURE__*/forwardRef(function Input(_ref4, ref) {
|
|
2179
|
-
let {
|
|
2180
|
-
validationState,
|
|
2181
|
-
autoComplete = 'off',
|
|
2182
2619
|
dangerouslySetAntdProps,
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
onClear,
|
|
2620
|
+
withoutMargins,
|
|
2621
|
+
color,
|
|
2186
2622
|
...props
|
|
2187
|
-
} =
|
|
2623
|
+
} = userProps;
|
|
2188
2624
|
const {
|
|
2189
|
-
classNamePrefix,
|
|
2190
2625
|
theme
|
|
2191
2626
|
} = useDesignSystemTheme();
|
|
2192
|
-
const {
|
|
2193
|
-
USE_TRANSPARENT_INPUT: useTransparent
|
|
2194
|
-
} = useDesignSystemFlags();
|
|
2195
|
-
const handleChange = e => {
|
|
2196
|
-
// If the input is cleared, call the onClear handler, but only
|
|
2197
|
-
// if the event is not an input event -- which is the case when you click the
|
|
2198
|
-
// ant-provided (X) button.
|
|
2199
|
-
if (!e.target.value && e.nativeEvent instanceof InputEvent === false && onClear) {
|
|
2200
|
-
onClear === null || onClear === void 0 ? void 0 : onClear();
|
|
2201
|
-
} else {
|
|
2202
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
2203
|
-
}
|
|
2204
|
-
};
|
|
2205
2627
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
2206
|
-
children: jsx(
|
|
2207
|
-
autoComplete: autoComplete,
|
|
2208
|
-
ref: ref,
|
|
2209
|
-
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
2210
|
-
validationState
|
|
2211
|
-
}, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:DuboisInput;"],
|
|
2212
|
-
onChange: handleChange,
|
|
2628
|
+
children: jsx(AntDParagraph, {
|
|
2213
2629
|
...props,
|
|
2630
|
+
className: props.className,
|
|
2631
|
+
css: getParagraphEmotionStyles(theme, userProps),
|
|
2214
2632
|
...dangerouslySetAntdProps
|
|
2215
2633
|
})
|
|
2216
2634
|
});
|
|
2217
|
-
}
|
|
2218
|
-
|
|
2219
|
-
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
const {
|
|
2638
|
+
Text: AntDText
|
|
2639
|
+
} = Typography$1;
|
|
2640
|
+
function getTextEmotionStyles(theme, props) {
|
|
2641
|
+
return /*#__PURE__*/css({
|
|
2642
|
+
'&&': {
|
|
2643
|
+
fontSize: theme.typography.fontSizeBase,
|
|
2644
|
+
fontWeight: theme.typography.typographyRegularFontWeight,
|
|
2645
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
2646
|
+
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
2647
|
+
}
|
|
2648
|
+
}, props.disabled && {
|
|
2649
|
+
'&&': {
|
|
2650
|
+
color: theme.colors.actionDisabledText
|
|
2651
|
+
}
|
|
2652
|
+
}, props.hint && {
|
|
2653
|
+
'&&': {
|
|
2654
|
+
fontSize: theme.typography.fontSizeSm,
|
|
2655
|
+
lineHeight: theme.typography.lineHeightSm
|
|
2656
|
+
}
|
|
2657
|
+
}, props.bold && {
|
|
2658
|
+
'&&': {
|
|
2659
|
+
fontSize: theme.typography.fontSizeBase,
|
|
2660
|
+
fontWeight: theme.typography.typographyBoldFontWeight,
|
|
2661
|
+
lineHeight: theme.typography.lineHeightBase
|
|
2662
|
+
}
|
|
2663
|
+
}, props.code && {
|
|
2664
|
+
'&& > code': {
|
|
2665
|
+
color: theme.colors.textPrimary,
|
|
2666
|
+
fontSize: theme.typography.fontSizeBase,
|
|
2667
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
2668
|
+
background: theme.colors.typographyCodeBg,
|
|
2669
|
+
fontFamily: 'monospace',
|
|
2670
|
+
borderRadius: theme.borders.borderRadiusMd,
|
|
2671
|
+
padding: '2px 4px',
|
|
2672
|
+
border: 'unset',
|
|
2673
|
+
margin: 0
|
|
2674
|
+
}
|
|
2675
|
+
}, props.size && {
|
|
2676
|
+
'&&': (() => {
|
|
2677
|
+
switch (props.size) {
|
|
2678
|
+
case 'xxl':
|
|
2679
|
+
return {
|
|
2680
|
+
fontSize: theme.typography.fontSizeXxl,
|
|
2681
|
+
lineHeight: theme.typography.lineHeightXxl,
|
|
2682
|
+
'& .anticon': {
|
|
2683
|
+
lineHeight: theme.typography.lineHeightXxl,
|
|
2684
|
+
verticalAlign: 'middle'
|
|
2685
|
+
}
|
|
2686
|
+
};
|
|
2687
|
+
case 'xl':
|
|
2688
|
+
return {
|
|
2689
|
+
fontSize: theme.typography.fontSizeXl,
|
|
2690
|
+
lineHeight: theme.typography.lineHeightXl,
|
|
2691
|
+
'& .anticon': {
|
|
2692
|
+
lineHeight: theme.typography.lineHeightXl,
|
|
2693
|
+
verticalAlign: 'middle'
|
|
2694
|
+
}
|
|
2695
|
+
};
|
|
2696
|
+
case 'lg':
|
|
2697
|
+
return {
|
|
2698
|
+
fontSize: theme.typography.fontSizeLg,
|
|
2699
|
+
lineHeight: theme.typography.lineHeightLg,
|
|
2700
|
+
'& .anticon': {
|
|
2701
|
+
lineHeight: theme.typography.lineHeightLg,
|
|
2702
|
+
verticalAlign: 'middle'
|
|
2703
|
+
}
|
|
2704
|
+
};
|
|
2705
|
+
case 'sm':
|
|
2706
|
+
return {
|
|
2707
|
+
fontSize: theme.typography.fontSizeSm,
|
|
2708
|
+
lineHeight: theme.typography.lineHeightSm,
|
|
2709
|
+
'& .anticon': {
|
|
2710
|
+
verticalAlign: '-0.219em'
|
|
2711
|
+
}
|
|
2712
|
+
};
|
|
2713
|
+
default:
|
|
2714
|
+
return {};
|
|
2715
|
+
}
|
|
2716
|
+
})()
|
|
2717
|
+
}, props.withoutMargins && {
|
|
2718
|
+
'&&': {
|
|
2719
|
+
marginTop: 0,
|
|
2720
|
+
marginBottom: 0
|
|
2721
|
+
}
|
|
2722
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getTextEmotionStyles;");
|
|
2723
|
+
}
|
|
2724
|
+
function Text(userProps) {
|
|
2725
|
+
// Omit props that are not supported by `antd`
|
|
2726
|
+
const {
|
|
2220
2727
|
dangerouslySetAntdProps,
|
|
2221
|
-
|
|
2222
|
-
|
|
2728
|
+
bold,
|
|
2729
|
+
hint,
|
|
2730
|
+
withoutMargins,
|
|
2731
|
+
color,
|
|
2223
2732
|
...props
|
|
2224
|
-
} =
|
|
2733
|
+
} = userProps;
|
|
2225
2734
|
const {
|
|
2226
|
-
classNamePrefix,
|
|
2227
2735
|
theme
|
|
2228
2736
|
} = useDesignSystemTheme();
|
|
2229
2737
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
2230
|
-
children: jsx(
|
|
2231
|
-
css: [getInputGroupStyling(classNamePrefix, theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Group;"],
|
|
2232
|
-
compact: compact,
|
|
2738
|
+
children: jsx(AntDText, {
|
|
2233
2739
|
...props,
|
|
2740
|
+
className: props.className,
|
|
2741
|
+
css: getTextEmotionStyles(theme, userProps),
|
|
2234
2742
|
...dangerouslySetAntdProps
|
|
2235
2743
|
})
|
|
2236
2744
|
});
|
|
2237
|
-
}
|
|
2238
|
-
|
|
2239
|
-
// Properly creates the namespace and dot-notation components with correct types.
|
|
2240
|
-
const InputNamespace = /* #__PURE__ */Object.assign(DuboisInput, {
|
|
2241
|
-
TextArea,
|
|
2242
|
-
Password,
|
|
2243
|
-
Group: Group$1
|
|
2244
|
-
});
|
|
2245
|
-
const Input = InputNamespace;
|
|
2246
|
-
|
|
2247
|
-
// TODO: I'm doing this to support storybook's docgen;
|
|
2248
|
-
// We should remove this once we have a better storybook integration,
|
|
2249
|
-
// since these will be exposed in the library's exports.
|
|
2250
|
-
const __INTERNAL_DO_NOT_USE__TextArea = TextArea;
|
|
2251
|
-
const __INTERNAL_DO_NOT_USE__Password = Password;
|
|
2252
|
-
const __INTERNAL_DO_NOT_USE_DEDUPE__Group = Group$1;
|
|
2745
|
+
}
|
|
2253
2746
|
|
|
2254
2747
|
const {
|
|
2255
|
-
|
|
2748
|
+
Title: AntDTitle
|
|
2256
2749
|
} = Typography$1;
|
|
2257
|
-
function
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
fontSize: theme.typography.fontSizeSm,
|
|
2262
|
-
lineHeight: theme.typography.lineHeightSm,
|
|
2263
|
-
color: theme.colors.textSecondary,
|
|
2264
|
-
...(props.withoutMargins && {
|
|
2750
|
+
function getLevelStyles(theme, props) {
|
|
2751
|
+
switch (props.level) {
|
|
2752
|
+
case 1:
|
|
2753
|
+
return /*#__PURE__*/css({
|
|
2265
2754
|
'&&': {
|
|
2266
|
-
|
|
2267
|
-
|
|
2755
|
+
fontSize: theme.typography.fontSizeXxl,
|
|
2756
|
+
lineHeight: theme.typography.lineHeightXxl,
|
|
2757
|
+
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2758
|
+
},
|
|
2759
|
+
'& > .anticon': {
|
|
2760
|
+
lineHeight: theme.typography.lineHeightXxl
|
|
2268
2761
|
}
|
|
2269
|
-
})
|
|
2762
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2763
|
+
case 2:
|
|
2764
|
+
return /*#__PURE__*/css({
|
|
2765
|
+
'&&': {
|
|
2766
|
+
fontSize: theme.typography.fontSizeXl,
|
|
2767
|
+
lineHeight: theme.typography.lineHeightXl,
|
|
2768
|
+
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2769
|
+
},
|
|
2770
|
+
'& > .anticon': {
|
|
2771
|
+
lineHeight: theme.typography.lineHeightXl
|
|
2772
|
+
}
|
|
2773
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2774
|
+
case 3:
|
|
2775
|
+
return /*#__PURE__*/css({
|
|
2776
|
+
'&&': {
|
|
2777
|
+
fontSize: theme.typography.fontSizeLg,
|
|
2778
|
+
lineHeight: theme.typography.lineHeightLg,
|
|
2779
|
+
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2780
|
+
},
|
|
2781
|
+
'& > .anticon': {
|
|
2782
|
+
lineHeight: theme.typography.lineHeightLg
|
|
2783
|
+
}
|
|
2784
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2785
|
+
case 4:
|
|
2786
|
+
default:
|
|
2787
|
+
return /*#__PURE__*/css({
|
|
2788
|
+
'&&': {
|
|
2789
|
+
fontSize: theme.typography.fontSizeMd,
|
|
2790
|
+
lineHeight: theme.typography.lineHeightMd,
|
|
2791
|
+
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2792
|
+
},
|
|
2793
|
+
'& > .anticon': {
|
|
2794
|
+
lineHeight: theme.typography.lineHeightMd
|
|
2795
|
+
}
|
|
2796
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
function getTitleEmotionStyles(theme, props) {
|
|
2800
|
+
return /*#__PURE__*/css(getLevelStyles(theme, props), {
|
|
2801
|
+
'&&': {
|
|
2802
|
+
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
2803
|
+
},
|
|
2804
|
+
'& > .anticon': {
|
|
2805
|
+
verticalAlign: 'middle'
|
|
2270
2806
|
}
|
|
2271
|
-
},
|
|
2807
|
+
}, props.withoutMargins && {
|
|
2808
|
+
'&&': {
|
|
2809
|
+
marginTop: '0 !important',
|
|
2810
|
+
// override general styling
|
|
2811
|
+
marginBottom: '0 !important' // override general styling
|
|
2812
|
+
}
|
|
2813
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getTitleEmotionStyles;");
|
|
2272
2814
|
}
|
|
2273
|
-
function
|
|
2815
|
+
function Title(userProps) {
|
|
2274
2816
|
const {
|
|
2275
2817
|
dangerouslySetAntdProps,
|
|
2276
|
-
bold,
|
|
2277
2818
|
withoutMargins,
|
|
2278
2819
|
color,
|
|
2279
2820
|
...props
|
|
2280
|
-
} = userProps;
|
|
2821
|
+
} = userProps;
|
|
2822
|
+
const {
|
|
2823
|
+
theme
|
|
2824
|
+
} = useDesignSystemTheme();
|
|
2825
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
2826
|
+
children: jsx(AntDTitle, {
|
|
2827
|
+
...props,
|
|
2828
|
+
className: props.className,
|
|
2829
|
+
css: getTitleEmotionStyles(theme, userProps),
|
|
2830
|
+
...dangerouslySetAntdProps
|
|
2831
|
+
})
|
|
2832
|
+
});
|
|
2833
|
+
}
|
|
2834
|
+
|
|
2835
|
+
const Typography = /* #__PURE__ */(() => {
|
|
2836
|
+
function Typography(_ref) {
|
|
2837
|
+
let {
|
|
2838
|
+
dangerouslySetAntdProps,
|
|
2839
|
+
...props
|
|
2840
|
+
} = _ref;
|
|
2841
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
2842
|
+
children: jsx(Typography$1, {
|
|
2843
|
+
...props,
|
|
2844
|
+
...dangerouslySetAntdProps
|
|
2845
|
+
})
|
|
2846
|
+
});
|
|
2847
|
+
}
|
|
2848
|
+
Typography.Text = Text;
|
|
2849
|
+
Typography.Title = Title;
|
|
2850
|
+
Typography.Paragraph = Paragraph;
|
|
2851
|
+
Typography.Link = Link;
|
|
2852
|
+
Typography.Hint = Hint;
|
|
2853
|
+
return Typography;
|
|
2854
|
+
})();
|
|
2855
|
+
|
|
2856
|
+
const Tooltip = _ref => {
|
|
2857
|
+
let {
|
|
2858
|
+
children,
|
|
2859
|
+
title,
|
|
2860
|
+
placement = 'top',
|
|
2861
|
+
dataTestId,
|
|
2862
|
+
dangerouslySetAntdProps,
|
|
2863
|
+
silenceScreenReader = false,
|
|
2864
|
+
useAsLabel = false,
|
|
2865
|
+
...props
|
|
2866
|
+
} = _ref;
|
|
2281
2867
|
const {
|
|
2282
2868
|
theme
|
|
2283
2869
|
} = useDesignSystemTheme();
|
|
2870
|
+
const id = useUniqueId('dubois-tooltip-component-');
|
|
2871
|
+
if (!title) {
|
|
2872
|
+
return jsx(React__default.Fragment, {
|
|
2873
|
+
children: children
|
|
2874
|
+
});
|
|
2875
|
+
}
|
|
2876
|
+
const titleProps = silenceScreenReader ? {} : {
|
|
2877
|
+
'aria-live': 'polite',
|
|
2878
|
+
'aria-relevant': 'additions'
|
|
2879
|
+
};
|
|
2880
|
+
if (dataTestId) {
|
|
2881
|
+
// TODO FEINF-1337 - this should turn into data-testid
|
|
2882
|
+
titleProps['data-test-id'] = dataTestId;
|
|
2883
|
+
}
|
|
2884
|
+
const liveTitle = title && /*#__PURE__*/React__default.isValidElement(title) ? /*#__PURE__*/React__default.cloneElement(title, titleProps) : jsx("span", {
|
|
2885
|
+
...titleProps,
|
|
2886
|
+
children: title
|
|
2887
|
+
});
|
|
2888
|
+
const ariaProps = {
|
|
2889
|
+
[useAsLabel ? 'aria-labelledby' : 'aria-describedby']: id,
|
|
2890
|
+
'aria-hidden': false
|
|
2891
|
+
};
|
|
2892
|
+
const childWithProps = /*#__PURE__*/React__default.isValidElement(children) ? /*#__PURE__*/React__default.cloneElement(children, {
|
|
2893
|
+
...ariaProps,
|
|
2894
|
+
...children.props
|
|
2895
|
+
}) : _isNil(children) ? children : jsx("span", {
|
|
2896
|
+
...ariaProps,
|
|
2897
|
+
children: children
|
|
2898
|
+
});
|
|
2899
|
+
const {
|
|
2900
|
+
overlayInnerStyle,
|
|
2901
|
+
overlayStyle,
|
|
2902
|
+
...delegatedDangerouslySetAntdProps
|
|
2903
|
+
} = dangerouslySetAntdProps || {};
|
|
2284
2904
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
2285
|
-
children: jsx(
|
|
2905
|
+
children: jsx(Tooltip$1, {
|
|
2906
|
+
id: id,
|
|
2907
|
+
title: liveTitle,
|
|
2908
|
+
placement: placement
|
|
2909
|
+
// Always trigger on hover and focus
|
|
2910
|
+
,
|
|
2911
|
+
trigger: ['hover', 'focus'],
|
|
2912
|
+
overlayInnerStyle: {
|
|
2913
|
+
backgroundColor: '#2F3941',
|
|
2914
|
+
lineHeight: '22px',
|
|
2915
|
+
padding: '4px 8px',
|
|
2916
|
+
boxShadow: theme.general.shadowLow,
|
|
2917
|
+
...overlayInnerStyle,
|
|
2918
|
+
...getDarkModePortalStyles(theme)
|
|
2919
|
+
},
|
|
2920
|
+
overlayStyle: {
|
|
2921
|
+
zIndex: theme.options.zIndexBase + 70,
|
|
2922
|
+
...overlayStyle
|
|
2923
|
+
},
|
|
2924
|
+
css: /*#__PURE__*/css({
|
|
2925
|
+
...getAnimationCss(theme.options.enableAnimation)
|
|
2926
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Tooltip;"),
|
|
2927
|
+
...delegatedDangerouslySetAntdProps,
|
|
2286
2928
|
...props,
|
|
2287
|
-
|
|
2288
|
-
...dangerouslySetAntdProps
|
|
2929
|
+
children: childWithProps
|
|
2289
2930
|
})
|
|
2290
2931
|
});
|
|
2291
|
-
}
|
|
2932
|
+
};
|
|
2292
2933
|
|
|
2293
|
-
const
|
|
2294
|
-
const
|
|
2295
|
-
const
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
}
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2934
|
+
const getInputGroupStyling = (clsPrefix, theme) => {
|
|
2935
|
+
const inputClass = `.${clsPrefix}-input`;
|
|
2936
|
+
const buttonClass = `.${clsPrefix}-btn`;
|
|
2937
|
+
return /*#__PURE__*/css({
|
|
2938
|
+
display: 'inline-flex !important',
|
|
2939
|
+
width: 'auto',
|
|
2940
|
+
[`& > ${inputClass}`]: {
|
|
2941
|
+
flexGrow: 1,
|
|
2942
|
+
'&:disabled': {
|
|
2943
|
+
border: 'none',
|
|
2944
|
+
'&:hover': {
|
|
2945
|
+
borderRight: `1px solid ${theme.colors.actionDisabledText} !important`
|
|
2946
|
+
}
|
|
2947
|
+
}
|
|
2307
2948
|
},
|
|
2308
|
-
[
|
|
2309
|
-
|
|
2949
|
+
[`& > ${buttonClass} > span`]: {
|
|
2950
|
+
verticalAlign: 'middle'
|
|
2310
2951
|
},
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
...(centerIcons ? {
|
|
2314
|
-
verticalAlign: 'baseline'
|
|
2315
|
-
} : {})
|
|
2952
|
+
[`& > ${buttonClass}:disabled, & > ${buttonClass}:disabled:hover`]: {
|
|
2953
|
+
borderLeft: `1px solid ${theme.colors.actionDisabledText} !important`
|
|
2316
2954
|
}
|
|
2317
|
-
};
|
|
2318
|
-
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getLinkStyles;");
|
|
2319
|
-
};
|
|
2320
|
-
const getEllipsisNewTabLinkStyles = () => {
|
|
2321
|
-
const styles = {
|
|
2322
|
-
paddingRight: 'calc(2px + 1em)',
|
|
2323
|
-
// 1em for icon
|
|
2324
|
-
position: 'relative'
|
|
2325
|
-
};
|
|
2326
|
-
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisNewTabLinkStyles;");
|
|
2327
|
-
};
|
|
2328
|
-
const getIconStyles = theme => {
|
|
2329
|
-
const styles = {
|
|
2330
|
-
marginLeft: 2,
|
|
2331
|
-
color: theme.colors.actionTertiaryTextDefault
|
|
2332
|
-
};
|
|
2333
|
-
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getIconStyles;");
|
|
2334
|
-
};
|
|
2335
|
-
const getEllipsisIconStyles = useNewIcons => {
|
|
2336
|
-
const styles = {
|
|
2337
|
-
position: 'absolute',
|
|
2338
|
-
right: 0,
|
|
2339
|
-
bottom: 0,
|
|
2340
|
-
top: 0,
|
|
2341
|
-
display: 'flex',
|
|
2342
|
-
alignItems: 'center',
|
|
2343
|
-
...(useNewIcons && {
|
|
2344
|
-
fontSize: 12
|
|
2345
|
-
})
|
|
2346
|
-
};
|
|
2347
|
-
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisIconStyles;");
|
|
2955
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getInputGroupStyling;");
|
|
2348
2956
|
};
|
|
2349
|
-
|
|
2957
|
+
const Group$1 = _ref => {
|
|
2350
2958
|
let {
|
|
2351
2959
|
dangerouslySetAntdProps,
|
|
2960
|
+
dangerouslyAppendEmotionCSS,
|
|
2961
|
+
compact = true,
|
|
2352
2962
|
...props
|
|
2353
2963
|
} = _ref;
|
|
2354
2964
|
const {
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
...restProps
|
|
2358
|
-
} = props;
|
|
2359
|
-
const {
|
|
2360
|
-
theme,
|
|
2361
|
-
classNamePrefix
|
|
2965
|
+
classNamePrefix,
|
|
2966
|
+
theme
|
|
2362
2967
|
} = useDesignSystemTheme();
|
|
2363
|
-
const newTabProps = {
|
|
2364
|
-
rel: 'noopener noreferrer',
|
|
2365
|
-
target: '_blank'
|
|
2366
|
-
};
|
|
2367
|
-
const linkProps = openInNewTab ? {
|
|
2368
|
-
...restProps,
|
|
2369
|
-
...newTabProps
|
|
2370
|
-
} : {
|
|
2371
|
-
...restProps
|
|
2372
|
-
};
|
|
2373
|
-
const linkStyles = props.ellipsis && openInNewTab ? [getLinkStyles(theme, classNamePrefix), getEllipsisNewTabLinkStyles()] : getLinkStyles(theme, classNamePrefix);
|
|
2374
|
-
const iconStyles = props.ellipsis ? [getIconStyles(theme), getEllipsisIconStyles()] : getIconStyles(theme);
|
|
2375
2968
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
2376
|
-
children:
|
|
2377
|
-
"
|
|
2378
|
-
|
|
2379
|
-
...
|
|
2380
|
-
...dangerouslySetAntdProps
|
|
2381
|
-
children: [children, openInNewTab ? jsx(NewWindowIcon, {
|
|
2382
|
-
css: iconStyles,
|
|
2383
|
-
...newTabProps
|
|
2384
|
-
}) : null]
|
|
2969
|
+
children: jsx(Input$2.Group, {
|
|
2970
|
+
css: [getInputGroupStyling(classNamePrefix, theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Group;"],
|
|
2971
|
+
compact: compact,
|
|
2972
|
+
...props,
|
|
2973
|
+
...dangerouslySetAntdProps
|
|
2385
2974
|
})
|
|
2386
2975
|
});
|
|
2387
|
-
}
|
|
2976
|
+
};
|
|
2388
2977
|
|
|
2389
|
-
const {
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
const
|
|
2394
|
-
|
|
2978
|
+
const getInputEmotionStyles = (clsPrefix, theme, _ref, useTransparent) => {
|
|
2979
|
+
let {
|
|
2980
|
+
validationState
|
|
2981
|
+
} = _ref;
|
|
2982
|
+
const inputClass = `.${clsPrefix}-input`;
|
|
2983
|
+
const affixClass = `.${clsPrefix}-input-affix-wrapper`;
|
|
2984
|
+
const affixClassFocused = `.${clsPrefix}-input-affix-wrapper-focused`;
|
|
2985
|
+
const clearIcon = `.${clsPrefix}-input-clear-icon`;
|
|
2986
|
+
const prefixIcon = `.${clsPrefix}-input-prefix`;
|
|
2987
|
+
const suffixIcon = `.${clsPrefix}-input-suffix`;
|
|
2988
|
+
const validationColor = getValidationStateColor(theme, validationState);
|
|
2989
|
+
const styles = {
|
|
2395
2990
|
'&&': {
|
|
2396
|
-
fontSize: theme.typography.fontSizeBase,
|
|
2397
2991
|
lineHeight: theme.typography.lineHeightBase,
|
|
2398
|
-
|
|
2992
|
+
minHeight: theme.general.heightSm,
|
|
2993
|
+
...(validationState && {
|
|
2994
|
+
borderColor: validationColor
|
|
2995
|
+
}),
|
|
2996
|
+
'&:hover': {
|
|
2997
|
+
borderColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundHover
|
|
2998
|
+
},
|
|
2999
|
+
'&:focus': {
|
|
3000
|
+
outlineColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundDefault,
|
|
3001
|
+
outlineWidth: 2,
|
|
3002
|
+
outlineOffset: -2,
|
|
3003
|
+
outlineStyle: 'solid',
|
|
3004
|
+
boxShadow: 'none',
|
|
3005
|
+
borderColor: 'transparent'
|
|
3006
|
+
},
|
|
3007
|
+
'&:disabled': {
|
|
3008
|
+
backgroundColor: theme.colors.actionDisabledBackground,
|
|
3009
|
+
color: theme.colors.actionDisabledText
|
|
3010
|
+
},
|
|
3011
|
+
'&::placeholder': {
|
|
3012
|
+
color: theme.colors.textPlaceholder
|
|
3013
|
+
}
|
|
3014
|
+
},
|
|
3015
|
+
[`&${inputClass}, ${inputClass}`]: {
|
|
3016
|
+
...(useTransparent && {
|
|
3017
|
+
backgroundColor: 'transparent'
|
|
3018
|
+
})
|
|
3019
|
+
},
|
|
3020
|
+
[`&${affixClass}`]: {
|
|
3021
|
+
...(useTransparent && {
|
|
3022
|
+
backgroundColor: 'transparent'
|
|
3023
|
+
}),
|
|
3024
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
3025
|
+
paddingTop: 5,
|
|
3026
|
+
paddingBottom: 5,
|
|
3027
|
+
minHeight: theme.general.heightSm,
|
|
3028
|
+
'::before': {
|
|
3029
|
+
lineHeight: theme.typography.lineHeightBase
|
|
3030
|
+
},
|
|
3031
|
+
'&:hover': {
|
|
3032
|
+
borderColor: theme.colors.actionPrimaryBackgroundHover
|
|
3033
|
+
},
|
|
3034
|
+
[`input.${clsPrefix}-input`]: {
|
|
3035
|
+
borderRadius: 0
|
|
3036
|
+
}
|
|
2399
3037
|
},
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
3038
|
+
[`&${affixClassFocused}`]: {
|
|
3039
|
+
boxShadow: 'none',
|
|
3040
|
+
'&&, &:focus': {
|
|
3041
|
+
outlineColor: theme.colors.actionPrimaryBackgroundDefault,
|
|
3042
|
+
outlineWidth: 2,
|
|
3043
|
+
outlineOffset: -2,
|
|
3044
|
+
outlineStyle: 'solid',
|
|
3045
|
+
boxShadow: 'none',
|
|
3046
|
+
borderColor: 'transparent'
|
|
2403
3047
|
}
|
|
2404
|
-
}
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
}
|
|
2416
|
-
|
|
2417
|
-
|
|
3048
|
+
},
|
|
3049
|
+
[clearIcon]: {
|
|
3050
|
+
fontSize: theme.typography.fontSizeSm
|
|
3051
|
+
},
|
|
3052
|
+
[prefixIcon]: {
|
|
3053
|
+
marginRight: theme.spacing.sm,
|
|
3054
|
+
color: theme.colors.textSecondary
|
|
3055
|
+
},
|
|
3056
|
+
[suffixIcon]: {
|
|
3057
|
+
marginLeft: theme.spacing.sm,
|
|
3058
|
+
color: theme.colors.textSecondary
|
|
3059
|
+
},
|
|
3060
|
+
...getAnimationCss(theme.options.enableAnimation)
|
|
3061
|
+
};
|
|
3062
|
+
return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:getInputEmotionStyles;");
|
|
3063
|
+
};
|
|
3064
|
+
const Input$1 = /*#__PURE__*/forwardRef(function Input(_ref2, ref) {
|
|
3065
|
+
let {
|
|
3066
|
+
validationState,
|
|
3067
|
+
autoComplete = 'off',
|
|
2418
3068
|
dangerouslySetAntdProps,
|
|
2419
|
-
|
|
2420
|
-
|
|
3069
|
+
dangerouslyAppendEmotionCSS,
|
|
3070
|
+
onChange,
|
|
3071
|
+
onClear,
|
|
2421
3072
|
...props
|
|
2422
|
-
} =
|
|
3073
|
+
} = _ref2;
|
|
2423
3074
|
const {
|
|
3075
|
+
classNamePrefix,
|
|
2424
3076
|
theme
|
|
2425
3077
|
} = useDesignSystemTheme();
|
|
3078
|
+
const useTransparent = safex('databricks.fe.designsystem.useTransparentInput', false);
|
|
3079
|
+
const handleChange = e => {
|
|
3080
|
+
// If the input is cleared, call the onClear handler, but only
|
|
3081
|
+
// if the event is not an input event -- which is the case when you click the
|
|
3082
|
+
// ant-provided (X) button.
|
|
3083
|
+
if (!e.target.value && e.nativeEvent instanceof InputEvent === false && onClear) {
|
|
3084
|
+
onClear === null || onClear === void 0 || onClear();
|
|
3085
|
+
} else {
|
|
3086
|
+
onChange === null || onChange === void 0 || onChange(e);
|
|
3087
|
+
}
|
|
3088
|
+
};
|
|
2426
3089
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
2427
|
-
children: jsx(
|
|
3090
|
+
children: jsx(Input$2, {
|
|
3091
|
+
autoComplete: autoComplete,
|
|
3092
|
+
ref: ref,
|
|
3093
|
+
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
3094
|
+
validationState
|
|
3095
|
+
}, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Input;"],
|
|
3096
|
+
onChange: handleChange,
|
|
2428
3097
|
...props,
|
|
2429
|
-
className: props.className,
|
|
2430
|
-
css: getParagraphEmotionStyles(theme, userProps),
|
|
2431
3098
|
...dangerouslySetAntdProps
|
|
2432
3099
|
})
|
|
2433
3100
|
});
|
|
2434
|
-
}
|
|
3101
|
+
});
|
|
2435
3102
|
|
|
2436
|
-
const {
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
const centerIcons = safex('databricks.fe.designsystem.centerIconsInText', false);
|
|
2441
|
-
return /*#__PURE__*/css({
|
|
2442
|
-
'&&': {
|
|
2443
|
-
fontSize: theme.typography.fontSizeBase,
|
|
2444
|
-
lineHeight: theme.typography.lineHeightBase,
|
|
2445
|
-
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
2446
|
-
}
|
|
2447
|
-
}, props.disabled && {
|
|
2448
|
-
'&&': {
|
|
2449
|
-
color: theme.colors.actionDisabledText
|
|
2450
|
-
}
|
|
2451
|
-
}, props.hint && {
|
|
2452
|
-
'&&': {
|
|
2453
|
-
fontSize: theme.typography.fontSizeSm,
|
|
2454
|
-
lineHeight: theme.typography.lineHeightSm
|
|
2455
|
-
}
|
|
2456
|
-
}, props.bold && {
|
|
2457
|
-
'&&': {
|
|
2458
|
-
fontSize: theme.typography.fontSizeBase,
|
|
2459
|
-
fontWeight: theme.typography.typographyBoldFontWeight,
|
|
2460
|
-
lineHeight: theme.typography.lineHeightBase
|
|
2461
|
-
}
|
|
2462
|
-
}, props.code && {
|
|
2463
|
-
'&& > code': {
|
|
2464
|
-
fontSize: theme.typography.fontSizeBase,
|
|
2465
|
-
lineHeight: theme.typography.lineHeightBase,
|
|
2466
|
-
background: theme.colors.typographyCodeBg,
|
|
2467
|
-
fontFamily: 'monospace',
|
|
2468
|
-
borderRadius: theme.borders.borderRadiusMd,
|
|
2469
|
-
padding: '2px 4px',
|
|
2470
|
-
border: 'unset',
|
|
2471
|
-
margin: 0
|
|
2472
|
-
}
|
|
2473
|
-
}, props.size && {
|
|
2474
|
-
'&&': (() => {
|
|
2475
|
-
switch (props.size) {
|
|
2476
|
-
case 'xxl':
|
|
2477
|
-
return {
|
|
2478
|
-
fontSize: theme.typography.fontSizeXxl,
|
|
2479
|
-
lineHeight: theme.typography.lineHeightXxl,
|
|
2480
|
-
...(centerIcons && {
|
|
2481
|
-
'& .anticon': {
|
|
2482
|
-
lineHeight: theme.typography.lineHeightXxl,
|
|
2483
|
-
verticalAlign: 'middle'
|
|
2484
|
-
}
|
|
2485
|
-
})
|
|
2486
|
-
};
|
|
2487
|
-
case 'xl':
|
|
2488
|
-
return {
|
|
2489
|
-
fontSize: theme.typography.fontSizeXl,
|
|
2490
|
-
lineHeight: theme.typography.lineHeightXl,
|
|
2491
|
-
...(centerIcons && {
|
|
2492
|
-
'& .anticon': {
|
|
2493
|
-
lineHeight: theme.typography.lineHeightXl,
|
|
2494
|
-
verticalAlign: 'middle'
|
|
2495
|
-
}
|
|
2496
|
-
})
|
|
2497
|
-
};
|
|
2498
|
-
case 'lg':
|
|
2499
|
-
return {
|
|
2500
|
-
fontSize: theme.typography.fontSizeLg,
|
|
2501
|
-
lineHeight: theme.typography.lineHeightLg,
|
|
2502
|
-
...(centerIcons && {
|
|
2503
|
-
'& .anticon': {
|
|
2504
|
-
lineHeight: theme.typography.lineHeightLg,
|
|
2505
|
-
verticalAlign: 'middle'
|
|
2506
|
-
}
|
|
2507
|
-
})
|
|
2508
|
-
};
|
|
2509
|
-
case 'sm':
|
|
2510
|
-
return {
|
|
2511
|
-
fontSize: theme.typography.fontSizeSm,
|
|
2512
|
-
lineHeight: theme.typography.lineHeightSm,
|
|
2513
|
-
...(centerIcons && {
|
|
2514
|
-
'& .anticon': {
|
|
2515
|
-
verticalAlign: '-0.219em'
|
|
2516
|
-
}
|
|
2517
|
-
})
|
|
2518
|
-
};
|
|
2519
|
-
default:
|
|
2520
|
-
return {};
|
|
2521
|
-
}
|
|
2522
|
-
})()
|
|
2523
|
-
}, props.withoutMargins && {
|
|
2524
|
-
'&&': {
|
|
2525
|
-
marginTop: 0,
|
|
2526
|
-
marginBottom: 0
|
|
2527
|
-
}
|
|
2528
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getTextEmotionStyles;");
|
|
2529
|
-
}
|
|
2530
|
-
function Text(userProps) {
|
|
2531
|
-
// Omit props that are not supported by `antd`
|
|
2532
|
-
const {
|
|
3103
|
+
const Password = /*#__PURE__*/forwardRef(function Password(_ref, ref) {
|
|
3104
|
+
let {
|
|
3105
|
+
validationState,
|
|
3106
|
+
autoComplete = 'off',
|
|
2533
3107
|
dangerouslySetAntdProps,
|
|
2534
|
-
|
|
2535
|
-
hint,
|
|
2536
|
-
withoutMargins,
|
|
2537
|
-
color,
|
|
3108
|
+
dangerouslyAppendEmotionCSS,
|
|
2538
3109
|
...props
|
|
2539
|
-
} =
|
|
3110
|
+
} = _ref;
|
|
2540
3111
|
const {
|
|
3112
|
+
classNamePrefix,
|
|
2541
3113
|
theme
|
|
2542
3114
|
} = useDesignSystemTheme();
|
|
3115
|
+
const useTransparent = safex('databricks.fe.designsystem.useTransparentInput', false);
|
|
2543
3116
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
2544
|
-
children: jsx(
|
|
3117
|
+
children: jsx(Input$2.Password, {
|
|
3118
|
+
visibilityToggle: false,
|
|
3119
|
+
ref: ref,
|
|
3120
|
+
autoComplete: autoComplete,
|
|
3121
|
+
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
3122
|
+
validationState
|
|
3123
|
+
}, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Password;"],
|
|
2545
3124
|
...props,
|
|
2546
|
-
className: props.className,
|
|
2547
|
-
css: getTextEmotionStyles(theme, userProps),
|
|
2548
3125
|
...dangerouslySetAntdProps
|
|
2549
3126
|
})
|
|
2550
3127
|
});
|
|
2551
|
-
}
|
|
3128
|
+
});
|
|
2552
3129
|
|
|
2553
|
-
const {
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
const centerIcons = safex('databricks.fe.designsystem.centerIconsInText', false);
|
|
2558
|
-
switch (props.level) {
|
|
2559
|
-
case 1:
|
|
2560
|
-
return /*#__PURE__*/css({
|
|
2561
|
-
'&&': {
|
|
2562
|
-
fontSize: theme.typography.fontSizeXxl,
|
|
2563
|
-
lineHeight: theme.typography.lineHeightXxl,
|
|
2564
|
-
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2565
|
-
},
|
|
2566
|
-
...(centerIcons && {
|
|
2567
|
-
'& > .anticon': {
|
|
2568
|
-
lineHeight: theme.typography.lineHeightXxl
|
|
2569
|
-
}
|
|
2570
|
-
})
|
|
2571
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2572
|
-
case 2:
|
|
2573
|
-
return /*#__PURE__*/css({
|
|
2574
|
-
'&&': {
|
|
2575
|
-
fontSize: theme.typography.fontSizeXl,
|
|
2576
|
-
lineHeight: theme.typography.lineHeightXl,
|
|
2577
|
-
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2578
|
-
},
|
|
2579
|
-
...(centerIcons && {
|
|
2580
|
-
'& > .anticon': {
|
|
2581
|
-
lineHeight: theme.typography.lineHeightXl
|
|
2582
|
-
}
|
|
2583
|
-
})
|
|
2584
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2585
|
-
case 3:
|
|
2586
|
-
return /*#__PURE__*/css({
|
|
2587
|
-
'&&': {
|
|
2588
|
-
fontSize: theme.typography.fontSizeLg,
|
|
2589
|
-
lineHeight: theme.typography.lineHeightLg,
|
|
2590
|
-
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2591
|
-
},
|
|
2592
|
-
...(centerIcons && {
|
|
2593
|
-
'& > .anticon': {
|
|
2594
|
-
lineHeight: theme.typography.lineHeightLg
|
|
2595
|
-
}
|
|
2596
|
-
})
|
|
2597
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2598
|
-
case 4:
|
|
2599
|
-
default:
|
|
2600
|
-
return /*#__PURE__*/css({
|
|
2601
|
-
'&&': {
|
|
2602
|
-
fontSize: theme.typography.fontSizeMd,
|
|
2603
|
-
lineHeight: theme.typography.lineHeightMd,
|
|
2604
|
-
fontWeight: theme.typography.typographyBoldFontWeight
|
|
2605
|
-
},
|
|
2606
|
-
...(centerIcons && {
|
|
2607
|
-
'& > .anticon': {
|
|
2608
|
-
lineHeight: theme.typography.lineHeightMd
|
|
2609
|
-
}
|
|
2610
|
-
})
|
|
2611
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
|
|
2612
|
-
}
|
|
2613
|
-
}
|
|
2614
|
-
function getTitleEmotionStyles(theme, props) {
|
|
2615
|
-
const centerIcons = safex('databricks.fe.designsystem.centerIconsInText', false);
|
|
2616
|
-
return /*#__PURE__*/css(getLevelStyles(theme, props), {
|
|
2617
|
-
'&&': {
|
|
2618
|
-
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
2619
|
-
},
|
|
2620
|
-
...(centerIcons && {
|
|
2621
|
-
'& > .anticon': {
|
|
2622
|
-
verticalAlign: 'middle'
|
|
2623
|
-
}
|
|
2624
|
-
})
|
|
2625
|
-
}, props.withoutMargins && {
|
|
2626
|
-
'&&': {
|
|
2627
|
-
marginTop: '0 !important',
|
|
2628
|
-
// override general styling
|
|
2629
|
-
marginBottom: '0 !important' // override general styling
|
|
2630
|
-
}
|
|
2631
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getTitleEmotionStyles;");
|
|
2632
|
-
}
|
|
2633
|
-
function Title(userProps) {
|
|
2634
|
-
const {
|
|
3130
|
+
const TextArea = /*#__PURE__*/forwardRef(function TextArea(_ref, ref) {
|
|
3131
|
+
let {
|
|
3132
|
+
validationState,
|
|
3133
|
+
autoComplete = 'off',
|
|
2635
3134
|
dangerouslySetAntdProps,
|
|
2636
|
-
|
|
2637
|
-
color,
|
|
3135
|
+
dangerouslyAppendEmotionCSS,
|
|
2638
3136
|
...props
|
|
2639
|
-
} =
|
|
3137
|
+
} = _ref;
|
|
2640
3138
|
const {
|
|
3139
|
+
classNamePrefix,
|
|
2641
3140
|
theme
|
|
2642
3141
|
} = useDesignSystemTheme();
|
|
3142
|
+
const useTransparent = safex('databricks.fe.designsystem.useTransparentInput', false);
|
|
2643
3143
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
2644
|
-
children: jsx(
|
|
3144
|
+
children: jsx(Input$2.TextArea, {
|
|
3145
|
+
ref: ref,
|
|
3146
|
+
autoComplete: autoComplete,
|
|
3147
|
+
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
3148
|
+
validationState
|
|
3149
|
+
}, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:TextArea;"],
|
|
2645
3150
|
...props,
|
|
2646
|
-
className: props.className,
|
|
2647
|
-
css: getTitleEmotionStyles(theme, userProps),
|
|
2648
3151
|
...dangerouslySetAntdProps
|
|
2649
3152
|
})
|
|
2650
3153
|
});
|
|
2651
|
-
}
|
|
3154
|
+
});
|
|
2652
3155
|
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
children: jsx(Typography$1, {
|
|
2661
|
-
...props,
|
|
2662
|
-
...dangerouslySetAntdProps
|
|
2663
|
-
})
|
|
2664
|
-
});
|
|
2665
|
-
}
|
|
2666
|
-
Typography.Text = Text;
|
|
2667
|
-
Typography.Title = Title;
|
|
2668
|
-
Typography.Paragraph = Paragraph;
|
|
2669
|
-
Typography.Link = Link;
|
|
2670
|
-
Typography.Hint = Hint;
|
|
2671
|
-
return Typography;
|
|
2672
|
-
})();
|
|
3156
|
+
// Properly creates the namespace and dot-notation components with correct types.
|
|
3157
|
+
const InputNamespace = /* #__PURE__ */Object.assign(Input$1, {
|
|
3158
|
+
TextArea,
|
|
3159
|
+
Password,
|
|
3160
|
+
Group: Group$1
|
|
3161
|
+
});
|
|
3162
|
+
const Input = InputNamespace;
|
|
2673
3163
|
|
|
2674
3164
|
const Root = DropdownMenu$1.Root; // Behavioral component only
|
|
2675
3165
|
|
|
@@ -2677,6 +3167,9 @@ const Content = /*#__PURE__*/forwardRef(function Content(_ref, ref) {
|
|
|
2677
3167
|
let {
|
|
2678
3168
|
children,
|
|
2679
3169
|
minWidth = 220,
|
|
3170
|
+
isInsideModal,
|
|
3171
|
+
onEscapeKeyDown,
|
|
3172
|
+
onKeyDown,
|
|
2680
3173
|
...props
|
|
2681
3174
|
} = _ref;
|
|
2682
3175
|
const {
|
|
@@ -2692,6 +3185,18 @@ const Content = /*#__PURE__*/forwardRef(function Content(_ref, ref) {
|
|
|
2692
3185
|
}, process.env.NODE_ENV === "production" ? "" : ";label:Content;"],
|
|
2693
3186
|
sideOffset: 4,
|
|
2694
3187
|
align: "start",
|
|
3188
|
+
onKeyDown: e => {
|
|
3189
|
+
// This is a workaround for Radix's DropdownMenu.Content not receiving Escape key events
|
|
3190
|
+
// when nested inside a modal. We need to stop propagation of the event so that the modal
|
|
3191
|
+
// doesn't close when the DropdownMenu should.
|
|
3192
|
+
if (e.key === 'Escape') {
|
|
3193
|
+
if (isInsideModal) {
|
|
3194
|
+
e.stopPropagation();
|
|
3195
|
+
}
|
|
3196
|
+
onEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(e.nativeEvent);
|
|
3197
|
+
}
|
|
3198
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
3199
|
+
},
|
|
2695
3200
|
...props,
|
|
2696
3201
|
children: children
|
|
2697
3202
|
})
|
|
@@ -2749,7 +3254,7 @@ const Item = /*#__PURE__*/forwardRef(function Item(_ref4, ref) {
|
|
|
2749
3254
|
if (props.disabled) {
|
|
2750
3255
|
e.preventDefault();
|
|
2751
3256
|
} else {
|
|
2752
|
-
onClick === null || onClick === void 0
|
|
3257
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
2753
3258
|
}
|
|
2754
3259
|
},
|
|
2755
3260
|
...props,
|
|
@@ -2808,7 +3313,7 @@ const SubTrigger = /*#__PURE__*/forwardRef(function TriggerItem(_ref7, ref) {
|
|
|
2808
3313
|
alignSelf: 'stretch',
|
|
2809
3314
|
alignItems: 'center'
|
|
2810
3315
|
}),
|
|
2811
|
-
children: jsx(ChevronRightIcon, {
|
|
3316
|
+
children: jsx(ChevronRightIcon$1, {
|
|
2812
3317
|
css: theme => ({
|
|
2813
3318
|
fontSize: CONSTANTS.subMenuIconSize(theme)
|
|
2814
3319
|
})
|
|
@@ -2850,7 +3355,7 @@ const ItemIndicator = /*#__PURE__*/forwardRef(function ItemIndicator(_ref9, ref)
|
|
|
2850
3355
|
fontSize: theme.general.iconFontSize
|
|
2851
3356
|
}),
|
|
2852
3357
|
...props,
|
|
2853
|
-
children: children !== null && children !== void 0 ? children : jsx(CheckIcon, {
|
|
3358
|
+
children: children !== null && children !== void 0 ? children : jsx(CheckIcon$1, {
|
|
2854
3359
|
css: theme => ({
|
|
2855
3360
|
color: theme.colors.textSecondary
|
|
2856
3361
|
})
|
|
@@ -2959,7 +3464,9 @@ const getNewChildren = (children, props, disabledReason, ref) => {
|
|
|
2959
3464
|
},
|
|
2960
3465
|
children: jsx("span", {
|
|
2961
3466
|
css: theme => infoIconStyles(theme),
|
|
2962
|
-
children: jsx(InfoIcon, {
|
|
3467
|
+
children: jsx(InfoIcon$1, {
|
|
3468
|
+
role: "presentation",
|
|
3469
|
+
alt: "Disabled state reason",
|
|
2963
3470
|
"aria-hidden": "false"
|
|
2964
3471
|
})
|
|
2965
3472
|
})
|
|
@@ -3037,6 +3544,7 @@ const dropdownContentStyles = theme => ({
|
|
|
3037
3544
|
padding: `${theme.spacing.xs}px 0`,
|
|
3038
3545
|
boxShadow: theme.general.shadowLow,
|
|
3039
3546
|
userSelect: 'none',
|
|
3547
|
+
...getDarkModePortalStyles(theme),
|
|
3040
3548
|
// Ant Design uses 1000s for their zIndex space; this ensures Radix works with that, but
|
|
3041
3549
|
// we'll likely need to be sure that all Radix components are using the same zIndex going forward.
|
|
3042
3550
|
//
|
|
@@ -3127,5 +3635,5 @@ var DropdownMenu = /*#__PURE__*/Object.freeze({
|
|
|
3127
3635
|
dropdownSeparatorStyles: dropdownSeparatorStyles
|
|
3128
3636
|
});
|
|
3129
3637
|
|
|
3130
|
-
export {
|
|
3131
|
-
//# sourceMappingURL=DropdownMenu-
|
|
3638
|
+
export { FaceFrownIcon$1 as $, ApplyDesignSystemContextOverrides as A, Button as B, CloseIcon$1 as C, DesignSystemAntDConfigProvider as D, getPrimaryStyles as E, getDisabledStyles as F, useDesignSystemFlags as G, getButtonEmotionStyles as H, Icon as I, DesignSystemEventProviderComponentTypes as J, DesignSystemEventProviderAnalyticsEventTypes as K, LoadingState as L, useDesignSystemEventComponentCallbacks as M, DesignSystemEventProvider as N, DesignSystemThemeContext as O, DesignSystemContext as P, DesignSystemThemeProvider as Q, RestoreAntDDefaultClsPrefix as R, Spinner as S, Typography as T, DesignSystemProvider as U, ApplyDesignSystemFlags as V, WarningIcon$1 as W, useAntDConfigProviderContext as X, DropdownMenu as Y, WithDesignSystemThemeHoc as Z, CursorIcon$1 as _, getDarkModePortalStyles as a, FaceNeutralIcon$1 as a0, FaceSmileIcon$1 as a1, MegaphoneIcon$1 as a2, NewWindowIcon$1 as a3, LoadingStateContext as a4, getTypographyColor as a5, getBottomOnlyShadowScrollStyles as a6, ColorVars as a7, primitiveColors as a8, dropdownItemStyles as a9, dropdownSeparatorStyles as aa, ChevronRightIcon$1 as b, useDesignSystemContext as c, Tooltip as d, InfoIcon$1 as e, Input as f, getAnimationCss as g, CheckIcon$1 as h, importantify as i, getValidationStateColor as j, getShadowScrollStyles as k, DangerIcon$1 as l, LoadingIcon$1 as m, dropdownContentStyles as n, useUniqueId as o, Title as p, AccessibleContainer as q, ChevronLeftIcon$1 as r, safex as s, DU_BOIS_ENABLE_ANIMATION_CLASSNAME as t, useDesignSystemTheme as u, visuallyHidden as v, lightColorList as w, Root as x, Trigger as y, getDefaultStyles as z };
|
|
3639
|
+
//# sourceMappingURL=DropdownMenu-dbeef1b7.js.map
|