@databricks/design-system 1.4.1 → 1.5.1
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/design-system/Button/Button.d.ts +3 -1
- package/dist/design-system/Button/Button.d.ts.map +1 -1
- package/dist/design-system/Button/styles.d.ts +1 -0
- package/dist/design-system/Button/styles.d.ts.map +1 -1
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts +3 -2
- package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -1
- package/dist/design-system/Dropdown/Dropdown.d.ts +3 -0
- package/dist/design-system/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/design-system/DropdownMenu/DropdownMenu.d.ts +11 -1
- package/dist/design-system/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/design-system/FormMessage/FormMessage.d.ts.map +1 -1
- package/dist/design-system/FormV2/FormV2.d.ts +6 -0
- package/dist/design-system/FormV2/FormV2.d.ts.map +1 -1
- package/dist/design-system/Hint/Hint.d.ts +2 -0
- package/dist/design-system/Hint/Hint.d.ts.map +1 -0
- package/dist/design-system/Input/Input.d.ts.map +1 -1
- package/dist/design-system/Label/Label.d.ts +6 -0
- package/dist/design-system/Label/Label.d.ts.map +1 -0
- package/dist/design-system/Menu/Menu.d.ts +6 -1
- package/dist/design-system/Menu/Menu.d.ts.map +1 -1
- package/dist/design-system/Select/Select.d.ts +21 -15
- package/dist/design-system/Select/Select.d.ts.map +1 -1
- package/dist/design-system/Spinner/Spinner.d.ts +7 -3
- package/dist/design-system/Spinner/Spinner.d.ts.map +1 -1
- package/dist/design-system/Tree/Tree.d.ts.map +1 -1
- package/dist/design-system/Typography/Link.d.ts.map +1 -1
- package/dist/design-system/utils/css-utils.d.ts +14 -1
- package/dist/design-system/utils/css-utils.d.ts.map +1 -1
- package/dist/flags.d.ts +3 -1
- package/dist/flags.d.ts.map +1 -1
- package/dist/index-dark.css +89 -89
- package/dist/index.css +89 -89
- package/dist/index.js +414 -249
- package/dist/index.js.map +1 -1
- package/dist/theme/spacing.d.ts +8 -0
- package/dist/theme/spacing.d.ts.map +1 -1
- package/dist/theme-dark.json +1 -0
- package/dist/theme-default.json +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +9 -9
- package/dist/cjs/index.js +0 -58812
- package/dist/cjs/index.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import React__default, { createContext, useRef, useState, useEffect, useLayoutEffect as useLayoutEffect$1, Component, useMemo as useMemo$1, useCallback, forwardRef, useImperativeHandle, useContext, isValidElement as isValidElement$1, cloneElement as cloneElement$1 } from 'react';
|
|
3
3
|
import AntDIcon from '@ant-design/icons';
|
|
4
4
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
5
|
-
import { useTheme, ThemeProvider, css as css$1,
|
|
5
|
+
import { useTheme, ThemeProvider, css as css$1, ClassNames, keyframes } from '@emotion/react';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import chroma from 'chroma-js';
|
|
8
8
|
import _extends$1 from '@babel/runtime/helpers/esm/extends';
|
|
@@ -11319,11 +11319,11 @@ var Option$2 = function Option() {
|
|
|
11319
11319
|
Option$2.isSelectOption = true;
|
|
11320
11320
|
|
|
11321
11321
|
/** This is a placeholder, not real render in dom */
|
|
11322
|
-
var OptGroup = function OptGroup() {
|
|
11322
|
+
var OptGroup$1 = function OptGroup() {
|
|
11323
11323
|
return null;
|
|
11324
11324
|
};
|
|
11325
11325
|
|
|
11326
|
-
OptGroup.isSelectOptGroup = true;
|
|
11326
|
+
OptGroup$1.isSelectOptGroup = true;
|
|
11327
11327
|
|
|
11328
11328
|
function convertNodeToOption(node) {
|
|
11329
11329
|
var key = node.key,
|
|
@@ -17073,7 +17073,7 @@ var Select$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
17073
17073
|
}(React.Component);
|
|
17074
17074
|
|
|
17075
17075
|
Select$2.Option = Option$2;
|
|
17076
|
-
Select$2.OptGroup = OptGroup;
|
|
17076
|
+
Select$2.OptGroup = OptGroup$1;
|
|
17077
17077
|
|
|
17078
17078
|
function getIcons(_ref) {
|
|
17079
17079
|
var suffixIcon = _ref.suffixIcon,
|
|
@@ -17300,7 +17300,7 @@ var SelectRef = /*#__PURE__*/React.forwardRef(InternalSelect);
|
|
|
17300
17300
|
var Select$1 = SelectRef;
|
|
17301
17301
|
Select$1.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
|
|
17302
17302
|
Select$1.Option = Option$2;
|
|
17303
|
-
Select$1.OptGroup = OptGroup;
|
|
17303
|
+
Select$1.OptGroup = OptGroup$1;
|
|
17304
17304
|
var AntDSelect = Select$1;
|
|
17305
17305
|
|
|
17306
17306
|
var isValidElement = React.isValidElement;
|
|
@@ -37737,7 +37737,7 @@ Spin.defaultProps = {
|
|
|
37737
37737
|
size: 'default',
|
|
37738
37738
|
wrapperClassName: ''
|
|
37739
37739
|
};
|
|
37740
|
-
var
|
|
37740
|
+
var Spin$1 = Spin;
|
|
37741
37741
|
|
|
37742
37742
|
var Pager = function Pager(props) {
|
|
37743
37743
|
var _classNames;
|
|
@@ -46135,7 +46135,7 @@ function Table$1(props) {
|
|
|
46135
46135
|
return /*#__PURE__*/React.createElement("div", {
|
|
46136
46136
|
className: wrapperClassNames,
|
|
46137
46137
|
style: style
|
|
46138
|
-
}, /*#__PURE__*/React.createElement(
|
|
46138
|
+
}, /*#__PURE__*/React.createElement(Spin$1, _extends$1({
|
|
46139
46139
|
spinning: false
|
|
46140
46140
|
}, spinProps), topPaginationNode, /*#__PURE__*/React.createElement(Table$2, _extends$1({}, tableProps, {
|
|
46141
46141
|
columns: mergedColumns,
|
|
@@ -49694,6 +49694,15 @@ const spacing = {
|
|
|
49694
49694
|
btnPaddingHorizontalBase: DEFAULT_SPACING_UNIT * 2,
|
|
49695
49695
|
btnPaddingHorizontalLg: DEFAULT_SPACING_UNIT * 2,
|
|
49696
49696
|
btnPaddingHorizontalSm: DEFAULT_SPACING_UNIT * 2,
|
|
49697
|
+
// Input
|
|
49698
|
+
inputPaddingHorizontal: DEFAULT_SPACING_UNIT * 1.5,
|
|
49699
|
+
inputPaddingHorizontalBase: DEFAULT_SPACING_UNIT * 1.5,
|
|
49700
|
+
inputPaddingHorizontalSm: DEFAULT_SPACING_UNIT * 1.5,
|
|
49701
|
+
inputPaddingHorizontalLg: DEFAULT_SPACING_UNIT * 1.5,
|
|
49702
|
+
inputPaddingVertical: spacing.xs + 1,
|
|
49703
|
+
inputPaddingVerticalBase: spacing.xs + 1,
|
|
49704
|
+
inputPaddingVerticalSm: spacing.xs + 1,
|
|
49705
|
+
inputPaddingVerticalLg: spacing.xs + 1,
|
|
49697
49706
|
// Modal
|
|
49698
49707
|
modalPadding: MODAL_PADDING,
|
|
49699
49708
|
modalLessPadding: MODAL_PADDING - 20,
|
|
@@ -49811,6 +49820,7 @@ const DuboisContextDefaults = {
|
|
|
49811
49820
|
flags: {}
|
|
49812
49821
|
};
|
|
49813
49822
|
const DesignSystemContext = /*#__PURE__*/createContext(DuboisContextDefaults);
|
|
49823
|
+
const DU_BOIS_ENABLE_ANIMATION_CLASSNAME = 'du-bois-enable-animation';
|
|
49814
49824
|
function getAnimationCss(enableAnimation) {
|
|
49815
49825
|
const disableAnimationCss = {
|
|
49816
49826
|
animationDuration: '0s !important',
|
|
@@ -49821,7 +49831,7 @@ function getAnimationCss(enableAnimation) {
|
|
|
49821
49831
|
'&::before': disableAnimationCss,
|
|
49822
49832
|
'&::after': disableAnimationCss,
|
|
49823
49833
|
// Also apply to all child elements with a class that starts with our prefix
|
|
49824
|
-
|
|
49834
|
+
["[class*=du-bois]:not(.".concat(DU_BOIS_ENABLE_ANIMATION_CLASSNAME, ", .").concat(DU_BOIS_ENABLE_ANIMATION_CLASSNAME, " *)")]: { ...disableAnimationCss,
|
|
49825
49835
|
// Also target any pseudo-elements associated with those elements, since these can also be animated.
|
|
49826
49836
|
'&::before': disableAnimationCss,
|
|
49827
49837
|
'&::after': disableAnimationCss
|
|
@@ -54220,6 +54230,36 @@ function getTypographyColor(theme, key, fallbackColor) {
|
|
|
54220
54230
|
|
|
54221
54231
|
return fallbackColor !== null && fallbackColor !== void 0 ? fallbackColor : theme.colors.textPrimary;
|
|
54222
54232
|
}
|
|
54233
|
+
/**
|
|
54234
|
+
* Returns validation color based on state, has default validation colors if params are not provided
|
|
54235
|
+
* @param theme
|
|
54236
|
+
* @param validationState
|
|
54237
|
+
* @param errorColor
|
|
54238
|
+
* @param warningColor
|
|
54239
|
+
* @param successColor
|
|
54240
|
+
*/
|
|
54241
|
+
|
|
54242
|
+
function getValidationStateColor(theme, validationState) {
|
|
54243
|
+
let {
|
|
54244
|
+
errorColor,
|
|
54245
|
+
warningColor,
|
|
54246
|
+
successColor
|
|
54247
|
+
} = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
54248
|
+
|
|
54249
|
+
switch (validationState) {
|
|
54250
|
+
case 'error':
|
|
54251
|
+
return errorColor || theme.colors.actionDangerPrimaryBackgroundDefault;
|
|
54252
|
+
|
|
54253
|
+
case 'warning':
|
|
54254
|
+
return warningColor || theme.colors.textValidationWarning;
|
|
54255
|
+
|
|
54256
|
+
case 'success':
|
|
54257
|
+
return successColor || theme.colors.textValidationSuccess;
|
|
54258
|
+
|
|
54259
|
+
default:
|
|
54260
|
+
return undefined;
|
|
54261
|
+
}
|
|
54262
|
+
}
|
|
54223
54263
|
|
|
54224
54264
|
function getDefaultStyles(theme) {
|
|
54225
54265
|
return {
|
|
@@ -54257,7 +54297,7 @@ function getPrimaryStyles(theme) {
|
|
|
54257
54297
|
}
|
|
54258
54298
|
};
|
|
54259
54299
|
}
|
|
54260
|
-
function getLinkStyles(theme) {
|
|
54300
|
+
function getLinkStyles$1(theme) {
|
|
54261
54301
|
return {
|
|
54262
54302
|
backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
|
|
54263
54303
|
borderColor: theme.colors.actionTertiaryBackgroundDefault,
|
|
@@ -54334,6 +54374,23 @@ function getDisabledStyles(theme) {
|
|
|
54334
54374
|
}
|
|
54335
54375
|
};
|
|
54336
54376
|
}
|
|
54377
|
+
function getDisabledTertiaryStyles(theme) {
|
|
54378
|
+
return {
|
|
54379
|
+
backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
|
|
54380
|
+
borderColor: 'transparent',
|
|
54381
|
+
color: theme.colors.actionDisabledText,
|
|
54382
|
+
'&:hover': {
|
|
54383
|
+
backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
|
|
54384
|
+
borderColor: 'transparent',
|
|
54385
|
+
color: theme.colors.actionDisabledText
|
|
54386
|
+
},
|
|
54387
|
+
'&:active': {
|
|
54388
|
+
backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
|
|
54389
|
+
borderColor: 'transparent',
|
|
54390
|
+
color: theme.colors.actionDisabledText
|
|
54391
|
+
}
|
|
54392
|
+
};
|
|
54393
|
+
}
|
|
54337
54394
|
|
|
54338
54395
|
function getEndIconClsName(theme) {
|
|
54339
54396
|
return "".concat(theme.general.iconfontCssPrefix, "-btn-end-icon");
|
|
@@ -54346,9 +54403,11 @@ const getButtonEmotionStyles = _ref => {
|
|
|
54346
54403
|
loading,
|
|
54347
54404
|
withIcon,
|
|
54348
54405
|
onlyIcon,
|
|
54406
|
+
isAnchor,
|
|
54349
54407
|
enableAnimation,
|
|
54350
54408
|
size,
|
|
54351
|
-
type
|
|
54409
|
+
type,
|
|
54410
|
+
isFlex
|
|
54352
54411
|
} = _ref;
|
|
54353
54412
|
const clsIcon = ".".concat(theme.general.iconfontCssPrefix);
|
|
54354
54413
|
const clsEndIcon = ".".concat(getEndIconClsName(theme));
|
|
@@ -54372,25 +54431,30 @@ const getButtonEmotionStyles = _ref => {
|
|
|
54372
54431
|
};
|
|
54373
54432
|
const iconCss = {
|
|
54374
54433
|
fontSize: theme.general.buttonInnerHeight - 4,
|
|
54375
|
-
|
|
54376
|
-
|
|
54377
|
-
|
|
54378
|
-
|
|
54379
|
-
|
|
54380
|
-
|
|
54381
|
-
|
|
54382
|
-
|
|
54383
|
-
|
|
54384
|
-
|
|
54385
|
-
|
|
54386
|
-
|
|
54387
|
-
|
|
54388
|
-
|
|
54434
|
+
...(!isFlex && {
|
|
54435
|
+
// verticalAlign used by AntD to move icon and label to center
|
|
54436
|
+
// TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
|
|
54437
|
+
// behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
|
|
54438
|
+
verticalAlign: -5,
|
|
54439
|
+
...(onlyIcon && {
|
|
54440
|
+
verticalAlign: -3
|
|
54441
|
+
}),
|
|
54442
|
+
// verticalAlign used by AntD to move icon and label to center
|
|
54443
|
+
// TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
|
|
54444
|
+
// behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
|
|
54445
|
+
// Need to make sure not to apply this to regular buttons as it will offset the icons
|
|
54446
|
+
...(!onlyIcon && {
|
|
54447
|
+
verticalAlign: -4
|
|
54448
|
+
})
|
|
54389
54449
|
}),
|
|
54450
|
+
lineHeight: 0,
|
|
54390
54451
|
...(size === 'small' && {
|
|
54391
54452
|
lineHeight: theme.typography.lineHeightSm,
|
|
54392
54453
|
...(onlyIcon && {
|
|
54393
|
-
fontSize: 16
|
|
54454
|
+
fontSize: 16,
|
|
54455
|
+
...(isFlex && {
|
|
54456
|
+
height: 16
|
|
54457
|
+
})
|
|
54394
54458
|
})
|
|
54395
54459
|
})
|
|
54396
54460
|
};
|
|
@@ -54402,6 +54466,12 @@ const getButtonEmotionStyles = _ref => {
|
|
|
54402
54466
|
lineHeight: theme.typography.lineHeightBase,
|
|
54403
54467
|
boxShadow: 'none',
|
|
54404
54468
|
height: theme.general.heightSm,
|
|
54469
|
+
...(isFlex && {
|
|
54470
|
+
display: 'inline-flex',
|
|
54471
|
+
alignItems: 'center',
|
|
54472
|
+
justifyContent: 'center',
|
|
54473
|
+
verticalAlign: 'middle'
|
|
54474
|
+
}),
|
|
54405
54475
|
...(!onlyIcon && {
|
|
54406
54476
|
'&&': {
|
|
54407
54477
|
padding: '4px 12px',
|
|
@@ -54432,7 +54502,7 @@ const getButtonEmotionStyles = _ref => {
|
|
|
54432
54502
|
...getDefaultStyles(theme),
|
|
54433
54503
|
["&".concat(classPrimary)]: { ...getPrimaryStyles(theme)
|
|
54434
54504
|
},
|
|
54435
|
-
["&".concat(classLink)]: { ...getLinkStyles(theme),
|
|
54505
|
+
["&".concat(classLink)]: { ...getLinkStyles$1(theme),
|
|
54436
54506
|
...(type === 'link' && {
|
|
54437
54507
|
padding: 'unset',
|
|
54438
54508
|
height: 'auto',
|
|
@@ -54467,8 +54537,10 @@ const getButtonEmotionStyles = _ref => {
|
|
|
54467
54537
|
// This would break vertical centering of loading circle when onlyIcon is true
|
|
54468
54538
|
position: 'absolute'
|
|
54469
54539
|
}),
|
|
54470
|
-
|
|
54471
|
-
|
|
54540
|
+
...(!isFlex && {
|
|
54541
|
+
// Normally we'd do `transform: translateX(-50%)` but `antd` crushes that with injected inline `style`.
|
|
54542
|
+
left: 'calc(50% - 7px)'
|
|
54543
|
+
}),
|
|
54472
54544
|
// Re-enable animation for the loading spinner, since it can be disabled by the global animation CSS.
|
|
54473
54545
|
svg: {
|
|
54474
54546
|
animationDuration: '1s !important'
|
|
@@ -54504,10 +54576,16 @@ const getButtonEmotionStyles = _ref => {
|
|
|
54504
54576
|
},
|
|
54505
54577
|
["&".concat(clsIconOnly)]: {
|
|
54506
54578
|
border: 'none',
|
|
54507
|
-
//
|
|
54508
54579
|
["&:enabled:not(".concat(classLink, ")")]: { ...tertiaryColors,
|
|
54509
54580
|
color: theme.colors.textSecondary
|
|
54510
54581
|
},
|
|
54582
|
+
...(isAnchor && {
|
|
54583
|
+
lineHeight: "".concat(theme.general.heightSm, "px"),
|
|
54584
|
+
...getLinkStyles$1(theme),
|
|
54585
|
+
'&:disabled': {
|
|
54586
|
+
color: theme.colors.actionDisabledText
|
|
54587
|
+
}
|
|
54588
|
+
}),
|
|
54511
54589
|
'&[disabled]:hover': {
|
|
54512
54590
|
backgroundColor: 'transparent'
|
|
54513
54591
|
}
|
|
@@ -54522,9 +54600,11 @@ const getButtonEmotionStyles = _ref => {
|
|
|
54522
54600
|
...getAnimationCss(enableAnimation)
|
|
54523
54601
|
}; // Moved outside main style object because state & selector matching in the already existing object keys can create bugs and unwanted overwrites
|
|
54524
54602
|
|
|
54525
|
-
const typeStyles = {
|
|
54526
|
-
|
|
54527
|
-
|
|
54603
|
+
const typeStyles = { ...(type === 'tertiary' && {
|
|
54604
|
+
["&:enabled:not(".concat(clsIconOnly, ")")]: tertiaryColors,
|
|
54605
|
+
["&".concat(classLink, "[disabled]")]: { ...getDisabledTertiaryStyles(theme)
|
|
54606
|
+
}
|
|
54607
|
+
})
|
|
54528
54608
|
};
|
|
54529
54609
|
const importantStyles = importantify(styles);
|
|
54530
54610
|
const importantTypeStyles = importantify(typeStyles);
|
|
@@ -54544,6 +54624,9 @@ _ref2, ref) {
|
|
|
54544
54624
|
theme,
|
|
54545
54625
|
classNamePrefix
|
|
54546
54626
|
} = useDesignSystemTheme();
|
|
54627
|
+
const {
|
|
54628
|
+
USE_FLEX_BUTTON: isFlex
|
|
54629
|
+
} = useDesignSystemFlags();
|
|
54547
54630
|
const clsEndIcon = getEndIconClsName(theme);
|
|
54548
54631
|
return jsx(Button$3, { ...props,
|
|
54549
54632
|
css: getButtonEmotionStyles({
|
|
@@ -54552,10 +54635,12 @@ _ref2, ref) {
|
|
|
54552
54635
|
loading: Boolean(props.loading),
|
|
54553
54636
|
withIcon: Boolean(props.icon),
|
|
54554
54637
|
onlyIcon: Boolean((props.icon || endIcon) && !children),
|
|
54638
|
+
isAnchor: Boolean(props.href && !type),
|
|
54555
54639
|
danger: Boolean(props.danger),
|
|
54556
54640
|
enableAnimation: theme.options.enableAnimation,
|
|
54557
54641
|
size: size || 'middle',
|
|
54558
|
-
type
|
|
54642
|
+
type,
|
|
54643
|
+
isFlex
|
|
54559
54644
|
}),
|
|
54560
54645
|
href: props.disabled ? undefined : props.href,
|
|
54561
54646
|
...dangerouslySetAntdProps,
|
|
@@ -54563,10 +54648,19 @@ _ref2, ref) {
|
|
|
54563
54648
|
type: type === 'tertiary' ? 'link' : type,
|
|
54564
54649
|
children: children && jsxs("span", {
|
|
54565
54650
|
style: {
|
|
54566
|
-
visibility: props !== null && props !== void 0 && props.loading ? 'hidden' : 'visible'
|
|
54651
|
+
visibility: props !== null && props !== void 0 && props.loading ? 'hidden' : 'visible',
|
|
54652
|
+
...(isFlex && {
|
|
54653
|
+
display: 'inline-flex',
|
|
54654
|
+
alignItems: 'center'
|
|
54655
|
+
})
|
|
54567
54656
|
},
|
|
54568
54657
|
children: [children, endIcon && jsx("span", {
|
|
54569
54658
|
className: clsEndIcon,
|
|
54659
|
+
style: { ...(isFlex && {
|
|
54660
|
+
display: 'inline-flex',
|
|
54661
|
+
alignItems: 'center'
|
|
54662
|
+
})
|
|
54663
|
+
},
|
|
54570
54664
|
children: endIcon
|
|
54571
54665
|
})]
|
|
54572
54666
|
})
|
|
@@ -55044,6 +55138,9 @@ const LegacyDatePicker = Object.assign(DuboisDatePicker, {
|
|
|
55044
55138
|
YearPicker
|
|
55045
55139
|
});
|
|
55046
55140
|
|
|
55141
|
+
/**
|
|
55142
|
+
* @deprecated Use `DropdownMenu` instead.
|
|
55143
|
+
*/
|
|
55047
55144
|
const Dropdown = _ref => {
|
|
55048
55145
|
let {
|
|
55049
55146
|
dangerouslySetAntdProps,
|
|
@@ -55071,60 +55168,61 @@ const Content$1 = /*#__PURE__*/forwardRef(function Content(_ref, ref) {
|
|
|
55071
55168
|
minWidth = 220,
|
|
55072
55169
|
...props
|
|
55073
55170
|
} = _ref;
|
|
55074
|
-
|
|
55075
|
-
|
|
55076
|
-
|
|
55077
|
-
|
|
55078
|
-
|
|
55079
|
-
|
|
55080
|
-
|
|
55081
|
-
|
|
55082
|
-
|
|
55083
|
-
|
|
55084
|
-
|
|
55085
|
-
|
|
55086
|
-
|
|
55087
|
-
|
|
55088
|
-
animationTimingFunction: 'cubic-bezier(0.16, 1, 0.3, 1)',
|
|
55089
|
-
animationFillMode: 'forwards',
|
|
55090
|
-
willChange: 'transform, opacity',
|
|
55091
|
-
'&[data-state="open"]': {
|
|
55092
|
-
'&[data-side="top"]': {
|
|
55093
|
-
animationName: slideDownAndFade
|
|
55094
|
-
},
|
|
55095
|
-
'&[data-side="right"]': {
|
|
55096
|
-
animationName: slideLeftAndFade
|
|
55097
|
-
},
|
|
55098
|
-
'&[data-side="bottom"]': {
|
|
55099
|
-
animationName: slideUpAndFade
|
|
55100
|
-
},
|
|
55101
|
-
'&[data-side="left"]': {
|
|
55102
|
-
animationName: slideRightAndFade
|
|
55103
|
-
}
|
|
55104
|
-
}
|
|
55105
|
-
}
|
|
55106
|
-
}),
|
|
55107
|
-
sideOffset: 4,
|
|
55108
|
-
...props,
|
|
55109
|
-
children: children
|
|
55171
|
+
const {
|
|
55172
|
+
getPopupContainer
|
|
55173
|
+
} = useDesignSystemContext();
|
|
55174
|
+
return jsx(DropdownMenu$1.Portal, {
|
|
55175
|
+
container: getPopupContainer && getPopupContainer(),
|
|
55176
|
+
children: jsx(DropdownMenu$1.Content, {
|
|
55177
|
+
ref: ref,
|
|
55178
|
+
css: [contentStyles, {
|
|
55179
|
+
minWidth
|
|
55180
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Content;"],
|
|
55181
|
+
sideOffset: 4,
|
|
55182
|
+
...props,
|
|
55183
|
+
children: children
|
|
55184
|
+
})
|
|
55110
55185
|
});
|
|
55111
55186
|
});
|
|
55112
|
-
const
|
|
55187
|
+
const SubContent = /*#__PURE__*/forwardRef(function Content(_ref2, ref) {
|
|
55113
55188
|
let {
|
|
55114
55189
|
children,
|
|
55190
|
+
minWidth = 220,
|
|
55115
55191
|
...props
|
|
55116
55192
|
} = _ref2;
|
|
55193
|
+
const {
|
|
55194
|
+
getPopupContainer
|
|
55195
|
+
} = useDesignSystemContext();
|
|
55196
|
+
return jsx(DropdownMenu$1.Portal, {
|
|
55197
|
+
container: getPopupContainer && getPopupContainer(),
|
|
55198
|
+
children: jsx(DropdownMenu$1.SubContent, {
|
|
55199
|
+
ref: ref,
|
|
55200
|
+
css: [contentStyles, {
|
|
55201
|
+
minWidth
|
|
55202
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:SubContent;"],
|
|
55203
|
+
sideOffset: -2,
|
|
55204
|
+
alignOffset: -5,
|
|
55205
|
+
...props,
|
|
55206
|
+
children: children
|
|
55207
|
+
})
|
|
55208
|
+
});
|
|
55209
|
+
});
|
|
55210
|
+
const Trigger = /*#__PURE__*/forwardRef(function Trigger(_ref3, ref) {
|
|
55211
|
+
let {
|
|
55212
|
+
children,
|
|
55213
|
+
...props
|
|
55214
|
+
} = _ref3;
|
|
55117
55215
|
return jsx(DropdownMenu$1.Trigger, {
|
|
55118
55216
|
ref: ref,
|
|
55119
55217
|
...props,
|
|
55120
55218
|
children: children
|
|
55121
55219
|
});
|
|
55122
55220
|
});
|
|
55123
|
-
const Item = /*#__PURE__*/forwardRef(function Item(
|
|
55221
|
+
const Item = /*#__PURE__*/forwardRef(function Item(_ref4, ref) {
|
|
55124
55222
|
let {
|
|
55125
55223
|
children,
|
|
55126
55224
|
...props
|
|
55127
|
-
} =
|
|
55225
|
+
} = _ref4;
|
|
55128
55226
|
return jsx(DropdownMenu$1.Item, {
|
|
55129
55227
|
css: itemStyles,
|
|
55130
55228
|
ref: ref,
|
|
@@ -55132,11 +55230,11 @@ const Item = /*#__PURE__*/forwardRef(function Item(_ref3, ref) {
|
|
|
55132
55230
|
children: children
|
|
55133
55231
|
});
|
|
55134
55232
|
});
|
|
55135
|
-
const Label = /*#__PURE__*/forwardRef(function Label(
|
|
55233
|
+
const Label = /*#__PURE__*/forwardRef(function Label(_ref5, ref) {
|
|
55136
55234
|
let {
|
|
55137
55235
|
children,
|
|
55138
55236
|
...props
|
|
55139
|
-
} =
|
|
55237
|
+
} = _ref5;
|
|
55140
55238
|
return jsx(DropdownMenu$1.Label, {
|
|
55141
55239
|
ref: ref,
|
|
55142
55240
|
css: [itemStyles, theme => ({
|
|
@@ -55146,11 +55244,11 @@ const Label = /*#__PURE__*/forwardRef(function Label(_ref4, ref) {
|
|
|
55146
55244
|
children: children
|
|
55147
55245
|
});
|
|
55148
55246
|
});
|
|
55149
|
-
const Separator = /*#__PURE__*/forwardRef(function Separator(
|
|
55247
|
+
const Separator = /*#__PURE__*/forwardRef(function Separator(_ref6, ref) {
|
|
55150
55248
|
let {
|
|
55151
55249
|
children,
|
|
55152
55250
|
...props
|
|
55153
|
-
} =
|
|
55251
|
+
} = _ref6;
|
|
55154
55252
|
return jsx(DropdownMenu$1.Separator, {
|
|
55155
55253
|
ref: ref,
|
|
55156
55254
|
css: theme => ({
|
|
@@ -55162,18 +55260,18 @@ const Separator = /*#__PURE__*/forwardRef(function Separator(_ref5, ref) {
|
|
|
55162
55260
|
children: children
|
|
55163
55261
|
});
|
|
55164
55262
|
});
|
|
55165
|
-
const
|
|
55263
|
+
const SubTrigger = /*#__PURE__*/forwardRef(function TriggerItem(_ref7, ref) {
|
|
55166
55264
|
let {
|
|
55167
55265
|
children,
|
|
55168
55266
|
...props
|
|
55169
|
-
} =
|
|
55170
|
-
return jsxs(DropdownMenu$1.
|
|
55267
|
+
} = _ref7;
|
|
55268
|
+
return jsxs(DropdownMenu$1.SubTrigger, {
|
|
55171
55269
|
ref: ref,
|
|
55172
55270
|
css: [itemStyles, theme => ({
|
|
55173
55271
|
'&[data-state="open"]': {
|
|
55174
55272
|
backgroundColor: theme.colors.actionTertiaryBackgroundHover
|
|
55175
55273
|
}
|
|
55176
|
-
}), process.env.NODE_ENV === "production" ? "" : ";label:
|
|
55274
|
+
}), process.env.NODE_ENV === "production" ? "" : ";label:SubTrigger;"],
|
|
55177
55275
|
...props,
|
|
55178
55276
|
children: [children, jsx(HintColumn, {
|
|
55179
55277
|
css: theme => ({
|
|
@@ -55190,11 +55288,17 @@ const TriggerItem = /*#__PURE__*/forwardRef(function TriggerItem(_ref6, ref) {
|
|
|
55190
55288
|
})]
|
|
55191
55289
|
});
|
|
55192
55290
|
});
|
|
55193
|
-
|
|
55291
|
+
/**
|
|
55292
|
+
* Deprecated. Use `SubTrigger` instead.
|
|
55293
|
+
* @deprecated
|
|
55294
|
+
*/
|
|
55295
|
+
|
|
55296
|
+
const TriggerItem = SubTrigger;
|
|
55297
|
+
const CheckboxItem = /*#__PURE__*/forwardRef(function CheckboxItem(_ref8, ref) {
|
|
55194
55298
|
let {
|
|
55195
55299
|
children,
|
|
55196
55300
|
...props
|
|
55197
|
-
} =
|
|
55301
|
+
} = _ref8;
|
|
55198
55302
|
return jsx(DropdownMenu$1.CheckboxItem, {
|
|
55199
55303
|
ref: ref,
|
|
55200
55304
|
css: [itemStyles, checkboxItemStyles, process.env.NODE_ENV === "production" ? "" : ";label:CheckboxItem;"],
|
|
@@ -55202,11 +55306,11 @@ const CheckboxItem = /*#__PURE__*/forwardRef(function CheckboxItem(_ref7, ref) {
|
|
|
55202
55306
|
children: children
|
|
55203
55307
|
});
|
|
55204
55308
|
});
|
|
55205
|
-
const ItemIndicator = /*#__PURE__*/forwardRef(function ItemIndicator(
|
|
55309
|
+
const ItemIndicator = /*#__PURE__*/forwardRef(function ItemIndicator(_ref9, ref) {
|
|
55206
55310
|
let {
|
|
55207
55311
|
children,
|
|
55208
55312
|
...props
|
|
55209
|
-
} =
|
|
55313
|
+
} = _ref9;
|
|
55210
55314
|
return jsx(DropdownMenu$1.ItemIndicator, {
|
|
55211
55315
|
ref: ref,
|
|
55212
55316
|
css: theme => ({
|
|
@@ -55222,11 +55326,11 @@ const ItemIndicator = /*#__PURE__*/forwardRef(function ItemIndicator(_ref8, ref)
|
|
|
55222
55326
|
})
|
|
55223
55327
|
});
|
|
55224
55328
|
});
|
|
55225
|
-
const Arrow = /*#__PURE__*/forwardRef(function Arrow(
|
|
55329
|
+
const Arrow = /*#__PURE__*/forwardRef(function Arrow(_ref10, ref) {
|
|
55226
55330
|
let {
|
|
55227
55331
|
children,
|
|
55228
55332
|
...props
|
|
55229
|
-
} =
|
|
55333
|
+
} = _ref10;
|
|
55230
55334
|
const {
|
|
55231
55335
|
theme
|
|
55232
55336
|
} = useDesignSystemTheme();
|
|
@@ -55236,21 +55340,27 @@ const Arrow = /*#__PURE__*/forwardRef(function Arrow(_ref9, ref) {
|
|
|
55236
55340
|
stroke: theme.colors.borderDecorative,
|
|
55237
55341
|
strokeDashoffset: -CONSTANTS.arrowBottomLength(),
|
|
55238
55342
|
strokeDasharray: CONSTANTS.arrowBottomLength() + 2 * CONSTANTS.arrowSide(),
|
|
55239
|
-
strokeWidth: CONSTANTS.arrowStrokeWidth()
|
|
55343
|
+
strokeWidth: CONSTANTS.arrowStrokeWidth(),
|
|
55344
|
+
// TODO: This is a temporary fix for the alignment of the Arrow;
|
|
55345
|
+
// Radix has changed the implementation for v1.0.0 (uses floating-ui)
|
|
55346
|
+
// which has new behaviors for alignment that we don't want. Generally
|
|
55347
|
+
// we need to fix the arrow to always be aligned to the left of the menu (with
|
|
55348
|
+
// offset equal to border radius)
|
|
55349
|
+
position: 'relative',
|
|
55350
|
+
top: -1
|
|
55240
55351
|
}, process.env.NODE_ENV === "production" ? "" : ";label:Arrow;"),
|
|
55241
55352
|
ref: ref,
|
|
55242
55353
|
width: 12,
|
|
55243
55354
|
height: 6,
|
|
55244
|
-
offset: theme.borders.borderRadiusMd,
|
|
55245
55355
|
...props,
|
|
55246
55356
|
children: children
|
|
55247
55357
|
});
|
|
55248
55358
|
});
|
|
55249
|
-
const RadioItem = /*#__PURE__*/forwardRef(function RadioItem(
|
|
55359
|
+
const RadioItem = /*#__PURE__*/forwardRef(function RadioItem(_ref11, ref) {
|
|
55250
55360
|
let {
|
|
55251
55361
|
children,
|
|
55252
55362
|
...props
|
|
55253
|
-
} =
|
|
55363
|
+
} = _ref11;
|
|
55254
55364
|
return jsx(DropdownMenu$1.RadioItem, {
|
|
55255
55365
|
ref: ref,
|
|
55256
55366
|
css: [itemStyles, checkboxItemStyles, process.env.NODE_ENV === "production" ? "" : ";label:RadioItem;"],
|
|
@@ -55260,13 +55370,14 @@ const RadioItem = /*#__PURE__*/forwardRef(function RadioItem(_ref10, ref) {
|
|
|
55260
55370
|
}); // UNWRAPPED RADIX-UI-COMPONENTS
|
|
55261
55371
|
|
|
55262
55372
|
const Group = DropdownMenu$1.Group;
|
|
55263
|
-
const RadioGroup = DropdownMenu$1.RadioGroup;
|
|
55373
|
+
const RadioGroup = DropdownMenu$1.RadioGroup;
|
|
55374
|
+
const Sub = DropdownMenu$1.Sub; // EXTRA COMPONENTS
|
|
55264
55375
|
|
|
55265
|
-
const HintColumn = /*#__PURE__*/forwardRef(function HintColumn(
|
|
55376
|
+
const HintColumn = /*#__PURE__*/forwardRef(function HintColumn(_ref12, ref) {
|
|
55266
55377
|
let {
|
|
55267
55378
|
children,
|
|
55268
55379
|
...props
|
|
55269
|
-
} =
|
|
55380
|
+
} = _ref12;
|
|
55270
55381
|
return jsx("div", {
|
|
55271
55382
|
ref: ref,
|
|
55272
55383
|
css: [metaTextStyles, "margin-left:auto;" + (process.env.NODE_ENV === "production" ? "" : ";label:HintColumn;")],
|
|
@@ -55274,11 +55385,11 @@ const HintColumn = /*#__PURE__*/forwardRef(function HintColumn(_ref11, ref) {
|
|
|
55274
55385
|
children: children
|
|
55275
55386
|
});
|
|
55276
55387
|
});
|
|
55277
|
-
const HintRow = /*#__PURE__*/forwardRef(function HintRow(
|
|
55388
|
+
const HintRow = /*#__PURE__*/forwardRef(function HintRow(_ref13, ref) {
|
|
55278
55389
|
let {
|
|
55279
55390
|
children,
|
|
55280
55391
|
...props
|
|
55281
|
-
} =
|
|
55392
|
+
} = _ref13;
|
|
55282
55393
|
return jsx("div", {
|
|
55283
55394
|
ref: ref,
|
|
55284
55395
|
css: [metaTextStyles, "min-width:100%;" + (process.env.NODE_ENV === "production" ? "" : ";label:HintRow;")],
|
|
@@ -55286,11 +55397,11 @@ const HintRow = /*#__PURE__*/forwardRef(function HintRow(_ref12, ref) {
|
|
|
55286
55397
|
children: children
|
|
55287
55398
|
});
|
|
55288
55399
|
});
|
|
55289
|
-
const IconWrapper = /*#__PURE__*/forwardRef(function IconWrapper(
|
|
55400
|
+
const IconWrapper = /*#__PURE__*/forwardRef(function IconWrapper(_ref14, ref) {
|
|
55290
55401
|
let {
|
|
55291
55402
|
children,
|
|
55292
55403
|
...props
|
|
55293
|
-
} =
|
|
55404
|
+
} = _ref14;
|
|
55294
55405
|
return jsx("div", {
|
|
55295
55406
|
ref: ref,
|
|
55296
55407
|
css: theme => ({
|
|
@@ -55355,6 +55466,29 @@ const CONSTANTS = {
|
|
|
55355
55466
|
}
|
|
55356
55467
|
|
|
55357
55468
|
};
|
|
55469
|
+
const dropdownContentStyles = theme => ({
|
|
55470
|
+
backgroundColor: theme.colors.backgroundPrimary,
|
|
55471
|
+
color: theme.colors.textPrimary,
|
|
55472
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
55473
|
+
border: "1px solid ".concat(theme.colors.borderDecorative),
|
|
55474
|
+
borderRadius: theme.borders.borderRadiusMd,
|
|
55475
|
+
padding: "".concat(theme.spacing.xs, "px 0"),
|
|
55476
|
+
boxShadow: theme.themeName !== 'dark' ? "0px 4px 16px 0px rgba(205, 218, 229, 1)" : undefined,
|
|
55477
|
+
userSelect: 'none',
|
|
55478
|
+
// Ant Design uses 1000s for their zIndex space; this ensures Radix works with that, but
|
|
55479
|
+
// we'll likely need to be sure that all Radix components are using the same zIndex going forward.
|
|
55480
|
+
zIndex: 2000,
|
|
55481
|
+
a: importantify({
|
|
55482
|
+
color: theme.colors.textPrimary,
|
|
55483
|
+
cursor: 'default',
|
|
55484
|
+
'&:hover, &:focus': {
|
|
55485
|
+
color: theme.colors.textPrimary
|
|
55486
|
+
}
|
|
55487
|
+
})
|
|
55488
|
+
});
|
|
55489
|
+
|
|
55490
|
+
const contentStyles = theme => ({ ...dropdownContentStyles(theme)
|
|
55491
|
+
});
|
|
55358
55492
|
|
|
55359
55493
|
const itemStyles = theme => ({
|
|
55360
55494
|
padding: "".concat(CONSTANTS.itemPaddingVertical(theme), "px ").concat(CONSTANTS.itemPaddingHorizontal(theme), "px"),
|
|
@@ -55381,58 +55515,18 @@ const metaTextStyles = theme => ({
|
|
|
55381
55515
|
'[data-disabled] &': {
|
|
55382
55516
|
color: theme.colors.actionDisabledText
|
|
55383
55517
|
}
|
|
55384
|
-
}); // ANIMATIONS
|
|
55385
|
-
|
|
55386
|
-
|
|
55387
|
-
const slideUpAndFade = keyframes({
|
|
55388
|
-
'0%': {
|
|
55389
|
-
opacity: 0,
|
|
55390
|
-
transform: 'translateY(2px)'
|
|
55391
|
-
},
|
|
55392
|
-
'100%': {
|
|
55393
|
-
opacity: 1,
|
|
55394
|
-
transform: 'translateY(0)'
|
|
55395
|
-
}
|
|
55396
|
-
});
|
|
55397
|
-
const slideRightAndFade = keyframes({
|
|
55398
|
-
'0%': {
|
|
55399
|
-
opacity: 0,
|
|
55400
|
-
transform: 'translateX(-2px)'
|
|
55401
|
-
},
|
|
55402
|
-
'100%': {
|
|
55403
|
-
opacity: 1,
|
|
55404
|
-
transform: 'translateX(0)'
|
|
55405
|
-
}
|
|
55406
|
-
});
|
|
55407
|
-
const slideDownAndFade = keyframes({
|
|
55408
|
-
'0%': {
|
|
55409
|
-
opacity: 0,
|
|
55410
|
-
transform: 'translateY(-2px)'
|
|
55411
|
-
},
|
|
55412
|
-
'100%': {
|
|
55413
|
-
opacity: 1,
|
|
55414
|
-
transform: 'translateY(0)'
|
|
55415
|
-
}
|
|
55416
|
-
});
|
|
55417
|
-
const slideLeftAndFade = keyframes({
|
|
55418
|
-
'0%': {
|
|
55419
|
-
opacity: 0,
|
|
55420
|
-
transform: 'translateX(2px)'
|
|
55421
|
-
},
|
|
55422
|
-
'100%': {
|
|
55423
|
-
opacity: 1,
|
|
55424
|
-
transform: 'translateX(0)'
|
|
55425
|
-
}
|
|
55426
55518
|
});
|
|
55427
55519
|
|
|
55428
55520
|
var DropdownMenu = /*#__PURE__*/Object.freeze({
|
|
55429
55521
|
__proto__: null,
|
|
55430
55522
|
Root: Root,
|
|
55431
55523
|
Content: Content$1,
|
|
55524
|
+
SubContent: SubContent,
|
|
55432
55525
|
Trigger: Trigger,
|
|
55433
55526
|
Item: Item,
|
|
55434
55527
|
Label: Label,
|
|
55435
55528
|
Separator: Separator,
|
|
55529
|
+
SubTrigger: SubTrigger,
|
|
55436
55530
|
TriggerItem: TriggerItem,
|
|
55437
55531
|
CheckboxItem: CheckboxItem,
|
|
55438
55532
|
ItemIndicator: ItemIndicator,
|
|
@@ -55440,9 +55534,11 @@ var DropdownMenu = /*#__PURE__*/Object.freeze({
|
|
|
55440
55534
|
RadioItem: RadioItem,
|
|
55441
55535
|
Group: Group,
|
|
55442
55536
|
RadioGroup: RadioGroup,
|
|
55537
|
+
Sub: Sub,
|
|
55443
55538
|
HintColumn: HintColumn,
|
|
55444
55539
|
HintRow: HintRow,
|
|
55445
|
-
IconWrapper: IconWrapper
|
|
55540
|
+
IconWrapper: IconWrapper,
|
|
55541
|
+
dropdownContentStyles: dropdownContentStyles
|
|
55446
55542
|
});
|
|
55447
55543
|
|
|
55448
55544
|
const getFormItemEmotionStyles = _ref => {
|
|
@@ -55723,34 +55819,25 @@ const Header$1 = props => {
|
|
|
55723
55819
|
});
|
|
55724
55820
|
};
|
|
55725
55821
|
|
|
55726
|
-
const
|
|
55727
|
-
let
|
|
55728
|
-
|
|
55729
|
-
|
|
55730
|
-
if (validationState) {
|
|
55731
|
-
stateClass = "".concat(classNamePrefix, "-input-").concat(validationState);
|
|
55732
|
-
}
|
|
55733
|
-
|
|
55734
|
-
return "".concat(stateClass, " ").concat(className).trim();
|
|
55735
|
-
};
|
|
55736
|
-
|
|
55737
|
-
const getInputEmotionStyles = (clsPrefix, theme) => {
|
|
55822
|
+
const getInputEmotionStyles = (clsPrefix, theme, _ref) => {
|
|
55823
|
+
let {
|
|
55824
|
+
validationState
|
|
55825
|
+
} = _ref;
|
|
55738
55826
|
const affixClass = ".".concat(clsPrefix, "-input-affix-wrapper");
|
|
55739
55827
|
const affixClassFocused = ".".concat(clsPrefix, "-input-affix-wrapper-focused");
|
|
55740
|
-
const
|
|
55741
|
-
const successClass = ".".concat(clsPrefix, "-input-success");
|
|
55742
|
-
const warningClass = ".".concat(clsPrefix, "-input-warning");
|
|
55828
|
+
const validationColor = getValidationStateColor(theme, validationState);
|
|
55743
55829
|
const styles = {
|
|
55744
55830
|
'&&': {
|
|
55745
55831
|
lineHeight: theme.typography.lineHeightBase,
|
|
55746
|
-
paddingTop: 5,
|
|
55747
|
-
paddingBottom: 5,
|
|
55748
55832
|
minHeight: theme.general.heightSm,
|
|
55833
|
+
...(validationState && {
|
|
55834
|
+
borderColor: validationColor
|
|
55835
|
+
}),
|
|
55749
55836
|
'&:hover': {
|
|
55750
|
-
borderColor: theme.colors.actionPrimaryBackgroundHover
|
|
55837
|
+
borderColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundHover
|
|
55751
55838
|
},
|
|
55752
55839
|
'&:focus': {
|
|
55753
|
-
outlineColor: theme.colors.actionPrimaryBackgroundDefault,
|
|
55840
|
+
outlineColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundDefault,
|
|
55754
55841
|
outlineWidth: 2,
|
|
55755
55842
|
outlineOffset: -2,
|
|
55756
55843
|
outlineStyle: 'solid',
|
|
@@ -55785,107 +55872,74 @@ const getInputEmotionStyles = (clsPrefix, theme) => {
|
|
|
55785
55872
|
borderColor: 'transparent'
|
|
55786
55873
|
}
|
|
55787
55874
|
},
|
|
55788
|
-
["&".concat(warningClass)]: {
|
|
55789
|
-
borderColor: theme.colors.textValidationWarning,
|
|
55790
|
-
'&:hover': {
|
|
55791
|
-
borderColor: theme.colors.textValidationWarning
|
|
55792
|
-
},
|
|
55793
|
-
'&:focus': {
|
|
55794
|
-
outlineColor: theme.colors.textValidationWarning,
|
|
55795
|
-
outlineOffset: -2
|
|
55796
|
-
}
|
|
55797
|
-
},
|
|
55798
|
-
["&".concat(successClass)]: {
|
|
55799
|
-
borderColor: theme.colors.textValidationSuccess,
|
|
55800
|
-
'&:hover': {
|
|
55801
|
-
borderColor: theme.colors.textValidationSuccess
|
|
55802
|
-
},
|
|
55803
|
-
'&:focus': {
|
|
55804
|
-
outlineColor: theme.colors.textValidationSuccess,
|
|
55805
|
-
outlineOffset: -2
|
|
55806
|
-
}
|
|
55807
|
-
},
|
|
55808
|
-
["&".concat(errorClass)]: {
|
|
55809
|
-
borderColor: theme.colors.actionDangerPrimaryBackgroundDefault,
|
|
55810
|
-
'&:hover': {
|
|
55811
|
-
borderColor: theme.colors.actionDangerPrimaryBackgroundDefault
|
|
55812
|
-
},
|
|
55813
|
-
'&:focus': {
|
|
55814
|
-
outlineColor: theme.colors.actionDangerPrimaryBackgroundDefault,
|
|
55815
|
-
outlineOffset: -2
|
|
55816
|
-
}
|
|
55817
|
-
},
|
|
55818
55875
|
...getAnimationCss(theme.options.enableAnimation)
|
|
55819
55876
|
};
|
|
55820
55877
|
return /*#__PURE__*/css$1(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:getInputEmotionStyles;");
|
|
55821
55878
|
};
|
|
55822
55879
|
|
|
55823
|
-
const TextArea = /*#__PURE__*/forwardRef(function TextArea(
|
|
55880
|
+
const TextArea = /*#__PURE__*/forwardRef(function TextArea(_ref2, ref) {
|
|
55824
55881
|
let {
|
|
55825
|
-
className,
|
|
55826
55882
|
validationState,
|
|
55827
55883
|
autoComplete = 'off',
|
|
55828
55884
|
dangerouslySetAntdProps,
|
|
55829
55885
|
dangerouslyAppendEmotionCSS,
|
|
55830
55886
|
...props
|
|
55831
|
-
} =
|
|
55887
|
+
} = _ref2;
|
|
55832
55888
|
const {
|
|
55833
55889
|
classNamePrefix,
|
|
55834
55890
|
theme
|
|
55835
55891
|
} = useDesignSystemTheme();
|
|
55836
|
-
const wrapperClass = getStateClass(classNamePrefix, validationState, className);
|
|
55837
55892
|
return jsx(Input$2.TextArea, {
|
|
55838
|
-
className: wrapperClass,
|
|
55839
55893
|
ref: ref,
|
|
55840
55894
|
autoComplete: autoComplete,
|
|
55841
|
-
css: [getInputEmotionStyles(classNamePrefix, theme
|
|
55895
|
+
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
55896
|
+
validationState
|
|
55897
|
+
}), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:TextArea;"],
|
|
55842
55898
|
...props,
|
|
55843
55899
|
...dangerouslySetAntdProps
|
|
55844
55900
|
});
|
|
55845
55901
|
});
|
|
55846
|
-
const Password = /*#__PURE__*/forwardRef(function Password(
|
|
55902
|
+
const Password = /*#__PURE__*/forwardRef(function Password(_ref3, ref) {
|
|
55847
55903
|
let {
|
|
55848
|
-
className,
|
|
55849
55904
|
validationState,
|
|
55850
55905
|
autoComplete = 'off',
|
|
55851
55906
|
dangerouslySetAntdProps,
|
|
55852
55907
|
dangerouslyAppendEmotionCSS,
|
|
55853
55908
|
...props
|
|
55854
|
-
} =
|
|
55909
|
+
} = _ref3;
|
|
55855
55910
|
const {
|
|
55856
55911
|
classNamePrefix,
|
|
55857
55912
|
theme
|
|
55858
55913
|
} = useDesignSystemTheme();
|
|
55859
|
-
const wrapperClass = getStateClass(classNamePrefix, validationState, className);
|
|
55860
55914
|
return jsx(Input$2.Password, {
|
|
55861
|
-
className: wrapperClass,
|
|
55862
55915
|
visibilityToggle: false,
|
|
55863
55916
|
ref: ref,
|
|
55864
55917
|
autoComplete: autoComplete,
|
|
55865
|
-
css: [getInputEmotionStyles(classNamePrefix, theme
|
|
55918
|
+
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
55919
|
+
validationState
|
|
55920
|
+
}), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Password;"],
|
|
55866
55921
|
...props,
|
|
55867
55922
|
...dangerouslySetAntdProps
|
|
55868
55923
|
});
|
|
55869
55924
|
});
|
|
55870
|
-
const DuboisInput = /*#__PURE__*/forwardRef(function Input(
|
|
55925
|
+
const DuboisInput = /*#__PURE__*/forwardRef(function Input(_ref4, ref) {
|
|
55871
55926
|
let {
|
|
55872
|
-
className,
|
|
55873
55927
|
validationState,
|
|
55874
55928
|
autoComplete = 'off',
|
|
55875
55929
|
dangerouslySetAntdProps,
|
|
55876
55930
|
dangerouslyAppendEmotionCSS,
|
|
55877
55931
|
...props
|
|
55878
|
-
} =
|
|
55932
|
+
} = _ref4;
|
|
55879
55933
|
const {
|
|
55880
55934
|
classNamePrefix,
|
|
55881
55935
|
theme
|
|
55882
55936
|
} = useDesignSystemTheme();
|
|
55883
|
-
const wrapperClass = getStateClass(classNamePrefix, validationState, className);
|
|
55884
55937
|
return jsx(Input$2, {
|
|
55885
|
-
className: wrapperClass,
|
|
55886
55938
|
autoComplete: autoComplete,
|
|
55887
55939
|
ref: ref,
|
|
55888
|
-
css: [getInputEmotionStyles(classNamePrefix, theme
|
|
55940
|
+
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
55941
|
+
validationState
|
|
55942
|
+
}), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:DuboisInput;"],
|
|
55889
55943
|
...props,
|
|
55890
55944
|
...dangerouslySetAntdProps
|
|
55891
55945
|
});
|
|
@@ -55922,6 +55976,9 @@ Layout.Footer = Footer;
|
|
|
55922
55976
|
Layout.Sider = Sider;
|
|
55923
55977
|
Layout.Content = Content;
|
|
55924
55978
|
|
|
55979
|
+
/**
|
|
55980
|
+
* @deprecated Use `DropdownMenu` instead.
|
|
55981
|
+
*/
|
|
55925
55982
|
const Menu = _ref => {
|
|
55926
55983
|
let {
|
|
55927
55984
|
dangerouslySetAntdProps,
|
|
@@ -55951,6 +56008,7 @@ Menu.SubMenu = function SubMenu(_ref2) {
|
|
|
55951
56008
|
popupClassName: css({
|
|
55952
56009
|
zIndex: theme.options.zIndexBase + 50
|
|
55953
56010
|
}),
|
|
56011
|
+
popupOffset: [-6, -10],
|
|
55954
56012
|
...props,
|
|
55955
56013
|
...dangerouslySetAntdProps
|
|
55956
56014
|
});
|
|
@@ -56750,7 +56808,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__$3() { return "You have tried to string
|
|
|
56750
56808
|
function getSelectEmotionStyles(_ref) {
|
|
56751
56809
|
let {
|
|
56752
56810
|
clsPrefix,
|
|
56753
|
-
theme
|
|
56811
|
+
theme,
|
|
56812
|
+
validationState
|
|
56754
56813
|
} = _ref;
|
|
56755
56814
|
const classFocused = ".".concat(clsPrefix, "-focused");
|
|
56756
56815
|
const classOpen = ".".concat(clsPrefix, "-open");
|
|
@@ -56771,6 +56830,7 @@ function getSelectEmotionStyles(_ref) {
|
|
|
56771
56830
|
const classSearchClear = ".".concat(clsPrefix, "-clear");
|
|
56772
56831
|
const classAllowClear = ".".concat(clsPrefix, "-allow-clear");
|
|
56773
56832
|
const classSearchInput = ".".concat(clsPrefix, "-selection-search-input");
|
|
56833
|
+
const validationColor = getValidationStateColor(theme, validationState);
|
|
56774
56834
|
const styles = {
|
|
56775
56835
|
'&:hover': {
|
|
56776
56836
|
[classSelector]: {
|
|
@@ -56978,6 +57038,18 @@ function getSelectEmotionStyles(_ref) {
|
|
|
56978
57038
|
backgroundColor: theme.colors.tagPress
|
|
56979
57039
|
}
|
|
56980
57040
|
},
|
|
57041
|
+
...(validationState && {
|
|
57042
|
+
["& > ".concat(classSelector)]: {
|
|
57043
|
+
borderColor: validationColor,
|
|
57044
|
+
'&:hover': {
|
|
57045
|
+
borderColor: validationColor
|
|
57046
|
+
}
|
|
57047
|
+
},
|
|
57048
|
+
["&".concat(classFocused, " > ").concat(classSelector)]: {
|
|
57049
|
+
outlineColor: validationColor,
|
|
57050
|
+
outlineOffset: -2
|
|
57051
|
+
}
|
|
57052
|
+
}),
|
|
56981
57053
|
...getAnimationCss(theme.options.enableAnimation)
|
|
56982
57054
|
};
|
|
56983
57055
|
const importantStyles = importantify(styles);
|
|
@@ -56985,18 +57057,32 @@ function getSelectEmotionStyles(_ref) {
|
|
|
56985
57057
|
}
|
|
56986
57058
|
|
|
56987
57059
|
function getDropdownStyles(clsPrefix, theme) {
|
|
57060
|
+
let useNewDropdownStyle = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
56988
57061
|
const classItem = ".".concat(clsPrefix, "-item-option");
|
|
56989
57062
|
const classItemActive = ".".concat(clsPrefix, "-item-option-active");
|
|
56990
57063
|
const classItemSelected = ".".concat(clsPrefix, "-item-option-selected");
|
|
56991
57064
|
const classItemState = ".".concat(clsPrefix, "-item-option-state");
|
|
56992
|
-
const
|
|
56993
|
-
|
|
56994
|
-
|
|
56995
|
-
|
|
56996
|
-
|
|
57065
|
+
const classItemContent = ".".concat(clsPrefix, "-item-option-content");
|
|
57066
|
+
const CONTENT_LEFT_PADDING = 28;
|
|
57067
|
+
const styles = { ...(useNewDropdownStyle ? dropdownContentStyles(theme) : {
|
|
57068
|
+
borderColor: theme.colors.borderDecorative,
|
|
57069
|
+
borderWidth: 1,
|
|
57070
|
+
borderStyle: 'solid',
|
|
57071
|
+
zIndex: theme.options.zIndexBase + 50
|
|
57072
|
+
}),
|
|
56997
57073
|
[classItem]: {
|
|
56998
|
-
height: theme.general.heightSm
|
|
57074
|
+
height: theme.general.heightSm,
|
|
57075
|
+
...(useNewDropdownStyle && {
|
|
57076
|
+
padding: '4px 8px',
|
|
57077
|
+
alignItems: 'center',
|
|
57078
|
+
lineHeight: theme.typography.lineHeightBase
|
|
57079
|
+
})
|
|
56999
57080
|
},
|
|
57081
|
+
...(useNewDropdownStyle && {
|
|
57082
|
+
[classItemContent]: {
|
|
57083
|
+
paddingLeft: CONTENT_LEFT_PADDING
|
|
57084
|
+
}
|
|
57085
|
+
}),
|
|
57000
57086
|
[classItemActive]: {
|
|
57001
57087
|
backgroundColor: theme.colors.actionTertiaryBackgroundHover,
|
|
57002
57088
|
height: theme.general.heightSm,
|
|
@@ -57012,13 +57098,19 @@ function getDropdownStyles(clsPrefix, theme) {
|
|
|
57012
57098
|
}
|
|
57013
57099
|
},
|
|
57014
57100
|
[classItemState]: {
|
|
57015
|
-
color: theme.colors.textSecondary
|
|
57101
|
+
color: theme.colors.textSecondary,
|
|
57102
|
+
...(useNewDropdownStyle && {
|
|
57103
|
+
position: 'absolute'
|
|
57104
|
+
})
|
|
57016
57105
|
},
|
|
57017
57106
|
[".".concat(clsPrefix, "-loading-options")]: {
|
|
57018
57107
|
pointerEvents: 'none',
|
|
57019
57108
|
margin: '0 auto',
|
|
57020
57109
|
height: theme.general.heightSm,
|
|
57021
|
-
display: 'block'
|
|
57110
|
+
display: 'block',
|
|
57111
|
+
...(useNewDropdownStyle && {
|
|
57112
|
+
left: -CONTENT_LEFT_PADDING / 2
|
|
57113
|
+
})
|
|
57022
57114
|
},
|
|
57023
57115
|
...getAnimationCss(theme.options.enableAnimation)
|
|
57024
57116
|
};
|
|
@@ -57049,8 +57141,12 @@ var _ref4 = process.env.NODE_ENV === "production" ? {
|
|
|
57049
57141
|
function DuboisSelect(_ref2, ref) {
|
|
57050
57142
|
let {
|
|
57051
57143
|
children,
|
|
57144
|
+
validationState,
|
|
57052
57145
|
loading,
|
|
57053
57146
|
mode,
|
|
57147
|
+
options,
|
|
57148
|
+
notFoundContent,
|
|
57149
|
+
optionFilterProp,
|
|
57054
57150
|
dangerouslySetAntdProps,
|
|
57055
57151
|
virtual,
|
|
57056
57152
|
...restProps
|
|
@@ -57059,6 +57155,9 @@ function DuboisSelect(_ref2, ref) {
|
|
|
57059
57155
|
theme,
|
|
57060
57156
|
getPrefixedClassName
|
|
57061
57157
|
} = useDesignSystemTheme();
|
|
57158
|
+
const {
|
|
57159
|
+
USE_NEW_SELECT_DROPDOWN_STYLES
|
|
57160
|
+
} = useDesignSystemFlags();
|
|
57062
57161
|
const clsPrefix = getPrefixedClassName('select');
|
|
57063
57162
|
return jsx(ClassNames, {
|
|
57064
57163
|
children: _ref3 => {
|
|
@@ -57068,7 +57167,8 @@ function DuboisSelect(_ref2, ref) {
|
|
|
57068
57167
|
return jsx(AntDSelect, {
|
|
57069
57168
|
css: getSelectEmotionStyles({
|
|
57070
57169
|
clsPrefix,
|
|
57071
|
-
theme
|
|
57170
|
+
theme,
|
|
57171
|
+
validationState
|
|
57072
57172
|
}),
|
|
57073
57173
|
removeIcon: jsx(CloseIcon, {
|
|
57074
57174
|
css: _ref4
|
|
@@ -57089,22 +57189,23 @@ function DuboisSelect(_ref2, ref) {
|
|
|
57089
57189
|
}),
|
|
57090
57190
|
showArrow: true,
|
|
57091
57191
|
dropdownMatchSelectWidth: true,
|
|
57092
|
-
notFoundContent: jsx("div", {
|
|
57192
|
+
notFoundContent: notFoundContent !== null && notFoundContent !== void 0 ? notFoundContent : jsx("div", {
|
|
57093
57193
|
css: /*#__PURE__*/css$1({
|
|
57094
57194
|
color: theme.colors.textSecondary,
|
|
57095
57195
|
textAlign: 'center'
|
|
57096
57196
|
}),
|
|
57097
57197
|
children: "No results found"
|
|
57098
57198
|
}),
|
|
57099
|
-
dropdownClassName: css(getDropdownStyles(clsPrefix, theme)),
|
|
57199
|
+
dropdownClassName: css(getDropdownStyles(clsPrefix, theme, USE_NEW_SELECT_DROPDOWN_STYLES)),
|
|
57100
57200
|
maxTagPlaceholder: items => "+ ".concat(items.length, " more"),
|
|
57101
57201
|
mode: mode,
|
|
57202
|
+
options: options,
|
|
57102
57203
|
loading: loading,
|
|
57103
57204
|
filterOption: true // This is needed to avoid ghost scrollbar that generates error when clicked on exactly 8 elements
|
|
57104
57205
|
// Because by default AntD uses true for virtual, we want to replicate the same even if there are no children
|
|
57105
57206
|
,
|
|
57106
|
-
virtual: virtual ||
|
|
57107
|
-
optionFilterProp: 'children',
|
|
57207
|
+
virtual: virtual || children && Array.isArray(children) && children.length !== scrollbarVisibleItemsCount || options && options.length !== scrollbarVisibleItemsCount || !children && !options,
|
|
57208
|
+
optionFilterProp: optionFilterProp !== null && optionFilterProp !== void 0 ? optionFilterProp : 'children',
|
|
57108
57209
|
...restProps,
|
|
57109
57210
|
...dangerouslySetAntdProps,
|
|
57110
57211
|
children: loading && mode !== 'tags' ? jsxs(Fragment, {
|
|
@@ -57124,22 +57225,29 @@ function DuboisSelect(_ref2, ref) {
|
|
|
57124
57225
|
});
|
|
57125
57226
|
}
|
|
57126
57227
|
|
|
57127
|
-
const Option = /*#__PURE__*/forwardRef(function Option(
|
|
57128
|
-
|
|
57228
|
+
const Option = /*#__PURE__*/forwardRef(function Option(props, ref) {
|
|
57229
|
+
const {
|
|
57129
57230
|
dangerouslySetAntdProps,
|
|
57130
|
-
...
|
|
57131
|
-
} =
|
|
57132
|
-
return jsx(AntDSelect.Option, { ...
|
|
57231
|
+
...restProps
|
|
57232
|
+
} = props;
|
|
57233
|
+
return jsx(AntDSelect.Option, { ...restProps,
|
|
57133
57234
|
ref: ref,
|
|
57134
57235
|
...dangerouslySetAntdProps
|
|
57135
57236
|
});
|
|
57136
|
-
});
|
|
57137
|
-
|
|
57138
|
-
|
|
57139
|
-
|
|
57140
|
-
|
|
57141
|
-
|
|
57142
|
-
|
|
57237
|
+
}); // Needed for rc-select to not throw warning about our component not being Select.Option
|
|
57238
|
+
|
|
57239
|
+
Option.isSelectOption = true;
|
|
57240
|
+
const OptGroup = /*#__PURE__*/forwardRef(function OptGroup(props, ref) {
|
|
57241
|
+
return jsx(AntDSelect.OptGroup, { ...props,
|
|
57242
|
+
isSelectOptGroup: true,
|
|
57243
|
+
ref: ref
|
|
57244
|
+
});
|
|
57245
|
+
}); // Needed for antd to work properly and for rc-select to not throw warning about our component not being Select.OptGroup
|
|
57246
|
+
|
|
57247
|
+
OptGroup.isSelectOptGroup = true;
|
|
57248
|
+
DuboisRefForwardedSelect.Option = Option;
|
|
57249
|
+
DuboisRefForwardedSelect.OptGroup = OptGroup;
|
|
57250
|
+
const Select = DuboisRefForwardedSelect;
|
|
57143
57251
|
|
|
57144
57252
|
const Skeleton = _ref => {
|
|
57145
57253
|
let {
|
|
@@ -57176,25 +57284,53 @@ const Spacer = _ref => {
|
|
|
57176
57284
|
});
|
|
57177
57285
|
};
|
|
57178
57286
|
|
|
57179
|
-
const
|
|
57180
|
-
|
|
57287
|
+
const rotate = keyframes({
|
|
57288
|
+
'0%': {
|
|
57289
|
+
transform: 'rotate(0deg) translate3d(0, 0, 0)'
|
|
57290
|
+
},
|
|
57291
|
+
'100%': {
|
|
57292
|
+
transform: 'rotate(360deg) translate3d(0, 0, 0)'
|
|
57293
|
+
}
|
|
57181
57294
|
});
|
|
57182
57295
|
|
|
57296
|
+
const cssSpinner = function (theme) {
|
|
57297
|
+
let frameRate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 60;
|
|
57298
|
+
let delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
57299
|
+
const styles = {
|
|
57300
|
+
animation: "".concat(rotate, " 1s steps(").concat(frameRate, ", end) infinite"),
|
|
57301
|
+
color: theme.colors.textSecondary,
|
|
57302
|
+
animationDelay: "".concat(delay, "s")
|
|
57303
|
+
};
|
|
57304
|
+
return /*#__PURE__*/css$1(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:cssSpinner;");
|
|
57305
|
+
};
|
|
57306
|
+
|
|
57183
57307
|
const Spinner = _ref => {
|
|
57184
57308
|
let {
|
|
57185
|
-
|
|
57309
|
+
frameRate,
|
|
57310
|
+
size = 'default',
|
|
57311
|
+
delay,
|
|
57312
|
+
className: propClass,
|
|
57186
57313
|
...props
|
|
57187
57314
|
} = _ref;
|
|
57188
57315
|
const {
|
|
57316
|
+
classNamePrefix,
|
|
57189
57317
|
theme
|
|
57190
|
-
} = useDesignSystemTheme();
|
|
57191
|
-
|
|
57192
|
-
|
|
57193
|
-
|
|
57194
|
-
|
|
57195
|
-
|
|
57196
|
-
|
|
57197
|
-
}
|
|
57318
|
+
} = useDesignSystemTheme(); // We use Antd classes to keep styling unchanged
|
|
57319
|
+
// TODO(FEINF-1407): We want to move away from Antd classes and use Emotion for styling in the future
|
|
57320
|
+
|
|
57321
|
+
const sizeSuffix = size === 'small' ? '-sm' : size === 'large' ? '-lg' : '';
|
|
57322
|
+
const sizeClass = sizeSuffix ? "".concat(classNamePrefix, "-spin").concat(sizeSuffix) : '';
|
|
57323
|
+
const wrapperClass = "".concat(propClass || '', " ").concat(classNamePrefix, "-spin ").concat(sizeClass, " ").concat(classNamePrefix, "-spin-spinning ").concat(DU_BOIS_ENABLE_ANIMATION_CLASSNAME).trim();
|
|
57324
|
+
const className = "".concat(classNamePrefix, "-spin-dot ").concat(DU_BOIS_ENABLE_ANIMATION_CLASSNAME).trim();
|
|
57325
|
+
return (// className has to follow {...props}, otherwise is `css` prop is passed down it will overwrite our className
|
|
57326
|
+
jsx("div", { ...props,
|
|
57327
|
+
className: wrapperClass,
|
|
57328
|
+
children: jsx(LoadingIcon, {
|
|
57329
|
+
css: cssSpinner(theme, frameRate, delay),
|
|
57330
|
+
className: className
|
|
57331
|
+
})
|
|
57332
|
+
})
|
|
57333
|
+
);
|
|
57198
57334
|
};
|
|
57199
57335
|
|
|
57200
57336
|
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)."; }
|
|
@@ -57697,13 +57833,14 @@ function Tag(props) {
|
|
|
57697
57833
|
color,
|
|
57698
57834
|
children,
|
|
57699
57835
|
closable,
|
|
57700
|
-
onClose
|
|
57836
|
+
onClose,
|
|
57837
|
+
...attributes
|
|
57701
57838
|
} = props;
|
|
57702
57839
|
const isClickable = Boolean(props.onClick);
|
|
57703
57840
|
const styles = getTagEmotionStyles(theme, color, isClickable);
|
|
57704
57841
|
return jsx("div", {
|
|
57705
57842
|
role: "status",
|
|
57706
|
-
...
|
|
57843
|
+
...attributes,
|
|
57707
57844
|
css: styles.tag,
|
|
57708
57845
|
children: jsxs("div", {
|
|
57709
57846
|
css: styles.content,
|
|
@@ -57891,6 +58028,9 @@ function getTreeEmotionStyles(clsPrefix, theme) {
|
|
|
57891
58028
|
backgroundColor: 'transparent'
|
|
57892
58029
|
}
|
|
57893
58030
|
},
|
|
58031
|
+
[classContent]: {
|
|
58032
|
+
cursor: 'default'
|
|
58033
|
+
},
|
|
57894
58034
|
// Unselectable nodes don't have any background, so the switcher looks better with rounded corners.
|
|
57895
58035
|
[classSwitcher]: {
|
|
57896
58036
|
borderRadius: theme.borders.borderRadiusMd
|
|
@@ -58022,6 +58162,26 @@ function Tree(_ref) {
|
|
|
58022
58162
|
|
|
58023
58163
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
58024
58164
|
|
|
58165
|
+
const getLinkStyles = theme => {
|
|
58166
|
+
const styles = {
|
|
58167
|
+
'&&': {
|
|
58168
|
+
color: theme.colors.actionTertiaryTextDefault,
|
|
58169
|
+
'&:hover': {
|
|
58170
|
+
color: theme.colors.actionTertiaryTextHover,
|
|
58171
|
+
textDecoration: 'underline'
|
|
58172
|
+
},
|
|
58173
|
+
'&:active': {
|
|
58174
|
+
color: theme.colors.actionTertiaryTextPress,
|
|
58175
|
+
textDecoration: 'underline'
|
|
58176
|
+
},
|
|
58177
|
+
'&:focus': {
|
|
58178
|
+
outline: 'auto'
|
|
58179
|
+
}
|
|
58180
|
+
}
|
|
58181
|
+
};
|
|
58182
|
+
return /*#__PURE__*/css$1(styles, process.env.NODE_ENV === "production" ? "" : ";label:getLinkStyles;");
|
|
58183
|
+
};
|
|
58184
|
+
|
|
58025
58185
|
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
58026
58186
|
name: "mgrjgu",
|
|
58027
58187
|
styles: "margin-left:2px"
|
|
@@ -58041,8 +58201,13 @@ function Link(_ref) {
|
|
|
58041
58201
|
openInNewTab,
|
|
58042
58202
|
...restProps
|
|
58043
58203
|
} = props;
|
|
58204
|
+
const {
|
|
58205
|
+
theme
|
|
58206
|
+
} = useDesignSystemTheme();
|
|
58044
58207
|
const openInNewTabProps = getOpenInNewTabProps(openInNewTab);
|
|
58045
|
-
return jsxs(AntDTypography.Link, {
|
|
58208
|
+
return jsxs(AntDTypography.Link, {
|
|
58209
|
+
css: getLinkStyles(theme),
|
|
58210
|
+
...restProps,
|
|
58046
58211
|
...openInNewTabProps,
|
|
58047
58212
|
...dangerouslySetAntdProps,
|
|
58048
58213
|
children: [children, openInNewTab ? jsx(NewWindowIcon, {
|
|
@@ -58212,5 +58377,5 @@ Typography.Title = Title;
|
|
|
58212
58377
|
Typography.Paragraph = Paragraph;
|
|
58213
58378
|
Typography.Link = Link;
|
|
58214
58379
|
|
|
58215
|
-
export { AIcon, Alert, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, ApplyDesignSystemFlags, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowsUpDownIcon, AutoComplete, BarChartIcon, BeakerIcon, BookIcon, BookmarkBorderIcon, BookmarkFillIcon, Breadcrumb, BriefcaseFillIcon, BriefcaseIcon, Button, CalendarEventIcon, CalendarIcon, CaretDownSquareIcon, CaretUpSquareIcon, CheckCircleBorderIcon, CheckCircleFillIcon, CheckIcon, CheckLineIcon, Checkbox, ChecklistIcon, ChevronDoubleDownIcon, ChevronDoubleLeftIcon, ChevronDoubleRightIcon, ChevronDoubleUpIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleIcon, ClipboardIcon, Clock1Icon, ClockIcon, CloseIcon, CloudDownloadIcon, CloudIcon, CloudOffIcon, CloudUploadIcon, ClusterIcon, ClustersIcon, CodeIcon, Col, Collapse, CollapsePanel, CopyIcon, DIcon, DangerModal, DashIcon, DashboardIcon, DataIcon, DatabaseIcon, DesignSystemContext, DesignSystemProvider, DownloadIcon, DragIcon, Dropdown, DropdownMenu, DuboisDatePicker, ErrorBorderIcon, ErrorFillIcon, ExpandLessIcon, ExpandMoreIcon, ExperimentIcon, FeatureStoreIcon, FileCodeIcon, FileDocumentIcon, FileIcon, FileImageIcon, FileModelIcon, FilterIcon, Folder1Icon, FolderIcon, ForkIcon, Form, FormDubois, FullscreenExitIcon, FullscreenIcon, Gear1Icon, GearIcon, GridDashIcon, GridIcon, H1Icon, H2Icon, H3Icon, Header$1 as Header, HistoryIcon, HomeIcon, Icon, ImageIcon, IndentDecreaseIcon, IndentIncreaseIcon, InfinityIcon, InfoBorderIcon, InfoFillIcon, Input, KeyboardIcon, LayerIcon, Layout, LegacyDatePicker, LifesaverIcon, LightningIcon, LinkIcon, LinkRemoveIcon, ListBorderIcon, ListIcon, LoadingIcon, LockBorderIcon, LockFillIcon, LockUnlockedIcon, MIcon, Menu, MinusBoxIcon, MinusCircleBorderIcon, MinusCircleFillIcon, Modal, ModelsIcon, NewWindowIcon, NoIcon, NotebookIcon, NotificationIcon, NotificationsIcon, OfficeIcon, Option, OverflowIcon, PageBottomIcon, PageFirstIcon, PageLastIcon, PageTopIcon, PageWrapper, Pagination, PencilIcon, PinBorderIcon, PinCancelIcon, PinFillIcon, PinXIcon, PlayCircleBorderIcon, PlayCircleFillIcon, PlayIcon, PlusCircleBorderIcon, PlusCircleFillIcon, PlusIcon, PlusSquareIcon, Popover, QueryEditorIcon, QueryIcon, QueryListViewIcon, QueryNavIcon, QuestionMarkBorderIcon, QuestionMarkFillIcon, ROW_GUTTER_SIZE, Radio, ReaderModeIcon, ReposIcon, Row, SchoolIcon, Search1Icon, SearchIcon, SecurityIcon, SegmentedControlButton, SegmentedControlGroup, Select, ShareIcon, SidebarAutoIcon, SidebarCollapseIcon, SidebarExpandIcon, SidebarIcon, Skeleton, Space, Spacer, SpeechBubbleIcon, SpeechBubblePlusIcon, Spinner, SplitButton, StarBorderIcon, StarFillIcon, StopCircleBorderIcon, StopCricleFillIcon, StopIcon, StreamIcon, Switch, SyncIcon, TabPane, Table, TableIcon, Tabs, Tag, Tooltip, TrashIcon, Tree, TreeIcon, Typography, UploadIcon, UsbIcon, UserBadgeIcon, UserCircleIcon, UserGroupIcon, UserIcon, VideosIcon, Visible, VisibleOff, WarningBorderIcon, WarningFillIcon, WithDesignSystemThemeHoc, XCircleBorderIcon, XCircleFillIcon, ZoomInIcon, ZoomOutIcon, __INTERNAL_DO_NOT_USE__FormItem, __INTERNAL_DO_NOT_USE__Group, __INTERNAL_DO_NOT_USE__HorizontalGroup,
|
|
58380
|
+
export { AIcon, Alert, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, ApplyDesignSystemFlags, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowsUpDownIcon, AutoComplete, BarChartIcon, BeakerIcon, BookIcon, BookmarkBorderIcon, BookmarkFillIcon, Breadcrumb, BriefcaseFillIcon, BriefcaseIcon, Button, CalendarEventIcon, CalendarIcon, CaretDownSquareIcon, CaretUpSquareIcon, CheckCircleBorderIcon, CheckCircleFillIcon, CheckIcon, CheckLineIcon, Checkbox, ChecklistIcon, ChevronDoubleDownIcon, ChevronDoubleLeftIcon, ChevronDoubleRightIcon, ChevronDoubleUpIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleIcon, ClipboardIcon, Clock1Icon, ClockIcon, CloseIcon, CloudDownloadIcon, CloudIcon, CloudOffIcon, CloudUploadIcon, ClusterIcon, ClustersIcon, CodeIcon, Col, Collapse, CollapsePanel, CopyIcon, DIcon, DU_BOIS_ENABLE_ANIMATION_CLASSNAME, DangerModal, DashIcon, DashboardIcon, DataIcon, DatabaseIcon, DesignSystemContext, DesignSystemProvider, DownloadIcon, DragIcon, Dropdown, DropdownMenu, DuboisDatePicker, ErrorBorderIcon, ErrorFillIcon, ExpandLessIcon, ExpandMoreIcon, ExperimentIcon, FeatureStoreIcon, FileCodeIcon, FileDocumentIcon, FileIcon, FileImageIcon, FileModelIcon, FilterIcon, Folder1Icon, FolderIcon, ForkIcon, Form, FormDubois, FullscreenExitIcon, FullscreenIcon, Gear1Icon, GearIcon, GridDashIcon, GridIcon, H1Icon, H2Icon, H3Icon, Header$1 as Header, HistoryIcon, HomeIcon, Icon, ImageIcon, IndentDecreaseIcon, IndentIncreaseIcon, InfinityIcon, InfoBorderIcon, InfoFillIcon, Input, KeyboardIcon, LayerIcon, Layout, LegacyDatePicker, LifesaverIcon, LightningIcon, LinkIcon, LinkRemoveIcon, ListBorderIcon, ListIcon, LoadingIcon, LockBorderIcon, LockFillIcon, LockUnlockedIcon, MIcon, Menu, MinusBoxIcon, MinusCircleBorderIcon, MinusCircleFillIcon, Modal, ModelsIcon, NewWindowIcon, NoIcon, NotebookIcon, NotificationIcon, NotificationsIcon, OfficeIcon, OptGroup, Option, OverflowIcon, PageBottomIcon, PageFirstIcon, PageLastIcon, PageTopIcon, PageWrapper, Pagination, PencilIcon, PinBorderIcon, PinCancelIcon, PinFillIcon, PinXIcon, PlayCircleBorderIcon, PlayCircleFillIcon, PlayIcon, PlusCircleBorderIcon, PlusCircleFillIcon, PlusIcon, PlusSquareIcon, Popover, QueryEditorIcon, QueryIcon, QueryListViewIcon, QueryNavIcon, QuestionMarkBorderIcon, QuestionMarkFillIcon, ROW_GUTTER_SIZE, Radio, ReaderModeIcon, ReposIcon, Row, SchoolIcon, Search1Icon, SearchIcon, SecurityIcon, SegmentedControlButton, SegmentedControlGroup, Select, ShareIcon, SidebarAutoIcon, SidebarCollapseIcon, SidebarExpandIcon, SidebarIcon, Skeleton, Space, Spacer, SpeechBubbleIcon, SpeechBubblePlusIcon, Spinner, SplitButton, StarBorderIcon, StarFillIcon, StopCircleBorderIcon, StopCricleFillIcon, StopIcon, StreamIcon, Switch, SyncIcon, TabPane, Table, TableIcon, Tabs, Tag, Tooltip, TrashIcon, Tree, TreeIcon, Typography, UploadIcon, UsbIcon, UserBadgeIcon, UserCircleIcon, UserGroupIcon, UserIcon, VideosIcon, Visible, VisibleOff, WarningBorderIcon, WarningFillIcon, WithDesignSystemThemeHoc, XCircleBorderIcon, XCircleFillIcon, ZoomInIcon, ZoomOutIcon, __INTERNAL_DO_NOT_USE__FormItem, __INTERNAL_DO_NOT_USE__Group, __INTERNAL_DO_NOT_USE__HorizontalGroup, __INTERNAL_DO_NOT_USE__Password, __INTERNAL_DO_NOT_USE__TextArea, __INTERNAL_DO_NOT_USE__VerticalGroup, getAnimationCss, getButtonEmotionStyles, getPaginationEmotionStyles, getTabEmotionStyles, useDesignSystemFlags, useDesignSystemTheme, useNotification, useThemedStyles };
|
|
58216
58381
|
//# sourceMappingURL=index.js.map
|