@databricks/design-system 1.9.1 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Typography-84a00e02.js → Spinner-140f57ac.js} +1135 -75
- package/dist/Spinner-140f57ac.js.map +1 -0
- package/dist/common-3ab0e300.js +15 -0
- package/dist/common-3ab0e300.js.map +1 -0
- package/dist/design-system/AutoComplete/AutoComplete.d.ts.map +1 -1
- package/dist/design-system/Button/Button.d.ts +5 -1
- package/dist/design-system/Button/Button.d.ts.map +1 -1
- package/dist/design-system/Button/styles.d.ts.map +1 -1
- package/dist/design-system/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/design-system/DatePicker/DatePicker.d.ts +18 -14
- package/dist/design-system/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts +3 -1
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -1
- package/dist/design-system/Drawer/Drawer.d.ts +12 -1
- package/dist/design-system/Drawer/Drawer.d.ts.map +1 -1
- package/dist/design-system/FormMessage/FormMessage.d.ts.map +1 -1
- package/dist/design-system/FormV2/RHFAdapters.d.ts +7 -7
- package/dist/design-system/FormV2/RHFAdapters.d.ts.map +1 -1
- package/dist/design-system/Hooks/useDesignSystemTheme.d.ts.map +1 -1
- package/dist/design-system/Icon/__generated/icons/BracketsXIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/BracketsXIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/CloudModelIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/CloudModelIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/CursorIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/CursorIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/DagIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/DagIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/DecimalIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/DecimalIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/DotsCircleIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/DotsCircleIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/LettersIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/LettersIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/NumbersIcon.v2.d.ts +4 -0
- package/dist/design-system/Icon/__generated/icons/NumbersIcon.v2.d.ts.map +1 -0
- package/dist/design-system/Icon/__generated/icons/index.d.ts +8 -1
- package/dist/design-system/Icon/__generated/icons/index.d.ts.map +1 -1
- package/dist/design-system/LegacyTable/LegacyTable.d.ts +100 -0
- package/dist/design-system/LegacyTable/LegacyTable.d.ts.map +1 -0
- package/dist/design-system/LegacyTable/index.d.ts +2 -0
- package/dist/design-system/LegacyTable/index.d.ts.map +1 -0
- package/dist/design-system/Modal/Modal.d.ts +3 -1
- package/dist/design-system/Modal/Modal.d.ts.map +1 -1
- package/dist/design-system/Notification/Notification.d.ts.map +1 -1
- package/dist/design-system/PageWrapper/PageWrapper.d.ts.map +1 -1
- package/dist/design-system/Popover/Popover.d.ts +2 -1
- package/dist/design-system/Popover/Popover.d.ts.map +1 -1
- package/dist/design-system/PopoverV2/PopoverV2.d.ts +1 -0
- package/dist/design-system/PopoverV2/PopoverV2.d.ts.map +1 -1
- package/dist/design-system/Radio/Radio.d.ts.map +1 -1
- package/dist/design-system/SegmentedControl/SegmentedControl.d.ts +0 -2
- package/dist/design-system/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/design-system/Select/Select.d.ts.map +1 -1
- package/dist/design-system/Sidebar/Sidebar.d.ts +1 -1
- package/dist/design-system/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts.map +1 -1
- package/dist/design-system/Table/index.d.ts +1 -1
- package/dist/design-system/ToggleButton/ToggleButton.d.ts.map +1 -1
- package/dist/design-system/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/design-system/index.d.ts +1 -1
- package/dist/design-system/index.d.ts.map +1 -1
- package/dist/development/Filter/Filter.d.ts +10 -0
- package/dist/development/Filter/Filter.d.ts.map +1 -0
- package/dist/development/Filter/Filter.test.d.ts +2 -0
- package/dist/development/Filter/Filter.test.d.ts.map +1 -0
- package/dist/development/Filter/FilterButtonContainer.d.ts +2 -0
- package/dist/development/Filter/FilterButtonContainer.d.ts.map +1 -0
- package/dist/development/Filter/FilterContent.d.ts +14 -0
- package/dist/development/Filter/FilterContent.d.ts.map +1 -0
- package/dist/development/Filter/FilterCountBadge.d.ts +2 -0
- package/dist/development/Filter/FilterCountBadge.d.ts.map +1 -0
- package/dist/development/Filter/FilterLoadingSpinner.d.ts +2 -0
- package/dist/development/Filter/FilterLoadingSpinner.d.ts.map +1 -0
- package/dist/development/Filter/FilterOptionControlledList.d.ts +9 -0
- package/dist/development/Filter/FilterOptionControlledList.d.ts.map +1 -0
- package/dist/development/Filter/FilterOptionList.d.ts +10 -0
- package/dist/development/Filter/FilterOptionList.d.ts.map +1 -0
- package/dist/development/Filter/FilterOptionListCheckboxItem.d.ts +11 -0
- package/dist/development/Filter/FilterOptionListCheckboxItem.d.ts.map +1 -0
- package/dist/development/Filter/FilterOptionListSearch.d.ts +7 -0
- package/dist/development/Filter/FilterOptionListSearch.d.ts.map +1 -0
- package/dist/development/Filter/FilterOptionListSelectItem.d.ts +10 -0
- package/dist/development/Filter/FilterOptionListSelectItem.d.ts.map +1 -0
- package/dist/development/Filter/FilterSectionHeader.d.ts +2 -0
- package/dist/development/Filter/FilterSectionHeader.d.ts.map +1 -0
- package/dist/development/Filter/FilterSeparator.d.ts +2 -0
- package/dist/development/Filter/FilterSeparator.d.ts.map +1 -0
- package/dist/development/Filter/FilterTrigger.d.ts +15 -0
- package/dist/development/Filter/FilterTrigger.d.ts.map +1 -0
- package/dist/development/Filter/hooks/useFilterContext.d.ts +2 -0
- package/dist/development/Filter/hooks/useFilterContext.d.ts.map +1 -0
- package/dist/development/Filter/hooks/useFilterOptionListContext.d.ts +2 -0
- package/dist/development/Filter/hooks/useFilterOptionListContext.d.ts.map +1 -0
- package/dist/development/Filter/index.d.ts +14 -0
- package/dist/development/Filter/index.d.ts.map +1 -0
- package/dist/development/Filter/providers/FilterContext.d.ts +15 -0
- package/dist/development/Filter/providers/FilterContext.d.ts.map +1 -0
- package/dist/development/Filter/providers/FilterOptionListContext.d.ts +10 -0
- package/dist/development/Filter/providers/FilterOptionListContext.d.ts.map +1 -0
- package/dist/development/Filter/shared.d.ts +3 -0
- package/dist/development/Filter/shared.d.ts.map +1 -0
- package/dist/development/Slider/Slider.d.ts.map +1 -1
- package/dist/development/TableUI/index.d.ts +33 -0
- package/dist/development/TableUI/index.d.ts.map +1 -1
- package/dist/development/index.d.ts +1 -0
- package/dist/development/index.d.ts.map +1 -1
- package/dist/development.js +1097 -472
- package/dist/development.js.map +1 -1
- package/dist/index-dark.css +1 -0
- package/dist/index-mfe-dark.css +1 -0
- package/dist/index-mfe.css +1 -0
- package/dist/index.css +1 -0
- package/dist/index.js +836 -1558
- package/dist/index.js.map +1 -1
- package/dist/test-utils/common.d.ts +11 -0
- package/dist/test-utils/common.d.ts.map +1 -0
- package/dist/test-utils/enzyme/index.d.ts +1 -0
- package/dist/test-utils/enzyme/index.d.ts.map +1 -1
- package/dist/test-utils/enzyme/selectEvent.d.ts +42 -0
- package/dist/test-utils/enzyme/selectEvent.d.ts.map +1 -0
- package/dist/test-utils/enzyme/selectEvent.test.d.ts +2 -0
- package/dist/test-utils/enzyme/selectEvent.test.d.ts.map +1 -0
- package/dist/test-utils/enzyme/utils.d.ts +33 -0
- package/dist/test-utils/enzyme/utils.d.ts.map +1 -0
- package/dist/test-utils/enzyme.js +258 -1
- package/dist/test-utils/enzyme.js.map +1 -1
- package/dist/test-utils/rtl/index.d.ts +1 -0
- package/dist/test-utils/rtl/index.d.ts.map +1 -1
- package/dist/test-utils/rtl/selectEvent.d.ts +41 -0
- package/dist/test-utils/rtl/selectEvent.d.ts.map +1 -0
- package/dist/test-utils/rtl/selectEvent.test.d.ts +2 -0
- package/dist/test-utils/rtl/selectEvent.test.d.ts.map +1 -0
- package/dist/test-utils/rtl.js +135 -1
- package/dist/test-utils/rtl.js.map +1 -1
- package/dist/test-utils/types.d.ts +1 -14
- package/dist/test-utils/types.d.ts.map +1 -1
- package/dist/theme/colorList.d.ts +7 -8
- package/dist/theme/colorList.d.ts.map +1 -1
- package/dist/theme/colors.d.ts +9 -11
- package/dist/theme/colors.d.ts.map +1 -1
- package/dist/theme/convertToLessVars.d.ts +3 -4
- package/dist/theme/convertToLessVars.d.ts.map +1 -1
- package/dist/theme/generalVariables.d.ts +4 -0
- package/dist/theme/generalVariables.d.ts.map +1 -1
- package/dist/theme/index.d.ts +7 -3
- package/dist/theme/index.d.ts.map +1 -1
- package/package.json +7 -6
- package/dist/Typography-52abe0b7.js +0 -1142
- package/dist/Typography-52abe0b7.js.map +0 -1
- package/dist/Typography-84a00e02.js.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ArrayIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/ArrayIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BookmarkBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/BookmarkBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/BracketsIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/BracketsIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/CheckCircleBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/CheckCircleBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ClusterIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/ClusterIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ClustersIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/ClustersIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/DataMarketplace.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/DataMarketplace.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ErrorBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/ErrorBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ErrorFillIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/ErrorFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/ExperimentIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/ExperimentIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/Folder1Icon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/Folder1Icon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/Gear1Icon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/Gear1Icon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/InfoBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/InfoBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/LifesaverIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/LifesaverIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/LinkRemoveIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/LinkRemoveIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/LockBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/LockBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/MinusCircleBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/MinusCircleBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/NotificationsOffIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/NotificationsOffIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PinBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/PinBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PlayCircleBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/PlayCircleBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/PlusCircleBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/PlusCircleBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/QueryListViewIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/QueryListViewIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/QueryNavIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/QueryNavIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/QuestionMarkBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/QuestionMarkBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/Redo.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/Redo.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/RedoIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/RedoIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/Refresh.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/Refresh.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/Refresh.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/Refresh.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/RefreshIcon.v2.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/RefreshIcon.v2.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/Search1Icon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/Search1Icon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StarBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/StarBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StopCircleBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/StopCircleBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/StopCricleFillIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/StopCricleFillIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/Undo.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/Undo.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/Visible.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/Visible.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/VisibleOff.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/VisibleOff.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/WarningBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/WarningBorderIcon.d.ts.map +0 -1
- package/dist/design-system/Icon/__generated/icons/XCircleBorderIcon.d.ts +0 -4
- package/dist/design-system/Icon/__generated/icons/XCircleBorderIcon.d.ts.map +0 -1
- package/dist/test-utils/enzyme.d.ts +0 -8
- package/dist/test-utils/enzyme.d.ts.map +0 -1
- package/dist/test-utils/rtl.d.ts +0 -7
- package/dist/test-utils/rtl.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { useRef, useMemo, forwardRef, useImperativeHandle, Children, useCallback, useContext, useState, useEffect, createContext } from 'react';
|
|
3
|
-
import { u as useDesignSystemTheme, a as useDesignSystemFlags, I as Icon, D as DesignSystemAntDConfigProvider, R as RestoreAntDDefaultClsPrefix, g as getAnimationCss,
|
|
4
|
-
export { A as ApplyDesignSystemContextOverrides,
|
|
3
|
+
import { u as useDesignSystemTheme, a as useDesignSystemFlags, I as Icon, D as DesignSystemAntDConfigProvider, R as RestoreAntDDefaultClsPrefix, C as ChevronDownIcon, g as getAnimationCss, b as CloseIcon, c as useDesignSystemContext, A as ApplyDesignSystemContextOverrides, T as Typography, B as Button, d as CheckIcon, e as Tooltip, i as importantify, X as XCircleFillIcon, L as LoadingIcon, f as getValidationStateColor, h as Input, j as Checkbox, k as Title$2, S as Spinner, l as DU_BOIS_ENABLE_ANIMATION_CLASSNAME, m as getDefaultStyles, n as getPrimaryStyles, o as getDisabledStyles, p as lightColorList } from './Spinner-140f57ac.js';
|
|
4
|
+
export { A as ApplyDesignSystemContextOverrides, v as ApplyDesignSystemFlags, B as Button, d as CheckIcon, j as Checkbox, C as ChevronDownIcon, b as CloseIcon, l as DU_BOIS_ENABLE_ANIMATION_CLASSNAME, D as DesignSystemAntDConfigProvider, s as DesignSystemContext, t as DesignSystemProvider, I as Icon, h as Input, L as LoadingIcon, N as NewWindowIcon, R as RestoreAntDDefaultClsPrefix, x as SearchIcon, y as SortAscendingIcon, z as SortDescendingIcon, E as SortUnsortedIcon, S as Spinner, e as Tooltip, T as Typography, W as WithDesignSystemThemeHoc, X as XCircleFillIcon, H as __INTERNAL_DO_NOT_USE_DEDUPE__Group, _ as __INTERNAL_DO_NOT_USE__Group, G as __INTERNAL_DO_NOT_USE__Password, F as __INTERNAL_DO_NOT_USE__TextArea, g as getAnimationCss, q as getButtonEmotionStyles, r as getWrapperStyle, w as useAntDConfigProviderContext, a as useDesignSystemFlags, u as useDesignSystemTheme } from './Spinner-140f57ac.js';
|
|
5
5
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
6
6
|
import { css, keyframes, ClassNames } from '@emotion/react';
|
|
7
|
-
import { Collapse, Alert as Alert$1, AutoComplete as AutoComplete$1, Breadcrumb as Breadcrumb$1,
|
|
7
|
+
import { Collapse, Alert as Alert$1, AutoComplete as AutoComplete$1, Breadcrumb as Breadcrumb$1, DatePicker, Dropdown as Dropdown$1, Form as Form$1, Radio as Radio$1, Select as Select$1, Col as Col$1, Row as Row$1, Space as Space$1, Layout as Layout$1, Pagination as Pagination$1, Table as Table$1, Menu as Menu$1, Modal as Modal$1, notification, Popover as Popover$2, Skeleton as Skeleton$1, Button as Button$1, Switch as Switch$1, Tabs as Tabs$1, Tree as Tree$1 } from 'antd';
|
|
8
8
|
import classnames from 'classnames';
|
|
9
9
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
10
10
|
import * as DropdownMenu$1 from '@radix-ui/react-dropdown-menu';
|
|
@@ -14,7 +14,6 @@ import * as Popover$1 from '@radix-ui/react-popover';
|
|
|
14
14
|
import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral';
|
|
15
15
|
import { ResizableBox } from 'react-resizable';
|
|
16
16
|
import AntDIcon from '@ant-design/icons';
|
|
17
|
-
import 'chroma-js';
|
|
18
17
|
import 'lodash/isNil';
|
|
19
18
|
import 'lodash/endsWith';
|
|
20
19
|
import 'lodash/isBoolean';
|
|
@@ -22,6 +21,7 @@ import 'lodash/isNumber';
|
|
|
22
21
|
import 'lodash/isString';
|
|
23
22
|
import 'lodash/mapValues';
|
|
24
23
|
import '@emotion/unitless';
|
|
24
|
+
import 'chroma-js';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* A helper hook that allows quick creation of theme-dependent styles.
|
|
@@ -969,47 +969,6 @@ function CheckCircleIcon(props) {
|
|
|
969
969
|
});
|
|
970
970
|
}
|
|
971
971
|
|
|
972
|
-
function SvgCheckIconV1(props) {
|
|
973
|
-
return jsx("svg", {
|
|
974
|
-
width: "1em",
|
|
975
|
-
height: "1em",
|
|
976
|
-
viewBox: "0 0 24 24",
|
|
977
|
-
fill: "none",
|
|
978
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
979
|
-
...props,
|
|
980
|
-
children: jsx("path", {
|
|
981
|
-
d: "M8.795 15.875l-3.47-3.47a.996.996 0 00-1.41 0 .996.996 0 000 1.41l4.18 4.18c.39.39 1.02.39 1.41 0l10.58-10.58a.996.996 0 10-1.41-1.41l-9.88 9.87z",
|
|
982
|
-
fill: "currentColor"
|
|
983
|
-
})
|
|
984
|
-
});
|
|
985
|
-
}
|
|
986
|
-
function SvgCheckIconV2(props) {
|
|
987
|
-
return jsx("svg", {
|
|
988
|
-
width: "1em",
|
|
989
|
-
height: "1em",
|
|
990
|
-
viewBox: "0 0 16 16",
|
|
991
|
-
fill: "none",
|
|
992
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
993
|
-
...props,
|
|
994
|
-
children: jsx("path", {
|
|
995
|
-
fillRule: "evenodd",
|
|
996
|
-
clipRule: "evenodd",
|
|
997
|
-
d: "M15.06 3.56l-9.53 9.531L1 8.561 2.06 7.5l3.47 3.47L14 2.5l1.06 1.06z",
|
|
998
|
-
fill: "currentColor"
|
|
999
|
-
})
|
|
1000
|
-
});
|
|
1001
|
-
}
|
|
1002
|
-
function CheckIcon(props) {
|
|
1003
|
-
const {
|
|
1004
|
-
USE_NEW_ICONS
|
|
1005
|
-
} = useDesignSystemFlags();
|
|
1006
|
-
const component = USE_NEW_ICONS ? SvgCheckIconV2 : SvgCheckIconV1;
|
|
1007
|
-
return jsx(Icon, {
|
|
1008
|
-
...props,
|
|
1009
|
-
component: component
|
|
1010
|
-
});
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
972
|
function SvgCheckLineIconV1(props) {
|
|
1014
973
|
return jsx("svg", {
|
|
1015
974
|
width: "1em",
|
|
@@ -1268,47 +1227,6 @@ function ChevronDoubleUpIcon(props) {
|
|
|
1268
1227
|
});
|
|
1269
1228
|
}
|
|
1270
1229
|
|
|
1271
|
-
function SvgChevronDownIconV1(props) {
|
|
1272
|
-
return jsx("svg", {
|
|
1273
|
-
width: "1em",
|
|
1274
|
-
height: "1em",
|
|
1275
|
-
viewBox: "0 0 24 24",
|
|
1276
|
-
fill: "none",
|
|
1277
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1278
|
-
...props,
|
|
1279
|
-
children: jsx("path", {
|
|
1280
|
-
d: "M15.875 9l-3.88 3.88L8.115 9a.996.996 0 10-1.41 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59a.996.996 0 000-1.41c-.39-.38-1.03-.39-1.42 0z",
|
|
1281
|
-
fill: "currentColor"
|
|
1282
|
-
})
|
|
1283
|
-
});
|
|
1284
|
-
}
|
|
1285
|
-
function SvgChevronDownIconV2(props) {
|
|
1286
|
-
return jsx("svg", {
|
|
1287
|
-
width: "1em",
|
|
1288
|
-
height: "1em",
|
|
1289
|
-
viewBox: "0 0 16 16",
|
|
1290
|
-
fill: "none",
|
|
1291
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1292
|
-
...props,
|
|
1293
|
-
children: jsx("path", {
|
|
1294
|
-
fillRule: "evenodd",
|
|
1295
|
-
clipRule: "evenodd",
|
|
1296
|
-
d: "M8 8.917L10.947 6 12 7.042 8 11 4 7.042 5.053 6 8 8.917z",
|
|
1297
|
-
fill: "currentColor"
|
|
1298
|
-
})
|
|
1299
|
-
});
|
|
1300
|
-
}
|
|
1301
|
-
function ChevronDownIcon(props) {
|
|
1302
|
-
const {
|
|
1303
|
-
USE_NEW_ICONS
|
|
1304
|
-
} = useDesignSystemFlags();
|
|
1305
|
-
const component = USE_NEW_ICONS ? SvgChevronDownIconV2 : SvgChevronDownIconV1;
|
|
1306
|
-
return jsx(Icon, {
|
|
1307
|
-
...props,
|
|
1308
|
-
component: component
|
|
1309
|
-
});
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
1230
|
function SvgChevronLeftIconV1(props) {
|
|
1313
1231
|
return jsx("svg", {
|
|
1314
1232
|
width: "1em",
|
|
@@ -1560,47 +1478,6 @@ function ClockIcon(props) {
|
|
|
1560
1478
|
});
|
|
1561
1479
|
}
|
|
1562
1480
|
|
|
1563
|
-
function SvgCloseIconV1(props) {
|
|
1564
|
-
return jsx("svg", {
|
|
1565
|
-
width: "1em",
|
|
1566
|
-
height: "1em",
|
|
1567
|
-
viewBox: "0 0 24 24",
|
|
1568
|
-
fill: "none",
|
|
1569
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1570
|
-
...props,
|
|
1571
|
-
children: jsx("path", {
|
|
1572
|
-
d: "M7.707 6.293a1 1 0 00-1.414 1.414L10.586 12l-4.293 4.293a1 1 0 101.414 1.414L12 13.414l4.293 4.293a1 1 0 001.414-1.414L13.414 12l4.293-4.293a1 1 0 00-1.414-1.414L12 10.586 7.707 6.293z",
|
|
1573
|
-
fill: "currentColor"
|
|
1574
|
-
})
|
|
1575
|
-
});
|
|
1576
|
-
}
|
|
1577
|
-
function SvgCloseIconV2(props) {
|
|
1578
|
-
return jsx("svg", {
|
|
1579
|
-
width: "1em",
|
|
1580
|
-
height: "1em",
|
|
1581
|
-
viewBox: "0 0 16 16",
|
|
1582
|
-
fill: "none",
|
|
1583
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1584
|
-
...props,
|
|
1585
|
-
children: jsx("path", {
|
|
1586
|
-
fillRule: "evenodd",
|
|
1587
|
-
clipRule: "evenodd",
|
|
1588
|
-
d: "M6.97 8.03L2 3.06 3.06 2l4.97 4.97L13 2l1.06 1.06-4.969 4.97 4.97 4.97L13 14.06 8.03 9.092l-4.97 4.97L2 13l4.97-4.97z",
|
|
1589
|
-
fill: "currentColor"
|
|
1590
|
-
})
|
|
1591
|
-
});
|
|
1592
|
-
}
|
|
1593
|
-
function CloseIcon(props) {
|
|
1594
|
-
const {
|
|
1595
|
-
USE_NEW_ICONS
|
|
1596
|
-
} = useDesignSystemFlags();
|
|
1597
|
-
const component = USE_NEW_ICONS ? SvgCloseIconV2 : SvgCloseIconV1;
|
|
1598
|
-
return jsx(Icon, {
|
|
1599
|
-
...props,
|
|
1600
|
-
component: component
|
|
1601
|
-
});
|
|
1602
|
-
}
|
|
1603
|
-
|
|
1604
1481
|
function SvgCloudDownloadIconV1(props) {
|
|
1605
1482
|
return jsx("svg", {
|
|
1606
1483
|
width: "1em",
|
|
@@ -1940,7 +1817,7 @@ function SvgDangerFillIconV2(props) {
|
|
|
1940
1817
|
children: jsx("path", {
|
|
1941
1818
|
fillRule: "evenodd",
|
|
1942
1819
|
clipRule: "evenodd",
|
|
1943
|
-
d: "
|
|
1820
|
+
d: "M15.78 11.533l-4.242 4.243a.75.75 0 01-.53.22H4.996a.75.75 0 01-.53-.22L.224 11.533a.75.75 0 01-.22-.53v-6.01a.75.75 0 01.22-.53L4.467.22a.75.75 0 01.53-.22h6.01a.75.75 0 01.53.22l4.243 4.242c.141.141.22.332.22.53v6.011a.75.75 0 01-.22.53zm-8.528-.785a.75.75 0 101.5 0 .75.75 0 00-1.5 0zm1.5-5.75v4h-1.5v-4h1.5z",
|
|
1944
1821
|
fill: "currentColor"
|
|
1945
1822
|
})
|
|
1946
1823
|
});
|
|
@@ -1981,12 +1858,12 @@ function SvgDangerIconV2(props) {
|
|
|
1981
1858
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1982
1859
|
...props,
|
|
1983
1860
|
children: [jsx("path", {
|
|
1984
|
-
d: "M7.
|
|
1861
|
+
d: "M7.248 10.748a.75.75 0 101.5 0 .75.75 0 00-1.5 0zM8.748 4.998v4h-1.5v-4h1.5z",
|
|
1985
1862
|
fill: "currentColor"
|
|
1986
1863
|
}), jsx("path", {
|
|
1987
1864
|
fillRule: "evenodd",
|
|
1988
1865
|
clipRule: "evenodd",
|
|
1989
|
-
d: "
|
|
1866
|
+
d: "M11.533 15.776l4.243-4.243a.75.75 0 00.22-.53v-6.01a.75.75 0 00-.22-.53L11.533.22a.75.75 0 00-.53-.22h-6.01a.75.75 0 00-.53.22L.22 4.462a.75.75 0 00-.22.53v6.011c0 .199.079.39.22.53l4.242 4.243c.141.14.332.22.53.22h6.011a.75.75 0 00.53-.22zm2.963-10.473v5.39l-3.804 3.803H5.303L1.5 10.692V5.303L5.303 1.5h5.39l3.803 3.803z",
|
|
1990
1867
|
fill: "currentColor"
|
|
1991
1868
|
})]
|
|
1992
1869
|
});
|
|
@@ -3808,49 +3685,6 @@ function ListIcon(props) {
|
|
|
3808
3685
|
});
|
|
3809
3686
|
}
|
|
3810
3687
|
|
|
3811
|
-
function SvgLoadingIconV1(props) {
|
|
3812
|
-
return jsx("svg", {
|
|
3813
|
-
width: "1em",
|
|
3814
|
-
height: "1em",
|
|
3815
|
-
viewBox: "0 0 24 24",
|
|
3816
|
-
fill: "none",
|
|
3817
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3818
|
-
...props,
|
|
3819
|
-
children: jsx("path", {
|
|
3820
|
-
fillRule: "evenodd",
|
|
3821
|
-
clipRule: "evenodd",
|
|
3822
|
-
d: "M23.212 12a.788.788 0 01-.789-.788 9.57 9.57 0 00-.757-3.751 9.662 9.662 0 00-5.129-5.129 9.587 9.587 0 00-3.749-.755.788.788 0 010-1.577c1.513 0 2.983.296 4.365.882a11.128 11.128 0 013.562 2.403 11.157 11.157 0 013.283 7.927.785.785 0 01-.786.788z",
|
|
3823
|
-
fill: "currentColor"
|
|
3824
|
-
})
|
|
3825
|
-
});
|
|
3826
|
-
}
|
|
3827
|
-
function SvgLoadingIconV2(props) {
|
|
3828
|
-
return jsx("svg", {
|
|
3829
|
-
width: "1em",
|
|
3830
|
-
height: "1em",
|
|
3831
|
-
viewBox: "0 0 24 24",
|
|
3832
|
-
fill: "none",
|
|
3833
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3834
|
-
...props,
|
|
3835
|
-
children: jsx("path", {
|
|
3836
|
-
fillRule: "evenodd",
|
|
3837
|
-
clipRule: "evenodd",
|
|
3838
|
-
d: "M23.212 12a.788.788 0 01-.789-.788 9.57 9.57 0 00-.757-3.751 9.662 9.662 0 00-5.129-5.129 9.587 9.587 0 00-3.749-.755.788.788 0 010-1.577c1.513 0 2.983.296 4.365.882a11.128 11.128 0 013.562 2.403 11.157 11.157 0 013.283 7.927.785.785 0 01-.786.788z",
|
|
3839
|
-
fill: "currentColor"
|
|
3840
|
-
})
|
|
3841
|
-
});
|
|
3842
|
-
}
|
|
3843
|
-
function LoadingIcon(props) {
|
|
3844
|
-
const {
|
|
3845
|
-
USE_NEW_ICONS
|
|
3846
|
-
} = useDesignSystemFlags();
|
|
3847
|
-
const component = USE_NEW_ICONS ? SvgLoadingIconV2 : SvgLoadingIconV1;
|
|
3848
|
-
return jsx(Icon, {
|
|
3849
|
-
...props,
|
|
3850
|
-
component: component
|
|
3851
|
-
});
|
|
3852
|
-
}
|
|
3853
|
-
|
|
3854
3688
|
function SvgLockFillIconV1(props) {
|
|
3855
3689
|
return jsx("svg", {
|
|
3856
3690
|
width: "1em",
|
|
@@ -5536,60 +5370,6 @@ function SchoolIcon(props) {
|
|
|
5536
5370
|
});
|
|
5537
5371
|
}
|
|
5538
5372
|
|
|
5539
|
-
function SvgSearchIconV1(props) {
|
|
5540
|
-
return jsx("svg", {
|
|
5541
|
-
width: "1em",
|
|
5542
|
-
height: "1em",
|
|
5543
|
-
viewBox: "0 0 24 24",
|
|
5544
|
-
fill: "none",
|
|
5545
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5546
|
-
...props,
|
|
5547
|
-
children: jsx("path", {
|
|
5548
|
-
fillRule: "evenodd",
|
|
5549
|
-
clipRule: "evenodd",
|
|
5550
|
-
d: "M15.187 14.472h.79l4.24 4.26c.41.41.41 1.08 0 1.49-.41.41-1.08.41-1.49 0l-4.25-4.25v-.79l-.27-.28a6.5 6.5 0 01-5.34 1.48c-2.78-.47-5-2.79-5.34-5.59a6.505 6.505 0 017.27-7.27c2.8.34 5.12 2.56 5.59 5.34a6.5 6.5 0 01-1.48 5.34l.28.27zm-9.71-4.5c0 2.49 2.01 4.5 4.5 4.5s4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5-4.5 2.01-4.5 4.5z",
|
|
5551
|
-
fill: "currentColor"
|
|
5552
|
-
})
|
|
5553
|
-
});
|
|
5554
|
-
}
|
|
5555
|
-
function SvgSearchIconV2(props) {
|
|
5556
|
-
return jsxs("svg", {
|
|
5557
|
-
width: "1em",
|
|
5558
|
-
height: "1em",
|
|
5559
|
-
viewBox: "0 0 16 16",
|
|
5560
|
-
fill: "none",
|
|
5561
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5562
|
-
...props,
|
|
5563
|
-
children: [jsx("g", {
|
|
5564
|
-
clipPath: "url(#SearchIcon_svg__clip0_13123_34883)",
|
|
5565
|
-
children: jsx("path", {
|
|
5566
|
-
fillRule: "evenodd",
|
|
5567
|
-
clipRule: "evenodd",
|
|
5568
|
-
d: "M8 1a7 7 0 104.39 12.453l2.55 2.55 1.06-1.06-2.55-2.55A7 7 0 008 1zM2.5 8a5.5 5.5 0 1111 0 5.5 5.5 0 01-11 0z",
|
|
5569
|
-
fill: "currentColor"
|
|
5570
|
-
})
|
|
5571
|
-
}), jsx("defs", {
|
|
5572
|
-
children: jsx("clipPath", {
|
|
5573
|
-
id: "SearchIcon_svg__clip0_13123_34883",
|
|
5574
|
-
children: jsx("path", {
|
|
5575
|
-
fill: "#fff",
|
|
5576
|
-
d: "M0 0h16v16H0z"
|
|
5577
|
-
})
|
|
5578
|
-
})
|
|
5579
|
-
})]
|
|
5580
|
-
});
|
|
5581
|
-
}
|
|
5582
|
-
function SearchIcon(props) {
|
|
5583
|
-
const {
|
|
5584
|
-
USE_NEW_ICONS
|
|
5585
|
-
} = useDesignSystemFlags();
|
|
5586
|
-
const component = USE_NEW_ICONS ? SvgSearchIconV2 : SvgSearchIconV1;
|
|
5587
|
-
return jsx(Icon, {
|
|
5588
|
-
...props,
|
|
5589
|
-
component: component
|
|
5590
|
-
});
|
|
5591
|
-
}
|
|
5592
|
-
|
|
5593
5373
|
function SvgSecurityIconV1(props) {
|
|
5594
5374
|
return jsx("svg", {
|
|
5595
5375
|
width: "1em",
|
|
@@ -6934,49 +6714,6 @@ function WarningIcon(props) {
|
|
|
6934
6714
|
});
|
|
6935
6715
|
}
|
|
6936
6716
|
|
|
6937
|
-
function SvgXCircleFillIconV1(props) {
|
|
6938
|
-
return jsx("svg", {
|
|
6939
|
-
width: "1em",
|
|
6940
|
-
height: "1em",
|
|
6941
|
-
viewBox: "0 0 24 24",
|
|
6942
|
-
fill: "none",
|
|
6943
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6944
|
-
...props,
|
|
6945
|
-
children: jsx("path", {
|
|
6946
|
-
fillRule: "evenodd",
|
|
6947
|
-
clipRule: "evenodd",
|
|
6948
|
-
d: "M2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12zm11.414 0l2.122-2.121a1.003 1.003 0 000-1.415 1.003 1.003 0 00-1.415 0L12 10.586 9.879 8.464a1.003 1.003 0 00-1.415 0 1.003 1.003 0 000 1.415L10.586 12l-2.122 2.121a1.003 1.003 0 000 1.415 1.003 1.003 0 001.415 0L12 13.414l2.121 2.122a1.003 1.003 0 001.415 0 1.003 1.003 0 000-1.415L13.414 12z",
|
|
6949
|
-
fill: "currentColor"
|
|
6950
|
-
})
|
|
6951
|
-
});
|
|
6952
|
-
}
|
|
6953
|
-
function SvgXCircleFillIconV2(props) {
|
|
6954
|
-
return jsx("svg", {
|
|
6955
|
-
width: "1em",
|
|
6956
|
-
height: "1em",
|
|
6957
|
-
viewBox: "0 0 16 16",
|
|
6958
|
-
fill: "none",
|
|
6959
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6960
|
-
...props,
|
|
6961
|
-
children: jsx("path", {
|
|
6962
|
-
fillRule: "evenodd",
|
|
6963
|
-
clipRule: "evenodd",
|
|
6964
|
-
d: "M8 16A8 8 0 108 0a8 8 0 000 16zm1.97-4.97L8 9.06l-1.97 1.97-1.06-1.06L6.94 8 4.97 6.03l1.06-1.06L8 6.94l1.97-1.97 1.06 1.06L9.06 8l1.97 1.97-1.06 1.06z",
|
|
6965
|
-
fill: "currentColor"
|
|
6966
|
-
})
|
|
6967
|
-
});
|
|
6968
|
-
}
|
|
6969
|
-
function XCircleFillIcon(props) {
|
|
6970
|
-
const {
|
|
6971
|
-
USE_NEW_ICONS
|
|
6972
|
-
} = useDesignSystemFlags();
|
|
6973
|
-
const component = USE_NEW_ICONS ? SvgXCircleFillIconV2 : SvgXCircleFillIconV1;
|
|
6974
|
-
return jsx(Icon, {
|
|
6975
|
-
...props,
|
|
6976
|
-
component: component
|
|
6977
|
-
});
|
|
6978
|
-
}
|
|
6979
|
-
|
|
6980
6717
|
function SvgXCircleIconV1(props) {
|
|
6981
6718
|
return jsx("svg", {
|
|
6982
6719
|
width: "1em",
|
|
@@ -7228,6 +6965,40 @@ function BracketsSquareIcon(props) {
|
|
|
7228
6965
|
});
|
|
7229
6966
|
}
|
|
7230
6967
|
|
|
6968
|
+
function SvgBracketsXIcon(props) {
|
|
6969
|
+
return jsxs("svg", {
|
|
6970
|
+
width: "1em",
|
|
6971
|
+
height: "1em",
|
|
6972
|
+
viewBox: "0 0 16 16",
|
|
6973
|
+
fill: "none",
|
|
6974
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6975
|
+
...props,
|
|
6976
|
+
children: [jsxs("g", {
|
|
6977
|
+
clipPath: "url(#BracketsXIcon_svg__clip0_14891_29556)",
|
|
6978
|
+
fill: "currentColor",
|
|
6979
|
+
children: [jsx("path", {
|
|
6980
|
+
d: "M1.75 4.75A2.75 2.75 0 014.5 2H5v1.5h-.5c-.69 0-1.25.56-1.25 1.25v1c0 .93-.462 1.752-1.168 2.25a2.747 2.747 0 011.168 2.25v1c0 .69.56 1.25 1.25 1.25H5V14h-.5a2.75 2.75 0 01-2.75-2.75v-1C1.75 9.56 1.19 9 .5 9H0V7h.5c.69 0 1.25-.56 1.25-1.25v-1zM11.5 2a2.75 2.75 0 012.75 2.75v1c0 .69.56 1.25 1.25 1.25h.5v2h-.5c-.69 0-1.25.56-1.25 1.25v1A2.75 2.75 0 0111.5 14H11v-1.5h.5c.69 0 1.25-.56 1.25-1.25v-1c0-.93.462-1.752 1.168-2.25a2.747 2.747 0 01-1.168-2.25v-1c0-.69-.56-1.25-1.25-1.25H11V2h.5z"
|
|
6981
|
+
}), jsx("path", {
|
|
6982
|
+
d: "M4.97 6.03L6.94 8 4.97 9.97l1.06 1.06L8 9.06l1.97 1.97 1.06-1.06L9.06 8l1.97-1.97-1.06-1.06L8 6.94 6.03 4.97 4.97 6.03z"
|
|
6983
|
+
})]
|
|
6984
|
+
}), jsx("defs", {
|
|
6985
|
+
children: jsx("clipPath", {
|
|
6986
|
+
id: "BracketsXIcon_svg__clip0_14891_29556",
|
|
6987
|
+
children: jsx("path", {
|
|
6988
|
+
fill: "#fff",
|
|
6989
|
+
d: "M0 0h16v16H0z"
|
|
6990
|
+
})
|
|
6991
|
+
})
|
|
6992
|
+
})]
|
|
6993
|
+
});
|
|
6994
|
+
}
|
|
6995
|
+
function BracketsXIcon(props) {
|
|
6996
|
+
return jsx(Icon, {
|
|
6997
|
+
...props,
|
|
6998
|
+
component: SvgBracketsXIcon
|
|
6999
|
+
});
|
|
7000
|
+
}
|
|
7001
|
+
|
|
7231
7002
|
function SvgCatalogIcon(props) {
|
|
7232
7003
|
return jsx("svg", {
|
|
7233
7004
|
width: "1em",
|
|
@@ -7298,8 +7069,34 @@ function CloudKeyIcon(props) {
|
|
|
7298
7069
|
});
|
|
7299
7070
|
}
|
|
7300
7071
|
|
|
7301
|
-
function
|
|
7302
|
-
return
|
|
7072
|
+
function SvgCloudModelIcon(props) {
|
|
7073
|
+
return jsxs("svg", {
|
|
7074
|
+
width: "1em",
|
|
7075
|
+
height: "1em",
|
|
7076
|
+
viewBox: "0 0 16 16",
|
|
7077
|
+
fill: "none",
|
|
7078
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7079
|
+
...props,
|
|
7080
|
+
children: [jsx("path", {
|
|
7081
|
+
d: "M3.394 5.586a4.752 4.752 0 019.351.946A3.754 3.754 0 0115.787 9H14.12a2.248 2.248 0 00-1.871-1H12a.75.75 0 01-.75-.75v-.5a3.25 3.25 0 00-6.476-.402.75.75 0 01-.697.657A2.75 2.75 0 004 12.49V14a.75.75 0 01-.179-.021 4.25 4.25 0 01-.427-8.393z",
|
|
7082
|
+
fill: "currentColor"
|
|
7083
|
+
}), jsx("path", {
|
|
7084
|
+
fillRule: "evenodd",
|
|
7085
|
+
clipRule: "evenodd",
|
|
7086
|
+
d: "M8 7a2.25 2.25 0 012.03 3.22l.5.5a2.25 2.25 0 11-1.06 1.06l-.5-.5A2.25 2.25 0 118 7zm.75 2.25a.75.75 0 10-1.5 0 .75.75 0 001.5 0zm3.5 3.5a.75.75 0 10-1.5 0 .75.75 0 001.5 0z",
|
|
7087
|
+
fill: "currentColor"
|
|
7088
|
+
})]
|
|
7089
|
+
});
|
|
7090
|
+
}
|
|
7091
|
+
function CloudModelIcon(props) {
|
|
7092
|
+
return jsx(Icon, {
|
|
7093
|
+
...props,
|
|
7094
|
+
component: SvgCloudModelIcon
|
|
7095
|
+
});
|
|
7096
|
+
}
|
|
7097
|
+
|
|
7098
|
+
function SvgColorFillIcon(props) {
|
|
7099
|
+
return jsx("svg", {
|
|
7303
7100
|
width: "1em",
|
|
7304
7101
|
height: "1em",
|
|
7305
7102
|
viewBox: "0 0 16 16",
|
|
@@ -7347,6 +7144,126 @@ function ConnectIcon(props) {
|
|
|
7347
7144
|
});
|
|
7348
7145
|
}
|
|
7349
7146
|
|
|
7147
|
+
function SvgCursorIcon(props) {
|
|
7148
|
+
return jsxs("svg", {
|
|
7149
|
+
width: "1em",
|
|
7150
|
+
height: "1em",
|
|
7151
|
+
viewBox: "0 0 16 16",
|
|
7152
|
+
fill: "none",
|
|
7153
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7154
|
+
...props,
|
|
7155
|
+
children: [jsx("g", {
|
|
7156
|
+
clipPath: "url(#CursorIcon_svg__clip0_14914_35410)",
|
|
7157
|
+
children: jsx("path", {
|
|
7158
|
+
fillRule: "evenodd",
|
|
7159
|
+
clipRule: "evenodd",
|
|
7160
|
+
d: "M1.22 1.22a.75.75 0 01.802-.169l13.5 5.25a.75.75 0 01-.043 1.413L9.597 9.597l-1.883 5.882a.75.75 0 01-1.413.043l-5.25-13.5a.75.75 0 01.169-.802zm1.847 1.847l3.864 9.937 1.355-4.233a.75.75 0 01.485-.485l4.233-1.355-9.937-3.864z",
|
|
7161
|
+
fill: "currentColor"
|
|
7162
|
+
})
|
|
7163
|
+
}), jsx("defs", {
|
|
7164
|
+
children: jsx("clipPath", {
|
|
7165
|
+
id: "CursorIcon_svg__clip0_14914_35410",
|
|
7166
|
+
children: jsx("path", {
|
|
7167
|
+
fill: "#fff",
|
|
7168
|
+
transform: "matrix(-1 0 0 1 16 0)",
|
|
7169
|
+
d: "M0 0h16v16H0z"
|
|
7170
|
+
})
|
|
7171
|
+
})
|
|
7172
|
+
})]
|
|
7173
|
+
});
|
|
7174
|
+
}
|
|
7175
|
+
function CursorIcon(props) {
|
|
7176
|
+
return jsx(Icon, {
|
|
7177
|
+
...props,
|
|
7178
|
+
component: SvgCursorIcon
|
|
7179
|
+
});
|
|
7180
|
+
}
|
|
7181
|
+
|
|
7182
|
+
function SvgDagIcon(props) {
|
|
7183
|
+
return jsx("svg", {
|
|
7184
|
+
width: "1em",
|
|
7185
|
+
height: "1em",
|
|
7186
|
+
viewBox: "0 0 16 16",
|
|
7187
|
+
fill: "none",
|
|
7188
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7189
|
+
...props,
|
|
7190
|
+
children: jsx("path", {
|
|
7191
|
+
fillRule: "evenodd",
|
|
7192
|
+
clipRule: "evenodd",
|
|
7193
|
+
d: "M8 1.75A.75.75 0 018.75 1h5.5a.75.75 0 01.75.75v3.5a.75.75 0 01-.75.75h-5.5A.75.75 0 018 5.25v-1H5.5c-.69 0-1.25.56-1.25 1.25h2a.75.75 0 01.75.75v3.5a.75.75 0 01-.75.75h-2c0 .69.56 1.25 1.25 1.25H8v-1a.75.75 0 01.75-.75h5.5a.75.75 0 01.75.75v3.5a.75.75 0 01-.75.75h-5.5a.75.75 0 01-.75-.75v-1H5.5a2.75 2.75 0 01-2.75-2.75h-2A.75.75 0 010 9.75v-3.5a.75.75 0 01.75-.75h2A2.75 2.75 0 015.5 2.75H8v-1zm1.5.75v2h4v-2h-4zM1.5 9V7h4v2h-4zm8 4.5v-2h4v2h-4z",
|
|
7194
|
+
fill: "currentColor"
|
|
7195
|
+
})
|
|
7196
|
+
});
|
|
7197
|
+
}
|
|
7198
|
+
function DagIcon(props) {
|
|
7199
|
+
return jsx(Icon, {
|
|
7200
|
+
...props,
|
|
7201
|
+
component: SvgDagIcon
|
|
7202
|
+
});
|
|
7203
|
+
}
|
|
7204
|
+
|
|
7205
|
+
function SvgDecimalIcon(props) {
|
|
7206
|
+
return jsxs("svg", {
|
|
7207
|
+
width: "1em",
|
|
7208
|
+
height: "1em",
|
|
7209
|
+
viewBox: "0 0 16 16",
|
|
7210
|
+
fill: "none",
|
|
7211
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7212
|
+
...props,
|
|
7213
|
+
children: [jsx("path", {
|
|
7214
|
+
fillRule: "evenodd",
|
|
7215
|
+
clipRule: "evenodd",
|
|
7216
|
+
d: "M3 10a3 3 0 106 0V6a3 3 0 00-6 0v4zm3 1.5A1.5 1.5 0 014.5 10V6a1.5 1.5 0 113 0v4A1.5 1.5 0 016 11.5zM10 10a3 3 0 106 0V6a3 3 0 10-6 0v4zm3 1.5a1.5 1.5 0 01-1.5-1.5V6a1.5 1.5 0 013 0v4a1.5 1.5 0 01-1.5 1.5z",
|
|
7217
|
+
fill: "currentColor"
|
|
7218
|
+
}), jsx("path", {
|
|
7219
|
+
d: "M1 13a1 1 0 100-2 1 1 0 000 2z",
|
|
7220
|
+
fill: "currentColor"
|
|
7221
|
+
})]
|
|
7222
|
+
});
|
|
7223
|
+
}
|
|
7224
|
+
function DecimalIcon(props) {
|
|
7225
|
+
return jsx(Icon, {
|
|
7226
|
+
...props,
|
|
7227
|
+
component: SvgDecimalIcon
|
|
7228
|
+
});
|
|
7229
|
+
}
|
|
7230
|
+
|
|
7231
|
+
function SvgDotsCircleIcon(props) {
|
|
7232
|
+
return jsxs("svg", {
|
|
7233
|
+
width: "1em",
|
|
7234
|
+
height: "1em",
|
|
7235
|
+
viewBox: "0 0 16 16",
|
|
7236
|
+
fill: "none",
|
|
7237
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7238
|
+
...props,
|
|
7239
|
+
children: [jsxs("g", {
|
|
7240
|
+
clipPath: "url(#DotsCircleIcon_svg__clip0_14891_29603)",
|
|
7241
|
+
fill: "currentColor",
|
|
7242
|
+
children: [jsx("path", {
|
|
7243
|
+
d: "M6 8a.75.75 0 11-1.5 0A.75.75 0 016 8zM8 8.75a.75.75 0 100-1.5.75.75 0 000 1.5zM10.75 8.75a.75.75 0 100-1.5.75.75 0 000 1.5z"
|
|
7244
|
+
}), jsx("path", {
|
|
7245
|
+
fillRule: "evenodd",
|
|
7246
|
+
clipRule: "evenodd",
|
|
7247
|
+
d: "M8 0a8 8 0 100 16A8 8 0 008 0zM1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0z"
|
|
7248
|
+
})]
|
|
7249
|
+
}), jsx("defs", {
|
|
7250
|
+
children: jsx("clipPath", {
|
|
7251
|
+
id: "DotsCircleIcon_svg__clip0_14891_29603",
|
|
7252
|
+
children: jsx("path", {
|
|
7253
|
+
fill: "#fff",
|
|
7254
|
+
d: "M0 0h16v16H0z"
|
|
7255
|
+
})
|
|
7256
|
+
})
|
|
7257
|
+
})]
|
|
7258
|
+
});
|
|
7259
|
+
}
|
|
7260
|
+
function DotsCircleIcon(props) {
|
|
7261
|
+
return jsx(Icon, {
|
|
7262
|
+
...props,
|
|
7263
|
+
component: SvgDotsCircleIcon
|
|
7264
|
+
});
|
|
7265
|
+
}
|
|
7266
|
+
|
|
7350
7267
|
function SvgFontIcon(props) {
|
|
7351
7268
|
return jsxs("svg", {
|
|
7352
7269
|
width: "1em",
|
|
@@ -7427,6 +7344,32 @@ function ItalicIcon(props) {
|
|
|
7427
7344
|
});
|
|
7428
7345
|
}
|
|
7429
7346
|
|
|
7347
|
+
function SvgLettersIcon(props) {
|
|
7348
|
+
return jsxs("svg", {
|
|
7349
|
+
width: "1em",
|
|
7350
|
+
height: "1em",
|
|
7351
|
+
viewBox: "0 0 16 16",
|
|
7352
|
+
fill: "none",
|
|
7353
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7354
|
+
...props,
|
|
7355
|
+
children: [jsx("path", {
|
|
7356
|
+
fillRule: "evenodd",
|
|
7357
|
+
clipRule: "evenodd",
|
|
7358
|
+
d: "M6.25 1h2.174a2.126 2.126 0 011.81 3.243 2.126 2.126 0 01-1.36 3.761H6.25a.75.75 0 01-.75-.75V1.75A.75.75 0 016.25 1zM7 6.504V5.252h1.874a.626.626 0 110 1.252H7zm2.05-3.378c0 .345-.28.625-.625.626H7.001L7 2.5h1.424c.346 0 .626.28.626.626zM3.307 6a.75.75 0 01.697.473L6.596 13H4.982l-.238-.6H1.855l-.24.6H0l2.61-6.528A.75.75 0 013.307 6zm-.003 2.776l.844 2.124H2.455l.85-2.124z",
|
|
7359
|
+
fill: "currentColor"
|
|
7360
|
+
}), jsx("path", {
|
|
7361
|
+
d: "M12.5 15a2.5 2.5 0 002.5-2.5h-1.5a1 1 0 11-2 0v-1.947c0-.582.472-1.053 1.053-1.053.523 0 .947.424.947.947v.053H15v-.053A2.447 2.447 0 0012.553 8 2.553 2.553 0 0010 10.553V12.5a2.5 2.5 0 002.5 2.5z",
|
|
7362
|
+
fill: "currentColor"
|
|
7363
|
+
})]
|
|
7364
|
+
});
|
|
7365
|
+
}
|
|
7366
|
+
function LettersIcon(props) {
|
|
7367
|
+
return jsx(Icon, {
|
|
7368
|
+
...props,
|
|
7369
|
+
component: SvgLettersIcon
|
|
7370
|
+
});
|
|
7371
|
+
}
|
|
7372
|
+
|
|
7430
7373
|
function SvgMenuIcon(props) {
|
|
7431
7374
|
return jsx("svg", {
|
|
7432
7375
|
width: "1em",
|
|
@@ -7473,7 +7416,7 @@ function NotificationOffIcon(props) {
|
|
|
7473
7416
|
});
|
|
7474
7417
|
}
|
|
7475
7418
|
|
|
7476
|
-
function
|
|
7419
|
+
function SvgNumbersIcon(props) {
|
|
7477
7420
|
return jsx("svg", {
|
|
7478
7421
|
width: "1em",
|
|
7479
7422
|
height: "1em",
|
|
@@ -7482,21 +7425,19 @@ function SvgPlugIcon(props) {
|
|
|
7482
7425
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7483
7426
|
...props,
|
|
7484
7427
|
children: jsx("path", {
|
|
7485
|
-
|
|
7486
|
-
clipRule: "evenodd",
|
|
7487
|
-
d: "M14.168 2.953l.893-.892L14 1l-.893.893a4.001 4.001 0 00-5.077.48l-.884.884a.75.75 0 000 1.061l4.597 4.596a.75.75 0 001.06 0l.884-.884a4.001 4.001 0 00.48-5.077zM12.627 6.97l-.354.353-3.536-3.535.354-.354a2.5 2.5 0 113.536 3.536zM7.323 10.152L5.91 8.737l1.414-1.414-1.06-1.06-1.415 1.414-.53-.53a.75.75 0 00-1.06 0l-.885.883a4.001 4.001 0 00-.48 5.077L1 14l1.06 1.06.893-.892a4.001 4.001 0 005.077-.48l.884-.885a.75.75 0 000-1.06l-.53-.53 1.414-1.415-1.06-1.06-1.415 1.414zm-3.889 2.475a2.5 2.5 0 003.536 0l.353-.354-3.535-3.536-.354.354a2.5 2.5 0 000 3.536z",
|
|
7428
|
+
d: "M7.889 1A2.389 2.389 0 005.5 3.389H7c0-.491.398-.889.889-.889h.371a.74.74 0 01.292 1.42l-1.43.613A2.675 2.675 0 005.5 6.992V8h5V6.5H7.108c.12-.26.331-.472.604-.588l1.43-.613A2.24 2.24 0 008.26 1H7.89zM2.75 6a1.5 1.5 0 01-1.5 1.5H1V9h.25c.546 0 1.059-.146 1.5-.401V11.5H1V13h5v-1.5H4.25V6h-1.5zM10 12.85A2.15 2.15 0 0012.15 15h.725a2.125 2.125 0 001.617-3.504 2.138 2.138 0 00-1.656-3.521l-.713.008A2.15 2.15 0 0010 10.133v.284h1.5v-.284a.65.65 0 01.642-.65l.712-.009a.638.638 0 11.008 1.276H12v1.5h.875a.625.625 0 110 1.25h-.725a.65.65 0 01-.65-.65v-.267H10v.267z",
|
|
7488
7429
|
fill: "currentColor"
|
|
7489
7430
|
})
|
|
7490
7431
|
});
|
|
7491
7432
|
}
|
|
7492
|
-
function
|
|
7433
|
+
function NumbersIcon(props) {
|
|
7493
7434
|
return jsx(Icon, {
|
|
7494
7435
|
...props,
|
|
7495
|
-
component:
|
|
7436
|
+
component: SvgNumbersIcon
|
|
7496
7437
|
});
|
|
7497
7438
|
}
|
|
7498
7439
|
|
|
7499
|
-
function
|
|
7440
|
+
function SvgPlugIcon(props) {
|
|
7500
7441
|
return jsx("svg", {
|
|
7501
7442
|
width: "1em",
|
|
7502
7443
|
height: "1em",
|
|
@@ -7505,15 +7446,17 @@ function SvgRefresh(props) {
|
|
|
7505
7446
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7506
7447
|
...props,
|
|
7507
7448
|
children: jsx("path", {
|
|
7508
|
-
|
|
7449
|
+
fillRule: "evenodd",
|
|
7450
|
+
clipRule: "evenodd",
|
|
7451
|
+
d: "M14.168 2.953l.893-.892L14 1l-.893.893a4.001 4.001 0 00-5.077.48l-.884.884a.75.75 0 000 1.061l4.597 4.596a.75.75 0 001.06 0l.884-.884a4.001 4.001 0 00.48-5.077zM12.627 6.97l-.354.353-3.536-3.535.354-.354a2.5 2.5 0 113.536 3.536zM7.323 10.152L5.91 8.737l1.414-1.414-1.06-1.06-1.415 1.414-.53-.53a.75.75 0 00-1.06 0l-.885.883a4.001 4.001 0 00-.48 5.077L1 14l1.06 1.06.893-.892a4.001 4.001 0 005.077-.48l.884-.885a.75.75 0 000-1.06l-.53-.53 1.414-1.415-1.06-1.06-1.415 1.414zm-3.889 2.475a2.5 2.5 0 003.536 0l.353-.354-3.535-3.536-.354.354a2.5 2.5 0 000 3.536z",
|
|
7509
7452
|
fill: "currentColor"
|
|
7510
7453
|
})
|
|
7511
7454
|
});
|
|
7512
7455
|
}
|
|
7513
|
-
function
|
|
7456
|
+
function PlugIcon(props) {
|
|
7514
7457
|
return jsx(Icon, {
|
|
7515
7458
|
...props,
|
|
7516
|
-
component:
|
|
7459
|
+
component: SvgPlugIcon
|
|
7517
7460
|
});
|
|
7518
7461
|
}
|
|
7519
7462
|
|
|
@@ -7770,7 +7713,7 @@ const Accordion = /* #__PURE__ */(() => {
|
|
|
7770
7713
|
// TODO: Replace with custom icons
|
|
7771
7714
|
// TODO: Reuse in Alert
|
|
7772
7715
|
const filledIconsMap = {
|
|
7773
|
-
error:
|
|
7716
|
+
error: DangerFillIcon,
|
|
7774
7717
|
warning: WarningFillIcon,
|
|
7775
7718
|
success: CheckCircleFillIcon,
|
|
7776
7719
|
info: InfoFillIcon
|
|
@@ -7923,6 +7866,9 @@ const AutoComplete = /* #__PURE__ */(() => {
|
|
|
7923
7866
|
} = useDesignSystemTheme();
|
|
7924
7867
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
7925
7868
|
children: jsx(AutoComplete$1, {
|
|
7869
|
+
dropdownStyle: {
|
|
7870
|
+
boxShadow: theme.general.shadowLow
|
|
7871
|
+
},
|
|
7926
7872
|
...props,
|
|
7927
7873
|
...dangerouslySetAntdProps,
|
|
7928
7874
|
css: /*#__PURE__*/css(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:AutoComplete;")
|
|
@@ -7993,484 +7939,51 @@ const Breadcrumb = /* #__PURE__ */(() => {
|
|
|
7993
7939
|
return Breadcrumb;
|
|
7994
7940
|
})();
|
|
7995
7941
|
|
|
7996
|
-
function
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
borderColor: theme.colors.actionDefaultBorderPress,
|
|
8010
|
-
color: theme.colors.actionDefaultTextPress
|
|
8011
|
-
}
|
|
8012
|
-
};
|
|
8013
|
-
}
|
|
8014
|
-
function getPrimaryStyles(theme) {
|
|
8015
|
-
return {
|
|
8016
|
-
backgroundColor: theme.colors.actionPrimaryBackgroundDefault,
|
|
8017
|
-
borderColor: 'transparent',
|
|
8018
|
-
color: theme.colors.actionPrimaryTextDefault,
|
|
8019
|
-
textShadow: 'none',
|
|
8020
|
-
'&:hover': {
|
|
8021
|
-
backgroundColor: theme.colors.actionPrimaryBackgroundHover,
|
|
8022
|
-
borderColor: 'transparent',
|
|
8023
|
-
color: theme.colors.actionPrimaryTextHover
|
|
8024
|
-
},
|
|
8025
|
-
'&:active': {
|
|
8026
|
-
backgroundColor: theme.colors.actionPrimaryBackgroundPress,
|
|
8027
|
-
borderColor: 'transparent',
|
|
8028
|
-
color: theme.colors.actionPrimaryTextPress
|
|
8029
|
-
}
|
|
8030
|
-
};
|
|
8031
|
-
}
|
|
8032
|
-
function getLinkStyles(theme) {
|
|
8033
|
-
return {
|
|
8034
|
-
backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
|
|
8035
|
-
borderColor: theme.colors.actionTertiaryBackgroundDefault,
|
|
8036
|
-
color: theme.colors.actionTertiaryTextDefault,
|
|
8037
|
-
'&:hover': {
|
|
8038
|
-
backgroundColor: theme.colors.actionTertiaryBackgroundHover,
|
|
8039
|
-
borderColor: 'transparent',
|
|
8040
|
-
color: theme.colors.actionTertiaryTextHover
|
|
8041
|
-
},
|
|
8042
|
-
'&:active': {
|
|
8043
|
-
backgroundColor: theme.colors.actionTertiaryBackgroundPress,
|
|
8044
|
-
borderColor: 'transparent',
|
|
8045
|
-
color: theme.colors.actionTertiaryTextPress
|
|
8046
|
-
},
|
|
8047
|
-
'&[disabled]:hover': {
|
|
8048
|
-
background: 'none'
|
|
8049
|
-
}
|
|
8050
|
-
};
|
|
8051
|
-
}
|
|
8052
|
-
function getPrimaryDangerStyles(theme) {
|
|
8053
|
-
return {
|
|
8054
|
-
backgroundColor: theme.colors.actionDangerPrimaryBackgroundDefault,
|
|
8055
|
-
borderColor: 'transparent',
|
|
8056
|
-
color: theme.colors.white,
|
|
8057
|
-
'&:hover': {
|
|
8058
|
-
backgroundColor: theme.colors.actionDangerPrimaryBackgroundHover,
|
|
8059
|
-
borderColor: 'transparent',
|
|
8060
|
-
color: theme.colors.white
|
|
7942
|
+
function getEmotionStyles(clsPrefix, theme) {
|
|
7943
|
+
const classFocused = ".".concat(clsPrefix, "-focused");
|
|
7944
|
+
const classActiveBar = ".".concat(clsPrefix, "-active-bar");
|
|
7945
|
+
const classSeparator = ".".concat(clsPrefix, "-separator");
|
|
7946
|
+
const classSuffix = ".".concat(clsPrefix, "-suffix");
|
|
7947
|
+
const styles = {
|
|
7948
|
+
height: 32,
|
|
7949
|
+
borderRadius: theme.borders.borderRadiusMd,
|
|
7950
|
+
borderColor: theme.colors.border,
|
|
7951
|
+
color: theme.colors.textPrimary,
|
|
7952
|
+
transition: 'border 0s, box-shadow 0s',
|
|
7953
|
+
["&".concat(classFocused, ",:hover")]: {
|
|
7954
|
+
borderColor: theme.colors.actionDefaultBorderHover
|
|
8061
7955
|
},
|
|
8062
7956
|
'&:active': {
|
|
8063
|
-
|
|
8064
|
-
borderColor: 'transparent',
|
|
8065
|
-
color: theme.colors.white
|
|
8066
|
-
},
|
|
8067
|
-
'&:focus-visible': {
|
|
8068
|
-
outlineColor: theme.colors.actionDangerPrimaryBackgroundDefault
|
|
8069
|
-
}
|
|
8070
|
-
};
|
|
8071
|
-
}
|
|
8072
|
-
function getSecondaryDangerStyles(theme) {
|
|
8073
|
-
return {
|
|
8074
|
-
backgroundColor: theme.colors.actionDangerDefaultBackgroundDefault,
|
|
8075
|
-
borderColor: theme.colors.actionDangerDefaultBorderDefault,
|
|
8076
|
-
color: theme.colors.actionDangerDefaultTextDefault,
|
|
8077
|
-
'&:hover': {
|
|
8078
|
-
backgroundColor: theme.colors.actionDangerDefaultBackgroundHover,
|
|
8079
|
-
borderColor: theme.colors.actionDangerDefaultBorderHover,
|
|
8080
|
-
color: theme.colors.actionDangerDefaultTextHover
|
|
7957
|
+
borderColor: theme.colors.actionDefaultBorderPress
|
|
8081
7958
|
},
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
7959
|
+
["&".concat(classFocused)]: {
|
|
7960
|
+
boxShadow: "none !important",
|
|
7961
|
+
outline: "".concat(theme.colors.actionDefaultBorderFocus, " solid 2px !important"),
|
|
7962
|
+
borderColor: 'transparent !important'
|
|
8086
7963
|
},
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
}
|
|
8090
|
-
};
|
|
8091
|
-
}
|
|
8092
|
-
function getDisabledStyles(theme) {
|
|
8093
|
-
return {
|
|
8094
|
-
backgroundColor: theme.colors.actionDisabledBackground,
|
|
8095
|
-
borderColor: 'transparent',
|
|
8096
|
-
color: theme.colors.actionDisabledText,
|
|
8097
|
-
'&:hover': {
|
|
8098
|
-
backgroundColor: theme.colors.actionDisabledBackground,
|
|
8099
|
-
borderColor: 'transparent',
|
|
8100
|
-
color: theme.colors.actionDisabledText
|
|
7964
|
+
["& ".concat(classActiveBar)]: {
|
|
7965
|
+
background: "".concat(theme.colors.actionDefaultBorderPress, " !important")
|
|
8101
7966
|
},
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
borderColor: 'transparent',
|
|
8105
|
-
color: theme.colors.actionDisabledText
|
|
7967
|
+
["& input::placeholder, & ".concat(classSeparator, ", & ").concat(classSuffix)]: {
|
|
7968
|
+
color: theme.colors.textPrimary
|
|
8106
7969
|
}
|
|
8107
7970
|
};
|
|
7971
|
+
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEmotionStyles;");
|
|
8108
7972
|
}
|
|
8109
|
-
|
|
7973
|
+
const getDropdownStyles$1 = theme => {
|
|
8110
7974
|
return {
|
|
8111
|
-
|
|
8112
|
-
borderColor: 'transparent',
|
|
8113
|
-
color: theme.colors.actionDisabledText,
|
|
8114
|
-
'&:hover': {
|
|
8115
|
-
backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
|
|
8116
|
-
borderColor: 'transparent',
|
|
8117
|
-
color: theme.colors.actionDisabledText
|
|
8118
|
-
},
|
|
8119
|
-
'&:active': {
|
|
8120
|
-
backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
|
|
8121
|
-
borderColor: 'transparent',
|
|
8122
|
-
color: theme.colors.actionDisabledText
|
|
8123
|
-
}
|
|
7975
|
+
zIndex: theme.options.zIndexBase + 50
|
|
8124
7976
|
};
|
|
8125
|
-
}
|
|
8126
|
-
|
|
8127
|
-
|
|
8128
|
-
return "".concat(theme.general.iconfontCssPrefix, "-btn-end-icon");
|
|
8129
|
-
}
|
|
8130
|
-
const getButtonEmotionStyles = _ref => {
|
|
8131
|
-
let {
|
|
8132
|
-
theme,
|
|
8133
|
-
classNamePrefix,
|
|
8134
|
-
loading,
|
|
8135
|
-
withIcon,
|
|
8136
|
-
onlyIcon,
|
|
8137
|
-
isAnchor,
|
|
8138
|
-
enableAnimation,
|
|
8139
|
-
size,
|
|
8140
|
-
type,
|
|
8141
|
-
isFlex,
|
|
8142
|
-
useNewIcons
|
|
8143
|
-
} = _ref;
|
|
8144
|
-
const clsIcon = ".".concat(theme.general.iconfontCssPrefix);
|
|
8145
|
-
const clsEndIcon = ".".concat(getEndIconClsName(theme));
|
|
8146
|
-
const clsLoadingIcon = ".".concat(classNamePrefix, "-btn-loading-icon");
|
|
8147
|
-
const clsIconOnly = ".".concat(classNamePrefix, "-btn-icon-only");
|
|
8148
|
-
const classPrimary = ".".concat(classNamePrefix, "-btn-primary");
|
|
8149
|
-
const classLink = ".".concat(classNamePrefix, "-btn-link");
|
|
8150
|
-
const classDangerous = ".".concat(classNamePrefix, "-btn-dangerous");
|
|
8151
|
-
const SMALL_BUTTON_HEIGHT = 24;
|
|
8152
|
-
const tertiaryColors = {
|
|
8153
|
-
background: theme.colors.actionTertiaryBackgroundDefault,
|
|
8154
|
-
color: theme.colors.actionTertiaryTextDefault,
|
|
8155
|
-
'&:hover': {
|
|
8156
|
-
background: theme.colors.actionTertiaryBackgroundHover,
|
|
8157
|
-
color: theme.colors.actionTertiaryTextHover
|
|
8158
|
-
},
|
|
8159
|
-
'&:active': {
|
|
8160
|
-
background: theme.colors.actionTertiaryBackgroundPress,
|
|
8161
|
-
color: theme.colors.actionTertiaryTextPress
|
|
8162
|
-
}
|
|
8163
|
-
};
|
|
8164
|
-
const iconCss = {
|
|
8165
|
-
fontSize: useNewIcons ? theme.general.iconFontSizeNew : theme.general.buttonInnerHeight - 4,
|
|
8166
|
-
...(!isFlex && {
|
|
8167
|
-
// verticalAlign used by AntD to move icon and label to center
|
|
8168
|
-
// TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
|
|
8169
|
-
// behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
|
|
8170
|
-
verticalAlign: useNewIcons ? -4 : -5,
|
|
8171
|
-
...(onlyIcon && {
|
|
8172
|
-
verticalAlign: -3
|
|
8173
|
-
}),
|
|
8174
|
-
// verticalAlign used by AntD to move icon and label to center
|
|
8175
|
-
// TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
|
|
8176
|
-
// behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
|
|
8177
|
-
// Need to make sure not to apply this to regular buttons as it will offset the icons
|
|
8178
|
-
...(!onlyIcon && {
|
|
8179
|
-
verticalAlign: useNewIcons ? -3 : -4
|
|
8180
|
-
})
|
|
8181
|
-
}),
|
|
8182
|
-
lineHeight: 0,
|
|
8183
|
-
...(size === 'small' && {
|
|
8184
|
-
lineHeight: theme.typography.lineHeightSm,
|
|
8185
|
-
...(onlyIcon && {
|
|
8186
|
-
fontSize: 16,
|
|
8187
|
-
...(isFlex && {
|
|
8188
|
-
height: 16
|
|
8189
|
-
})
|
|
8190
|
-
})
|
|
8191
|
-
})
|
|
8192
|
-
};
|
|
8193
|
-
const inactiveIconCss = {
|
|
8194
|
-
color: theme.colors.grey600
|
|
8195
|
-
};
|
|
8196
|
-
const endIconCssSelector = "span > ".concat(clsEndIcon, " > ").concat(clsIcon);
|
|
8197
|
-
const styles = {
|
|
8198
|
-
lineHeight: theme.typography.lineHeightBase,
|
|
8199
|
-
boxShadow: 'none',
|
|
8200
|
-
height: theme.general.heightSm,
|
|
8201
|
-
...(isFlex && {
|
|
8202
|
-
display: 'inline-flex',
|
|
8203
|
-
alignItems: 'center',
|
|
8204
|
-
justifyContent: 'center',
|
|
8205
|
-
verticalAlign: 'middle'
|
|
8206
|
-
}),
|
|
8207
|
-
...(!onlyIcon && {
|
|
8208
|
-
'&&': {
|
|
8209
|
-
padding: '4px 12px',
|
|
8210
|
-
...(size === 'small' && {
|
|
8211
|
-
padding: '0 8px'
|
|
8212
|
-
})
|
|
8213
|
-
}
|
|
8214
|
-
}),
|
|
8215
|
-
...(onlyIcon && {
|
|
8216
|
-
width: theme.general.heightSm
|
|
8217
|
-
}),
|
|
8218
|
-
...(size === 'small' && {
|
|
8219
|
-
height: SMALL_BUTTON_HEIGHT,
|
|
8220
|
-
lineHeight: theme.typography.lineHeightBase,
|
|
8221
|
-
...(onlyIcon && {
|
|
8222
|
-
width: SMALL_BUTTON_HEIGHT,
|
|
8223
|
-
paddingTop: 0,
|
|
8224
|
-
paddingBottom: 0,
|
|
8225
|
-
verticalAlign: 'middle'
|
|
8226
|
-
})
|
|
8227
|
-
}),
|
|
8228
|
-
'&:focus-visible': {
|
|
8229
|
-
outlineStyle: 'solid',
|
|
8230
|
-
outlineWidth: '2px',
|
|
8231
|
-
outlineOffset: '1px',
|
|
8232
|
-
outlineColor: theme.themeName === 'dark' ? theme.colors.actionDefaultBorderFocus : theme.colors.primary
|
|
8233
|
-
},
|
|
8234
|
-
...getDefaultStyles(theme),
|
|
8235
|
-
["&".concat(classPrimary)]: {
|
|
8236
|
-
...getPrimaryStyles(theme)
|
|
8237
|
-
},
|
|
8238
|
-
["&".concat(classLink)]: {
|
|
8239
|
-
...getLinkStyles(theme),
|
|
8240
|
-
...(type === 'link' && {
|
|
8241
|
-
padding: 'unset',
|
|
8242
|
-
height: 'auto',
|
|
8243
|
-
border: 'none',
|
|
8244
|
-
boxShadow: 'none',
|
|
8245
|
-
'&[disabled],&:hover': {
|
|
8246
|
-
background: 'none'
|
|
8247
|
-
}
|
|
8248
|
-
})
|
|
8249
|
-
},
|
|
8250
|
-
["&".concat(classDangerous).concat(classPrimary)]: {
|
|
8251
|
-
...getPrimaryDangerStyles(theme)
|
|
8252
|
-
},
|
|
8253
|
-
["&".concat(classDangerous)]: {
|
|
8254
|
-
...getSecondaryDangerStyles(theme)
|
|
8255
|
-
},
|
|
8256
|
-
["&[disabled], &".concat(classDangerous, ":disabled")]: {
|
|
8257
|
-
...getDisabledStyles(theme),
|
|
8258
|
-
...(onlyIcon ? {
|
|
8259
|
-
backgroundColor: 'transparent'
|
|
8260
|
-
} : {
|
|
8261
|
-
backgroundColor: theme.colors.actionDisabledBackground
|
|
8262
|
-
})
|
|
8263
|
-
},
|
|
8264
|
-
// Loading styles
|
|
8265
|
-
...(loading && {
|
|
8266
|
-
'::before': {
|
|
8267
|
-
opacity: 0
|
|
8268
|
-
},
|
|
8269
|
-
["".concat(clsLoadingIcon)]: {
|
|
8270
|
-
...(onlyIcon ? {
|
|
8271
|
-
// In case of only icon, the icon is already centered but vertically not aligned, this fixes that
|
|
8272
|
-
verticalAlign: 'middle'
|
|
8273
|
-
} : {
|
|
8274
|
-
// Position loading indicator in center
|
|
8275
|
-
// This would break vertical centering of loading circle when onlyIcon is true
|
|
8276
|
-
position: 'absolute'
|
|
8277
|
-
}),
|
|
8278
|
-
...(!isFlex && {
|
|
8279
|
-
// Normally we'd do `transform: translateX(-50%)` but `antd` crushes that with injected inline `style`.
|
|
8280
|
-
left: 'calc(50% - 7px)'
|
|
8281
|
-
}),
|
|
8282
|
-
// Re-enable animation for the loading spinner, since it can be disabled by the global animation CSS.
|
|
8283
|
-
svg: {
|
|
8284
|
-
animationDuration: '1s !important'
|
|
8285
|
-
}
|
|
8286
|
-
},
|
|
8287
|
-
["> :not(".concat(clsLoadingIcon, ")")]: {
|
|
8288
|
-
// Hide all content except loading icon
|
|
8289
|
-
opacity: 0,
|
|
8290
|
-
visibility: 'hidden',
|
|
8291
|
-
// Add horizontal space for icon
|
|
8292
|
-
...(withIcon && {
|
|
8293
|
-
paddingLeft: theme.spacing.sm * 2 + 14
|
|
8294
|
-
})
|
|
8295
|
-
}
|
|
8296
|
-
}),
|
|
8297
|
-
// Icon styles
|
|
8298
|
-
["> ".concat(clsIcon, " + span, > span + ").concat(clsIcon)]: {
|
|
8299
|
-
marginRight: 0
|
|
8300
|
-
},
|
|
8301
|
-
["> ".concat(clsIcon)]: iconCss,
|
|
8302
|
-
["> ".concat(endIconCssSelector)]: {
|
|
8303
|
-
...iconCss,
|
|
8304
|
-
marginLeft: size === 'small' ? 8 : 12
|
|
8305
|
-
},
|
|
8306
|
-
...(!type && {
|
|
8307
|
-
["&:enabled:not(:hover):not(:active) > ".concat(clsIcon)]: inactiveIconCss
|
|
8308
|
-
}),
|
|
8309
|
-
...(!type && {
|
|
8310
|
-
["&:enabled:not(:hover):not(:active) > ".concat(endIconCssSelector)]: inactiveIconCss
|
|
8311
|
-
}),
|
|
8312
|
-
// Disable animations
|
|
8313
|
-
["&[".concat(classNamePrefix, "-click-animating-without-extra-node='true']::after")]: {
|
|
8314
|
-
display: 'none'
|
|
8315
|
-
},
|
|
8316
|
-
["&".concat(clsIconOnly)]: {
|
|
8317
|
-
border: 'none',
|
|
8318
|
-
["&:enabled:not(".concat(classLink, ")")]: {
|
|
8319
|
-
...tertiaryColors,
|
|
8320
|
-
color: theme.colors.textSecondary
|
|
8321
|
-
},
|
|
8322
|
-
...(isAnchor && {
|
|
8323
|
-
lineHeight: "".concat(theme.general.heightSm, "px"),
|
|
8324
|
-
...getLinkStyles(theme),
|
|
8325
|
-
'&:disabled': {
|
|
8326
|
-
color: theme.colors.actionDisabledText
|
|
8327
|
-
}
|
|
8328
|
-
}),
|
|
8329
|
-
'&[disabled]:hover': {
|
|
8330
|
-
backgroundColor: 'transparent'
|
|
8331
|
-
}
|
|
8332
|
-
},
|
|
8333
|
-
["&:focus"]: {
|
|
8334
|
-
["".concat(clsLoadingIcon)]: {
|
|
8335
|
-
...(onlyIcon && {
|
|
8336
|
-
// Mitigate wrong left offset for loading state with onlyIcon
|
|
8337
|
-
left: 0
|
|
8338
|
-
})
|
|
8339
|
-
}
|
|
8340
|
-
},
|
|
8341
|
-
...getAnimationCss(enableAnimation)
|
|
8342
|
-
};
|
|
8343
|
-
|
|
8344
|
-
// Moved outside main style object because state & selector matching in the already existing object keys can create bugs and unwanted overwrites
|
|
8345
|
-
const typeStyles = {
|
|
8346
|
-
...(type === 'tertiary' && {
|
|
8347
|
-
["&:enabled:not(".concat(clsIconOnly, ")")]: tertiaryColors,
|
|
8348
|
-
["&".concat(classLink, "[disabled]")]: {
|
|
8349
|
-
...getDisabledTertiaryStyles(theme)
|
|
8350
|
-
}
|
|
8351
|
-
})
|
|
8352
|
-
};
|
|
8353
|
-
const importantStyles = importantify(styles);
|
|
8354
|
-
const importantTypeStyles = importantify(typeStyles);
|
|
8355
|
-
return /*#__PURE__*/css(importantStyles, importantTypeStyles, process.env.NODE_ENV === "production" ? "" : ";label:getButtonEmotionStyles;");
|
|
8356
|
-
};
|
|
8357
|
-
const Button = /* #__PURE__ */(() => {
|
|
8358
|
-
const Button = /*#__PURE__*/forwardRef(function Button( // Keep size out of props passed to AntD to make deprecation and eventual removal have 0 impact
|
|
8359
|
-
_ref2, ref) {
|
|
8360
|
-
let {
|
|
8361
|
-
dangerouslySetAntdProps,
|
|
8362
|
-
children,
|
|
8363
|
-
size,
|
|
8364
|
-
type,
|
|
8365
|
-
endIcon,
|
|
8366
|
-
...props
|
|
8367
|
-
} = _ref2;
|
|
8368
|
-
const {
|
|
8369
|
-
theme,
|
|
8370
|
-
classNamePrefix
|
|
8371
|
-
} = useDesignSystemTheme();
|
|
8372
|
-
const {
|
|
8373
|
-
USE_FLEX_BUTTON: isFlex,
|
|
8374
|
-
USE_NEW_ICONS: useNewIcons
|
|
8375
|
-
} = useDesignSystemFlags();
|
|
8376
|
-
const clsEndIcon = getEndIconClsName(theme);
|
|
8377
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
8378
|
-
children: jsx(Button$1, {
|
|
8379
|
-
...props,
|
|
8380
|
-
css: getButtonEmotionStyles({
|
|
8381
|
-
theme,
|
|
8382
|
-
classNamePrefix,
|
|
8383
|
-
loading: Boolean(props.loading),
|
|
8384
|
-
withIcon: Boolean(props.icon),
|
|
8385
|
-
onlyIcon: Boolean((props.icon || endIcon) && !children),
|
|
8386
|
-
isAnchor: Boolean(props.href && !type),
|
|
8387
|
-
danger: Boolean(props.danger),
|
|
8388
|
-
enableAnimation: theme.options.enableAnimation,
|
|
8389
|
-
size: size || 'middle',
|
|
8390
|
-
type,
|
|
8391
|
-
isFlex,
|
|
8392
|
-
useNewIcons
|
|
8393
|
-
}),
|
|
8394
|
-
href: props.disabled ? undefined : props.href,
|
|
8395
|
-
...dangerouslySetAntdProps,
|
|
8396
|
-
ref: ref,
|
|
8397
|
-
type: type === 'tertiary' ? 'link' : type,
|
|
8398
|
-
children: children && jsxs("span", {
|
|
8399
|
-
style: {
|
|
8400
|
-
visibility: props !== null && props !== void 0 && props.loading ? 'hidden' : 'visible',
|
|
8401
|
-
...(isFlex && {
|
|
8402
|
-
display: 'inline-flex',
|
|
8403
|
-
alignItems: 'center'
|
|
8404
|
-
})
|
|
8405
|
-
},
|
|
8406
|
-
children: [children, endIcon && jsx("span", {
|
|
8407
|
-
className: clsEndIcon,
|
|
8408
|
-
style: {
|
|
8409
|
-
...(isFlex && {
|
|
8410
|
-
display: 'inline-flex',
|
|
8411
|
-
alignItems: 'center'
|
|
8412
|
-
})
|
|
8413
|
-
},
|
|
8414
|
-
children: endIcon
|
|
8415
|
-
})]
|
|
8416
|
-
})
|
|
8417
|
-
})
|
|
8418
|
-
});
|
|
8419
|
-
});
|
|
8420
|
-
|
|
8421
|
-
// This is needed for other Ant components that wrap Button, such as Tooltip, to correctly
|
|
8422
|
-
// identify it as an Ant button.
|
|
8423
|
-
// This should be removed if the component is rewritten to no longer be a wrapper around Ant.
|
|
8424
|
-
// See: https://github.com/ant-design/ant-design/blob/6dd39c1f89b4d6632e6ed022ff1bc275ca1e0f1f/components/button/button.tsx#L291
|
|
8425
|
-
Button.__ANT_BUTTON = true;
|
|
8426
|
-
return Button;
|
|
8427
|
-
})();
|
|
8428
|
-
|
|
8429
|
-
function getEmotionStyles(clsPrefix, theme) {
|
|
8430
|
-
const classFocused = ".".concat(clsPrefix, "-focused");
|
|
8431
|
-
const classActiveBar = ".".concat(clsPrefix, "-active-bar");
|
|
8432
|
-
const classSeparator = ".".concat(clsPrefix, "-separator");
|
|
8433
|
-
const classSuffix = ".".concat(clsPrefix, "-suffix");
|
|
8434
|
-
const styles = {
|
|
8435
|
-
height: 32,
|
|
8436
|
-
borderRadius: theme.borders.borderRadiusMd,
|
|
8437
|
-
borderColor: theme.colors.border,
|
|
8438
|
-
color: theme.colors.textPrimary,
|
|
8439
|
-
transition: 'border 0s, box-shadow 0s',
|
|
8440
|
-
["&".concat(classFocused, ",:hover")]: {
|
|
8441
|
-
borderColor: theme.colors.actionDefaultBorderHover
|
|
8442
|
-
},
|
|
8443
|
-
'&:active': {
|
|
8444
|
-
borderColor: theme.colors.actionDefaultBorderPress
|
|
8445
|
-
},
|
|
8446
|
-
["&".concat(classFocused)]: {
|
|
8447
|
-
boxShadow: "none !important",
|
|
8448
|
-
outline: "".concat(theme.colors.actionDefaultBorderFocus, " solid 2px !important"),
|
|
8449
|
-
borderColor: 'transparent !important'
|
|
8450
|
-
},
|
|
8451
|
-
["& ".concat(classActiveBar)]: {
|
|
8452
|
-
background: "".concat(theme.colors.actionDefaultBorderPress, " !important")
|
|
8453
|
-
},
|
|
8454
|
-
["& input::placeholder, & ".concat(classSeparator, ", & ").concat(classSuffix)]: {
|
|
8455
|
-
color: theme.colors.textPrimary
|
|
8456
|
-
}
|
|
8457
|
-
};
|
|
8458
|
-
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEmotionStyles;");
|
|
8459
|
-
}
|
|
8460
|
-
const getDropdownStyles$1 = theme => {
|
|
8461
|
-
return {
|
|
8462
|
-
zIndex: theme.options.zIndexBase + 50
|
|
8463
|
-
};
|
|
8464
|
-
};
|
|
8465
|
-
function useDatePickerStyles() {
|
|
8466
|
-
const {
|
|
7977
|
+
};
|
|
7978
|
+
function useDatePickerStyles() {
|
|
7979
|
+
const {
|
|
8467
7980
|
theme,
|
|
8468
7981
|
getPrefixedClassName
|
|
8469
7982
|
} = useDesignSystemTheme();
|
|
8470
7983
|
const clsPrefix = getPrefixedClassName('picker');
|
|
8471
7984
|
return getEmotionStyles(clsPrefix, theme);
|
|
8472
7985
|
}
|
|
8473
|
-
const DuboisDatePicker = props => {
|
|
7986
|
+
const DuboisDatePicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
8474
7987
|
const styles = useDatePickerStyles();
|
|
8475
7988
|
const {
|
|
8476
7989
|
theme
|
|
@@ -8478,6 +7991,7 @@ const DuboisDatePicker = props => {
|
|
|
8478
7991
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
8479
7992
|
children: jsx(DatePicker, {
|
|
8480
7993
|
css: styles,
|
|
7994
|
+
ref: ref,
|
|
8481
7995
|
...props,
|
|
8482
7996
|
popupStyle: {
|
|
8483
7997
|
...getDropdownStyles$1(theme),
|
|
@@ -8485,8 +7999,8 @@ const DuboisDatePicker = props => {
|
|
|
8485
7999
|
}
|
|
8486
8000
|
})
|
|
8487
8001
|
});
|
|
8488
|
-
};
|
|
8489
|
-
const RangePicker = props => {
|
|
8002
|
+
});
|
|
8003
|
+
const RangePicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
8490
8004
|
const styles = useDatePickerStyles();
|
|
8491
8005
|
const {
|
|
8492
8006
|
theme
|
|
@@ -8495,14 +8009,15 @@ const RangePicker = props => {
|
|
|
8495
8009
|
children: jsx(DatePicker.RangePicker, {
|
|
8496
8010
|
css: styles,
|
|
8497
8011
|
...props,
|
|
8012
|
+
ref: ref,
|
|
8498
8013
|
popupStyle: {
|
|
8499
8014
|
...getDropdownStyles$1(theme),
|
|
8500
8015
|
...(props.popupStyle || {})
|
|
8501
8016
|
}
|
|
8502
8017
|
})
|
|
8503
8018
|
});
|
|
8504
|
-
};
|
|
8505
|
-
const TimePicker = props => {
|
|
8019
|
+
});
|
|
8020
|
+
const TimePicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
8506
8021
|
const styles = useDatePickerStyles();
|
|
8507
8022
|
const {
|
|
8508
8023
|
theme
|
|
@@ -8511,14 +8026,15 @@ const TimePicker = props => {
|
|
|
8511
8026
|
children: jsx(DatePicker.TimePicker, {
|
|
8512
8027
|
css: styles,
|
|
8513
8028
|
...props,
|
|
8029
|
+
ref: ref,
|
|
8514
8030
|
popupStyle: {
|
|
8515
8031
|
...getDropdownStyles$1(theme),
|
|
8516
8032
|
...(props.popupStyle || {})
|
|
8517
8033
|
}
|
|
8518
8034
|
})
|
|
8519
8035
|
});
|
|
8520
|
-
};
|
|
8521
|
-
const QuarterPicker = props => {
|
|
8036
|
+
});
|
|
8037
|
+
const QuarterPicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
8522
8038
|
const styles = useDatePickerStyles();
|
|
8523
8039
|
const {
|
|
8524
8040
|
theme
|
|
@@ -8527,14 +8043,15 @@ const QuarterPicker = props => {
|
|
|
8527
8043
|
children: jsx(DatePicker.QuarterPicker, {
|
|
8528
8044
|
css: styles,
|
|
8529
8045
|
...props,
|
|
8046
|
+
ref: ref,
|
|
8530
8047
|
popupStyle: {
|
|
8531
8048
|
...getDropdownStyles$1(theme),
|
|
8532
8049
|
...(props.popupStyle || {})
|
|
8533
8050
|
}
|
|
8534
8051
|
})
|
|
8535
8052
|
});
|
|
8536
|
-
};
|
|
8537
|
-
const WeekPicker = props => {
|
|
8053
|
+
});
|
|
8054
|
+
const WeekPicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
8538
8055
|
const styles = useDatePickerStyles();
|
|
8539
8056
|
const {
|
|
8540
8057
|
theme
|
|
@@ -8543,14 +8060,15 @@ const WeekPicker = props => {
|
|
|
8543
8060
|
children: jsx(DatePicker.WeekPicker, {
|
|
8544
8061
|
css: styles,
|
|
8545
8062
|
...props,
|
|
8063
|
+
ref: ref,
|
|
8546
8064
|
popupStyle: {
|
|
8547
8065
|
...getDropdownStyles$1(theme),
|
|
8548
8066
|
...(props.popupStyle || {})
|
|
8549
8067
|
}
|
|
8550
8068
|
})
|
|
8551
8069
|
});
|
|
8552
|
-
};
|
|
8553
|
-
const MonthPicker = props => {
|
|
8070
|
+
});
|
|
8071
|
+
const MonthPicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
8554
8072
|
const styles = useDatePickerStyles();
|
|
8555
8073
|
const {
|
|
8556
8074
|
theme
|
|
@@ -8559,14 +8077,15 @@ const MonthPicker = props => {
|
|
|
8559
8077
|
children: jsx(DatePicker.MonthPicker, {
|
|
8560
8078
|
css: styles,
|
|
8561
8079
|
...props,
|
|
8080
|
+
ref: ref,
|
|
8562
8081
|
popupStyle: {
|
|
8563
8082
|
...getDropdownStyles$1(theme),
|
|
8564
8083
|
...(props.popupStyle || {})
|
|
8565
8084
|
}
|
|
8566
8085
|
})
|
|
8567
8086
|
});
|
|
8568
|
-
};
|
|
8569
|
-
const YearPicker = props => {
|
|
8087
|
+
});
|
|
8088
|
+
const YearPicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
8570
8089
|
const styles = useDatePickerStyles();
|
|
8571
8090
|
const {
|
|
8572
8091
|
theme
|
|
@@ -8575,13 +8094,14 @@ const YearPicker = props => {
|
|
|
8575
8094
|
children: jsx(DatePicker.YearPicker, {
|
|
8576
8095
|
css: styles,
|
|
8577
8096
|
...props,
|
|
8097
|
+
ref: ref,
|
|
8578
8098
|
popupStyle: {
|
|
8579
8099
|
...getDropdownStyles$1(theme),
|
|
8580
8100
|
...(props.popupStyle || {})
|
|
8581
8101
|
}
|
|
8582
8102
|
})
|
|
8583
8103
|
});
|
|
8584
|
-
};
|
|
8104
|
+
});
|
|
8585
8105
|
|
|
8586
8106
|
/**
|
|
8587
8107
|
* `LegacyDatePicker` was added as a temporary solution pending an
|
|
@@ -8643,20 +8163,20 @@ const Spacer = _ref => {
|
|
|
8643
8163
|
});
|
|
8644
8164
|
};
|
|
8645
8165
|
|
|
8646
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
8166
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__$5() { 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)."; }
|
|
8647
8167
|
const DEFAULT_WIDTH$1 = 320;
|
|
8648
8168
|
const MIN_WIDTH = 320;
|
|
8649
8169
|
const MAX_WIDTH = '90vw';
|
|
8650
8170
|
const DEFAULT_POSITION = 'right';
|
|
8651
8171
|
const ZINDEX_OVERLAY = 10;
|
|
8652
8172
|
const ZINDEX_CONTENT = ZINDEX_OVERLAY + 10;
|
|
8653
|
-
var _ref2$
|
|
8173
|
+
var _ref2$1 = process.env.NODE_ENV === "production" ? {
|
|
8654
8174
|
name: "zh83op",
|
|
8655
8175
|
styles: "flex-grow:1;margin-bottom:0;margin-top:0;white-space:nowrap;overflow:hidden"
|
|
8656
8176
|
} : {
|
|
8657
8177
|
name: "h5yqvj-Content",
|
|
8658
8178
|
styles: "flex-grow:1;margin-bottom:0;margin-top:0;white-space:nowrap;overflow:hidden;label:Content;",
|
|
8659
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
8179
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
|
|
8660
8180
|
};
|
|
8661
8181
|
const Content$4 = _ref => {
|
|
8662
8182
|
let {
|
|
@@ -8665,7 +8185,9 @@ const Content$4 = _ref => {
|
|
|
8665
8185
|
title,
|
|
8666
8186
|
width,
|
|
8667
8187
|
position: positionOverride,
|
|
8668
|
-
useCustomScrollBehavior
|
|
8188
|
+
useCustomScrollBehavior,
|
|
8189
|
+
expandContentToFullHeight,
|
|
8190
|
+
disableOpenAutoFocus
|
|
8669
8191
|
} = _ref;
|
|
8670
8192
|
const {
|
|
8671
8193
|
getPopupContainer
|
|
@@ -8735,6 +8257,11 @@ const Content$4 = _ref => {
|
|
|
8735
8257
|
justifyContent: 'flex-start'
|
|
8736
8258
|
},
|
|
8737
8259
|
ref: contentContainerRef,
|
|
8260
|
+
onOpenAutoFocus: event => {
|
|
8261
|
+
if (disableOpenAutoFocus) {
|
|
8262
|
+
event.preventDefault();
|
|
8263
|
+
}
|
|
8264
|
+
},
|
|
8738
8265
|
children: jsxs(ApplyDesignSystemContextOverrides, {
|
|
8739
8266
|
getPopupContainer: () => {
|
|
8740
8267
|
var _contentContainerRef$;
|
|
@@ -8755,7 +8282,7 @@ const Content$4 = _ref => {
|
|
|
8755
8282
|
children: [jsx(DialogPrimitive.Title, {
|
|
8756
8283
|
title: typeof title === 'string' ? title : undefined,
|
|
8757
8284
|
asChild: typeof title === 'string',
|
|
8758
|
-
css: _ref2$
|
|
8285
|
+
css: _ref2$1,
|
|
8759
8286
|
children: typeof title === 'string' ? jsx(Typography.Title, {
|
|
8760
8287
|
level: 2,
|
|
8761
8288
|
withoutMargins: true,
|
|
@@ -8781,6 +8308,7 @@ const Content$4 = _ref => {
|
|
|
8781
8308
|
paddingRight: useCustomScrollBehavior ? 0 : horizontalContentPadding,
|
|
8782
8309
|
paddingLeft: horizontalContentPadding,
|
|
8783
8310
|
overflowY: useCustomScrollBehavior ? 'hidden' : 'auto',
|
|
8311
|
+
height: expandContentToFullHeight ? '100%' : undefined,
|
|
8784
8312
|
...(theme.themeName === 'default' && !useCustomScrollBehavior ? {
|
|
8785
8313
|
// Achieves an inner shadow on the content, but only when there is more left to scroll. When the content fits
|
|
8786
8314
|
// in the container without scrolling, no shadow will be shown.
|
|
@@ -8853,51 +8381,6 @@ const Dropdown = _ref => {
|
|
|
8853
8381
|
});
|
|
8854
8382
|
};
|
|
8855
8383
|
|
|
8856
|
-
const Tooltip = _ref => {
|
|
8857
|
-
let {
|
|
8858
|
-
children,
|
|
8859
|
-
title,
|
|
8860
|
-
placement = 'top',
|
|
8861
|
-
dataTestId,
|
|
8862
|
-
dangerouslySetAntdProps,
|
|
8863
|
-
...props
|
|
8864
|
-
} = _ref;
|
|
8865
|
-
const {
|
|
8866
|
-
theme
|
|
8867
|
-
} = useDesignSystemTheme();
|
|
8868
|
-
if (!title) {
|
|
8869
|
-
return jsx(React__default.Fragment, {
|
|
8870
|
-
children: children
|
|
8871
|
-
});
|
|
8872
|
-
}
|
|
8873
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
8874
|
-
children: jsx(Tooltip$1
|
|
8875
|
-
// eslint-disable-next-line react/forbid-dom-props -- FEINF-1337 - this should turn into data-testid
|
|
8876
|
-
, {
|
|
8877
|
-
title: jsx("span", {
|
|
8878
|
-
"data-test-id": dataTestId,
|
|
8879
|
-
children: title
|
|
8880
|
-
}),
|
|
8881
|
-
placement: placement
|
|
8882
|
-
// Always trigger on hover and focus
|
|
8883
|
-
,
|
|
8884
|
-
trigger: ['hover', 'focus'],
|
|
8885
|
-
overlayInnerStyle: {
|
|
8886
|
-
backgroundColor: '#2F3941',
|
|
8887
|
-
lineHeight: '22px',
|
|
8888
|
-
padding: '4px 8px'
|
|
8889
|
-
},
|
|
8890
|
-
overlayStyle: {
|
|
8891
|
-
zIndex: theme.options.zIndexBase + 70
|
|
8892
|
-
},
|
|
8893
|
-
css: getAnimationCss(theme.options.enableAnimation),
|
|
8894
|
-
...dangerouslySetAntdProps,
|
|
8895
|
-
...props,
|
|
8896
|
-
children: children
|
|
8897
|
-
})
|
|
8898
|
-
});
|
|
8899
|
-
};
|
|
8900
|
-
|
|
8901
8384
|
const Root$2 = DropdownMenu$1.Root; // Behavioral component only
|
|
8902
8385
|
|
|
8903
8386
|
const Content$3 = /*#__PURE__*/forwardRef(function Content(_ref, ref) {
|
|
@@ -9130,7 +8613,7 @@ const RadioItem = /*#__PURE__*/forwardRef(function RadioItem(_ref11, ref) {
|
|
|
9130
8613
|
});
|
|
9131
8614
|
|
|
9132
8615
|
// UNWRAPPED RADIX-UI-COMPONENTS
|
|
9133
|
-
const Group$
|
|
8616
|
+
const Group$1 = DropdownMenu$1.Group;
|
|
9134
8617
|
const RadioGroup = DropdownMenu$1.RadioGroup;
|
|
9135
8618
|
const Sub = DropdownMenu$1.Sub;
|
|
9136
8619
|
|
|
@@ -9259,7 +8742,7 @@ const dropdownContentStyles = theme => ({
|
|
|
9259
8742
|
border: "1px solid ".concat(theme.colors.borderDecorative),
|
|
9260
8743
|
borderRadius: theme.borders.borderRadiusMd,
|
|
9261
8744
|
padding: "".concat(theme.spacing.xs, "px 0"),
|
|
9262
|
-
boxShadow: theme.
|
|
8745
|
+
boxShadow: theme.general.shadowLow,
|
|
9263
8746
|
userSelect: 'none',
|
|
9264
8747
|
// Ant Design uses 1000s for their zIndex space; this ensures Radix works with that, but
|
|
9265
8748
|
// we'll likely need to be sure that all Radix components are using the same zIndex going forward.
|
|
@@ -9333,7 +8816,7 @@ var DropdownMenu = /*#__PURE__*/Object.freeze({
|
|
|
9333
8816
|
ItemIndicator: ItemIndicator,
|
|
9334
8817
|
Arrow: Arrow$1,
|
|
9335
8818
|
RadioItem: RadioItem,
|
|
9336
|
-
Group: Group$
|
|
8819
|
+
Group: Group$1,
|
|
9337
8820
|
RadioGroup: RadioGroup,
|
|
9338
8821
|
Sub: Sub,
|
|
9339
8822
|
HintColumn: HintColumn,
|
|
@@ -9342,7 +8825,7 @@ var DropdownMenu = /*#__PURE__*/Object.freeze({
|
|
|
9342
8825
|
dropdownContentStyles: dropdownContentStyles
|
|
9343
8826
|
});
|
|
9344
8827
|
|
|
9345
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
8828
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__$4() { 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)."; }
|
|
9346
8829
|
const {
|
|
9347
8830
|
Title: Title$1,
|
|
9348
8831
|
Paragraph
|
|
@@ -9383,13 +8866,13 @@ function getEmptyDescriptionStyles(theme, clsPrefix) {
|
|
|
9383
8866
|
};
|
|
9384
8867
|
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEmptyDescriptionStyles;");
|
|
9385
8868
|
}
|
|
9386
|
-
var _ref$
|
|
8869
|
+
var _ref$2 = process.env.NODE_ENV === "production" ? {
|
|
9387
8870
|
name: "zl1inp",
|
|
9388
8871
|
styles: "display:flex;justify-content:center"
|
|
9389
8872
|
} : {
|
|
9390
8873
|
name: "11tid6c-Empty",
|
|
9391
8874
|
styles: "display:flex;justify-content:center;label:Empty;",
|
|
9392
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
8875
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
|
|
9393
8876
|
};
|
|
9394
8877
|
const Empty = props => {
|
|
9395
8878
|
const {
|
|
@@ -9406,7 +8889,7 @@ const Empty = props => {
|
|
|
9406
8889
|
} = props;
|
|
9407
8890
|
return jsx("div", {
|
|
9408
8891
|
...dataProps,
|
|
9409
|
-
css: _ref$
|
|
8892
|
+
css: _ref$2,
|
|
9410
8893
|
children: jsxs("div", {
|
|
9411
8894
|
css: [getEmptyStyles(theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Empty;"],
|
|
9412
8895
|
children: [image, title && jsx(Title$1, {
|
|
@@ -9526,7 +9009,9 @@ const getMessageStyles = (clsPrefix, theme) => {
|
|
|
9526
9009
|
'&&': {
|
|
9527
9010
|
lineHeight: theme.typography.lineHeightSm,
|
|
9528
9011
|
fontSize: theme.typography.fontSizeSm,
|
|
9529
|
-
marginTop: theme.spacing.sm
|
|
9012
|
+
marginTop: theme.spacing.sm,
|
|
9013
|
+
display: 'flex',
|
|
9014
|
+
alignItems: 'center'
|
|
9530
9015
|
},
|
|
9531
9016
|
["&".concat(errorClass)]: {
|
|
9532
9017
|
color: theme.colors.actionDangerPrimaryBackgroundDefault
|
|
@@ -9563,7 +9048,7 @@ function FormMessage(_ref) {
|
|
|
9563
9048
|
return jsxs("div", {
|
|
9564
9049
|
className: wrapperClass,
|
|
9565
9050
|
css: [getMessageStyles(classNamePrefix, theme), css, process.env.NODE_ENV === "production" ? "" : ";label:FormMessage;"],
|
|
9566
|
-
children: [jsx(StateIcon, {}), "
|
|
9051
|
+
children: [jsx(StateIcon, {}), "\xA0", message]
|
|
9567
9052
|
});
|
|
9568
9053
|
}
|
|
9569
9054
|
|
|
@@ -9633,258 +9118,41 @@ const Label = props => {
|
|
|
9633
9118
|
});
|
|
9634
9119
|
};
|
|
9635
9120
|
|
|
9636
|
-
const
|
|
9121
|
+
const getRadioInputStyles = _ref => {
|
|
9637
9122
|
let {
|
|
9638
|
-
|
|
9123
|
+
clsPrefix,
|
|
9124
|
+
theme,
|
|
9125
|
+
useNewStyles
|
|
9639
9126
|
} = _ref;
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9127
|
+
return {
|
|
9128
|
+
[".".concat(clsPrefix)]: {
|
|
9129
|
+
alignSelf: 'start',
|
|
9130
|
+
// Unchecked Styles
|
|
9131
|
+
["> .".concat(clsPrefix, "-input + .").concat(clsPrefix, "-inner")]: {
|
|
9132
|
+
width: theme.spacing.md,
|
|
9133
|
+
height: theme.spacing.md,
|
|
9134
|
+
background: useNewStyles ? theme.colors.actionDefaultBackgroundDefault : theme.colors.radioDefaultBackground,
|
|
9135
|
+
borderStyle: 'solid',
|
|
9136
|
+
borderColor: useNewStyles ? theme.colors.actionDefaultBorderDefault : theme.colors.radioDefaultBorder,
|
|
9137
|
+
boxShadow: 'unset',
|
|
9138
|
+
transform: 'unset',
|
|
9139
|
+
// This prevents an awkward jitter on the border
|
|
9140
|
+
display: 'flex',
|
|
9141
|
+
justifyContent: 'center',
|
|
9142
|
+
alignItems: 'center',
|
|
9143
|
+
borderRadius: '50%',
|
|
9144
|
+
'&:after': {
|
|
9145
|
+
all: 'unset'
|
|
9146
|
+
}
|
|
9656
9147
|
},
|
|
9657
|
-
|
|
9658
|
-
|
|
9659
|
-
|
|
9660
|
-
|
|
9661
|
-
outlineStyle: 'solid',
|
|
9662
|
-
boxShadow: 'none',
|
|
9663
|
-
borderColor: 'transparent'
|
|
9148
|
+
// Hover
|
|
9149
|
+
["&:not(.".concat(clsPrefix, "-disabled) > .").concat(clsPrefix, "-input:hover + .").concat(clsPrefix, "-inner")]: {
|
|
9150
|
+
borderColor: useNewStyles ? theme.colors.actionPrimaryBackgroundHover : theme.colors.radioInteractiveHover,
|
|
9151
|
+
background: useNewStyles ? theme.colors.actionDefaultBackgroundHover : theme.colors.radioInteractiveHoverSecondary
|
|
9664
9152
|
},
|
|
9665
|
-
|
|
9666
|
-
|
|
9667
|
-
|
|
9668
|
-
}
|
|
9669
|
-
},
|
|
9670
|
-
["&".concat(inputClass, ", ").concat(inputClass)]: {
|
|
9671
|
-
...(useTransparent && {
|
|
9672
|
-
backgroundColor: 'transparent'
|
|
9673
|
-
})
|
|
9674
|
-
},
|
|
9675
|
-
["&".concat(affixClass)]: {
|
|
9676
|
-
...(useTransparent && {
|
|
9677
|
-
backgroundColor: 'transparent'
|
|
9678
|
-
}),
|
|
9679
|
-
lineHeight: theme.typography.lineHeightBase,
|
|
9680
|
-
paddingTop: 5,
|
|
9681
|
-
paddingBottom: 5,
|
|
9682
|
-
minHeight: theme.general.heightSm,
|
|
9683
|
-
'::before': {
|
|
9684
|
-
lineHeight: theme.typography.lineHeightBase
|
|
9685
|
-
},
|
|
9686
|
-
'&:hover': {
|
|
9687
|
-
borderColor: theme.colors.actionPrimaryBackgroundHover
|
|
9688
|
-
},
|
|
9689
|
-
["input.".concat(clsPrefix, "-input")]: {
|
|
9690
|
-
borderRadius: 0
|
|
9691
|
-
}
|
|
9692
|
-
},
|
|
9693
|
-
["&".concat(affixClassFocused)]: {
|
|
9694
|
-
boxShadow: 'none',
|
|
9695
|
-
'&&, &:focus': {
|
|
9696
|
-
outlineColor: theme.colors.actionPrimaryBackgroundDefault,
|
|
9697
|
-
outlineWidth: 2,
|
|
9698
|
-
outlineOffset: -2,
|
|
9699
|
-
outlineStyle: 'solid',
|
|
9700
|
-
boxShadow: 'none',
|
|
9701
|
-
borderColor: 'transparent'
|
|
9702
|
-
}
|
|
9703
|
-
},
|
|
9704
|
-
...(useNewIcons && {
|
|
9705
|
-
[clearIcon]: {
|
|
9706
|
-
fontSize: theme.general.iconFontSizeNew
|
|
9707
|
-
},
|
|
9708
|
-
[prefixIcon]: {
|
|
9709
|
-
marginRight: theme.spacing.sm
|
|
9710
|
-
},
|
|
9711
|
-
[suffixIcon]: {
|
|
9712
|
-
marginLeft: theme.spacing.sm
|
|
9713
|
-
}
|
|
9714
|
-
}),
|
|
9715
|
-
...getAnimationCss(theme.options.enableAnimation)
|
|
9716
|
-
};
|
|
9717
|
-
return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:getInputEmotionStyles;");
|
|
9718
|
-
};
|
|
9719
|
-
const getInputGroupStyling = clsPrefix => {
|
|
9720
|
-
const inputClass = ".".concat(clsPrefix, "-input");
|
|
9721
|
-
const buttonClass = ".".concat(clsPrefix, "-btn");
|
|
9722
|
-
return /*#__PURE__*/css({
|
|
9723
|
-
["& > ".concat(inputClass)]: {
|
|
9724
|
-
'&:disabled': {
|
|
9725
|
-
border: 'none'
|
|
9726
|
-
}
|
|
9727
|
-
},
|
|
9728
|
-
["& > ".concat(buttonClass, " > span")]: {
|
|
9729
|
-
verticalAlign: 'middle'
|
|
9730
|
-
}
|
|
9731
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getInputGroupStyling;");
|
|
9732
|
-
};
|
|
9733
|
-
const TextArea = /*#__PURE__*/forwardRef(function TextArea(_ref2, ref) {
|
|
9734
|
-
let {
|
|
9735
|
-
validationState,
|
|
9736
|
-
autoComplete = 'off',
|
|
9737
|
-
dangerouslySetAntdProps,
|
|
9738
|
-
dangerouslyAppendEmotionCSS,
|
|
9739
|
-
...props
|
|
9740
|
-
} = _ref2;
|
|
9741
|
-
const {
|
|
9742
|
-
classNamePrefix,
|
|
9743
|
-
theme
|
|
9744
|
-
} = useDesignSystemTheme();
|
|
9745
|
-
const {
|
|
9746
|
-
USE_NEW_ICONS: useNewIcons,
|
|
9747
|
-
USE_TRANSPARENT_INPUT: useTransparent
|
|
9748
|
-
} = useDesignSystemFlags();
|
|
9749
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
9750
|
-
children: jsx(Input$1.TextArea, {
|
|
9751
|
-
ref: ref,
|
|
9752
|
-
autoComplete: autoComplete,
|
|
9753
|
-
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
9754
|
-
validationState
|
|
9755
|
-
}, useNewIcons, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:TextArea;"],
|
|
9756
|
-
...props,
|
|
9757
|
-
...dangerouslySetAntdProps
|
|
9758
|
-
})
|
|
9759
|
-
});
|
|
9760
|
-
});
|
|
9761
|
-
const Password = /*#__PURE__*/forwardRef(function Password(_ref3, ref) {
|
|
9762
|
-
let {
|
|
9763
|
-
validationState,
|
|
9764
|
-
autoComplete = 'off',
|
|
9765
|
-
dangerouslySetAntdProps,
|
|
9766
|
-
dangerouslyAppendEmotionCSS,
|
|
9767
|
-
...props
|
|
9768
|
-
} = _ref3;
|
|
9769
|
-
const {
|
|
9770
|
-
classNamePrefix,
|
|
9771
|
-
theme
|
|
9772
|
-
} = useDesignSystemTheme();
|
|
9773
|
-
const {
|
|
9774
|
-
USE_NEW_ICONS: useNewIcons,
|
|
9775
|
-
USE_TRANSPARENT_INPUT: useTransparent
|
|
9776
|
-
} = useDesignSystemFlags();
|
|
9777
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
9778
|
-
children: jsx(Input$1.Password, {
|
|
9779
|
-
visibilityToggle: false,
|
|
9780
|
-
ref: ref,
|
|
9781
|
-
autoComplete: autoComplete,
|
|
9782
|
-
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
9783
|
-
validationState
|
|
9784
|
-
}, useNewIcons, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Password;"],
|
|
9785
|
-
...props,
|
|
9786
|
-
...dangerouslySetAntdProps
|
|
9787
|
-
})
|
|
9788
|
-
});
|
|
9789
|
-
});
|
|
9790
|
-
const DuboisInput = /*#__PURE__*/forwardRef(function Input(_ref4, ref) {
|
|
9791
|
-
let {
|
|
9792
|
-
validationState,
|
|
9793
|
-
autoComplete = 'off',
|
|
9794
|
-
dangerouslySetAntdProps,
|
|
9795
|
-
dangerouslyAppendEmotionCSS,
|
|
9796
|
-
...props
|
|
9797
|
-
} = _ref4;
|
|
9798
|
-
const {
|
|
9799
|
-
classNamePrefix,
|
|
9800
|
-
theme
|
|
9801
|
-
} = useDesignSystemTheme();
|
|
9802
|
-
const {
|
|
9803
|
-
USE_NEW_ICONS: useNewIcons,
|
|
9804
|
-
USE_TRANSPARENT_INPUT: useTransparent
|
|
9805
|
-
} = useDesignSystemFlags();
|
|
9806
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
9807
|
-
children: jsx(Input$1, {
|
|
9808
|
-
autoComplete: autoComplete,
|
|
9809
|
-
ref: ref,
|
|
9810
|
-
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
9811
|
-
validationState
|
|
9812
|
-
}, useNewIcons, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:DuboisInput;"],
|
|
9813
|
-
...props,
|
|
9814
|
-
...dangerouslySetAntdProps
|
|
9815
|
-
})
|
|
9816
|
-
});
|
|
9817
|
-
});
|
|
9818
|
-
const Group$1 = _ref5 => {
|
|
9819
|
-
let {
|
|
9820
|
-
dangerouslySetAntdProps,
|
|
9821
|
-
dangerouslyAppendEmotionCSS,
|
|
9822
|
-
compact = true,
|
|
9823
|
-
...props
|
|
9824
|
-
} = _ref5;
|
|
9825
|
-
const {
|
|
9826
|
-
classNamePrefix
|
|
9827
|
-
} = useDesignSystemTheme();
|
|
9828
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
9829
|
-
children: jsx(Input$1.Group, {
|
|
9830
|
-
css: [getInputGroupStyling(classNamePrefix), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Group;"],
|
|
9831
|
-
compact: compact,
|
|
9832
|
-
...props,
|
|
9833
|
-
...dangerouslySetAntdProps
|
|
9834
|
-
})
|
|
9835
|
-
});
|
|
9836
|
-
};
|
|
9837
|
-
|
|
9838
|
-
// Properly creates the namespace and dot-notation components with correct types.
|
|
9839
|
-
const InputNamespace = /* #__PURE__ */Object.assign(DuboisInput, {
|
|
9840
|
-
TextArea,
|
|
9841
|
-
Password,
|
|
9842
|
-
Group: Group$1
|
|
9843
|
-
});
|
|
9844
|
-
const Input = InputNamespace;
|
|
9845
|
-
|
|
9846
|
-
// TODO: I'm doing this to support storybook's docgen;
|
|
9847
|
-
// We should remove this once we have a better storybook integration,
|
|
9848
|
-
// since these will be exposed in the library's exports.
|
|
9849
|
-
const __INTERNAL_DO_NOT_USE__TextArea = TextArea;
|
|
9850
|
-
const __INTERNAL_DO_NOT_USE__Password = Password;
|
|
9851
|
-
const __INTERNAL_DO_NOT_USE_DEDUPE__Group = Group$1;
|
|
9852
|
-
|
|
9853
|
-
const getRadioInputStyles = _ref => {
|
|
9854
|
-
let {
|
|
9855
|
-
clsPrefix,
|
|
9856
|
-
theme,
|
|
9857
|
-
useNewStyles
|
|
9858
|
-
} = _ref;
|
|
9859
|
-
return {
|
|
9860
|
-
[".".concat(clsPrefix)]: {
|
|
9861
|
-
alignSelf: 'start',
|
|
9862
|
-
// Unchecked Styles
|
|
9863
|
-
["> .".concat(clsPrefix, "-input + .").concat(clsPrefix, "-inner")]: {
|
|
9864
|
-
width: theme.spacing.md,
|
|
9865
|
-
height: theme.spacing.md,
|
|
9866
|
-
background: useNewStyles ? theme.colors.actionDefaultBackgroundDefault : theme.colors.radioDefaultBackground,
|
|
9867
|
-
borderStyle: 'solid',
|
|
9868
|
-
borderColor: useNewStyles ? theme.colors.actionDefaultBorderDefault : theme.colors.radioDefaultBorder,
|
|
9869
|
-
boxShadow: 'unset',
|
|
9870
|
-
transform: 'unset',
|
|
9871
|
-
// This prevents an awkward jitter on the border
|
|
9872
|
-
display: 'flex',
|
|
9873
|
-
justifyContent: 'center',
|
|
9874
|
-
alignItems: 'center',
|
|
9875
|
-
borderRadius: '50%',
|
|
9876
|
-
'&:after': {
|
|
9877
|
-
all: 'unset'
|
|
9878
|
-
}
|
|
9879
|
-
},
|
|
9880
|
-
// Hover
|
|
9881
|
-
["&:not(.".concat(clsPrefix, "-disabled) > .").concat(clsPrefix, "-input:hover + .").concat(clsPrefix, "-inner")]: {
|
|
9882
|
-
borderColor: useNewStyles ? theme.colors.actionPrimaryBackgroundHover : theme.colors.radioInteractiveHover,
|
|
9883
|
-
background: useNewStyles ? theme.colors.actionDefaultBackgroundHover : theme.colors.radioInteractiveHoverSecondary
|
|
9884
|
-
},
|
|
9885
|
-
// Focus
|
|
9886
|
-
["&:not(.".concat(clsPrefix, "-disabled)> .").concat(clsPrefix, "-input:focus + .").concat(clsPrefix, "-inner")]: {
|
|
9887
|
-
borderColor: useNewStyles ? theme.colors.actionPrimaryBackgroundDefault : theme.colors.primary
|
|
9153
|
+
// Focus
|
|
9154
|
+
["&:not(.".concat(clsPrefix, "-disabled)> .").concat(clsPrefix, "-input:focus + .").concat(clsPrefix, "-inner")]: {
|
|
9155
|
+
borderColor: useNewStyles ? theme.colors.actionPrimaryBackgroundDefault : theme.colors.primary
|
|
9888
9156
|
},
|
|
9889
9157
|
// Active
|
|
9890
9158
|
["&:not(.".concat(clsPrefix, "-disabled)> .").concat(clsPrefix, "-input:active + .").concat(clsPrefix, "-inner")]: {
|
|
@@ -10048,6 +9316,7 @@ const getRadioStyles = _ref5 => {
|
|
|
10048
9316
|
};
|
|
10049
9317
|
const DuboisRadio = /*#__PURE__*/forwardRef(function Radio(_ref6, ref) {
|
|
10050
9318
|
let {
|
|
9319
|
+
children,
|
|
10051
9320
|
dangerouslySetAntdProps,
|
|
10052
9321
|
...props
|
|
10053
9322
|
} = _ref6;
|
|
@@ -10068,12 +9337,16 @@ const DuboisRadio = /*#__PURE__*/forwardRef(function Radio(_ref6, ref) {
|
|
|
10068
9337
|
}),
|
|
10069
9338
|
...props,
|
|
10070
9339
|
...dangerouslySetAntdProps,
|
|
10071
|
-
ref: ref
|
|
9340
|
+
ref: ref,
|
|
9341
|
+
children: jsx(RestoreAntDDefaultClsPrefix, {
|
|
9342
|
+
children: children
|
|
9343
|
+
})
|
|
10072
9344
|
})
|
|
10073
9345
|
});
|
|
10074
9346
|
});
|
|
10075
9347
|
const StyledRadioGroup = /*#__PURE__*/forwardRef(function StyledRadioGroup(_ref7, ref) {
|
|
10076
9348
|
let {
|
|
9349
|
+
children,
|
|
10077
9350
|
dangerouslySetAntdProps,
|
|
10078
9351
|
...props
|
|
10079
9352
|
} = _ref7;
|
|
@@ -10096,7 +9369,10 @@ const StyledRadioGroup = /*#__PURE__*/forwardRef(function StyledRadioGroup(_ref7
|
|
|
10096
9369
|
useNewStyles: USE_NEW_RADIO_STYLES
|
|
10097
9370
|
}),
|
|
10098
9371
|
...dangerouslySetAntdProps,
|
|
10099
|
-
ref: ref
|
|
9372
|
+
ref: ref,
|
|
9373
|
+
children: jsx(RestoreAntDDefaultClsPrefix, {
|
|
9374
|
+
children: children
|
|
9375
|
+
})
|
|
10100
9376
|
})
|
|
10101
9377
|
});
|
|
10102
9378
|
});
|
|
@@ -10449,7 +9725,8 @@ function getDropdownStyles(clsPrefix, theme) {
|
|
|
10449
9725
|
borderColor: theme.colors.borderDecorative,
|
|
10450
9726
|
borderWidth: 1,
|
|
10451
9727
|
borderStyle: 'solid',
|
|
10452
|
-
zIndex: theme.options.zIndexBase + 50
|
|
9728
|
+
zIndex: theme.options.zIndexBase + 50,
|
|
9729
|
+
boxShadow: theme.general.shadowLow
|
|
10453
9730
|
}),
|
|
10454
9731
|
[classItem]: {
|
|
10455
9732
|
height: theme.general.heightSm,
|
|
@@ -10639,145 +9916,12 @@ const Select = /* #__PURE__ */(() => {
|
|
|
10639
9916
|
return DuboisRefForwardedSelect;
|
|
10640
9917
|
})();
|
|
10641
9918
|
|
|
10642
|
-
|
|
9919
|
+
function RHFControlledInput(_ref) {
|
|
10643
9920
|
let {
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
const SWITCH_WIDTH = 28;
|
|
10649
|
-
const styles = {
|
|
10650
|
-
display: 'flex',
|
|
10651
|
-
alignItems: 'center',
|
|
10652
|
-
// Switch is Off
|
|
10653
|
-
["&.".concat(clsPrefix, "-switch")]: {
|
|
10654
|
-
backgroundColor: theme.colors.backgroundPrimary,
|
|
10655
|
-
border: "1px solid ".concat(theme.colors.actionDefaultBorderDefault),
|
|
10656
|
-
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
10657
|
-
boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionDefaultBorderDefault),
|
|
10658
|
-
transition: 'none'
|
|
10659
|
-
},
|
|
10660
|
-
["&:hover:not(.".concat(clsPrefix, "-switch-disabled)")]: {
|
|
10661
|
-
backgroundColor: theme.colors.actionDefaultBackgroundHover,
|
|
10662
|
-
border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundHover),
|
|
10663
|
-
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
10664
|
-
boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundHover)
|
|
10665
|
-
}
|
|
10666
|
-
},
|
|
10667
|
-
["&:active:not(.".concat(clsPrefix, "-switch-disabled)")]: {
|
|
10668
|
-
backgroundColor: theme.colors.actionDefaultBackgroundPress,
|
|
10669
|
-
border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundPress),
|
|
10670
|
-
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
10671
|
-
boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundHover)
|
|
10672
|
-
}
|
|
10673
|
-
},
|
|
10674
|
-
["&:focus-visible"]: {
|
|
10675
|
-
border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundDefault),
|
|
10676
|
-
boxShadow: 'none',
|
|
10677
|
-
outlineStyle: 'solid',
|
|
10678
|
-
outlineWidth: '1px',
|
|
10679
|
-
outlineOffset: '1px',
|
|
10680
|
-
outlineColor: theme.colors.actionDefaultBorderFocus,
|
|
10681
|
-
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
10682
|
-
boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundDefault)
|
|
10683
|
-
}
|
|
10684
|
-
},
|
|
10685
|
-
["&:focus"]: {
|
|
10686
|
-
boxShadow: 'none'
|
|
10687
|
-
}
|
|
10688
|
-
},
|
|
10689
|
-
// Switch is On
|
|
10690
|
-
["&.".concat(clsPrefix, "-switch-checked")]: {
|
|
10691
|
-
backgroundColor: theme.colors.actionPrimaryBackgroundDefault,
|
|
10692
|
-
border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundDefault),
|
|
10693
|
-
["&:hover:not(.".concat(clsPrefix, "-switch-disabled)")]: {
|
|
10694
|
-
backgroundColor: theme.colors.actionPrimaryBackgroundHover,
|
|
10695
|
-
border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundDefault)
|
|
10696
|
-
},
|
|
10697
|
-
["&:active:not(.".concat(clsPrefix, "-switch-disabled)")]: {
|
|
10698
|
-
backgroundColor: theme.colors.actionPrimaryBackgroundPress
|
|
10699
|
-
},
|
|
10700
|
-
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
10701
|
-
boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundDefault)
|
|
10702
|
-
},
|
|
10703
|
-
["&.".concat(clsPrefix, "-switch-disabled")]: {
|
|
10704
|
-
backgroundColor: theme.colors.actionDisabledBackground,
|
|
10705
|
-
border: "1px solid ".concat(theme.colors.actionDisabledBackground),
|
|
10706
|
-
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
10707
|
-
boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionDisabledBackground)
|
|
10708
|
-
}
|
|
10709
|
-
}
|
|
10710
|
-
},
|
|
10711
|
-
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
10712
|
-
backgroundColor: theme.colors.backgroundPrimary
|
|
10713
|
-
},
|
|
10714
|
-
["&& + .".concat(clsPrefix, "-hint, && + .").concat(clsPrefix, "-form-message")]: {
|
|
10715
|
-
paddingLeft: theme.spacing.sm + SWITCH_WIDTH
|
|
10716
|
-
},
|
|
10717
|
-
["&& + .".concat(clsPrefix, "-form-message")]: {
|
|
10718
|
-
marginTop: 0
|
|
10719
|
-
},
|
|
10720
|
-
[".".concat(clsPrefix, "-click-animating-node")]: {
|
|
10721
|
-
animation: 'none'
|
|
10722
|
-
}
|
|
10723
|
-
};
|
|
10724
|
-
const importantStyles = importantify(styles);
|
|
10725
|
-
return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getSwitchWithLabelStyles;");
|
|
10726
|
-
};
|
|
10727
|
-
const Switch = _ref2 => {
|
|
10728
|
-
let {
|
|
10729
|
-
dangerouslySetAntdProps,
|
|
10730
|
-
label,
|
|
10731
|
-
labelProps,
|
|
10732
|
-
...props
|
|
10733
|
-
} = _ref2;
|
|
10734
|
-
const {
|
|
10735
|
-
theme,
|
|
10736
|
-
classNamePrefix
|
|
10737
|
-
} = useDesignSystemTheme();
|
|
10738
|
-
return label ? jsx(DesignSystemAntDConfigProvider, {
|
|
10739
|
-
children: jsxs("div", {
|
|
10740
|
-
css: getSwitchWithLabelStyles({
|
|
10741
|
-
clsPrefix: classNamePrefix,
|
|
10742
|
-
theme
|
|
10743
|
-
}),
|
|
10744
|
-
children: [jsx(Switch$1, {
|
|
10745
|
-
...props,
|
|
10746
|
-
...dangerouslySetAntdProps,
|
|
10747
|
-
css: /*#__PURE__*/css({
|
|
10748
|
-
... /*#__PURE__*/css(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:Switch;"),
|
|
10749
|
-
...getSwitchWithLabelStyles({
|
|
10750
|
-
clsPrefix: classNamePrefix,
|
|
10751
|
-
theme
|
|
10752
|
-
})
|
|
10753
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:Switch;")
|
|
10754
|
-
}), jsx(Label, {
|
|
10755
|
-
inline: true,
|
|
10756
|
-
...labelProps,
|
|
10757
|
-
children: label
|
|
10758
|
-
})]
|
|
10759
|
-
})
|
|
10760
|
-
}) : jsx(DesignSystemAntDConfigProvider, {
|
|
10761
|
-
children: jsx(Switch$1, {
|
|
10762
|
-
...props,
|
|
10763
|
-
...dangerouslySetAntdProps,
|
|
10764
|
-
css: /*#__PURE__*/css({
|
|
10765
|
-
... /*#__PURE__*/css(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:Switch;"),
|
|
10766
|
-
...getSwitchWithLabelStyles({
|
|
10767
|
-
clsPrefix: classNamePrefix,
|
|
10768
|
-
theme
|
|
10769
|
-
})
|
|
10770
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:Switch;")
|
|
10771
|
-
})
|
|
10772
|
-
});
|
|
10773
|
-
};
|
|
10774
|
-
|
|
10775
|
-
function RHFControlledInput(_ref) {
|
|
10776
|
-
let {
|
|
10777
|
-
name,
|
|
10778
|
-
control,
|
|
10779
|
-
rules,
|
|
10780
|
-
...restProps
|
|
9921
|
+
name,
|
|
9922
|
+
control,
|
|
9923
|
+
rules,
|
|
9924
|
+
...restProps
|
|
10781
9925
|
} = _ref;
|
|
10782
9926
|
const {
|
|
10783
9927
|
field
|
|
@@ -10876,7 +10020,7 @@ function RHFControlledCheckboxGroup(_ref5) {
|
|
|
10876
10020
|
value: field.value
|
|
10877
10021
|
});
|
|
10878
10022
|
}
|
|
10879
|
-
function
|
|
10023
|
+
function RHFControlledCheckbox(_ref6) {
|
|
10880
10024
|
let {
|
|
10881
10025
|
name,
|
|
10882
10026
|
control,
|
|
@@ -10890,12 +10034,21 @@ function RHFControlledRadioGroup(_ref6) {
|
|
|
10890
10034
|
control: control,
|
|
10891
10035
|
rules: rules
|
|
10892
10036
|
});
|
|
10893
|
-
|
|
10894
|
-
|
|
10895
|
-
|
|
10037
|
+
const {
|
|
10038
|
+
theme
|
|
10039
|
+
} = useDesignSystemTheme();
|
|
10040
|
+
return jsx("div", {
|
|
10041
|
+
css: /*#__PURE__*/css({
|
|
10042
|
+
marginTop: theme.spacing.sm
|
|
10043
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:RHFControlledCheckbox;"),
|
|
10044
|
+
children: jsx(Checkbox, {
|
|
10045
|
+
...restProps,
|
|
10046
|
+
...field,
|
|
10047
|
+
checked: field.value
|
|
10048
|
+
})
|
|
10896
10049
|
});
|
|
10897
10050
|
}
|
|
10898
|
-
function
|
|
10051
|
+
function RHFControlledRadioGroup(_ref7) {
|
|
10899
10052
|
let {
|
|
10900
10053
|
name,
|
|
10901
10054
|
control,
|
|
@@ -10903,19 +10056,15 @@ function RHFControlledSwitch(_ref7) {
|
|
|
10903
10056
|
...restProps
|
|
10904
10057
|
} = _ref7;
|
|
10905
10058
|
const {
|
|
10906
|
-
field
|
|
10907
|
-
value,
|
|
10908
|
-
...restField
|
|
10909
|
-
}
|
|
10059
|
+
field
|
|
10910
10060
|
} = useController({
|
|
10911
10061
|
name: name,
|
|
10912
10062
|
control: control,
|
|
10913
10063
|
rules: rules
|
|
10914
10064
|
});
|
|
10915
|
-
return jsx(
|
|
10065
|
+
return jsx(Radio.Group, {
|
|
10916
10066
|
...restProps,
|
|
10917
|
-
...
|
|
10918
|
-
checked: value
|
|
10067
|
+
...field
|
|
10919
10068
|
});
|
|
10920
10069
|
}
|
|
10921
10070
|
const RHFControlledComponents = {
|
|
@@ -10923,9 +10072,9 @@ const RHFControlledComponents = {
|
|
|
10923
10072
|
Password: RHFControlledPasswordInput,
|
|
10924
10073
|
TextArea: RHFControlledTextArea,
|
|
10925
10074
|
Select: RHFControlledSelect,
|
|
10075
|
+
Checkbox: RHFControlledCheckbox,
|
|
10926
10076
|
CheckboxGroup: RHFControlledCheckboxGroup,
|
|
10927
|
-
RadioGroup: RHFControlledRadioGroup
|
|
10928
|
-
Switch: RHFControlledSwitch
|
|
10077
|
+
RadioGroup: RHFControlledRadioGroup
|
|
10929
10078
|
};
|
|
10930
10079
|
|
|
10931
10080
|
const FormUI = {
|
|
@@ -10974,7 +10123,7 @@ const Space = _ref => {
|
|
|
10974
10123
|
});
|
|
10975
10124
|
};
|
|
10976
10125
|
|
|
10977
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
10126
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__$3() { 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)."; }
|
|
10978
10127
|
const getHeaderStyles = (clsPrefix, theme) => {
|
|
10979
10128
|
const breadcrumbClass = ".".concat(clsPrefix, "-breadcrumb");
|
|
10980
10129
|
const styles = {
|
|
@@ -10984,21 +10133,21 @@ const getHeaderStyles = (clsPrefix, theme) => {
|
|
|
10984
10133
|
};
|
|
10985
10134
|
return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:getHeaderStyles;");
|
|
10986
10135
|
};
|
|
10987
|
-
var _ref$
|
|
10136
|
+
var _ref$1 = process.env.NODE_ENV === "production" ? {
|
|
10988
10137
|
name: "5s4ezj",
|
|
10989
10138
|
styles: "display:inline-flex;vertical-align:middle;align-items:center;margin-left:8px"
|
|
10990
10139
|
} : {
|
|
10991
10140
|
name: "gxikdi-titleAddOnsWrapper",
|
|
10992
10141
|
styles: "display:inline-flex;vertical-align:middle;align-items:center;margin-left:8px;label:titleAddOnsWrapper;",
|
|
10993
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
10142
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
|
|
10994
10143
|
};
|
|
10995
|
-
var _ref2
|
|
10144
|
+
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
10996
10145
|
name: "1q4vxyr",
|
|
10997
10146
|
styles: "margin-left:8px"
|
|
10998
10147
|
} : {
|
|
10999
10148
|
name: "ozrfom-buttonContainer",
|
|
11000
10149
|
styles: "margin-left:8px;label:buttonContainer;",
|
|
11001
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
10150
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
|
|
11002
10151
|
};
|
|
11003
10152
|
var _ref3$1 = process.env.NODE_ENV === "production" ? {
|
|
11004
10153
|
name: "s079uh",
|
|
@@ -11006,15 +10155,15 @@ var _ref3$1 = process.env.NODE_ENV === "production" ? {
|
|
|
11006
10155
|
} : {
|
|
11007
10156
|
name: "1ky5whb-titleIfOtherElementsPresent",
|
|
11008
10157
|
styles: "margin-top:2px;label:titleIfOtherElementsPresent;",
|
|
11009
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
10158
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
|
|
11010
10159
|
};
|
|
11011
|
-
var _ref4 = process.env.NODE_ENV === "production" ? {
|
|
10160
|
+
var _ref4$1 = process.env.NODE_ENV === "production" ? {
|
|
11012
10161
|
name: "18hxk3h",
|
|
11013
10162
|
styles: "margin-top:0;margin-bottom:0 !important"
|
|
11014
10163
|
} : {
|
|
11015
10164
|
name: "abhq57-title",
|
|
11016
10165
|
styles: "margin-top:0;margin-bottom:0 !important;label:title;",
|
|
11017
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
10166
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
|
|
11018
10167
|
};
|
|
11019
10168
|
var _ref5 = process.env.NODE_ENV === "production" ? {
|
|
11020
10169
|
name: "1cl2a0e",
|
|
@@ -11022,7 +10171,7 @@ var _ref5 = process.env.NODE_ENV === "production" ? {
|
|
|
11022
10171
|
} : {
|
|
11023
10172
|
name: "m9gz0x-titleWrapper",
|
|
11024
10173
|
styles: "display:flex;align-items:flex-start;justify-content:space-between;label:titleWrapper;",
|
|
11025
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
10174
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
|
|
11026
10175
|
};
|
|
11027
10176
|
const Header$1 = props => {
|
|
11028
10177
|
const {
|
|
@@ -11037,11 +10186,11 @@ const Header$1 = props => {
|
|
|
11037
10186
|
marginBottom: 2,
|
|
11038
10187
|
lineHeight: theme.typography.lineHeightBase
|
|
11039
10188
|
}, process.env.NODE_ENV === "production" ? "" : ";label:breadcrumbWrapper;"),
|
|
11040
|
-
title: _ref4,
|
|
10189
|
+
title: _ref4$1,
|
|
11041
10190
|
// TODO: Look into a more emotion-idomatic way of doing this.
|
|
11042
10191
|
titleIfOtherElementsPresent: _ref3$1,
|
|
11043
|
-
buttonContainer: _ref2
|
|
11044
|
-
titleAddOnsWrapper: _ref$
|
|
10192
|
+
buttonContainer: _ref2,
|
|
10193
|
+
titleAddOnsWrapper: _ref$1
|
|
11045
10194
|
};
|
|
11046
10195
|
return jsxs("div", {
|
|
11047
10196
|
css: [getHeaderStyles(clsPrefix, theme), props.dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Header;"],
|
|
@@ -11151,6 +10300,225 @@ const Layout = /* #__PURE__ */(() => {
|
|
|
11151
10300
|
return Layout;
|
|
11152
10301
|
})();
|
|
11153
10302
|
|
|
10303
|
+
function getPaginationEmotionStyles(clsPrefix, theme) {
|
|
10304
|
+
const classRoot = ".".concat(clsPrefix, "-pagination");
|
|
10305
|
+
const classItem = ".".concat(clsPrefix, "-pagination-item");
|
|
10306
|
+
const classLink = ".".concat(clsPrefix, "-pagination-item-link");
|
|
10307
|
+
const classActive = ".".concat(clsPrefix, "-pagination-item-active");
|
|
10308
|
+
const classEllipsis = ".".concat(clsPrefix, "-pagination-item-ellipsis");
|
|
10309
|
+
const classNext = ".".concat(clsPrefix, "-pagination-next");
|
|
10310
|
+
const classPrev = ".".concat(clsPrefix, "-pagination-prev");
|
|
10311
|
+
const classJumpNext = ".".concat(clsPrefix, "-pagination-jump-next");
|
|
10312
|
+
const classJumpPrev = ".".concat(clsPrefix, "-pagination-jump-prev");
|
|
10313
|
+
const classSizeChanger = ".".concat(clsPrefix, "-pagination-options-size-changer");
|
|
10314
|
+
const classOptions = ".".concat(clsPrefix, "-pagination-options");
|
|
10315
|
+
const styles = {
|
|
10316
|
+
'span[role=img]': {
|
|
10317
|
+
color: theme.colors.textSecondary,
|
|
10318
|
+
'> *': {
|
|
10319
|
+
color: 'inherit'
|
|
10320
|
+
}
|
|
10321
|
+
},
|
|
10322
|
+
[classItem]: {
|
|
10323
|
+
backgroundColor: 'none',
|
|
10324
|
+
border: 'none',
|
|
10325
|
+
color: theme.colors.textSecondary,
|
|
10326
|
+
'&:focus-visible': {
|
|
10327
|
+
outline: 'auto'
|
|
10328
|
+
},
|
|
10329
|
+
'> a': {
|
|
10330
|
+
color: theme.colors.textSecondary,
|
|
10331
|
+
'&:hover': {
|
|
10332
|
+
color: theme.colors.actionDefaultTextHover
|
|
10333
|
+
},
|
|
10334
|
+
'&:active': {
|
|
10335
|
+
color: theme.colors.actionDefaultTextPress
|
|
10336
|
+
}
|
|
10337
|
+
},
|
|
10338
|
+
'&:hover': {
|
|
10339
|
+
backgroundColor: theme.colors.actionDefaultBackgroundHover
|
|
10340
|
+
},
|
|
10341
|
+
'&:active': {
|
|
10342
|
+
backgroundColor: theme.colors.actionDefaultBackgroundPress
|
|
10343
|
+
}
|
|
10344
|
+
},
|
|
10345
|
+
[classActive]: {
|
|
10346
|
+
backgroundColor: theme.colors.actionDefaultBackgroundPress,
|
|
10347
|
+
color: theme.colors.actionDefaultTextPress,
|
|
10348
|
+
border: 'none',
|
|
10349
|
+
'> a': {
|
|
10350
|
+
color: theme.colors.actionDefaultTextPress
|
|
10351
|
+
},
|
|
10352
|
+
'&:focus-visible': {
|
|
10353
|
+
outline: 'auto'
|
|
10354
|
+
},
|
|
10355
|
+
'&:hover': {
|
|
10356
|
+
backgroundColor: theme.colors.actionDefaultBackgroundPress,
|
|
10357
|
+
color: theme.colors.actionDefaultTextPress
|
|
10358
|
+
}
|
|
10359
|
+
},
|
|
10360
|
+
[classLink]: {
|
|
10361
|
+
border: 'none',
|
|
10362
|
+
color: theme.colors.textSecondary,
|
|
10363
|
+
'&[disabled]': {
|
|
10364
|
+
display: 'none'
|
|
10365
|
+
},
|
|
10366
|
+
'&:hover': {
|
|
10367
|
+
backgroundColor: theme.colors.actionDefaultBackgroundHover
|
|
10368
|
+
},
|
|
10369
|
+
'&:active': {
|
|
10370
|
+
backgroundColor: theme.colors.actionDefaultBackgroundPress
|
|
10371
|
+
},
|
|
10372
|
+
'&:focus-visible': {
|
|
10373
|
+
outline: 'auto'
|
|
10374
|
+
}
|
|
10375
|
+
},
|
|
10376
|
+
[classEllipsis]: {
|
|
10377
|
+
color: 'inherit'
|
|
10378
|
+
},
|
|
10379
|
+
["".concat(classNext, ", ").concat(classPrev, ", ").concat(classJumpNext, ", ").concat(classJumpPrev)]: {
|
|
10380
|
+
color: theme.colors.textSecondary,
|
|
10381
|
+
'&:hover': {
|
|
10382
|
+
backgroundColor: theme.colors.actionDefaultBackgroundHover
|
|
10383
|
+
},
|
|
10384
|
+
'&:active': {
|
|
10385
|
+
backgroundColor: theme.colors.actionDefaultBackgroundPress
|
|
10386
|
+
},
|
|
10387
|
+
'&:focus-visible': {
|
|
10388
|
+
outline: 'auto'
|
|
10389
|
+
}
|
|
10390
|
+
},
|
|
10391
|
+
["&".concat(classRoot, ".mini, ").concat(classRoot, ".mini")]: {
|
|
10392
|
+
["".concat(classItem, ", ").concat(classNext, ", ").concat(classPrev, ", ").concat(classJumpNext, ", ").concat(classJumpPrev)]: {
|
|
10393
|
+
height: '32px',
|
|
10394
|
+
width: '32px',
|
|
10395
|
+
lineHeight: '32px'
|
|
10396
|
+
},
|
|
10397
|
+
[classSizeChanger]: {
|
|
10398
|
+
marginLeft: 4
|
|
10399
|
+
},
|
|
10400
|
+
["input, ".concat(classOptions)]: {
|
|
10401
|
+
height: '32px'
|
|
10402
|
+
}
|
|
10403
|
+
}
|
|
10404
|
+
};
|
|
10405
|
+
const importantStyles = importantify(styles);
|
|
10406
|
+
return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getPaginationEmotionStyles;");
|
|
10407
|
+
}
|
|
10408
|
+
const Pagination = function Pagination(_ref) {
|
|
10409
|
+
let {
|
|
10410
|
+
currentPageIndex,
|
|
10411
|
+
pageSize = 10,
|
|
10412
|
+
numTotal,
|
|
10413
|
+
onChange,
|
|
10414
|
+
dangerouslySetAntdProps
|
|
10415
|
+
} = _ref;
|
|
10416
|
+
const {
|
|
10417
|
+
classNamePrefix,
|
|
10418
|
+
theme
|
|
10419
|
+
} = useDesignSystemTheme();
|
|
10420
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
10421
|
+
children: jsx(Pagination$1, {
|
|
10422
|
+
css: getPaginationEmotionStyles(classNamePrefix, theme),
|
|
10423
|
+
current: currentPageIndex,
|
|
10424
|
+
pageSize: pageSize,
|
|
10425
|
+
responsive: false,
|
|
10426
|
+
total: numTotal,
|
|
10427
|
+
onChange: onChange,
|
|
10428
|
+
showSizeChanger: false,
|
|
10429
|
+
showQuickJumper: true,
|
|
10430
|
+
size: 'small',
|
|
10431
|
+
...dangerouslySetAntdProps
|
|
10432
|
+
})
|
|
10433
|
+
});
|
|
10434
|
+
};
|
|
10435
|
+
|
|
10436
|
+
const getTableEmotionStyles = (classNamePrefix, theme, scrollableInFlexibleContainer) => {
|
|
10437
|
+
const styles = [/*#__PURE__*/css({
|
|
10438
|
+
[".".concat(classNamePrefix, "-table-pagination")]: {
|
|
10439
|
+
...getPaginationEmotionStyles(classNamePrefix, theme)
|
|
10440
|
+
}
|
|
10441
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:styles;")];
|
|
10442
|
+
if (scrollableInFlexibleContainer) {
|
|
10443
|
+
styles.push(getScrollableInFlexibleContainerStyles(classNamePrefix));
|
|
10444
|
+
}
|
|
10445
|
+
return styles;
|
|
10446
|
+
};
|
|
10447
|
+
const getScrollableInFlexibleContainerStyles = clsPrefix => {
|
|
10448
|
+
const styles = {
|
|
10449
|
+
minHeight: 0,
|
|
10450
|
+
[".".concat(clsPrefix, "-spin-nested-loading")]: {
|
|
10451
|
+
height: '100%'
|
|
10452
|
+
},
|
|
10453
|
+
[".".concat(clsPrefix, "-spin-container")]: {
|
|
10454
|
+
height: '100%',
|
|
10455
|
+
display: 'flex',
|
|
10456
|
+
flexDirection: 'column'
|
|
10457
|
+
},
|
|
10458
|
+
[".".concat(clsPrefix, "-table-container")]: {
|
|
10459
|
+
height: '100%',
|
|
10460
|
+
display: 'flex',
|
|
10461
|
+
flexDirection: 'column'
|
|
10462
|
+
},
|
|
10463
|
+
[".".concat(clsPrefix, "-table")]: {
|
|
10464
|
+
minHeight: 0
|
|
10465
|
+
},
|
|
10466
|
+
[".".concat(clsPrefix, "-table-header")]: {
|
|
10467
|
+
flexShrink: 0
|
|
10468
|
+
},
|
|
10469
|
+
[".".concat(clsPrefix, "-table-body")]: {
|
|
10470
|
+
minHeight: 0
|
|
10471
|
+
}
|
|
10472
|
+
};
|
|
10473
|
+
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getScrollableInFlexibleContainerStyles;");
|
|
10474
|
+
};
|
|
10475
|
+
const DEFAULT_LOADING_SPIN_PROPS = {
|
|
10476
|
+
indicator: jsx(Spinner, {})
|
|
10477
|
+
};
|
|
10478
|
+
|
|
10479
|
+
/**
|
|
10480
|
+
* `LegacyTable` is deprecated in favor of the new `Table` component
|
|
10481
|
+
* For more information please join #dubois-table-early-adopters in Slack.
|
|
10482
|
+
* @deprecated
|
|
10483
|
+
*/
|
|
10484
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
10485
|
+
const LegacyTable = props => {
|
|
10486
|
+
const {
|
|
10487
|
+
classNamePrefix,
|
|
10488
|
+
theme
|
|
10489
|
+
} = useDesignSystemTheme();
|
|
10490
|
+
const {
|
|
10491
|
+
loading,
|
|
10492
|
+
scrollableInFlexibleContainer,
|
|
10493
|
+
children,
|
|
10494
|
+
...tableProps
|
|
10495
|
+
} = props;
|
|
10496
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
10497
|
+
children: jsx(Table$1
|
|
10498
|
+
// NOTE(FEINF-1273): The default loading indicator from AntD does not animate
|
|
10499
|
+
// and the design system spinner is recommended over the AntD one. Therefore,
|
|
10500
|
+
// if `loading` is `true`, render the design system <Spinner/> component.
|
|
10501
|
+
, {
|
|
10502
|
+
loading: loading === true ? DEFAULT_LOADING_SPIN_PROPS : loading,
|
|
10503
|
+
scroll: scrollableInFlexibleContainer ? {
|
|
10504
|
+
y: 'auto'
|
|
10505
|
+
} : undefined,
|
|
10506
|
+
...tableProps,
|
|
10507
|
+
css: getTableEmotionStyles(classNamePrefix, theme, Boolean(scrollableInFlexibleContainer)),
|
|
10508
|
+
children: jsx(RestoreAntDDefaultClsPrefix, {
|
|
10509
|
+
children: children
|
|
10510
|
+
})
|
|
10511
|
+
})
|
|
10512
|
+
});
|
|
10513
|
+
};
|
|
10514
|
+
|
|
10515
|
+
/**
|
|
10516
|
+
* `LegacyTable` is deprecated in favor of the new `Table` component
|
|
10517
|
+
* For more information please join #dubois-table-early-adopters in Slack.
|
|
10518
|
+
* @deprecated
|
|
10519
|
+
*/
|
|
10520
|
+
const Table = LegacyTable;
|
|
10521
|
+
|
|
11154
10522
|
/**
|
|
11155
10523
|
* @deprecated Use `DropdownMenu` instead.
|
|
11156
10524
|
*/
|
|
@@ -11196,7 +10564,7 @@ const Menu = /* #__PURE__ */(() => {
|
|
|
11196
10564
|
return Menu;
|
|
11197
10565
|
})();
|
|
11198
10566
|
|
|
11199
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
10567
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__$2() { 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)."; }
|
|
11200
10568
|
const SIZE_PRESETS = {
|
|
11201
10569
|
normal: 640,
|
|
11202
10570
|
wide: 880
|
|
@@ -11297,7 +10665,8 @@ const getModalEmotionStyles = args => {
|
|
|
11297
10665
|
overflow: 'hidden',
|
|
11298
10666
|
paddingBottom: MODAL_PADDING,
|
|
11299
10667
|
display: 'flex',
|
|
11300
|
-
flexDirection: 'column'
|
|
10668
|
+
flexDirection: 'column',
|
|
10669
|
+
boxShadow: theme.general.shadowHigh
|
|
11301
10670
|
},
|
|
11302
10671
|
[classNameBody]: {
|
|
11303
10672
|
overflowY: 'auto',
|
|
@@ -11319,7 +10688,46 @@ const getModalEmotionStyles = args => {
|
|
|
11319
10688
|
...getAnimationCss(theme.options.enableAnimation)
|
|
11320
10689
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getModalEmotionStyles;");
|
|
11321
10690
|
};
|
|
11322
|
-
|
|
10691
|
+
|
|
10692
|
+
/**
|
|
10693
|
+
* Render default footer with our buttons. Copied from AntD.
|
|
10694
|
+
*/
|
|
10695
|
+
function DefaultFooter(_ref) {
|
|
10696
|
+
let {
|
|
10697
|
+
onOk,
|
|
10698
|
+
onCancel,
|
|
10699
|
+
confirmLoading,
|
|
10700
|
+
okText,
|
|
10701
|
+
cancelText,
|
|
10702
|
+
okButtonProps,
|
|
10703
|
+
cancelButtonProps,
|
|
10704
|
+
autoFocusButton
|
|
10705
|
+
} = _ref;
|
|
10706
|
+
const handleCancel = e => {
|
|
10707
|
+
onCancel === null || onCancel === void 0 ? void 0 : onCancel(e);
|
|
10708
|
+
};
|
|
10709
|
+
const handleOk = e => {
|
|
10710
|
+
onOk === null || onOk === void 0 ? void 0 : onOk(e);
|
|
10711
|
+
};
|
|
10712
|
+
return jsxs(Fragment, {
|
|
10713
|
+
children: [cancelText && jsx(Button, {
|
|
10714
|
+
onClick: handleCancel,
|
|
10715
|
+
autoFocus: autoFocusButton === 'cancel',
|
|
10716
|
+
dangerouslyUseFocusPseudoClass: true,
|
|
10717
|
+
...cancelButtonProps,
|
|
10718
|
+
children: cancelText
|
|
10719
|
+
}), okText && jsx(Button, {
|
|
10720
|
+
loading: confirmLoading,
|
|
10721
|
+
onClick: handleOk,
|
|
10722
|
+
type: "primary",
|
|
10723
|
+
autoFocus: autoFocusButton === 'ok',
|
|
10724
|
+
dangerouslyUseFocusPseudoClass: true,
|
|
10725
|
+
...okButtonProps,
|
|
10726
|
+
children: okText
|
|
10727
|
+
})]
|
|
10728
|
+
});
|
|
10729
|
+
}
|
|
10730
|
+
function Modal(_ref2) {
|
|
11323
10731
|
let {
|
|
11324
10732
|
okButtonProps,
|
|
11325
10733
|
cancelButtonProps,
|
|
@@ -11329,44 +10737,13 @@ function Modal(_ref) {
|
|
|
11329
10737
|
footer,
|
|
11330
10738
|
size = 'normal',
|
|
11331
10739
|
verticalSizing = 'dynamic',
|
|
10740
|
+
autoFocusButton,
|
|
11332
10741
|
...props
|
|
11333
|
-
} =
|
|
10742
|
+
} = _ref2;
|
|
11334
10743
|
const {
|
|
11335
10744
|
theme,
|
|
11336
10745
|
classNamePrefix
|
|
11337
10746
|
} = useDesignSystemTheme();
|
|
11338
|
-
const handleCancel = e => {
|
|
11339
|
-
var _props$onCancel;
|
|
11340
|
-
(_props$onCancel = props.onCancel) === null || _props$onCancel === void 0 ? void 0 : _props$onCancel.call(props, e);
|
|
11341
|
-
};
|
|
11342
|
-
const handleOk = e => {
|
|
11343
|
-
var _props$onOk;
|
|
11344
|
-
(_props$onOk = props.onOk) === null || _props$onOk === void 0 ? void 0 : _props$onOk.call(props, e);
|
|
11345
|
-
};
|
|
11346
|
-
|
|
11347
|
-
/**
|
|
11348
|
-
* Render default footer with our buttons. Copied from AntD.
|
|
11349
|
-
*/
|
|
11350
|
-
const renderDefaultFooter = () => {
|
|
11351
|
-
const {
|
|
11352
|
-
okText,
|
|
11353
|
-
cancelText,
|
|
11354
|
-
confirmLoading
|
|
11355
|
-
} = props;
|
|
11356
|
-
return jsxs(Fragment, {
|
|
11357
|
-
children: [cancelText && jsx(Button, {
|
|
11358
|
-
onClick: handleCancel,
|
|
11359
|
-
...cancelButtonProps,
|
|
11360
|
-
children: cancelText
|
|
11361
|
-
}), okText && jsx(Button, {
|
|
11362
|
-
loading: confirmLoading,
|
|
11363
|
-
onClick: handleOk,
|
|
11364
|
-
type: "primary",
|
|
11365
|
-
...okButtonProps,
|
|
11366
|
-
children: okText
|
|
11367
|
-
})]
|
|
11368
|
-
});
|
|
11369
|
-
};
|
|
11370
10747
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
11371
10748
|
children: jsx(Modal$1, {
|
|
11372
10749
|
css: getModalEmotionStyles({
|
|
@@ -11379,7 +10756,16 @@ function Modal(_ref) {
|
|
|
11379
10756
|
children: title
|
|
11380
10757
|
}),
|
|
11381
10758
|
footer: jsx(RestoreAntDDefaultClsPrefix, {
|
|
11382
|
-
children: footer === undefined ?
|
|
10759
|
+
children: footer === undefined ? jsx(DefaultFooter, {
|
|
10760
|
+
onOk: props.onOk,
|
|
10761
|
+
onCancel: props.onCancel,
|
|
10762
|
+
confirmLoading: props.confirmLoading,
|
|
10763
|
+
okText: props.okText,
|
|
10764
|
+
cancelText: props.cancelText,
|
|
10765
|
+
okButtonProps: okButtonProps,
|
|
10766
|
+
cancelButtonProps: cancelButtonProps,
|
|
10767
|
+
autoFocusButton: autoFocusButton
|
|
10768
|
+
}) : footer
|
|
11383
10769
|
}),
|
|
11384
10770
|
width: size ? SIZE_PRESETS[size] : undefined,
|
|
11385
10771
|
closeIcon: jsx(CloseIcon, {}),
|
|
@@ -11393,21 +10779,21 @@ function Modal(_ref) {
|
|
|
11393
10779
|
})
|
|
11394
10780
|
});
|
|
11395
10781
|
}
|
|
11396
|
-
var
|
|
10782
|
+
var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
11397
10783
|
name: "b9hrb",
|
|
11398
10784
|
styles: "position:relative;display:inline-flex;align-items:center"
|
|
11399
10785
|
} : {
|
|
11400
10786
|
name: "1jkwrsj-titleComp",
|
|
11401
10787
|
styles: "position:relative;display:inline-flex;align-items:center;label:titleComp;",
|
|
11402
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
10788
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
11403
10789
|
};
|
|
11404
|
-
var
|
|
10790
|
+
var _ref4 = process.env.NODE_ENV === "production" ? {
|
|
11405
10791
|
name: "1o6wc9k",
|
|
11406
10792
|
styles: "padding-left:6px"
|
|
11407
10793
|
} : {
|
|
11408
10794
|
name: "i303lp-titleComp",
|
|
11409
10795
|
styles: "padding-left:6px;label:titleComp;",
|
|
11410
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
10796
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
11411
10797
|
};
|
|
11412
10798
|
function DangerModal(props) {
|
|
11413
10799
|
const {
|
|
@@ -11429,7 +10815,7 @@ function DangerModal(props) {
|
|
|
11429
10815
|
const iconSize = useNewIcons ? 18 : 20;
|
|
11430
10816
|
const iconFontSize = useNewIcons ? 18 : 22;
|
|
11431
10817
|
const titleComp = jsxs("div", {
|
|
11432
|
-
css:
|
|
10818
|
+
css: _ref3,
|
|
11433
10819
|
children: [jsx(DangerIcon, {
|
|
11434
10820
|
css: /*#__PURE__*/css({
|
|
11435
10821
|
color: theme.colors.textValidationDanger,
|
|
@@ -11439,7 +10825,7 @@ function DangerModal(props) {
|
|
|
11439
10825
|
fontSize: iconFontSize
|
|
11440
10826
|
}, process.env.NODE_ENV === "production" ? "" : ";label:titleComp;")
|
|
11441
10827
|
}), jsx("div", {
|
|
11442
|
-
css:
|
|
10828
|
+
css: _ref4,
|
|
11443
10829
|
children: title
|
|
11444
10830
|
})]
|
|
11445
10831
|
});
|
|
@@ -11480,7 +10866,8 @@ function useNotification() {
|
|
|
11480
10866
|
...defaultProps,
|
|
11481
10867
|
...args,
|
|
11482
10868
|
style: {
|
|
11483
|
-
zIndex: theme.options.zIndexBase + 30
|
|
10869
|
+
zIndex: theme.options.zIndexBase + 30,
|
|
10870
|
+
boxShadow: theme.general.shadowLow
|
|
11484
10871
|
}
|
|
11485
10872
|
};
|
|
11486
10873
|
const iconClassName = "".concat(clsPrefix, "-notice-icon-").concat(mergedArgs.type);
|
|
@@ -11523,6 +10910,8 @@ function useNotification() {
|
|
|
11523
10910
|
success
|
|
11524
10911
|
};
|
|
11525
10912
|
}, [open]);
|
|
10913
|
+
|
|
10914
|
+
// eslint-disable-next-line react/jsx-key -- TODO(FEINF-1756)
|
|
11526
10915
|
return [wrappedNotificationAPI, jsx(DesignSystemAntDConfigProvider, {
|
|
11527
10916
|
children: contextHolder
|
|
11528
10917
|
})];
|
|
@@ -11591,7 +10980,7 @@ const getToastRootStyle = (theme, classNamePrefix) => {
|
|
|
11591
10980
|
background: theme.colors.backgroundPrimary,
|
|
11592
10981
|
padding: 12,
|
|
11593
10982
|
columnGap: 4,
|
|
11594
|
-
boxShadow:
|
|
10983
|
+
boxShadow: theme.general.shadowLow,
|
|
11595
10984
|
borderRadius: theme.general.borderRadiusBase,
|
|
11596
10985
|
lineHeight: '20px',
|
|
11597
10986
|
gridTemplateRows: '[header] auto [content] auto',
|
|
@@ -11731,7 +11120,7 @@ const getCloseStyles = theme => {
|
|
|
11731
11120
|
top: 6
|
|
11732
11121
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getCloseStyles;");
|
|
11733
11122
|
};
|
|
11734
|
-
const Close = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
11123
|
+
const Close$1 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
11735
11124
|
const {
|
|
11736
11125
|
theme
|
|
11737
11126
|
} = useDesignSystemTheme();
|
|
@@ -11769,175 +11158,40 @@ const Provider = _ref4 => {
|
|
|
11769
11158
|
const Viewport = props => {
|
|
11770
11159
|
const {
|
|
11771
11160
|
theme
|
|
11772
|
-
} = useDesignSystemTheme();
|
|
11773
|
-
return jsx(Toast.Viewport, {
|
|
11774
|
-
className: DU_BOIS_ENABLE_ANIMATION_CLASSNAME,
|
|
11775
|
-
style: getViewportStyle(theme),
|
|
11776
|
-
...props
|
|
11777
|
-
});
|
|
11778
|
-
};
|
|
11779
|
-
|
|
11780
|
-
var NotificationV2 = /*#__PURE__*/Object.freeze({
|
|
11781
|
-
__proto__: null,
|
|
11782
|
-
Root: Root$1,
|
|
11783
|
-
Title: Title,
|
|
11784
|
-
Description: Description,
|
|
11785
|
-
Close: Close,
|
|
11786
|
-
Provider: Provider,
|
|
11787
|
-
Viewport: Viewport
|
|
11788
|
-
});
|
|
11789
|
-
|
|
11790
|
-
|
|
11791
|
-
var _ref$1 = process.env.NODE_ENV === "production" ? {
|
|
11792
|
-
name: "1dw6hj0",
|
|
11793
|
-
styles: "padding-left:16px;padding-right:16px"
|
|
11794
|
-
} : {
|
|
11795
|
-
name: "xioo5t-PageWrapper",
|
|
11796
|
-
styles: "padding-left:16px;padding-right:16px;label:PageWrapper;",
|
|
11797
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
11798
|
-
};
|
|
11799
|
-
const PageWrapper = _ref2 => {
|
|
11800
|
-
let {
|
|
11801
|
-
children,
|
|
11802
|
-
...props
|
|
11803
|
-
} = _ref2;
|
|
11804
|
-
return jsx("div", {
|
|
11805
|
-
css: _ref$1,
|
|
11806
|
-
...props,
|
|
11807
|
-
children: children
|
|
11808
|
-
});
|
|
11809
|
-
};
|
|
11810
|
-
|
|
11811
|
-
function getPaginationEmotionStyles(clsPrefix, theme) {
|
|
11812
|
-
const classRoot = ".".concat(clsPrefix, "-pagination");
|
|
11813
|
-
const classItem = ".".concat(clsPrefix, "-pagination-item");
|
|
11814
|
-
const classLink = ".".concat(clsPrefix, "-pagination-item-link");
|
|
11815
|
-
const classActive = ".".concat(clsPrefix, "-pagination-item-active");
|
|
11816
|
-
const classEllipsis = ".".concat(clsPrefix, "-pagination-item-ellipsis");
|
|
11817
|
-
const classNext = ".".concat(clsPrefix, "-pagination-next");
|
|
11818
|
-
const classPrev = ".".concat(clsPrefix, "-pagination-prev");
|
|
11819
|
-
const classJumpNext = ".".concat(clsPrefix, "-pagination-jump-next");
|
|
11820
|
-
const classJumpPrev = ".".concat(clsPrefix, "-pagination-jump-prev");
|
|
11821
|
-
const classSizeChanger = ".".concat(clsPrefix, "-pagination-options-size-changer");
|
|
11822
|
-
const classOptions = ".".concat(clsPrefix, "-pagination-options");
|
|
11823
|
-
const styles = {
|
|
11824
|
-
'span[role=img]': {
|
|
11825
|
-
color: theme.colors.textSecondary,
|
|
11826
|
-
'> *': {
|
|
11827
|
-
color: 'inherit'
|
|
11828
|
-
}
|
|
11829
|
-
},
|
|
11830
|
-
[classItem]: {
|
|
11831
|
-
backgroundColor: 'none',
|
|
11832
|
-
border: 'none',
|
|
11833
|
-
color: theme.colors.textSecondary,
|
|
11834
|
-
'&:focus-visible': {
|
|
11835
|
-
outline: 'auto'
|
|
11836
|
-
},
|
|
11837
|
-
'> a': {
|
|
11838
|
-
color: theme.colors.textSecondary,
|
|
11839
|
-
'&:hover': {
|
|
11840
|
-
color: theme.colors.actionDefaultTextHover
|
|
11841
|
-
},
|
|
11842
|
-
'&:active': {
|
|
11843
|
-
color: theme.colors.actionDefaultTextPress
|
|
11844
|
-
}
|
|
11845
|
-
},
|
|
11846
|
-
'&:hover': {
|
|
11847
|
-
backgroundColor: theme.colors.actionDefaultBackgroundHover
|
|
11848
|
-
},
|
|
11849
|
-
'&:active': {
|
|
11850
|
-
backgroundColor: theme.colors.actionDefaultBackgroundPress
|
|
11851
|
-
}
|
|
11852
|
-
},
|
|
11853
|
-
[classActive]: {
|
|
11854
|
-
backgroundColor: theme.colors.actionDefaultBackgroundPress,
|
|
11855
|
-
color: theme.colors.actionDefaultTextPress,
|
|
11856
|
-
border: 'none',
|
|
11857
|
-
'> a': {
|
|
11858
|
-
color: theme.colors.actionDefaultTextPress
|
|
11859
|
-
},
|
|
11860
|
-
'&:focus-visible': {
|
|
11861
|
-
outline: 'auto'
|
|
11862
|
-
},
|
|
11863
|
-
'&:hover': {
|
|
11864
|
-
backgroundColor: theme.colors.actionDefaultBackgroundPress,
|
|
11865
|
-
color: theme.colors.actionDefaultTextPress
|
|
11866
|
-
}
|
|
11867
|
-
},
|
|
11868
|
-
[classLink]: {
|
|
11869
|
-
border: 'none',
|
|
11870
|
-
color: theme.colors.textSecondary,
|
|
11871
|
-
'&[disabled]': {
|
|
11872
|
-
display: 'none'
|
|
11873
|
-
},
|
|
11874
|
-
'&:hover': {
|
|
11875
|
-
backgroundColor: theme.colors.actionDefaultBackgroundHover
|
|
11876
|
-
},
|
|
11877
|
-
'&:active': {
|
|
11878
|
-
backgroundColor: theme.colors.actionDefaultBackgroundPress
|
|
11879
|
-
},
|
|
11880
|
-
'&:focus-visible': {
|
|
11881
|
-
outline: 'auto'
|
|
11882
|
-
}
|
|
11883
|
-
},
|
|
11884
|
-
[classEllipsis]: {
|
|
11885
|
-
color: 'inherit'
|
|
11886
|
-
},
|
|
11887
|
-
["".concat(classNext, ", ").concat(classPrev, ", ").concat(classJumpNext, ", ").concat(classJumpPrev)]: {
|
|
11888
|
-
color: theme.colors.textSecondary,
|
|
11889
|
-
'&:hover': {
|
|
11890
|
-
backgroundColor: theme.colors.actionDefaultBackgroundHover
|
|
11891
|
-
},
|
|
11892
|
-
'&:active': {
|
|
11893
|
-
backgroundColor: theme.colors.actionDefaultBackgroundPress
|
|
11894
|
-
},
|
|
11895
|
-
'&:focus-visible': {
|
|
11896
|
-
outline: 'auto'
|
|
11897
|
-
}
|
|
11898
|
-
},
|
|
11899
|
-
["&".concat(classRoot, ".mini, ").concat(classRoot, ".mini")]: {
|
|
11900
|
-
["".concat(classItem, ", ").concat(classNext, ", ").concat(classPrev, ", ").concat(classJumpNext, ", ").concat(classJumpPrev)]: {
|
|
11901
|
-
height: '32px',
|
|
11902
|
-
width: '32px',
|
|
11903
|
-
lineHeight: '32px'
|
|
11904
|
-
},
|
|
11905
|
-
[classSizeChanger]: {
|
|
11906
|
-
marginLeft: 4
|
|
11907
|
-
},
|
|
11908
|
-
["input, ".concat(classOptions)]: {
|
|
11909
|
-
height: '32px'
|
|
11910
|
-
}
|
|
11911
|
-
}
|
|
11912
|
-
};
|
|
11913
|
-
const importantStyles = importantify(styles);
|
|
11914
|
-
return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getPaginationEmotionStyles;");
|
|
11915
|
-
}
|
|
11916
|
-
const Pagination = function Pagination(_ref) {
|
|
11161
|
+
} = useDesignSystemTheme();
|
|
11162
|
+
return jsx(Toast.Viewport, {
|
|
11163
|
+
className: DU_BOIS_ENABLE_ANIMATION_CLASSNAME,
|
|
11164
|
+
style: getViewportStyle(theme),
|
|
11165
|
+
...props
|
|
11166
|
+
});
|
|
11167
|
+
};
|
|
11168
|
+
|
|
11169
|
+
var NotificationV2 = /*#__PURE__*/Object.freeze({
|
|
11170
|
+
__proto__: null,
|
|
11171
|
+
Root: Root$1,
|
|
11172
|
+
Title: Title,
|
|
11173
|
+
Description: Description,
|
|
11174
|
+
Close: Close$1,
|
|
11175
|
+
Provider: Provider,
|
|
11176
|
+
Viewport: Viewport
|
|
11177
|
+
});
|
|
11178
|
+
|
|
11179
|
+
const PageWrapper = _ref => {
|
|
11917
11180
|
let {
|
|
11918
|
-
|
|
11919
|
-
|
|
11920
|
-
numTotal,
|
|
11921
|
-
onChange,
|
|
11922
|
-
dangerouslySetAntdProps
|
|
11181
|
+
children,
|
|
11182
|
+
...props
|
|
11923
11183
|
} = _ref;
|
|
11924
11184
|
const {
|
|
11925
|
-
classNamePrefix,
|
|
11926
11185
|
theme
|
|
11927
11186
|
} = useDesignSystemTheme();
|
|
11928
|
-
return jsx(
|
|
11929
|
-
|
|
11930
|
-
|
|
11931
|
-
|
|
11932
|
-
|
|
11933
|
-
|
|
11934
|
-
|
|
11935
|
-
|
|
11936
|
-
showSizeChanger: false,
|
|
11937
|
-
showQuickJumper: true,
|
|
11938
|
-
size: 'small',
|
|
11939
|
-
...dangerouslySetAntdProps
|
|
11940
|
-
})
|
|
11187
|
+
return jsx("div", {
|
|
11188
|
+
css: /*#__PURE__*/css({
|
|
11189
|
+
paddingLeft: 16,
|
|
11190
|
+
paddingRight: 16,
|
|
11191
|
+
backgroundColor: theme.isDarkMode ? theme.colors.backgroundPrimary : 'transparent'
|
|
11192
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:PageWrapper;"),
|
|
11193
|
+
...props,
|
|
11194
|
+
children: children
|
|
11941
11195
|
});
|
|
11942
11196
|
};
|
|
11943
11197
|
|
|
@@ -11996,11 +11250,22 @@ const Trigger = /*#__PURE__*/forwardRef(function Trigger(_ref2, ref) {
|
|
|
11996
11250
|
children: children
|
|
11997
11251
|
});
|
|
11998
11252
|
});
|
|
11999
|
-
const
|
|
11253
|
+
const Close = /*#__PURE__*/forwardRef(function Close(_ref3, ref) {
|
|
12000
11254
|
let {
|
|
12001
11255
|
children,
|
|
12002
11256
|
...props
|
|
12003
11257
|
} = _ref3;
|
|
11258
|
+
return jsx(Popover$1.Close, {
|
|
11259
|
+
ref: ref,
|
|
11260
|
+
...props,
|
|
11261
|
+
children: children
|
|
11262
|
+
});
|
|
11263
|
+
});
|
|
11264
|
+
const Arrow = /*#__PURE__*/forwardRef(function Arrow(_ref4, ref) {
|
|
11265
|
+
let {
|
|
11266
|
+
children,
|
|
11267
|
+
...props
|
|
11268
|
+
} = _ref4;
|
|
12004
11269
|
const {
|
|
12005
11270
|
theme
|
|
12006
11271
|
} = useDesignSystemTheme();
|
|
@@ -12051,7 +11316,7 @@ const popoverContentStyles = theme => ({
|
|
|
12051
11316
|
border: "1px solid ".concat(theme.colors.borderDecorative),
|
|
12052
11317
|
borderRadius: theme.borders.borderRadiusMd,
|
|
12053
11318
|
padding: "".concat(theme.spacing.sm, "px"),
|
|
12054
|
-
boxShadow: theme.
|
|
11319
|
+
boxShadow: theme.general.shadowLow,
|
|
12055
11320
|
userSelect: 'none',
|
|
12056
11321
|
zIndex: theme.options.zIndexBase + 30,
|
|
12057
11322
|
a: importantify({
|
|
@@ -12077,6 +11342,7 @@ var PopoverV2 = /*#__PURE__*/Object.freeze({
|
|
|
12077
11342
|
Root: Root,
|
|
12078
11343
|
Content: Content$1,
|
|
12079
11344
|
Trigger: Trigger,
|
|
11345
|
+
Close: Close,
|
|
12080
11346
|
Arrow: Arrow
|
|
12081
11347
|
});
|
|
12082
11348
|
|
|
@@ -12381,7 +11647,8 @@ function Panel(_ref4) {
|
|
|
12381
11647
|
let {
|
|
12382
11648
|
panelId,
|
|
12383
11649
|
children,
|
|
12384
|
-
dangerouslyAppendEmotionCSS
|
|
11650
|
+
dangerouslyAppendEmotionCSS,
|
|
11651
|
+
...delegated
|
|
12385
11652
|
} = _ref4;
|
|
12386
11653
|
const {
|
|
12387
11654
|
openPanelId,
|
|
@@ -12394,6 +11661,7 @@ function Panel(_ref4) {
|
|
|
12394
11661
|
display: 'none'
|
|
12395
11662
|
}, process.env.NODE_ENV === "production" ? "" : ";label:Panel;"],
|
|
12396
11663
|
"aria-hidden": !isPanelOpen,
|
|
11664
|
+
...delegated,
|
|
12397
11665
|
children: children
|
|
12398
11666
|
});
|
|
12399
11667
|
}
|
|
@@ -12417,7 +11685,7 @@ function PanelHeader(_ref5) {
|
|
|
12417
11685
|
return jsxs("div", {
|
|
12418
11686
|
css: [{
|
|
12419
11687
|
display: 'flex',
|
|
12420
|
-
paddingLeft:
|
|
11688
|
+
paddingLeft: 8,
|
|
12421
11689
|
paddingRight: 4,
|
|
12422
11690
|
alignItems: 'center',
|
|
12423
11691
|
height: theme.general.heightBase,
|
|
@@ -12470,7 +11738,7 @@ function PanelBody(_ref9) {
|
|
|
12470
11738
|
dangerouslyAppendEmotionCSS
|
|
12471
11739
|
} = _ref9;
|
|
12472
11740
|
return jsx("div", {
|
|
12473
|
-
css: ["height:100%;overflow-x:hidden;overflow-y:auto;padding:0
|
|
11741
|
+
css: ["height:100%;overflow-x:hidden;overflow-y:auto;padding:0 8px;", dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:PanelBody;"],
|
|
12474
11742
|
children: children
|
|
12475
11743
|
});
|
|
12476
11744
|
}
|
|
@@ -12535,56 +11803,6 @@ const Skeleton = /* #__PURE__ */(() => {
|
|
|
12535
11803
|
return Skeleton;
|
|
12536
11804
|
})();
|
|
12537
11805
|
|
|
12538
|
-
const rotate = keyframes({
|
|
12539
|
-
'0%': {
|
|
12540
|
-
transform: 'rotate(0deg) translate3d(0, 0, 0)'
|
|
12541
|
-
},
|
|
12542
|
-
'100%': {
|
|
12543
|
-
transform: 'rotate(360deg) translate3d(0, 0, 0)'
|
|
12544
|
-
}
|
|
12545
|
-
});
|
|
12546
|
-
const cssSpinner = function (theme) {
|
|
12547
|
-
let frameRate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 60;
|
|
12548
|
-
let delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
12549
|
-
const styles = {
|
|
12550
|
-
animation: "".concat(rotate, " 1s steps(").concat(frameRate, ", end) infinite"),
|
|
12551
|
-
color: theme.colors.textSecondary,
|
|
12552
|
-
animationDelay: "".concat(delay, "s")
|
|
12553
|
-
};
|
|
12554
|
-
return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:cssSpinner;");
|
|
12555
|
-
};
|
|
12556
|
-
const Spinner = _ref => {
|
|
12557
|
-
let {
|
|
12558
|
-
frameRate,
|
|
12559
|
-
size = 'default',
|
|
12560
|
-
delay,
|
|
12561
|
-
className: propClass,
|
|
12562
|
-
...props
|
|
12563
|
-
} = _ref;
|
|
12564
|
-
const {
|
|
12565
|
-
classNamePrefix,
|
|
12566
|
-
theme
|
|
12567
|
-
} = useDesignSystemTheme();
|
|
12568
|
-
|
|
12569
|
-
// We use Antd classes to keep styling unchanged
|
|
12570
|
-
// TODO(FEINF-1407): We want to move away from Antd classes and use Emotion for styling in the future
|
|
12571
|
-
const sizeSuffix = size === 'small' ? '-sm' : size === 'large' ? '-lg' : '';
|
|
12572
|
-
const sizeClass = sizeSuffix ? "".concat(classNamePrefix, "-spin").concat(sizeSuffix) : '';
|
|
12573
|
-
const wrapperClass = "".concat(propClass || '', " ").concat(classNamePrefix, "-spin ").concat(sizeClass, " ").concat(classNamePrefix, "-spin-spinning ").concat(DU_BOIS_ENABLE_ANIMATION_CLASSNAME).trim();
|
|
12574
|
-
const className = "".concat(classNamePrefix, "-spin-dot ").concat(DU_BOIS_ENABLE_ANIMATION_CLASSNAME).trim();
|
|
12575
|
-
return (
|
|
12576
|
-
// className has to follow {...props}, otherwise is `css` prop is passed down it will overwrite our className
|
|
12577
|
-
jsx("div", {
|
|
12578
|
-
...props,
|
|
12579
|
-
className: wrapperClass,
|
|
12580
|
-
children: jsx(LoadingIcon, {
|
|
12581
|
-
css: cssSpinner(theme, frameRate, delay),
|
|
12582
|
-
className: className
|
|
12583
|
-
})
|
|
12584
|
-
})
|
|
12585
|
-
);
|
|
12586
|
-
};
|
|
12587
|
-
|
|
12588
11806
|
const defaultGetPrefixCls = (suffixCls, customizePrefixCls) => {
|
|
12589
11807
|
if (customizePrefixCls) return customizePrefixCls;
|
|
12590
11808
|
return suffixCls ? "ant-".concat(suffixCls) : 'ant';
|
|
@@ -12629,6 +11847,7 @@ const DropdownButton = props => {
|
|
|
12629
11847
|
menuButtonLabel = 'Open dropdown',
|
|
12630
11848
|
menu,
|
|
12631
11849
|
leftButtonIcon,
|
|
11850
|
+
dropdownMenuRootProps,
|
|
12632
11851
|
...restProps
|
|
12633
11852
|
} = props;
|
|
12634
11853
|
const prefixCls = getPrefixCls('dropdown-button', customizePrefixCls);
|
|
@@ -12681,7 +11900,7 @@ const DropdownButton = props => {
|
|
|
12681
11900
|
overlay: overlay,
|
|
12682
11901
|
children: rightButtonToRender
|
|
12683
11902
|
}) : jsxs(Root$2, {
|
|
12684
|
-
...
|
|
11903
|
+
...dropdownMenuRootProps,
|
|
12685
11904
|
children: [jsx(Trigger$1, {
|
|
12686
11905
|
disabled: disabled,
|
|
12687
11906
|
asChild: true,
|
|
@@ -12836,76 +12055,135 @@ const SplitButton = props => {
|
|
|
12836
12055
|
});
|
|
12837
12056
|
};
|
|
12838
12057
|
|
|
12839
|
-
const
|
|
12840
|
-
|
|
12841
|
-
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
|
|
12845
|
-
|
|
12846
|
-
styles.push(getScrollableInFlexibleContainerStyles(classNamePrefix));
|
|
12847
|
-
}
|
|
12848
|
-
return styles;
|
|
12849
|
-
};
|
|
12850
|
-
const getScrollableInFlexibleContainerStyles = clsPrefix => {
|
|
12058
|
+
const getSwitchWithLabelStyles = _ref => {
|
|
12059
|
+
let {
|
|
12060
|
+
clsPrefix,
|
|
12061
|
+
theme
|
|
12062
|
+
} = _ref;
|
|
12063
|
+
// Default value
|
|
12064
|
+
const SWITCH_WIDTH = 28;
|
|
12851
12065
|
const styles = {
|
|
12852
|
-
|
|
12853
|
-
|
|
12854
|
-
|
|
12066
|
+
display: 'flex',
|
|
12067
|
+
alignItems: 'center',
|
|
12068
|
+
// Switch is Off
|
|
12069
|
+
["&.".concat(clsPrefix, "-switch")]: {
|
|
12070
|
+
backgroundColor: theme.colors.backgroundPrimary,
|
|
12071
|
+
border: "1px solid ".concat(theme.colors.actionDefaultBorderDefault),
|
|
12072
|
+
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
12073
|
+
boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionDefaultBorderDefault),
|
|
12074
|
+
transition: 'none'
|
|
12075
|
+
},
|
|
12076
|
+
["&:hover:not(.".concat(clsPrefix, "-switch-disabled)")]: {
|
|
12077
|
+
backgroundColor: theme.colors.actionDefaultBackgroundHover,
|
|
12078
|
+
border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundHover),
|
|
12079
|
+
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
12080
|
+
boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundHover)
|
|
12081
|
+
}
|
|
12082
|
+
},
|
|
12083
|
+
["&:active:not(.".concat(clsPrefix, "-switch-disabled)")]: {
|
|
12084
|
+
backgroundColor: theme.colors.actionDefaultBackgroundPress,
|
|
12085
|
+
border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundPress),
|
|
12086
|
+
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
12087
|
+
boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundHover)
|
|
12088
|
+
}
|
|
12089
|
+
},
|
|
12090
|
+
["&:focus-visible"]: {
|
|
12091
|
+
border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundDefault),
|
|
12092
|
+
boxShadow: 'none',
|
|
12093
|
+
outlineStyle: 'solid',
|
|
12094
|
+
outlineWidth: '1px',
|
|
12095
|
+
outlineOffset: '1px',
|
|
12096
|
+
outlineColor: theme.colors.actionDefaultBorderFocus,
|
|
12097
|
+
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
12098
|
+
boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundDefault)
|
|
12099
|
+
}
|
|
12100
|
+
},
|
|
12101
|
+
["&:focus"]: {
|
|
12102
|
+
boxShadow: 'none'
|
|
12103
|
+
}
|
|
12855
12104
|
},
|
|
12856
|
-
|
|
12857
|
-
|
|
12858
|
-
|
|
12859
|
-
|
|
12105
|
+
// Switch is On
|
|
12106
|
+
["&.".concat(clsPrefix, "-switch-checked")]: {
|
|
12107
|
+
backgroundColor: theme.colors.actionPrimaryBackgroundDefault,
|
|
12108
|
+
border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundDefault),
|
|
12109
|
+
["&:hover:not(.".concat(clsPrefix, "-switch-disabled)")]: {
|
|
12110
|
+
backgroundColor: theme.colors.actionPrimaryBackgroundHover,
|
|
12111
|
+
border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundDefault)
|
|
12112
|
+
},
|
|
12113
|
+
["&:active:not(.".concat(clsPrefix, "-switch-disabled)")]: {
|
|
12114
|
+
backgroundColor: theme.colors.actionPrimaryBackgroundPress
|
|
12115
|
+
},
|
|
12116
|
+
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
12117
|
+
boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundDefault)
|
|
12118
|
+
},
|
|
12119
|
+
["&.".concat(clsPrefix, "-switch-disabled")]: {
|
|
12120
|
+
backgroundColor: theme.colors.actionDisabledBackground,
|
|
12121
|
+
border: "1px solid ".concat(theme.colors.actionDisabledBackground),
|
|
12122
|
+
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
12123
|
+
boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionDisabledBackground)
|
|
12124
|
+
}
|
|
12125
|
+
}
|
|
12860
12126
|
},
|
|
12861
|
-
[".".concat(clsPrefix, "-
|
|
12862
|
-
|
|
12863
|
-
display: 'flex',
|
|
12864
|
-
flexDirection: 'column'
|
|
12127
|
+
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
12128
|
+
backgroundColor: theme.colors.backgroundPrimary
|
|
12865
12129
|
},
|
|
12866
|
-
[".".concat(clsPrefix, "-
|
|
12867
|
-
|
|
12130
|
+
["&& + .".concat(clsPrefix, "-hint, && + .").concat(clsPrefix, "-form-message")]: {
|
|
12131
|
+
paddingLeft: theme.spacing.sm + SWITCH_WIDTH
|
|
12868
12132
|
},
|
|
12869
|
-
[".".concat(clsPrefix, "-
|
|
12870
|
-
|
|
12133
|
+
["&& + .".concat(clsPrefix, "-form-message")]: {
|
|
12134
|
+
marginTop: 0
|
|
12871
12135
|
},
|
|
12872
|
-
[".".concat(clsPrefix, "-
|
|
12873
|
-
|
|
12136
|
+
[".".concat(clsPrefix, "-click-animating-node")]: {
|
|
12137
|
+
animation: 'none'
|
|
12874
12138
|
}
|
|
12875
12139
|
};
|
|
12876
|
-
|
|
12877
|
-
|
|
12878
|
-
const DEFAULT_LOADING_SPIN_PROPS = {
|
|
12879
|
-
indicator: jsx(Spinner, {})
|
|
12140
|
+
const importantStyles = importantify(styles);
|
|
12141
|
+
return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getSwitchWithLabelStyles;");
|
|
12880
12142
|
};
|
|
12881
|
-
|
|
12882
|
-
|
|
12883
|
-
|
|
12143
|
+
const Switch = _ref2 => {
|
|
12144
|
+
let {
|
|
12145
|
+
dangerouslySetAntdProps,
|
|
12146
|
+
label,
|
|
12147
|
+
labelProps,
|
|
12148
|
+
...props
|
|
12149
|
+
} = _ref2;
|
|
12884
12150
|
const {
|
|
12885
|
-
|
|
12886
|
-
|
|
12151
|
+
theme,
|
|
12152
|
+
classNamePrefix
|
|
12887
12153
|
} = useDesignSystemTheme();
|
|
12888
|
-
|
|
12889
|
-
|
|
12890
|
-
|
|
12891
|
-
|
|
12892
|
-
|
|
12893
|
-
|
|
12894
|
-
|
|
12895
|
-
|
|
12896
|
-
|
|
12897
|
-
|
|
12898
|
-
|
|
12899
|
-
|
|
12900
|
-
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
|
|
12907
|
-
children:
|
|
12908
|
-
})
|
|
12154
|
+
return label ? jsx(DesignSystemAntDConfigProvider, {
|
|
12155
|
+
children: jsxs("div", {
|
|
12156
|
+
css: getSwitchWithLabelStyles({
|
|
12157
|
+
clsPrefix: classNamePrefix,
|
|
12158
|
+
theme
|
|
12159
|
+
}),
|
|
12160
|
+
children: [jsx(Switch$1, {
|
|
12161
|
+
...props,
|
|
12162
|
+
...dangerouslySetAntdProps,
|
|
12163
|
+
css: /*#__PURE__*/css({
|
|
12164
|
+
... /*#__PURE__*/css(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:Switch;"),
|
|
12165
|
+
...getSwitchWithLabelStyles({
|
|
12166
|
+
clsPrefix: classNamePrefix,
|
|
12167
|
+
theme
|
|
12168
|
+
})
|
|
12169
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Switch;")
|
|
12170
|
+
}), jsx(Label, {
|
|
12171
|
+
inline: true,
|
|
12172
|
+
...labelProps,
|
|
12173
|
+
children: label
|
|
12174
|
+
})]
|
|
12175
|
+
})
|
|
12176
|
+
}) : jsx(DesignSystemAntDConfigProvider, {
|
|
12177
|
+
children: jsx(Switch$1, {
|
|
12178
|
+
...props,
|
|
12179
|
+
...dangerouslySetAntdProps,
|
|
12180
|
+
css: /*#__PURE__*/css({
|
|
12181
|
+
... /*#__PURE__*/css(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:Switch;"),
|
|
12182
|
+
...getSwitchWithLabelStyles({
|
|
12183
|
+
clsPrefix: classNamePrefix,
|
|
12184
|
+
theme
|
|
12185
|
+
})
|
|
12186
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Switch;")
|
|
12909
12187
|
})
|
|
12910
12188
|
});
|
|
12911
12189
|
};
|
|
@@ -13542,5 +12820,5 @@ const Tree = /*#__PURE__*/forwardRef(function Tree(_ref, ref) {
|
|
|
13542
12820
|
});
|
|
13543
12821
|
});
|
|
13544
12822
|
|
|
13545
|
-
export { Accordion, AccordionPanel, Alert, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, AppIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowsUpDownIcon, AutoComplete, BarChartIcon, BeakerIcon, BinaryIcon, BoldIcon, BookIcon, BookmarkFillIcon, BookmarkIcon, BracketsCurlyIcon, BracketsSquareIcon, Breadcrumb, BriefcaseFillIcon, BriefcaseIcon,
|
|
12823
|
+
export { Accordion, AccordionPanel, Alert, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, AppIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowsUpDownIcon, AutoComplete, BarChartIcon, BeakerIcon, BinaryIcon, BoldIcon, BookIcon, BookmarkFillIcon, BookmarkIcon, BracketsCurlyIcon, BracketsSquareIcon, BracketsXIcon, Breadcrumb, BriefcaseFillIcon, BriefcaseIcon, CalendarEventIcon, CalendarIcon, CaretDownSquareIcon, CaretUpSquareIcon, CatalogIcon, ChartLineIcon, CheckCircleFillIcon, CheckCircleIcon, CheckLineIcon, ChecklistIcon, ChevronDoubleDownIcon, ChevronDoubleLeftIcon, ChevronDoubleRightIcon, ChevronDoubleUpIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleIcon, ClipboardIcon, ClockIcon, CloudDownloadIcon, CloudIcon, CloudKeyIcon, CloudModelIcon, CloudOffIcon, CloudUploadIcon, CodeIcon, Col, ColorFillIcon, ConnectIcon, Content, CopyIcon, CursorIcon, DIcon, DagIcon, DangerFillIcon, DangerIcon, DangerModal, DashIcon, DashboardIcon, DataIcon, DatabaseIcon, DecimalIcon, DotsCircleIcon, DownloadIcon, DragIcon, Drawer, Dropdown, DropdownMenu, DuboisDatePicker, Empty, ExpandLessIcon, ExpandMoreIcon, FileCodeIcon, FileDocumentIcon, FileIcon, FileImageIcon, FileModelIcon, FilterIcon, FolderFillIcon, FolderIcon, FontIcon, ForkIcon, Form, FormDubois, FormUI, FullscreenExitIcon, FullscreenIcon, GearFillIcon, GearIcon, GiftIcon, GridDashIcon, GridIcon, H1Icon, H2Icon, H3Icon, Header$1 as Header, HistoryIcon, HomeIcon, ImageIcon, IndentDecreaseIcon, IndentIncreaseIcon, InfinityIcon, InfoFillIcon, InfoIcon, ItalicIcon, KeyboardIcon, LayerIcon, Layout, LegacyDatePicker, LegacyTable, LettersIcon, LightningIcon, LinkIcon, LinkOffIcon, ListBorderIcon, ListIcon, LockFillIcon, LockIcon, LockUnlockedIcon, MIcon, Menu, MenuIcon, MinusBoxIcon, MinusCircleFillIcon, MinusCircleIcon, Modal, ModelsIcon, Nav, NavButton, NoIcon, NotebookIcon, NotificationIcon, NotificationOffIcon, NotificationV2, NumbersIcon, OfficeIcon, OptGroup, Option, OverflowIcon, PageBottomIcon, PageFirstIcon, PageLastIcon, PageTopIcon, PageWrapper, Pagination, Panel, PanelBody, PanelHeader, PanelHeaderButtons, PanelHeaderTitle, PencilIcon, PinCancelIcon, PinFillIcon, PinIcon, PlayCircleFillIcon, PlayCircleIcon, PlayIcon, PlugIcon, PlusCircleFillIcon, PlusCircleIcon, PlusIcon, PlusSquareIcon, Popover, PopoverV2, QueryEditorIcon, QueryIcon, QuestionMarkFillIcon, QuestionMarkIcon, RHFControlledComponents, ROW_GUTTER_SIZE, Radio, ReaderModeIcon, RedoIcon, RefreshIcon, ReposIcon, Row, SaveIcon, SchoolIcon, SecurityIcon, SegmentedControlButton, SegmentedControlGroup, Select, ShareIcon, Sidebar, SidebarAutoIcon, SidebarCollapseIcon, SidebarExpandIcon, SidebarIcon, Skeleton, SlidersIcon, Space, Spacer, SpeechBubbleIcon, SpeechBubblePlusIcon, SplitButton, StarFillIcon, StarIcon, StopCircleFillIcon, StopCircleIcon, StopIcon, StorefrontIcon, StreamIcon, Switch, SyncIcon, TabPane, Table, TableIcon, Tabs, Tag, TrashIcon, Tree, TreeIcon, UnderlineIcon, UndoIcon, UploadIcon, UsbIcon, UserBadgeIcon, UserCircleIcon, UserGroupIcon, UserIcon, VariableIcon, VisibleIcon, VisibleOffIcon, WarningFillIcon, WarningIcon, WorkspacesIcon, XCircleIcon, ZoomInIcon, ZoomOutIcon, __INTERNAL_DO_NOT_USE__FormItem, __INTERNAL_DO_NOT_USE__HorizontalGroup, __INTERNAL_DO_NOT_USE__VerticalGroup, getPaginationEmotionStyles, getRadioStyles, getTabEmotionStyles, useNotification, useThemedStyles, withNotifications };
|
|
13546
12824
|
//# sourceMappingURL=index.js.map
|