@databricks/design-system 1.3.1 → 1.4.2
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/cjs/index.js +1209 -837
- package/dist/cjs/index.js.map +1 -1
- package/dist/design-system/Alert/Alert.d.ts +3 -3
- package/dist/design-system/Alert/Alert.d.ts.map +1 -1
- package/dist/design-system/AutoComplete/AutoComplete.d.ts +4 -1
- package/dist/design-system/AutoComplete/AutoComplete.d.ts.map +1 -1
- package/dist/design-system/Breadcrumb/Breadcrumb.d.ts +6 -3
- package/dist/design-system/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/design-system/Button/Button.d.ts +9 -11
- package/dist/design-system/Button/Button.d.ts.map +1 -1
- package/dist/design-system/Button/styles.d.ts +2 -2
- package/dist/design-system/Button/styles.d.ts.map +1 -1
- package/dist/design-system/Checkbox/Checkbox.d.ts +11 -2
- package/dist/design-system/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/design-system/Collapse/Collapse.d.ts +5 -4
- package/dist/design-system/Collapse/Collapse.d.ts.map +1 -1
- package/dist/design-system/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts +9 -2
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -1
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.test.d.ts +2 -0
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.test.d.ts.map +1 -0
- package/dist/design-system/Dropdown/Dropdown.d.ts +3 -2
- package/dist/design-system/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/design-system/DropdownMenu/DropdownMenu.d.ts +9 -6
- package/dist/design-system/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/design-system/Form/Form.d.ts +6 -5
- package/dist/design-system/Form/Form.d.ts.map +1 -1
- package/dist/design-system/FormMessage/FormMessage.d.ts +11 -0
- package/dist/design-system/FormMessage/FormMessage.d.ts.map +1 -0
- package/dist/design-system/FormV2/FormV2.d.ts +9 -0
- package/dist/design-system/FormV2/FormV2.d.ts.map +1 -0
- package/dist/design-system/Grid/Col.d.ts +3 -2
- package/dist/design-system/Grid/Col.d.ts.map +1 -1
- package/dist/design-system/Grid/Row.d.ts +3 -2
- package/dist/design-system/Grid/Row.d.ts.map +1 -1
- package/dist/design-system/Header/Header.d.ts +2 -2
- package/dist/design-system/Header/Header.d.ts.map +1 -1
- package/dist/design-system/Hooks/index.d.ts +1 -0
- package/dist/design-system/Hooks/index.d.ts.map +1 -1
- package/dist/design-system/Hooks/useDesignSystemContext.d.ts +1 -1
- package/dist/design-system/Hooks/useDesignSystemContext.d.ts.map +1 -1
- package/dist/design-system/Hooks/useDesignSystemFlags.d.ts +3 -0
- package/dist/design-system/Hooks/useDesignSystemFlags.d.ts.map +1 -0
- package/dist/design-system/Hooks/useDesignSystemTheme.d.ts +3 -2
- package/dist/design-system/Hooks/useDesignSystemTheme.d.ts.map +1 -1
- package/dist/design-system/Hooks/useThemedStyles.d.ts +1 -1
- package/dist/design-system/Hooks/useThemedStyles.d.ts.map +1 -1
- package/dist/design-system/Icon/Icon.d.ts +4 -2
- package/dist/design-system/Icon/Icon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/AIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/AIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/AlignCenterIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/AlignCenterIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/AlignLeftIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/AlignLeftIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/AlignRightIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/AlignRightIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowDownIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowDownIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowLeftIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowLeftIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowRightIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowRightIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowUpIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowUpIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowsUpDownIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ArrowsUpDownIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BarChartIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BarChartIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BeakerIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BeakerIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BookIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BookIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BookmarkBorderIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BookmarkBorderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BookmarkFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BookmarkFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BriefcaseFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BriefcaseFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BriefcaseIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/BriefcaseIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CalendarEventIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CalendarEventIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CalendarIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CalendarIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CaretDownSquareIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CaretDownSquareIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CaretUpSquareIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CaretUpSquareIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleBorderIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleBorderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckLineIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CheckLineIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChecklistIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChecklistIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleDownIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleDownIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleLeftIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleLeftIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleRightIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleRightIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleUpIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDoubleUpIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDownIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronDownIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronLeftIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronLeftIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronRightIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronRightIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronUpIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ChevronUpIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CircleIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CircleIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ClipboardIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ClipboardIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/Clock1Icon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/Clock1Icon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ClockIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ClockIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CloseIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CloseIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudDownloadIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudDownloadIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudOffIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudOffIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudUploadIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CloudUploadIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ClusterIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ClusterIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ClustersIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ClustersIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CodeIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CodeIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/CopyIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/CopyIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DashIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DashIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DashboardIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DashboardIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DataIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DataIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DatabaseIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DatabaseIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DownloadIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DownloadIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/DragIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/DragIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ErrorBorderIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ErrorBorderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ErrorFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ErrorFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ExpandLessIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ExpandLessIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ExpandMoreIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ExpandMoreIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ExperimentIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ExperimentIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FeatureStoreIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FeatureStoreIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FileCodeIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FileCodeIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FileDocumentIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FileDocumentIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FileIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FileIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FileImageIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FileImageIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FileModelIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FileModelIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FilterIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FilterIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/Folder1Icon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/Folder1Icon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FolderIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FolderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ForkIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ForkIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FullscreenExitIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FullscreenExitIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/FullscreenIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/FullscreenIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/Gear1Icon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/Gear1Icon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/GearIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/GearIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/GridDashIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/GridDashIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/GridIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/GridIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/H1Icon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/H1Icon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/H2Icon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/H2Icon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/H3Icon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/H3Icon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/HistoryIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/HistoryIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/HomeIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/HomeIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ImageIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ImageIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/IndentDecreaseIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/IndentDecreaseIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/IndentIncreaseIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/IndentIncreaseIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/InfinityIcon.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/InfinityIcon.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/InfoBorderIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/InfoBorderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/InfoFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/InfoFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/KeyboardIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/KeyboardIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LayerIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LayerIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LifesaverIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LifesaverIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LightningIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LightningIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LinkIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LinkIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LinkRemoveIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LinkRemoveIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ListBorderIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ListBorderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ListIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ListIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LoadingIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LoadingIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LockBorderIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LockBorderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LockFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LockFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/LockUnlockedIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/LockUnlockedIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/MIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/MIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/MinusBoxIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/MinusBoxIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/MinusCircleBorderIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/MinusCircleBorderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/MinusCircleFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/MinusCircleFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ModelsIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ModelsIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/NewWindowIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/NewWindowIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/NoIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/NoIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/NotebookIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/NotebookIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/NotificationIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/NotificationIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/NotificationsIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/NotificationsIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/OfficeIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/OfficeIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/OverflowIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/OverflowIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PageBottomIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PageBottomIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PageFirstIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PageFirstIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PageLastIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PageLastIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PageTopIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PageTopIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PencilIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PencilIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PinBorderIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PinBorderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PinCancelIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PinCancelIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PinFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PinFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PinXIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PinXIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PlayCircleBorderIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PlayCircleBorderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PlayCircleFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PlayCircleFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PlayIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PlayIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PlusCircleBorderIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PlusCircleBorderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PlusCircleFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PlusCircleFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PlusIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PlusIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/PlusSquareIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/PlusSquareIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/QueryEditorIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/QueryEditorIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/QueryIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/QueryIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/QueryListViewIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/QueryListViewIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/QueryNavIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/QueryNavIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/QuestionMarkBorderIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/QuestionMarkBorderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/QuestionMarkFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/QuestionMarkFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ReaderModeIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ReaderModeIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ReposIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ReposIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SchoolIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SchoolIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/Search1Icon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/Search1Icon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SearchIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SearchIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SecurityIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SecurityIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ShareIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ShareIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SidebarAutoIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SidebarAutoIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SidebarCollapseIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SidebarCollapseIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SidebarExpandIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SidebarExpandIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SidebarIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SidebarIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SpeechBubbleIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SpeechBubbleIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SpeechBubblePlusIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SpeechBubblePlusIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/StarBorderIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/StarBorderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/StarFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/StarFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/StopCircleBorderIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/StopCircleBorderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/StopCricleFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/StopCricleFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/StopIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/StopIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/StreamIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/StreamIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/SyncIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/SyncIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/TableIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/TableIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/TrashIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/TrashIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/TreeIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/TreeIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/UploadIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/UploadIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/UsbIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/UsbIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/UserBadgeIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/UserBadgeIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/UserCircleIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/UserCircleIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/UserGroupIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/UserGroupIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/UserIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/UserIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/VideosIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/VideosIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/Visible.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/Visible.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/VisibleOff.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/VisibleOff.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/WarningBorderIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/WarningBorderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/WarningFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/WarningFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/XCircleBorderIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/XCircleBorderIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/XCircleFillIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/XCircleFillIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ZoomInIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ZoomInIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/ZoomOutIcon.d.ts +1 -1
- package/dist/design-system/Icon/__generated/icons/ZoomOutIcon.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/index.d.ts +3 -0
- 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/Input.d.ts +6 -5
- package/dist/design-system/Input/Input.d.ts.map +1 -1
- package/dist/design-system/Layout/Layout.d.ts +4 -2
- package/dist/design-system/Layout/Layout.d.ts.map +1 -1
- package/dist/design-system/Menu/Menu.d.ts +4 -2
- package/dist/design-system/Menu/Menu.d.ts.map +1 -1
- package/dist/design-system/Modal/Modal.d.ts +4 -4
- package/dist/design-system/Modal/Modal.d.ts.map +1 -1
- package/dist/design-system/Notification/Notification.d.ts +4 -2
- package/dist/design-system/Notification/Notification.d.ts.map +1 -1
- package/dist/design-system/PageWrapper/PageWrapper.d.ts +2 -1
- package/dist/design-system/PageWrapper/PageWrapper.d.ts.map +1 -1
- package/dist/design-system/Pagination/index.d.ts +5 -5
- package/dist/design-system/Pagination/index.d.ts.map +1 -1
- package/dist/design-system/Popover/Popover.d.ts +3 -2
- package/dist/design-system/Popover/Popover.d.ts.map +1 -1
- package/dist/design-system/Radio/Radio.d.ts +4 -4
- package/dist/design-system/Radio/Radio.d.ts.map +1 -1
- package/dist/design-system/SegmentedControl/SegmentedControl.d.ts +7 -6
- package/dist/design-system/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/design-system/Select/Select.d.ts +10 -6
- package/dist/design-system/Select/Select.d.ts.map +1 -1
- package/dist/design-system/Skeleton/Skeleton.d.ts +6 -4
- package/dist/design-system/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/design-system/Space/Space.d.ts +3 -2
- package/dist/design-system/Space/Space.d.ts.map +1 -1
- package/dist/design-system/Spacer/Spacer.d.ts +2 -1
- package/dist/design-system/Spacer/Spacer.d.ts.map +1 -1
- package/dist/design-system/Spinner/Spinner.d.ts +3 -3
- package/dist/design-system/Spinner/Spinner.d.ts.map +1 -1
- package/dist/design-system/SplitButton/SplitButton.d.ts +3 -2
- package/dist/design-system/SplitButton/SplitButton.d.ts.map +1 -1
- package/dist/design-system/Switch/Switch.d.ts +5 -3
- package/dist/design-system/Switch/Switch.d.ts.map +1 -1
- package/dist/design-system/Table/Table.d.ts +1 -1
- package/dist/design-system/Table/Table.d.ts.map +1 -1
- package/dist/design-system/Tabs/index.d.ts +5 -5
- package/dist/design-system/Tabs/index.d.ts.map +1 -1
- package/dist/design-system/Tag/index.d.ts +6 -3
- package/dist/design-system/Tag/index.d.ts.map +1 -1
- package/dist/design-system/Tooltip/Tooltip.d.ts +7 -2
- package/dist/design-system/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/design-system/Tree/Tree.d.ts +4 -4
- package/dist/design-system/Tree/Tree.d.ts.map +1 -1
- package/dist/design-system/Typography/Link.d.ts +4 -3
- package/dist/design-system/Typography/Link.d.ts.map +1 -1
- package/dist/design-system/Typography/Paragraph.d.ts +3 -3
- package/dist/design-system/Typography/Paragraph.d.ts.map +1 -1
- package/dist/design-system/Typography/Text.d.ts +3 -3
- package/dist/design-system/Typography/Text.d.ts.map +1 -1
- package/dist/design-system/Typography/Title.d.ts +3 -3
- package/dist/design-system/Typography/Title.d.ts.map +1 -1
- package/dist/design-system/Typography/Typography.d.ts +5 -4
- package/dist/design-system/Typography/Typography.d.ts.map +1 -1
- package/dist/design-system/constants.d.ts +1 -1
- package/dist/design-system/constants.d.ts.map +1 -1
- package/dist/design-system/types.d.ts +10 -2
- package/dist/design-system/types.d.ts.map +1 -1
- package/dist/design-system/utils/css-utils.d.ts +3 -3
- package/dist/design-system/utils/css-utils.d.ts.map +1 -1
- package/dist/flags.d.ts +11 -0
- package/dist/flags.d.ts.map +1 -0
- package/dist/index-dark.css +91 -91
- package/dist/index.css +59 -59
- package/dist/index.js +1195 -822
- package/dist/index.js.map +1 -1
- package/dist/theme/colorList.d.ts +12 -3
- package/dist/theme/colorList.d.ts.map +1 -1
- package/dist/theme/colors.d.ts +13 -4
- package/dist/theme/colors.d.ts.map +1 -1
- package/dist/theme/convertToLessVars.d.ts +1 -1
- package/dist/theme/convertToLessVars.d.ts.map +1 -1
- package/dist/theme/generalVariables.d.ts +1 -0
- package/dist/theme/generalVariables.d.ts.map +1 -1
- package/dist/theme/index.d.ts +1 -2
- package/dist/theme/index.d.ts.map +1 -1
- package/package.json +11 -10
package/dist/cjs/index.js
CHANGED
|
@@ -8,6 +8,7 @@ exports.Alert = void 0;
|
|
|
8
8
|
exports.AlignCenterIcon = AlignCenterIcon;
|
|
9
9
|
exports.AlignLeftIcon = AlignLeftIcon;
|
|
10
10
|
exports.AlignRightIcon = AlignRightIcon;
|
|
11
|
+
exports.ApplyDesignSystemFlags = void 0;
|
|
11
12
|
exports.ArrowDownIcon = ArrowDownIcon;
|
|
12
13
|
exports.ArrowLeftIcon = ArrowLeftIcon;
|
|
13
14
|
exports.ArrowRightIcon = ArrowRightIcon;
|
|
@@ -97,6 +98,7 @@ exports.Icon = void 0;
|
|
|
97
98
|
exports.ImageIcon = ImageIcon;
|
|
98
99
|
exports.IndentDecreaseIcon = IndentDecreaseIcon;
|
|
99
100
|
exports.IndentIncreaseIcon = IndentIncreaseIcon;
|
|
101
|
+
exports.InfinityIcon = InfinityIcon;
|
|
100
102
|
exports.InfoBorderIcon = InfoBorderIcon;
|
|
101
103
|
exports.InfoFillIcon = InfoFillIcon;
|
|
102
104
|
exports.Input = void 0;
|
|
@@ -194,6 +196,8 @@ exports.UserCircleIcon = UserCircleIcon;
|
|
|
194
196
|
exports.UserGroupIcon = UserGroupIcon;
|
|
195
197
|
exports.UserIcon = UserIcon;
|
|
196
198
|
exports.VideosIcon = VideosIcon;
|
|
199
|
+
exports.Visible = Visible;
|
|
200
|
+
exports.VisibleOff = VisibleOff;
|
|
197
201
|
exports.WarningBorderIcon = WarningBorderIcon;
|
|
198
202
|
exports.WarningFillIcon = WarningFillIcon;
|
|
199
203
|
exports.WithDesignSystemThemeHoc = WithDesignSystemThemeHoc;
|
|
@@ -206,6 +210,7 @@ exports.getAnimationCss = getAnimationCss;
|
|
|
206
210
|
exports.getButtonEmotionStyles = void 0;
|
|
207
211
|
exports.getPaginationEmotionStyles = getPaginationEmotionStyles;
|
|
208
212
|
exports.getTabEmotionStyles = void 0;
|
|
213
|
+
exports.useDesignSystemFlags = useDesignSystemFlags;
|
|
209
214
|
exports.useDesignSystemTheme = useDesignSystemTheme;
|
|
210
215
|
exports.useNotification = useNotification;
|
|
211
216
|
exports.useThemedStyles = void 0;
|
|
@@ -17005,7 +17010,7 @@ function generateSelector(config) {
|
|
|
17005
17010
|
|
|
17006
17011
|
cancelSetMockFocused();
|
|
17007
17012
|
|
|
17008
|
-
if (!mobile && !popupElement.contains(
|
|
17013
|
+
if (!mobile && !popupElement.contains(target.getRootNode().activeElement)) {
|
|
17009
17014
|
var _selectorRef$current3;
|
|
17010
17015
|
|
|
17011
17016
|
(_selectorRef$current3 = selectorRef.current) === null || _selectorRef$current3 === void 0 ? void 0 : _selectorRef$current3.focus();
|
|
@@ -49671,11 +49676,576 @@ Typography$1.Text = Text$2;
|
|
|
49671
49676
|
Typography$1.Link = Link$2;
|
|
49672
49677
|
Typography$1.Title = Title$2;
|
|
49673
49678
|
Typography$1.Paragraph = Paragraph$2;
|
|
49674
|
-
var AntDTypography = Typography$1;
|
|
49679
|
+
var AntDTypography = Typography$1; // Border variables
|
|
49680
|
+
|
|
49681
|
+
const borders = {
|
|
49682
|
+
borderRadiusMd: 4
|
|
49683
|
+
}; // eslint-disable-next-line import/no-anonymous-default-export
|
|
49684
|
+
|
|
49685
|
+
var borders$1 = { ...borders
|
|
49686
|
+
}; // Exported from go/designsystem/colorsheet
|
|
49687
|
+
|
|
49688
|
+
const colorPalettePrimary = {
|
|
49689
|
+
primary: '#2272B4',
|
|
49690
|
+
blue100: '#F0F8FF',
|
|
49691
|
+
blue200: '#D7EDFE',
|
|
49692
|
+
blue300: '#BAE1FC',
|
|
49693
|
+
blue400: '#8ACAFF',
|
|
49694
|
+
blue500: '#4299E0',
|
|
49695
|
+
blue600: '#2272B4',
|
|
49696
|
+
blue700: '#0E538B',
|
|
49697
|
+
blue800: '#04355D',
|
|
49698
|
+
green100: '#F3FCF6',
|
|
49699
|
+
green200: '#D4F7DF',
|
|
49700
|
+
green300: '#B1ECC5',
|
|
49701
|
+
green400: '#8DDDA8',
|
|
49702
|
+
green500: '#3CAA60',
|
|
49703
|
+
green600: '#277C43',
|
|
49704
|
+
green700: '#115026',
|
|
49705
|
+
green800: '#093919',
|
|
49706
|
+
white: '#FFFFFF',
|
|
49707
|
+
grey100: '#F2F5F7',
|
|
49708
|
+
grey200: '#E4ECF1',
|
|
49709
|
+
grey300: '#CDDAE5',
|
|
49710
|
+
grey400: '#BDCDDB',
|
|
49711
|
+
grey500: '#8196A7',
|
|
49712
|
+
grey600: '#5D7283',
|
|
49713
|
+
grey700: '#44535F',
|
|
49714
|
+
grey800: '#1F272D',
|
|
49715
|
+
red100: '#FFF5F7',
|
|
49716
|
+
red200: '#FDE2E8',
|
|
49717
|
+
red300: '#FBD0D8',
|
|
49718
|
+
red400: '#F792A6',
|
|
49719
|
+
red500: '#E65B77',
|
|
49720
|
+
red600: '#C82D4C',
|
|
49721
|
+
red700: '#9E102C',
|
|
49722
|
+
red800: '#630316',
|
|
49723
|
+
yellow100: '#FFF9EB',
|
|
49724
|
+
yellow200: '#FCEACA',
|
|
49725
|
+
yellow300: '#F8D4A5',
|
|
49726
|
+
yellow400: '#F2BE88',
|
|
49727
|
+
yellow500: '#DE7921',
|
|
49728
|
+
yellow600: '#BE501E',
|
|
49729
|
+
yellow700: '#93320B',
|
|
49730
|
+
yellow800: '#5F1B02'
|
|
49731
|
+
};
|
|
49732
|
+
const colorPaletteSecondary = {
|
|
49733
|
+
brown: '#A6630C',
|
|
49734
|
+
coral: '#C83243',
|
|
49735
|
+
charcoal: '#5D7283',
|
|
49736
|
+
indigo: '#434A93',
|
|
49737
|
+
lemon: '#FACB66',
|
|
49738
|
+
lime: '#308613',
|
|
49739
|
+
pink: '#B45091',
|
|
49740
|
+
purple: '#8A63BF',
|
|
49741
|
+
teal: '#04867D',
|
|
49742
|
+
turquoise: '#157CBC'
|
|
49743
|
+
}; // Colors taken from figma designs but not part of official list (yet)
|
|
49744
|
+
|
|
49745
|
+
const unstableColors = {
|
|
49746
|
+
textValidationInfo: '#64727D',
|
|
49747
|
+
backgroundValidationDanger: colorPalettePrimary.red100,
|
|
49748
|
+
backgroundValidationSuccess: colorPalettePrimary.blue100,
|
|
49749
|
+
backgroundValidationWarning: colorPalettePrimary.yellow100,
|
|
49750
|
+
borderValidationDanger: colorPalettePrimary.red300,
|
|
49751
|
+
borderValidationSuccess: colorPalettePrimary.blue300,
|
|
49752
|
+
borderValidationWarning: colorPalettePrimary.yellow300
|
|
49753
|
+
};
|
|
49754
|
+
const lightColorList = {
|
|
49755
|
+
backgroundPrimary: colorPalettePrimary.white,
|
|
49756
|
+
actionDangerPrimaryBackgroundDefault: colorPalettePrimary.red600,
|
|
49757
|
+
actionDangerPrimaryBackgroundHover: colorPalettePrimary.red700,
|
|
49758
|
+
actionDangerPrimaryBackgroundPress: colorPalettePrimary.red800,
|
|
49759
|
+
actionDangerDefaultBackgroundDefault: (0, _chromaJs.default)(colorPalettePrimary.red600).alpha(0).hex(),
|
|
49760
|
+
actionDangerDefaultBackgroundHover: (0, _chromaJs.default)(colorPalettePrimary.red600).alpha(0.08).hex(),
|
|
49761
|
+
actionDangerDefaultBackgroundPress: (0, _chromaJs.default)(colorPalettePrimary.red600).alpha(0.16).hex(),
|
|
49762
|
+
actionDangerDefaultBorderDefault: colorPalettePrimary.red600,
|
|
49763
|
+
actionDangerDefaultBorderHover: colorPalettePrimary.red700,
|
|
49764
|
+
actionDangerDefaultBorderPress: colorPalettePrimary.red800,
|
|
49765
|
+
actionDangerDefaultTextDefault: colorPalettePrimary.red600,
|
|
49766
|
+
actionDangerDefaultTextHover: colorPalettePrimary.red700,
|
|
49767
|
+
actionDangerDefaultTextPress: colorPalettePrimary.red800,
|
|
49768
|
+
actionDefaultBackgroundDefault: (0, _chromaJs.default)(colorPalettePrimary.blue800).alpha(0).hex(),
|
|
49769
|
+
actionDefaultBackgroundHover: (0, _chromaJs.default)(colorPalettePrimary.blue600).alpha(0.08).hex(),
|
|
49770
|
+
actionDefaultBackgroundPress: (0, _chromaJs.default)(colorPalettePrimary.blue600).alpha(0.16).hex(),
|
|
49771
|
+
actionDefaultBorderDefault: colorPalettePrimary.grey300,
|
|
49772
|
+
actionDefaultBorderFocus: colorPalettePrimary.blue600,
|
|
49773
|
+
actionDefaultBorderHover: colorPalettePrimary.blue700,
|
|
49774
|
+
actionDefaultBorderPress: colorPalettePrimary.blue800,
|
|
49775
|
+
actionDefaultTextDefault: colorPalettePrimary.grey800,
|
|
49776
|
+
actionDefaultTextHover: colorPalettePrimary.blue700,
|
|
49777
|
+
actionDefaultTextPress: colorPalettePrimary.blue800,
|
|
49778
|
+
actionDisabledBackground: colorPalettePrimary.grey200,
|
|
49779
|
+
actionDisabledText: colorPalettePrimary.grey400,
|
|
49780
|
+
actionPrimaryBackgroundDefault: colorPalettePrimary.blue600,
|
|
49781
|
+
actionPrimaryBackgroundHover: colorPalettePrimary.blue700,
|
|
49782
|
+
actionPrimaryBackgroundPress: colorPalettePrimary.blue800,
|
|
49783
|
+
actionPrimaryTextDefault: colorPalettePrimary.white,
|
|
49784
|
+
actionPrimaryTextHover: colorPalettePrimary.white,
|
|
49785
|
+
actionPrimaryTextPress: colorPalettePrimary.white,
|
|
49786
|
+
actionTertiaryBackgroundDefault: (0, _chromaJs.default)(colorPalettePrimary.blue600).alpha(0).hex(),
|
|
49787
|
+
actionTertiaryBackgroundHover: (0, _chromaJs.default)(colorPalettePrimary.blue600).alpha(0.08).hex(),
|
|
49788
|
+
actionTertiaryBackgroundPress: (0, _chromaJs.default)(colorPalettePrimary.blue600).alpha(0.16).hex(),
|
|
49789
|
+
actionTertiaryTextDefault: colorPalettePrimary.blue600,
|
|
49790
|
+
actionTertiaryTextHover: colorPalettePrimary.blue700,
|
|
49791
|
+
actionTertiaryTextPress: colorPalettePrimary.blue800,
|
|
49792
|
+
backgroundDanger: (0, _chromaJs.default)(colorPalettePrimary.red100).alpha(0.08).hex(),
|
|
49793
|
+
backgroundSecondary: colorPalettePrimary.grey100,
|
|
49794
|
+
backgroundWarning: (0, _chromaJs.default)(colorPalettePrimary.yellow100).alpha(0.08).hex(),
|
|
49795
|
+
border: colorPalettePrimary.grey300,
|
|
49796
|
+
borderDecorative: colorPalettePrimary.grey300,
|
|
49797
|
+
textPrimary: colorPalettePrimary.grey800,
|
|
49798
|
+
textSecondary: colorPalettePrimary.grey600,
|
|
49799
|
+
textPlaceholder: colorPalettePrimary.grey400,
|
|
49800
|
+
textValidationDanger: colorPalettePrimary.red600,
|
|
49801
|
+
textValidationSuccess: colorPalettePrimary.green600,
|
|
49802
|
+
textValidationWarning: colorPalettePrimary.yellow600,
|
|
49803
|
+
overlayOverlay: (0, _chromaJs.default)(colorPalettePrimary.grey100).alpha(0.72).hex(),
|
|
49804
|
+
// Tags
|
|
49805
|
+
tagDefault: (0, _chromaJs.default)(colorPalettePrimary.grey600).alpha(0.08).hex(),
|
|
49806
|
+
tagBrown: colorPaletteSecondary.brown,
|
|
49807
|
+
tagCoral: colorPaletteSecondary.coral,
|
|
49808
|
+
tagCharcoal: colorPalettePrimary.grey600,
|
|
49809
|
+
tagIndigo: colorPaletteSecondary.indigo,
|
|
49810
|
+
tagLemon: colorPaletteSecondary.lemon,
|
|
49811
|
+
tagLime: colorPaletteSecondary.lime,
|
|
49812
|
+
tagPink: colorPaletteSecondary.pink,
|
|
49813
|
+
tagPurple: colorPaletteSecondary.purple,
|
|
49814
|
+
tagTeal: colorPaletteSecondary.teal,
|
|
49815
|
+
tagTurquoise: colorPaletteSecondary.turquoise,
|
|
49816
|
+
tagText: colorPalettePrimary.white,
|
|
49817
|
+
tagHover: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.08).hex(),
|
|
49818
|
+
tagPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.16).hex(),
|
|
49819
|
+
tagIconHover: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.8).hex(),
|
|
49820
|
+
tagIconPress: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.76).hex(),
|
|
49821
|
+
// Typography
|
|
49822
|
+
typographyCodeBg: (0, _chromaJs.default)(colorPalettePrimary.grey600).alpha(0.08).hex(),
|
|
49823
|
+
tooltipBackgroundTooltip: colorPalettePrimary.grey800,
|
|
49824
|
+
...unstableColors
|
|
49825
|
+
};
|
|
49826
|
+
const darkColorList = {
|
|
49827
|
+
actionDangerPrimaryBackgroundDefault: (0, _chromaJs.default)(colorPalettePrimary.red400).alpha(0.84).hex(),
|
|
49828
|
+
actionDangerPrimaryBackgroundHover: (0, _chromaJs.default)(colorPalettePrimary.red400).alpha(0.72).hex(),
|
|
49829
|
+
actionDangerPrimaryBackgroundPress: (0, _chromaJs.default)(colorPalettePrimary.red400).alpha(0.6).hex(),
|
|
49830
|
+
actionDangerDefaultBackgroundDefault: (0, _chromaJs.default)(colorPalettePrimary.red400).alpha(0).hex(),
|
|
49831
|
+
actionDangerDefaultBackgroundHover: (0, _chromaJs.default)(colorPalettePrimary.red400).alpha(0.08).hex(),
|
|
49832
|
+
actionDangerDefaultBackgroundPress: (0, _chromaJs.default)(colorPalettePrimary.red400).alpha(0.16).hex(),
|
|
49833
|
+
actionDangerDefaultBorderDefault: colorPalettePrimary.red400,
|
|
49834
|
+
actionDangerDefaultBorderHover: (0, _chromaJs.default)(colorPalettePrimary.red400).alpha(0.72).hex(),
|
|
49835
|
+
actionDangerDefaultBorderPress: (0, _chromaJs.default)(colorPalettePrimary.red400).alpha(0.6).hex(),
|
|
49836
|
+
actionDangerDefaultTextDefault: colorPalettePrimary.red400,
|
|
49837
|
+
actionDangerDefaultTextHover: (0, _chromaJs.default)(colorPalettePrimary.red400).alpha(0.72).hex(),
|
|
49838
|
+
actionDangerDefaultTextPress: (0, _chromaJs.default)(colorPalettePrimary.red400).alpha(0.6).hex(),
|
|
49839
|
+
actionDefaultBackgroundDefault: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0).hex(),
|
|
49840
|
+
actionDefaultBackgroundHover: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.08).hex(),
|
|
49841
|
+
actionDefaultBackgroundPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.16).hex(),
|
|
49842
|
+
actionDefaultBorderDefault: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.6).hex(),
|
|
49843
|
+
actionDefaultBorderFocus: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.84).hex(),
|
|
49844
|
+
actionDefaultBorderHover: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.8).hex(),
|
|
49845
|
+
actionDefaultBorderPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.76).hex(),
|
|
49846
|
+
actionDefaultTextDefault: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.84).hex(),
|
|
49847
|
+
actionDefaultTextHover: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.8).hex(),
|
|
49848
|
+
actionDefaultTextPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.76).hex(),
|
|
49849
|
+
actionDisabledBackground: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.24).hex(),
|
|
49850
|
+
actionDisabledText: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.4).hex(),
|
|
49851
|
+
actionPrimaryBackgroundDefault: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.84).hex(),
|
|
49852
|
+
actionPrimaryBackgroundHover: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.8).hex(),
|
|
49853
|
+
actionPrimaryBackgroundPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.76).hex(),
|
|
49854
|
+
actionPrimaryTextDefault: colorPalettePrimary.grey800,
|
|
49855
|
+
actionPrimaryTextHover: colorPalettePrimary.grey800,
|
|
49856
|
+
actionPrimaryTextPress: colorPalettePrimary.grey800,
|
|
49857
|
+
actionTertiaryBackgroundDefault: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0).hex(),
|
|
49858
|
+
actionTertiaryBackgroundHover: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.08).hex(),
|
|
49859
|
+
actionTertiaryBackgroundPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.16).hex(),
|
|
49860
|
+
actionTertiaryTextDefault: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.84).hex(),
|
|
49861
|
+
actionTertiaryTextHover: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.8).hex(),
|
|
49862
|
+
actionTertiaryTextPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.76).hex(),
|
|
49863
|
+
backgroundPrimary: colorPalettePrimary.grey800,
|
|
49864
|
+
backgroundSecondary: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.04).hex(),
|
|
49865
|
+
border: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.48).hex(),
|
|
49866
|
+
borderDecorative: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.24).hex(),
|
|
49867
|
+
textPrimary: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.84).hex(),
|
|
49868
|
+
textSecondary: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.6).hex(),
|
|
49869
|
+
textPlaceholder: (0, _chromaJs.default)(colorPalettePrimary.grey400).alpha(0.84).hex(),
|
|
49870
|
+
textValidationDanger: (0, _chromaJs.default)(colorPalettePrimary.red400).alpha(0.84).hex(),
|
|
49871
|
+
textValidationSuccess: (0, _chromaJs.default)(colorPalettePrimary.green400).alpha(0.84).hex(),
|
|
49872
|
+
textValidationWarning: (0, _chromaJs.default)(colorPalettePrimary.yellow400).alpha(0.84).hex(),
|
|
49873
|
+
overlayOverlay: (0, _chromaJs.default)(colorPalettePrimary.grey800).alpha(0.72).hex(),
|
|
49874
|
+
// Tags
|
|
49875
|
+
tagDefault: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.16).hex(),
|
|
49876
|
+
tagBrown: (0, _chromaJs.default)(colorPaletteSecondary.brown).alpha(0.84).hex(),
|
|
49877
|
+
tagCoral: (0, _chromaJs.default)(colorPaletteSecondary.coral).alpha(0.84).hex(),
|
|
49878
|
+
tagCharcoal: (0, _chromaJs.default)(colorPalettePrimary.grey600).alpha(0.84).hex(),
|
|
49879
|
+
tagIndigo: (0, _chromaJs.default)(colorPaletteSecondary.indigo).alpha(0.84).hex(),
|
|
49880
|
+
tagLemon: (0, _chromaJs.default)(colorPaletteSecondary.lemon).alpha(0.84).hex(),
|
|
49881
|
+
tagLime: (0, _chromaJs.default)(colorPaletteSecondary.lime).alpha(0.84).hex(),
|
|
49882
|
+
tagPink: (0, _chromaJs.default)(colorPaletteSecondary.pink).alpha(0.84).hex(),
|
|
49883
|
+
tagPurple: (0, _chromaJs.default)(colorPaletteSecondary.purple).alpha(0.84).hex(),
|
|
49884
|
+
tagTeal: (0, _chromaJs.default)(colorPaletteSecondary.teal).alpha(0.84).hex(),
|
|
49885
|
+
tagTurquoise: (0, _chromaJs.default)(colorPaletteSecondary.turquoise).alpha(0.84).hex(),
|
|
49886
|
+
tagText: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.84).hex(),
|
|
49887
|
+
tagHover: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.08).hex(),
|
|
49888
|
+
tagPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.16).hex(),
|
|
49889
|
+
tagIconHover: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.8).hex(),
|
|
49890
|
+
tagIconPress: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.76).hex(),
|
|
49891
|
+
// Typography
|
|
49892
|
+
typographyCodeBg: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.16).hex(),
|
|
49893
|
+
tooltipBackgroundTooltip: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.6).hex(),
|
|
49894
|
+
// Missing in list
|
|
49895
|
+
backgroundDanger: 'rgba(200,45,76,0.08)',
|
|
49896
|
+
backgroundWarning: 'rgba(222,121,33,0.08)',
|
|
49897
|
+
// Missing in light list
|
|
49898
|
+
// "background-validation-danger": "rgba(229,110,134,0)",
|
|
49899
|
+
// "background-validation-warning": "rgba(252,234,202,0)",
|
|
49900
|
+
...unstableColors
|
|
49901
|
+
};
|
|
49902
|
+
const darkColors = { ...darkColorList,
|
|
49903
|
+
...colorPalettePrimary,
|
|
49904
|
+
...colorPaletteSecondary
|
|
49905
|
+
};
|
|
49906
|
+
const lightColors = { ...lightColorList,
|
|
49907
|
+
...colorPalettePrimary,
|
|
49908
|
+
...colorPaletteSecondary
|
|
49909
|
+
};
|
|
49910
|
+
|
|
49911
|
+
function getSemanticColors(theme) {
|
|
49912
|
+
switch (theme) {
|
|
49913
|
+
case 'dark':
|
|
49914
|
+
return { ...darkColors
|
|
49915
|
+
};
|
|
49916
|
+
|
|
49917
|
+
default:
|
|
49918
|
+
return { ...lightColors
|
|
49919
|
+
};
|
|
49920
|
+
}
|
|
49921
|
+
}
|
|
49922
|
+
/*
|
|
49923
|
+
Colors that need to be replaced by semantic colors.
|
|
49924
|
+
*/
|
|
49925
|
+
|
|
49926
|
+
|
|
49927
|
+
const deprecatedColors = {
|
|
49928
|
+
// Radio Colors
|
|
49929
|
+
radioInteractiveAvailable: colorPalettePrimary.primary,
|
|
49930
|
+
radioInteractiveHover: '#186099',
|
|
49931
|
+
radioInteractivePress: '#0D4F85',
|
|
49932
|
+
radioDisabled: '#A2AEB8',
|
|
49933
|
+
radioDefaultBorder: '#64727D',
|
|
49934
|
+
radioDefaultBackground: '#FFFFFF',
|
|
49935
|
+
radioInteractiveHoverSecondary: 'rgba(34, 115, 181, 0.08)',
|
|
49936
|
+
// Fade of Interactive Available
|
|
49937
|
+
radioInteractivePressSecondary: 'rgba(34, 115, 181, 0.16)' // Fade of Interactive Available
|
|
49938
|
+
|
|
49939
|
+
};
|
|
49940
|
+
|
|
49941
|
+
function getColors(theme) {
|
|
49942
|
+
return { ...deprecatedColors,
|
|
49943
|
+
...getSemanticColors(theme)
|
|
49944
|
+
};
|
|
49945
|
+
} // eslint-disable-next-line import/no-anonymous-default-export
|
|
49946
|
+
|
|
49947
|
+
|
|
49948
|
+
var antdVars = {
|
|
49949
|
+
// IMPORTANT: Do not read this directly from components. Use `React.useContext`.
|
|
49950
|
+
'ant-prefix': 'du-bois'
|
|
49951
|
+
};
|
|
49952
|
+
const DEFAULT_SPACING_UNIT = 8;
|
|
49953
|
+
const MODAL_PADDING = 40;
|
|
49954
|
+
const spacing = {
|
|
49955
|
+
xs: DEFAULT_SPACING_UNIT / 2,
|
|
49956
|
+
sm: DEFAULT_SPACING_UNIT,
|
|
49957
|
+
md: DEFAULT_SPACING_UNIT * 2,
|
|
49958
|
+
lg: DEFAULT_SPACING_UNIT * 3
|
|
49959
|
+
}; // Less variables that are used by AntD
|
|
49960
|
+
|
|
49961
|
+
({
|
|
49962
|
+
defaultPaddingLg: spacing.lg,
|
|
49963
|
+
defaultPaddingMd: spacing.md,
|
|
49964
|
+
defaultPaddingSm: spacing.sm,
|
|
49965
|
+
defaultPaddingXs: spacing.sm,
|
|
49966
|
+
defaultPaddingXss: spacing.xs,
|
|
49967
|
+
paddingLg: spacing.md,
|
|
49968
|
+
// TODO: Check if there is a better alternative with team
|
|
49969
|
+
paddingMd: spacing.sm,
|
|
49970
|
+
paddingSm: spacing.sm,
|
|
49971
|
+
paddingXs: spacing.xs,
|
|
49972
|
+
paddingXss: 0,
|
|
49973
|
+
marginSm: 12,
|
|
49974
|
+
marginLg: spacing.lg,
|
|
49975
|
+
// Button
|
|
49976
|
+
btnPaddingHorizontalBase: DEFAULT_SPACING_UNIT * 2,
|
|
49977
|
+
btnPaddingHorizontalLg: DEFAULT_SPACING_UNIT * 2,
|
|
49978
|
+
btnPaddingHorizontalSm: DEFAULT_SPACING_UNIT * 2,
|
|
49979
|
+
// Modal
|
|
49980
|
+
modalPadding: MODAL_PADDING,
|
|
49981
|
+
modalLessPadding: MODAL_PADDING - 20,
|
|
49982
|
+
modalHeaderPadding: "".concat(MODAL_PADDING, "px ").concat(MODAL_PADDING, "px ").concat(MODAL_PADDING - 20, "px"),
|
|
49983
|
+
modalHeaderCloseSize: MODAL_PADDING * 2 + 22,
|
|
49984
|
+
modalHeaderBorderWidth: 0,
|
|
49985
|
+
modalBodyPadding: "0 ".concat(MODAL_PADDING, "px"),
|
|
49986
|
+
modalFooterPaddingVertical: 0,
|
|
49987
|
+
modalFooterPaddingHorizontal: 0,
|
|
49988
|
+
modalFooterBorderWidth: 0,
|
|
49989
|
+
// Switch
|
|
49990
|
+
switchPadding: 0,
|
|
49991
|
+
switchHeight: 16,
|
|
49992
|
+
switchMinWidth: 28,
|
|
49993
|
+
switchPinSize: 14
|
|
49994
|
+
});
|
|
49995
|
+
var spacing$1 = spacing;
|
|
49996
|
+
const heightBase = 40;
|
|
49997
|
+
const borderWidth = 1;
|
|
49998
|
+
const antdGeneralVariables = {
|
|
49999
|
+
classnamePrefix: antdVars['ant-prefix'],
|
|
50000
|
+
iconfontCssPrefix: 'anticon',
|
|
50001
|
+
borderRadiusBase: 4,
|
|
50002
|
+
borderWidth: borderWidth,
|
|
50003
|
+
heightSm: 32,
|
|
50004
|
+
heightBase: heightBase,
|
|
50005
|
+
iconSize: 24,
|
|
50006
|
+
// TODO: Update with icon overhaul to 16px
|
|
50007
|
+
iconFontSize: 13,
|
|
50008
|
+
buttonHeight: heightBase,
|
|
50009
|
+
// Height available within button (for label and icon). Same for middle and small buttons.
|
|
50010
|
+
buttonInnerHeight: heightBase - spacing$1.sm * 2 - borderWidth * 2
|
|
50011
|
+
};
|
|
50012
|
+
var generalVariables = antdGeneralVariables;
|
|
50013
|
+
const FONT_SIZE_BASE = 13; // Less variables that are used by AntD
|
|
50014
|
+
|
|
50015
|
+
const antdTypography = {
|
|
50016
|
+
fontSizeSm: 12,
|
|
50017
|
+
fontSizeBase: FONT_SIZE_BASE,
|
|
50018
|
+
fontSizeMd: FONT_SIZE_BASE,
|
|
50019
|
+
fontSizeLg: 18,
|
|
50020
|
+
fontSizeXl: 22,
|
|
50021
|
+
fontSizeXxl: 32,
|
|
50022
|
+
lineHeightSm: '16px',
|
|
50023
|
+
lineHeightBase: '20px',
|
|
50024
|
+
lineHeightMd: '20px',
|
|
50025
|
+
lineHeightLg: '24px',
|
|
50026
|
+
lineHeightXl: '28px',
|
|
50027
|
+
lineHeightXxl: '40px',
|
|
50028
|
+
typographyBoldFontWeight: 600
|
|
50029
|
+
}; // eslint-disable-next-line import/no-anonymous-default-export
|
|
50030
|
+
|
|
50031
|
+
var typography = { ...antdTypography
|
|
50032
|
+
}; // eslint-disable-next-line import/no-named-as-default
|
|
50033
|
+
|
|
50034
|
+
const defaultOptions = {
|
|
50035
|
+
enableAnimation: false,
|
|
50036
|
+
zIndexBase: 1000
|
|
50037
|
+
}; // Function to get variables for a certain theme.
|
|
50038
|
+
// End users should use useDesignSystemTheme instead.
|
|
50039
|
+
|
|
50040
|
+
function getTheme(themeName) {
|
|
50041
|
+
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultOptions;
|
|
50042
|
+
return {
|
|
50043
|
+
colors: getColors(themeName),
|
|
50044
|
+
spacing: spacing$1,
|
|
50045
|
+
general: generalVariables,
|
|
50046
|
+
typography,
|
|
50047
|
+
borders: borders$1,
|
|
50048
|
+
themeName,
|
|
50049
|
+
options
|
|
50050
|
+
};
|
|
50051
|
+
}
|
|
50052
|
+
|
|
50053
|
+
const themeNameToAntdName = {
|
|
50054
|
+
dark: 'dark',
|
|
50055
|
+
default: 'light'
|
|
50056
|
+
};
|
|
50057
|
+
|
|
50058
|
+
function getClassNamePrefix(theme) {
|
|
50059
|
+
const antdThemeName = themeNameToAntdName[theme.themeName];
|
|
50060
|
+
return "".concat(theme.general.classnamePrefix, "-").concat(antdThemeName);
|
|
50061
|
+
}
|
|
50062
|
+
|
|
50063
|
+
function getPrefixedClassNameFromTheme(theme, className) {
|
|
50064
|
+
return [getClassNamePrefix(theme), className].filter(Boolean).join('-');
|
|
50065
|
+
}
|
|
50066
|
+
|
|
50067
|
+
function useDesignSystemTheme() {
|
|
50068
|
+
const emotionTheme = (0, _react2.useTheme)(); // Graceful fallback to default theme in case a test or developer forgot context.
|
|
50069
|
+
|
|
50070
|
+
const theme = emotionTheme && emotionTheme.general ? emotionTheme : getTheme('default');
|
|
50071
|
+
return {
|
|
50072
|
+
theme: theme,
|
|
50073
|
+
classNamePrefix: getClassNamePrefix(theme),
|
|
50074
|
+
getPrefixedClassName: className => getPrefixedClassNameFromTheme(theme, className)
|
|
50075
|
+
};
|
|
50076
|
+
} // This is a simple typed HOC wrapper around the useDesignSystemTheme hook, for use in older react components.
|
|
50077
|
+
|
|
50078
|
+
|
|
50079
|
+
function WithDesignSystemThemeHoc(Component) {
|
|
50080
|
+
return function WrappedWithDesignSystemTheme(props) {
|
|
50081
|
+
const themeValues = useDesignSystemTheme();
|
|
50082
|
+
return (0, _jsxRuntime.jsx)(Component, { ...props,
|
|
50083
|
+
designSystemThemeApi: themeValues
|
|
50084
|
+
});
|
|
50085
|
+
};
|
|
50086
|
+
}
|
|
50087
|
+
|
|
50088
|
+
const DuboisContextDefaults = {
|
|
50089
|
+
enableAnimation: false,
|
|
50090
|
+
theme: 'default',
|
|
50091
|
+
// Prefer to use useDesignSystemTheme.getPrefixedClassName instead
|
|
50092
|
+
getPrefixCls: suffix => suffix ? "du-bois-".concat(suffix) : 'du-bois',
|
|
50093
|
+
flags: {}
|
|
50094
|
+
};
|
|
50095
|
+
const DesignSystemContext = /*#__PURE__*/(0, React.createContext)(DuboisContextDefaults);
|
|
50096
|
+
exports.DesignSystemContext = DesignSystemContext;
|
|
50097
|
+
|
|
50098
|
+
function getAnimationCss(enableAnimation) {
|
|
50099
|
+
const disableAnimationCss = {
|
|
50100
|
+
animationDuration: '0s !important',
|
|
50101
|
+
transition: 'none !important'
|
|
50102
|
+
};
|
|
50103
|
+
return enableAnimation ? {} : { // Apply to the current element
|
|
50104
|
+
...disableAnimationCss,
|
|
50105
|
+
'&::before': disableAnimationCss,
|
|
50106
|
+
'&::after': disableAnimationCss,
|
|
50107
|
+
// Also apply to all child elements with a class that starts with our prefix
|
|
50108
|
+
'[class*=du-bois]': { ...disableAnimationCss,
|
|
50109
|
+
// Also target any pseudo-elements associated with those elements, since these can also be animated.
|
|
50110
|
+
'&::before': disableAnimationCss,
|
|
50111
|
+
'&::after': disableAnimationCss
|
|
50112
|
+
}
|
|
50113
|
+
};
|
|
50114
|
+
}
|
|
50115
|
+
|
|
50116
|
+
const DesignSystemProviderPropsContext = /*#__PURE__*/React.default.createContext(null);
|
|
50117
|
+
|
|
50118
|
+
const DesignSystemProvider = _ref => {
|
|
50119
|
+
let {
|
|
50120
|
+
children,
|
|
50121
|
+
theme: themeName,
|
|
50122
|
+
enableAnimation = false,
|
|
50123
|
+
zIndexBase = 1000,
|
|
50124
|
+
getPopupContainer,
|
|
50125
|
+
flags = {}
|
|
50126
|
+
} = _ref;
|
|
50127
|
+
const theme = (0, React.useMemo)(() => getTheme(themeName || 'default', {
|
|
50128
|
+
enableAnimation,
|
|
50129
|
+
zIndexBase
|
|
50130
|
+
}), // TODO: revisit this
|
|
50131
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
50132
|
+
[themeName, zIndexBase]);
|
|
50133
|
+
const providerPropsContext = (0, React.useMemo)(() => ({
|
|
50134
|
+
theme: themeName,
|
|
50135
|
+
enableAnimation,
|
|
50136
|
+
zIndexBase,
|
|
50137
|
+
getPopupContainer,
|
|
50138
|
+
flags
|
|
50139
|
+
}), [themeName, enableAnimation, zIndexBase, getPopupContainer, flags]);
|
|
50140
|
+
const classNamePrefix = getClassNamePrefix(theme);
|
|
50141
|
+
const value = (0, React.useMemo)(() => {
|
|
50142
|
+
return {
|
|
50143
|
+
enableAnimation,
|
|
50144
|
+
theme: theme.themeName,
|
|
50145
|
+
getPrefixCls: suffix => getPrefixedClassNameFromTheme(theme, suffix),
|
|
50146
|
+
getPopupContainer,
|
|
50147
|
+
flags
|
|
50148
|
+
};
|
|
50149
|
+
}, [enableAnimation, theme, getPopupContainer, flags]);
|
|
50150
|
+
(0, React.useEffect)(() => {
|
|
50151
|
+
return () => {
|
|
50152
|
+
// when the design system context is unmounted, make sure the notification cache is also cleaned up
|
|
50153
|
+
antDNotification.destroy();
|
|
50154
|
+
};
|
|
50155
|
+
}, []);
|
|
50156
|
+
return (0, _jsxRuntime.jsx)(DesignSystemProviderPropsContext.Provider, {
|
|
50157
|
+
value: providerPropsContext,
|
|
50158
|
+
children: (0, _jsxRuntime.jsx)(_react2.ThemeProvider, {
|
|
50159
|
+
theme: theme,
|
|
50160
|
+
children: (0, _jsxRuntime.jsx)(ConfigProvider$1, {
|
|
50161
|
+
prefixCls: classNamePrefix,
|
|
50162
|
+
getPopupContainer: getPopupContainer,
|
|
50163
|
+
children: (0, _jsxRuntime.jsx)(DesignSystemContext.Provider, {
|
|
50164
|
+
value: value,
|
|
50165
|
+
children: children
|
|
50166
|
+
})
|
|
50167
|
+
})
|
|
50168
|
+
})
|
|
50169
|
+
});
|
|
50170
|
+
};
|
|
50171
|
+
|
|
50172
|
+
exports.DesignSystemProvider = DesignSystemProvider;
|
|
50173
|
+
|
|
50174
|
+
const ApplyDesignSystemFlags = _ref2 => {
|
|
50175
|
+
let {
|
|
50176
|
+
flags,
|
|
50177
|
+
children
|
|
50178
|
+
} = _ref2;
|
|
50179
|
+
const parentDesignSystemProviderProps = (0, React.useContext)(DesignSystemProviderPropsContext);
|
|
50180
|
+
|
|
50181
|
+
if (parentDesignSystemProviderProps === null) {
|
|
50182
|
+
throw new Error("ApplyDesignSystemFlags cannot be used standalone - DesignSystemProvider must exist in the React context");
|
|
50183
|
+
}
|
|
50184
|
+
|
|
50185
|
+
const newProps = (0, React.useMemo)(() => ({ ...parentDesignSystemProviderProps,
|
|
50186
|
+
flags: { ...parentDesignSystemProviderProps.flags,
|
|
50187
|
+
...flags
|
|
50188
|
+
}
|
|
50189
|
+
}), [parentDesignSystemProviderProps, flags]);
|
|
50190
|
+
return (0, _jsxRuntime.jsx)(DesignSystemProvider, { ...newProps,
|
|
50191
|
+
children: children
|
|
50192
|
+
});
|
|
50193
|
+
};
|
|
50194
|
+
|
|
50195
|
+
exports.ApplyDesignSystemFlags = ApplyDesignSystemFlags;
|
|
50196
|
+
|
|
50197
|
+
function useDesignSystemContext() {
|
|
50198
|
+
return (0, React.useContext)(DesignSystemContext);
|
|
50199
|
+
}
|
|
50200
|
+
|
|
50201
|
+
function useDesignSystemFlags() {
|
|
50202
|
+
const context = useDesignSystemContext();
|
|
50203
|
+
return context.flags;
|
|
50204
|
+
}
|
|
50205
|
+
/**
|
|
50206
|
+
* A helper hook that allows quick creation of theme-dependent styles.
|
|
50207
|
+
* Results in more compact code than using useMemo and
|
|
50208
|
+
* useDesignSystemTheme separately.
|
|
50209
|
+
*
|
|
50210
|
+
* @example
|
|
50211
|
+
* const styles = useThemedStyles((theme) => ({
|
|
50212
|
+
* overlay: {
|
|
50213
|
+
* backgroundColor: theme.colors.backgroundPrimary,
|
|
50214
|
+
* borderRadius: theme.borders.borderRadiusMd,
|
|
50215
|
+
* },
|
|
50216
|
+
* wrapper: {
|
|
50217
|
+
* display: 'flex',
|
|
50218
|
+
* gap: theme.spacing.md,
|
|
50219
|
+
* },
|
|
50220
|
+
* }));
|
|
50221
|
+
|
|
50222
|
+
* <div css={styles.overlay}>...</div>
|
|
50223
|
+
*
|
|
50224
|
+
* @param styleFactory Factory function that accepts theme object as a parameter and returns
|
|
50225
|
+
* the style object. **Note**: factory function body is being memoized internally and is intended
|
|
50226
|
+
* to be used only for simple style objects that depend solely on the theme. If you want to use
|
|
50227
|
+
* styles that change depending on external values (state, props etc.) you should use
|
|
50228
|
+
* `useDesignSystemTheme` directly with your own reaction mechanism.
|
|
50229
|
+
* @returns The constructed style object
|
|
50230
|
+
*/
|
|
50231
|
+
|
|
50232
|
+
|
|
50233
|
+
const useThemedStyles = styleFactory => {
|
|
50234
|
+
const {
|
|
50235
|
+
theme
|
|
50236
|
+
} = useDesignSystemTheme(); // We can assume that the factory function won't change and we're
|
|
50237
|
+
// observing theme changes only.
|
|
50238
|
+
|
|
50239
|
+
const styleFactoryRef = (0, React.useRef)(styleFactory);
|
|
50240
|
+
return (0, React.useMemo)(() => styleFactoryRef.current(theme), [theme]);
|
|
50241
|
+
};
|
|
50242
|
+
|
|
50243
|
+
exports.useThemedStyles = useThemedStyles;
|
|
49675
50244
|
|
|
49676
50245
|
const Icon = props => {
|
|
49677
50246
|
const {
|
|
49678
50247
|
component: Component,
|
|
50248
|
+
dangerouslySetAntdProps,
|
|
49679
50249
|
...otherProps
|
|
49680
50250
|
} = props;
|
|
49681
50251
|
const MemoizedComponent = (0, React.useMemo)(() => Component ? _ref => {
|
|
@@ -49694,7 +50264,8 @@ const Icon = props => {
|
|
|
49694
50264
|
return (0, _jsxRuntime.jsx)(_icons.default, {
|
|
49695
50265
|
style: {},
|
|
49696
50266
|
component: MemoizedComponent,
|
|
49697
|
-
...otherProps
|
|
50267
|
+
...otherProps,
|
|
50268
|
+
...dangerouslySetAntdProps
|
|
49698
50269
|
});
|
|
49699
50270
|
};
|
|
49700
50271
|
|
|
@@ -51622,6 +52193,29 @@ function IndentIncreaseIcon(props) {
|
|
|
51622
52193
|
});
|
|
51623
52194
|
}
|
|
51624
52195
|
|
|
52196
|
+
function SvgInfinityIcon(props) {
|
|
52197
|
+
return (0, _jsxRuntime.jsx)("svg", {
|
|
52198
|
+
width: "1em",
|
|
52199
|
+
height: "1em",
|
|
52200
|
+
viewBox: "0 0 16 16",
|
|
52201
|
+
fill: "none",
|
|
52202
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
52203
|
+
...props,
|
|
52204
|
+
children: (0, _jsxRuntime.jsx)("path", {
|
|
52205
|
+
fillRule: "evenodd",
|
|
52206
|
+
clipRule: "evenodd",
|
|
52207
|
+
d: "M8 6.94l1.591-1.592a3.75 3.75 0 110 5.304L8 9.06l-1.591 1.59a3.75 3.75 0 110-5.303L8 6.94zm2.652-.531a2.25 2.25 0 110 3.182L9.06 8l1.59-1.591zM6.939 8L5.35 6.409a2.25 2.25 0 100 3.182l1.588-1.589L6.939 8z",
|
|
52208
|
+
fill: "currentColor"
|
|
52209
|
+
})
|
|
52210
|
+
});
|
|
52211
|
+
}
|
|
52212
|
+
|
|
52213
|
+
function InfinityIcon(props) {
|
|
52214
|
+
return (0, _jsxRuntime.jsx)(Icon, { ...props,
|
|
52215
|
+
component: SvgInfinityIcon
|
|
52216
|
+
});
|
|
52217
|
+
}
|
|
52218
|
+
|
|
51625
52219
|
function SvgInfoBorderIcon(props) {
|
|
51626
52220
|
return (0, _jsxRuntime.jsx)("svg", {
|
|
51627
52221
|
width: "1em",
|
|
@@ -53461,6 +54055,80 @@ function VideosIcon(props) {
|
|
|
53461
54055
|
});
|
|
53462
54056
|
}
|
|
53463
54057
|
|
|
54058
|
+
function SvgVisible(props) {
|
|
54059
|
+
return (0, _jsxRuntime.jsxs)("svg", {
|
|
54060
|
+
width: "1em",
|
|
54061
|
+
height: "1em",
|
|
54062
|
+
viewBox: "0 0 16 16",
|
|
54063
|
+
fill: "none",
|
|
54064
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
54065
|
+
...props,
|
|
54066
|
+
children: [(0, _jsxRuntime.jsxs)("g", {
|
|
54067
|
+
clipPath: "url(#Visible_svg__clip0_12466_34543)",
|
|
54068
|
+
fillRule: "evenodd",
|
|
54069
|
+
clipRule: "evenodd",
|
|
54070
|
+
fill: "currentColor",
|
|
54071
|
+
children: [(0, _jsxRuntime.jsx)("path", {
|
|
54072
|
+
d: "M8 5a3 3 0 100 6 3 3 0 000-6zM6.5 8a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z"
|
|
54073
|
+
}), (0, _jsxRuntime.jsx)("path", {
|
|
54074
|
+
d: "M8 2A8.389 8.389 0 00.028 7.777a.75.75 0 000 .466 8.389 8.389 0 0015.944 0 .749.749 0 000-.466A8.389 8.389 0 008 2zm0 10.52a6.888 6.888 0 01-6.465-4.51 6.888 6.888 0 0112.93 0A6.888 6.888 0 018 12.52z"
|
|
54075
|
+
})]
|
|
54076
|
+
}), (0, _jsxRuntime.jsx)("defs", {
|
|
54077
|
+
children: (0, _jsxRuntime.jsx)("clipPath", {
|
|
54078
|
+
id: "Visible_svg__clip0_12466_34543",
|
|
54079
|
+
children: (0, _jsxRuntime.jsx)("path", {
|
|
54080
|
+
fill: "#fff",
|
|
54081
|
+
d: "M0 0h16v16H0z"
|
|
54082
|
+
})
|
|
54083
|
+
})
|
|
54084
|
+
})]
|
|
54085
|
+
});
|
|
54086
|
+
}
|
|
54087
|
+
|
|
54088
|
+
function Visible(props) {
|
|
54089
|
+
return (0, _jsxRuntime.jsx)(Icon, { ...props,
|
|
54090
|
+
component: SvgVisible
|
|
54091
|
+
});
|
|
54092
|
+
}
|
|
54093
|
+
|
|
54094
|
+
function SvgVisibleOff(props) {
|
|
54095
|
+
return (0, _jsxRuntime.jsxs)("svg", {
|
|
54096
|
+
width: "1em",
|
|
54097
|
+
height: "1em",
|
|
54098
|
+
viewBox: "0 0 16 16",
|
|
54099
|
+
fill: "none",
|
|
54100
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
54101
|
+
...props,
|
|
54102
|
+
children: [(0, _jsxRuntime.jsxs)("g", {
|
|
54103
|
+
clipPath: "url(#VisibleOff_svg__clip0_12466_34549)",
|
|
54104
|
+
fill: "currentColor",
|
|
54105
|
+
children: [(0, _jsxRuntime.jsx)("path", {
|
|
54106
|
+
fillRule: "evenodd",
|
|
54107
|
+
clipRule: "evenodd",
|
|
54108
|
+
d: "M11.634 13.195l1.336 1.335 1.06-1.06-11.5-11.5-1.06 1.06 1.027 1.028a8.395 8.395 0 00-2.469 3.72.75.75 0 000 .465 8.389 8.389 0 0011.606 4.952zm-1.14-1.14l-1.301-1.301a3 3 0 01-3.946-3.946L3.56 5.121A6.898 6.898 0 001.535 8.01a6.888 6.888 0 008.96 4.045z"
|
|
54109
|
+
}), (0, _jsxRuntime.jsx)("path", {
|
|
54110
|
+
d: "M15.972 8.244a8.384 8.384 0 01-1.945 3.222l-1.061-1.06a6.886 6.886 0 001.499-2.396 6.888 6.888 0 00-8.187-4.293L5.082 2.522a8.389 8.389 0 0110.89 5.256c.05.15.05.314 0 .466z"
|
|
54111
|
+
}), (0, _jsxRuntime.jsx)("path", {
|
|
54112
|
+
d: "M11 8c0 .14-.01.277-.028.411L7.59 5.028A3 3 0 0111 8z"
|
|
54113
|
+
})]
|
|
54114
|
+
}), (0, _jsxRuntime.jsx)("defs", {
|
|
54115
|
+
children: (0, _jsxRuntime.jsx)("clipPath", {
|
|
54116
|
+
id: "VisibleOff_svg__clip0_12466_34549",
|
|
54117
|
+
children: (0, _jsxRuntime.jsx)("path", {
|
|
54118
|
+
fill: "#fff",
|
|
54119
|
+
d: "M0 0h16v16H0z"
|
|
54120
|
+
})
|
|
54121
|
+
})
|
|
54122
|
+
})]
|
|
54123
|
+
});
|
|
54124
|
+
}
|
|
54125
|
+
|
|
54126
|
+
function VisibleOff(props) {
|
|
54127
|
+
return (0, _jsxRuntime.jsx)(Icon, { ...props,
|
|
54128
|
+
component: SvgVisibleOff
|
|
54129
|
+
});
|
|
54130
|
+
}
|
|
54131
|
+
|
|
53464
54132
|
function SvgWarningBorderIcon(props) {
|
|
53465
54133
|
return (0, _jsxRuntime.jsx)("svg", {
|
|
53466
54134
|
width: "1em",
|
|
@@ -53612,517 +54280,7 @@ function SeverityIcon(props) {
|
|
|
53612
54280
|
const FilledIcon = filledIconsMap[props.severity];
|
|
53613
54281
|
return (0, _jsxRuntime.jsx)(FilledIcon, { ...props
|
|
53614
54282
|
});
|
|
53615
|
-
} // Exported from go/designsystem/colorsheet
|
|
53616
|
-
|
|
53617
|
-
|
|
53618
|
-
const colorPalettePrimary = {
|
|
53619
|
-
primary: '#2272B4',
|
|
53620
|
-
blue100: '#F0F8FF',
|
|
53621
|
-
blue200: '#D7EDFE',
|
|
53622
|
-
blue300: '#BADFFC',
|
|
53623
|
-
blue400: '#8CCBFF',
|
|
53624
|
-
blue500: '#439AE0',
|
|
53625
|
-
blue600: '#2272B4',
|
|
53626
|
-
blue700: '#0E538B',
|
|
53627
|
-
blue800: '#04355D',
|
|
53628
|
-
green100: '#F2FCF6',
|
|
53629
|
-
green200: '#D4F7DF',
|
|
53630
|
-
green300: '#B1ECC5',
|
|
53631
|
-
green400: '#8DDDA8',
|
|
53632
|
-
green500: '#3BA85F',
|
|
53633
|
-
green600: '#277C43',
|
|
53634
|
-
green700: '#115026',
|
|
53635
|
-
green800: '#093A19',
|
|
53636
|
-
white: '#FFFFFF',
|
|
53637
|
-
grey100: '#F2F5F7',
|
|
53638
|
-
grey200: '#E4EBF0',
|
|
53639
|
-
grey300: '#CDDAE5',
|
|
53640
|
-
grey400: '#BDCDDB',
|
|
53641
|
-
grey500: '#8297A8',
|
|
53642
|
-
grey600: '#5D7283',
|
|
53643
|
-
grey700: '#44535F',
|
|
53644
|
-
grey800: '#1F272D',
|
|
53645
|
-
red100: '#FFF5F7',
|
|
53646
|
-
red200: '#FDE2E8',
|
|
53647
|
-
red300: '#FBD0D8',
|
|
53648
|
-
red400: '#F7A6B6',
|
|
53649
|
-
red500: '#E56E86',
|
|
53650
|
-
red600: '#C72D4C',
|
|
53651
|
-
red700: '#9E102C',
|
|
53652
|
-
red800: '#630316',
|
|
53653
|
-
yellow100: '#FFF9EB',
|
|
53654
|
-
yellow200: '#FCEACA',
|
|
53655
|
-
yellow300: '#F8D4A5',
|
|
53656
|
-
yellow400: '#F2BE88',
|
|
53657
|
-
yellow500: '#DE7A23',
|
|
53658
|
-
yellow600: '#BF511E',
|
|
53659
|
-
yellow700: '#93320B',
|
|
53660
|
-
yellow800: '#611B02'
|
|
53661
|
-
};
|
|
53662
|
-
const colorPaletteSecondary = {
|
|
53663
|
-
brown: '#A6630C',
|
|
53664
|
-
coral: '#C83243',
|
|
53665
|
-
charcoal: '#5D7283',
|
|
53666
|
-
indigo: '#434A93',
|
|
53667
|
-
lemon: '#FACB66',
|
|
53668
|
-
lime: '#308813',
|
|
53669
|
-
pink: '#B45091',
|
|
53670
|
-
purple: '#8A63BF',
|
|
53671
|
-
teal: '#035E58',
|
|
53672
|
-
turquoise: '#147EB0'
|
|
53673
|
-
}; // Colors taken from figma designs but not part of official list (yet)
|
|
53674
|
-
|
|
53675
|
-
const unstableColors = {
|
|
53676
|
-
textValidationInfo: '#64727D',
|
|
53677
|
-
backgroundValidationDanger: colorPalettePrimary.red100,
|
|
53678
|
-
backgroundValidationSuccess: colorPalettePrimary.blue100,
|
|
53679
|
-
backgroundValidationWarning: colorPalettePrimary.yellow100,
|
|
53680
|
-
borderValidationDanger: colorPalettePrimary.red300,
|
|
53681
|
-
borderValidationSuccess: colorPalettePrimary.blue300,
|
|
53682
|
-
borderValidationWarning: colorPalettePrimary.yellow300
|
|
53683
|
-
};
|
|
53684
|
-
const lightColorList = {
|
|
53685
|
-
backgroundPrimary: colorPalettePrimary.white,
|
|
53686
|
-
actionDangerBackgroundDefault: colorPalettePrimary.red600,
|
|
53687
|
-
actionDangerBackgroundHover: colorPalettePrimary.red700,
|
|
53688
|
-
actionDangerBackgroundPress: colorPalettePrimary.red800,
|
|
53689
|
-
actionDefaultBackgroundDefault: (0, _chromaJs.default)(colorPalettePrimary.blue800).alpha(0).hex(),
|
|
53690
|
-
actionDefaultBackgroundHover: (0, _chromaJs.default)(colorPalettePrimary.blue800).alpha(0.08).hex(),
|
|
53691
|
-
actionDefaultBackgroundPress: (0, _chromaJs.default)(colorPalettePrimary.blue800).alpha(0.16).hex(),
|
|
53692
|
-
actionDefaultBorderDefault: colorPalettePrimary.grey300,
|
|
53693
|
-
actionDefaultBorderFocus: colorPalettePrimary.blue600,
|
|
53694
|
-
actionDefaultBorderHover: colorPalettePrimary.blue700,
|
|
53695
|
-
actionDefaultBorderPress: colorPalettePrimary.blue800,
|
|
53696
|
-
actionDefaultTextDefault: colorPalettePrimary.grey800,
|
|
53697
|
-
actionDefaultTextHover: colorPalettePrimary.blue700,
|
|
53698
|
-
actionDefaultTextPress: colorPalettePrimary.blue800,
|
|
53699
|
-
actionDisabledBackground: colorPalettePrimary.grey200,
|
|
53700
|
-
actionDisabledText: colorPalettePrimary.grey400,
|
|
53701
|
-
actionPrimaryBackgroundDefault: colorPalettePrimary.blue600,
|
|
53702
|
-
actionPrimaryBackgroundHover: colorPalettePrimary.blue700,
|
|
53703
|
-
actionPrimaryBackgroundPress: colorPalettePrimary.blue800,
|
|
53704
|
-
actionPrimaryTextDefault: colorPalettePrimary.white,
|
|
53705
|
-
actionPrimaryTextHover: colorPalettePrimary.white,
|
|
53706
|
-
actionPrimaryTextPress: colorPalettePrimary.white,
|
|
53707
|
-
actionTertiaryBackgroundDefault: (0, _chromaJs.default)(colorPalettePrimary.blue600).alpha(0).hex(),
|
|
53708
|
-
actionTertiaryBackgroundHover: (0, _chromaJs.default)(colorPalettePrimary.blue600).alpha(0.08).hex(),
|
|
53709
|
-
actionTertiaryBackgroundPress: (0, _chromaJs.default)(colorPalettePrimary.blue600).alpha(0.16).hex(),
|
|
53710
|
-
actionTertiaryTextDefault: colorPalettePrimary.blue600,
|
|
53711
|
-
actionTertiaryTextHover: colorPalettePrimary.blue700,
|
|
53712
|
-
actionTertiaryTextPress: colorPalettePrimary.blue800,
|
|
53713
|
-
backgroundDanger: (0, _chromaJs.default)(colorPalettePrimary.red100).alpha(0.08).hex(),
|
|
53714
|
-
backgroundSecondary: colorPalettePrimary.grey100,
|
|
53715
|
-
backgroundWarning: (0, _chromaJs.default)(colorPalettePrimary.yellow100).alpha(0.08).hex(),
|
|
53716
|
-
border: colorPalettePrimary.grey300,
|
|
53717
|
-
borderDecorative: colorPalettePrimary.grey300,
|
|
53718
|
-
textPrimary: colorPalettePrimary.grey800,
|
|
53719
|
-
textSecondary: colorPalettePrimary.grey600,
|
|
53720
|
-
textPlaceholder: colorPalettePrimary.grey400,
|
|
53721
|
-
textValidationDanger: colorPalettePrimary.red600,
|
|
53722
|
-
textValidationSuccess: colorPalettePrimary.green600,
|
|
53723
|
-
textValidationWarning: colorPalettePrimary.yellow600,
|
|
53724
|
-
overlayOverlay: (0, _chromaJs.default)(colorPalettePrimary.grey100).alpha(0.72).hex(),
|
|
53725
|
-
// Tags
|
|
53726
|
-
tagDefault: (0, _chromaJs.default)(colorPalettePrimary.grey600).alpha(0.08).hex(),
|
|
53727
|
-
tagBrown: colorPaletteSecondary.brown,
|
|
53728
|
-
tagCoral: colorPaletteSecondary.coral,
|
|
53729
|
-
tagCharcoal: colorPalettePrimary.grey600,
|
|
53730
|
-
tagIndigo: colorPaletteSecondary.indigo,
|
|
53731
|
-
tagLemon: colorPaletteSecondary.lemon,
|
|
53732
|
-
tagLime: colorPaletteSecondary.lime,
|
|
53733
|
-
tagPink: colorPaletteSecondary.pink,
|
|
53734
|
-
tagPurple: colorPaletteSecondary.purple,
|
|
53735
|
-
tagTeal: colorPaletteSecondary.teal,
|
|
53736
|
-
tagTurquoise: colorPaletteSecondary.turquoise,
|
|
53737
|
-
tagText: colorPalettePrimary.white,
|
|
53738
|
-
tagHover: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.08).hex(),
|
|
53739
|
-
tagPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.16).hex(),
|
|
53740
|
-
tagIconHover: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.8).hex(),
|
|
53741
|
-
tagIconPress: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.76).hex(),
|
|
53742
|
-
// Typography
|
|
53743
|
-
typographyCodeBg: (0, _chromaJs.default)(colorPalettePrimary.grey600).alpha(0.08).hex(),
|
|
53744
|
-
tooltipBackgroundTooltip: colorPalettePrimary.grey800,
|
|
53745
|
-
...unstableColors
|
|
53746
|
-
};
|
|
53747
|
-
const darkColorList = {
|
|
53748
|
-
actionDangerBackgroundDefault: (0, _chromaJs.default)(colorPalettePrimary.red400).alpha(0.84).hex(),
|
|
53749
|
-
actionDangerBackgroundHover: (0, _chromaJs.default)(colorPalettePrimary.red400).alpha(0.7).hex(),
|
|
53750
|
-
actionDangerBackgroundPress: (0, _chromaJs.default)(colorPalettePrimary.red400).alpha(0.6).hex(),
|
|
53751
|
-
actionDefaultBackgroundDefault: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0).hex(),
|
|
53752
|
-
actionDefaultBackgroundHover: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.08).hex(),
|
|
53753
|
-
actionDefaultBackgroundPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.16).hex(),
|
|
53754
|
-
actionDefaultBorderDefault: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.6).hex(),
|
|
53755
|
-
actionDefaultBorderFocus: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.84).hex(),
|
|
53756
|
-
actionDefaultBorderHover: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.8).hex(),
|
|
53757
|
-
actionDefaultBorderPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.76).hex(),
|
|
53758
|
-
actionDefaultTextDefault: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.84).hex(),
|
|
53759
|
-
actionDefaultTextHover: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.8).hex(),
|
|
53760
|
-
actionDefaultTextPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.76).hex(),
|
|
53761
|
-
actionDisabledBackground: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.24).hex(),
|
|
53762
|
-
actionDisabledText: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.4).hex(),
|
|
53763
|
-
actionPrimaryBackgroundDefault: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.84).hex(),
|
|
53764
|
-
actionPrimaryBackgroundHover: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.8).hex(),
|
|
53765
|
-
actionPrimaryBackgroundPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.76).hex(),
|
|
53766
|
-
actionPrimaryTextDefault: colorPalettePrimary.grey800,
|
|
53767
|
-
actionPrimaryTextHover: colorPalettePrimary.grey800,
|
|
53768
|
-
actionPrimaryTextPress: colorPalettePrimary.grey800,
|
|
53769
|
-
actionTertiaryBackgroundDefault: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0).hex(),
|
|
53770
|
-
actionTertiaryBackgroundHover: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.08).hex(),
|
|
53771
|
-
actionTertiaryBackgroundPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.16).hex(),
|
|
53772
|
-
actionTertiaryTextDefault: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.84).hex(),
|
|
53773
|
-
actionTertiaryTextHover: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.8).hex(),
|
|
53774
|
-
actionTertiaryTextPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.76).hex(),
|
|
53775
|
-
backgroundPrimary: colorPalettePrimary.grey800,
|
|
53776
|
-
backgroundSecondary: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.04).hex(),
|
|
53777
|
-
border: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.48).hex(),
|
|
53778
|
-
borderDecorative: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.24).hex(),
|
|
53779
|
-
textPrimary: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.84).hex(),
|
|
53780
|
-
textSecondary: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.6).hex(),
|
|
53781
|
-
textPlaceholder: (0, _chromaJs.default)(colorPalettePrimary.grey400).alpha(0.84).hex(),
|
|
53782
|
-
textValidationDanger: (0, _chromaJs.default)(colorPalettePrimary.red400).alpha(0.84).hex(),
|
|
53783
|
-
textValidationSuccess: (0, _chromaJs.default)(colorPalettePrimary.green400).alpha(0.84).hex(),
|
|
53784
|
-
textValidationWarning: (0, _chromaJs.default)(colorPalettePrimary.yellow400).alpha(0.84).hex(),
|
|
53785
|
-
overlayOverlay: (0, _chromaJs.default)(colorPalettePrimary.grey800).alpha(0.72).hex(),
|
|
53786
|
-
// Tags
|
|
53787
|
-
tagDefault: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.16).hex(),
|
|
53788
|
-
tagBrown: (0, _chromaJs.default)(colorPaletteSecondary.brown).alpha(0.84).hex(),
|
|
53789
|
-
tagCoral: (0, _chromaJs.default)(colorPaletteSecondary.coral).alpha(0.84).hex(),
|
|
53790
|
-
tagCharcoal: (0, _chromaJs.default)(colorPalettePrimary.grey600).alpha(0.84).hex(),
|
|
53791
|
-
tagIndigo: (0, _chromaJs.default)(colorPaletteSecondary.indigo).alpha(0.84).hex(),
|
|
53792
|
-
tagLemon: (0, _chromaJs.default)(colorPaletteSecondary.lemon).alpha(0.84).hex(),
|
|
53793
|
-
tagLime: (0, _chromaJs.default)(colorPaletteSecondary.lime).alpha(0.84).hex(),
|
|
53794
|
-
tagPink: (0, _chromaJs.default)(colorPaletteSecondary.pink).alpha(0.84).hex(),
|
|
53795
|
-
tagPurple: (0, _chromaJs.default)(colorPaletteSecondary.purple).alpha(0.84).hex(),
|
|
53796
|
-
tagTeal: (0, _chromaJs.default)(colorPaletteSecondary.teal).alpha(0.84).hex(),
|
|
53797
|
-
tagTurquoise: (0, _chromaJs.default)(colorPaletteSecondary.turquoise).alpha(0.84).hex(),
|
|
53798
|
-
tagText: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.84).hex(),
|
|
53799
|
-
tagHover: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.08).hex(),
|
|
53800
|
-
tagPress: (0, _chromaJs.default)(colorPalettePrimary.blue400).alpha(0.16).hex(),
|
|
53801
|
-
tagIconHover: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.8).hex(),
|
|
53802
|
-
tagIconPress: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.76).hex(),
|
|
53803
|
-
// Typography
|
|
53804
|
-
typographyCodeBg: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.16).hex(),
|
|
53805
|
-
tooltipBackgroundTooltip: (0, _chromaJs.default)(colorPalettePrimary.white).alpha(0.6).hex(),
|
|
53806
|
-
// Missing in list
|
|
53807
|
-
backgroundDanger: 'rgba(200,45,76,0.08)',
|
|
53808
|
-
backgroundWarning: 'rgba(222,121,33,0.08)',
|
|
53809
|
-
// Missing in light list
|
|
53810
|
-
// "background-validation-danger": "rgba(229,110,134,0)",
|
|
53811
|
-
// "background-validation-warning": "rgba(252,234,202,0)",
|
|
53812
|
-
...unstableColors
|
|
53813
|
-
};
|
|
53814
|
-
const darkColors = { ...darkColorList,
|
|
53815
|
-
...colorPalettePrimary,
|
|
53816
|
-
...colorPaletteSecondary
|
|
53817
|
-
};
|
|
53818
|
-
const lightColors = { ...lightColorList,
|
|
53819
|
-
...colorPalettePrimary,
|
|
53820
|
-
...colorPaletteSecondary
|
|
53821
|
-
};
|
|
53822
|
-
|
|
53823
|
-
function getSemanticColors(theme) {
|
|
53824
|
-
switch (theme) {
|
|
53825
|
-
case 'dark':
|
|
53826
|
-
return { ...darkColors
|
|
53827
|
-
};
|
|
53828
|
-
|
|
53829
|
-
default:
|
|
53830
|
-
return { ...lightColors
|
|
53831
|
-
};
|
|
53832
|
-
}
|
|
53833
54283
|
}
|
|
53834
|
-
/*
|
|
53835
|
-
Colors that need to be replaced by semantic colors.
|
|
53836
|
-
*/
|
|
53837
|
-
|
|
53838
|
-
|
|
53839
|
-
const deprecatedColors = {
|
|
53840
|
-
// Radio Colors
|
|
53841
|
-
radioInteractiveAvailable: colorPalettePrimary.primary,
|
|
53842
|
-
radioInteractiveHover: '#186099',
|
|
53843
|
-
radioInteractivePress: '#0D4F85',
|
|
53844
|
-
radioDisabled: '#A2AEB8',
|
|
53845
|
-
radioDefaultBorder: '#64727D',
|
|
53846
|
-
radioDefaultBackground: '#FFFFFF',
|
|
53847
|
-
radioInteractiveHoverSecondary: 'rgba(34, 115, 181, 0.08)',
|
|
53848
|
-
// Fade of Interactive Available
|
|
53849
|
-
radioInteractivePressSecondary: 'rgba(34, 115, 181, 0.16)' // Fade of Interactive Available
|
|
53850
|
-
|
|
53851
|
-
};
|
|
53852
|
-
|
|
53853
|
-
function getColors(theme) {
|
|
53854
|
-
return { ...deprecatedColors,
|
|
53855
|
-
...getSemanticColors(theme)
|
|
53856
|
-
};
|
|
53857
|
-
} // eslint-disable-next-line import/no-anonymous-default-export
|
|
53858
|
-
|
|
53859
|
-
|
|
53860
|
-
var antdVars = {
|
|
53861
|
-
// IMPORTANT: Do not read this directly from components. Use `React.useContext`.
|
|
53862
|
-
'ant-prefix': 'du-bois'
|
|
53863
|
-
};
|
|
53864
|
-
const DEFAULT_SPACING_UNIT = 8;
|
|
53865
|
-
const MODAL_PADDING = 40;
|
|
53866
|
-
const spacing = {
|
|
53867
|
-
xs: DEFAULT_SPACING_UNIT / 2,
|
|
53868
|
-
sm: DEFAULT_SPACING_UNIT,
|
|
53869
|
-
md: DEFAULT_SPACING_UNIT * 2,
|
|
53870
|
-
lg: DEFAULT_SPACING_UNIT * 3
|
|
53871
|
-
}; // Less variables that are used by AntD
|
|
53872
|
-
|
|
53873
|
-
({
|
|
53874
|
-
defaultPaddingLg: spacing.lg,
|
|
53875
|
-
defaultPaddingMd: spacing.md,
|
|
53876
|
-
defaultPaddingSm: spacing.sm,
|
|
53877
|
-
defaultPaddingXs: spacing.sm,
|
|
53878
|
-
defaultPaddingXss: spacing.xs,
|
|
53879
|
-
paddingLg: spacing.md,
|
|
53880
|
-
// TODO: Check if there is a better alternative with team
|
|
53881
|
-
paddingMd: spacing.sm,
|
|
53882
|
-
paddingSm: spacing.sm,
|
|
53883
|
-
paddingXs: spacing.xs,
|
|
53884
|
-
paddingXss: 0,
|
|
53885
|
-
marginSm: 12,
|
|
53886
|
-
marginLg: spacing.lg,
|
|
53887
|
-
// Button
|
|
53888
|
-
btnPaddingHorizontalBase: DEFAULT_SPACING_UNIT * 2,
|
|
53889
|
-
btnPaddingHorizontalLg: DEFAULT_SPACING_UNIT * 2,
|
|
53890
|
-
btnPaddingHorizontalSm: DEFAULT_SPACING_UNIT * 2,
|
|
53891
|
-
// Modal
|
|
53892
|
-
modalPadding: MODAL_PADDING,
|
|
53893
|
-
modalLessPadding: MODAL_PADDING - 20,
|
|
53894
|
-
modalHeaderPadding: "".concat(MODAL_PADDING, "px ").concat(MODAL_PADDING, "px ").concat(MODAL_PADDING - 20, "px"),
|
|
53895
|
-
modalHeaderCloseSize: MODAL_PADDING * 2 + 22,
|
|
53896
|
-
modalHeaderBorderWidth: 0,
|
|
53897
|
-
modalBodyPadding: "0 ".concat(MODAL_PADDING, "px"),
|
|
53898
|
-
modalFooterPaddingVertical: 0,
|
|
53899
|
-
modalFooterPaddingHorizontal: 0,
|
|
53900
|
-
modalFooterBorderWidth: 0,
|
|
53901
|
-
// Switch
|
|
53902
|
-
switchPadding: 0,
|
|
53903
|
-
switchHeight: 16,
|
|
53904
|
-
switchMinWidth: 28,
|
|
53905
|
-
switchPinSize: 14
|
|
53906
|
-
});
|
|
53907
|
-
var spacing$1 = spacing;
|
|
53908
|
-
const heightBase = 40;
|
|
53909
|
-
const borderWidth = 1;
|
|
53910
|
-
const antdGeneralVariables = {
|
|
53911
|
-
classnamePrefix: antdVars['ant-prefix'],
|
|
53912
|
-
iconfontCssPrefix: 'anticon',
|
|
53913
|
-
borderRadiusBase: 4,
|
|
53914
|
-
borderWidth: borderWidth,
|
|
53915
|
-
heightSm: 32,
|
|
53916
|
-
heightBase: heightBase,
|
|
53917
|
-
iconSize: 24,
|
|
53918
|
-
buttonHeight: heightBase,
|
|
53919
|
-
// Height available within button (for label and icon). Same for middle and small buttons.
|
|
53920
|
-
buttonInnerHeight: heightBase - spacing$1.sm * 2 - borderWidth * 2
|
|
53921
|
-
};
|
|
53922
|
-
var generalVariables = antdGeneralVariables;
|
|
53923
|
-
const FONT_SIZE_BASE = 13; // Less variables that are used by AntD
|
|
53924
|
-
|
|
53925
|
-
const antdTypography = {
|
|
53926
|
-
fontSizeSm: 12,
|
|
53927
|
-
fontSizeBase: FONT_SIZE_BASE,
|
|
53928
|
-
fontSizeMd: FONT_SIZE_BASE,
|
|
53929
|
-
fontSizeLg: 18,
|
|
53930
|
-
fontSizeXl: 22,
|
|
53931
|
-
fontSizeXxl: 32,
|
|
53932
|
-
lineHeightSm: '16px',
|
|
53933
|
-
lineHeightBase: '20px',
|
|
53934
|
-
lineHeightMd: '20px',
|
|
53935
|
-
lineHeightLg: '24px',
|
|
53936
|
-
lineHeightXl: '28px',
|
|
53937
|
-
lineHeightXxl: '40px',
|
|
53938
|
-
typographyBoldFontWeight: 600
|
|
53939
|
-
}; // eslint-disable-next-line import/no-anonymous-default-export
|
|
53940
|
-
|
|
53941
|
-
var typography = { ...antdTypography
|
|
53942
|
-
}; // Border variables
|
|
53943
|
-
|
|
53944
|
-
const borders = {
|
|
53945
|
-
borderRadiusMd: 4
|
|
53946
|
-
}; // eslint-disable-next-line import/no-anonymous-default-export
|
|
53947
|
-
|
|
53948
|
-
var borders$1 = { ...borders
|
|
53949
|
-
};
|
|
53950
|
-
const defaultOptions = {
|
|
53951
|
-
enableAnimation: false,
|
|
53952
|
-
isCompact: false,
|
|
53953
|
-
zIndexBase: 1000
|
|
53954
|
-
}; // Function to get variables for a certain theme.
|
|
53955
|
-
// End users should use useDesignSystemTheme instead.
|
|
53956
|
-
|
|
53957
|
-
function getTheme(themeName) {
|
|
53958
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultOptions;
|
|
53959
|
-
return {
|
|
53960
|
-
colors: getColors(themeName),
|
|
53961
|
-
spacing: spacing$1,
|
|
53962
|
-
general: generalVariables,
|
|
53963
|
-
typography,
|
|
53964
|
-
borders: borders$1,
|
|
53965
|
-
themeName,
|
|
53966
|
-
options
|
|
53967
|
-
};
|
|
53968
|
-
}
|
|
53969
|
-
|
|
53970
|
-
const themeNameToAntdName = {
|
|
53971
|
-
dark: 'dark',
|
|
53972
|
-
default: 'light'
|
|
53973
|
-
};
|
|
53974
|
-
|
|
53975
|
-
function getClassNamePrefix(theme) {
|
|
53976
|
-
const antdThemeName = themeNameToAntdName[theme.themeName];
|
|
53977
|
-
return "".concat(theme.general.classnamePrefix, "-").concat(antdThemeName);
|
|
53978
|
-
}
|
|
53979
|
-
|
|
53980
|
-
function getPrefixedClassNameFromTheme(theme, className) {
|
|
53981
|
-
return [getClassNamePrefix(theme), className].filter(Boolean).join('-');
|
|
53982
|
-
}
|
|
53983
|
-
|
|
53984
|
-
function useDesignSystemTheme() {
|
|
53985
|
-
const emotionTheme = (0, _react2.useTheme)(); // Graceful fallback to default theme in case a test or developer forgot context.
|
|
53986
|
-
|
|
53987
|
-
const theme = emotionTheme && emotionTheme.general ? emotionTheme : getTheme('default');
|
|
53988
|
-
return {
|
|
53989
|
-
theme: theme,
|
|
53990
|
-
classNamePrefix: getClassNamePrefix(theme),
|
|
53991
|
-
getPrefixedClassName: className => getPrefixedClassNameFromTheme(theme, className)
|
|
53992
|
-
};
|
|
53993
|
-
} // This is a simple typed HOC wrapper around the useDesignSystemTheme hook, for use in older react components.
|
|
53994
|
-
|
|
53995
|
-
|
|
53996
|
-
function WithDesignSystemThemeHoc(Component) {
|
|
53997
|
-
return function WrappedWithDesignSystemTheme(props) {
|
|
53998
|
-
const themeValues = useDesignSystemTheme();
|
|
53999
|
-
return (0, _jsxRuntime.jsx)(Component, { ...props,
|
|
54000
|
-
designSystemThemeApi: themeValues
|
|
54001
|
-
});
|
|
54002
|
-
};
|
|
54003
|
-
}
|
|
54004
|
-
/**
|
|
54005
|
-
* A helper hook that allows quick creation of theme-dependent styles.
|
|
54006
|
-
* Results in more compact code than using useMemo and
|
|
54007
|
-
* useDesignSystemTheme separately.
|
|
54008
|
-
*
|
|
54009
|
-
* @example
|
|
54010
|
-
* const styles = useThemedStyles((theme) => ({
|
|
54011
|
-
* overlay: {
|
|
54012
|
-
* backgroundColor: theme.colors.backgroundPrimary,
|
|
54013
|
-
* borderRadius: theme.borders.borderRadiusMd,
|
|
54014
|
-
* },
|
|
54015
|
-
* wrapper: {
|
|
54016
|
-
* display: 'flex',
|
|
54017
|
-
* gap: theme.spacing.md,
|
|
54018
|
-
* },
|
|
54019
|
-
* }));
|
|
54020
|
-
|
|
54021
|
-
* <div css={styles.overlay}>...</div>
|
|
54022
|
-
*
|
|
54023
|
-
* @param styleFactory Factory function that accepts theme object as a parameter and returns
|
|
54024
|
-
* the style object. **Note**: factory function body is being memoized internally and is intended
|
|
54025
|
-
* to be used only for simple style objects that depend solely on the theme. If you want to use
|
|
54026
|
-
* styles that change depending on external values (state, props etc.) you should use
|
|
54027
|
-
* `useDesignSystemTheme` directly with your own reaction mechanism.
|
|
54028
|
-
* @returns The constructed style object
|
|
54029
|
-
*/
|
|
54030
|
-
|
|
54031
|
-
|
|
54032
|
-
const useThemedStyles = styleFactory => {
|
|
54033
|
-
const {
|
|
54034
|
-
theme
|
|
54035
|
-
} = useDesignSystemTheme(); // We can assume that the factory function won't change and we're
|
|
54036
|
-
// observing theme changes only.
|
|
54037
|
-
|
|
54038
|
-
const styleFactoryRef = (0, React.useRef)(styleFactory);
|
|
54039
|
-
return (0, React.useMemo)(() => styleFactoryRef.current(theme), [theme]);
|
|
54040
|
-
};
|
|
54041
|
-
|
|
54042
|
-
exports.useThemedStyles = useThemedStyles;
|
|
54043
|
-
const DuboisContextDefaults = {
|
|
54044
|
-
enableAnimation: false,
|
|
54045
|
-
theme: 'default',
|
|
54046
|
-
// Prefer to use useDesignSystemTheme.getPrefixedClassName instead
|
|
54047
|
-
getPrefixCls: suffix => suffix ? "du-bois-".concat(suffix) : 'du-bois'
|
|
54048
|
-
};
|
|
54049
|
-
const DesignSystemContext = /*#__PURE__*/(0, React.createContext)(DuboisContextDefaults);
|
|
54050
|
-
exports.DesignSystemContext = DesignSystemContext;
|
|
54051
|
-
|
|
54052
|
-
function getAnimationCss(enableAnimation) {
|
|
54053
|
-
const disableAnimationCss = {
|
|
54054
|
-
animationDuration: '0s !important',
|
|
54055
|
-
transition: 'none !important'
|
|
54056
|
-
};
|
|
54057
|
-
return enableAnimation ? {} : { // Apply to the current element
|
|
54058
|
-
...disableAnimationCss,
|
|
54059
|
-
'&::before': disableAnimationCss,
|
|
54060
|
-
'&::after': disableAnimationCss,
|
|
54061
|
-
// Also apply to all child elements with a class that starts with our prefix
|
|
54062
|
-
'[class*=du-bois]': { ...disableAnimationCss,
|
|
54063
|
-
// Also target any pseudo-elements associated with those elements, since these can also be animated.
|
|
54064
|
-
'&::before': disableAnimationCss,
|
|
54065
|
-
'&::after': disableAnimationCss
|
|
54066
|
-
}
|
|
54067
|
-
};
|
|
54068
|
-
}
|
|
54069
|
-
|
|
54070
|
-
const DesignSystemProviderPropsContext = /*#__PURE__*/React.default.createContext(null);
|
|
54071
|
-
|
|
54072
|
-
const DesignSystemProvider = _ref => {
|
|
54073
|
-
let {
|
|
54074
|
-
children,
|
|
54075
|
-
theme: themeName,
|
|
54076
|
-
enableAnimation = false,
|
|
54077
|
-
zIndexBase = 1000,
|
|
54078
|
-
getPopupContainer
|
|
54079
|
-
} = _ref;
|
|
54080
|
-
const theme = (0, React.useMemo)(() => getTheme(themeName || 'default', {
|
|
54081
|
-
enableAnimation,
|
|
54082
|
-
zIndexBase,
|
|
54083
|
-
isCompact: true
|
|
54084
|
-
}), // TODO: revisit this
|
|
54085
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
54086
|
-
[themeName, zIndexBase]);
|
|
54087
|
-
const providerPropsContext = (0, React.useMemo)(() => ({
|
|
54088
|
-
theme: themeName,
|
|
54089
|
-
enableAnimation,
|
|
54090
|
-
zIndexBase,
|
|
54091
|
-
isCompact: true,
|
|
54092
|
-
getPopupContainer
|
|
54093
|
-
}), [themeName, enableAnimation, zIndexBase, getPopupContainer]);
|
|
54094
|
-
const classNamePrefix = getClassNamePrefix(theme);
|
|
54095
|
-
const value = (0, React.useMemo)(() => {
|
|
54096
|
-
return {
|
|
54097
|
-
enableAnimation,
|
|
54098
|
-
theme: theme.themeName,
|
|
54099
|
-
getPrefixCls: suffix => getPrefixedClassNameFromTheme(theme, suffix),
|
|
54100
|
-
getPopupContainer
|
|
54101
|
-
};
|
|
54102
|
-
}, [enableAnimation, theme, getPopupContainer]);
|
|
54103
|
-
(0, React.useEffect)(() => {
|
|
54104
|
-
return () => {
|
|
54105
|
-
// when the design system context is unmounted, make sure the notification cache is also cleaned up
|
|
54106
|
-
antDNotification.destroy();
|
|
54107
|
-
};
|
|
54108
|
-
}, []);
|
|
54109
|
-
return (0, _jsxRuntime.jsx)(DesignSystemProviderPropsContext.Provider, {
|
|
54110
|
-
value: providerPropsContext,
|
|
54111
|
-
children: (0, _jsxRuntime.jsx)(_react2.ThemeProvider, {
|
|
54112
|
-
theme: theme,
|
|
54113
|
-
children: (0, _jsxRuntime.jsx)(ConfigProvider$1, {
|
|
54114
|
-
prefixCls: classNamePrefix,
|
|
54115
|
-
getPopupContainer: getPopupContainer,
|
|
54116
|
-
children: (0, _jsxRuntime.jsx)(DesignSystemContext.Provider, {
|
|
54117
|
-
value: value,
|
|
54118
|
-
children: children
|
|
54119
|
-
})
|
|
54120
|
-
})
|
|
54121
|
-
})
|
|
54122
|
-
});
|
|
54123
|
-
};
|
|
54124
|
-
|
|
54125
|
-
exports.DesignSystemProvider = DesignSystemProvider;
|
|
54126
54284
|
|
|
54127
54285
|
const Alert = _ref => {
|
|
54128
54286
|
let {
|
|
@@ -54172,16 +54330,19 @@ const getAlertEmotionStyles = (clsPrefix, theme, props) => {
|
|
|
54172
54330
|
const classMessage = ".".concat(clsPrefix, "-message");
|
|
54173
54331
|
const classWithDescription = ".".concat(clsPrefix, "-with-description");
|
|
54174
54332
|
const classWithIcon = ".".concat(clsPrefix, "-icon");
|
|
54175
|
-
const ALERT_ICON_HEIGHT =
|
|
54176
|
-
const ALERT_ICON_FONT_SIZE =
|
|
54333
|
+
const ALERT_ICON_HEIGHT = 16;
|
|
54334
|
+
const ALERT_ICON_FONT_SIZE = 16;
|
|
54177
54335
|
const styles = {
|
|
54178
54336
|
// General
|
|
54179
|
-
padding: theme.
|
|
54337
|
+
padding: theme.spacing.sm,
|
|
54180
54338
|
["".concat(classMessage, ", &").concat(classWithDescription, " ").concat(classMessage)]: {
|
|
54181
54339
|
// TODO(giles): These three rules are all the same as the H3 styles. We can refactor them out into a shared object.
|
|
54182
54340
|
fontSize: theme.typography.fontSizeBase,
|
|
54183
54341
|
fontWeight: theme.typography.typographyBoldFontWeight,
|
|
54184
|
-
lineHeight:
|
|
54342
|
+
lineHeight: theme.typography.lineHeightBase
|
|
54343
|
+
},
|
|
54344
|
+
["".concat(classDescription)]: {
|
|
54345
|
+
lineHeight: theme.typography.lineHeightBase
|
|
54185
54346
|
},
|
|
54186
54347
|
// Icons
|
|
54187
54348
|
[classCloseButton]: {
|
|
@@ -54195,24 +54356,27 @@ const getAlertEmotionStyles = (clsPrefix, theme, props) => {
|
|
|
54195
54356
|
}
|
|
54196
54357
|
},
|
|
54197
54358
|
["".concat(classCloseIcon, ", ").concat(classCloseButton)]: {
|
|
54359
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
54198
54360
|
height: ALERT_ICON_HEIGHT,
|
|
54199
54361
|
width: ALERT_ICON_HEIGHT,
|
|
54200
54362
|
display: 'flex',
|
|
54201
54363
|
alignItems: 'center',
|
|
54202
54364
|
justifyContent: 'center'
|
|
54203
54365
|
},
|
|
54204
|
-
|
|
54205
|
-
|
|
54206
|
-
|
|
54207
|
-
|
|
54208
|
-
|
|
54209
|
-
|
|
54210
|
-
|
|
54211
|
-
|
|
54212
|
-
|
|
54213
|
-
|
|
54366
|
+
[classWithIcon]: {
|
|
54367
|
+
fontSize: ALERT_ICON_FONT_SIZE,
|
|
54368
|
+
marginTop: 2
|
|
54369
|
+
},
|
|
54370
|
+
["".concat(classCloseIcon, ", ").concat(classCloseButton, ", ").concat(classCloseText, " > span")]: {
|
|
54371
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
54372
|
+
height: ALERT_ICON_HEIGHT,
|
|
54373
|
+
width: ALERT_ICON_HEIGHT,
|
|
54374
|
+
fontSize: ALERT_ICON_FONT_SIZE,
|
|
54375
|
+
marginTop: 2,
|
|
54376
|
+
'& > span': {
|
|
54377
|
+
lineHeight: theme.typography.lineHeightBase
|
|
54214
54378
|
}
|
|
54215
|
-
}
|
|
54379
|
+
},
|
|
54216
54380
|
// No description
|
|
54217
54381
|
...(!props.description && {
|
|
54218
54382
|
[classMessage]: {
|
|
@@ -54237,6 +54401,13 @@ const getAlertEmotionStyles = (clsPrefix, theme, props) => {
|
|
|
54237
54401
|
borderStyle: 'solid',
|
|
54238
54402
|
borderWidth: "".concat(theme.general.borderWidth, "px 0")
|
|
54239
54403
|
}),
|
|
54404
|
+
// After closed
|
|
54405
|
+
'&[data-show="false"]': {
|
|
54406
|
+
borderWidth: 0,
|
|
54407
|
+
padding: 0,
|
|
54408
|
+
width: 0,
|
|
54409
|
+
height: 0
|
|
54410
|
+
},
|
|
54240
54411
|
...getAnimationCss(theme.options.enableAnimation)
|
|
54241
54412
|
};
|
|
54242
54413
|
return (
|
|
@@ -54247,11 +54418,16 @@ const getAlertEmotionStyles = (clsPrefix, theme, props) => {
|
|
|
54247
54418
|
);
|
|
54248
54419
|
};
|
|
54249
54420
|
|
|
54250
|
-
const AutoComplete =
|
|
54421
|
+
const AutoComplete = _ref => {
|
|
54422
|
+
let {
|
|
54423
|
+
dangerouslySetAntdProps,
|
|
54424
|
+
...props
|
|
54425
|
+
} = _ref;
|
|
54251
54426
|
const {
|
|
54252
54427
|
theme
|
|
54253
54428
|
} = useDesignSystemTheme();
|
|
54254
54429
|
return (0, _jsxRuntime.jsx)(AntDAutoComplete, { ...props,
|
|
54430
|
+
...dangerouslySetAntdProps,
|
|
54255
54431
|
css:
|
|
54256
54432
|
/*#__PURE__*/
|
|
54257
54433
|
|
|
@@ -54266,6 +54442,7 @@ AutoComplete.Option = AntDAutoComplete.Option;
|
|
|
54266
54442
|
const Breadcrumb = _ref => {
|
|
54267
54443
|
let {
|
|
54268
54444
|
dangerouslySetAntdProps,
|
|
54445
|
+
includeTrailingCaret = true,
|
|
54269
54446
|
...props
|
|
54270
54447
|
} = _ref;
|
|
54271
54448
|
const {
|
|
@@ -54294,7 +54471,7 @@ const Breadcrumb = _ref => {
|
|
|
54294
54471
|
}
|
|
54295
54472
|
}
|
|
54296
54473
|
}, process.env.NODE_ENV === "production" ? "" : ";label:styles;", process.env.NODE_ENV === "production" ? "" : ";label:styles;");
|
|
54297
|
-
return (0, _jsxRuntime.
|
|
54474
|
+
return (0, _jsxRuntime.jsxs)(Breadcrumb$2, {
|
|
54298
54475
|
separator: (0, _jsxRuntime.jsx)(ChevronRightIcon, {}),
|
|
54299
54476
|
...props,
|
|
54300
54477
|
...dangerouslySetAntdProps,
|
|
@@ -54302,7 +54479,10 @@ const Breadcrumb = _ref => {
|
|
|
54302
54479
|
/*#__PURE__*/
|
|
54303
54480
|
|
|
54304
54481
|
/*#__PURE__*/
|
|
54305
|
-
(0, _react2.css)(getAnimationCss(theme.options.enableAnimation), styles, process.env.NODE_ENV === "production" ? "" : ";label:Breadcrumb;", process.env.NODE_ENV === "production" ? "" : ";label:css;")
|
|
54482
|
+
(0, _react2.css)(getAnimationCss(theme.options.enableAnimation), styles, process.env.NODE_ENV === "production" ? "" : ";label:Breadcrumb;", process.env.NODE_ENV === "production" ? "" : ";label:css;"),
|
|
54483
|
+
children: [props.children, includeTrailingCaret && props.children && (0, _jsxRuntime.jsx)(Breadcrumb.Item, {
|
|
54484
|
+
children: " "
|
|
54485
|
+
})]
|
|
54306
54486
|
});
|
|
54307
54487
|
};
|
|
54308
54488
|
|
|
@@ -54425,42 +54605,42 @@ function getLinkStyles(theme) {
|
|
|
54425
54605
|
|
|
54426
54606
|
function getPrimaryDangerStyles(theme) {
|
|
54427
54607
|
return {
|
|
54428
|
-
backgroundColor: theme.colors.
|
|
54608
|
+
backgroundColor: theme.colors.actionDangerPrimaryBackgroundDefault,
|
|
54429
54609
|
borderColor: 'transparent',
|
|
54430
54610
|
color: theme.colors.white,
|
|
54431
54611
|
'&:hover': {
|
|
54432
|
-
backgroundColor: theme.colors.
|
|
54612
|
+
backgroundColor: theme.colors.actionDangerPrimaryBackgroundHover,
|
|
54433
54613
|
borderColor: 'transparent',
|
|
54434
54614
|
color: theme.colors.white
|
|
54435
54615
|
},
|
|
54436
54616
|
'&:active': {
|
|
54437
|
-
backgroundColor: theme.colors.
|
|
54617
|
+
backgroundColor: theme.colors.actionDangerPrimaryBackgroundPress,
|
|
54438
54618
|
borderColor: 'transparent',
|
|
54439
54619
|
color: theme.colors.white
|
|
54440
54620
|
},
|
|
54441
54621
|
'&:focus-visible': {
|
|
54442
|
-
outlineColor: theme.colors.
|
|
54622
|
+
outlineColor: theme.colors.actionDangerPrimaryBackgroundDefault
|
|
54443
54623
|
}
|
|
54444
54624
|
};
|
|
54445
54625
|
}
|
|
54446
54626
|
|
|
54447
54627
|
function getSecondaryDangerStyles(theme) {
|
|
54448
54628
|
return {
|
|
54449
|
-
backgroundColor: theme.colors.
|
|
54450
|
-
borderColor: theme.colors.
|
|
54451
|
-
color: theme.colors.
|
|
54629
|
+
backgroundColor: theme.colors.actionDangerDefaultBackgroundDefault,
|
|
54630
|
+
borderColor: theme.colors.actionDangerDefaultBorderDefault,
|
|
54631
|
+
color: theme.colors.actionDangerDefaultTextDefault,
|
|
54452
54632
|
'&:hover': {
|
|
54453
|
-
backgroundColor: theme.colors.
|
|
54454
|
-
borderColor: theme.colors.
|
|
54455
|
-
color: theme.colors.
|
|
54633
|
+
backgroundColor: theme.colors.actionDangerDefaultBackgroundHover,
|
|
54634
|
+
borderColor: theme.colors.actionDangerDefaultBorderHover,
|
|
54635
|
+
color: theme.colors.actionDangerDefaultTextHover
|
|
54456
54636
|
},
|
|
54457
54637
|
'&:active': {
|
|
54458
|
-
backgroundColor: theme.colors.
|
|
54459
|
-
borderColor: theme.colors.
|
|
54460
|
-
color: theme.colors.
|
|
54638
|
+
backgroundColor: theme.colors.actionDangerDefaultBackgroundPress,
|
|
54639
|
+
borderColor: theme.colors.actionDangerDefaultBorderPress,
|
|
54640
|
+
color: theme.colors.actionDangerDefaultTextPress
|
|
54461
54641
|
},
|
|
54462
54642
|
'&:focus-visible': {
|
|
54463
|
-
outlineColor: theme.colors.
|
|
54643
|
+
outlineColor: theme.colors.actionDangerPrimaryBackgroundDefault
|
|
54464
54644
|
}
|
|
54465
54645
|
};
|
|
54466
54646
|
}
|
|
@@ -54483,6 +54663,10 @@ function getDisabledStyles(theme) {
|
|
|
54483
54663
|
};
|
|
54484
54664
|
}
|
|
54485
54665
|
|
|
54666
|
+
function getEndIconClsName(theme) {
|
|
54667
|
+
return "".concat(theme.general.iconfontCssPrefix, "-btn-end-icon");
|
|
54668
|
+
}
|
|
54669
|
+
|
|
54486
54670
|
const getButtonEmotionStyles = _ref => {
|
|
54487
54671
|
let {
|
|
54488
54672
|
theme,
|
|
@@ -54495,30 +54679,69 @@ const getButtonEmotionStyles = _ref => {
|
|
|
54495
54679
|
type
|
|
54496
54680
|
} = _ref;
|
|
54497
54681
|
const clsIcon = ".".concat(theme.general.iconfontCssPrefix);
|
|
54682
|
+
const clsEndIcon = ".".concat(getEndIconClsName(theme));
|
|
54498
54683
|
const clsLoadingIcon = ".".concat(classNamePrefix, "-btn-loading-icon");
|
|
54499
54684
|
const clsIconOnly = ".".concat(classNamePrefix, "-btn-icon-only");
|
|
54500
54685
|
const classPrimary = ".".concat(classNamePrefix, "-btn-primary");
|
|
54501
54686
|
const classLink = ".".concat(classNamePrefix, "-btn-link");
|
|
54502
54687
|
const classDangerous = ".".concat(classNamePrefix, "-btn-dangerous");
|
|
54503
54688
|
const SMALL_BUTTON_HEIGHT = 24;
|
|
54689
|
+
const tertiaryColors = {
|
|
54690
|
+
background: theme.colors.actionTertiaryBackgroundDefault,
|
|
54691
|
+
color: theme.colors.actionTertiaryTextDefault,
|
|
54692
|
+
'&:hover': {
|
|
54693
|
+
background: theme.colors.actionTertiaryBackgroundHover,
|
|
54694
|
+
color: theme.colors.actionTertiaryTextHover
|
|
54695
|
+
},
|
|
54696
|
+
'&:active': {
|
|
54697
|
+
background: theme.colors.actionTertiaryBackgroundPress,
|
|
54698
|
+
color: theme.colors.actionTertiaryTextPress
|
|
54699
|
+
}
|
|
54700
|
+
};
|
|
54701
|
+
const iconCss = {
|
|
54702
|
+
fontSize: theme.general.buttonInnerHeight - 4,
|
|
54703
|
+
// verticalAlign used by AntD to move icon and label to center
|
|
54704
|
+
// TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
|
|
54705
|
+
// behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
|
|
54706
|
+
verticalAlign: -5,
|
|
54707
|
+
lineHeight: 0,
|
|
54708
|
+
...(onlyIcon && {
|
|
54709
|
+
verticalAlign: -3
|
|
54710
|
+
}),
|
|
54711
|
+
// verticalAlign used by AntD to move icon and label to center
|
|
54712
|
+
// TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
|
|
54713
|
+
// behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
|
|
54714
|
+
// Need to make sure not to apply this to regular buttons as it will offset the icons
|
|
54715
|
+
...(!onlyIcon && {
|
|
54716
|
+
verticalAlign: -4
|
|
54717
|
+
}),
|
|
54718
|
+
...(size === 'small' && {
|
|
54719
|
+
lineHeight: theme.typography.lineHeightSm,
|
|
54720
|
+
...(onlyIcon && {
|
|
54721
|
+
fontSize: 16
|
|
54722
|
+
})
|
|
54723
|
+
})
|
|
54724
|
+
};
|
|
54725
|
+
const inactiveIconCss = {
|
|
54726
|
+
color: theme.colors.grey600
|
|
54727
|
+
};
|
|
54728
|
+
const endIconCssSelector = "span > ".concat(clsEndIcon, " > ").concat(clsIcon);
|
|
54504
54729
|
const styles = {
|
|
54505
54730
|
lineHeight: theme.typography.lineHeightBase,
|
|
54506
54731
|
boxShadow: 'none',
|
|
54732
|
+
height: theme.general.heightSm,
|
|
54507
54733
|
...(!onlyIcon && {
|
|
54508
54734
|
'&&': {
|
|
54509
|
-
padding:
|
|
54510
|
-
...(size === '
|
|
54735
|
+
padding: '4px 12px',
|
|
54736
|
+
...(size === 'small' && {
|
|
54511
54737
|
padding: '0 8px'
|
|
54512
54738
|
})
|
|
54513
54739
|
}
|
|
54514
54740
|
}),
|
|
54515
|
-
...(
|
|
54516
|
-
|
|
54517
|
-
...(onlyIcon && {
|
|
54518
|
-
width: theme.general.heightSm
|
|
54519
|
-
})
|
|
54741
|
+
...(onlyIcon && {
|
|
54742
|
+
width: theme.general.heightSm
|
|
54520
54743
|
}),
|
|
54521
|
-
...(size === '
|
|
54744
|
+
...(size === 'small' && {
|
|
54522
54745
|
height: SMALL_BUTTON_HEIGHT,
|
|
54523
54746
|
lineHeight: theme.typography.lineHeightBase,
|
|
54524
54747
|
...(onlyIcon && {
|
|
@@ -54593,39 +54816,26 @@ const getButtonEmotionStyles = _ref => {
|
|
|
54593
54816
|
["> ".concat(clsIcon, " + span, > span + ").concat(clsIcon)]: {
|
|
54594
54817
|
marginRight: 0
|
|
54595
54818
|
},
|
|
54596
|
-
["> ".concat(clsIcon)]:
|
|
54597
|
-
|
|
54598
|
-
|
|
54599
|
-
// TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
|
|
54600
|
-
// behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
|
|
54601
|
-
verticalAlign: -5,
|
|
54602
|
-
lineHeight: 0,
|
|
54603
|
-
...(onlyIcon && {
|
|
54604
|
-
verticalAlign: theme.options.isCompact || size === 'small' ? -3 : -5
|
|
54605
|
-
}),
|
|
54606
|
-
...((theme.options.isCompact || size === 'small') && {
|
|
54607
|
-
fontSize: theme.general.buttonInnerHeight - 4,
|
|
54608
|
-
// verticalAlign used by AntD to move icon and label to center
|
|
54609
|
-
// TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
|
|
54610
|
-
// behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
|
|
54611
|
-
// Need to make sure not to apply this to regular buttons as it will offset the icons
|
|
54612
|
-
...(!onlyIcon && {
|
|
54613
|
-
verticalAlign: -4
|
|
54614
|
-
})
|
|
54615
|
-
}),
|
|
54616
|
-
...(size === 'ultrasmall' && {
|
|
54617
|
-
lineHeight: theme.typography.lineHeightBase,
|
|
54618
|
-
...(onlyIcon && {
|
|
54619
|
-
fontSize: 16
|
|
54620
|
-
})
|
|
54621
|
-
})
|
|
54819
|
+
["> ".concat(clsIcon)]: iconCss,
|
|
54820
|
+
["> ".concat(endIconCssSelector)]: { ...iconCss,
|
|
54821
|
+
marginLeft: size === 'small' ? 8 : 12
|
|
54622
54822
|
},
|
|
54823
|
+
...(!type && {
|
|
54824
|
+
["&:enabled:not(:hover):not(:active) > ".concat(clsIcon)]: inactiveIconCss
|
|
54825
|
+
}),
|
|
54826
|
+
...(!type && {
|
|
54827
|
+
["&:enabled:not(:hover):not(:active) > ".concat(endIconCssSelector)]: inactiveIconCss
|
|
54828
|
+
}),
|
|
54623
54829
|
// Disable animations
|
|
54624
54830
|
["&[".concat(classNamePrefix, "-click-animating-without-extra-node='true']::after")]: {
|
|
54625
54831
|
display: 'none'
|
|
54626
54832
|
},
|
|
54627
54833
|
["&".concat(clsIconOnly)]: {
|
|
54628
54834
|
border: 'none',
|
|
54835
|
+
//
|
|
54836
|
+
["&:enabled:not(".concat(classLink, ")")]: { ...tertiaryColors,
|
|
54837
|
+
color: theme.colors.textSecondary
|
|
54838
|
+
},
|
|
54629
54839
|
'&[disabled]:hover': {
|
|
54630
54840
|
backgroundColor: 'transparent'
|
|
54631
54841
|
}
|
|
@@ -54638,13 +54848,19 @@ const getButtonEmotionStyles = _ref => {
|
|
|
54638
54848
|
}
|
|
54639
54849
|
},
|
|
54640
54850
|
...getAnimationCss(enableAnimation)
|
|
54851
|
+
}; // Moved outside main style object because state & selector matching in the already existing object keys can create bugs and unwanted overwrites
|
|
54852
|
+
|
|
54853
|
+
const typeStyles = {
|
|
54854
|
+
["&:enabled:not(".concat(clsIconOnly, ")")]: { ...(type === 'tertiary' && tertiaryColors)
|
|
54855
|
+
}
|
|
54641
54856
|
};
|
|
54642
54857
|
const importantStyles = importantify(styles);
|
|
54858
|
+
const importantTypeStyles = importantify(typeStyles);
|
|
54643
54859
|
return (
|
|
54644
54860
|
/*#__PURE__*/
|
|
54645
54861
|
|
|
54646
54862
|
/*#__PURE__*/
|
|
54647
|
-
(0, _react2.css)(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getButtonEmotionStyles;", process.env.NODE_ENV === "production" ? "" : ";label:getButtonEmotionStyles;")
|
|
54863
|
+
(0, _react2.css)(importantStyles, importantTypeStyles, process.env.NODE_ENV === "production" ? "" : ";label:getButtonEmotionStyles;", process.env.NODE_ENV === "production" ? "" : ";label:getButtonEmotionStyles;")
|
|
54648
54864
|
);
|
|
54649
54865
|
};
|
|
54650
54866
|
|
|
@@ -54656,19 +54872,21 @@ _ref2, ref) {
|
|
|
54656
54872
|
children,
|
|
54657
54873
|
size,
|
|
54658
54874
|
type,
|
|
54875
|
+
endIcon,
|
|
54659
54876
|
...props
|
|
54660
54877
|
} = _ref2;
|
|
54661
54878
|
const {
|
|
54662
54879
|
theme,
|
|
54663
54880
|
classNamePrefix
|
|
54664
54881
|
} = useDesignSystemTheme();
|
|
54882
|
+
const clsEndIcon = getEndIconClsName(theme);
|
|
54665
54883
|
return (0, _jsxRuntime.jsx)(Button$3, { ...props,
|
|
54666
54884
|
css: getButtonEmotionStyles({
|
|
54667
54885
|
theme,
|
|
54668
54886
|
classNamePrefix,
|
|
54669
54887
|
loading: Boolean(props.loading),
|
|
54670
54888
|
withIcon: Boolean(props.icon),
|
|
54671
|
-
onlyIcon: Boolean(props.icon && !children),
|
|
54889
|
+
onlyIcon: Boolean((props.icon || endIcon) && !children),
|
|
54672
54890
|
danger: Boolean(props.danger),
|
|
54673
54891
|
enableAnimation: theme.options.enableAnimation,
|
|
54674
54892
|
size: size || 'middle',
|
|
@@ -54678,8 +54896,14 @@ _ref2, ref) {
|
|
|
54678
54896
|
...dangerouslySetAntdProps,
|
|
54679
54897
|
ref: ref,
|
|
54680
54898
|
type: type === 'tertiary' ? 'link' : type,
|
|
54681
|
-
children: children && (0, _jsxRuntime.
|
|
54682
|
-
|
|
54899
|
+
children: children && (0, _jsxRuntime.jsxs)("span", {
|
|
54900
|
+
style: {
|
|
54901
|
+
visibility: props !== null && props !== void 0 && props.loading ? 'hidden' : 'visible'
|
|
54902
|
+
},
|
|
54903
|
+
children: [children, endIcon && (0, _jsxRuntime.jsx)("span", {
|
|
54904
|
+
className: clsEndIcon,
|
|
54905
|
+
children: endIcon
|
|
54906
|
+
})]
|
|
54683
54907
|
})
|
|
54684
54908
|
});
|
|
54685
54909
|
}); // This is needed for other Ant components that wrap Button, such as Tooltip, to correctly
|
|
@@ -54696,6 +54920,7 @@ function getCheckboxEmotionStyles(clsPrefix, theme) {
|
|
|
54696
54920
|
const classIndeterminate = ".".concat(clsPrefix, "-indeterminate");
|
|
54697
54921
|
const classChecked = ".".concat(clsPrefix, "-checked");
|
|
54698
54922
|
const classDisabled = ".".concat(clsPrefix, "-disabled");
|
|
54923
|
+
const classDisabledWrapper = ".".concat(clsPrefix, "-wrapper-disabled");
|
|
54699
54924
|
const defaultSelector = "".concat(classInput, " + ").concat(classInner);
|
|
54700
54925
|
const hoverSelector = "".concat(classInput, ":hover + ").concat(classInner);
|
|
54701
54926
|
const pressSelector = "".concat(classInput, ":active + ").concat(classInner);
|
|
@@ -54762,59 +54987,64 @@ function getCheckboxEmotionStyles(clsPrefix, theme) {
|
|
|
54762
54987
|
}
|
|
54763
54988
|
},
|
|
54764
54989
|
// Disabled state
|
|
54765
|
-
[
|
|
54766
|
-
|
|
54767
|
-
|
|
54768
|
-
[
|
|
54769
|
-
|
|
54770
|
-
|
|
54990
|
+
["&".concat(classDisabledWrapper)]: {
|
|
54991
|
+
[classDisabled]: {
|
|
54992
|
+
// Disabled Checked
|
|
54993
|
+
["&".concat(classChecked)]: {
|
|
54994
|
+
[classInner]: {
|
|
54995
|
+
backgroundColor: theme.colors.actionDisabledBackground,
|
|
54996
|
+
borderColor: theme.colors.actionDisabledBackground
|
|
54997
|
+
},
|
|
54998
|
+
// Disabled checked hover
|
|
54999
|
+
[hoverSelector]: {
|
|
55000
|
+
backgroundColor: theme.colors.actionDisabledBackground,
|
|
55001
|
+
borderColor: theme.colors.actionDisabledBackground
|
|
55002
|
+
}
|
|
54771
55003
|
},
|
|
54772
|
-
// Disabled
|
|
54773
|
-
[
|
|
54774
|
-
|
|
54775
|
-
|
|
54776
|
-
|
|
54777
|
-
|
|
54778
|
-
|
|
54779
|
-
|
|
55004
|
+
// Disabled indeterminate
|
|
55005
|
+
["&".concat(classIndeterminate)]: {
|
|
55006
|
+
[classInner]: {
|
|
55007
|
+
backgroundColor: theme.colors.actionDisabledBackground,
|
|
55008
|
+
borderColor: theme.colors.actionDisabledBackground
|
|
55009
|
+
},
|
|
55010
|
+
// Disabled indeterminate hover
|
|
55011
|
+
[hoverSelector]: {
|
|
55012
|
+
backgroundColor: theme.colors.actionDisabledBackground,
|
|
55013
|
+
borderColor: theme.colors.actionDisabledBackground
|
|
55014
|
+
}
|
|
55015
|
+
},
|
|
55016
|
+
// Disabled unchecked
|
|
54780
55017
|
[classInner]: {
|
|
54781
|
-
backgroundColor: theme.colors.
|
|
54782
|
-
borderColor: theme.colors.actionDisabledBackground
|
|
55018
|
+
backgroundColor: theme.colors.white,
|
|
55019
|
+
borderColor: theme.colors.actionDisabledBackground,
|
|
55020
|
+
// The after pseudo-element is used for the check image itself
|
|
55021
|
+
'&:after': {
|
|
55022
|
+
borderColor: theme.colors.white
|
|
55023
|
+
}
|
|
54783
55024
|
},
|
|
54784
|
-
// Disabled
|
|
55025
|
+
// Disabled hover
|
|
54785
55026
|
[hoverSelector]: {
|
|
54786
|
-
backgroundColor: theme.colors.
|
|
55027
|
+
backgroundColor: theme.colors.white,
|
|
54787
55028
|
borderColor: theme.colors.actionDisabledBackground
|
|
54788
55029
|
}
|
|
54789
|
-
},
|
|
54790
|
-
// Disabled unchecked
|
|
54791
|
-
[classInner]: {
|
|
54792
|
-
backgroundColor: theme.colors.white,
|
|
54793
|
-
borderColor: theme.colors.actionDisabledBackground,
|
|
54794
|
-
// The after pseudo-element is used for the check image itself
|
|
54795
|
-
'&:after': {
|
|
54796
|
-
borderColor: theme.colors.white
|
|
54797
|
-
}
|
|
54798
|
-
},
|
|
54799
|
-
// Disabled hover
|
|
54800
|
-
[hoverSelector]: {
|
|
54801
|
-
backgroundColor: theme.colors.white,
|
|
54802
|
-
borderColor: theme.colors.actionDisabledBackground
|
|
54803
55030
|
}
|
|
54804
55031
|
},
|
|
54805
55032
|
// Animation
|
|
54806
55033
|
...getAnimationCss(theme.options.enableAnimation)
|
|
54807
55034
|
};
|
|
54808
55035
|
return styles;
|
|
54809
|
-
}
|
|
54810
|
-
|
|
55036
|
+
}
|
|
54811
55037
|
|
|
54812
55038
|
const DuboisCheckbox = /*#__PURE__*/(0, React.forwardRef)(function Checkbox(_ref, ref) {
|
|
54813
55039
|
let {
|
|
54814
55040
|
isChecked,
|
|
54815
55041
|
onChange,
|
|
54816
55042
|
children,
|
|
54817
|
-
isDisabled = false
|
|
55043
|
+
isDisabled = false,
|
|
55044
|
+
style,
|
|
55045
|
+
wrapperStyle,
|
|
55046
|
+
dangerouslySetAntdProps,
|
|
55047
|
+
...restProps
|
|
54818
55048
|
} = _ref;
|
|
54819
55049
|
const {
|
|
54820
55050
|
theme,
|
|
@@ -54823,6 +55053,7 @@ const DuboisCheckbox = /*#__PURE__*/(0, React.forwardRef)(function Checkbox(_ref
|
|
|
54823
55053
|
const clsPrefix = getPrefixedClassName('checkbox');
|
|
54824
55054
|
return (// Antd checkboxes are inline, so we add this div to make ours block-level
|
|
54825
55055
|
(0, _jsxRuntime.jsx)("div", {
|
|
55056
|
+
style: wrapperStyle,
|
|
54826
55057
|
children: (0, _jsxRuntime.jsx)(AntDCheckbox, {
|
|
54827
55058
|
checked: isChecked === null ? undefined : isChecked,
|
|
54828
55059
|
ref: ref,
|
|
@@ -54836,6 +55067,10 @@ const DuboisCheckbox = /*#__PURE__*/(0, React.forwardRef)(function Checkbox(_ref
|
|
|
54836
55067
|
|
|
54837
55068
|
/*#__PURE__*/
|
|
54838
55069
|
(0, _react2.css)(importantify(getCheckboxEmotionStyles(clsPrefix, theme)), process.env.NODE_ENV === "production" ? "" : ";label:DuboisCheckbox;", process.env.NODE_ENV === "production" ? "" : ";label:css;"),
|
|
55070
|
+
style: style,
|
|
55071
|
+
"aria-checked": isChecked === null ? 'mixed' : isChecked,
|
|
55072
|
+
...restProps,
|
|
55073
|
+
...dangerouslySetAntdProps,
|
|
54839
55074
|
children: children
|
|
54840
55075
|
})
|
|
54841
55076
|
})
|
|
@@ -54896,10 +55131,6 @@ function getCollapseEmotionStyles(clsPrefix, theme) {
|
|
|
54896
55131
|
}
|
|
54897
55132
|
}
|
|
54898
55133
|
},
|
|
54899
|
-
["& > ".concat(classItem, " > ").concat(classHeader)]: {
|
|
54900
|
-
padding: '10px 44px 10px 0',
|
|
54901
|
-
lineHeight: theme.typography.lineHeightBase
|
|
54902
|
-
},
|
|
54903
55134
|
[classHeader]: {
|
|
54904
55135
|
color: theme.colors.textPrimary,
|
|
54905
55136
|
fontWeight: 600,
|
|
@@ -54924,12 +55155,10 @@ function getCollapseEmotionStyles(clsPrefix, theme) {
|
|
|
54924
55155
|
[classContentBox]: {
|
|
54925
55156
|
padding: '8px 16px 16px'
|
|
54926
55157
|
},
|
|
54927
|
-
|
|
54928
|
-
|
|
54929
|
-
|
|
54930
|
-
|
|
54931
|
-
}
|
|
54932
|
-
}),
|
|
55158
|
+
["& > ".concat(classItem, " > ").concat(classHeader)]: {
|
|
55159
|
+
padding: '6px 44px 6px 0',
|
|
55160
|
+
lineHeight: theme.typography.lineHeightBase
|
|
55161
|
+
},
|
|
54933
55162
|
...getAnimationCss(theme.options.enableAnimation)
|
|
54934
55163
|
};
|
|
54935
55164
|
return (
|
|
@@ -54952,7 +55181,7 @@ const Collapse = _ref => {
|
|
|
54952
55181
|
} = useDesignSystemTheme();
|
|
54953
55182
|
const clsPrefix = getPrefixedClassName('collapse');
|
|
54954
55183
|
return (0, _jsxRuntime.jsx)(Collapse$2, {
|
|
54955
|
-
expandIcon: ChevronDownIcon,
|
|
55184
|
+
expandIcon: () => (0, _jsxRuntime.jsx)(ChevronDownIcon, {}),
|
|
54956
55185
|
expandIconPosition: "right",
|
|
54957
55186
|
...props,
|
|
54958
55187
|
...dangerouslySetAntdProps,
|
|
@@ -54983,7 +55212,7 @@ function getEmotionStyles(clsPrefix, theme) {
|
|
|
54983
55212
|
const classSeparator = ".".concat(clsPrefix, "-separator");
|
|
54984
55213
|
const classSuffix = ".".concat(clsPrefix, "-suffix");
|
|
54985
55214
|
const styles = {
|
|
54986
|
-
height:
|
|
55215
|
+
height: 32,
|
|
54987
55216
|
borderRadius: theme.borders.borderRadiusMd,
|
|
54988
55217
|
borderColor: theme.colors.border,
|
|
54989
55218
|
color: theme.colors.textPrimary,
|
|
@@ -55174,7 +55403,11 @@ const LegacyDatePicker = Object.assign(DuboisDatePicker, {
|
|
|
55174
55403
|
});
|
|
55175
55404
|
exports.LegacyDatePicker = LegacyDatePicker;
|
|
55176
55405
|
|
|
55177
|
-
const Dropdown =
|
|
55406
|
+
const Dropdown = _ref => {
|
|
55407
|
+
let {
|
|
55408
|
+
dangerouslySetAntdProps,
|
|
55409
|
+
...props
|
|
55410
|
+
} = _ref;
|
|
55178
55411
|
const {
|
|
55179
55412
|
theme
|
|
55180
55413
|
} = useDesignSystemTheme();
|
|
@@ -55184,7 +55417,8 @@ const Dropdown = props => {
|
|
|
55184
55417
|
overlayStyle: {
|
|
55185
55418
|
zIndex: theme.options.zIndexBase + 50,
|
|
55186
55419
|
...props.overlayStyle
|
|
55187
|
-
}
|
|
55420
|
+
},
|
|
55421
|
+
...dangerouslySetAntdProps
|
|
55188
55422
|
});
|
|
55189
55423
|
};
|
|
55190
55424
|
|
|
@@ -55194,13 +55428,14 @@ const Root = DropdownMenu$1.Root; // Behavioral component only
|
|
|
55194
55428
|
const Content$1 = /*#__PURE__*/(0, React.forwardRef)(function Content(_ref, ref) {
|
|
55195
55429
|
let {
|
|
55196
55430
|
children,
|
|
55431
|
+
minWidth = 220,
|
|
55197
55432
|
...props
|
|
55198
55433
|
} = _ref;
|
|
55199
55434
|
return (0, _jsxRuntime.jsx)(DropdownMenu$1.Content, {
|
|
55200
55435
|
ref: ref,
|
|
55201
55436
|
css: theme => ({
|
|
55202
55437
|
backgroundColor: theme.colors.backgroundPrimary,
|
|
55203
|
-
minWidth:
|
|
55438
|
+
minWidth: minWidth,
|
|
55204
55439
|
color: theme.colors.textPrimary,
|
|
55205
55440
|
lineHeight: theme.typography.lineHeightBase,
|
|
55206
55441
|
border: "1px solid ".concat(theme.colors.borderDecorative),
|
|
@@ -55596,7 +55831,7 @@ const getFormItemEmotionStyles = _ref => {
|
|
|
55596
55831
|
margin: 0
|
|
55597
55832
|
},
|
|
55598
55833
|
[clsFormItemInputControl]: {
|
|
55599
|
-
minHeight: theme.
|
|
55834
|
+
minHeight: theme.general.heightSm
|
|
55600
55835
|
},
|
|
55601
55836
|
["".concat(clsFormItemInputControl, " input[disabled]")]: {
|
|
55602
55837
|
border: 'none'
|
|
@@ -55616,13 +55851,18 @@ const FormDubois = /*#__PURE__*/(0, React.forwardRef)(function Form(_ref2, ref)
|
|
|
55616
55851
|
requiredMark: props.requiredMark || false
|
|
55617
55852
|
};
|
|
55618
55853
|
return (0, _jsxRuntime.jsx)(AntDForm, { ...mergedProps,
|
|
55854
|
+
colon: false,
|
|
55619
55855
|
ref: ref,
|
|
55620
55856
|
...dangerouslySetAntdProps
|
|
55621
55857
|
});
|
|
55622
55858
|
});
|
|
55623
55859
|
exports.FormDubois = FormDubois;
|
|
55624
55860
|
|
|
55625
|
-
const FormItem =
|
|
55861
|
+
const FormItem = _ref3 => {
|
|
55862
|
+
let {
|
|
55863
|
+
dangerouslySetAntdProps,
|
|
55864
|
+
...props
|
|
55865
|
+
} = _ref3;
|
|
55626
55866
|
const {
|
|
55627
55867
|
theme,
|
|
55628
55868
|
classNamePrefix
|
|
@@ -55631,7 +55871,8 @@ const FormItem = props => {
|
|
|
55631
55871
|
css: getFormItemEmotionStyles({
|
|
55632
55872
|
theme,
|
|
55633
55873
|
clsPrefix: classNamePrefix
|
|
55634
|
-
})
|
|
55874
|
+
}),
|
|
55875
|
+
...dangerouslySetAntdProps
|
|
55635
55876
|
});
|
|
55636
55877
|
};
|
|
55637
55878
|
|
|
@@ -55648,8 +55889,13 @@ exports.Form = Form;
|
|
|
55648
55889
|
const __INTERNAL_DO_NOT_USE__FormItem = FormItem;
|
|
55649
55890
|
exports.__INTERNAL_DO_NOT_USE__FormItem = __INTERNAL_DO_NOT_USE__FormItem;
|
|
55650
55891
|
|
|
55651
|
-
const Col =
|
|
55652
|
-
|
|
55892
|
+
const Col = _ref => {
|
|
55893
|
+
let {
|
|
55894
|
+
dangerouslySetAntdProps,
|
|
55895
|
+
...props
|
|
55896
|
+
} = _ref;
|
|
55897
|
+
return (0, _jsxRuntime.jsx)(Col$2, { ...props,
|
|
55898
|
+
...dangerouslySetAntdProps
|
|
55653
55899
|
});
|
|
55654
55900
|
};
|
|
55655
55901
|
|
|
@@ -55667,8 +55913,13 @@ Row.defaultProps = {
|
|
|
55667
55913
|
gutter: ROW_GUTTER_SIZE
|
|
55668
55914
|
};
|
|
55669
55915
|
|
|
55670
|
-
const Space =
|
|
55671
|
-
|
|
55916
|
+
const Space = _ref => {
|
|
55917
|
+
let {
|
|
55918
|
+
dangerouslySetAntdProps,
|
|
55919
|
+
...props
|
|
55920
|
+
} = _ref;
|
|
55921
|
+
return (0, _jsxRuntime.jsx)(AntDSpace, { ...props,
|
|
55922
|
+
...dangerouslySetAntdProps
|
|
55672
55923
|
});
|
|
55673
55924
|
};
|
|
55674
55925
|
|
|
@@ -55781,11 +56032,10 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__$7() {
|
|
|
55781
56032
|
|
|
55782
56033
|
const getHeaderStyles = (clsPrefix, theme) => {
|
|
55783
56034
|
const breadcrumbClass = ".".concat(clsPrefix, "-breadcrumb");
|
|
55784
|
-
const styles = {
|
|
55785
|
-
|
|
55786
|
-
|
|
55787
|
-
|
|
55788
|
-
})
|
|
56035
|
+
const styles = {
|
|
56036
|
+
[breadcrumbClass]: {
|
|
56037
|
+
lineHeight: theme.typography.lineHeightBase
|
|
56038
|
+
}
|
|
55789
56039
|
};
|
|
55790
56040
|
return (
|
|
55791
56041
|
/*#__PURE__*/
|
|
@@ -55795,7 +56045,7 @@ const getHeaderStyles = (clsPrefix, theme) => {
|
|
|
55795
56045
|
);
|
|
55796
56046
|
};
|
|
55797
56047
|
|
|
55798
|
-
var _ref$
|
|
56048
|
+
var _ref$2 = process.env.NODE_ENV === "production" ? {
|
|
55799
56049
|
name: "5s4ezj",
|
|
55800
56050
|
styles: "display:inline-flex;vertical-align:middle;align-items:center;margin-left:8px"
|
|
55801
56051
|
} : {
|
|
@@ -55804,7 +56054,7 @@ var _ref$3 = process.env.NODE_ENV === "production" ? {
|
|
|
55804
56054
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
|
|
55805
56055
|
};
|
|
55806
56056
|
|
|
55807
|
-
var _ref2$
|
|
56057
|
+
var _ref2$3 = process.env.NODE_ENV === "production" ? {
|
|
55808
56058
|
name: "1q4vxyr",
|
|
55809
56059
|
styles: "margin-left:8px"
|
|
55810
56060
|
} : {
|
|
@@ -55814,6 +56064,15 @@ var _ref2$2 = process.env.NODE_ENV === "production" ? {
|
|
|
55814
56064
|
};
|
|
55815
56065
|
|
|
55816
56066
|
var _ref3$1 = process.env.NODE_ENV === "production" ? {
|
|
56067
|
+
name: "s079uh",
|
|
56068
|
+
styles: "margin-top:2px"
|
|
56069
|
+
} : {
|
|
56070
|
+
name: "1ky5whb-titleIfOtherElementsPresent",
|
|
56071
|
+
styles: "margin-top:2px;label:titleIfOtherElementsPresent;",
|
|
56072
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
|
|
56073
|
+
};
|
|
56074
|
+
|
|
56075
|
+
var _ref4$1 = process.env.NODE_ENV === "production" ? {
|
|
55817
56076
|
name: "18hxk3h",
|
|
55818
56077
|
styles: "margin-top:0;margin-bottom:0 !important"
|
|
55819
56078
|
} : {
|
|
@@ -55822,7 +56081,7 @@ var _ref3$1 = process.env.NODE_ENV === "production" ? {
|
|
|
55822
56081
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
|
|
55823
56082
|
};
|
|
55824
56083
|
|
|
55825
|
-
var
|
|
56084
|
+
var _ref5 = process.env.NODE_ENV === "production" ? {
|
|
55826
56085
|
name: "1cl2a0e",
|
|
55827
56086
|
styles: "display:flex;align-items:flex-start;justify-content:space-between"
|
|
55828
56087
|
} : {
|
|
@@ -55838,31 +56097,20 @@ const Header$1 = props => {
|
|
|
55838
56097
|
} = useDesignSystemTheme(); // TODO: Move to getHeaderStyles for consistency, followup ticket: https://databricks.atlassian.net/browse/FEINF-1222
|
|
55839
56098
|
|
|
55840
56099
|
const styles = {
|
|
55841
|
-
titleWrapper:
|
|
56100
|
+
titleWrapper: _ref5,
|
|
55842
56101
|
breadcrumbWrapper:
|
|
55843
56102
|
/*#__PURE__*/
|
|
55844
56103
|
|
|
55845
56104
|
/*#__PURE__*/
|
|
55846
56105
|
(0, _react2.css)({
|
|
55847
56106
|
marginBottom: 2,
|
|
55848
|
-
|
|
55849
|
-
lineHeight: theme.typography.lineHeightBase
|
|
55850
|
-
})
|
|
56107
|
+
lineHeight: theme.typography.lineHeightBase
|
|
55851
56108
|
}, process.env.NODE_ENV === "production" ? "" : ";label:breadcrumbWrapper;", process.env.NODE_ENV === "production" ? "" : ";label:breadcrumbWrapper;"),
|
|
55852
|
-
title:
|
|
56109
|
+
title: _ref4$1,
|
|
55853
56110
|
// TODO: Look into a more emotion-idomatic way of doing this.
|
|
55854
|
-
titleIfOtherElementsPresent:
|
|
55855
|
-
|
|
55856
|
-
|
|
55857
|
-
/*#__PURE__*/
|
|
55858
|
-
(0, _react2.css)({
|
|
55859
|
-
marginTop: 6,
|
|
55860
|
-
...(theme.options.isCompact && {
|
|
55861
|
-
marginTop: 2
|
|
55862
|
-
})
|
|
55863
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:titleIfOtherElementsPresent;", process.env.NODE_ENV === "production" ? "" : ";label:titleIfOtherElementsPresent;"),
|
|
55864
|
-
buttonContainer: _ref2$2,
|
|
55865
|
-
titleAddOnsWrapper: _ref$3
|
|
56111
|
+
titleIfOtherElementsPresent: _ref3$1,
|
|
56112
|
+
buttonContainer: _ref2$3,
|
|
56113
|
+
titleAddOnsWrapper: _ref$2
|
|
55866
56114
|
};
|
|
55867
56115
|
return (0, _jsxRuntime.jsxs)("div", {
|
|
55868
56116
|
css: [getHeaderStyles(clsPrefix, theme), props.dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Header;"],
|
|
@@ -55891,21 +56139,36 @@ const Header$1 = props => {
|
|
|
55891
56139
|
|
|
55892
56140
|
exports.Header = Header$1;
|
|
55893
56141
|
|
|
56142
|
+
const getStateClass = function (classNamePrefix, validationState) {
|
|
56143
|
+
let className = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
56144
|
+
let stateClass = '';
|
|
56145
|
+
|
|
56146
|
+
if (validationState) {
|
|
56147
|
+
stateClass = "".concat(classNamePrefix, "-input-").concat(validationState);
|
|
56148
|
+
}
|
|
56149
|
+
|
|
56150
|
+
return "".concat(stateClass, " ").concat(className).trim();
|
|
56151
|
+
};
|
|
56152
|
+
|
|
55894
56153
|
const getInputEmotionStyles = (clsPrefix, theme) => {
|
|
55895
56154
|
const affixClass = ".".concat(clsPrefix, "-input-affix-wrapper");
|
|
55896
56155
|
const affixClassFocused = ".".concat(clsPrefix, "-input-affix-wrapper-focused");
|
|
56156
|
+
const errorClass = ".".concat(clsPrefix, "-input-error");
|
|
56157
|
+
const successClass = ".".concat(clsPrefix, "-input-success");
|
|
56158
|
+
const warningClass = ".".concat(clsPrefix, "-input-warning");
|
|
55897
56159
|
const styles = {
|
|
55898
56160
|
'&&': {
|
|
55899
56161
|
lineHeight: theme.typography.lineHeightBase,
|
|
55900
|
-
paddingTop:
|
|
55901
|
-
paddingBottom:
|
|
55902
|
-
minHeight: theme.
|
|
56162
|
+
paddingTop: 5,
|
|
56163
|
+
paddingBottom: 5,
|
|
56164
|
+
minHeight: theme.general.heightSm,
|
|
55903
56165
|
'&:hover': {
|
|
55904
56166
|
borderColor: theme.colors.actionPrimaryBackgroundHover
|
|
55905
56167
|
},
|
|
55906
56168
|
'&:focus': {
|
|
55907
56169
|
outlineColor: theme.colors.actionPrimaryBackgroundDefault,
|
|
55908
56170
|
outlineWidth: 2,
|
|
56171
|
+
outlineOffset: -2,
|
|
55909
56172
|
outlineStyle: 'solid',
|
|
55910
56173
|
boxShadow: 'none',
|
|
55911
56174
|
borderColor: 'transparent'
|
|
@@ -55917,9 +56180,9 @@ const getInputEmotionStyles = (clsPrefix, theme) => {
|
|
|
55917
56180
|
},
|
|
55918
56181
|
["&".concat(affixClass)]: {
|
|
55919
56182
|
lineHeight: theme.typography.lineHeightBase,
|
|
55920
|
-
paddingTop:
|
|
55921
|
-
paddingBottom:
|
|
55922
|
-
minHeight: theme.
|
|
56183
|
+
paddingTop: 5,
|
|
56184
|
+
paddingBottom: 5,
|
|
56185
|
+
minHeight: theme.general.heightSm,
|
|
55923
56186
|
'::before': {
|
|
55924
56187
|
lineHeight: theme.typography.lineHeightBase
|
|
55925
56188
|
},
|
|
@@ -55932,11 +56195,42 @@ const getInputEmotionStyles = (clsPrefix, theme) => {
|
|
|
55932
56195
|
'&&, &:focus': {
|
|
55933
56196
|
outlineColor: theme.colors.actionPrimaryBackgroundDefault,
|
|
55934
56197
|
outlineWidth: 2,
|
|
56198
|
+
outlineOffset: -2,
|
|
55935
56199
|
outlineStyle: 'solid',
|
|
55936
56200
|
boxShadow: 'none',
|
|
55937
56201
|
borderColor: 'transparent'
|
|
55938
56202
|
}
|
|
55939
56203
|
},
|
|
56204
|
+
["&".concat(warningClass)]: {
|
|
56205
|
+
borderColor: theme.colors.textValidationWarning,
|
|
56206
|
+
'&:hover': {
|
|
56207
|
+
borderColor: theme.colors.textValidationWarning
|
|
56208
|
+
},
|
|
56209
|
+
'&:focus': {
|
|
56210
|
+
outlineColor: theme.colors.textValidationWarning,
|
|
56211
|
+
outlineOffset: -2
|
|
56212
|
+
}
|
|
56213
|
+
},
|
|
56214
|
+
["&".concat(successClass)]: {
|
|
56215
|
+
borderColor: theme.colors.textValidationSuccess,
|
|
56216
|
+
'&:hover': {
|
|
56217
|
+
borderColor: theme.colors.textValidationSuccess
|
|
56218
|
+
},
|
|
56219
|
+
'&:focus': {
|
|
56220
|
+
outlineColor: theme.colors.textValidationSuccess,
|
|
56221
|
+
outlineOffset: -2
|
|
56222
|
+
}
|
|
56223
|
+
},
|
|
56224
|
+
["&".concat(errorClass)]: {
|
|
56225
|
+
borderColor: theme.colors.actionDangerPrimaryBackgroundDefault,
|
|
56226
|
+
'&:hover': {
|
|
56227
|
+
borderColor: theme.colors.actionDangerPrimaryBackgroundDefault
|
|
56228
|
+
},
|
|
56229
|
+
'&:focus': {
|
|
56230
|
+
outlineColor: theme.colors.actionDangerPrimaryBackgroundDefault,
|
|
56231
|
+
outlineOffset: -2
|
|
56232
|
+
}
|
|
56233
|
+
},
|
|
55940
56234
|
...getAnimationCss(theme.options.enableAnimation)
|
|
55941
56235
|
};
|
|
55942
56236
|
return (
|
|
@@ -55949,6 +56243,9 @@ const getInputEmotionStyles = (clsPrefix, theme) => {
|
|
|
55949
56243
|
|
|
55950
56244
|
const TextArea = /*#__PURE__*/(0, React.forwardRef)(function TextArea(_ref, ref) {
|
|
55951
56245
|
let {
|
|
56246
|
+
className,
|
|
56247
|
+
validationState,
|
|
56248
|
+
autoComplete = 'off',
|
|
55952
56249
|
dangerouslySetAntdProps,
|
|
55953
56250
|
dangerouslyAppendEmotionCSS,
|
|
55954
56251
|
...props
|
|
@@ -55957,14 +56254,21 @@ const TextArea = /*#__PURE__*/(0, React.forwardRef)(function TextArea(_ref, ref)
|
|
|
55957
56254
|
classNamePrefix,
|
|
55958
56255
|
theme
|
|
55959
56256
|
} = useDesignSystemTheme();
|
|
55960
|
-
|
|
55961
|
-
|
|
56257
|
+
const wrapperClass = getStateClass(classNamePrefix, validationState, className);
|
|
56258
|
+
return (0, _jsxRuntime.jsx)(Input$2.TextArea, {
|
|
56259
|
+
className: wrapperClass,
|
|
55962
56260
|
ref: ref,
|
|
55963
|
-
|
|
56261
|
+
autoComplete: autoComplete,
|
|
56262
|
+
css: [getInputEmotionStyles(classNamePrefix, theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:TextArea;"],
|
|
56263
|
+
...props,
|
|
56264
|
+
...dangerouslySetAntdProps
|
|
55964
56265
|
});
|
|
55965
56266
|
});
|
|
55966
56267
|
const Password = /*#__PURE__*/(0, React.forwardRef)(function Password(_ref2, ref) {
|
|
55967
56268
|
let {
|
|
56269
|
+
className,
|
|
56270
|
+
validationState,
|
|
56271
|
+
autoComplete = 'off',
|
|
55968
56272
|
dangerouslySetAntdProps,
|
|
55969
56273
|
dangerouslyAppendEmotionCSS,
|
|
55970
56274
|
...props
|
|
@@ -55973,16 +56277,22 @@ const Password = /*#__PURE__*/(0, React.forwardRef)(function Password(_ref2, ref
|
|
|
55973
56277
|
classNamePrefix,
|
|
55974
56278
|
theme
|
|
55975
56279
|
} = useDesignSystemTheme();
|
|
56280
|
+
const wrapperClass = getStateClass(classNamePrefix, validationState, className);
|
|
55976
56281
|
return (0, _jsxRuntime.jsx)(Input$2.Password, {
|
|
56282
|
+
className: wrapperClass,
|
|
55977
56283
|
visibilityToggle: false,
|
|
55978
|
-
...props,
|
|
55979
56284
|
ref: ref,
|
|
55980
|
-
|
|
55981
|
-
css: [getInputEmotionStyles(classNamePrefix, theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Password;"]
|
|
56285
|
+
autoComplete: autoComplete,
|
|
56286
|
+
css: [getInputEmotionStyles(classNamePrefix, theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Password;"],
|
|
56287
|
+
...props,
|
|
56288
|
+
...dangerouslySetAntdProps
|
|
55982
56289
|
});
|
|
55983
56290
|
});
|
|
55984
56291
|
const DuboisInput = /*#__PURE__*/(0, React.forwardRef)(function Input(_ref3, ref) {
|
|
55985
56292
|
let {
|
|
56293
|
+
className,
|
|
56294
|
+
validationState,
|
|
56295
|
+
autoComplete = 'off',
|
|
55986
56296
|
dangerouslySetAntdProps,
|
|
55987
56297
|
dangerouslyAppendEmotionCSS,
|
|
55988
56298
|
...props
|
|
@@ -55991,10 +56301,14 @@ const DuboisInput = /*#__PURE__*/(0, React.forwardRef)(function Input(_ref3, ref
|
|
|
55991
56301
|
classNamePrefix,
|
|
55992
56302
|
theme
|
|
55993
56303
|
} = useDesignSystemTheme();
|
|
55994
|
-
|
|
55995
|
-
|
|
56304
|
+
const wrapperClass = getStateClass(classNamePrefix, validationState, className);
|
|
56305
|
+
return (0, _jsxRuntime.jsx)(Input$2, {
|
|
56306
|
+
className: wrapperClass,
|
|
56307
|
+
autoComplete: autoComplete,
|
|
55996
56308
|
ref: ref,
|
|
55997
|
-
css: [getInputEmotionStyles(classNamePrefix, theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:DuboisInput;"]
|
|
56309
|
+
css: [getInputEmotionStyles(classNamePrefix, theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:DuboisInput;"],
|
|
56310
|
+
...props,
|
|
56311
|
+
...dangerouslySetAntdProps
|
|
55998
56312
|
});
|
|
55999
56313
|
}); // Properly creates the namespace and dot-notation components with correct types.
|
|
56000
56314
|
|
|
@@ -56018,8 +56332,13 @@ const {
|
|
|
56018
56332
|
Content
|
|
56019
56333
|
} = AntDLayout;
|
|
56020
56334
|
|
|
56021
|
-
const Layout =
|
|
56022
|
-
|
|
56335
|
+
const Layout = _ref => {
|
|
56336
|
+
let {
|
|
56337
|
+
dangerouslySetAntdProps,
|
|
56338
|
+
...props
|
|
56339
|
+
} = _ref;
|
|
56340
|
+
return (0, _jsxRuntime.jsx)(AntDLayout, { ...props,
|
|
56341
|
+
...dangerouslySetAntdProps
|
|
56023
56342
|
});
|
|
56024
56343
|
};
|
|
56025
56344
|
|
|
@@ -56029,8 +56348,13 @@ Layout.Footer = Footer;
|
|
|
56029
56348
|
Layout.Sider = Sider;
|
|
56030
56349
|
Layout.Content = Content;
|
|
56031
56350
|
|
|
56032
|
-
const Menu =
|
|
56033
|
-
|
|
56351
|
+
const Menu = _ref => {
|
|
56352
|
+
let {
|
|
56353
|
+
dangerouslySetAntdProps,
|
|
56354
|
+
...props
|
|
56355
|
+
} = _ref;
|
|
56356
|
+
return (0, _jsxRuntime.jsx)(AntDMenu, { ...props,
|
|
56357
|
+
...dangerouslySetAntdProps
|
|
56034
56358
|
});
|
|
56035
56359
|
};
|
|
56036
56360
|
|
|
@@ -56038,20 +56362,25 @@ exports.Menu = Menu;
|
|
|
56038
56362
|
Menu.Item = AntDMenu.Item;
|
|
56039
56363
|
Menu.ItemGroup = AntDMenu.ItemGroup;
|
|
56040
56364
|
|
|
56041
|
-
Menu.SubMenu = function SubMenu(
|
|
56365
|
+
Menu.SubMenu = function SubMenu(_ref2) {
|
|
56366
|
+
let {
|
|
56367
|
+
dangerouslySetAntdProps,
|
|
56368
|
+
...props
|
|
56369
|
+
} = _ref2;
|
|
56042
56370
|
const {
|
|
56043
56371
|
theme
|
|
56044
56372
|
} = useDesignSystemTheme();
|
|
56045
56373
|
return (0, _jsxRuntime.jsx)(_react2.ClassNames, {
|
|
56046
|
-
children:
|
|
56374
|
+
children: _ref3 => {
|
|
56047
56375
|
let {
|
|
56048
56376
|
css
|
|
56049
|
-
} =
|
|
56377
|
+
} = _ref3;
|
|
56050
56378
|
return (0, _jsxRuntime.jsx)(AntDMenu.SubMenu, {
|
|
56051
56379
|
popupClassName: css({
|
|
56052
56380
|
zIndex: theme.options.zIndexBase + 50
|
|
56053
56381
|
}),
|
|
56054
|
-
...props
|
|
56382
|
+
...props,
|
|
56383
|
+
...dangerouslySetAntdProps
|
|
56055
56384
|
});
|
|
56056
56385
|
}
|
|
56057
56386
|
});
|
|
@@ -56082,29 +56411,33 @@ const getModalEmotionStyles = args => {
|
|
|
56082
56411
|
const classNameFooter = ".".concat(clsPrefix, "-modal-footer");
|
|
56083
56412
|
const classNameButton = ".".concat(clsPrefix, "-btn");
|
|
56084
56413
|
const classNameDropdownTrigger = ".".concat(clsPrefix, "-dropdown-trigger");
|
|
56085
|
-
const MODAL_PADDING
|
|
56086
|
-
const BUTTON_SIZE = theme.
|
|
56414
|
+
const MODAL_PADDING = theme.spacing.lg;
|
|
56415
|
+
const BUTTON_SIZE = theme.general.heightSm; // Needed for moving some of the padding from the header and footer to the content to avoid a scrollbar from appearing
|
|
56416
|
+
// when the content has some interior components that reach the limits of the content div
|
|
56417
|
+
// 8px is an arbitrary value, it still leaves enough padding for the header and footer too to avoid the same problem
|
|
56418
|
+
// from occurring there too
|
|
56419
|
+
|
|
56420
|
+
const CONTENT_BUFFER = 8;
|
|
56087
56421
|
const modalMaxHeight = '90vh';
|
|
56088
|
-
const headerHeight =
|
|
56089
|
-
const footerHeight = hasFooter ?
|
|
56090
|
-
const
|
|
56091
|
-
const bodyMaxHeight = "calc(".concat(modalMaxHeight, " - ").concat(headerHeight, "px - ").concat(footerHeight, "px - ").concat(contentBottomPadding, "px)");
|
|
56422
|
+
const headerHeight = 64;
|
|
56423
|
+
const footerHeight = hasFooter ? 52 : 0;
|
|
56424
|
+
const bodyMaxHeight = "calc(".concat(modalMaxHeight, " - ").concat(headerHeight, "px - ").concat(footerHeight, "px - ").concat(MODAL_PADDING, "px)");
|
|
56092
56425
|
return (
|
|
56093
56426
|
/*#__PURE__*/
|
|
56094
56427
|
|
|
56095
56428
|
/*#__PURE__*/
|
|
56096
56429
|
(0, _react2.css)({
|
|
56097
56430
|
[classNameHeader]: {
|
|
56098
|
-
paddingTop: theme.
|
|
56099
|
-
paddingLeft: theme.
|
|
56100
|
-
paddingRight: theme.
|
|
56101
|
-
paddingBottom: theme.
|
|
56431
|
+
paddingTop: theme.spacing.md,
|
|
56432
|
+
paddingLeft: theme.spacing.lg,
|
|
56433
|
+
paddingRight: theme.spacing.md,
|
|
56434
|
+
paddingBottom: theme.spacing.md
|
|
56102
56435
|
},
|
|
56103
56436
|
[classNameFooter]: {
|
|
56104
56437
|
height: footerHeight,
|
|
56105
|
-
paddingTop: theme.
|
|
56106
|
-
paddingLeft: MODAL_PADDING
|
|
56107
|
-
paddingRight: MODAL_PADDING
|
|
56438
|
+
paddingTop: theme.spacing.lg - CONTENT_BUFFER,
|
|
56439
|
+
paddingLeft: MODAL_PADDING,
|
|
56440
|
+
paddingRight: MODAL_PADDING,
|
|
56108
56441
|
marginTop: 'auto',
|
|
56109
56442
|
["".concat(classNameButton, " + ").concat(classNameButton, ":not(").concat(classNameDropdownTrigger, ")")]: {
|
|
56110
56443
|
marginLeft: theme.spacing.sm
|
|
@@ -56124,7 +56457,7 @@ const getModalEmotionStyles = args => {
|
|
|
56124
56457
|
width: BUTTON_SIZE,
|
|
56125
56458
|
// Note: Ant has the close button absolutely positioned, rather than in a flex container with the title.
|
|
56126
56459
|
// This magic number is eyeballed to get the close X to align with the title text.
|
|
56127
|
-
margin:
|
|
56460
|
+
margin: '16px 16px 0 0',
|
|
56128
56461
|
borderRadius: theme.borders.borderRadiusMd,
|
|
56129
56462
|
backgroundColor: theme.colors.actionDefaultBackgroundDefault,
|
|
56130
56463
|
borderColor: theme.colors.actionDefaultBackgroundDefault,
|
|
@@ -56150,29 +56483,26 @@ const getModalEmotionStyles = args => {
|
|
|
56150
56483
|
fontSize: theme.typography.fontSizeXl,
|
|
56151
56484
|
lineHeight: theme.typography.lineHeightXl,
|
|
56152
56485
|
fontWeight: theme.typography.typographyBoldFontWeight,
|
|
56153
|
-
paddingRight: MODAL_PADDING
|
|
56154
|
-
|
|
56155
|
-
|
|
56156
|
-
|
|
56157
|
-
display: 'flex',
|
|
56158
|
-
alignItems: 'center'
|
|
56159
|
-
})
|
|
56486
|
+
paddingRight: MODAL_PADDING,
|
|
56487
|
+
minHeight: headerHeight / 2,
|
|
56488
|
+
display: 'flex',
|
|
56489
|
+
alignItems: 'center'
|
|
56160
56490
|
},
|
|
56161
56491
|
[classNameContent]: {
|
|
56162
56492
|
maxHeight: modalMaxHeight,
|
|
56163
56493
|
height: maxedOutHeight ? modalMaxHeight : '',
|
|
56164
56494
|
overflow: 'hidden',
|
|
56165
|
-
paddingBottom:
|
|
56495
|
+
paddingBottom: MODAL_PADDING,
|
|
56166
56496
|
display: 'flex',
|
|
56167
56497
|
flexDirection: 'column'
|
|
56168
56498
|
},
|
|
56169
56499
|
[classNameBody]: {
|
|
56170
56500
|
overflowY: 'auto',
|
|
56171
56501
|
maxHeight: bodyMaxHeight,
|
|
56172
|
-
paddingLeft: MODAL_PADDING
|
|
56173
|
-
paddingRight: MODAL_PADDING
|
|
56174
|
-
paddingTop:
|
|
56175
|
-
paddingBottom:
|
|
56502
|
+
paddingLeft: MODAL_PADDING,
|
|
56503
|
+
paddingRight: MODAL_PADDING,
|
|
56504
|
+
paddingTop: CONTENT_BUFFER,
|
|
56505
|
+
paddingBottom: CONTENT_BUFFER,
|
|
56176
56506
|
...(theme.themeName === 'default' ? {
|
|
56177
56507
|
// Achieves an inner shadow on the content, but only when there is more left to scroll. When the content fits
|
|
56178
56508
|
// in the container without scrolling, no shadow will be shown.
|
|
@@ -56182,7 +56512,8 @@ const getModalEmotionStyles = args => {
|
|
|
56182
56512
|
backgroundSize: '100% 40px, 100% 40px, 100% 14px, 100% 14px',
|
|
56183
56513
|
backgroundAttachment: 'local, local, scroll, scroll'
|
|
56184
56514
|
} : {})
|
|
56185
|
-
}
|
|
56515
|
+
},
|
|
56516
|
+
...getAnimationCss(theme.options.enableAnimation)
|
|
56186
56517
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getModalEmotionStyles;", process.env.NODE_ENV === "production" ? "" : ";label:getModalEmotionStyles;")
|
|
56187
56518
|
);
|
|
56188
56519
|
};
|
|
@@ -56258,7 +56589,7 @@ Modal.defaultProps = {
|
|
|
56258
56589
|
verticalSizing: 'dynamic'
|
|
56259
56590
|
};
|
|
56260
56591
|
|
|
56261
|
-
var _ref2$
|
|
56592
|
+
var _ref2$2 = process.env.NODE_ENV === "production" ? {
|
|
56262
56593
|
name: "b9hrb",
|
|
56263
56594
|
styles: "position:relative;display:inline-flex;align-items:center"
|
|
56264
56595
|
} : {
|
|
@@ -56276,15 +56607,6 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
|
56276
56607
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
|
|
56277
56608
|
};
|
|
56278
56609
|
|
|
56279
|
-
var _ref4$1 = process.env.NODE_ENV === "production" ? {
|
|
56280
|
-
name: "bjn8wh",
|
|
56281
|
-
styles: "position:relative"
|
|
56282
|
-
} : {
|
|
56283
|
-
name: "boqyz4-titleComp",
|
|
56284
|
-
styles: "position:relative;label:titleComp;",
|
|
56285
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
|
|
56286
|
-
};
|
|
56287
|
-
|
|
56288
56610
|
function DangerModal(props) {
|
|
56289
56611
|
const {
|
|
56290
56612
|
theme
|
|
@@ -56295,13 +56617,13 @@ function DangerModal(props) {
|
|
|
56295
56617
|
onOk,
|
|
56296
56618
|
cancelText,
|
|
56297
56619
|
okText,
|
|
56620
|
+
okButtonProps,
|
|
56621
|
+
cancelButtonProps,
|
|
56298
56622
|
...restProps
|
|
56299
56623
|
} = props;
|
|
56300
|
-
const iconSize =
|
|
56301
|
-
const
|
|
56302
|
-
|
|
56303
|
-
const titleComp = theme.options.isCompact ? (0, _jsxRuntime.jsxs)("div", {
|
|
56304
|
-
css: _ref2$1,
|
|
56624
|
+
const iconSize = 20;
|
|
56625
|
+
const titleComp = (0, _jsxRuntime.jsxs)("div", {
|
|
56626
|
+
css: _ref2$2,
|
|
56305
56627
|
children: [(0, _jsxRuntime.jsx)(ErrorBorderIcon, {
|
|
56306
56628
|
css:
|
|
56307
56629
|
/*#__PURE__*/
|
|
@@ -56317,51 +56639,30 @@ function DangerModal(props) {
|
|
|
56317
56639
|
css: _ref3,
|
|
56318
56640
|
children: title
|
|
56319
56641
|
})]
|
|
56320
|
-
}) : (0, _jsxRuntime.jsxs)("div", {
|
|
56321
|
-
css: _ref4$1,
|
|
56322
|
-
children: [(0, _jsxRuntime.jsx)(ErrorBorderIcon, {
|
|
56323
|
-
css:
|
|
56324
|
-
/*#__PURE__*/
|
|
56325
|
-
|
|
56326
|
-
/*#__PURE__*/
|
|
56327
|
-
(0, _react2.css)({
|
|
56328
|
-
color: theme.colors.textValidationDanger,
|
|
56329
|
-
position: 'absolute',
|
|
56330
|
-
top: 3,
|
|
56331
|
-
// eyeballed value for alignment with text
|
|
56332
|
-
left: -(iconSize + iconMargin),
|
|
56333
|
-
height: iconSize,
|
|
56334
|
-
width: iconSize
|
|
56335
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:titleComp;", process.env.NODE_ENV === "production" ? "" : ";label:css;")
|
|
56336
|
-
}), (0, _jsxRuntime.jsx)("div", {
|
|
56337
|
-
children: title
|
|
56338
|
-
})]
|
|
56339
56642
|
});
|
|
56340
56643
|
return (0, _jsxRuntime.jsx)(Modal, {
|
|
56341
56644
|
title: titleComp,
|
|
56342
56645
|
footer: [(0, _jsxRuntime.jsx)(Button, {
|
|
56343
56646
|
onClick: onCancel,
|
|
56647
|
+
...cancelButtonProps,
|
|
56344
56648
|
children: cancelText || 'Cancel'
|
|
56345
56649
|
}, "cancel"), (0, _jsxRuntime.jsx)(Button, {
|
|
56346
56650
|
type: "primary",
|
|
56347
56651
|
danger: true,
|
|
56348
56652
|
onClick: onOk,
|
|
56653
|
+
...okButtonProps,
|
|
56349
56654
|
children: okText || 'Delete'
|
|
56350
56655
|
}, "discard")],
|
|
56351
56656
|
onOk: onOk,
|
|
56352
56657
|
onCancel: onCancel,
|
|
56353
56658
|
...restProps
|
|
56354
56659
|
});
|
|
56355
|
-
}
|
|
56356
|
-
|
|
56357
|
-
function useDesignSystemContext() {
|
|
56358
|
-
return (0, React.useContext)(DesignSystemContext);
|
|
56359
56660
|
} // Note: AntD only exposes context to notifications via the `useNotification` hook, and we need context to apply themes
|
|
56360
56661
|
// to AntD. As such you can currently only use notifications from within functional components.
|
|
56361
56662
|
|
|
56362
56663
|
|
|
56363
56664
|
function useNotification() {
|
|
56364
|
-
const [
|
|
56665
|
+
const [notificationInstance, contextHolder] = antDNotification.useNotification();
|
|
56365
56666
|
const {
|
|
56366
56667
|
getPrefixedClassName,
|
|
56367
56668
|
theme
|
|
@@ -56377,10 +56678,7 @@ function useNotification() {
|
|
|
56377
56678
|
...args,
|
|
56378
56679
|
style: {
|
|
56379
56680
|
zIndex: theme.options.zIndexBase + 30
|
|
56380
|
-
}
|
|
56381
|
-
...(theme.options.isCompact && {
|
|
56382
|
-
className: "".concat(clsPrefix, "-compact")
|
|
56383
|
-
})
|
|
56681
|
+
}
|
|
56384
56682
|
};
|
|
56385
56683
|
const iconClassName = "".concat(clsPrefix, "-notice-icon-").concat(mergedArgs.type);
|
|
56386
56684
|
mergedArgs.icon = (0, _jsxRuntime.jsx)(SeverityIcon, {
|
|
@@ -56397,8 +56695,8 @@ function useNotification() {
|
|
|
56397
56695
|
fontSize: theme.general.iconSize
|
|
56398
56696
|
}, process.env.NODE_ENV === "production" ? "" : ";label:mergedArgs-closeIcon;", process.env.NODE_ENV === "production" ? "" : ";label:css;")
|
|
56399
56697
|
});
|
|
56400
|
-
|
|
56401
|
-
}, [
|
|
56698
|
+
notificationInstance.open(mergedArgs);
|
|
56699
|
+
}, [notificationInstance, getContainer, theme, clsPrefix]);
|
|
56402
56700
|
const wrappedNotificationAPI = (0, React.useMemo)(() => {
|
|
56403
56701
|
const error = args => open({ ...args,
|
|
56404
56702
|
type: 'error'
|
|
@@ -56416,8 +56714,11 @@ function useNotification() {
|
|
|
56416
56714
|
type: 'success'
|
|
56417
56715
|
});
|
|
56418
56716
|
|
|
56717
|
+
const close = key => antDNotification.close(key);
|
|
56718
|
+
|
|
56419
56719
|
return {
|
|
56420
56720
|
open,
|
|
56721
|
+
close,
|
|
56421
56722
|
error,
|
|
56422
56723
|
warning,
|
|
56423
56724
|
info,
|
|
@@ -56436,7 +56737,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__$5() {
|
|
|
56436
56737
|
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).";
|
|
56437
56738
|
}
|
|
56438
56739
|
|
|
56439
|
-
var _ref$
|
|
56740
|
+
var _ref$1 = process.env.NODE_ENV === "production" ? {
|
|
56440
56741
|
name: "1dw6hj0",
|
|
56441
56742
|
styles: "padding-left:16px;padding-right:16px"
|
|
56442
56743
|
} : {
|
|
@@ -56447,10 +56748,12 @@ var _ref$2 = process.env.NODE_ENV === "production" ? {
|
|
|
56447
56748
|
|
|
56448
56749
|
const PageWrapper = _ref2 => {
|
|
56449
56750
|
let {
|
|
56450
|
-
children
|
|
56751
|
+
children,
|
|
56752
|
+
...props
|
|
56451
56753
|
} = _ref2;
|
|
56452
56754
|
return (0, _jsxRuntime.jsx)("div", {
|
|
56453
|
-
css: _ref$
|
|
56755
|
+
css: _ref$1,
|
|
56756
|
+
...props,
|
|
56454
56757
|
children: children
|
|
56455
56758
|
});
|
|
56456
56759
|
};
|
|
@@ -56589,14 +56892,18 @@ const Pagination = function Pagination(_ref) {
|
|
|
56589
56892
|
onChange: onChange,
|
|
56590
56893
|
showSizeChanger: false,
|
|
56591
56894
|
showQuickJumper: true,
|
|
56592
|
-
size:
|
|
56895
|
+
size: 'small',
|
|
56593
56896
|
...dangerouslySetAntdProps
|
|
56594
56897
|
});
|
|
56595
56898
|
};
|
|
56596
56899
|
|
|
56597
56900
|
exports.Pagination = Pagination;
|
|
56598
56901
|
|
|
56599
|
-
const Popover =
|
|
56902
|
+
const Popover = _ref => {
|
|
56903
|
+
let {
|
|
56904
|
+
dangerouslySetAntdProps,
|
|
56905
|
+
...props
|
|
56906
|
+
} = _ref;
|
|
56600
56907
|
const {
|
|
56601
56908
|
theme
|
|
56602
56909
|
} = useDesignSystemTheme();
|
|
@@ -56715,12 +57022,21 @@ const radioOverrideEmotionStyles = _ref => {
|
|
|
56715
57022
|
);
|
|
56716
57023
|
};
|
|
56717
57024
|
|
|
56718
|
-
const DuboisRadio = /*#__PURE__*/(0, React.forwardRef)(function Radio(
|
|
57025
|
+
const DuboisRadio = /*#__PURE__*/(0, React.forwardRef)(function Radio(_ref2, ref) {
|
|
57026
|
+
let {
|
|
57027
|
+
dangerouslySetAntdProps,
|
|
57028
|
+
...props
|
|
57029
|
+
} = _ref2;
|
|
56719
57030
|
return (0, _jsxRuntime.jsx)(Radio$2, { ...props,
|
|
57031
|
+
...dangerouslySetAntdProps,
|
|
56720
57032
|
ref: ref
|
|
56721
57033
|
});
|
|
56722
57034
|
});
|
|
56723
|
-
const StyledRadioGroup = /*#__PURE__*/(0, React.forwardRef)(function StyledRadioGroup(
|
|
57035
|
+
const StyledRadioGroup = /*#__PURE__*/(0, React.forwardRef)(function StyledRadioGroup(_ref3, ref) {
|
|
57036
|
+
let {
|
|
57037
|
+
dangerouslySetAntdProps,
|
|
57038
|
+
...props
|
|
57039
|
+
} = _ref3;
|
|
56724
57040
|
const {
|
|
56725
57041
|
theme,
|
|
56726
57042
|
getPrefixedClassName
|
|
@@ -56731,14 +57047,15 @@ const StyledRadioGroup = /*#__PURE__*/(0, React.forwardRef)(function StyledRadio
|
|
|
56731
57047
|
theme,
|
|
56732
57048
|
clsPrefix
|
|
56733
57049
|
}),
|
|
57050
|
+
...dangerouslySetAntdProps,
|
|
56734
57051
|
ref: ref
|
|
56735
57052
|
});
|
|
56736
57053
|
});
|
|
56737
|
-
const VerticalGroup = /*#__PURE__*/(0, React.forwardRef)(function VerticalGroup(
|
|
57054
|
+
const VerticalGroup = /*#__PURE__*/(0, React.forwardRef)(function VerticalGroup(_ref4, ref) {
|
|
56738
57055
|
let {
|
|
56739
57056
|
dangerouslySetAntdProps,
|
|
56740
57057
|
...props
|
|
56741
|
-
} =
|
|
57058
|
+
} = _ref4;
|
|
56742
57059
|
return (0, _jsxRuntime.jsx)(StyledRadioGroup, {
|
|
56743
57060
|
css: verticalGroupEmotionStyles,
|
|
56744
57061
|
...props,
|
|
@@ -56746,11 +57063,11 @@ const VerticalGroup = /*#__PURE__*/(0, React.forwardRef)(function VerticalGroup(
|
|
|
56746
57063
|
...dangerouslySetAntdProps
|
|
56747
57064
|
});
|
|
56748
57065
|
});
|
|
56749
|
-
const HorizontalGroup = /*#__PURE__*/(0, React.forwardRef)(function HorizontalGroup(
|
|
57066
|
+
const HorizontalGroup = /*#__PURE__*/(0, React.forwardRef)(function HorizontalGroup(_ref5, ref) {
|
|
56750
57067
|
let {
|
|
56751
57068
|
dangerouslySetAntdProps,
|
|
56752
57069
|
...props
|
|
56753
|
-
} =
|
|
57070
|
+
} = _ref5;
|
|
56754
57071
|
return (0, _jsxRuntime.jsx)(StyledRadioGroup, { ...props,
|
|
56755
57072
|
ref: ref,
|
|
56756
57073
|
...dangerouslySetAntdProps
|
|
@@ -56832,6 +57149,11 @@ function getSegmentedControlButtonEmotionStyles(clsPrefix, theme) {
|
|
|
56832
57149
|
backgroundColor: theme.colors.actionDefaultBorderPress
|
|
56833
57150
|
}
|
|
56834
57151
|
},
|
|
57152
|
+
["&".concat(classWrapperChecked, ":focus-within")]: {
|
|
57153
|
+
'::before': {
|
|
57154
|
+
width: 0
|
|
57155
|
+
}
|
|
57156
|
+
},
|
|
56835
57157
|
["&".concat(classWrapperDisabled)]: {
|
|
56836
57158
|
color: theme.colors.actionDisabledText,
|
|
56837
57159
|
backgroundColor: theme.colors.actionDisabledBackground,
|
|
@@ -56855,13 +57177,11 @@ function getSegmentedControlButtonEmotionStyles(clsPrefix, theme) {
|
|
|
56855
57177
|
outlineColor: theme.colors.primary
|
|
56856
57178
|
}
|
|
56857
57179
|
},
|
|
56858
|
-
|
|
56859
|
-
|
|
56860
|
-
|
|
56861
|
-
|
|
56862
|
-
|
|
56863
|
-
}
|
|
56864
|
-
}),
|
|
57180
|
+
["&".concat(classWrapper, ", ").concat(classButton)]: {
|
|
57181
|
+
height: theme.general.heightSm,
|
|
57182
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
57183
|
+
alignItems: 'center'
|
|
57184
|
+
},
|
|
56865
57185
|
...getAnimationCss(theme.options.enableAnimation)
|
|
56866
57186
|
};
|
|
56867
57187
|
const importantStyles = importantify(styles);
|
|
@@ -56873,7 +57193,11 @@ function getSegmentedControlButtonEmotionStyles(clsPrefix, theme) {
|
|
|
56873
57193
|
);
|
|
56874
57194
|
}
|
|
56875
57195
|
|
|
56876
|
-
const SegmentedControlButton = /*#__PURE__*/(0, React.forwardRef)(function SegmentedControlButton(
|
|
57196
|
+
const SegmentedControlButton = /*#__PURE__*/(0, React.forwardRef)(function SegmentedControlButton(_ref, ref) {
|
|
57197
|
+
let {
|
|
57198
|
+
dangerouslySetAntdProps,
|
|
57199
|
+
...props
|
|
57200
|
+
} = _ref;
|
|
56877
57201
|
const {
|
|
56878
57202
|
classNamePrefix,
|
|
56879
57203
|
theme
|
|
@@ -56881,16 +57205,22 @@ const SegmentedControlButton = /*#__PURE__*/(0, React.forwardRef)(function Segme
|
|
|
56881
57205
|
return (0, _jsxRuntime.jsx)(Radio$2.Button, {
|
|
56882
57206
|
css: getSegmentedControlButtonEmotionStyles(classNamePrefix, theme),
|
|
56883
57207
|
...props,
|
|
57208
|
+
...dangerouslySetAntdProps,
|
|
56884
57209
|
ref: ref
|
|
56885
57210
|
});
|
|
56886
57211
|
});
|
|
56887
57212
|
exports.SegmentedControlButton = SegmentedControlButton;
|
|
56888
|
-
const SegmentedControlGroup = /*#__PURE__*/(0, React.forwardRef)(function SegmentedControlGroup(
|
|
57213
|
+
const SegmentedControlGroup = /*#__PURE__*/(0, React.forwardRef)(function SegmentedControlGroup(_ref2, ref) {
|
|
57214
|
+
let {
|
|
57215
|
+
dangerouslySetAntdProps,
|
|
57216
|
+
...props
|
|
57217
|
+
} = _ref2;
|
|
56889
57218
|
const {
|
|
56890
57219
|
classNamePrefix
|
|
56891
57220
|
} = useDesignSystemTheme();
|
|
56892
57221
|
return (0, _jsxRuntime.jsx)(Radio$2.Group, { ...props,
|
|
56893
57222
|
css: getSegmentedControlGroupEmotionStyles(classNamePrefix),
|
|
57223
|
+
...dangerouslySetAntdProps,
|
|
56894
57224
|
ref: ref
|
|
56895
57225
|
});
|
|
56896
57226
|
});
|
|
@@ -56912,7 +57242,8 @@ function getSelectEmotionStyles(_ref) {
|
|
|
56912
57242
|
const classDisabled = ".".concat(clsPrefix, "-disabled");
|
|
56913
57243
|
const classMultiple = ".".concat(clsPrefix, "-multiple");
|
|
56914
57244
|
const classItem = ".".concat(clsPrefix, "-selection-item");
|
|
56915
|
-
const
|
|
57245
|
+
const classItemOverflowContainer = ".".concat(clsPrefix, "-selection-overflow");
|
|
57246
|
+
const classItemOverflowItem = ".".concat(clsPrefix, "-selection-overflow-item");
|
|
56916
57247
|
const classItemOverflowSuffix = ".".concat(clsPrefix, "-selection-overflow-item-suffix");
|
|
56917
57248
|
const classArrow = ".".concat(clsPrefix, "-arrow");
|
|
56918
57249
|
const classArrowLoading = ".".concat(clsPrefix, "-arrow-loading");
|
|
@@ -56936,7 +57267,7 @@ function getSelectEmotionStyles(_ref) {
|
|
|
56936
57267
|
paddingRight: 0,
|
|
56937
57268
|
color: theme.colors.textPrimary,
|
|
56938
57269
|
backgroundColor: 'transparent',
|
|
56939
|
-
height: theme.
|
|
57270
|
+
height: theme.general.heightSm,
|
|
56940
57271
|
'::after': {
|
|
56941
57272
|
lineHeight: theme.typography.lineHeightBase
|
|
56942
57273
|
},
|
|
@@ -56946,15 +57277,15 @@ function getSelectEmotionStyles(_ref) {
|
|
|
56946
57277
|
},
|
|
56947
57278
|
[classSingle]: {
|
|
56948
57279
|
["&".concat(classSelector)]: {
|
|
56949
|
-
height: theme.
|
|
57280
|
+
height: theme.general.heightSm
|
|
56950
57281
|
}
|
|
56951
57282
|
},
|
|
56952
57283
|
[classItem]: {
|
|
56953
57284
|
color: theme.colors.textPrimary,
|
|
56954
57285
|
paddingRight: 32,
|
|
56955
57286
|
lineHeight: theme.typography.lineHeightBase,
|
|
56956
|
-
paddingTop:
|
|
56957
|
-
paddingBottom:
|
|
57287
|
+
paddingTop: 5,
|
|
57288
|
+
paddingBottom: 5
|
|
56958
57289
|
},
|
|
56959
57290
|
// Note: This supports search, which we don't support. The styles here support legacy usages.
|
|
56960
57291
|
[classSearch]: {
|
|
@@ -56967,7 +57298,7 @@ function getSelectEmotionStyles(_ref) {
|
|
|
56967
57298
|
},
|
|
56968
57299
|
["&".concat(classSingle)]: {
|
|
56969
57300
|
[classSearchInput]: {
|
|
56970
|
-
height: theme.
|
|
57301
|
+
height: theme.general.heightSm
|
|
56971
57302
|
}
|
|
56972
57303
|
},
|
|
56973
57304
|
// Note: This supports search, which we don't support. The styles here support legacy usages.
|
|
@@ -57005,7 +57336,7 @@ function getSelectEmotionStyles(_ref) {
|
|
|
57005
57336
|
[classArrow]: {
|
|
57006
57337
|
height: theme.general.iconSize,
|
|
57007
57338
|
width: theme.general.iconSize,
|
|
57008
|
-
top:
|
|
57339
|
+
top: 4,
|
|
57009
57340
|
marginTop: 0,
|
|
57010
57341
|
color: theme.colors.textSecondary,
|
|
57011
57342
|
'.anticon': {
|
|
@@ -57014,7 +57345,7 @@ function getSelectEmotionStyles(_ref) {
|
|
|
57014
57345
|
pointerEvents: 'none'
|
|
57015
57346
|
},
|
|
57016
57347
|
["&".concat(classArrowLoading)]: {
|
|
57017
|
-
top:
|
|
57348
|
+
top: 4,
|
|
57018
57349
|
display: 'flex',
|
|
57019
57350
|
alignItems: 'center',
|
|
57020
57351
|
justifyContent: 'center',
|
|
@@ -57035,7 +57366,7 @@ function getSelectEmotionStyles(_ref) {
|
|
|
57035
57366
|
paddingBottom: 3,
|
|
57036
57367
|
paddingLeft: 8,
|
|
57037
57368
|
paddingRight: 30,
|
|
57038
|
-
minHeight: theme.
|
|
57369
|
+
minHeight: theme.general.heightSm,
|
|
57039
57370
|
height: 'auto',
|
|
57040
57371
|
'&::after': {
|
|
57041
57372
|
margin: 0
|
|
@@ -57056,7 +57387,10 @@ function getSelectEmotionStyles(_ref) {
|
|
|
57056
57387
|
paddingTop: 0,
|
|
57057
57388
|
paddingBottom: 0
|
|
57058
57389
|
},
|
|
57059
|
-
[
|
|
57390
|
+
[classItemOverflowContainer]: {
|
|
57391
|
+
minHeight: 24
|
|
57392
|
+
},
|
|
57393
|
+
[classItemOverflowItem]: {
|
|
57060
57394
|
alignSelf: 'auto',
|
|
57061
57395
|
height: 24,
|
|
57062
57396
|
lineHeight: theme.typography.lineHeightBase
|
|
@@ -57072,11 +57406,11 @@ function getSelectEmotionStyles(_ref) {
|
|
|
57072
57406
|
}
|
|
57073
57407
|
},
|
|
57074
57408
|
[classArrow]: {
|
|
57075
|
-
top:
|
|
57409
|
+
top: 5
|
|
57076
57410
|
},
|
|
57077
57411
|
["&".concat(classAllowClear)]: {
|
|
57078
57412
|
[classSearchClear]: {
|
|
57079
|
-
top:
|
|
57413
|
+
top: 16
|
|
57080
57414
|
}
|
|
57081
57415
|
},
|
|
57082
57416
|
[classPlaceholder]: {
|
|
@@ -57105,7 +57439,7 @@ function getSelectEmotionStyles(_ref) {
|
|
|
57105
57439
|
paddingRight: 52
|
|
57106
57440
|
},
|
|
57107
57441
|
[classSearchClear]: {
|
|
57108
|
-
top:
|
|
57442
|
+
top: 16,
|
|
57109
57443
|
opacity: 100
|
|
57110
57444
|
}
|
|
57111
57445
|
},
|
|
@@ -57300,22 +57634,33 @@ function DuboisSelect(_ref2, ref) {
|
|
|
57300
57634
|
});
|
|
57301
57635
|
}
|
|
57302
57636
|
|
|
57303
|
-
const Option = /*#__PURE__*/(0, React.forwardRef)(function Option(
|
|
57637
|
+
const Option = /*#__PURE__*/(0, React.forwardRef)(function Option(_ref5, ref) {
|
|
57638
|
+
let {
|
|
57639
|
+
dangerouslySetAntdProps,
|
|
57640
|
+
...props
|
|
57641
|
+
} = _ref5;
|
|
57304
57642
|
return (0, _jsxRuntime.jsx)(AntDSelect.Option, { ...props,
|
|
57305
|
-
ref: ref
|
|
57643
|
+
ref: ref,
|
|
57644
|
+
...dangerouslySetAntdProps
|
|
57306
57645
|
});
|
|
57307
57646
|
});
|
|
57308
57647
|
exports.Option = Option;
|
|
57309
57648
|
const SelectNamespace = Object.assign(DuboisRefForwardedSelect, {
|
|
57310
|
-
Option
|
|
57649
|
+
Option,
|
|
57650
|
+
OptGroup: AntDSelect.OptGroup
|
|
57311
57651
|
});
|
|
57312
57652
|
const Select = SelectNamespace;
|
|
57313
57653
|
exports.Select = Select;
|
|
57314
57654
|
const __INTERNAL_DO_NOT_USE__Option = Option;
|
|
57315
57655
|
exports.__INTERNAL_DO_NOT_USE__Option = __INTERNAL_DO_NOT_USE__Option;
|
|
57316
57656
|
|
|
57317
|
-
const Skeleton =
|
|
57318
|
-
|
|
57657
|
+
const Skeleton = _ref => {
|
|
57658
|
+
let {
|
|
57659
|
+
dangerouslySetAntdProps,
|
|
57660
|
+
...props
|
|
57661
|
+
} = _ref;
|
|
57662
|
+
return (0, _jsxRuntime.jsx)(Skeleton$2, { ...props,
|
|
57663
|
+
...dangerouslySetAntdProps
|
|
57319
57664
|
});
|
|
57320
57665
|
};
|
|
57321
57666
|
|
|
@@ -57326,7 +57671,8 @@ Skeleton.Input = Skeleton$2.Input;
|
|
|
57326
57671
|
|
|
57327
57672
|
const Spacer = _ref => {
|
|
57328
57673
|
let {
|
|
57329
|
-
size = 'medium'
|
|
57674
|
+
size = 'medium',
|
|
57675
|
+
...props
|
|
57330
57676
|
} = _ref;
|
|
57331
57677
|
const {
|
|
57332
57678
|
theme
|
|
@@ -57344,7 +57690,8 @@ const Spacer = _ref => {
|
|
|
57344
57690
|
/*#__PURE__*/
|
|
57345
57691
|
(0, _react2.css)({
|
|
57346
57692
|
height: spacingValues[size]
|
|
57347
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:Spacer;", process.env.NODE_ENV === "production" ? "" : ";label:css;")
|
|
57693
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Spacer;", process.env.NODE_ENV === "production" ? "" : ";label:css;"),
|
|
57694
|
+
...props
|
|
57348
57695
|
});
|
|
57349
57696
|
};
|
|
57350
57697
|
|
|
@@ -57380,6 +57727,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__$2() {
|
|
|
57380
57727
|
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).";
|
|
57381
57728
|
}
|
|
57382
57729
|
|
|
57730
|
+
const BUTTON_HORIZONTAL_PADDING = 12;
|
|
57731
|
+
|
|
57383
57732
|
function getSplitButtonEmotionStyles(classNamePrefix, theme) {
|
|
57384
57733
|
const classDefault = ".".concat(classNamePrefix, "-btn");
|
|
57385
57734
|
const classPrimary = ".".concat(classNamePrefix, "-btn-primary");
|
|
@@ -57388,8 +57737,8 @@ function getSplitButtonEmotionStyles(classNamePrefix, theme) {
|
|
|
57388
57737
|
const styles = {
|
|
57389
57738
|
[classDefault]: { ...getDefaultStyles(theme),
|
|
57390
57739
|
boxShadow: 'none',
|
|
57391
|
-
height: theme.
|
|
57392
|
-
padding:
|
|
57740
|
+
height: theme.general.heightSm,
|
|
57741
|
+
padding: "4px ".concat(BUTTON_HORIZONTAL_PADDING, "px"),
|
|
57393
57742
|
'&:focus-visible': {
|
|
57394
57743
|
outlineStyle: 'solid',
|
|
57395
57744
|
outlineWidth: '2px',
|
|
@@ -57414,9 +57763,9 @@ function getSplitButtonEmotionStyles(classNamePrefix, theme) {
|
|
|
57414
57763
|
},
|
|
57415
57764
|
[classDropdownTrigger]: {
|
|
57416
57765
|
// Needs to be 1px less than our standard 8px to allow for the off-by-one border handling in this component.
|
|
57417
|
-
padding:
|
|
57766
|
+
padding: 3,
|
|
57418
57767
|
borderLeftColor: 'transparent',
|
|
57419
|
-
width: theme.
|
|
57768
|
+
width: theme.general.heightSm
|
|
57420
57769
|
},
|
|
57421
57770
|
["&".concat(classSmall)]: {
|
|
57422
57771
|
[classDropdownTrigger]: {
|
|
@@ -57443,7 +57792,7 @@ function getSplitButtonEmotionStyles(classNamePrefix, theme) {
|
|
|
57443
57792
|
);
|
|
57444
57793
|
}
|
|
57445
57794
|
|
|
57446
|
-
var _ref
|
|
57795
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
57447
57796
|
name: "jjj6u2",
|
|
57448
57797
|
styles: "display:inline-flex;position:relative"
|
|
57449
57798
|
} : {
|
|
@@ -57463,10 +57812,14 @@ const SplitButton = props => {
|
|
|
57463
57812
|
menu,
|
|
57464
57813
|
type,
|
|
57465
57814
|
loading,
|
|
57815
|
+
loadingButtonStyles,
|
|
57816
|
+
placement,
|
|
57466
57817
|
dangerouslySetAntdProps,
|
|
57467
57818
|
...dropdownButtonProps
|
|
57468
|
-
} = props;
|
|
57469
|
-
|
|
57819
|
+
} = props; // Size of button when loading only icon is shown
|
|
57820
|
+
|
|
57821
|
+
const LOADING_BUTTON_SIZE = theme.general.iconFontSize + 2 * BUTTON_HORIZONTAL_PADDING + 2 * theme.general.borderWidth;
|
|
57822
|
+
const [width, setWidth] = (0, React.useState)(LOADING_BUTTON_SIZE); // Set the width to the button's width in regular state to later use when in loading state
|
|
57470
57823
|
// We do this to have just a loading icon in loading state at the normal width to avoid flicker and width changes in page
|
|
57471
57824
|
|
|
57472
57825
|
const ref = (0, React.useCallback)(node => {
|
|
@@ -57476,11 +57829,12 @@ const SplitButton = props => {
|
|
|
57476
57829
|
}, [loading]);
|
|
57477
57830
|
return (0, _jsxRuntime.jsx)("div", {
|
|
57478
57831
|
ref: ref,
|
|
57479
|
-
css: _ref
|
|
57832
|
+
css: _ref,
|
|
57480
57833
|
children: loading ? (0, _jsxRuntime.jsx)(Button, {
|
|
57481
57834
|
type: type === 'default' ? undefined : type,
|
|
57482
57835
|
style: {
|
|
57483
|
-
width: width
|
|
57836
|
+
width: width,
|
|
57837
|
+
...loadingButtonStyles
|
|
57484
57838
|
},
|
|
57485
57839
|
children: (0, _jsxRuntime.jsx)(LoadingIcon, {
|
|
57486
57840
|
spin: true
|
|
@@ -57498,7 +57852,7 @@ const SplitButton = props => {
|
|
|
57498
57852
|
fontSize: theme.general.iconSize
|
|
57499
57853
|
}, process.env.NODE_ENV === "production" ? "" : ";label:SplitButton;", process.env.NODE_ENV === "production" ? "" : ";label:css;")
|
|
57500
57854
|
}),
|
|
57501
|
-
placement:
|
|
57855
|
+
placement: placement || 'bottomRight',
|
|
57502
57856
|
type: type === 'default' ? undefined : type,
|
|
57503
57857
|
...dangerouslySetAntdProps,
|
|
57504
57858
|
children: [icon, children]
|
|
@@ -57619,18 +57973,20 @@ const getTabEmotionStyles = (clsPrefix, theme) => {
|
|
|
57619
57973
|
const classUnderline = ".".concat(clsPrefix, "-tabs-ink-bar");
|
|
57620
57974
|
const classClosable = ".".concat(clsPrefix, "-tabs-tab-with-remove");
|
|
57621
57975
|
const classNav = ".".concat(clsPrefix, "-tabs-nav");
|
|
57622
|
-
const classNavWrap = ".".concat(clsPrefix, "-tabs-nav-wrap");
|
|
57623
57976
|
const classCloseButton = ".".concat(clsPrefix, "-tabs-tab-remove");
|
|
57624
57977
|
const classAddButton = ".".concat(clsPrefix, "-tabs-nav-add");
|
|
57625
57978
|
const styles = {
|
|
57979
|
+
'&&': {
|
|
57980
|
+
overflow: 'unset'
|
|
57981
|
+
},
|
|
57626
57982
|
[classTab]: {
|
|
57627
57983
|
borderBottom: 'none',
|
|
57628
57984
|
backgroundColor: 'transparent',
|
|
57629
57985
|
border: 'none',
|
|
57630
57986
|
paddingLeft: 0,
|
|
57631
57987
|
paddingRight: 0,
|
|
57632
|
-
paddingTop:
|
|
57633
|
-
paddingBottom:
|
|
57988
|
+
paddingTop: 6,
|
|
57989
|
+
paddingBottom: 6,
|
|
57634
57990
|
marginRight: 24
|
|
57635
57991
|
},
|
|
57636
57992
|
[classButton]: {
|
|
@@ -57682,21 +58038,18 @@ const getTabEmotionStyles = (clsPrefix, theme) => {
|
|
|
57682
58038
|
background: 'none',
|
|
57683
58039
|
paddingTop: 0,
|
|
57684
58040
|
paddingBottom: 0,
|
|
57685
|
-
height: theme.
|
|
57686
|
-
},
|
|
57687
|
-
[classNavWrap]: {
|
|
57688
|
-
overflow: 'visible'
|
|
58041
|
+
height: theme.general.heightSm
|
|
57689
58042
|
},
|
|
57690
58043
|
[classNav]: {
|
|
57691
|
-
height: theme.
|
|
58044
|
+
height: theme.general.heightSm,
|
|
57692
58045
|
'&::before': {
|
|
57693
58046
|
borderColor: theme.colors.borderDecorative
|
|
57694
58047
|
}
|
|
57695
58048
|
},
|
|
57696
58049
|
[classCloseButton]: {
|
|
57697
|
-
height:
|
|
57698
|
-
width:
|
|
57699
|
-
padding:
|
|
58050
|
+
height: 24,
|
|
58051
|
+
width: 24,
|
|
58052
|
+
padding: 6,
|
|
57700
58053
|
borderRadius: theme.borders.borderRadiusMd,
|
|
57701
58054
|
marginTop: 0,
|
|
57702
58055
|
marginRight: 0,
|
|
@@ -57722,9 +58075,9 @@ const getTabEmotionStyles = (clsPrefix, theme) => {
|
|
|
57722
58075
|
border: 'none',
|
|
57723
58076
|
borderRadius: theme.borders.borderRadiusMd,
|
|
57724
58077
|
margin: 4,
|
|
57725
|
-
height:
|
|
57726
|
-
width:
|
|
57727
|
-
padding:
|
|
58078
|
+
height: 24,
|
|
58079
|
+
width: 24,
|
|
58080
|
+
padding: 0,
|
|
57728
58081
|
minWidth: 'auto',
|
|
57729
58082
|
'&:hover': {
|
|
57730
58083
|
backgroundColor: theme.colors.actionDefaultBackgroundHover,
|
|
@@ -57758,7 +58111,8 @@ const Tabs = _ref => {
|
|
|
57758
58111
|
children,
|
|
57759
58112
|
destroyInactiveTabPane = false,
|
|
57760
58113
|
dangerouslySetAntdProps = {},
|
|
57761
|
-
dangerouslyAppendEmotionCSS = {}
|
|
58114
|
+
dangerouslyAppendEmotionCSS = {},
|
|
58115
|
+
...props
|
|
57762
58116
|
} = _ref;
|
|
57763
58117
|
const {
|
|
57764
58118
|
theme,
|
|
@@ -57782,6 +58136,7 @@ const Tabs = _ref => {
|
|
|
57782
58136
|
}),
|
|
57783
58137
|
css: [getTabEmotionStyles(classNamePrefix, theme), importantify(dangerouslyAppendEmotionCSS), process.env.NODE_ENV === "production" ? "" : ";label:Tabs;"],
|
|
57784
58138
|
...dangerouslySetAntdProps,
|
|
58139
|
+
...props,
|
|
57785
58140
|
children: children
|
|
57786
58141
|
});
|
|
57787
58142
|
};
|
|
@@ -57957,7 +58312,8 @@ const Tooltip = _ref => {
|
|
|
57957
58312
|
title,
|
|
57958
58313
|
placement = 'top',
|
|
57959
58314
|
dataTestId,
|
|
57960
|
-
dangerouslySetAntdProps
|
|
58315
|
+
dangerouslySetAntdProps,
|
|
58316
|
+
...props
|
|
57961
58317
|
} = _ref;
|
|
57962
58318
|
const {
|
|
57963
58319
|
theme
|
|
@@ -57969,7 +58325,8 @@ const Tooltip = _ref => {
|
|
|
57969
58325
|
});
|
|
57970
58326
|
}
|
|
57971
58327
|
|
|
57972
|
-
return (0, _jsxRuntime.jsx)(AntDTooltip
|
|
58328
|
+
return (0, _jsxRuntime.jsx)(AntDTooltip // eslint-disable-next-line react/forbid-dom-props -- FEINF-1337 - this should turn into data-testid
|
|
58329
|
+
, {
|
|
57973
58330
|
title: (0, _jsxRuntime.jsx)("span", {
|
|
57974
58331
|
"data-test-id": dataTestId,
|
|
57975
58332
|
children: title
|
|
@@ -57985,7 +58342,9 @@ const Tooltip = _ref => {
|
|
|
57985
58342
|
overlayStyle: {
|
|
57986
58343
|
zIndex: theme.options.zIndexBase + 70
|
|
57987
58344
|
},
|
|
58345
|
+
css: getAnimationCss(theme.options.enableAnimation),
|
|
57988
58346
|
...dangerouslySetAntdProps,
|
|
58347
|
+
...props,
|
|
57989
58348
|
children: children
|
|
57990
58349
|
});
|
|
57991
58350
|
};
|
|
@@ -58062,7 +58421,8 @@ function getTreeCheckboxEmotionStyles(clsPrefix, theme) {
|
|
|
58062
58421
|
// Indeterminate and mouse pressed
|
|
58063
58422
|
["".concat(classIndeterminate, ":active > ").concat(classInner)]: {
|
|
58064
58423
|
backgroundColor: theme.colors.actionPrimaryBackgroundPress
|
|
58065
|
-
}
|
|
58424
|
+
},
|
|
58425
|
+
...getAnimationCss(theme.options.enableAnimation)
|
|
58066
58426
|
};
|
|
58067
58427
|
return styles;
|
|
58068
58428
|
}
|
|
@@ -58203,7 +58563,7 @@ function getTreeEmotionStyles(clsPrefix, theme) {
|
|
|
58203
58563
|
);
|
|
58204
58564
|
}
|
|
58205
58565
|
|
|
58206
|
-
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
58566
|
+
var _ref2$1 = process.env.NODE_ENV === "production" ? {
|
|
58207
58567
|
name: "1o12nta",
|
|
58208
58568
|
styles: "font-size:24px!important"
|
|
58209
58569
|
} : {
|
|
@@ -58220,7 +58580,8 @@ function Tree(_ref) {
|
|
|
58220
58580
|
defaultCheckedKeys,
|
|
58221
58581
|
disabled = false,
|
|
58222
58582
|
mode = 'default',
|
|
58223
|
-
dangerouslySetAntdProps
|
|
58583
|
+
dangerouslySetAntdProps,
|
|
58584
|
+
...props
|
|
58224
58585
|
} = _ref;
|
|
58225
58586
|
const {
|
|
58226
58587
|
theme,
|
|
@@ -58234,13 +58595,14 @@ function Tree(_ref) {
|
|
|
58234
58595
|
disabled: disabled,
|
|
58235
58596
|
css: getTreeEmotionStyles(classNamePrefix, theme),
|
|
58236
58597
|
switcherIcon: (0, _jsxRuntime.jsx)(ChevronDownIcon, {
|
|
58237
|
-
css: _ref2
|
|
58598
|
+
css: _ref2$1
|
|
58238
58599
|
}),
|
|
58239
58600
|
tabIndex: 0,
|
|
58240
58601
|
selectable: mode === 'selectable' || mode === 'multiselectable',
|
|
58241
58602
|
checkable: mode === 'checkable',
|
|
58242
58603
|
multiple: mode === 'multiselectable',
|
|
58243
|
-
...dangerouslySetAntdProps
|
|
58604
|
+
...dangerouslySetAntdProps,
|
|
58605
|
+
...props
|
|
58244
58606
|
});
|
|
58245
58607
|
}
|
|
58246
58608
|
|
|
@@ -58248,7 +58610,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() {
|
|
|
58248
58610
|
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).";
|
|
58249
58611
|
}
|
|
58250
58612
|
|
|
58251
|
-
var
|
|
58613
|
+
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
58252
58614
|
name: "mgrjgu",
|
|
58253
58615
|
styles: "margin-left:2px"
|
|
58254
58616
|
} : {
|
|
@@ -58257,7 +58619,11 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
58257
58619
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
58258
58620
|
};
|
|
58259
58621
|
|
|
58260
|
-
function Link(
|
|
58622
|
+
function Link(_ref) {
|
|
58623
|
+
let {
|
|
58624
|
+
dangerouslySetAntdProps,
|
|
58625
|
+
...props
|
|
58626
|
+
} = _ref;
|
|
58261
58627
|
const {
|
|
58262
58628
|
children,
|
|
58263
58629
|
openInNewTab,
|
|
@@ -58266,8 +58632,9 @@ function Link(props) {
|
|
|
58266
58632
|
const openInNewTabProps = getOpenInNewTabProps(openInNewTab);
|
|
58267
58633
|
return (0, _jsxRuntime.jsxs)(AntDTypography.Link, { ...restProps,
|
|
58268
58634
|
...openInNewTabProps,
|
|
58635
|
+
...dangerouslySetAntdProps,
|
|
58269
58636
|
children: [children, openInNewTab ? (0, _jsxRuntime.jsx)(NewWindowIcon, {
|
|
58270
|
-
css:
|
|
58637
|
+
css: _ref2
|
|
58271
58638
|
}) : null]
|
|
58272
58639
|
});
|
|
58273
58640
|
}
|
|
@@ -58429,8 +58796,13 @@ function Text(userProps) {
|
|
|
58429
58796
|
});
|
|
58430
58797
|
}
|
|
58431
58798
|
|
|
58432
|
-
function Typography(
|
|
58433
|
-
|
|
58799
|
+
function Typography(_ref) {
|
|
58800
|
+
let {
|
|
58801
|
+
dangerouslySetAntdProps,
|
|
58802
|
+
...props
|
|
58803
|
+
} = _ref;
|
|
58804
|
+
return (0, _jsxRuntime.jsx)(AntDTypography, { ...props,
|
|
58805
|
+
...dangerouslySetAntdProps
|
|
58434
58806
|
});
|
|
58435
58807
|
}
|
|
58436
58808
|
|