@databricks/design-system 1.9.1 → 1.9.3
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/ToggleButton/index.d.ts +2 -0
- package/dist/design-system/ToggleButton/index.d.ts.map +1 -0
- package/dist/design-system/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/design-system/index.d.ts +2 -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/ListPagePattern/index.d.ts +1 -0
- package/dist/development/ListPagePattern/index.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 +1101 -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 +886 -1543
- 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 +6 -5
- 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,7 @@ 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 '
|
|
17
|
+
import * as Toggle from '@radix-ui/react-toggle';
|
|
18
18
|
import 'lodash/isNil';
|
|
19
19
|
import 'lodash/endsWith';
|
|
20
20
|
import 'lodash/isBoolean';
|
|
@@ -22,6 +22,7 @@ import 'lodash/isNumber';
|
|
|
22
22
|
import 'lodash/isString';
|
|
23
23
|
import 'lodash/mapValues';
|
|
24
24
|
import '@emotion/unitless';
|
|
25
|
+
import 'chroma-js';
|
|
25
26
|
|
|
26
27
|
/**
|
|
27
28
|
* A helper hook that allows quick creation of theme-dependent styles.
|
|
@@ -969,47 +970,6 @@ function CheckCircleIcon(props) {
|
|
|
969
970
|
});
|
|
970
971
|
}
|
|
971
972
|
|
|
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
973
|
function SvgCheckLineIconV1(props) {
|
|
1014
974
|
return jsx("svg", {
|
|
1015
975
|
width: "1em",
|
|
@@ -1268,47 +1228,6 @@ function ChevronDoubleUpIcon(props) {
|
|
|
1268
1228
|
});
|
|
1269
1229
|
}
|
|
1270
1230
|
|
|
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
1231
|
function SvgChevronLeftIconV1(props) {
|
|
1313
1232
|
return jsx("svg", {
|
|
1314
1233
|
width: "1em",
|
|
@@ -1560,47 +1479,6 @@ function ClockIcon(props) {
|
|
|
1560
1479
|
});
|
|
1561
1480
|
}
|
|
1562
1481
|
|
|
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
1482
|
function SvgCloudDownloadIconV1(props) {
|
|
1605
1483
|
return jsx("svg", {
|
|
1606
1484
|
width: "1em",
|
|
@@ -1940,7 +1818,7 @@ function SvgDangerFillIconV2(props) {
|
|
|
1940
1818
|
children: jsx("path", {
|
|
1941
1819
|
fillRule: "evenodd",
|
|
1942
1820
|
clipRule: "evenodd",
|
|
1943
|
-
d: "
|
|
1821
|
+
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
1822
|
fill: "currentColor"
|
|
1945
1823
|
})
|
|
1946
1824
|
});
|
|
@@ -1981,12 +1859,12 @@ function SvgDangerIconV2(props) {
|
|
|
1981
1859
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1982
1860
|
...props,
|
|
1983
1861
|
children: [jsx("path", {
|
|
1984
|
-
d: "M7.
|
|
1862
|
+
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
1863
|
fill: "currentColor"
|
|
1986
1864
|
}), jsx("path", {
|
|
1987
1865
|
fillRule: "evenodd",
|
|
1988
1866
|
clipRule: "evenodd",
|
|
1989
|
-
d: "
|
|
1867
|
+
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
1868
|
fill: "currentColor"
|
|
1991
1869
|
})]
|
|
1992
1870
|
});
|
|
@@ -3808,49 +3686,6 @@ function ListIcon(props) {
|
|
|
3808
3686
|
});
|
|
3809
3687
|
}
|
|
3810
3688
|
|
|
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
3689
|
function SvgLockFillIconV1(props) {
|
|
3855
3690
|
return jsx("svg", {
|
|
3856
3691
|
width: "1em",
|
|
@@ -5536,60 +5371,6 @@ function SchoolIcon(props) {
|
|
|
5536
5371
|
});
|
|
5537
5372
|
}
|
|
5538
5373
|
|
|
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
5374
|
function SvgSecurityIconV1(props) {
|
|
5594
5375
|
return jsx("svg", {
|
|
5595
5376
|
width: "1em",
|
|
@@ -6934,49 +6715,6 @@ function WarningIcon(props) {
|
|
|
6934
6715
|
});
|
|
6935
6716
|
}
|
|
6936
6717
|
|
|
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
6718
|
function SvgXCircleIconV1(props) {
|
|
6981
6719
|
return jsx("svg", {
|
|
6982
6720
|
width: "1em",
|
|
@@ -7228,6 +6966,40 @@ function BracketsSquareIcon(props) {
|
|
|
7228
6966
|
});
|
|
7229
6967
|
}
|
|
7230
6968
|
|
|
6969
|
+
function SvgBracketsXIcon(props) {
|
|
6970
|
+
return jsxs("svg", {
|
|
6971
|
+
width: "1em",
|
|
6972
|
+
height: "1em",
|
|
6973
|
+
viewBox: "0 0 16 16",
|
|
6974
|
+
fill: "none",
|
|
6975
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6976
|
+
...props,
|
|
6977
|
+
children: [jsxs("g", {
|
|
6978
|
+
clipPath: "url(#BracketsXIcon_svg__clip0_14891_29556)",
|
|
6979
|
+
fill: "currentColor",
|
|
6980
|
+
children: [jsx("path", {
|
|
6981
|
+
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"
|
|
6982
|
+
}), jsx("path", {
|
|
6983
|
+
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"
|
|
6984
|
+
})]
|
|
6985
|
+
}), jsx("defs", {
|
|
6986
|
+
children: jsx("clipPath", {
|
|
6987
|
+
id: "BracketsXIcon_svg__clip0_14891_29556",
|
|
6988
|
+
children: jsx("path", {
|
|
6989
|
+
fill: "#fff",
|
|
6990
|
+
d: "M0 0h16v16H0z"
|
|
6991
|
+
})
|
|
6992
|
+
})
|
|
6993
|
+
})]
|
|
6994
|
+
});
|
|
6995
|
+
}
|
|
6996
|
+
function BracketsXIcon(props) {
|
|
6997
|
+
return jsx(Icon, {
|
|
6998
|
+
...props,
|
|
6999
|
+
component: SvgBracketsXIcon
|
|
7000
|
+
});
|
|
7001
|
+
}
|
|
7002
|
+
|
|
7231
7003
|
function SvgCatalogIcon(props) {
|
|
7232
7004
|
return jsx("svg", {
|
|
7233
7005
|
width: "1em",
|
|
@@ -7298,8 +7070,34 @@ function CloudKeyIcon(props) {
|
|
|
7298
7070
|
});
|
|
7299
7071
|
}
|
|
7300
7072
|
|
|
7301
|
-
function
|
|
7302
|
-
return
|
|
7073
|
+
function SvgCloudModelIcon(props) {
|
|
7074
|
+
return jsxs("svg", {
|
|
7075
|
+
width: "1em",
|
|
7076
|
+
height: "1em",
|
|
7077
|
+
viewBox: "0 0 16 16",
|
|
7078
|
+
fill: "none",
|
|
7079
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7080
|
+
...props,
|
|
7081
|
+
children: [jsx("path", {
|
|
7082
|
+
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",
|
|
7083
|
+
fill: "currentColor"
|
|
7084
|
+
}), jsx("path", {
|
|
7085
|
+
fillRule: "evenodd",
|
|
7086
|
+
clipRule: "evenodd",
|
|
7087
|
+
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",
|
|
7088
|
+
fill: "currentColor"
|
|
7089
|
+
})]
|
|
7090
|
+
});
|
|
7091
|
+
}
|
|
7092
|
+
function CloudModelIcon(props) {
|
|
7093
|
+
return jsx(Icon, {
|
|
7094
|
+
...props,
|
|
7095
|
+
component: SvgCloudModelIcon
|
|
7096
|
+
});
|
|
7097
|
+
}
|
|
7098
|
+
|
|
7099
|
+
function SvgColorFillIcon(props) {
|
|
7100
|
+
return jsx("svg", {
|
|
7303
7101
|
width: "1em",
|
|
7304
7102
|
height: "1em",
|
|
7305
7103
|
viewBox: "0 0 16 16",
|
|
@@ -7347,6 +7145,126 @@ function ConnectIcon(props) {
|
|
|
7347
7145
|
});
|
|
7348
7146
|
}
|
|
7349
7147
|
|
|
7148
|
+
function SvgCursorIcon(props) {
|
|
7149
|
+
return jsxs("svg", {
|
|
7150
|
+
width: "1em",
|
|
7151
|
+
height: "1em",
|
|
7152
|
+
viewBox: "0 0 16 16",
|
|
7153
|
+
fill: "none",
|
|
7154
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7155
|
+
...props,
|
|
7156
|
+
children: [jsx("g", {
|
|
7157
|
+
clipPath: "url(#CursorIcon_svg__clip0_14914_35410)",
|
|
7158
|
+
children: jsx("path", {
|
|
7159
|
+
fillRule: "evenodd",
|
|
7160
|
+
clipRule: "evenodd",
|
|
7161
|
+
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",
|
|
7162
|
+
fill: "currentColor"
|
|
7163
|
+
})
|
|
7164
|
+
}), jsx("defs", {
|
|
7165
|
+
children: jsx("clipPath", {
|
|
7166
|
+
id: "CursorIcon_svg__clip0_14914_35410",
|
|
7167
|
+
children: jsx("path", {
|
|
7168
|
+
fill: "#fff",
|
|
7169
|
+
transform: "matrix(-1 0 0 1 16 0)",
|
|
7170
|
+
d: "M0 0h16v16H0z"
|
|
7171
|
+
})
|
|
7172
|
+
})
|
|
7173
|
+
})]
|
|
7174
|
+
});
|
|
7175
|
+
}
|
|
7176
|
+
function CursorIcon(props) {
|
|
7177
|
+
return jsx(Icon, {
|
|
7178
|
+
...props,
|
|
7179
|
+
component: SvgCursorIcon
|
|
7180
|
+
});
|
|
7181
|
+
}
|
|
7182
|
+
|
|
7183
|
+
function SvgDagIcon(props) {
|
|
7184
|
+
return jsx("svg", {
|
|
7185
|
+
width: "1em",
|
|
7186
|
+
height: "1em",
|
|
7187
|
+
viewBox: "0 0 16 16",
|
|
7188
|
+
fill: "none",
|
|
7189
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7190
|
+
...props,
|
|
7191
|
+
children: jsx("path", {
|
|
7192
|
+
fillRule: "evenodd",
|
|
7193
|
+
clipRule: "evenodd",
|
|
7194
|
+
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",
|
|
7195
|
+
fill: "currentColor"
|
|
7196
|
+
})
|
|
7197
|
+
});
|
|
7198
|
+
}
|
|
7199
|
+
function DagIcon(props) {
|
|
7200
|
+
return jsx(Icon, {
|
|
7201
|
+
...props,
|
|
7202
|
+
component: SvgDagIcon
|
|
7203
|
+
});
|
|
7204
|
+
}
|
|
7205
|
+
|
|
7206
|
+
function SvgDecimalIcon(props) {
|
|
7207
|
+
return jsxs("svg", {
|
|
7208
|
+
width: "1em",
|
|
7209
|
+
height: "1em",
|
|
7210
|
+
viewBox: "0 0 16 16",
|
|
7211
|
+
fill: "none",
|
|
7212
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7213
|
+
...props,
|
|
7214
|
+
children: [jsx("path", {
|
|
7215
|
+
fillRule: "evenodd",
|
|
7216
|
+
clipRule: "evenodd",
|
|
7217
|
+
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",
|
|
7218
|
+
fill: "currentColor"
|
|
7219
|
+
}), jsx("path", {
|
|
7220
|
+
d: "M1 13a1 1 0 100-2 1 1 0 000 2z",
|
|
7221
|
+
fill: "currentColor"
|
|
7222
|
+
})]
|
|
7223
|
+
});
|
|
7224
|
+
}
|
|
7225
|
+
function DecimalIcon(props) {
|
|
7226
|
+
return jsx(Icon, {
|
|
7227
|
+
...props,
|
|
7228
|
+
component: SvgDecimalIcon
|
|
7229
|
+
});
|
|
7230
|
+
}
|
|
7231
|
+
|
|
7232
|
+
function SvgDotsCircleIcon(props) {
|
|
7233
|
+
return jsxs("svg", {
|
|
7234
|
+
width: "1em",
|
|
7235
|
+
height: "1em",
|
|
7236
|
+
viewBox: "0 0 16 16",
|
|
7237
|
+
fill: "none",
|
|
7238
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7239
|
+
...props,
|
|
7240
|
+
children: [jsxs("g", {
|
|
7241
|
+
clipPath: "url(#DotsCircleIcon_svg__clip0_14891_29603)",
|
|
7242
|
+
fill: "currentColor",
|
|
7243
|
+
children: [jsx("path", {
|
|
7244
|
+
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"
|
|
7245
|
+
}), jsx("path", {
|
|
7246
|
+
fillRule: "evenodd",
|
|
7247
|
+
clipRule: "evenodd",
|
|
7248
|
+
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"
|
|
7249
|
+
})]
|
|
7250
|
+
}), jsx("defs", {
|
|
7251
|
+
children: jsx("clipPath", {
|
|
7252
|
+
id: "DotsCircleIcon_svg__clip0_14891_29603",
|
|
7253
|
+
children: jsx("path", {
|
|
7254
|
+
fill: "#fff",
|
|
7255
|
+
d: "M0 0h16v16H0z"
|
|
7256
|
+
})
|
|
7257
|
+
})
|
|
7258
|
+
})]
|
|
7259
|
+
});
|
|
7260
|
+
}
|
|
7261
|
+
function DotsCircleIcon(props) {
|
|
7262
|
+
return jsx(Icon, {
|
|
7263
|
+
...props,
|
|
7264
|
+
component: SvgDotsCircleIcon
|
|
7265
|
+
});
|
|
7266
|
+
}
|
|
7267
|
+
|
|
7350
7268
|
function SvgFontIcon(props) {
|
|
7351
7269
|
return jsxs("svg", {
|
|
7352
7270
|
width: "1em",
|
|
@@ -7427,6 +7345,32 @@ function ItalicIcon(props) {
|
|
|
7427
7345
|
});
|
|
7428
7346
|
}
|
|
7429
7347
|
|
|
7348
|
+
function SvgLettersIcon(props) {
|
|
7349
|
+
return jsxs("svg", {
|
|
7350
|
+
width: "1em",
|
|
7351
|
+
height: "1em",
|
|
7352
|
+
viewBox: "0 0 16 16",
|
|
7353
|
+
fill: "none",
|
|
7354
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7355
|
+
...props,
|
|
7356
|
+
children: [jsx("path", {
|
|
7357
|
+
fillRule: "evenodd",
|
|
7358
|
+
clipRule: "evenodd",
|
|
7359
|
+
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",
|
|
7360
|
+
fill: "currentColor"
|
|
7361
|
+
}), jsx("path", {
|
|
7362
|
+
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",
|
|
7363
|
+
fill: "currentColor"
|
|
7364
|
+
})]
|
|
7365
|
+
});
|
|
7366
|
+
}
|
|
7367
|
+
function LettersIcon(props) {
|
|
7368
|
+
return jsx(Icon, {
|
|
7369
|
+
...props,
|
|
7370
|
+
component: SvgLettersIcon
|
|
7371
|
+
});
|
|
7372
|
+
}
|
|
7373
|
+
|
|
7430
7374
|
function SvgMenuIcon(props) {
|
|
7431
7375
|
return jsx("svg", {
|
|
7432
7376
|
width: "1em",
|
|
@@ -7473,7 +7417,7 @@ function NotificationOffIcon(props) {
|
|
|
7473
7417
|
});
|
|
7474
7418
|
}
|
|
7475
7419
|
|
|
7476
|
-
function
|
|
7420
|
+
function SvgNumbersIcon(props) {
|
|
7477
7421
|
return jsx("svg", {
|
|
7478
7422
|
width: "1em",
|
|
7479
7423
|
height: "1em",
|
|
@@ -7482,21 +7426,19 @@ function SvgPlugIcon(props) {
|
|
|
7482
7426
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7483
7427
|
...props,
|
|
7484
7428
|
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",
|
|
7429
|
+
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
7430
|
fill: "currentColor"
|
|
7489
7431
|
})
|
|
7490
7432
|
});
|
|
7491
7433
|
}
|
|
7492
|
-
function
|
|
7434
|
+
function NumbersIcon(props) {
|
|
7493
7435
|
return jsx(Icon, {
|
|
7494
7436
|
...props,
|
|
7495
|
-
component:
|
|
7437
|
+
component: SvgNumbersIcon
|
|
7496
7438
|
});
|
|
7497
7439
|
}
|
|
7498
7440
|
|
|
7499
|
-
function
|
|
7441
|
+
function SvgPlugIcon(props) {
|
|
7500
7442
|
return jsx("svg", {
|
|
7501
7443
|
width: "1em",
|
|
7502
7444
|
height: "1em",
|
|
@@ -7505,15 +7447,17 @@ function SvgRefresh(props) {
|
|
|
7505
7447
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7506
7448
|
...props,
|
|
7507
7449
|
children: jsx("path", {
|
|
7508
|
-
|
|
7450
|
+
fillRule: "evenodd",
|
|
7451
|
+
clipRule: "evenodd",
|
|
7452
|
+
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
7453
|
fill: "currentColor"
|
|
7510
7454
|
})
|
|
7511
7455
|
});
|
|
7512
7456
|
}
|
|
7513
|
-
function
|
|
7457
|
+
function PlugIcon(props) {
|
|
7514
7458
|
return jsx(Icon, {
|
|
7515
7459
|
...props,
|
|
7516
|
-
component:
|
|
7460
|
+
component: SvgPlugIcon
|
|
7517
7461
|
});
|
|
7518
7462
|
}
|
|
7519
7463
|
|
|
@@ -7770,7 +7714,7 @@ const Accordion = /* #__PURE__ */(() => {
|
|
|
7770
7714
|
// TODO: Replace with custom icons
|
|
7771
7715
|
// TODO: Reuse in Alert
|
|
7772
7716
|
const filledIconsMap = {
|
|
7773
|
-
error:
|
|
7717
|
+
error: DangerFillIcon,
|
|
7774
7718
|
warning: WarningFillIcon,
|
|
7775
7719
|
success: CheckCircleFillIcon,
|
|
7776
7720
|
info: InfoFillIcon
|
|
@@ -7923,6 +7867,9 @@ const AutoComplete = /* #__PURE__ */(() => {
|
|
|
7923
7867
|
} = useDesignSystemTheme();
|
|
7924
7868
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
7925
7869
|
children: jsx(AutoComplete$1, {
|
|
7870
|
+
dropdownStyle: {
|
|
7871
|
+
boxShadow: theme.general.shadowLow
|
|
7872
|
+
},
|
|
7926
7873
|
...props,
|
|
7927
7874
|
...dangerouslySetAntdProps,
|
|
7928
7875
|
css: /*#__PURE__*/css(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:AutoComplete;")
|
|
@@ -7993,484 +7940,51 @@ const Breadcrumb = /* #__PURE__ */(() => {
|
|
|
7993
7940
|
return Breadcrumb;
|
|
7994
7941
|
})();
|
|
7995
7942
|
|
|
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
|
|
7943
|
+
function getEmotionStyles(clsPrefix, theme) {
|
|
7944
|
+
const classFocused = ".".concat(clsPrefix, "-focused");
|
|
7945
|
+
const classActiveBar = ".".concat(clsPrefix, "-active-bar");
|
|
7946
|
+
const classSeparator = ".".concat(clsPrefix, "-separator");
|
|
7947
|
+
const classSuffix = ".".concat(clsPrefix, "-suffix");
|
|
7948
|
+
const styles = {
|
|
7949
|
+
height: 32,
|
|
7950
|
+
borderRadius: theme.borders.borderRadiusMd,
|
|
7951
|
+
borderColor: theme.colors.border,
|
|
7952
|
+
color: theme.colors.textPrimary,
|
|
7953
|
+
transition: 'border 0s, box-shadow 0s',
|
|
7954
|
+
["&".concat(classFocused, ",:hover")]: {
|
|
7955
|
+
borderColor: theme.colors.actionDefaultBorderHover
|
|
8061
7956
|
},
|
|
8062
7957
|
'&: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
|
|
7958
|
+
borderColor: theme.colors.actionDefaultBorderPress
|
|
8081
7959
|
},
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
7960
|
+
["&".concat(classFocused)]: {
|
|
7961
|
+
boxShadow: "none !important",
|
|
7962
|
+
outline: "".concat(theme.colors.actionDefaultBorderFocus, " solid 2px !important"),
|
|
7963
|
+
borderColor: 'transparent !important'
|
|
8086
7964
|
},
|
|
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
|
|
7965
|
+
["& ".concat(classActiveBar)]: {
|
|
7966
|
+
background: "".concat(theme.colors.actionDefaultBorderPress, " !important")
|
|
8101
7967
|
},
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
borderColor: 'transparent',
|
|
8105
|
-
color: theme.colors.actionDisabledText
|
|
7968
|
+
["& input::placeholder, & ".concat(classSeparator, ", & ").concat(classSuffix)]: {
|
|
7969
|
+
color: theme.colors.textPrimary
|
|
8106
7970
|
}
|
|
8107
7971
|
};
|
|
7972
|
+
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEmotionStyles;");
|
|
8108
7973
|
}
|
|
8109
|
-
|
|
7974
|
+
const getDropdownStyles$1 = theme => {
|
|
8110
7975
|
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
|
-
}
|
|
7976
|
+
zIndex: theme.options.zIndexBase + 50
|
|
8124
7977
|
};
|
|
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 {
|
|
7978
|
+
};
|
|
7979
|
+
function useDatePickerStyles() {
|
|
7980
|
+
const {
|
|
8467
7981
|
theme,
|
|
8468
7982
|
getPrefixedClassName
|
|
8469
7983
|
} = useDesignSystemTheme();
|
|
8470
7984
|
const clsPrefix = getPrefixedClassName('picker');
|
|
8471
7985
|
return getEmotionStyles(clsPrefix, theme);
|
|
8472
7986
|
}
|
|
8473
|
-
const DuboisDatePicker = props => {
|
|
7987
|
+
const DuboisDatePicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
8474
7988
|
const styles = useDatePickerStyles();
|
|
8475
7989
|
const {
|
|
8476
7990
|
theme
|
|
@@ -8478,6 +7992,7 @@ const DuboisDatePicker = props => {
|
|
|
8478
7992
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
8479
7993
|
children: jsx(DatePicker, {
|
|
8480
7994
|
css: styles,
|
|
7995
|
+
ref: ref,
|
|
8481
7996
|
...props,
|
|
8482
7997
|
popupStyle: {
|
|
8483
7998
|
...getDropdownStyles$1(theme),
|
|
@@ -8485,8 +8000,8 @@ const DuboisDatePicker = props => {
|
|
|
8485
8000
|
}
|
|
8486
8001
|
})
|
|
8487
8002
|
});
|
|
8488
|
-
};
|
|
8489
|
-
const RangePicker = props => {
|
|
8003
|
+
});
|
|
8004
|
+
const RangePicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
8490
8005
|
const styles = useDatePickerStyles();
|
|
8491
8006
|
const {
|
|
8492
8007
|
theme
|
|
@@ -8495,14 +8010,15 @@ const RangePicker = props => {
|
|
|
8495
8010
|
children: jsx(DatePicker.RangePicker, {
|
|
8496
8011
|
css: styles,
|
|
8497
8012
|
...props,
|
|
8013
|
+
ref: ref,
|
|
8498
8014
|
popupStyle: {
|
|
8499
8015
|
...getDropdownStyles$1(theme),
|
|
8500
8016
|
...(props.popupStyle || {})
|
|
8501
8017
|
}
|
|
8502
8018
|
})
|
|
8503
8019
|
});
|
|
8504
|
-
};
|
|
8505
|
-
const TimePicker = props => {
|
|
8020
|
+
});
|
|
8021
|
+
const TimePicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
8506
8022
|
const styles = useDatePickerStyles();
|
|
8507
8023
|
const {
|
|
8508
8024
|
theme
|
|
@@ -8511,14 +8027,15 @@ const TimePicker = props => {
|
|
|
8511
8027
|
children: jsx(DatePicker.TimePicker, {
|
|
8512
8028
|
css: styles,
|
|
8513
8029
|
...props,
|
|
8030
|
+
ref: ref,
|
|
8514
8031
|
popupStyle: {
|
|
8515
8032
|
...getDropdownStyles$1(theme),
|
|
8516
8033
|
...(props.popupStyle || {})
|
|
8517
8034
|
}
|
|
8518
8035
|
})
|
|
8519
8036
|
});
|
|
8520
|
-
};
|
|
8521
|
-
const QuarterPicker = props => {
|
|
8037
|
+
});
|
|
8038
|
+
const QuarterPicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
8522
8039
|
const styles = useDatePickerStyles();
|
|
8523
8040
|
const {
|
|
8524
8041
|
theme
|
|
@@ -8527,14 +8044,15 @@ const QuarterPicker = props => {
|
|
|
8527
8044
|
children: jsx(DatePicker.QuarterPicker, {
|
|
8528
8045
|
css: styles,
|
|
8529
8046
|
...props,
|
|
8047
|
+
ref: ref,
|
|
8530
8048
|
popupStyle: {
|
|
8531
8049
|
...getDropdownStyles$1(theme),
|
|
8532
8050
|
...(props.popupStyle || {})
|
|
8533
8051
|
}
|
|
8534
8052
|
})
|
|
8535
8053
|
});
|
|
8536
|
-
};
|
|
8537
|
-
const WeekPicker = props => {
|
|
8054
|
+
});
|
|
8055
|
+
const WeekPicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
8538
8056
|
const styles = useDatePickerStyles();
|
|
8539
8057
|
const {
|
|
8540
8058
|
theme
|
|
@@ -8543,14 +8061,15 @@ const WeekPicker = props => {
|
|
|
8543
8061
|
children: jsx(DatePicker.WeekPicker, {
|
|
8544
8062
|
css: styles,
|
|
8545
8063
|
...props,
|
|
8064
|
+
ref: ref,
|
|
8546
8065
|
popupStyle: {
|
|
8547
8066
|
...getDropdownStyles$1(theme),
|
|
8548
8067
|
...(props.popupStyle || {})
|
|
8549
8068
|
}
|
|
8550
8069
|
})
|
|
8551
8070
|
});
|
|
8552
|
-
};
|
|
8553
|
-
const MonthPicker = props => {
|
|
8071
|
+
});
|
|
8072
|
+
const MonthPicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
8554
8073
|
const styles = useDatePickerStyles();
|
|
8555
8074
|
const {
|
|
8556
8075
|
theme
|
|
@@ -8559,14 +8078,15 @@ const MonthPicker = props => {
|
|
|
8559
8078
|
children: jsx(DatePicker.MonthPicker, {
|
|
8560
8079
|
css: styles,
|
|
8561
8080
|
...props,
|
|
8081
|
+
ref: ref,
|
|
8562
8082
|
popupStyle: {
|
|
8563
8083
|
...getDropdownStyles$1(theme),
|
|
8564
8084
|
...(props.popupStyle || {})
|
|
8565
8085
|
}
|
|
8566
8086
|
})
|
|
8567
8087
|
});
|
|
8568
|
-
};
|
|
8569
|
-
const YearPicker = props => {
|
|
8088
|
+
});
|
|
8089
|
+
const YearPicker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
8570
8090
|
const styles = useDatePickerStyles();
|
|
8571
8091
|
const {
|
|
8572
8092
|
theme
|
|
@@ -8575,13 +8095,14 @@ const YearPicker = props => {
|
|
|
8575
8095
|
children: jsx(DatePicker.YearPicker, {
|
|
8576
8096
|
css: styles,
|
|
8577
8097
|
...props,
|
|
8098
|
+
ref: ref,
|
|
8578
8099
|
popupStyle: {
|
|
8579
8100
|
...getDropdownStyles$1(theme),
|
|
8580
8101
|
...(props.popupStyle || {})
|
|
8581
8102
|
}
|
|
8582
8103
|
})
|
|
8583
8104
|
});
|
|
8584
|
-
};
|
|
8105
|
+
});
|
|
8585
8106
|
|
|
8586
8107
|
/**
|
|
8587
8108
|
* `LegacyDatePicker` was added as a temporary solution pending an
|
|
@@ -8643,20 +8164,20 @@ const Spacer = _ref => {
|
|
|
8643
8164
|
});
|
|
8644
8165
|
};
|
|
8645
8166
|
|
|
8646
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
8167
|
+
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
8168
|
const DEFAULT_WIDTH$1 = 320;
|
|
8648
8169
|
const MIN_WIDTH = 320;
|
|
8649
8170
|
const MAX_WIDTH = '90vw';
|
|
8650
8171
|
const DEFAULT_POSITION = 'right';
|
|
8651
8172
|
const ZINDEX_OVERLAY = 10;
|
|
8652
8173
|
const ZINDEX_CONTENT = ZINDEX_OVERLAY + 10;
|
|
8653
|
-
var _ref2$
|
|
8174
|
+
var _ref2$1 = process.env.NODE_ENV === "production" ? {
|
|
8654
8175
|
name: "zh83op",
|
|
8655
8176
|
styles: "flex-grow:1;margin-bottom:0;margin-top:0;white-space:nowrap;overflow:hidden"
|
|
8656
8177
|
} : {
|
|
8657
8178
|
name: "h5yqvj-Content",
|
|
8658
8179
|
styles: "flex-grow:1;margin-bottom:0;margin-top:0;white-space:nowrap;overflow:hidden;label:Content;",
|
|
8659
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
8180
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
|
|
8660
8181
|
};
|
|
8661
8182
|
const Content$4 = _ref => {
|
|
8662
8183
|
let {
|
|
@@ -8665,7 +8186,9 @@ const Content$4 = _ref => {
|
|
|
8665
8186
|
title,
|
|
8666
8187
|
width,
|
|
8667
8188
|
position: positionOverride,
|
|
8668
|
-
useCustomScrollBehavior
|
|
8189
|
+
useCustomScrollBehavior,
|
|
8190
|
+
expandContentToFullHeight,
|
|
8191
|
+
disableOpenAutoFocus
|
|
8669
8192
|
} = _ref;
|
|
8670
8193
|
const {
|
|
8671
8194
|
getPopupContainer
|
|
@@ -8735,6 +8258,11 @@ const Content$4 = _ref => {
|
|
|
8735
8258
|
justifyContent: 'flex-start'
|
|
8736
8259
|
},
|
|
8737
8260
|
ref: contentContainerRef,
|
|
8261
|
+
onOpenAutoFocus: event => {
|
|
8262
|
+
if (disableOpenAutoFocus) {
|
|
8263
|
+
event.preventDefault();
|
|
8264
|
+
}
|
|
8265
|
+
},
|
|
8738
8266
|
children: jsxs(ApplyDesignSystemContextOverrides, {
|
|
8739
8267
|
getPopupContainer: () => {
|
|
8740
8268
|
var _contentContainerRef$;
|
|
@@ -8755,7 +8283,7 @@ const Content$4 = _ref => {
|
|
|
8755
8283
|
children: [jsx(DialogPrimitive.Title, {
|
|
8756
8284
|
title: typeof title === 'string' ? title : undefined,
|
|
8757
8285
|
asChild: typeof title === 'string',
|
|
8758
|
-
css: _ref2$
|
|
8286
|
+
css: _ref2$1,
|
|
8759
8287
|
children: typeof title === 'string' ? jsx(Typography.Title, {
|
|
8760
8288
|
level: 2,
|
|
8761
8289
|
withoutMargins: true,
|
|
@@ -8781,6 +8309,7 @@ const Content$4 = _ref => {
|
|
|
8781
8309
|
paddingRight: useCustomScrollBehavior ? 0 : horizontalContentPadding,
|
|
8782
8310
|
paddingLeft: horizontalContentPadding,
|
|
8783
8311
|
overflowY: useCustomScrollBehavior ? 'hidden' : 'auto',
|
|
8312
|
+
height: expandContentToFullHeight ? '100%' : undefined,
|
|
8784
8313
|
...(theme.themeName === 'default' && !useCustomScrollBehavior ? {
|
|
8785
8314
|
// Achieves an inner shadow on the content, but only when there is more left to scroll. When the content fits
|
|
8786
8315
|
// in the container without scrolling, no shadow will be shown.
|
|
@@ -8853,51 +8382,6 @@ const Dropdown = _ref => {
|
|
|
8853
8382
|
});
|
|
8854
8383
|
};
|
|
8855
8384
|
|
|
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
8385
|
const Root$2 = DropdownMenu$1.Root; // Behavioral component only
|
|
8902
8386
|
|
|
8903
8387
|
const Content$3 = /*#__PURE__*/forwardRef(function Content(_ref, ref) {
|
|
@@ -9130,7 +8614,7 @@ const RadioItem = /*#__PURE__*/forwardRef(function RadioItem(_ref11, ref) {
|
|
|
9130
8614
|
});
|
|
9131
8615
|
|
|
9132
8616
|
// UNWRAPPED RADIX-UI-COMPONENTS
|
|
9133
|
-
const Group$
|
|
8617
|
+
const Group$1 = DropdownMenu$1.Group;
|
|
9134
8618
|
const RadioGroup = DropdownMenu$1.RadioGroup;
|
|
9135
8619
|
const Sub = DropdownMenu$1.Sub;
|
|
9136
8620
|
|
|
@@ -9259,7 +8743,7 @@ const dropdownContentStyles = theme => ({
|
|
|
9259
8743
|
border: "1px solid ".concat(theme.colors.borderDecorative),
|
|
9260
8744
|
borderRadius: theme.borders.borderRadiusMd,
|
|
9261
8745
|
padding: "".concat(theme.spacing.xs, "px 0"),
|
|
9262
|
-
boxShadow: theme.
|
|
8746
|
+
boxShadow: theme.general.shadowLow,
|
|
9263
8747
|
userSelect: 'none',
|
|
9264
8748
|
// Ant Design uses 1000s for their zIndex space; this ensures Radix works with that, but
|
|
9265
8749
|
// we'll likely need to be sure that all Radix components are using the same zIndex going forward.
|
|
@@ -9333,7 +8817,7 @@ var DropdownMenu = /*#__PURE__*/Object.freeze({
|
|
|
9333
8817
|
ItemIndicator: ItemIndicator,
|
|
9334
8818
|
Arrow: Arrow$1,
|
|
9335
8819
|
RadioItem: RadioItem,
|
|
9336
|
-
Group: Group$
|
|
8820
|
+
Group: Group$1,
|
|
9337
8821
|
RadioGroup: RadioGroup,
|
|
9338
8822
|
Sub: Sub,
|
|
9339
8823
|
HintColumn: HintColumn,
|
|
@@ -9342,7 +8826,7 @@ var DropdownMenu = /*#__PURE__*/Object.freeze({
|
|
|
9342
8826
|
dropdownContentStyles: dropdownContentStyles
|
|
9343
8827
|
});
|
|
9344
8828
|
|
|
9345
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
8829
|
+
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
8830
|
const {
|
|
9347
8831
|
Title: Title$1,
|
|
9348
8832
|
Paragraph
|
|
@@ -9383,13 +8867,13 @@ function getEmptyDescriptionStyles(theme, clsPrefix) {
|
|
|
9383
8867
|
};
|
|
9384
8868
|
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEmptyDescriptionStyles;");
|
|
9385
8869
|
}
|
|
9386
|
-
var _ref$
|
|
8870
|
+
var _ref$2 = process.env.NODE_ENV === "production" ? {
|
|
9387
8871
|
name: "zl1inp",
|
|
9388
8872
|
styles: "display:flex;justify-content:center"
|
|
9389
8873
|
} : {
|
|
9390
8874
|
name: "11tid6c-Empty",
|
|
9391
8875
|
styles: "display:flex;justify-content:center;label:Empty;",
|
|
9392
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
8876
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
|
|
9393
8877
|
};
|
|
9394
8878
|
const Empty = props => {
|
|
9395
8879
|
const {
|
|
@@ -9406,7 +8890,7 @@ const Empty = props => {
|
|
|
9406
8890
|
} = props;
|
|
9407
8891
|
return jsx("div", {
|
|
9408
8892
|
...dataProps,
|
|
9409
|
-
css: _ref$
|
|
8893
|
+
css: _ref$2,
|
|
9410
8894
|
children: jsxs("div", {
|
|
9411
8895
|
css: [getEmptyStyles(theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Empty;"],
|
|
9412
8896
|
children: [image, title && jsx(Title$1, {
|
|
@@ -9526,7 +9010,9 @@ const getMessageStyles = (clsPrefix, theme) => {
|
|
|
9526
9010
|
'&&': {
|
|
9527
9011
|
lineHeight: theme.typography.lineHeightSm,
|
|
9528
9012
|
fontSize: theme.typography.fontSizeSm,
|
|
9529
|
-
marginTop: theme.spacing.sm
|
|
9013
|
+
marginTop: theme.spacing.sm,
|
|
9014
|
+
display: 'flex',
|
|
9015
|
+
alignItems: 'center'
|
|
9530
9016
|
},
|
|
9531
9017
|
["&".concat(errorClass)]: {
|
|
9532
9018
|
color: theme.colors.actionDangerPrimaryBackgroundDefault
|
|
@@ -9563,7 +9049,7 @@ function FormMessage(_ref) {
|
|
|
9563
9049
|
return jsxs("div", {
|
|
9564
9050
|
className: wrapperClass,
|
|
9565
9051
|
css: [getMessageStyles(classNamePrefix, theme), css, process.env.NODE_ENV === "production" ? "" : ";label:FormMessage;"],
|
|
9566
|
-
children: [jsx(StateIcon, {}), "
|
|
9052
|
+
children: [jsx(StateIcon, {}), "\xA0", message]
|
|
9567
9053
|
});
|
|
9568
9054
|
}
|
|
9569
9055
|
|
|
@@ -9633,258 +9119,41 @@ const Label = props => {
|
|
|
9633
9119
|
});
|
|
9634
9120
|
};
|
|
9635
9121
|
|
|
9636
|
-
const
|
|
9122
|
+
const getRadioInputStyles = _ref => {
|
|
9637
9123
|
let {
|
|
9638
|
-
|
|
9124
|
+
clsPrefix,
|
|
9125
|
+
theme,
|
|
9126
|
+
useNewStyles
|
|
9639
9127
|
} = _ref;
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9128
|
+
return {
|
|
9129
|
+
[".".concat(clsPrefix)]: {
|
|
9130
|
+
alignSelf: 'start',
|
|
9131
|
+
// Unchecked Styles
|
|
9132
|
+
["> .".concat(clsPrefix, "-input + .").concat(clsPrefix, "-inner")]: {
|
|
9133
|
+
width: theme.spacing.md,
|
|
9134
|
+
height: theme.spacing.md,
|
|
9135
|
+
background: useNewStyles ? theme.colors.actionDefaultBackgroundDefault : theme.colors.radioDefaultBackground,
|
|
9136
|
+
borderStyle: 'solid',
|
|
9137
|
+
borderColor: useNewStyles ? theme.colors.actionDefaultBorderDefault : theme.colors.radioDefaultBorder,
|
|
9138
|
+
boxShadow: 'unset',
|
|
9139
|
+
transform: 'unset',
|
|
9140
|
+
// This prevents an awkward jitter on the border
|
|
9141
|
+
display: 'flex',
|
|
9142
|
+
justifyContent: 'center',
|
|
9143
|
+
alignItems: 'center',
|
|
9144
|
+
borderRadius: '50%',
|
|
9145
|
+
'&:after': {
|
|
9146
|
+
all: 'unset'
|
|
9147
|
+
}
|
|
9656
9148
|
},
|
|
9657
|
-
|
|
9658
|
-
|
|
9659
|
-
|
|
9660
|
-
|
|
9661
|
-
outlineStyle: 'solid',
|
|
9662
|
-
boxShadow: 'none',
|
|
9663
|
-
borderColor: 'transparent'
|
|
9149
|
+
// Hover
|
|
9150
|
+
["&:not(.".concat(clsPrefix, "-disabled) > .").concat(clsPrefix, "-input:hover + .").concat(clsPrefix, "-inner")]: {
|
|
9151
|
+
borderColor: useNewStyles ? theme.colors.actionPrimaryBackgroundHover : theme.colors.radioInteractiveHover,
|
|
9152
|
+
background: useNewStyles ? theme.colors.actionDefaultBackgroundHover : theme.colors.radioInteractiveHoverSecondary
|
|
9664
9153
|
},
|
|
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
|
|
9154
|
+
// Focus
|
|
9155
|
+
["&:not(.".concat(clsPrefix, "-disabled)> .").concat(clsPrefix, "-input:focus + .").concat(clsPrefix, "-inner")]: {
|
|
9156
|
+
borderColor: useNewStyles ? theme.colors.actionPrimaryBackgroundDefault : theme.colors.primary
|
|
9888
9157
|
},
|
|
9889
9158
|
// Active
|
|
9890
9159
|
["&:not(.".concat(clsPrefix, "-disabled)> .").concat(clsPrefix, "-input:active + .").concat(clsPrefix, "-inner")]: {
|
|
@@ -10048,6 +9317,7 @@ const getRadioStyles = _ref5 => {
|
|
|
10048
9317
|
};
|
|
10049
9318
|
const DuboisRadio = /*#__PURE__*/forwardRef(function Radio(_ref6, ref) {
|
|
10050
9319
|
let {
|
|
9320
|
+
children,
|
|
10051
9321
|
dangerouslySetAntdProps,
|
|
10052
9322
|
...props
|
|
10053
9323
|
} = _ref6;
|
|
@@ -10068,12 +9338,16 @@ const DuboisRadio = /*#__PURE__*/forwardRef(function Radio(_ref6, ref) {
|
|
|
10068
9338
|
}),
|
|
10069
9339
|
...props,
|
|
10070
9340
|
...dangerouslySetAntdProps,
|
|
10071
|
-
ref: ref
|
|
9341
|
+
ref: ref,
|
|
9342
|
+
children: jsx(RestoreAntDDefaultClsPrefix, {
|
|
9343
|
+
children: children
|
|
9344
|
+
})
|
|
10072
9345
|
})
|
|
10073
9346
|
});
|
|
10074
9347
|
});
|
|
10075
9348
|
const StyledRadioGroup = /*#__PURE__*/forwardRef(function StyledRadioGroup(_ref7, ref) {
|
|
10076
9349
|
let {
|
|
9350
|
+
children,
|
|
10077
9351
|
dangerouslySetAntdProps,
|
|
10078
9352
|
...props
|
|
10079
9353
|
} = _ref7;
|
|
@@ -10096,7 +9370,10 @@ const StyledRadioGroup = /*#__PURE__*/forwardRef(function StyledRadioGroup(_ref7
|
|
|
10096
9370
|
useNewStyles: USE_NEW_RADIO_STYLES
|
|
10097
9371
|
}),
|
|
10098
9372
|
...dangerouslySetAntdProps,
|
|
10099
|
-
ref: ref
|
|
9373
|
+
ref: ref,
|
|
9374
|
+
children: jsx(RestoreAntDDefaultClsPrefix, {
|
|
9375
|
+
children: children
|
|
9376
|
+
})
|
|
10100
9377
|
})
|
|
10101
9378
|
});
|
|
10102
9379
|
});
|
|
@@ -10449,7 +9726,8 @@ function getDropdownStyles(clsPrefix, theme) {
|
|
|
10449
9726
|
borderColor: theme.colors.borderDecorative,
|
|
10450
9727
|
borderWidth: 1,
|
|
10451
9728
|
borderStyle: 'solid',
|
|
10452
|
-
zIndex: theme.options.zIndexBase + 50
|
|
9729
|
+
zIndex: theme.options.zIndexBase + 50,
|
|
9730
|
+
boxShadow: theme.general.shadowLow
|
|
10453
9731
|
}),
|
|
10454
9732
|
[classItem]: {
|
|
10455
9733
|
height: theme.general.heightSm,
|
|
@@ -10639,145 +9917,12 @@ const Select = /* #__PURE__ */(() => {
|
|
|
10639
9917
|
return DuboisRefForwardedSelect;
|
|
10640
9918
|
})();
|
|
10641
9919
|
|
|
10642
|
-
|
|
9920
|
+
function RHFControlledInput(_ref) {
|
|
10643
9921
|
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
|
|
9922
|
+
name,
|
|
9923
|
+
control,
|
|
9924
|
+
rules,
|
|
9925
|
+
...restProps
|
|
10781
9926
|
} = _ref;
|
|
10782
9927
|
const {
|
|
10783
9928
|
field
|
|
@@ -10876,7 +10021,7 @@ function RHFControlledCheckboxGroup(_ref5) {
|
|
|
10876
10021
|
value: field.value
|
|
10877
10022
|
});
|
|
10878
10023
|
}
|
|
10879
|
-
function
|
|
10024
|
+
function RHFControlledCheckbox(_ref6) {
|
|
10880
10025
|
let {
|
|
10881
10026
|
name,
|
|
10882
10027
|
control,
|
|
@@ -10890,12 +10035,21 @@ function RHFControlledRadioGroup(_ref6) {
|
|
|
10890
10035
|
control: control,
|
|
10891
10036
|
rules: rules
|
|
10892
10037
|
});
|
|
10893
|
-
|
|
10894
|
-
|
|
10895
|
-
|
|
10038
|
+
const {
|
|
10039
|
+
theme
|
|
10040
|
+
} = useDesignSystemTheme();
|
|
10041
|
+
return jsx("div", {
|
|
10042
|
+
css: /*#__PURE__*/css({
|
|
10043
|
+
marginTop: theme.spacing.sm
|
|
10044
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:RHFControlledCheckbox;"),
|
|
10045
|
+
children: jsx(Checkbox, {
|
|
10046
|
+
...restProps,
|
|
10047
|
+
...field,
|
|
10048
|
+
checked: field.value
|
|
10049
|
+
})
|
|
10896
10050
|
});
|
|
10897
10051
|
}
|
|
10898
|
-
function
|
|
10052
|
+
function RHFControlledRadioGroup(_ref7) {
|
|
10899
10053
|
let {
|
|
10900
10054
|
name,
|
|
10901
10055
|
control,
|
|
@@ -10903,19 +10057,15 @@ function RHFControlledSwitch(_ref7) {
|
|
|
10903
10057
|
...restProps
|
|
10904
10058
|
} = _ref7;
|
|
10905
10059
|
const {
|
|
10906
|
-
field
|
|
10907
|
-
value,
|
|
10908
|
-
...restField
|
|
10909
|
-
}
|
|
10060
|
+
field
|
|
10910
10061
|
} = useController({
|
|
10911
10062
|
name: name,
|
|
10912
10063
|
control: control,
|
|
10913
10064
|
rules: rules
|
|
10914
10065
|
});
|
|
10915
|
-
return jsx(
|
|
10066
|
+
return jsx(Radio.Group, {
|
|
10916
10067
|
...restProps,
|
|
10917
|
-
...
|
|
10918
|
-
checked: value
|
|
10068
|
+
...field
|
|
10919
10069
|
});
|
|
10920
10070
|
}
|
|
10921
10071
|
const RHFControlledComponents = {
|
|
@@ -10923,9 +10073,9 @@ const RHFControlledComponents = {
|
|
|
10923
10073
|
Password: RHFControlledPasswordInput,
|
|
10924
10074
|
TextArea: RHFControlledTextArea,
|
|
10925
10075
|
Select: RHFControlledSelect,
|
|
10076
|
+
Checkbox: RHFControlledCheckbox,
|
|
10926
10077
|
CheckboxGroup: RHFControlledCheckboxGroup,
|
|
10927
|
-
RadioGroup: RHFControlledRadioGroup
|
|
10928
|
-
Switch: RHFControlledSwitch
|
|
10078
|
+
RadioGroup: RHFControlledRadioGroup
|
|
10929
10079
|
};
|
|
10930
10080
|
|
|
10931
10081
|
const FormUI = {
|
|
@@ -10974,7 +10124,7 @@ const Space = _ref => {
|
|
|
10974
10124
|
});
|
|
10975
10125
|
};
|
|
10976
10126
|
|
|
10977
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
10127
|
+
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
10128
|
const getHeaderStyles = (clsPrefix, theme) => {
|
|
10979
10129
|
const breadcrumbClass = ".".concat(clsPrefix, "-breadcrumb");
|
|
10980
10130
|
const styles = {
|
|
@@ -10984,21 +10134,21 @@ const getHeaderStyles = (clsPrefix, theme) => {
|
|
|
10984
10134
|
};
|
|
10985
10135
|
return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:getHeaderStyles;");
|
|
10986
10136
|
};
|
|
10987
|
-
var _ref$
|
|
10137
|
+
var _ref$1 = process.env.NODE_ENV === "production" ? {
|
|
10988
10138
|
name: "5s4ezj",
|
|
10989
10139
|
styles: "display:inline-flex;vertical-align:middle;align-items:center;margin-left:8px"
|
|
10990
10140
|
} : {
|
|
10991
10141
|
name: "gxikdi-titleAddOnsWrapper",
|
|
10992
10142
|
styles: "display:inline-flex;vertical-align:middle;align-items:center;margin-left:8px;label:titleAddOnsWrapper;",
|
|
10993
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
10143
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
|
|
10994
10144
|
};
|
|
10995
|
-
var _ref2
|
|
10145
|
+
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
10996
10146
|
name: "1q4vxyr",
|
|
10997
10147
|
styles: "margin-left:8px"
|
|
10998
10148
|
} : {
|
|
10999
10149
|
name: "ozrfom-buttonContainer",
|
|
11000
10150
|
styles: "margin-left:8px;label:buttonContainer;",
|
|
11001
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
10151
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
|
|
11002
10152
|
};
|
|
11003
10153
|
var _ref3$1 = process.env.NODE_ENV === "production" ? {
|
|
11004
10154
|
name: "s079uh",
|
|
@@ -11006,15 +10156,15 @@ var _ref3$1 = process.env.NODE_ENV === "production" ? {
|
|
|
11006
10156
|
} : {
|
|
11007
10157
|
name: "1ky5whb-titleIfOtherElementsPresent",
|
|
11008
10158
|
styles: "margin-top:2px;label:titleIfOtherElementsPresent;",
|
|
11009
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
10159
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
|
|
11010
10160
|
};
|
|
11011
|
-
var _ref4 = process.env.NODE_ENV === "production" ? {
|
|
10161
|
+
var _ref4$1 = process.env.NODE_ENV === "production" ? {
|
|
11012
10162
|
name: "18hxk3h",
|
|
11013
10163
|
styles: "margin-top:0;margin-bottom:0 !important"
|
|
11014
10164
|
} : {
|
|
11015
10165
|
name: "abhq57-title",
|
|
11016
10166
|
styles: "margin-top:0;margin-bottom:0 !important;label:title;",
|
|
11017
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
10167
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
|
|
11018
10168
|
};
|
|
11019
10169
|
var _ref5 = process.env.NODE_ENV === "production" ? {
|
|
11020
10170
|
name: "1cl2a0e",
|
|
@@ -11022,7 +10172,7 @@ var _ref5 = process.env.NODE_ENV === "production" ? {
|
|
|
11022
10172
|
} : {
|
|
11023
10173
|
name: "m9gz0x-titleWrapper",
|
|
11024
10174
|
styles: "display:flex;align-items:flex-start;justify-content:space-between;label:titleWrapper;",
|
|
11025
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
10175
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
|
|
11026
10176
|
};
|
|
11027
10177
|
const Header$1 = props => {
|
|
11028
10178
|
const {
|
|
@@ -11037,11 +10187,11 @@ const Header$1 = props => {
|
|
|
11037
10187
|
marginBottom: 2,
|
|
11038
10188
|
lineHeight: theme.typography.lineHeightBase
|
|
11039
10189
|
}, process.env.NODE_ENV === "production" ? "" : ";label:breadcrumbWrapper;"),
|
|
11040
|
-
title: _ref4,
|
|
10190
|
+
title: _ref4$1,
|
|
11041
10191
|
// TODO: Look into a more emotion-idomatic way of doing this.
|
|
11042
10192
|
titleIfOtherElementsPresent: _ref3$1,
|
|
11043
|
-
buttonContainer: _ref2
|
|
11044
|
-
titleAddOnsWrapper: _ref$
|
|
10193
|
+
buttonContainer: _ref2,
|
|
10194
|
+
titleAddOnsWrapper: _ref$1
|
|
11045
10195
|
};
|
|
11046
10196
|
return jsxs("div", {
|
|
11047
10197
|
css: [getHeaderStyles(clsPrefix, theme), props.dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Header;"],
|
|
@@ -11151,6 +10301,225 @@ const Layout = /* #__PURE__ */(() => {
|
|
|
11151
10301
|
return Layout;
|
|
11152
10302
|
})();
|
|
11153
10303
|
|
|
10304
|
+
function getPaginationEmotionStyles(clsPrefix, theme) {
|
|
10305
|
+
const classRoot = ".".concat(clsPrefix, "-pagination");
|
|
10306
|
+
const classItem = ".".concat(clsPrefix, "-pagination-item");
|
|
10307
|
+
const classLink = ".".concat(clsPrefix, "-pagination-item-link");
|
|
10308
|
+
const classActive = ".".concat(clsPrefix, "-pagination-item-active");
|
|
10309
|
+
const classEllipsis = ".".concat(clsPrefix, "-pagination-item-ellipsis");
|
|
10310
|
+
const classNext = ".".concat(clsPrefix, "-pagination-next");
|
|
10311
|
+
const classPrev = ".".concat(clsPrefix, "-pagination-prev");
|
|
10312
|
+
const classJumpNext = ".".concat(clsPrefix, "-pagination-jump-next");
|
|
10313
|
+
const classJumpPrev = ".".concat(clsPrefix, "-pagination-jump-prev");
|
|
10314
|
+
const classSizeChanger = ".".concat(clsPrefix, "-pagination-options-size-changer");
|
|
10315
|
+
const classOptions = ".".concat(clsPrefix, "-pagination-options");
|
|
10316
|
+
const styles = {
|
|
10317
|
+
'span[role=img]': {
|
|
10318
|
+
color: theme.colors.textSecondary,
|
|
10319
|
+
'> *': {
|
|
10320
|
+
color: 'inherit'
|
|
10321
|
+
}
|
|
10322
|
+
},
|
|
10323
|
+
[classItem]: {
|
|
10324
|
+
backgroundColor: 'none',
|
|
10325
|
+
border: 'none',
|
|
10326
|
+
color: theme.colors.textSecondary,
|
|
10327
|
+
'&:focus-visible': {
|
|
10328
|
+
outline: 'auto'
|
|
10329
|
+
},
|
|
10330
|
+
'> a': {
|
|
10331
|
+
color: theme.colors.textSecondary,
|
|
10332
|
+
'&:hover': {
|
|
10333
|
+
color: theme.colors.actionDefaultTextHover
|
|
10334
|
+
},
|
|
10335
|
+
'&:active': {
|
|
10336
|
+
color: theme.colors.actionDefaultTextPress
|
|
10337
|
+
}
|
|
10338
|
+
},
|
|
10339
|
+
'&:hover': {
|
|
10340
|
+
backgroundColor: theme.colors.actionDefaultBackgroundHover
|
|
10341
|
+
},
|
|
10342
|
+
'&:active': {
|
|
10343
|
+
backgroundColor: theme.colors.actionDefaultBackgroundPress
|
|
10344
|
+
}
|
|
10345
|
+
},
|
|
10346
|
+
[classActive]: {
|
|
10347
|
+
backgroundColor: theme.colors.actionDefaultBackgroundPress,
|
|
10348
|
+
color: theme.colors.actionDefaultTextPress,
|
|
10349
|
+
border: 'none',
|
|
10350
|
+
'> a': {
|
|
10351
|
+
color: theme.colors.actionDefaultTextPress
|
|
10352
|
+
},
|
|
10353
|
+
'&:focus-visible': {
|
|
10354
|
+
outline: 'auto'
|
|
10355
|
+
},
|
|
10356
|
+
'&:hover': {
|
|
10357
|
+
backgroundColor: theme.colors.actionDefaultBackgroundPress,
|
|
10358
|
+
color: theme.colors.actionDefaultTextPress
|
|
10359
|
+
}
|
|
10360
|
+
},
|
|
10361
|
+
[classLink]: {
|
|
10362
|
+
border: 'none',
|
|
10363
|
+
color: theme.colors.textSecondary,
|
|
10364
|
+
'&[disabled]': {
|
|
10365
|
+
display: 'none'
|
|
10366
|
+
},
|
|
10367
|
+
'&:hover': {
|
|
10368
|
+
backgroundColor: theme.colors.actionDefaultBackgroundHover
|
|
10369
|
+
},
|
|
10370
|
+
'&:active': {
|
|
10371
|
+
backgroundColor: theme.colors.actionDefaultBackgroundPress
|
|
10372
|
+
},
|
|
10373
|
+
'&:focus-visible': {
|
|
10374
|
+
outline: 'auto'
|
|
10375
|
+
}
|
|
10376
|
+
},
|
|
10377
|
+
[classEllipsis]: {
|
|
10378
|
+
color: 'inherit'
|
|
10379
|
+
},
|
|
10380
|
+
["".concat(classNext, ", ").concat(classPrev, ", ").concat(classJumpNext, ", ").concat(classJumpPrev)]: {
|
|
10381
|
+
color: theme.colors.textSecondary,
|
|
10382
|
+
'&:hover': {
|
|
10383
|
+
backgroundColor: theme.colors.actionDefaultBackgroundHover
|
|
10384
|
+
},
|
|
10385
|
+
'&:active': {
|
|
10386
|
+
backgroundColor: theme.colors.actionDefaultBackgroundPress
|
|
10387
|
+
},
|
|
10388
|
+
'&:focus-visible': {
|
|
10389
|
+
outline: 'auto'
|
|
10390
|
+
}
|
|
10391
|
+
},
|
|
10392
|
+
["&".concat(classRoot, ".mini, ").concat(classRoot, ".mini")]: {
|
|
10393
|
+
["".concat(classItem, ", ").concat(classNext, ", ").concat(classPrev, ", ").concat(classJumpNext, ", ").concat(classJumpPrev)]: {
|
|
10394
|
+
height: '32px',
|
|
10395
|
+
width: '32px',
|
|
10396
|
+
lineHeight: '32px'
|
|
10397
|
+
},
|
|
10398
|
+
[classSizeChanger]: {
|
|
10399
|
+
marginLeft: 4
|
|
10400
|
+
},
|
|
10401
|
+
["input, ".concat(classOptions)]: {
|
|
10402
|
+
height: '32px'
|
|
10403
|
+
}
|
|
10404
|
+
}
|
|
10405
|
+
};
|
|
10406
|
+
const importantStyles = importantify(styles);
|
|
10407
|
+
return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getPaginationEmotionStyles;");
|
|
10408
|
+
}
|
|
10409
|
+
const Pagination = function Pagination(_ref) {
|
|
10410
|
+
let {
|
|
10411
|
+
currentPageIndex,
|
|
10412
|
+
pageSize = 10,
|
|
10413
|
+
numTotal,
|
|
10414
|
+
onChange,
|
|
10415
|
+
dangerouslySetAntdProps
|
|
10416
|
+
} = _ref;
|
|
10417
|
+
const {
|
|
10418
|
+
classNamePrefix,
|
|
10419
|
+
theme
|
|
10420
|
+
} = useDesignSystemTheme();
|
|
10421
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
10422
|
+
children: jsx(Pagination$1, {
|
|
10423
|
+
css: getPaginationEmotionStyles(classNamePrefix, theme),
|
|
10424
|
+
current: currentPageIndex,
|
|
10425
|
+
pageSize: pageSize,
|
|
10426
|
+
responsive: false,
|
|
10427
|
+
total: numTotal,
|
|
10428
|
+
onChange: onChange,
|
|
10429
|
+
showSizeChanger: false,
|
|
10430
|
+
showQuickJumper: true,
|
|
10431
|
+
size: 'small',
|
|
10432
|
+
...dangerouslySetAntdProps
|
|
10433
|
+
})
|
|
10434
|
+
});
|
|
10435
|
+
};
|
|
10436
|
+
|
|
10437
|
+
const getTableEmotionStyles = (classNamePrefix, theme, scrollableInFlexibleContainer) => {
|
|
10438
|
+
const styles = [/*#__PURE__*/css({
|
|
10439
|
+
[".".concat(classNamePrefix, "-table-pagination")]: {
|
|
10440
|
+
...getPaginationEmotionStyles(classNamePrefix, theme)
|
|
10441
|
+
}
|
|
10442
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:styles;")];
|
|
10443
|
+
if (scrollableInFlexibleContainer) {
|
|
10444
|
+
styles.push(getScrollableInFlexibleContainerStyles(classNamePrefix));
|
|
10445
|
+
}
|
|
10446
|
+
return styles;
|
|
10447
|
+
};
|
|
10448
|
+
const getScrollableInFlexibleContainerStyles = clsPrefix => {
|
|
10449
|
+
const styles = {
|
|
10450
|
+
minHeight: 0,
|
|
10451
|
+
[".".concat(clsPrefix, "-spin-nested-loading")]: {
|
|
10452
|
+
height: '100%'
|
|
10453
|
+
},
|
|
10454
|
+
[".".concat(clsPrefix, "-spin-container")]: {
|
|
10455
|
+
height: '100%',
|
|
10456
|
+
display: 'flex',
|
|
10457
|
+
flexDirection: 'column'
|
|
10458
|
+
},
|
|
10459
|
+
[".".concat(clsPrefix, "-table-container")]: {
|
|
10460
|
+
height: '100%',
|
|
10461
|
+
display: 'flex',
|
|
10462
|
+
flexDirection: 'column'
|
|
10463
|
+
},
|
|
10464
|
+
[".".concat(clsPrefix, "-table")]: {
|
|
10465
|
+
minHeight: 0
|
|
10466
|
+
},
|
|
10467
|
+
[".".concat(clsPrefix, "-table-header")]: {
|
|
10468
|
+
flexShrink: 0
|
|
10469
|
+
},
|
|
10470
|
+
[".".concat(clsPrefix, "-table-body")]: {
|
|
10471
|
+
minHeight: 0
|
|
10472
|
+
}
|
|
10473
|
+
};
|
|
10474
|
+
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getScrollableInFlexibleContainerStyles;");
|
|
10475
|
+
};
|
|
10476
|
+
const DEFAULT_LOADING_SPIN_PROPS = {
|
|
10477
|
+
indicator: jsx(Spinner, {})
|
|
10478
|
+
};
|
|
10479
|
+
|
|
10480
|
+
/**
|
|
10481
|
+
* `LegacyTable` is deprecated in favor of the new `Table` component
|
|
10482
|
+
* For more information please join #dubois-table-early-adopters in Slack.
|
|
10483
|
+
* @deprecated
|
|
10484
|
+
*/
|
|
10485
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
10486
|
+
const LegacyTable = props => {
|
|
10487
|
+
const {
|
|
10488
|
+
classNamePrefix,
|
|
10489
|
+
theme
|
|
10490
|
+
} = useDesignSystemTheme();
|
|
10491
|
+
const {
|
|
10492
|
+
loading,
|
|
10493
|
+
scrollableInFlexibleContainer,
|
|
10494
|
+
children,
|
|
10495
|
+
...tableProps
|
|
10496
|
+
} = props;
|
|
10497
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
10498
|
+
children: jsx(Table$1
|
|
10499
|
+
// NOTE(FEINF-1273): The default loading indicator from AntD does not animate
|
|
10500
|
+
// and the design system spinner is recommended over the AntD one. Therefore,
|
|
10501
|
+
// if `loading` is `true`, render the design system <Spinner/> component.
|
|
10502
|
+
, {
|
|
10503
|
+
loading: loading === true ? DEFAULT_LOADING_SPIN_PROPS : loading,
|
|
10504
|
+
scroll: scrollableInFlexibleContainer ? {
|
|
10505
|
+
y: 'auto'
|
|
10506
|
+
} : undefined,
|
|
10507
|
+
...tableProps,
|
|
10508
|
+
css: getTableEmotionStyles(classNamePrefix, theme, Boolean(scrollableInFlexibleContainer)),
|
|
10509
|
+
children: jsx(RestoreAntDDefaultClsPrefix, {
|
|
10510
|
+
children: children
|
|
10511
|
+
})
|
|
10512
|
+
})
|
|
10513
|
+
});
|
|
10514
|
+
};
|
|
10515
|
+
|
|
10516
|
+
/**
|
|
10517
|
+
* `LegacyTable` is deprecated in favor of the new `Table` component
|
|
10518
|
+
* For more information please join #dubois-table-early-adopters in Slack.
|
|
10519
|
+
* @deprecated
|
|
10520
|
+
*/
|
|
10521
|
+
const Table = LegacyTable;
|
|
10522
|
+
|
|
11154
10523
|
/**
|
|
11155
10524
|
* @deprecated Use `DropdownMenu` instead.
|
|
11156
10525
|
*/
|
|
@@ -11196,7 +10565,7 @@ const Menu = /* #__PURE__ */(() => {
|
|
|
11196
10565
|
return Menu;
|
|
11197
10566
|
})();
|
|
11198
10567
|
|
|
11199
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
10568
|
+
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
10569
|
const SIZE_PRESETS = {
|
|
11201
10570
|
normal: 640,
|
|
11202
10571
|
wide: 880
|
|
@@ -11297,7 +10666,8 @@ const getModalEmotionStyles = args => {
|
|
|
11297
10666
|
overflow: 'hidden',
|
|
11298
10667
|
paddingBottom: MODAL_PADDING,
|
|
11299
10668
|
display: 'flex',
|
|
11300
|
-
flexDirection: 'column'
|
|
10669
|
+
flexDirection: 'column',
|
|
10670
|
+
boxShadow: theme.general.shadowHigh
|
|
11301
10671
|
},
|
|
11302
10672
|
[classNameBody]: {
|
|
11303
10673
|
overflowY: 'auto',
|
|
@@ -11319,7 +10689,46 @@ const getModalEmotionStyles = args => {
|
|
|
11319
10689
|
...getAnimationCss(theme.options.enableAnimation)
|
|
11320
10690
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getModalEmotionStyles;");
|
|
11321
10691
|
};
|
|
11322
|
-
|
|
10692
|
+
|
|
10693
|
+
/**
|
|
10694
|
+
* Render default footer with our buttons. Copied from AntD.
|
|
10695
|
+
*/
|
|
10696
|
+
function DefaultFooter(_ref) {
|
|
10697
|
+
let {
|
|
10698
|
+
onOk,
|
|
10699
|
+
onCancel,
|
|
10700
|
+
confirmLoading,
|
|
10701
|
+
okText,
|
|
10702
|
+
cancelText,
|
|
10703
|
+
okButtonProps,
|
|
10704
|
+
cancelButtonProps,
|
|
10705
|
+
autoFocusButton
|
|
10706
|
+
} = _ref;
|
|
10707
|
+
const handleCancel = e => {
|
|
10708
|
+
onCancel === null || onCancel === void 0 ? void 0 : onCancel(e);
|
|
10709
|
+
};
|
|
10710
|
+
const handleOk = e => {
|
|
10711
|
+
onOk === null || onOk === void 0 ? void 0 : onOk(e);
|
|
10712
|
+
};
|
|
10713
|
+
return jsxs(Fragment, {
|
|
10714
|
+
children: [cancelText && jsx(Button, {
|
|
10715
|
+
onClick: handleCancel,
|
|
10716
|
+
autoFocus: autoFocusButton === 'cancel',
|
|
10717
|
+
dangerouslyUseFocusPseudoClass: true,
|
|
10718
|
+
...cancelButtonProps,
|
|
10719
|
+
children: cancelText
|
|
10720
|
+
}), okText && jsx(Button, {
|
|
10721
|
+
loading: confirmLoading,
|
|
10722
|
+
onClick: handleOk,
|
|
10723
|
+
type: "primary",
|
|
10724
|
+
autoFocus: autoFocusButton === 'ok',
|
|
10725
|
+
dangerouslyUseFocusPseudoClass: true,
|
|
10726
|
+
...okButtonProps,
|
|
10727
|
+
children: okText
|
|
10728
|
+
})]
|
|
10729
|
+
});
|
|
10730
|
+
}
|
|
10731
|
+
function Modal(_ref2) {
|
|
11323
10732
|
let {
|
|
11324
10733
|
okButtonProps,
|
|
11325
10734
|
cancelButtonProps,
|
|
@@ -11329,44 +10738,13 @@ function Modal(_ref) {
|
|
|
11329
10738
|
footer,
|
|
11330
10739
|
size = 'normal',
|
|
11331
10740
|
verticalSizing = 'dynamic',
|
|
10741
|
+
autoFocusButton,
|
|
11332
10742
|
...props
|
|
11333
|
-
} =
|
|
10743
|
+
} = _ref2;
|
|
11334
10744
|
const {
|
|
11335
10745
|
theme,
|
|
11336
10746
|
classNamePrefix
|
|
11337
10747
|
} = 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
10748
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
11371
10749
|
children: jsx(Modal$1, {
|
|
11372
10750
|
css: getModalEmotionStyles({
|
|
@@ -11379,7 +10757,16 @@ function Modal(_ref) {
|
|
|
11379
10757
|
children: title
|
|
11380
10758
|
}),
|
|
11381
10759
|
footer: jsx(RestoreAntDDefaultClsPrefix, {
|
|
11382
|
-
children: footer === undefined ?
|
|
10760
|
+
children: footer === undefined ? jsx(DefaultFooter, {
|
|
10761
|
+
onOk: props.onOk,
|
|
10762
|
+
onCancel: props.onCancel,
|
|
10763
|
+
confirmLoading: props.confirmLoading,
|
|
10764
|
+
okText: props.okText,
|
|
10765
|
+
cancelText: props.cancelText,
|
|
10766
|
+
okButtonProps: okButtonProps,
|
|
10767
|
+
cancelButtonProps: cancelButtonProps,
|
|
10768
|
+
autoFocusButton: autoFocusButton
|
|
10769
|
+
}) : footer
|
|
11383
10770
|
}),
|
|
11384
10771
|
width: size ? SIZE_PRESETS[size] : undefined,
|
|
11385
10772
|
closeIcon: jsx(CloseIcon, {}),
|
|
@@ -11393,21 +10780,21 @@ function Modal(_ref) {
|
|
|
11393
10780
|
})
|
|
11394
10781
|
});
|
|
11395
10782
|
}
|
|
11396
|
-
var
|
|
10783
|
+
var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
11397
10784
|
name: "b9hrb",
|
|
11398
10785
|
styles: "position:relative;display:inline-flex;align-items:center"
|
|
11399
10786
|
} : {
|
|
11400
10787
|
name: "1jkwrsj-titleComp",
|
|
11401
10788
|
styles: "position:relative;display:inline-flex;align-items:center;label:titleComp;",
|
|
11402
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
10789
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
11403
10790
|
};
|
|
11404
|
-
var
|
|
10791
|
+
var _ref4 = process.env.NODE_ENV === "production" ? {
|
|
11405
10792
|
name: "1o6wc9k",
|
|
11406
10793
|
styles: "padding-left:6px"
|
|
11407
10794
|
} : {
|
|
11408
10795
|
name: "i303lp-titleComp",
|
|
11409
10796
|
styles: "padding-left:6px;label:titleComp;",
|
|
11410
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
10797
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
11411
10798
|
};
|
|
11412
10799
|
function DangerModal(props) {
|
|
11413
10800
|
const {
|
|
@@ -11429,7 +10816,7 @@ function DangerModal(props) {
|
|
|
11429
10816
|
const iconSize = useNewIcons ? 18 : 20;
|
|
11430
10817
|
const iconFontSize = useNewIcons ? 18 : 22;
|
|
11431
10818
|
const titleComp = jsxs("div", {
|
|
11432
|
-
css:
|
|
10819
|
+
css: _ref3,
|
|
11433
10820
|
children: [jsx(DangerIcon, {
|
|
11434
10821
|
css: /*#__PURE__*/css({
|
|
11435
10822
|
color: theme.colors.textValidationDanger,
|
|
@@ -11439,7 +10826,7 @@ function DangerModal(props) {
|
|
|
11439
10826
|
fontSize: iconFontSize
|
|
11440
10827
|
}, process.env.NODE_ENV === "production" ? "" : ";label:titleComp;")
|
|
11441
10828
|
}), jsx("div", {
|
|
11442
|
-
css:
|
|
10829
|
+
css: _ref4,
|
|
11443
10830
|
children: title
|
|
11444
10831
|
})]
|
|
11445
10832
|
});
|
|
@@ -11480,7 +10867,8 @@ function useNotification() {
|
|
|
11480
10867
|
...defaultProps,
|
|
11481
10868
|
...args,
|
|
11482
10869
|
style: {
|
|
11483
|
-
zIndex: theme.options.zIndexBase + 30
|
|
10870
|
+
zIndex: theme.options.zIndexBase + 30,
|
|
10871
|
+
boxShadow: theme.general.shadowLow
|
|
11484
10872
|
}
|
|
11485
10873
|
};
|
|
11486
10874
|
const iconClassName = "".concat(clsPrefix, "-notice-icon-").concat(mergedArgs.type);
|
|
@@ -11523,6 +10911,8 @@ function useNotification() {
|
|
|
11523
10911
|
success
|
|
11524
10912
|
};
|
|
11525
10913
|
}, [open]);
|
|
10914
|
+
|
|
10915
|
+
// eslint-disable-next-line react/jsx-key -- TODO(FEINF-1756)
|
|
11526
10916
|
return [wrappedNotificationAPI, jsx(DesignSystemAntDConfigProvider, {
|
|
11527
10917
|
children: contextHolder
|
|
11528
10918
|
})];
|
|
@@ -11591,7 +10981,7 @@ const getToastRootStyle = (theme, classNamePrefix) => {
|
|
|
11591
10981
|
background: theme.colors.backgroundPrimary,
|
|
11592
10982
|
padding: 12,
|
|
11593
10983
|
columnGap: 4,
|
|
11594
|
-
boxShadow:
|
|
10984
|
+
boxShadow: theme.general.shadowLow,
|
|
11595
10985
|
borderRadius: theme.general.borderRadiusBase,
|
|
11596
10986
|
lineHeight: '20px',
|
|
11597
10987
|
gridTemplateRows: '[header] auto [content] auto',
|
|
@@ -11731,7 +11121,7 @@ const getCloseStyles = theme => {
|
|
|
11731
11121
|
top: 6
|
|
11732
11122
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getCloseStyles;");
|
|
11733
11123
|
};
|
|
11734
|
-
const Close = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
11124
|
+
const Close$1 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
11735
11125
|
const {
|
|
11736
11126
|
theme
|
|
11737
11127
|
} = useDesignSystemTheme();
|
|
@@ -11782,162 +11172,27 @@ var NotificationV2 = /*#__PURE__*/Object.freeze({
|
|
|
11782
11172
|
Root: Root$1,
|
|
11783
11173
|
Title: Title,
|
|
11784
11174
|
Description: Description,
|
|
11785
|
-
Close: Close,
|
|
11175
|
+
Close: Close$1,
|
|
11786
11176
|
Provider: Provider,
|
|
11787
11177
|
Viewport: Viewport
|
|
11788
11178
|
});
|
|
11789
11179
|
|
|
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 => {
|
|
11180
|
+
const PageWrapper = _ref => {
|
|
11800
11181
|
let {
|
|
11801
11182
|
children,
|
|
11802
11183
|
...props
|
|
11803
|
-
} =
|
|
11804
|
-
|
|
11805
|
-
|
|
11806
|
-
|
|
11807
|
-
|
|
11808
|
-
|
|
11809
|
-
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
11814
|
-
|
|
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) {
|
|
11917
|
-
let {
|
|
11918
|
-
currentPageIndex,
|
|
11919
|
-
pageSize = 10,
|
|
11920
|
-
numTotal,
|
|
11921
|
-
onChange,
|
|
11922
|
-
dangerouslySetAntdProps
|
|
11923
|
-
} = _ref;
|
|
11924
|
-
const {
|
|
11925
|
-
classNamePrefix,
|
|
11926
|
-
theme
|
|
11927
|
-
} = useDesignSystemTheme();
|
|
11928
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
11929
|
-
children: jsx(Pagination$1, {
|
|
11930
|
-
css: getPaginationEmotionStyles(classNamePrefix, theme),
|
|
11931
|
-
current: currentPageIndex,
|
|
11932
|
-
pageSize: pageSize,
|
|
11933
|
-
responsive: false,
|
|
11934
|
-
total: numTotal,
|
|
11935
|
-
onChange: onChange,
|
|
11936
|
-
showSizeChanger: false,
|
|
11937
|
-
showQuickJumper: true,
|
|
11938
|
-
size: 'small',
|
|
11939
|
-
...dangerouslySetAntdProps
|
|
11940
|
-
})
|
|
11184
|
+
} = _ref;
|
|
11185
|
+
const {
|
|
11186
|
+
theme
|
|
11187
|
+
} = useDesignSystemTheme();
|
|
11188
|
+
return jsx("div", {
|
|
11189
|
+
css: /*#__PURE__*/css({
|
|
11190
|
+
paddingLeft: 16,
|
|
11191
|
+
paddingRight: 16,
|
|
11192
|
+
backgroundColor: theme.isDarkMode ? theme.colors.backgroundPrimary : 'transparent'
|
|
11193
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:PageWrapper;"),
|
|
11194
|
+
...props,
|
|
11195
|
+
children: children
|
|
11941
11196
|
});
|
|
11942
11197
|
};
|
|
11943
11198
|
|
|
@@ -11996,11 +11251,22 @@ const Trigger = /*#__PURE__*/forwardRef(function Trigger(_ref2, ref) {
|
|
|
11996
11251
|
children: children
|
|
11997
11252
|
});
|
|
11998
11253
|
});
|
|
11999
|
-
const
|
|
11254
|
+
const Close = /*#__PURE__*/forwardRef(function Close(_ref3, ref) {
|
|
12000
11255
|
let {
|
|
12001
11256
|
children,
|
|
12002
11257
|
...props
|
|
12003
11258
|
} = _ref3;
|
|
11259
|
+
return jsx(Popover$1.Close, {
|
|
11260
|
+
ref: ref,
|
|
11261
|
+
...props,
|
|
11262
|
+
children: children
|
|
11263
|
+
});
|
|
11264
|
+
});
|
|
11265
|
+
const Arrow = /*#__PURE__*/forwardRef(function Arrow(_ref4, ref) {
|
|
11266
|
+
let {
|
|
11267
|
+
children,
|
|
11268
|
+
...props
|
|
11269
|
+
} = _ref4;
|
|
12004
11270
|
const {
|
|
12005
11271
|
theme
|
|
12006
11272
|
} = useDesignSystemTheme();
|
|
@@ -12051,7 +11317,7 @@ const popoverContentStyles = theme => ({
|
|
|
12051
11317
|
border: "1px solid ".concat(theme.colors.borderDecorative),
|
|
12052
11318
|
borderRadius: theme.borders.borderRadiusMd,
|
|
12053
11319
|
padding: "".concat(theme.spacing.sm, "px"),
|
|
12054
|
-
boxShadow: theme.
|
|
11320
|
+
boxShadow: theme.general.shadowLow,
|
|
12055
11321
|
userSelect: 'none',
|
|
12056
11322
|
zIndex: theme.options.zIndexBase + 30,
|
|
12057
11323
|
a: importantify({
|
|
@@ -12077,6 +11343,7 @@ var PopoverV2 = /*#__PURE__*/Object.freeze({
|
|
|
12077
11343
|
Root: Root,
|
|
12078
11344
|
Content: Content$1,
|
|
12079
11345
|
Trigger: Trigger,
|
|
11346
|
+
Close: Close,
|
|
12080
11347
|
Arrow: Arrow
|
|
12081
11348
|
});
|
|
12082
11349
|
|
|
@@ -12381,7 +11648,8 @@ function Panel(_ref4) {
|
|
|
12381
11648
|
let {
|
|
12382
11649
|
panelId,
|
|
12383
11650
|
children,
|
|
12384
|
-
dangerouslyAppendEmotionCSS
|
|
11651
|
+
dangerouslyAppendEmotionCSS,
|
|
11652
|
+
...delegated
|
|
12385
11653
|
} = _ref4;
|
|
12386
11654
|
const {
|
|
12387
11655
|
openPanelId,
|
|
@@ -12394,6 +11662,7 @@ function Panel(_ref4) {
|
|
|
12394
11662
|
display: 'none'
|
|
12395
11663
|
}, process.env.NODE_ENV === "production" ? "" : ";label:Panel;"],
|
|
12396
11664
|
"aria-hidden": !isPanelOpen,
|
|
11665
|
+
...delegated,
|
|
12397
11666
|
children: children
|
|
12398
11667
|
});
|
|
12399
11668
|
}
|
|
@@ -12417,7 +11686,7 @@ function PanelHeader(_ref5) {
|
|
|
12417
11686
|
return jsxs("div", {
|
|
12418
11687
|
css: [{
|
|
12419
11688
|
display: 'flex',
|
|
12420
|
-
paddingLeft:
|
|
11689
|
+
paddingLeft: 8,
|
|
12421
11690
|
paddingRight: 4,
|
|
12422
11691
|
alignItems: 'center',
|
|
12423
11692
|
height: theme.general.heightBase,
|
|
@@ -12470,7 +11739,7 @@ function PanelBody(_ref9) {
|
|
|
12470
11739
|
dangerouslyAppendEmotionCSS
|
|
12471
11740
|
} = _ref9;
|
|
12472
11741
|
return jsx("div", {
|
|
12473
|
-
css: ["height:100%;overflow-x:hidden;overflow-y:auto;padding:0
|
|
11742
|
+
css: ["height:100%;overflow-x:hidden;overflow-y:auto;padding:0 8px;", dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:PanelBody;"],
|
|
12474
11743
|
children: children
|
|
12475
11744
|
});
|
|
12476
11745
|
}
|
|
@@ -12535,56 +11804,6 @@ const Skeleton = /* #__PURE__ */(() => {
|
|
|
12535
11804
|
return Skeleton;
|
|
12536
11805
|
})();
|
|
12537
11806
|
|
|
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
11807
|
const defaultGetPrefixCls = (suffixCls, customizePrefixCls) => {
|
|
12589
11808
|
if (customizePrefixCls) return customizePrefixCls;
|
|
12590
11809
|
return suffixCls ? "ant-".concat(suffixCls) : 'ant';
|
|
@@ -12629,6 +11848,7 @@ const DropdownButton = props => {
|
|
|
12629
11848
|
menuButtonLabel = 'Open dropdown',
|
|
12630
11849
|
menu,
|
|
12631
11850
|
leftButtonIcon,
|
|
11851
|
+
dropdownMenuRootProps,
|
|
12632
11852
|
...restProps
|
|
12633
11853
|
} = props;
|
|
12634
11854
|
const prefixCls = getPrefixCls('dropdown-button', customizePrefixCls);
|
|
@@ -12681,7 +11901,7 @@ const DropdownButton = props => {
|
|
|
12681
11901
|
overlay: overlay,
|
|
12682
11902
|
children: rightButtonToRender
|
|
12683
11903
|
}) : jsxs(Root$2, {
|
|
12684
|
-
...
|
|
11904
|
+
...dropdownMenuRootProps,
|
|
12685
11905
|
children: [jsx(Trigger$1, {
|
|
12686
11906
|
disabled: disabled,
|
|
12687
11907
|
asChild: true,
|
|
@@ -12836,76 +12056,135 @@ const SplitButton = props => {
|
|
|
12836
12056
|
});
|
|
12837
12057
|
};
|
|
12838
12058
|
|
|
12839
|
-
const
|
|
12840
|
-
|
|
12841
|
-
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
|
|
12845
|
-
|
|
12846
|
-
styles.push(getScrollableInFlexibleContainerStyles(classNamePrefix));
|
|
12847
|
-
}
|
|
12848
|
-
return styles;
|
|
12849
|
-
};
|
|
12850
|
-
const getScrollableInFlexibleContainerStyles = clsPrefix => {
|
|
12059
|
+
const getSwitchWithLabelStyles = _ref => {
|
|
12060
|
+
let {
|
|
12061
|
+
clsPrefix,
|
|
12062
|
+
theme
|
|
12063
|
+
} = _ref;
|
|
12064
|
+
// Default value
|
|
12065
|
+
const SWITCH_WIDTH = 28;
|
|
12851
12066
|
const styles = {
|
|
12852
|
-
|
|
12853
|
-
|
|
12854
|
-
|
|
12067
|
+
display: 'flex',
|
|
12068
|
+
alignItems: 'center',
|
|
12069
|
+
// Switch is Off
|
|
12070
|
+
["&.".concat(clsPrefix, "-switch")]: {
|
|
12071
|
+
backgroundColor: theme.colors.backgroundPrimary,
|
|
12072
|
+
border: "1px solid ".concat(theme.colors.actionDefaultBorderDefault),
|
|
12073
|
+
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
12074
|
+
boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionDefaultBorderDefault),
|
|
12075
|
+
transition: 'none'
|
|
12076
|
+
},
|
|
12077
|
+
["&:hover:not(.".concat(clsPrefix, "-switch-disabled)")]: {
|
|
12078
|
+
backgroundColor: theme.colors.actionDefaultBackgroundHover,
|
|
12079
|
+
border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundHover),
|
|
12080
|
+
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
12081
|
+
boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundHover)
|
|
12082
|
+
}
|
|
12083
|
+
},
|
|
12084
|
+
["&:active:not(.".concat(clsPrefix, "-switch-disabled)")]: {
|
|
12085
|
+
backgroundColor: theme.colors.actionDefaultBackgroundPress,
|
|
12086
|
+
border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundPress),
|
|
12087
|
+
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
12088
|
+
boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundHover)
|
|
12089
|
+
}
|
|
12090
|
+
},
|
|
12091
|
+
["&:focus-visible"]: {
|
|
12092
|
+
border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundDefault),
|
|
12093
|
+
boxShadow: 'none',
|
|
12094
|
+
outlineStyle: 'solid',
|
|
12095
|
+
outlineWidth: '1px',
|
|
12096
|
+
outlineOffset: '1px',
|
|
12097
|
+
outlineColor: theme.colors.actionDefaultBorderFocus,
|
|
12098
|
+
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
12099
|
+
boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundDefault)
|
|
12100
|
+
}
|
|
12101
|
+
},
|
|
12102
|
+
["&:focus"]: {
|
|
12103
|
+
boxShadow: 'none'
|
|
12104
|
+
}
|
|
12855
12105
|
},
|
|
12856
|
-
|
|
12857
|
-
|
|
12858
|
-
|
|
12859
|
-
|
|
12106
|
+
// Switch is On
|
|
12107
|
+
["&.".concat(clsPrefix, "-switch-checked")]: {
|
|
12108
|
+
backgroundColor: theme.colors.actionPrimaryBackgroundDefault,
|
|
12109
|
+
border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundDefault),
|
|
12110
|
+
["&:hover:not(.".concat(clsPrefix, "-switch-disabled)")]: {
|
|
12111
|
+
backgroundColor: theme.colors.actionPrimaryBackgroundHover,
|
|
12112
|
+
border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundDefault)
|
|
12113
|
+
},
|
|
12114
|
+
["&:active:not(.".concat(clsPrefix, "-switch-disabled)")]: {
|
|
12115
|
+
backgroundColor: theme.colors.actionPrimaryBackgroundPress
|
|
12116
|
+
},
|
|
12117
|
+
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
12118
|
+
boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundDefault)
|
|
12119
|
+
},
|
|
12120
|
+
["&.".concat(clsPrefix, "-switch-disabled")]: {
|
|
12121
|
+
backgroundColor: theme.colors.actionDisabledBackground,
|
|
12122
|
+
border: "1px solid ".concat(theme.colors.actionDisabledBackground),
|
|
12123
|
+
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
12124
|
+
boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionDisabledBackground)
|
|
12125
|
+
}
|
|
12126
|
+
}
|
|
12860
12127
|
},
|
|
12861
|
-
[".".concat(clsPrefix, "-
|
|
12862
|
-
|
|
12863
|
-
display: 'flex',
|
|
12864
|
-
flexDirection: 'column'
|
|
12128
|
+
[".".concat(clsPrefix, "-switch-handle:before")]: {
|
|
12129
|
+
backgroundColor: theme.colors.backgroundPrimary
|
|
12865
12130
|
},
|
|
12866
|
-
[".".concat(clsPrefix, "-
|
|
12867
|
-
|
|
12131
|
+
["&& + .".concat(clsPrefix, "-hint, && + .").concat(clsPrefix, "-form-message")]: {
|
|
12132
|
+
paddingLeft: theme.spacing.sm + SWITCH_WIDTH
|
|
12868
12133
|
},
|
|
12869
|
-
[".".concat(clsPrefix, "-
|
|
12870
|
-
|
|
12134
|
+
["&& + .".concat(clsPrefix, "-form-message")]: {
|
|
12135
|
+
marginTop: 0
|
|
12871
12136
|
},
|
|
12872
|
-
[".".concat(clsPrefix, "-
|
|
12873
|
-
|
|
12137
|
+
[".".concat(clsPrefix, "-click-animating-node")]: {
|
|
12138
|
+
animation: 'none'
|
|
12874
12139
|
}
|
|
12875
12140
|
};
|
|
12876
|
-
|
|
12877
|
-
|
|
12878
|
-
const DEFAULT_LOADING_SPIN_PROPS = {
|
|
12879
|
-
indicator: jsx(Spinner, {})
|
|
12141
|
+
const importantStyles = importantify(styles);
|
|
12142
|
+
return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getSwitchWithLabelStyles;");
|
|
12880
12143
|
};
|
|
12881
|
-
|
|
12882
|
-
|
|
12883
|
-
|
|
12144
|
+
const Switch = _ref2 => {
|
|
12145
|
+
let {
|
|
12146
|
+
dangerouslySetAntdProps,
|
|
12147
|
+
label,
|
|
12148
|
+
labelProps,
|
|
12149
|
+
...props
|
|
12150
|
+
} = _ref2;
|
|
12884
12151
|
const {
|
|
12885
|
-
|
|
12886
|
-
|
|
12152
|
+
theme,
|
|
12153
|
+
classNamePrefix
|
|
12887
12154
|
} = useDesignSystemTheme();
|
|
12888
|
-
|
|
12889
|
-
|
|
12890
|
-
|
|
12891
|
-
|
|
12892
|
-
|
|
12893
|
-
|
|
12894
|
-
|
|
12895
|
-
|
|
12896
|
-
|
|
12897
|
-
|
|
12898
|
-
|
|
12899
|
-
|
|
12900
|
-
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
|
|
12907
|
-
children:
|
|
12908
|
-
})
|
|
12155
|
+
return label ? jsx(DesignSystemAntDConfigProvider, {
|
|
12156
|
+
children: jsxs("div", {
|
|
12157
|
+
css: getSwitchWithLabelStyles({
|
|
12158
|
+
clsPrefix: classNamePrefix,
|
|
12159
|
+
theme
|
|
12160
|
+
}),
|
|
12161
|
+
children: [jsx(Switch$1, {
|
|
12162
|
+
...props,
|
|
12163
|
+
...dangerouslySetAntdProps,
|
|
12164
|
+
css: /*#__PURE__*/css({
|
|
12165
|
+
... /*#__PURE__*/css(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:Switch;"),
|
|
12166
|
+
...getSwitchWithLabelStyles({
|
|
12167
|
+
clsPrefix: classNamePrefix,
|
|
12168
|
+
theme
|
|
12169
|
+
})
|
|
12170
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Switch;")
|
|
12171
|
+
}), jsx(Label, {
|
|
12172
|
+
inline: true,
|
|
12173
|
+
...labelProps,
|
|
12174
|
+
children: label
|
|
12175
|
+
})]
|
|
12176
|
+
})
|
|
12177
|
+
}) : jsx(DesignSystemAntDConfigProvider, {
|
|
12178
|
+
children: jsx(Switch$1, {
|
|
12179
|
+
...props,
|
|
12180
|
+
...dangerouslySetAntdProps,
|
|
12181
|
+
css: /*#__PURE__*/css({
|
|
12182
|
+
... /*#__PURE__*/css(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:Switch;"),
|
|
12183
|
+
...getSwitchWithLabelStyles({
|
|
12184
|
+
clsPrefix: classNamePrefix,
|
|
12185
|
+
theme
|
|
12186
|
+
})
|
|
12187
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Switch;")
|
|
12909
12188
|
})
|
|
12910
12189
|
});
|
|
12911
12190
|
};
|
|
@@ -13259,6 +12538,70 @@ function Tag(props) {
|
|
|
13259
12538
|
});
|
|
13260
12539
|
}
|
|
13261
12540
|
|
|
12541
|
+
const getStyles = theme => {
|
|
12542
|
+
return /*#__PURE__*/css({
|
|
12543
|
+
display: 'inline-flex',
|
|
12544
|
+
alignItems: 'center',
|
|
12545
|
+
justifyContent: 'center',
|
|
12546
|
+
border: "1px solid ".concat(theme.colors.actionDefaultBorderDefault),
|
|
12547
|
+
borderRadius: theme.general.borderRadiusBase,
|
|
12548
|
+
backgroundColor: 'transparent',
|
|
12549
|
+
color: theme.colors.actionDefaultTextDefault,
|
|
12550
|
+
height: theme.general.heightSm,
|
|
12551
|
+
padding: '0 12px',
|
|
12552
|
+
fontSize: theme.typography.fontSizeBase,
|
|
12553
|
+
lineHeight: "".concat(theme.typography.lineHeightBase, "px"),
|
|
12554
|
+
'&[data-state="on"]': {
|
|
12555
|
+
backgroundColor: theme.colors.actionDefaultBackgroundPress,
|
|
12556
|
+
color: theme.colors.actionDefaultTextPress,
|
|
12557
|
+
borderColor: theme.colors.actionDefaultBorderPress
|
|
12558
|
+
},
|
|
12559
|
+
'&:hover': {
|
|
12560
|
+
cursor: 'pointer',
|
|
12561
|
+
color: theme.colors.actionDefaultTextHover,
|
|
12562
|
+
backgroundColor: theme.colors.actionDefaultBackgroundHover,
|
|
12563
|
+
borderColor: theme.colors.actionDefaultBorderHover
|
|
12564
|
+
},
|
|
12565
|
+
'&:disabled': {
|
|
12566
|
+
cursor: 'default',
|
|
12567
|
+
border: 'transparent',
|
|
12568
|
+
color: theme.colors.actionDisabledText,
|
|
12569
|
+
backgroundColor: theme.colors.actionDisabledBackground
|
|
12570
|
+
}
|
|
12571
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getStyles;");
|
|
12572
|
+
};
|
|
12573
|
+
const ToggleButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
12574
|
+
let {
|
|
12575
|
+
children,
|
|
12576
|
+
pressed,
|
|
12577
|
+
defaultPressed,
|
|
12578
|
+
...props
|
|
12579
|
+
} = _ref;
|
|
12580
|
+
const {
|
|
12581
|
+
theme
|
|
12582
|
+
} = useDesignSystemTheme();
|
|
12583
|
+
const [isPressed, setIsPressed] = React__default.useState(defaultPressed);
|
|
12584
|
+
useEffect(() => {
|
|
12585
|
+
setIsPressed(pressed);
|
|
12586
|
+
}, [pressed]);
|
|
12587
|
+
return jsxs(Toggle.Root, {
|
|
12588
|
+
css: getStyles(theme),
|
|
12589
|
+
...props,
|
|
12590
|
+
pressed: isPressed,
|
|
12591
|
+
onPressedChange: pressed => {
|
|
12592
|
+
var _props$onPressedChang;
|
|
12593
|
+
(_props$onPressedChang = props.onPressedChange) === null || _props$onPressedChang === void 0 ? void 0 : _props$onPressedChang.call(props, pressed);
|
|
12594
|
+
setIsPressed(pressed);
|
|
12595
|
+
},
|
|
12596
|
+
ref: ref,
|
|
12597
|
+
children: [isPressed && jsx(CheckIcon, {
|
|
12598
|
+
css: /*#__PURE__*/css({
|
|
12599
|
+
marginRight: theme.spacing.xs
|
|
12600
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:ToggleButton;")
|
|
12601
|
+
}), children]
|
|
12602
|
+
});
|
|
12603
|
+
});
|
|
12604
|
+
|
|
13262
12605
|
/**
|
|
13263
12606
|
* These styles share some aspects with the styles in the main `Checkbox.tsx` component.
|
|
13264
12607
|
* However, due to significant differences in the internal implementation and DOM structure of the Tree Checkbox and the
|
|
@@ -13542,5 +12885,5 @@ const Tree = /*#__PURE__*/forwardRef(function Tree(_ref, ref) {
|
|
|
13542
12885
|
});
|
|
13543
12886
|
});
|
|
13544
12887
|
|
|
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,
|
|
12888
|
+
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, ToggleButton, 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
12889
|
//# sourceMappingURL=index.js.map
|