@databricks/design-system 1.12.0 → 1.12.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/DialogCombobox/DialogComboboxContent.d.ts +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxContent.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxLoadingSpinner.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionControlledList.d.ts +1 -0
- package/dist/design-system/DialogCombobox/DialogComboboxOptionControlledList.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionList.d.ts +1 -2
- package/dist/design-system/DialogCombobox/DialogComboboxOptionList.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts.map +1 -1
- package/dist/design-system/Spacer/Spacer.d.ts +2 -0
- package/dist/design-system/Spacer/Spacer.d.ts.map +1 -1
- package/dist/design-system/TableUI/index.d.ts +24 -11
- package/dist/design-system/TableUI/index.d.ts.map +1 -1
- package/dist/design-system/ToggleButton/ToggleButton.d.ts.map +1 -1
- package/dist/index.js +534 -471
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { ThemeProvider, css, keyframes, ClassNames } from '@emotion/react';
|
|
|
5
5
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
6
6
|
import { g as getTheme, a as getClassNamePrefix, b as getPrefixedClassNameFromTheme, u as useDesignSystemTheme, l as lightColorList } from './useDesignSystemTheme-6e6f5867.js';
|
|
7
7
|
export { W as WithDesignSystemThemeHoc, u as useDesignSystemTheme } from './useDesignSystemTheme-6e6f5867.js';
|
|
8
|
-
import { notification, ConfigProvider, Collapse, Alert as Alert$1, AutoComplete as AutoComplete$1, Breadcrumb as Breadcrumb$1, Button as Button$1, Checkbox as Checkbox$1, DatePicker,
|
|
8
|
+
import { notification, ConfigProvider, Collapse, Alert as Alert$1, AutoComplete as AutoComplete$1, Breadcrumb as Breadcrumb$1, Button as Button$1, Checkbox as Checkbox$1, DatePicker, Input as Input$1, Tooltip as Tooltip$1, Typography as Typography$1, 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, Popover as Popover$2, Skeleton as Skeleton$1, Switch as Switch$1, Tabs as Tabs$1, Tree as Tree$1 } from 'antd';
|
|
9
9
|
import classnames from 'classnames';
|
|
10
10
|
import _isNil from 'lodash/isNil';
|
|
11
11
|
import _endsWith from 'lodash/endsWith';
|
|
@@ -9708,6 +9708,56 @@ const DialogComboboxButtonContainer = _ref => {
|
|
|
9708
9708
|
});
|
|
9709
9709
|
};
|
|
9710
9710
|
|
|
9711
|
+
const rotate = keyframes({
|
|
9712
|
+
'0%': {
|
|
9713
|
+
transform: 'rotate(0deg) translate3d(0, 0, 0)'
|
|
9714
|
+
},
|
|
9715
|
+
'100%': {
|
|
9716
|
+
transform: 'rotate(360deg) translate3d(0, 0, 0)'
|
|
9717
|
+
}
|
|
9718
|
+
});
|
|
9719
|
+
const cssSpinner = function (theme) {
|
|
9720
|
+
let frameRate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 60;
|
|
9721
|
+
let delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
9722
|
+
const styles = {
|
|
9723
|
+
animation: `${rotate} 1s steps(${frameRate}, end) infinite`,
|
|
9724
|
+
color: theme.colors.textSecondary,
|
|
9725
|
+
animationDelay: `${delay}s`
|
|
9726
|
+
};
|
|
9727
|
+
return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:cssSpinner;");
|
|
9728
|
+
};
|
|
9729
|
+
const Spinner = _ref => {
|
|
9730
|
+
let {
|
|
9731
|
+
frameRate,
|
|
9732
|
+
size = 'default',
|
|
9733
|
+
delay,
|
|
9734
|
+
className: propClass,
|
|
9735
|
+
...props
|
|
9736
|
+
} = _ref;
|
|
9737
|
+
const {
|
|
9738
|
+
classNamePrefix,
|
|
9739
|
+
theme
|
|
9740
|
+
} = useDesignSystemTheme();
|
|
9741
|
+
|
|
9742
|
+
// We use Antd classes to keep styling unchanged
|
|
9743
|
+
// TODO(FEINF-1407): We want to move away from Antd classes and use Emotion for styling in the future
|
|
9744
|
+
const sizeSuffix = size === 'small' ? '-sm' : size === 'large' ? '-lg' : '';
|
|
9745
|
+
const sizeClass = sizeSuffix ? `${classNamePrefix}-spin${sizeSuffix}` : '';
|
|
9746
|
+
const wrapperClass = `${propClass || ''} ${classNamePrefix}-spin ${sizeClass} ${classNamePrefix}-spin-spinning ${DU_BOIS_ENABLE_ANIMATION_CLASSNAME}`.trim();
|
|
9747
|
+
const className = `${classNamePrefix}-spin-dot ${DU_BOIS_ENABLE_ANIMATION_CLASSNAME}`.trim();
|
|
9748
|
+
return (
|
|
9749
|
+
// className has to follow {...props}, otherwise is `css` prop is passed down it will overwrite our className
|
|
9750
|
+
jsx("div", {
|
|
9751
|
+
...props,
|
|
9752
|
+
className: wrapperClass,
|
|
9753
|
+
children: jsx(LoadingIcon, {
|
|
9754
|
+
css: cssSpinner(theme, frameRate, delay),
|
|
9755
|
+
className: className
|
|
9756
|
+
})
|
|
9757
|
+
})
|
|
9758
|
+
);
|
|
9759
|
+
};
|
|
9760
|
+
|
|
9711
9761
|
const DialogComboboxLoadingSpinner = props => {
|
|
9712
9762
|
const {
|
|
9713
9763
|
theme
|
|
@@ -9930,6 +9980,223 @@ const DialogComboboxOptionListCheckboxItem = /*#__PURE__*/forwardRef((_ref, ref)
|
|
|
9930
9980
|
});
|
|
9931
9981
|
});
|
|
9932
9982
|
|
|
9983
|
+
const getInputEmotionStyles = (clsPrefix, theme, _ref, useNewIcons, useTransparent) => {
|
|
9984
|
+
let {
|
|
9985
|
+
validationState
|
|
9986
|
+
} = _ref;
|
|
9987
|
+
const inputClass = `.${clsPrefix}-input`;
|
|
9988
|
+
const affixClass = `.${clsPrefix}-input-affix-wrapper`;
|
|
9989
|
+
const affixClassFocused = `.${clsPrefix}-input-affix-wrapper-focused`;
|
|
9990
|
+
const clearIcon = `.${clsPrefix}-input-clear-icon`;
|
|
9991
|
+
const prefixIcon = `.${clsPrefix}-input-prefix`;
|
|
9992
|
+
const suffixIcon = `.${clsPrefix}-input-suffix`;
|
|
9993
|
+
const validationColor = getValidationStateColor(theme, validationState);
|
|
9994
|
+
const styles = {
|
|
9995
|
+
'&&': {
|
|
9996
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
9997
|
+
minHeight: theme.general.heightSm,
|
|
9998
|
+
...(validationState && {
|
|
9999
|
+
borderColor: validationColor
|
|
10000
|
+
}),
|
|
10001
|
+
'&:hover': {
|
|
10002
|
+
borderColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundHover
|
|
10003
|
+
},
|
|
10004
|
+
'&:focus': {
|
|
10005
|
+
outlineColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundDefault,
|
|
10006
|
+
outlineWidth: 2,
|
|
10007
|
+
outlineOffset: -2,
|
|
10008
|
+
outlineStyle: 'solid',
|
|
10009
|
+
boxShadow: 'none',
|
|
10010
|
+
borderColor: 'transparent'
|
|
10011
|
+
},
|
|
10012
|
+
'&:disabled': {
|
|
10013
|
+
backgroundColor: theme.colors.actionDisabledBackground,
|
|
10014
|
+
color: theme.colors.actionDisabledText
|
|
10015
|
+
}
|
|
10016
|
+
},
|
|
10017
|
+
[`&${inputClass}, ${inputClass}`]: {
|
|
10018
|
+
...(useTransparent && {
|
|
10019
|
+
backgroundColor: 'transparent'
|
|
10020
|
+
})
|
|
10021
|
+
},
|
|
10022
|
+
[`&${affixClass}`]: {
|
|
10023
|
+
...(useTransparent && {
|
|
10024
|
+
backgroundColor: 'transparent'
|
|
10025
|
+
}),
|
|
10026
|
+
lineHeight: theme.typography.lineHeightBase,
|
|
10027
|
+
paddingTop: 5,
|
|
10028
|
+
paddingBottom: 5,
|
|
10029
|
+
minHeight: theme.general.heightSm,
|
|
10030
|
+
'::before': {
|
|
10031
|
+
lineHeight: theme.typography.lineHeightBase
|
|
10032
|
+
},
|
|
10033
|
+
'&:hover': {
|
|
10034
|
+
borderColor: theme.colors.actionPrimaryBackgroundHover
|
|
10035
|
+
},
|
|
10036
|
+
[`input.${clsPrefix}-input`]: {
|
|
10037
|
+
borderRadius: 0
|
|
10038
|
+
}
|
|
10039
|
+
},
|
|
10040
|
+
[`&${affixClassFocused}`]: {
|
|
10041
|
+
boxShadow: 'none',
|
|
10042
|
+
'&&, &:focus': {
|
|
10043
|
+
outlineColor: theme.colors.actionPrimaryBackgroundDefault,
|
|
10044
|
+
outlineWidth: 2,
|
|
10045
|
+
outlineOffset: -2,
|
|
10046
|
+
outlineStyle: 'solid',
|
|
10047
|
+
boxShadow: 'none',
|
|
10048
|
+
borderColor: 'transparent'
|
|
10049
|
+
}
|
|
10050
|
+
},
|
|
10051
|
+
...(useNewIcons && {
|
|
10052
|
+
[clearIcon]: {
|
|
10053
|
+
fontSize: theme.general.iconFontSizeNew
|
|
10054
|
+
},
|
|
10055
|
+
[prefixIcon]: {
|
|
10056
|
+
marginRight: theme.spacing.sm
|
|
10057
|
+
},
|
|
10058
|
+
[suffixIcon]: {
|
|
10059
|
+
marginLeft: theme.spacing.sm
|
|
10060
|
+
}
|
|
10061
|
+
}),
|
|
10062
|
+
...getAnimationCss(theme.options.enableAnimation)
|
|
10063
|
+
};
|
|
10064
|
+
return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:getInputEmotionStyles;");
|
|
10065
|
+
};
|
|
10066
|
+
const getInputGroupStyling = clsPrefix => {
|
|
10067
|
+
const inputClass = `.${clsPrefix}-input`;
|
|
10068
|
+
const buttonClass = `.${clsPrefix}-btn`;
|
|
10069
|
+
return /*#__PURE__*/css({
|
|
10070
|
+
[`& > ${inputClass}`]: {
|
|
10071
|
+
'&:disabled': {
|
|
10072
|
+
border: 'none'
|
|
10073
|
+
}
|
|
10074
|
+
},
|
|
10075
|
+
[`& > ${buttonClass} > span`]: {
|
|
10076
|
+
verticalAlign: 'middle'
|
|
10077
|
+
}
|
|
10078
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:getInputGroupStyling;");
|
|
10079
|
+
};
|
|
10080
|
+
const TextArea = /*#__PURE__*/forwardRef(function TextArea(_ref2, ref) {
|
|
10081
|
+
let {
|
|
10082
|
+
validationState,
|
|
10083
|
+
autoComplete = 'off',
|
|
10084
|
+
dangerouslySetAntdProps,
|
|
10085
|
+
dangerouslyAppendEmotionCSS,
|
|
10086
|
+
...props
|
|
10087
|
+
} = _ref2;
|
|
10088
|
+
const {
|
|
10089
|
+
classNamePrefix,
|
|
10090
|
+
theme
|
|
10091
|
+
} = useDesignSystemTheme();
|
|
10092
|
+
const {
|
|
10093
|
+
USE_NEW_ICONS: useNewIcons,
|
|
10094
|
+
USE_TRANSPARENT_INPUT: useTransparent
|
|
10095
|
+
} = useDesignSystemFlags();
|
|
10096
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
10097
|
+
children: jsx(Input$1.TextArea, {
|
|
10098
|
+
ref: ref,
|
|
10099
|
+
autoComplete: autoComplete,
|
|
10100
|
+
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
10101
|
+
validationState
|
|
10102
|
+
}, useNewIcons, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:TextArea;"],
|
|
10103
|
+
...props,
|
|
10104
|
+
...dangerouslySetAntdProps
|
|
10105
|
+
})
|
|
10106
|
+
});
|
|
10107
|
+
});
|
|
10108
|
+
const Password = /*#__PURE__*/forwardRef(function Password(_ref3, ref) {
|
|
10109
|
+
let {
|
|
10110
|
+
validationState,
|
|
10111
|
+
autoComplete = 'off',
|
|
10112
|
+
dangerouslySetAntdProps,
|
|
10113
|
+
dangerouslyAppendEmotionCSS,
|
|
10114
|
+
...props
|
|
10115
|
+
} = _ref3;
|
|
10116
|
+
const {
|
|
10117
|
+
classNamePrefix,
|
|
10118
|
+
theme
|
|
10119
|
+
} = useDesignSystemTheme();
|
|
10120
|
+
const {
|
|
10121
|
+
USE_NEW_ICONS: useNewIcons,
|
|
10122
|
+
USE_TRANSPARENT_INPUT: useTransparent
|
|
10123
|
+
} = useDesignSystemFlags();
|
|
10124
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
10125
|
+
children: jsx(Input$1.Password, {
|
|
10126
|
+
visibilityToggle: false,
|
|
10127
|
+
ref: ref,
|
|
10128
|
+
autoComplete: autoComplete,
|
|
10129
|
+
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
10130
|
+
validationState
|
|
10131
|
+
}, useNewIcons, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Password;"],
|
|
10132
|
+
...props,
|
|
10133
|
+
...dangerouslySetAntdProps
|
|
10134
|
+
})
|
|
10135
|
+
});
|
|
10136
|
+
});
|
|
10137
|
+
const DuboisInput = /*#__PURE__*/forwardRef(function Input(_ref4, ref) {
|
|
10138
|
+
let {
|
|
10139
|
+
validationState,
|
|
10140
|
+
autoComplete = 'off',
|
|
10141
|
+
dangerouslySetAntdProps,
|
|
10142
|
+
dangerouslyAppendEmotionCSS,
|
|
10143
|
+
...props
|
|
10144
|
+
} = _ref4;
|
|
10145
|
+
const {
|
|
10146
|
+
classNamePrefix,
|
|
10147
|
+
theme
|
|
10148
|
+
} = useDesignSystemTheme();
|
|
10149
|
+
const {
|
|
10150
|
+
USE_NEW_ICONS: useNewIcons,
|
|
10151
|
+
USE_TRANSPARENT_INPUT: useTransparent
|
|
10152
|
+
} = useDesignSystemFlags();
|
|
10153
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
10154
|
+
children: jsx(Input$1, {
|
|
10155
|
+
autoComplete: autoComplete,
|
|
10156
|
+
ref: ref,
|
|
10157
|
+
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
10158
|
+
validationState
|
|
10159
|
+
}, useNewIcons, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:DuboisInput;"],
|
|
10160
|
+
...props,
|
|
10161
|
+
...dangerouslySetAntdProps
|
|
10162
|
+
})
|
|
10163
|
+
});
|
|
10164
|
+
});
|
|
10165
|
+
const Group$2 = _ref5 => {
|
|
10166
|
+
let {
|
|
10167
|
+
dangerouslySetAntdProps,
|
|
10168
|
+
dangerouslyAppendEmotionCSS,
|
|
10169
|
+
compact = true,
|
|
10170
|
+
...props
|
|
10171
|
+
} = _ref5;
|
|
10172
|
+
const {
|
|
10173
|
+
classNamePrefix
|
|
10174
|
+
} = useDesignSystemTheme();
|
|
10175
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
10176
|
+
children: jsx(Input$1.Group, {
|
|
10177
|
+
css: [getInputGroupStyling(classNamePrefix), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Group;"],
|
|
10178
|
+
compact: compact,
|
|
10179
|
+
...props,
|
|
10180
|
+
...dangerouslySetAntdProps
|
|
10181
|
+
})
|
|
10182
|
+
});
|
|
10183
|
+
};
|
|
10184
|
+
|
|
10185
|
+
// Properly creates the namespace and dot-notation components with correct types.
|
|
10186
|
+
const InputNamespace = /* #__PURE__ */Object.assign(DuboisInput, {
|
|
10187
|
+
TextArea,
|
|
10188
|
+
Password,
|
|
10189
|
+
Group: Group$2
|
|
10190
|
+
});
|
|
10191
|
+
const Input = InputNamespace;
|
|
10192
|
+
|
|
10193
|
+
// TODO: I'm doing this to support storybook's docgen;
|
|
10194
|
+
// We should remove this once we have a better storybook integration,
|
|
10195
|
+
// since these will be exposed in the library's exports.
|
|
10196
|
+
const __INTERNAL_DO_NOT_USE__TextArea = TextArea;
|
|
10197
|
+
const __INTERNAL_DO_NOT_USE__Password = Password;
|
|
10198
|
+
const __INTERNAL_DO_NOT_USE_DEDUPE__Group = Group$2;
|
|
10199
|
+
|
|
9933
10200
|
const filterChildren = (children, searchValue) => {
|
|
9934
10201
|
var _React$Children$map;
|
|
9935
10202
|
return (_React$Children$map = React__default.Children.map(children, child => {
|
|
@@ -10203,23 +10470,16 @@ var _ref2$2 = process.env.NODE_ENV === "production" ? {
|
|
|
10203
10470
|
const DialogComboboxOptionList = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
|
|
10204
10471
|
let {
|
|
10205
10472
|
children,
|
|
10206
|
-
onChange,
|
|
10207
10473
|
loading,
|
|
10208
10474
|
withProgressiveLoading,
|
|
10209
10475
|
...restProps
|
|
10210
10476
|
} = _ref;
|
|
10211
10477
|
const {
|
|
10212
|
-
isInsideDialogCombobox
|
|
10213
|
-
value
|
|
10478
|
+
isInsideDialogCombobox
|
|
10214
10479
|
} = useDialogComboboxContext();
|
|
10215
10480
|
if (!isInsideDialogCombobox) {
|
|
10216
10481
|
throw new Error('`DialogComboboxOptionList` must be used within `DialogCombobox`');
|
|
10217
10482
|
}
|
|
10218
|
-
useEffect(() => {
|
|
10219
|
-
if (onChange) {
|
|
10220
|
-
onChange(value);
|
|
10221
|
-
}
|
|
10222
|
-
}, [value, onChange]);
|
|
10223
10483
|
return jsx("div", {
|
|
10224
10484
|
ref: forwardedRef,
|
|
10225
10485
|
"aria-busy": loading,
|
|
@@ -10296,6 +10556,61 @@ const DialogComboboxSeparator = props => {
|
|
|
10296
10556
|
});
|
|
10297
10557
|
};
|
|
10298
10558
|
|
|
10559
|
+
const Tooltip = _ref => {
|
|
10560
|
+
let {
|
|
10561
|
+
children,
|
|
10562
|
+
title,
|
|
10563
|
+
placement = 'top',
|
|
10564
|
+
dataTestId,
|
|
10565
|
+
dangerouslySetAntdProps,
|
|
10566
|
+
...props
|
|
10567
|
+
} = _ref;
|
|
10568
|
+
const {
|
|
10569
|
+
theme
|
|
10570
|
+
} = useDesignSystemTheme();
|
|
10571
|
+
if (!title) {
|
|
10572
|
+
return jsx(React__default.Fragment, {
|
|
10573
|
+
children: children
|
|
10574
|
+
});
|
|
10575
|
+
}
|
|
10576
|
+
const {
|
|
10577
|
+
overlayInnerStyle,
|
|
10578
|
+
overlayStyle,
|
|
10579
|
+
...delegatedDangerouslySetAntdProps
|
|
10580
|
+
} = dangerouslySetAntdProps || {};
|
|
10581
|
+
return jsx(DesignSystemAntDConfigProvider, {
|
|
10582
|
+
children: jsx(Tooltip$1
|
|
10583
|
+
// eslint-disable-next-line react/forbid-dom-props -- FEINF-1337 - this should turn into data-testid
|
|
10584
|
+
, {
|
|
10585
|
+
title: jsx("span", {
|
|
10586
|
+
"data-test-id": dataTestId,
|
|
10587
|
+
children: title
|
|
10588
|
+
}),
|
|
10589
|
+
placement: placement
|
|
10590
|
+
// Always trigger on hover and focus
|
|
10591
|
+
,
|
|
10592
|
+
trigger: ['hover', 'focus'],
|
|
10593
|
+
overlayInnerStyle: {
|
|
10594
|
+
backgroundColor: '#2F3941',
|
|
10595
|
+
lineHeight: '22px',
|
|
10596
|
+
padding: '4px 8px',
|
|
10597
|
+
boxShadow: theme.general.shadowLow,
|
|
10598
|
+
...overlayInnerStyle
|
|
10599
|
+
},
|
|
10600
|
+
overlayStyle: {
|
|
10601
|
+
zIndex: theme.options.zIndexBase + 70,
|
|
10602
|
+
...overlayStyle
|
|
10603
|
+
},
|
|
10604
|
+
css: /*#__PURE__*/css({
|
|
10605
|
+
...getAnimationCss(theme.options.enableAnimation)
|
|
10606
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Tooltip;"),
|
|
10607
|
+
...delegatedDangerouslySetAntdProps,
|
|
10608
|
+
...props,
|
|
10609
|
+
children: children
|
|
10610
|
+
})
|
|
10611
|
+
});
|
|
10612
|
+
};
|
|
10613
|
+
|
|
10299
10614
|
const getTriggerWrapperStyles = removable => /*#__PURE__*/css(importantify({
|
|
10300
10615
|
display: 'inline-flex',
|
|
10301
10616
|
alignItems: 'center',
|
|
@@ -10354,7 +10669,7 @@ const DialogComboboxTrigger = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
|
|
|
10354
10669
|
onRemove,
|
|
10355
10670
|
children,
|
|
10356
10671
|
maxWidth = 9999,
|
|
10357
|
-
withCountBadge,
|
|
10672
|
+
withCountBadge = true,
|
|
10358
10673
|
showBadgeAfterValueCount = 3,
|
|
10359
10674
|
allowClear = true,
|
|
10360
10675
|
controlled,
|
|
@@ -10436,10 +10751,10 @@ const DialogComboboxTrigger = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
|
|
|
10436
10751
|
fontWeight: theme.typography.typographyBoldFontWeight
|
|
10437
10752
|
}, process.env.NODE_ENV === "production" ? "" : ";label:triggerContent;"),
|
|
10438
10753
|
children: label
|
|
10439
|
-
}), withCountBadge
|
|
10754
|
+
}), withCountBadge && (value === null || value === void 0 ? void 0 : value.length) > showBadgeAfterValueCount ? jsx(DialogComboboxCountBadge, {
|
|
10440
10755
|
role: "status",
|
|
10441
10756
|
"aria-label": "Dialog combobox options selected count"
|
|
10442
|
-
}) : displayedValues]
|
|
10757
|
+
}) : withCountBadge ? displayedValues : null]
|
|
10443
10758
|
}), allowClear && value !== null && value !== void 0 && value.length ? jsx(XCircleFillIcon, {
|
|
10444
10759
|
onClick: handleClear,
|
|
10445
10760
|
css: /*#__PURE__*/css({
|
|
@@ -10476,6 +10791,7 @@ const DialogComboboxTrigger = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
|
|
|
10476
10791
|
const Spacer = _ref => {
|
|
10477
10792
|
let {
|
|
10478
10793
|
size = 'md',
|
|
10794
|
+
shrinks,
|
|
10479
10795
|
...props
|
|
10480
10796
|
} = _ref;
|
|
10481
10797
|
const {
|
|
@@ -10489,7 +10805,10 @@ const Spacer = _ref => {
|
|
|
10489
10805
|
};
|
|
10490
10806
|
return jsx("div", {
|
|
10491
10807
|
css: /*#__PURE__*/css({
|
|
10492
|
-
height: spacingValues[size]
|
|
10808
|
+
height: spacingValues[size],
|
|
10809
|
+
...(shrinks === false ? {
|
|
10810
|
+
flexShrink: 0
|
|
10811
|
+
} : undefined)
|
|
10493
10812
|
}, process.env.NODE_ENV === "production" ? "" : ";label:Spacer;"),
|
|
10494
10813
|
...props
|
|
10495
10814
|
});
|
|
@@ -11048,71 +11367,16 @@ const Dropdown = _ref => {
|
|
|
11048
11367
|
} = _ref;
|
|
11049
11368
|
const {
|
|
11050
11369
|
theme
|
|
11051
|
-
} = useDesignSystemTheme();
|
|
11052
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
11053
|
-
children: jsx(Dropdown$1, {
|
|
11054
|
-
mouseLeaveDelay: 0.25,
|
|
11055
|
-
...props,
|
|
11056
|
-
overlayStyle: {
|
|
11057
|
-
zIndex: theme.options.zIndexBase + 50,
|
|
11058
|
-
...props.overlayStyle
|
|
11059
|
-
},
|
|
11060
|
-
...dangerouslySetAntdProps
|
|
11061
|
-
})
|
|
11062
|
-
});
|
|
11063
|
-
};
|
|
11064
|
-
|
|
11065
|
-
const Tooltip = _ref => {
|
|
11066
|
-
let {
|
|
11067
|
-
children,
|
|
11068
|
-
title,
|
|
11069
|
-
placement = 'top',
|
|
11070
|
-
dataTestId,
|
|
11071
|
-
dangerouslySetAntdProps,
|
|
11072
|
-
...props
|
|
11073
|
-
} = _ref;
|
|
11074
|
-
const {
|
|
11075
|
-
theme
|
|
11076
|
-
} = useDesignSystemTheme();
|
|
11077
|
-
if (!title) {
|
|
11078
|
-
return jsx(React__default.Fragment, {
|
|
11079
|
-
children: children
|
|
11080
|
-
});
|
|
11081
|
-
}
|
|
11082
|
-
const {
|
|
11083
|
-
overlayInnerStyle,
|
|
11084
|
-
overlayStyle,
|
|
11085
|
-
...delegatedDangerouslySetAntdProps
|
|
11086
|
-
} = dangerouslySetAntdProps || {};
|
|
11370
|
+
} = useDesignSystemTheme();
|
|
11087
11371
|
return jsx(DesignSystemAntDConfigProvider, {
|
|
11088
|
-
children: jsx(
|
|
11089
|
-
|
|
11090
|
-
|
|
11091
|
-
title: jsx("span", {
|
|
11092
|
-
"data-test-id": dataTestId,
|
|
11093
|
-
children: title
|
|
11094
|
-
}),
|
|
11095
|
-
placement: placement
|
|
11096
|
-
// Always trigger on hover and focus
|
|
11097
|
-
,
|
|
11098
|
-
trigger: ['hover', 'focus'],
|
|
11099
|
-
overlayInnerStyle: {
|
|
11100
|
-
backgroundColor: '#2F3941',
|
|
11101
|
-
lineHeight: '22px',
|
|
11102
|
-
padding: '4px 8px',
|
|
11103
|
-
boxShadow: theme.general.shadowLow,
|
|
11104
|
-
...overlayInnerStyle
|
|
11105
|
-
},
|
|
11372
|
+
children: jsx(Dropdown$1, {
|
|
11373
|
+
mouseLeaveDelay: 0.25,
|
|
11374
|
+
...props,
|
|
11106
11375
|
overlayStyle: {
|
|
11107
|
-
zIndex: theme.options.zIndexBase +
|
|
11108
|
-
...overlayStyle
|
|
11376
|
+
zIndex: theme.options.zIndexBase + 50,
|
|
11377
|
+
...props.overlayStyle
|
|
11109
11378
|
},
|
|
11110
|
-
|
|
11111
|
-
...getAnimationCss(theme.options.enableAnimation)
|
|
11112
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:Tooltip;"),
|
|
11113
|
-
...delegatedDangerouslySetAntdProps,
|
|
11114
|
-
...props,
|
|
11115
|
-
children: children
|
|
11379
|
+
...dangerouslySetAntdProps
|
|
11116
11380
|
})
|
|
11117
11381
|
});
|
|
11118
11382
|
};
|
|
@@ -11349,7 +11613,7 @@ const RadioItem = /*#__PURE__*/forwardRef(function RadioItem(_ref11, ref) {
|
|
|
11349
11613
|
});
|
|
11350
11614
|
|
|
11351
11615
|
// UNWRAPPED RADIX-UI-COMPONENTS
|
|
11352
|
-
const Group$
|
|
11616
|
+
const Group$1 = DropdownMenu$1.Group;
|
|
11353
11617
|
const RadioGroup = DropdownMenu$1.RadioGroup;
|
|
11354
11618
|
const Sub = DropdownMenu$1.Sub;
|
|
11355
11619
|
|
|
@@ -11552,7 +11816,7 @@ var DropdownMenu = /*#__PURE__*/Object.freeze({
|
|
|
11552
11816
|
ItemIndicator: ItemIndicator,
|
|
11553
11817
|
Arrow: Arrow$1,
|
|
11554
11818
|
RadioItem: RadioItem,
|
|
11555
|
-
Group: Group$
|
|
11819
|
+
Group: Group$1,
|
|
11556
11820
|
RadioGroup: RadioGroup,
|
|
11557
11821
|
Sub: Sub,
|
|
11558
11822
|
HintColumn: HintColumn,
|
|
@@ -11764,313 +12028,96 @@ const getMessageStyles = (clsPrefix, theme) => {
|
|
|
11764
12028
|
};
|
|
11765
12029
|
const VALIDATION_STATE_ICONS = {
|
|
11766
12030
|
error: DangerIcon,
|
|
11767
|
-
success: CheckCircleIcon,
|
|
11768
|
-
warning: WarningIcon
|
|
11769
|
-
};
|
|
11770
|
-
function FormMessage(_ref) {
|
|
11771
|
-
let {
|
|
11772
|
-
message,
|
|
11773
|
-
type = 'error',
|
|
11774
|
-
className = '',
|
|
11775
|
-
css
|
|
11776
|
-
} = _ref;
|
|
11777
|
-
const {
|
|
11778
|
-
classNamePrefix,
|
|
11779
|
-
theme
|
|
11780
|
-
} = useDesignSystemTheme();
|
|
11781
|
-
const stateClass = `${classNamePrefix}-form-${type}-message`;
|
|
11782
|
-
const StateIcon = VALIDATION_STATE_ICONS[type];
|
|
11783
|
-
const wrapperClass = `${classNamePrefix}-form-message ${className} ${stateClass}`.trim();
|
|
11784
|
-
return jsxs("div", {
|
|
11785
|
-
className: wrapperClass,
|
|
11786
|
-
css: [getMessageStyles(classNamePrefix, theme), css, process.env.NODE_ENV === "production" ? "" : ";label:FormMessage;"],
|
|
11787
|
-
children: [jsx(StateIcon, {}), "\xA0", message]
|
|
11788
|
-
});
|
|
11789
|
-
}
|
|
11790
|
-
|
|
11791
|
-
const getHintStyles = (classNamePrefix, theme) => {
|
|
11792
|
-
const styles = {
|
|
11793
|
-
display: 'block',
|
|
11794
|
-
color: theme.colors.textSecondary,
|
|
11795
|
-
lineHeight: theme.typography.lineHeightSm,
|
|
11796
|
-
fontSize: theme.typography.fontSizeSm,
|
|
11797
|
-
[`&& + .${classNamePrefix}-input, && + .${classNamePrefix}-select, && + .${classNamePrefix}-checkbox-group, && + .${classNamePrefix}-radio-group`]: {
|
|
11798
|
-
marginTop: theme.spacing.sm
|
|
11799
|
-
}
|
|
11800
|
-
};
|
|
11801
|
-
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getHintStyles;");
|
|
11802
|
-
};
|
|
11803
|
-
const Hint = props => {
|
|
11804
|
-
const {
|
|
11805
|
-
classNamePrefix,
|
|
11806
|
-
theme
|
|
11807
|
-
} = useDesignSystemTheme();
|
|
11808
|
-
const {
|
|
11809
|
-
className,
|
|
11810
|
-
...restProps
|
|
11811
|
-
} = props;
|
|
11812
|
-
return jsx("span", {
|
|
11813
|
-
className: classnames(`${classNamePrefix}-hint`, className),
|
|
11814
|
-
css: getHintStyles(classNamePrefix, theme),
|
|
11815
|
-
...restProps
|
|
11816
|
-
});
|
|
11817
|
-
};
|
|
11818
|
-
|
|
11819
|
-
const getLabelStyles = (classNamePrefix, theme, _ref) => {
|
|
11820
|
-
let {
|
|
11821
|
-
inline
|
|
11822
|
-
} = _ref;
|
|
11823
|
-
const styles = {
|
|
11824
|
-
'&&': {
|
|
11825
|
-
color: theme.colors.textPrimary,
|
|
11826
|
-
fontWeight: theme.typography.typographyBoldFontWeight,
|
|
11827
|
-
display: inline ? 'inline' : 'block',
|
|
11828
|
-
lineHeight: theme.typography.lineHeightBase
|
|
11829
|
-
},
|
|
11830
|
-
[`&& + .${classNamePrefix}-input, && + .${classNamePrefix}-select, && + .${classNamePrefix}-checkbox-group, && + .${classNamePrefix}-radio-group`]: {
|
|
11831
|
-
marginTop: theme.spacing.sm
|
|
11832
|
-
}
|
|
11833
|
-
};
|
|
11834
|
-
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getLabelStyles;");
|
|
11835
|
-
};
|
|
11836
|
-
const Label = props => {
|
|
11837
|
-
const {
|
|
11838
|
-
children,
|
|
11839
|
-
className,
|
|
11840
|
-
inline,
|
|
11841
|
-
...restProps
|
|
11842
|
-
} = props;
|
|
11843
|
-
const {
|
|
11844
|
-
classNamePrefix,
|
|
11845
|
-
theme
|
|
11846
|
-
} = useDesignSystemTheme();
|
|
11847
|
-
return jsx("label", {
|
|
11848
|
-
css: getLabelStyles(classNamePrefix, theme, {
|
|
11849
|
-
inline
|
|
11850
|
-
}),
|
|
11851
|
-
className: classnames(`${classNamePrefix}-label`, className),
|
|
11852
|
-
...restProps,
|
|
11853
|
-
children: children
|
|
11854
|
-
});
|
|
11855
|
-
};
|
|
11856
|
-
|
|
11857
|
-
const getInputEmotionStyles = (clsPrefix, theme, _ref, useNewIcons, useTransparent) => {
|
|
11858
|
-
let {
|
|
11859
|
-
validationState
|
|
11860
|
-
} = _ref;
|
|
11861
|
-
const inputClass = `.${clsPrefix}-input`;
|
|
11862
|
-
const affixClass = `.${clsPrefix}-input-affix-wrapper`;
|
|
11863
|
-
const affixClassFocused = `.${clsPrefix}-input-affix-wrapper-focused`;
|
|
11864
|
-
const clearIcon = `.${clsPrefix}-input-clear-icon`;
|
|
11865
|
-
const prefixIcon = `.${clsPrefix}-input-prefix`;
|
|
11866
|
-
const suffixIcon = `.${clsPrefix}-input-suffix`;
|
|
11867
|
-
const validationColor = getValidationStateColor(theme, validationState);
|
|
11868
|
-
const styles = {
|
|
11869
|
-
'&&': {
|
|
11870
|
-
lineHeight: theme.typography.lineHeightBase,
|
|
11871
|
-
minHeight: theme.general.heightSm,
|
|
11872
|
-
...(validationState && {
|
|
11873
|
-
borderColor: validationColor
|
|
11874
|
-
}),
|
|
11875
|
-
'&:hover': {
|
|
11876
|
-
borderColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundHover
|
|
11877
|
-
},
|
|
11878
|
-
'&:focus': {
|
|
11879
|
-
outlineColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundDefault,
|
|
11880
|
-
outlineWidth: 2,
|
|
11881
|
-
outlineOffset: -2,
|
|
11882
|
-
outlineStyle: 'solid',
|
|
11883
|
-
boxShadow: 'none',
|
|
11884
|
-
borderColor: 'transparent'
|
|
11885
|
-
},
|
|
11886
|
-
'&:disabled': {
|
|
11887
|
-
backgroundColor: theme.colors.actionDisabledBackground,
|
|
11888
|
-
color: theme.colors.actionDisabledText
|
|
11889
|
-
}
|
|
11890
|
-
},
|
|
11891
|
-
[`&${inputClass}, ${inputClass}`]: {
|
|
11892
|
-
...(useTransparent && {
|
|
11893
|
-
backgroundColor: 'transparent'
|
|
11894
|
-
})
|
|
11895
|
-
},
|
|
11896
|
-
[`&${affixClass}`]: {
|
|
11897
|
-
...(useTransparent && {
|
|
11898
|
-
backgroundColor: 'transparent'
|
|
11899
|
-
}),
|
|
11900
|
-
lineHeight: theme.typography.lineHeightBase,
|
|
11901
|
-
paddingTop: 5,
|
|
11902
|
-
paddingBottom: 5,
|
|
11903
|
-
minHeight: theme.general.heightSm,
|
|
11904
|
-
'::before': {
|
|
11905
|
-
lineHeight: theme.typography.lineHeightBase
|
|
11906
|
-
},
|
|
11907
|
-
'&:hover': {
|
|
11908
|
-
borderColor: theme.colors.actionPrimaryBackgroundHover
|
|
11909
|
-
},
|
|
11910
|
-
[`input.${clsPrefix}-input`]: {
|
|
11911
|
-
borderRadius: 0
|
|
11912
|
-
}
|
|
11913
|
-
},
|
|
11914
|
-
[`&${affixClassFocused}`]: {
|
|
11915
|
-
boxShadow: 'none',
|
|
11916
|
-
'&&, &:focus': {
|
|
11917
|
-
outlineColor: theme.colors.actionPrimaryBackgroundDefault,
|
|
11918
|
-
outlineWidth: 2,
|
|
11919
|
-
outlineOffset: -2,
|
|
11920
|
-
outlineStyle: 'solid',
|
|
11921
|
-
boxShadow: 'none',
|
|
11922
|
-
borderColor: 'transparent'
|
|
11923
|
-
}
|
|
11924
|
-
},
|
|
11925
|
-
...(useNewIcons && {
|
|
11926
|
-
[clearIcon]: {
|
|
11927
|
-
fontSize: theme.general.iconFontSizeNew
|
|
11928
|
-
},
|
|
11929
|
-
[prefixIcon]: {
|
|
11930
|
-
marginRight: theme.spacing.sm
|
|
11931
|
-
},
|
|
11932
|
-
[suffixIcon]: {
|
|
11933
|
-
marginLeft: theme.spacing.sm
|
|
11934
|
-
}
|
|
11935
|
-
}),
|
|
11936
|
-
...getAnimationCss(theme.options.enableAnimation)
|
|
11937
|
-
};
|
|
11938
|
-
return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:getInputEmotionStyles;");
|
|
11939
|
-
};
|
|
11940
|
-
const getInputGroupStyling = clsPrefix => {
|
|
11941
|
-
const inputClass = `.${clsPrefix}-input`;
|
|
11942
|
-
const buttonClass = `.${clsPrefix}-btn`;
|
|
11943
|
-
return /*#__PURE__*/css({
|
|
11944
|
-
[`& > ${inputClass}`]: {
|
|
11945
|
-
'&:disabled': {
|
|
11946
|
-
border: 'none'
|
|
11947
|
-
}
|
|
11948
|
-
},
|
|
11949
|
-
[`& > ${buttonClass} > span`]: {
|
|
11950
|
-
verticalAlign: 'middle'
|
|
11951
|
-
}
|
|
11952
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:getInputGroupStyling;");
|
|
11953
|
-
};
|
|
11954
|
-
const TextArea = /*#__PURE__*/forwardRef(function TextArea(_ref2, ref) {
|
|
11955
|
-
let {
|
|
11956
|
-
validationState,
|
|
11957
|
-
autoComplete = 'off',
|
|
11958
|
-
dangerouslySetAntdProps,
|
|
11959
|
-
dangerouslyAppendEmotionCSS,
|
|
11960
|
-
...props
|
|
11961
|
-
} = _ref2;
|
|
11962
|
-
const {
|
|
11963
|
-
classNamePrefix,
|
|
11964
|
-
theme
|
|
11965
|
-
} = useDesignSystemTheme();
|
|
11966
|
-
const {
|
|
11967
|
-
USE_NEW_ICONS: useNewIcons,
|
|
11968
|
-
USE_TRANSPARENT_INPUT: useTransparent
|
|
11969
|
-
} = useDesignSystemFlags();
|
|
11970
|
-
return jsx(DesignSystemAntDConfigProvider, {
|
|
11971
|
-
children: jsx(Input$1.TextArea, {
|
|
11972
|
-
ref: ref,
|
|
11973
|
-
autoComplete: autoComplete,
|
|
11974
|
-
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
11975
|
-
validationState
|
|
11976
|
-
}, useNewIcons, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:TextArea;"],
|
|
11977
|
-
...props,
|
|
11978
|
-
...dangerouslySetAntdProps
|
|
11979
|
-
})
|
|
11980
|
-
});
|
|
11981
|
-
});
|
|
11982
|
-
const Password = /*#__PURE__*/forwardRef(function Password(_ref3, ref) {
|
|
11983
|
-
let {
|
|
11984
|
-
validationState,
|
|
11985
|
-
autoComplete = 'off',
|
|
11986
|
-
dangerouslySetAntdProps,
|
|
11987
|
-
dangerouslyAppendEmotionCSS,
|
|
11988
|
-
...props
|
|
11989
|
-
} = _ref3;
|
|
12031
|
+
success: CheckCircleIcon,
|
|
12032
|
+
warning: WarningIcon
|
|
12033
|
+
};
|
|
12034
|
+
function FormMessage(_ref) {
|
|
12035
|
+
let {
|
|
12036
|
+
message,
|
|
12037
|
+
type = 'error',
|
|
12038
|
+
className = '',
|
|
12039
|
+
css
|
|
12040
|
+
} = _ref;
|
|
11990
12041
|
const {
|
|
11991
12042
|
classNamePrefix,
|
|
11992
12043
|
theme
|
|
11993
12044
|
} = useDesignSystemTheme();
|
|
11994
|
-
const {
|
|
11995
|
-
|
|
11996
|
-
|
|
11997
|
-
|
|
11998
|
-
|
|
11999
|
-
|
|
12000
|
-
|
|
12001
|
-
ref: ref,
|
|
12002
|
-
autoComplete: autoComplete,
|
|
12003
|
-
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
12004
|
-
validationState
|
|
12005
|
-
}, useNewIcons, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Password;"],
|
|
12006
|
-
...props,
|
|
12007
|
-
...dangerouslySetAntdProps
|
|
12008
|
-
})
|
|
12045
|
+
const stateClass = `${classNamePrefix}-form-${type}-message`;
|
|
12046
|
+
const StateIcon = VALIDATION_STATE_ICONS[type];
|
|
12047
|
+
const wrapperClass = `${classNamePrefix}-form-message ${className} ${stateClass}`.trim();
|
|
12048
|
+
return jsxs("div", {
|
|
12049
|
+
className: wrapperClass,
|
|
12050
|
+
css: [getMessageStyles(classNamePrefix, theme), css, process.env.NODE_ENV === "production" ? "" : ";label:FormMessage;"],
|
|
12051
|
+
children: [jsx(StateIcon, {}), "\xA0", message]
|
|
12009
12052
|
});
|
|
12010
|
-
}
|
|
12011
|
-
|
|
12012
|
-
|
|
12013
|
-
|
|
12014
|
-
|
|
12015
|
-
|
|
12016
|
-
|
|
12017
|
-
|
|
12018
|
-
|
|
12053
|
+
}
|
|
12054
|
+
|
|
12055
|
+
const getHintStyles = (classNamePrefix, theme) => {
|
|
12056
|
+
const styles = {
|
|
12057
|
+
display: 'block',
|
|
12058
|
+
color: theme.colors.textSecondary,
|
|
12059
|
+
lineHeight: theme.typography.lineHeightSm,
|
|
12060
|
+
fontSize: theme.typography.fontSizeSm,
|
|
12061
|
+
[`&& + .${classNamePrefix}-input, && + .${classNamePrefix}-select, && + .${classNamePrefix}-checkbox-group, && + .${classNamePrefix}-radio-group`]: {
|
|
12062
|
+
marginTop: theme.spacing.sm
|
|
12063
|
+
}
|
|
12064
|
+
};
|
|
12065
|
+
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getHintStyles;");
|
|
12066
|
+
};
|
|
12067
|
+
const Hint = props => {
|
|
12019
12068
|
const {
|
|
12020
12069
|
classNamePrefix,
|
|
12021
12070
|
theme
|
|
12022
12071
|
} = useDesignSystemTheme();
|
|
12023
12072
|
const {
|
|
12024
|
-
|
|
12025
|
-
|
|
12026
|
-
} =
|
|
12027
|
-
return jsx(
|
|
12028
|
-
|
|
12029
|
-
|
|
12030
|
-
|
|
12031
|
-
css: [getInputEmotionStyles(classNamePrefix, theme, {
|
|
12032
|
-
validationState
|
|
12033
|
-
}, useNewIcons, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:DuboisInput;"],
|
|
12034
|
-
...props,
|
|
12035
|
-
...dangerouslySetAntdProps
|
|
12036
|
-
})
|
|
12073
|
+
className,
|
|
12074
|
+
...restProps
|
|
12075
|
+
} = props;
|
|
12076
|
+
return jsx("span", {
|
|
12077
|
+
className: classnames(`${classNamePrefix}-hint`, className),
|
|
12078
|
+
css: getHintStyles(classNamePrefix, theme),
|
|
12079
|
+
...restProps
|
|
12037
12080
|
});
|
|
12038
|
-
}
|
|
12039
|
-
|
|
12081
|
+
};
|
|
12082
|
+
|
|
12083
|
+
const getLabelStyles = (classNamePrefix, theme, _ref) => {
|
|
12040
12084
|
let {
|
|
12041
|
-
|
|
12042
|
-
|
|
12043
|
-
|
|
12044
|
-
|
|
12045
|
-
|
|
12085
|
+
inline
|
|
12086
|
+
} = _ref;
|
|
12087
|
+
const styles = {
|
|
12088
|
+
'&&': {
|
|
12089
|
+
color: theme.colors.textPrimary,
|
|
12090
|
+
fontWeight: theme.typography.typographyBoldFontWeight,
|
|
12091
|
+
display: inline ? 'inline' : 'block',
|
|
12092
|
+
lineHeight: theme.typography.lineHeightBase
|
|
12093
|
+
},
|
|
12094
|
+
[`&& + .${classNamePrefix}-input, && + .${classNamePrefix}-select, && + .${classNamePrefix}-checkbox-group, && + .${classNamePrefix}-radio-group`]: {
|
|
12095
|
+
marginTop: theme.spacing.sm
|
|
12096
|
+
}
|
|
12097
|
+
};
|
|
12098
|
+
return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getLabelStyles;");
|
|
12099
|
+
};
|
|
12100
|
+
const Label = props => {
|
|
12046
12101
|
const {
|
|
12047
|
-
|
|
12102
|
+
children,
|
|
12103
|
+
className,
|
|
12104
|
+
inline,
|
|
12105
|
+
...restProps
|
|
12106
|
+
} = props;
|
|
12107
|
+
const {
|
|
12108
|
+
classNamePrefix,
|
|
12109
|
+
theme
|
|
12048
12110
|
} = useDesignSystemTheme();
|
|
12049
|
-
return jsx(
|
|
12050
|
-
|
|
12051
|
-
|
|
12052
|
-
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12111
|
+
return jsx("label", {
|
|
12112
|
+
css: getLabelStyles(classNamePrefix, theme, {
|
|
12113
|
+
inline
|
|
12114
|
+
}),
|
|
12115
|
+
className: classnames(`${classNamePrefix}-label`, className),
|
|
12116
|
+
...restProps,
|
|
12117
|
+
children: children
|
|
12056
12118
|
});
|
|
12057
12119
|
};
|
|
12058
12120
|
|
|
12059
|
-
// Properly creates the namespace and dot-notation components with correct types.
|
|
12060
|
-
const InputNamespace = /* #__PURE__ */Object.assign(DuboisInput, {
|
|
12061
|
-
TextArea,
|
|
12062
|
-
Password,
|
|
12063
|
-
Group: Group$1
|
|
12064
|
-
});
|
|
12065
|
-
const Input = InputNamespace;
|
|
12066
|
-
|
|
12067
|
-
// TODO: I'm doing this to support storybook's docgen;
|
|
12068
|
-
// We should remove this once we have a better storybook integration,
|
|
12069
|
-
// since these will be exposed in the library's exports.
|
|
12070
|
-
const __INTERNAL_DO_NOT_USE__TextArea = TextArea;
|
|
12071
|
-
const __INTERNAL_DO_NOT_USE__Password = Password;
|
|
12072
|
-
const __INTERNAL_DO_NOT_USE_DEDUPE__Group = Group$1;
|
|
12073
|
-
|
|
12074
12121
|
const getRadioInputStyles = _ref => {
|
|
12075
12122
|
let {
|
|
12076
12123
|
clsPrefix,
|
|
@@ -13448,56 +13495,6 @@ const CursorPagination = function CursorPagination(_ref2) {
|
|
|
13448
13495
|
});
|
|
13449
13496
|
};
|
|
13450
13497
|
|
|
13451
|
-
const rotate = keyframes({
|
|
13452
|
-
'0%': {
|
|
13453
|
-
transform: 'rotate(0deg) translate3d(0, 0, 0)'
|
|
13454
|
-
},
|
|
13455
|
-
'100%': {
|
|
13456
|
-
transform: 'rotate(360deg) translate3d(0, 0, 0)'
|
|
13457
|
-
}
|
|
13458
|
-
});
|
|
13459
|
-
const cssSpinner = function (theme) {
|
|
13460
|
-
let frameRate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 60;
|
|
13461
|
-
let delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
13462
|
-
const styles = {
|
|
13463
|
-
animation: `${rotate} 1s steps(${frameRate}, end) infinite`,
|
|
13464
|
-
color: theme.colors.textSecondary,
|
|
13465
|
-
animationDelay: `${delay}s`
|
|
13466
|
-
};
|
|
13467
|
-
return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:cssSpinner;");
|
|
13468
|
-
};
|
|
13469
|
-
const Spinner = _ref => {
|
|
13470
|
-
let {
|
|
13471
|
-
frameRate,
|
|
13472
|
-
size = 'default',
|
|
13473
|
-
delay,
|
|
13474
|
-
className: propClass,
|
|
13475
|
-
...props
|
|
13476
|
-
} = _ref;
|
|
13477
|
-
const {
|
|
13478
|
-
classNamePrefix,
|
|
13479
|
-
theme
|
|
13480
|
-
} = useDesignSystemTheme();
|
|
13481
|
-
|
|
13482
|
-
// We use Antd classes to keep styling unchanged
|
|
13483
|
-
// TODO(FEINF-1407): We want to move away from Antd classes and use Emotion for styling in the future
|
|
13484
|
-
const sizeSuffix = size === 'small' ? '-sm' : size === 'large' ? '-lg' : '';
|
|
13485
|
-
const sizeClass = sizeSuffix ? `${classNamePrefix}-spin${sizeSuffix}` : '';
|
|
13486
|
-
const wrapperClass = `${propClass || ''} ${classNamePrefix}-spin ${sizeClass} ${classNamePrefix}-spin-spinning ${DU_BOIS_ENABLE_ANIMATION_CLASSNAME}`.trim();
|
|
13487
|
-
const className = `${classNamePrefix}-spin-dot ${DU_BOIS_ENABLE_ANIMATION_CLASSNAME}`.trim();
|
|
13488
|
-
return (
|
|
13489
|
-
// className has to follow {...props}, otherwise is `css` prop is passed down it will overwrite our className
|
|
13490
|
-
jsx("div", {
|
|
13491
|
-
...props,
|
|
13492
|
-
className: wrapperClass,
|
|
13493
|
-
children: jsx(LoadingIcon, {
|
|
13494
|
-
css: cssSpinner(theme, frameRate, delay),
|
|
13495
|
-
className: className
|
|
13496
|
-
})
|
|
13497
|
-
})
|
|
13498
|
-
);
|
|
13499
|
-
};
|
|
13500
|
-
|
|
13501
13498
|
const getTableEmotionStyles = (classNamePrefix, theme, scrollableInFlexibleContainer) => {
|
|
13502
13499
|
const styles = [/*#__PURE__*/css({
|
|
13503
13500
|
[`.${classNamePrefix}-table-pagination`]: {
|
|
@@ -15306,7 +15303,7 @@ const tableStyles = {
|
|
|
15306
15303
|
},
|
|
15307
15304
|
table: /*#__PURE__*/css({
|
|
15308
15305
|
'.table-isScrollable &': {
|
|
15309
|
-
overflow: '
|
|
15306
|
+
overflow: 'auto',
|
|
15310
15307
|
// Adapted from: https://css-tricks.com/scroll-shadows-with-javascript/
|
|
15311
15308
|
background: `
|
|
15312
15309
|
// Top and bottom shadow masks
|
|
@@ -15366,19 +15363,11 @@ const tableStyles = {
|
|
|
15366
15363
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
15367
15364
|
},
|
|
15368
15365
|
cell: process.env.NODE_ENV === "production" ? {
|
|
15369
|
-
name: "
|
|
15370
|
-
styles: "display:inline-grid;position:relative;
|
|
15371
|
-
} : {
|
|
15372
|
-
name: "pezdmp-cell",
|
|
15373
|
-
styles: "display:inline-grid;position:relative;align-items:var(--table-row-vertical-alignment, flex-start);flex:1;line-height:initial;box-sizing:border-box;padding-left:var(--table-spacing-sm);padding-right:var(--table-spacing-sm);word-break:break-word;overflow:hidden;label:cell;",
|
|
15374
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
15375
|
-
},
|
|
15376
|
-
rowMenuContainer: process.env.NODE_ENV === "production" ? {
|
|
15377
|
-
name: "1o9y8zx",
|
|
15378
|
-
styles: "padding-left:var(--table-spacing-xs);padding-right:var(--table-spacing-xs)"
|
|
15366
|
+
name: "10zsmwj",
|
|
15367
|
+
styles: "display:inline-grid;position:relative;flex:1;line-height:initial;box-sizing:border-box;padding-left:var(--table-spacing-sm);padding-right:var(--table-spacing-sm);word-break:break-word;overflow:hidden"
|
|
15379
15368
|
} : {
|
|
15380
|
-
name: "
|
|
15381
|
-
styles: "padding-left:var(--table-spacing-
|
|
15369
|
+
name: "1myl3nz-cell",
|
|
15370
|
+
styles: "display:inline-grid;position:relative;flex:1;line-height:initial;box-sizing:border-box;padding-left:var(--table-spacing-sm);padding-right:var(--table-spacing-sm);word-break:break-word;overflow:hidden;label:cell;",
|
|
15382
15371
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
15383
15372
|
},
|
|
15384
15373
|
header: process.env.NODE_ENV === "production" ? {
|
|
@@ -15390,11 +15379,11 @@ const tableStyles = {
|
|
|
15390
15379
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
15391
15380
|
},
|
|
15392
15381
|
headerButtonTarget: process.env.NODE_ENV === "production" ? {
|
|
15393
|
-
name: "
|
|
15394
|
-
styles: "align-items:flex-end;display:flex;overflow:hidden;width:100
|
|
15382
|
+
name: "sezlox",
|
|
15383
|
+
styles: "align-items:flex-end;display:flex;overflow:hidden;width:100%;justify-content:inherit;&:focus{.table-header-text{color:var(--table-header-focus-color);}.table-header-icon-container{color:var(--table-header-focus-color);display:inline;}}&:active{.table-header-icon-container, .table-header-text{color:var(--table-header-active-color);}}"
|
|
15395
15384
|
} : {
|
|
15396
|
-
name: "
|
|
15397
|
-
styles: "align-items:flex-end;display:flex;overflow:hidden;width:100
|
|
15385
|
+
name: "1iv4trp-headerButtonTarget",
|
|
15386
|
+
styles: "align-items:flex-end;display:flex;overflow:hidden;width:100%;justify-content:inherit;&:focus{.table-header-text{color:var(--table-header-focus-color);}.table-header-icon-container{color:var(--table-header-focus-color);display:inline;}}&:active{.table-header-icon-container, .table-header-text{color:var(--table-header-active-color);}};label:headerButtonTarget;",
|
|
15398
15387
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
15399
15388
|
},
|
|
15400
15389
|
sortHeaderIcon: process.env.NODE_ENV === "production" ? {
|
|
@@ -15475,6 +15464,7 @@ const Table = /*#__PURE__*/forwardRef(function Table(_ref, ref) {
|
|
|
15475
15464
|
['--table-background-color']: theme.colors.backgroundPrimary,
|
|
15476
15465
|
['--table-scroll-shadow-color']: theme.isDarkMode ? 'rgba(255, 255, 255, 0.07)' : 'rgba(31, 39, 45, 0.15)',
|
|
15477
15466
|
['--table-header-active-color']: theme.colors.actionDefaultTextPress,
|
|
15467
|
+
['colorScheme']: theme.isDarkMode ? 'dark' : undefined,
|
|
15478
15468
|
// This hex is pulled directly from the old table as a temporary style-matching measure.
|
|
15479
15469
|
['--table-header-background-color']: flags.USE_UPDATED_TABLE_STYLES || theme.isDarkMode ? theme.colors.backgroundPrimary : '#F2F5F7',
|
|
15480
15470
|
['--table-header-focus-color']: theme.colors.actionDefaultTextHover,
|
|
@@ -15541,8 +15531,7 @@ const TableRow = /*#__PURE__*/forwardRef(function TableRow(_ref2, ref) {
|
|
|
15541
15531
|
children,
|
|
15542
15532
|
className,
|
|
15543
15533
|
style,
|
|
15544
|
-
isHeader = false
|
|
15545
|
-
verticalAlignment = 'top'
|
|
15534
|
+
isHeader = false
|
|
15546
15535
|
} = _ref2;
|
|
15547
15536
|
const {
|
|
15548
15537
|
size
|
|
@@ -15571,8 +15560,7 @@ const TableRow = /*#__PURE__*/forwardRef(function TableRow(_ref2, ref) {
|
|
|
15571
15560
|
role: "row",
|
|
15572
15561
|
style: {
|
|
15573
15562
|
...style,
|
|
15574
|
-
['--table-row-vertical-padding']: `${rowPadding}px
|
|
15575
|
-
['--table-row-vertical-alignment']: verticalAlignment === 'top' ? 'flex-start' : 'center'
|
|
15563
|
+
['--table-row-vertical-padding']: `${rowPadding}px`
|
|
15576
15564
|
},
|
|
15577
15565
|
className: className,
|
|
15578
15566
|
children: children
|
|
@@ -15598,7 +15586,7 @@ const TableCell = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
15598
15586
|
css: [tableStyles.cell, process.env.NODE_ENV === "production" ? "" : ";label:TableCell;"],
|
|
15599
15587
|
role: "cell",
|
|
15600
15588
|
style: {
|
|
15601
|
-
|
|
15589
|
+
textAlign: align,
|
|
15602
15590
|
...style
|
|
15603
15591
|
},
|
|
15604
15592
|
ref: ref,
|
|
@@ -15670,7 +15658,8 @@ const TableHeader = /*#__PURE__*/forwardRef(function TableHeader(_ref4, ref) {
|
|
|
15670
15658
|
"aria-sort": sortable && ariaSort || undefined,
|
|
15671
15659
|
className: className,
|
|
15672
15660
|
style: {
|
|
15673
|
-
justifyContent:
|
|
15661
|
+
justifyContent: align,
|
|
15662
|
+
textAlign: align,
|
|
15674
15663
|
...style
|
|
15675
15664
|
},
|
|
15676
15665
|
children: [sortable ? jsxs("div", {
|
|
@@ -15750,47 +15739,36 @@ const TableRowSelectCell = /*#__PURE__*/forwardRef(function TableRowSelectCell(_
|
|
|
15750
15739
|
})
|
|
15751
15740
|
});
|
|
15752
15741
|
});
|
|
15753
|
-
const TableRowMenuContainer = /*#__PURE__*/forwardRef(function TableRowMenuContainer(_ref7, ref) {
|
|
15754
|
-
let {
|
|
15755
|
-
children,
|
|
15756
|
-
style,
|
|
15757
|
-
className
|
|
15758
|
-
} = _ref7;
|
|
15759
|
-
return jsx("div", {
|
|
15760
|
-
ref: ref,
|
|
15761
|
-
css: tableStyles.rowMenuContainer,
|
|
15762
|
-
style: style,
|
|
15763
|
-
className: className,
|
|
15764
|
-
children: children
|
|
15765
|
-
});
|
|
15766
|
-
});
|
|
15767
15742
|
const TableSkeletonStyles = {
|
|
15768
15743
|
container: process.env.NODE_ENV === "production" ? {
|
|
15769
|
-
name: "
|
|
15770
|
-
styles: "display:flex;flex-direction:column;align-items:flex-start
|
|
15744
|
+
name: "6kz1wu",
|
|
15745
|
+
styles: "display:flex;flex-direction:column;align-items:flex-start"
|
|
15771
15746
|
} : {
|
|
15772
|
-
name: "
|
|
15773
|
-
styles: "display:flex;flex-direction:column;align-items:flex-start;
|
|
15747
|
+
name: "1we0er9-container",
|
|
15748
|
+
styles: "display:flex;flex-direction:column;align-items:flex-start;label:container;",
|
|
15774
15749
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
15775
15750
|
},
|
|
15776
15751
|
cell: process.env.NODE_ENV === "production" ? {
|
|
15777
|
-
name: "
|
|
15778
|
-
styles: "width:100%;height:8px;border-radius:4px;background:var(--table-skeleton-color)"
|
|
15752
|
+
name: "1t820zr",
|
|
15753
|
+
styles: "width:100%;height:8px;border-radius:4px;background:var(--table-skeleton-color);margin-top:var(--table-skeleton-row-vertical-margin);margin-bottom:var(--table-skeleton-row-vertical-margin)"
|
|
15779
15754
|
} : {
|
|
15780
|
-
name: "
|
|
15781
|
-
styles: "width:100%;height:8px;border-radius:4px;background:var(--table-skeleton-color);label:cell;",
|
|
15755
|
+
name: "1m8dl5b-cell",
|
|
15756
|
+
styles: "width:100%;height:8px;border-radius:4px;background:var(--table-skeleton-color);margin-top:var(--table-skeleton-row-vertical-margin);margin-bottom:var(--table-skeleton-row-vertical-margin);label:cell;",
|
|
15782
15757
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
15783
15758
|
}
|
|
15784
15759
|
};
|
|
15785
|
-
const TableSkeleton =
|
|
15760
|
+
const TableSkeleton = _ref7 => {
|
|
15786
15761
|
let {
|
|
15787
15762
|
lines = 1,
|
|
15788
15763
|
seed = '',
|
|
15789
15764
|
style
|
|
15790
|
-
} =
|
|
15765
|
+
} = _ref7;
|
|
15791
15766
|
const {
|
|
15792
15767
|
theme
|
|
15793
15768
|
} = useDesignSystemTheme();
|
|
15769
|
+
const {
|
|
15770
|
+
size
|
|
15771
|
+
} = useContext(TableContext);
|
|
15794
15772
|
|
|
15795
15773
|
// This is a very simple PRNG that is seeded (so that the output is deterministic).
|
|
15796
15774
|
// We need this in order to produce a random ragged edge for the table skeleton.
|
|
@@ -15824,7 +15802,8 @@ const TableSkeleton = _ref8 => {
|
|
|
15824
15802
|
style: {
|
|
15825
15803
|
...style,
|
|
15826
15804
|
// TODO: Pull this from the themes; it's not currently available.
|
|
15827
|
-
['--table-skeleton-color']: theme.isDarkMode ? 'rgba(255, 255, 255, 0.1)' : 'rgba(31, 38, 45, 0.1)'
|
|
15805
|
+
['--table-skeleton-color']: theme.isDarkMode ? 'rgba(255, 255, 255, 0.1)' : 'rgba(31, 38, 45, 0.1)',
|
|
15806
|
+
['--table-skeleton-row-vertical-margin']: size === 'small' ? '4px' : '6px'
|
|
15828
15807
|
},
|
|
15829
15808
|
children: [...Array(lines)].map((_, idx) => jsx("div", {
|
|
15830
15809
|
css: [TableSkeletonStyles.cell, {
|
|
@@ -15833,11 +15812,87 @@ const TableSkeleton = _ref8 => {
|
|
|
15833
15812
|
}, idx))
|
|
15834
15813
|
});
|
|
15835
15814
|
};
|
|
15836
|
-
const
|
|
15837
|
-
|
|
15838
|
-
|
|
15839
|
-
|
|
15815
|
+
const TableRowActionStyles = {
|
|
15816
|
+
container: process.env.NODE_ENV === "production" ? {
|
|
15817
|
+
name: "137q2cp",
|
|
15818
|
+
styles: "width:32px;padding-top:0;padding-bottom:0;display:flex;align-items:center;justify-content:center"
|
|
15819
|
+
} : {
|
|
15820
|
+
name: "17o2n0c-container",
|
|
15821
|
+
styles: "width:32px;padding-top:0;padding-bottom:0;display:flex;align-items:center;justify-content:center;label:container;",
|
|
15822
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
15823
|
+
}
|
|
15824
|
+
};
|
|
15825
|
+
const TableRowAction = /*#__PURE__*/forwardRef(function TableRowAction(_ref8, ref) {
|
|
15826
|
+
let {
|
|
15827
|
+
children,
|
|
15828
|
+
style,
|
|
15829
|
+
className
|
|
15830
|
+
} = _ref8;
|
|
15831
|
+
return jsx("div", {
|
|
15832
|
+
ref: ref,
|
|
15833
|
+
css: TableRowActionStyles.container,
|
|
15834
|
+
style: style,
|
|
15835
|
+
className: className,
|
|
15836
|
+
children: children
|
|
15837
|
+
});
|
|
15838
|
+
});
|
|
15839
|
+
|
|
15840
|
+
/** @deprecated Use `TableRowAction` instead */
|
|
15841
|
+
const TableRowMenuContainer = TableRowAction;
|
|
15842
|
+
const tableFilterLayoutStyles = {
|
|
15843
|
+
layout: process.env.NODE_ENV === "production" ? {
|
|
15844
|
+
name: "1yb0qmd",
|
|
15845
|
+
styles: "display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--table-filter-layout-group-margin)"
|
|
15846
|
+
} : {
|
|
15847
|
+
name: "bmua0k-layout",
|
|
15848
|
+
styles: "display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--table-filter-layout-group-margin);label:layout;",
|
|
15849
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
15850
|
+
},
|
|
15851
|
+
filters: process.env.NODE_ENV === "production" ? {
|
|
15852
|
+
name: "2pdmyz",
|
|
15853
|
+
styles: "display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:var(--table-filter-layout-item-gap);flex:1"
|
|
15854
|
+
} : {
|
|
15855
|
+
name: "i28ows-filters",
|
|
15856
|
+
styles: "display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:var(--table-filter-layout-item-gap);flex:1;label:filters;",
|
|
15857
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
15858
|
+
},
|
|
15859
|
+
filterActions: process.env.NODE_ENV === "production" ? {
|
|
15860
|
+
name: "1ol8kzq",
|
|
15861
|
+
styles: "display:flex;gap:var(--table-filter-layout-item-gap);margin-left:var(--table-filter-layout-group-margin)"
|
|
15862
|
+
} : {
|
|
15863
|
+
name: "bcekwq-filterActions",
|
|
15864
|
+
styles: "display:flex;gap:var(--table-filter-layout-item-gap);margin-left:var(--table-filter-layout-group-margin);label:filterActions;",
|
|
15865
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
15866
|
+
}
|
|
15840
15867
|
};
|
|
15868
|
+
const TableFilterLayout = /*#__PURE__*/forwardRef(function TableFilterLayout(_ref9, ref) {
|
|
15869
|
+
let {
|
|
15870
|
+
children,
|
|
15871
|
+
style,
|
|
15872
|
+
className,
|
|
15873
|
+
actions
|
|
15874
|
+
} = _ref9;
|
|
15875
|
+
const {
|
|
15876
|
+
theme
|
|
15877
|
+
} = useDesignSystemTheme();
|
|
15878
|
+
return jsxs("div", {
|
|
15879
|
+
ref: ref,
|
|
15880
|
+
style: {
|
|
15881
|
+
['--table-filter-layout-item-gap']: `${theme.spacing.sm}px`,
|
|
15882
|
+
['--table-filter-layout-group-margin']: `${theme.spacing.md}px`,
|
|
15883
|
+
...style
|
|
15884
|
+
},
|
|
15885
|
+
css: tableFilterLayoutStyles.layout,
|
|
15886
|
+
className: className,
|
|
15887
|
+
children: [jsx("div", {
|
|
15888
|
+
css: tableFilterLayoutStyles.filters,
|
|
15889
|
+
children: children
|
|
15890
|
+
}), actions && jsx("div", {
|
|
15891
|
+
css: tableFilterLayoutStyles.filterActions,
|
|
15892
|
+
children: actions
|
|
15893
|
+
})]
|
|
15894
|
+
});
|
|
15895
|
+
});
|
|
15841
15896
|
|
|
15842
15897
|
const getTabEmotionStyles = (clsPrefix, theme) => {
|
|
15843
15898
|
const classTab = `.${clsPrefix}-tabs-tab`;
|
|
@@ -16193,6 +16248,7 @@ const getStyles = theme => {
|
|
|
16193
16248
|
display: 'inline-flex',
|
|
16194
16249
|
alignItems: 'center',
|
|
16195
16250
|
justifyContent: 'center',
|
|
16251
|
+
whiteSpace: 'nowrap',
|
|
16196
16252
|
border: `1px solid ${theme.colors.actionDefaultBorderDefault}`,
|
|
16197
16253
|
borderRadius: theme.general.borderRadiusBase,
|
|
16198
16254
|
backgroundColor: 'transparent',
|
|
@@ -16244,10 +16300,17 @@ const ToggleButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
16244
16300
|
setIsPressed(pressed);
|
|
16245
16301
|
},
|
|
16246
16302
|
ref: ref,
|
|
16247
|
-
children: [isPressed
|
|
16303
|
+
children: [isPressed ? jsx(CheckIcon, {
|
|
16248
16304
|
css: /*#__PURE__*/css({
|
|
16249
16305
|
marginRight: theme.spacing.xs
|
|
16250
16306
|
}, process.env.NODE_ENV === "production" ? "" : ";label:ToggleButton;")
|
|
16307
|
+
}) : jsx(Checkbox, {
|
|
16308
|
+
disabled: props.disabled,
|
|
16309
|
+
style: {
|
|
16310
|
+
height: theme.typography.lineHeightBase,
|
|
16311
|
+
width: theme.typography.lineHeightSm,
|
|
16312
|
+
marginRight: theme.spacing.xs
|
|
16313
|
+
}
|
|
16251
16314
|
}), children]
|
|
16252
16315
|
});
|
|
16253
16316
|
});
|
|
@@ -16535,5 +16598,5 @@ const Tree = /*#__PURE__*/forwardRef(function Tree(_ref, ref) {
|
|
|
16535
16598
|
});
|
|
16536
16599
|
});
|
|
16537
16600
|
|
|
16538
|
-
export { Accordion, AccordionPanel, Alert, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, AppIcon, ApplyDesignSystemContextOverrides, ApplyDesignSystemFlags, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowsUpDownIcon, AutoComplete, BarChartIcon, BeakerIcon, BinaryIcon, BoldIcon, BookIcon, BookmarkFillIcon, BookmarkIcon, BracketsCurlyIcon, BracketsSquareIcon, BracketsXIcon, Breadcrumb, BriefcaseFillIcon, BriefcaseIcon, Button, CalendarEventIcon, CalendarIcon, CaretDownSquareIcon, CaretUpSquareIcon, CatalogIcon, ChartLineIcon, CheckCircleBadgeIcon, CheckCircleFillIcon, CheckCircleIcon, CheckIcon, CheckLineIcon, Checkbox, ChecklistIcon, ChevronDoubleDownIcon, ChevronDoubleLeftIcon, ChevronDoubleRightIcon, ChevronDoubleUpIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleIcon, ClipboardIcon, ClockIcon, CloseIcon, CloudDownloadIcon, CloudIcon, CloudKeyIcon, CloudModelIcon, CloudOffIcon, CloudUploadIcon, CodeIcon, Col, ColorFillIcon, ConnectIcon, Content, CopyIcon, CursorIcon, CursorPagination, DIcon, DU_BOIS_ENABLE_ANIMATION_CLASSNAME, DagIcon, DangerFillIcon, DangerIcon, DangerModal, DashIcon, DashboardIcon, DataIcon, DatabaseIcon, DecimalIcon, DesignSystemAntDConfigProvider, DesignSystemContext, DesignSystemProvider, DialogCombobox, DialogComboboxButtonContainer, DialogComboboxContent, DialogComboboxCountBadge, DialogComboboxLoadingSpinner, DialogComboboxOptionControlledList, DialogComboboxOptionList, DialogComboboxOptionListCheckboxItem, DialogComboboxOptionListSearch, DialogComboboxOptionListSelectItem, DialogComboboxSectionHeader, DialogComboboxSeparator, DialogComboboxTrigger, 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, Icon, ImageIcon, IndentDecreaseIcon, IndentIncreaseIcon, InfinityIcon, InfoFillIcon, InfoIcon, Input, ItalicIcon, KeyboardIcon, LayerIcon, Layout, LegacyDatePicker, LegacyTable, LettersIcon, LightningIcon, LinkIcon, LinkOffIcon, ListBorderIcon, ListIcon, LoadingIcon, LockFillIcon, LockIcon, LockUnlockedIcon, MIcon, Menu, MenuIcon, MinusBoxIcon, MinusCircleFillIcon, MinusCircleIcon, Modal, ModelsIcon, Nav, NavButton, NewWindowIcon, 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, RestoreAntDDefaultClsPrefix, Row, SaveIcon, SchoolIcon, SearchIcon, SecurityIcon, SegmentedControlButton, SegmentedControlGroup, Select, ShareIcon, Sidebar, SidebarAutoIcon, SidebarCollapseIcon, SidebarExpandIcon, SidebarIcon, Skeleton, SlidersIcon, SortAscendingIcon, SortDescendingIcon, SortUnsortedIcon, Space, Spacer, SpeechBubbleIcon, SpeechBubblePlusIcon, Spinner, SplitButton, StarFillIcon, StarIcon, StopCircleFillIcon, StopCircleIcon, StopIcon, StorefrontIcon, StreamIcon, Switch, SyncIcon, TabPane, Table, TableCell, TableHeader, TableIcon, TableRow, TableRowMenuContainer, TableRowSelectCell, TableSkeleton, Tabs, Tag, ToggleButton, Tooltip, TrashIcon, Tree, TreeIcon, Typography, UnderlineIcon, UndoIcon, UploadIcon, UsbIcon, UserBadgeIcon, UserCircleIcon, UserGroupIcon, UserIcon, VariableIcon, VisibleIcon, VisibleOffIcon, WarningFillIcon, WarningIcon, WorkspacesIcon, XCircleFillIcon, XCircleIcon, ZoomInIcon, ZoomOutIcon, __INTERNAL_DO_NOT_USE_DEDUPE__Group, __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, getRadioStyles, getTabEmotionStyles, getWrapperStyle, useAntDConfigProviderContext, useDesignSystemFlags, useNotification, useThemedStyles, withNotifications };
|
|
16601
|
+
export { Accordion, AccordionPanel, Alert, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, AppIcon, ApplyDesignSystemContextOverrides, ApplyDesignSystemFlags, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowsUpDownIcon, AutoComplete, BarChartIcon, BeakerIcon, BinaryIcon, BoldIcon, BookIcon, BookmarkFillIcon, BookmarkIcon, BracketsCurlyIcon, BracketsSquareIcon, BracketsXIcon, Breadcrumb, BriefcaseFillIcon, BriefcaseIcon, Button, CalendarEventIcon, CalendarIcon, CaretDownSquareIcon, CaretUpSquareIcon, CatalogIcon, ChartLineIcon, CheckCircleBadgeIcon, CheckCircleFillIcon, CheckCircleIcon, CheckIcon, CheckLineIcon, Checkbox, ChecklistIcon, ChevronDoubleDownIcon, ChevronDoubleLeftIcon, ChevronDoubleRightIcon, ChevronDoubleUpIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleIcon, ClipboardIcon, ClockIcon, CloseIcon, CloudDownloadIcon, CloudIcon, CloudKeyIcon, CloudModelIcon, CloudOffIcon, CloudUploadIcon, CodeIcon, Col, ColorFillIcon, ConnectIcon, Content, CopyIcon, CursorIcon, CursorPagination, DIcon, DU_BOIS_ENABLE_ANIMATION_CLASSNAME, DagIcon, DangerFillIcon, DangerIcon, DangerModal, DashIcon, DashboardIcon, DataIcon, DatabaseIcon, DecimalIcon, DesignSystemAntDConfigProvider, DesignSystemContext, DesignSystemProvider, DialogCombobox, DialogComboboxButtonContainer, DialogComboboxContent, DialogComboboxCountBadge, DialogComboboxLoadingSpinner, DialogComboboxOptionControlledList, DialogComboboxOptionList, DialogComboboxOptionListCheckboxItem, DialogComboboxOptionListSearch, DialogComboboxOptionListSelectItem, DialogComboboxSectionHeader, DialogComboboxSeparator, DialogComboboxTrigger, 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, Icon, ImageIcon, IndentDecreaseIcon, IndentIncreaseIcon, InfinityIcon, InfoFillIcon, InfoIcon, Input, ItalicIcon, KeyboardIcon, LayerIcon, Layout, LegacyDatePicker, LegacyTable, LettersIcon, LightningIcon, LinkIcon, LinkOffIcon, ListBorderIcon, ListIcon, LoadingIcon, LockFillIcon, LockIcon, LockUnlockedIcon, MIcon, Menu, MenuIcon, MinusBoxIcon, MinusCircleFillIcon, MinusCircleIcon, Modal, ModelsIcon, Nav, NavButton, NewWindowIcon, 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, RestoreAntDDefaultClsPrefix, Row, SaveIcon, SchoolIcon, SearchIcon, SecurityIcon, SegmentedControlButton, SegmentedControlGroup, Select, ShareIcon, Sidebar, SidebarAutoIcon, SidebarCollapseIcon, SidebarExpandIcon, SidebarIcon, Skeleton, SlidersIcon, SortAscendingIcon, SortDescendingIcon, SortUnsortedIcon, Space, Spacer, SpeechBubbleIcon, SpeechBubblePlusIcon, Spinner, SplitButton, StarFillIcon, StarIcon, StopCircleFillIcon, StopCircleIcon, StopIcon, StorefrontIcon, StreamIcon, Switch, SyncIcon, TabPane, Table, TableCell, TableFilterLayout, TableHeader, TableIcon, TableRow, TableRowAction, TableRowMenuContainer, TableRowSelectCell, TableSkeleton, Tabs, Tag, ToggleButton, Tooltip, TrashIcon, Tree, TreeIcon, Typography, UnderlineIcon, UndoIcon, UploadIcon, UsbIcon, UserBadgeIcon, UserCircleIcon, UserGroupIcon, UserIcon, VariableIcon, VisibleIcon, VisibleOffIcon, WarningFillIcon, WarningIcon, WorkspacesIcon, XCircleFillIcon, XCircleIcon, ZoomInIcon, ZoomOutIcon, __INTERNAL_DO_NOT_USE_DEDUPE__Group, __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, getRadioStyles, getTabEmotionStyles, getWrapperStyle, useAntDConfigProviderContext, useDesignSystemFlags, useNotification, useThemedStyles, withNotifications };
|
|
16539
16602
|
//# sourceMappingURL=index.js.map
|