@databricks/design-system 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/design-system/Alert/Alert.d.ts +1 -1
  2. package/dist/design-system/Alert/Alert.d.ts.map +1 -1
  3. package/dist/design-system/Button/Button.d.ts +1 -1
  4. package/dist/design-system/Button/Button.d.ts.map +1 -1
  5. package/dist/design-system/DatePicker/DatePicker.d.ts +7 -7
  6. package/dist/design-system/DatePicker/DatePicker.d.ts.map +1 -1
  7. package/dist/design-system/Drawer/Drawer.d.ts +38 -0
  8. package/dist/design-system/Drawer/Drawer.d.ts.map +1 -0
  9. package/dist/design-system/Drawer/index.d.ts +2 -0
  10. package/dist/design-system/Drawer/index.d.ts.map +1 -0
  11. package/dist/design-system/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  12. package/dist/design-system/Form/Form.d.ts +1 -1
  13. package/dist/design-system/Form/Form.d.ts.map +1 -1
  14. package/dist/design-system/FormV2/RHFAdapters.d.ts +12 -2
  15. package/dist/design-system/FormV2/RHFAdapters.d.ts.map +1 -1
  16. package/dist/design-system/Hooks/useDesignSystemTheme.d.ts +1 -1
  17. package/dist/design-system/Hooks/useDesignSystemTheme.d.ts.map +1 -1
  18. package/dist/design-system/Icon/Icon.d.ts +2 -2
  19. package/dist/design-system/Icon/Icon.d.ts.map +1 -1
  20. package/dist/design-system/Icon/__generated/icons/VariableIcon.v2.d.ts +4 -0
  21. package/dist/design-system/Icon/__generated/icons/VariableIcon.v2.d.ts.map +1 -0
  22. package/dist/design-system/Icon/__generated/icons/index.d.ts +1 -0
  23. package/dist/design-system/Icon/__generated/icons/index.d.ts.map +1 -1
  24. package/dist/design-system/Input/Input.d.ts +1 -1
  25. package/dist/design-system/Input/Input.d.ts.map +1 -1
  26. package/dist/design-system/Modal/Modal.d.ts.map +1 -1
  27. package/dist/design-system/Notification/Notification.d.ts +2 -2
  28. package/dist/design-system/Notification/Notification.d.ts.map +1 -1
  29. package/dist/design-system/PopoverV2/PopoverV2.d.ts +10 -0
  30. package/dist/design-system/PopoverV2/PopoverV2.d.ts.map +1 -0
  31. package/dist/design-system/PopoverV2/PopoverV2.test.d.ts +2 -0
  32. package/dist/design-system/PopoverV2/PopoverV2.test.d.ts.map +1 -0
  33. package/dist/design-system/PopoverV2/index.d.ts +2 -0
  34. package/dist/design-system/PopoverV2/index.d.ts.map +1 -0
  35. package/dist/design-system/Radio/Radio.d.ts +10 -8
  36. package/dist/design-system/Radio/Radio.d.ts.map +1 -1
  37. package/dist/design-system/Select/Select.d.ts +3 -3
  38. package/dist/design-system/Select/Select.d.ts.map +1 -1
  39. package/dist/design-system/Spacer/Spacer.d.ts +1 -1
  40. package/dist/design-system/Spacer/Spacer.d.ts.map +1 -1
  41. package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts +4 -4
  42. package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts.map +1 -1
  43. package/dist/design-system/SplitButton/SplitButton.d.ts +1 -1
  44. package/dist/design-system/SplitButton/SplitButton.d.ts.map +1 -1
  45. package/dist/design-system/Tag/index.d.ts +5 -3
  46. package/dist/design-system/Tag/index.d.ts.map +1 -1
  47. package/dist/design-system/Tree/Tree.d.ts +1 -1
  48. package/dist/design-system/Tree/Tree.d.ts.map +1 -1
  49. package/dist/design-system/Typography/Link.d.ts +1 -1
  50. package/dist/design-system/Typography/Link.d.ts.map +1 -1
  51. package/dist/design-system/Typography/Paragraph.d.ts +2 -2
  52. package/dist/design-system/Typography/Paragraph.d.ts.map +1 -1
  53. package/dist/design-system/Typography/Text.d.ts +2 -2
  54. package/dist/design-system/Typography/Text.d.ts.map +1 -1
  55. package/dist/design-system/Typography/Title.d.ts +2 -2
  56. package/dist/design-system/Typography/Title.d.ts.map +1 -1
  57. package/dist/design-system/index.d.ts +2 -0
  58. package/dist/design-system/index.d.ts.map +1 -1
  59. package/dist/design-system/types.d.ts +2 -2
  60. package/dist/design-system/types.d.ts.map +1 -1
  61. package/dist/flags.d.ts +4 -3
  62. package/dist/flags.d.ts.map +1 -1
  63. package/dist/index-mfe-dark.css +17524 -0
  64. package/dist/index-mfe.css +17183 -0
  65. package/dist/index.js +1349 -903
  66. package/dist/index.js.map +1 -1
  67. package/dist/theme/colorList.d.ts +7 -7
  68. package/dist/theme/colorList.d.ts.map +1 -1
  69. package/dist/theme/colors.d.ts +1 -1
  70. package/dist/theme/colors.d.ts.map +1 -1
  71. package/dist/theme/index.d.ts +2 -2
  72. package/dist/theme/index.d.ts.map +1 -1
  73. package/package.json +12 -10
  74. package/dist/design-system/Collapse/Collapse.d.ts +0 -44
  75. package/dist/design-system/Collapse/Collapse.d.ts.map +0 -1
  76. package/dist/design-system/Collapse/index.d.ts +0 -2
  77. package/dist/design-system/Collapse/index.d.ts.map +0 -1
  78. package/dist/design-system/FormV2/FormV2.d.ts +0 -21
  79. package/dist/design-system/FormV2/FormV2.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { createContext, useMemo, useEffect, useContext, useRef, forwardRef, useImperativeHandle, Children, useCallback, useState } from 'react';
3
3
  import AntDIcon from '@ant-design/icons';
4
- import { useTheme, ThemeProvider, css, ClassNames, keyframes } from '@emotion/react';
4
+ import { useTheme, ThemeProvider, css, keyframes, ClassNames } from '@emotion/react';
5
5
  import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
6
6
  import chroma from 'chroma-js';
7
- 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, Dropdown as Dropdown$1, Tooltip as Tooltip$1, Typography as Typography$1, Form as Form$1, Input as Input$1, Radio as Radio$1, Select as Select$1, Switch as Switch$1, Col as Col$1, Row as Row$1, Space as Space$1, Layout as Layout$1, Menu as Menu$1, Modal as Modal$1, Pagination as Pagination$1, Popover as Popover$1, Skeleton as Skeleton$1, Table as Table$1, Tabs as Tabs$1, Tree as Tree$1 } from 'antd';
7
+ 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, Typography as Typography$1, Dropdown as Dropdown$1, Tooltip as Tooltip$1, Form as Form$1, Input as Input$1, Radio as Radio$1, Select as Select$1, Switch as Switch$1, Col as Col$1, Row as Row$1, Space as Space$1, Layout as Layout$1, Menu as Menu$1, Modal as Modal$1, Pagination as Pagination$1, Popover as Popover$2, Skeleton as Skeleton$1, Table as Table$1, Tabs as Tabs$1, Tree as Tree$1 } from 'antd';
8
8
  import classnames from 'classnames';
9
9
  import _isNil from 'lodash/isNil';
10
10
  import _endsWith from 'lodash/endsWith';
@@ -13,8 +13,10 @@ import _isNumber from 'lodash/isNumber';
13
13
  import _isString from 'lodash/isString';
14
14
  import _mapValues from 'lodash/mapValues';
15
15
  import unitless from '@emotion/unitless';
16
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
16
17
  import * as DropdownMenu$1 from '@radix-ui/react-dropdown-menu';
17
18
  import { useController } from 'react-hook-form';
19
+ import * as Popover$1 from '@radix-ui/react-popover';
18
20
  import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral';
19
21
  import { ResizableBox } from 'react-resizable';
20
22
 
@@ -268,6 +270,7 @@ function getSemanticColors(theme) {
268
270
  }
269
271
  }
270
272
 
273
+ // TODO (FEINF-1674): Remove when removing USE_NEW_RADIO_STYLES
271
274
  /*
272
275
  Colors that need to be replaced by semantic colors.
273
276
  */
@@ -8776,6 +8779,27 @@ function UnderlineIcon(props) {
8776
8779
  });
8777
8780
  }
8778
8781
 
8782
+ function SvgVariableIcon(props) {
8783
+ return jsx("svg", {
8784
+ width: "1em",
8785
+ height: "1em",
8786
+ viewBox: "0 0 16 16",
8787
+ fill: "none",
8788
+ xmlns: "http://www.w3.org/2000/svg",
8789
+ ...props,
8790
+ children: jsx("path", {
8791
+ d: "M3.73 13.2h.4v-1.109h-.257c-.78 0-1.084-.345-1.084-1.228v-1.74c0-.858-.507-1.347-1.472-1.448v-.173c.965-.108 1.472-.596 1.472-1.455v-1.71c0-.883.304-1.228 1.084-1.228h.257V2h-.4c-1.638 0-2.353.662-2.353 2.158v1.46c0 .906-.37 1.234-1.377 1.234v1.466c1.013.006 1.377.334 1.377 1.234v1.472c0 1.502.715 2.176 2.353 2.176zM4.994 11.036H6.59L7.92 8.771h.1l1.336 2.265h1.668L8.897 7.74 11 4.521H9.374l-1.288 2.26h-.1L6.691 4.52H4.976l2.127 3.285-2.11 3.23zM12.27 13.2c1.638 0 2.354-.674 2.354-2.176V9.552c0-.9.363-1.228 1.376-1.234V6.852c-1.007 0-1.377-.328-1.377-1.234v-1.46C14.623 2.662 13.909 2 12.27 2h-.4v1.109h.257c.786 0 1.09.345 1.09 1.228v1.71c0 .859.5 1.347 1.466 1.455v.173c-.965.1-1.466.59-1.466 1.448v1.74c0 .883-.31 1.228-1.09 1.228h-.257V13.2h.4z",
8792
+ fill: "currentColor"
8793
+ })
8794
+ });
8795
+ }
8796
+ function VariableIcon(props) {
8797
+ return jsx(Icon, {
8798
+ ...props,
8799
+ component: SvgVariableIcon
8800
+ });
8801
+ }
8802
+
8779
8803
  function SvgWorkspacesIcon(props) {
8780
8804
  return jsxs("svg", {
8781
8805
  width: "1em",
@@ -10048,841 +10072,1039 @@ const LegacyDatePicker = /* #__PURE__ */Object.assign(DuboisDatePicker, {
10048
10072
  YearPicker
10049
10073
  });
10050
10074
 
10051
- /**
10052
- * @deprecated Use `DropdownMenu` instead.
10053
- */
10054
- const Dropdown = _ref => {
10075
+ const Spacer = _ref => {
10055
10076
  let {
10056
- dangerouslySetAntdProps,
10077
+ size = 'md',
10057
10078
  ...props
10058
10079
  } = _ref;
10059
10080
  const {
10060
10081
  theme
10061
10082
  } = useDesignSystemTheme();
10062
- return jsx(DesignSystemAntDConfigProvider, {
10063
- children: jsx(Dropdown$1, {
10064
- mouseLeaveDelay: 0.25,
10065
- ...props,
10066
- overlayStyle: {
10067
- zIndex: theme.options.zIndexBase + 50,
10068
- ...props.overlayStyle
10069
- },
10070
- ...dangerouslySetAntdProps
10071
- })
10083
+ const spacingValues = {
10084
+ xs: theme.spacing.xs,
10085
+ sm: theme.spacing.sm,
10086
+ md: theme.spacing.md,
10087
+ lg: theme.spacing.lg
10088
+ };
10089
+ return jsx("div", {
10090
+ css: /*#__PURE__*/css({
10091
+ height: spacingValues[size]
10092
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Spacer;"),
10093
+ ...props
10072
10094
  });
10073
10095
  };
10074
10096
 
10075
- const Tooltip = _ref => {
10097
+ const getLinkStyles = (theme, clsPrefix, useNewIcons) => {
10098
+ const classTypography = ".".concat(clsPrefix, "-typography");
10099
+ const styles = {
10100
+ ["&".concat(classTypography, ", &").concat(classTypography, ":focus")]: {
10101
+ color: theme.colors.actionTertiaryTextDefault
10102
+ },
10103
+ ["&".concat(classTypography, ":hover, &").concat(classTypography, ":hover .anticon")]: {
10104
+ color: theme.colors.actionTertiaryTextHover,
10105
+ textDecoration: 'underline'
10106
+ },
10107
+ ["&".concat(classTypography, ":active, &").concat(classTypography, ":active .anticon")]: {
10108
+ color: theme.colors.actionTertiaryTextPress,
10109
+ textDecoration: 'underline'
10110
+ },
10111
+ ["&".concat(classTypography, ":focus-visible")]: {
10112
+ textDecoration: 'underline'
10113
+ },
10114
+ ...(useNewIcons && {
10115
+ '.anticon': {
10116
+ fontSize: 12
10117
+ }
10118
+ })
10119
+ };
10120
+ return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getLinkStyles;");
10121
+ };
10122
+ const getEllipsisNewTabLinkStyles = () => {
10123
+ const styles = {
10124
+ paddingRight: 'calc(2px + 1em)',
10125
+ // 1em for icon
10126
+ position: 'relative'
10127
+ };
10128
+ return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisNewTabLinkStyles;");
10129
+ };
10130
+ const getIconStyles = theme => {
10131
+ const styles = {
10132
+ marginLeft: 2,
10133
+ color: theme.colors.actionTertiaryTextDefault
10134
+ };
10135
+ return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getIconStyles;");
10136
+ };
10137
+ const getEllipsisIconStyles = useNewIcons => {
10138
+ const styles = {
10139
+ position: 'absolute',
10140
+ right: 0,
10141
+ bottom: 0,
10142
+ top: 0,
10143
+ display: 'flex',
10144
+ alignItems: 'center',
10145
+ ...(useNewIcons && {
10146
+ fontSize: 12
10147
+ })
10148
+ };
10149
+ return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisIconStyles;");
10150
+ };
10151
+ function Link(_ref) {
10076
10152
  let {
10077
- children,
10078
- title,
10079
- placement = 'top',
10080
- dataTestId,
10081
10153
  dangerouslySetAntdProps,
10082
10154
  ...props
10083
10155
  } = _ref;
10084
10156
  const {
10085
- theme
10157
+ children,
10158
+ openInNewTab,
10159
+ ...restProps
10160
+ } = props;
10161
+ const {
10162
+ theme,
10163
+ classNamePrefix
10086
10164
  } = useDesignSystemTheme();
10087
- if (!title) {
10088
- return jsx(React__default.Fragment, {
10089
- children: children
10090
- });
10091
- }
10165
+ const {
10166
+ USE_NEW_ICONS: useNewIcons
10167
+ } = useDesignSystemFlags();
10168
+ const newTabProps = {
10169
+ rel: 'noopener noreferrer',
10170
+ target: '_blank'
10171
+ };
10172
+ const linkProps = openInNewTab ? {
10173
+ ...restProps,
10174
+ ...newTabProps
10175
+ } : {
10176
+ ...restProps
10177
+ };
10178
+ const linkStyles = props.ellipsis && openInNewTab ? [getLinkStyles(theme, classNamePrefix, useNewIcons), getEllipsisNewTabLinkStyles()] : getLinkStyles(theme, classNamePrefix, useNewIcons);
10179
+ const iconStyles = props.ellipsis ? [getIconStyles(theme), getEllipsisIconStyles()] : getIconStyles(theme);
10092
10180
  return jsx(DesignSystemAntDConfigProvider, {
10093
- children: jsx(Tooltip$1
10094
- // eslint-disable-next-line react/forbid-dom-props -- FEINF-1337 - this should turn into data-testid
10095
- , {
10096
- title: jsx("span", {
10097
- "data-test-id": dataTestId,
10098
- children: title
10099
- }),
10100
- placement: placement
10101
- // Always trigger on hover and focus
10102
- ,
10103
- trigger: ['hover', 'focus'],
10104
- overlayInnerStyle: {
10105
- backgroundColor: '#2F3941',
10106
- lineHeight: '22px',
10107
- padding: '4px 8px'
10108
- },
10109
- overlayStyle: {
10110
- zIndex: theme.options.zIndexBase + 70
10111
- },
10112
- css: getAnimationCss(theme.options.enableAnimation),
10181
+ children: jsxs(Typography$1.Link, {
10182
+ css: linkStyles,
10183
+ ...linkProps,
10113
10184
  ...dangerouslySetAntdProps,
10114
- ...props,
10115
- children: children
10185
+ children: [children, openInNewTab ? jsx(NewWindowIcon, {
10186
+ css: iconStyles,
10187
+ ...newTabProps
10188
+ }) : null]
10116
10189
  })
10117
10190
  });
10118
- };
10119
-
10120
- const Root = DropdownMenu$1.Root; // Behavioral component only
10191
+ }
10121
10192
 
10122
- const Content$2 = /*#__PURE__*/forwardRef(function Content(_ref, ref) {
10123
- let {
10124
- children,
10125
- minWidth = 220,
10126
- ...props
10127
- } = _ref;
10193
+ const {
10194
+ Paragraph: AntDParagraph
10195
+ } = Typography$1;
10196
+ function getParagraphEmotionStyles(theme, props) {
10197
+ return /*#__PURE__*/css({
10198
+ '&&': {
10199
+ fontSize: theme.typography.fontSizeBase,
10200
+ lineHeight: theme.typography.lineHeightBase,
10201
+ color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
10202
+ }
10203
+ }, props.disabled && {
10204
+ '&&': {
10205
+ color: theme.colors.actionDisabledText
10206
+ }
10207
+ }, props.withoutMargins && {
10208
+ '&&': {
10209
+ marginTop: 0,
10210
+ marginBottom: 0
10211
+ }
10212
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getParagraphEmotionStyles;");
10213
+ }
10214
+ function Paragraph$1(userProps) {
10128
10215
  const {
10129
- getPopupContainer
10130
- } = useDesignSystemContext();
10131
- return jsx(DropdownMenu$1.Portal, {
10132
- container: getPopupContainer && getPopupContainer(),
10133
- children: jsx(DropdownMenu$1.Content, {
10134
- ref: ref,
10135
- css: [contentStyles, {
10136
- minWidth
10137
- }, process.env.NODE_ENV === "production" ? "" : ";label:Content;"],
10138
- sideOffset: 4,
10139
- align: "start",
10140
- ...props,
10141
- children: children
10142
- })
10143
- });
10144
- });
10145
- const SubContent = /*#__PURE__*/forwardRef(function Content(_ref2, ref) {
10146
- let {
10147
- children,
10148
- minWidth = 220,
10216
+ dangerouslySetAntdProps,
10217
+ withoutMargins,
10218
+ color,
10149
10219
  ...props
10150
- } = _ref2;
10220
+ } = userProps;
10151
10221
  const {
10152
- getPopupContainer
10153
- } = useDesignSystemContext();
10154
- return jsx(DropdownMenu$1.Portal, {
10155
- container: getPopupContainer && getPopupContainer(),
10156
- children: jsx(DropdownMenu$1.SubContent, {
10157
- ref: ref,
10158
- css: [contentStyles, {
10159
- minWidth
10160
- }, process.env.NODE_ENV === "production" ? "" : ";label:SubContent;"],
10161
- sideOffset: -2,
10162
- alignOffset: -5,
10222
+ theme
10223
+ } = useDesignSystemTheme();
10224
+ return jsx(DesignSystemAntDConfigProvider, {
10225
+ children: jsx(AntDParagraph, {
10163
10226
  ...props,
10164
- children: children
10227
+ className: props.className,
10228
+ css: getParagraphEmotionStyles(theme, userProps),
10229
+ ...dangerouslySetAntdProps
10165
10230
  })
10166
10231
  });
10167
- });
10168
- const Trigger = /*#__PURE__*/forwardRef(function Trigger(_ref3, ref) {
10169
- let {
10170
- children,
10171
- ...props
10172
- } = _ref3;
10173
- return jsx(DropdownMenu$1.Trigger, {
10174
- ref: ref,
10175
- ...props,
10176
- children: children
10177
- });
10178
- });
10179
- const Item = /*#__PURE__*/forwardRef(function Item(_ref4, ref) {
10180
- let {
10181
- children,
10182
- disabledReason,
10183
- danger,
10184
- ...props
10185
- } = _ref4;
10186
- const itemRef = useRef(null);
10187
- useImperativeHandle(ref, () => itemRef.current);
10188
- return jsx(DropdownMenu$1.Item, {
10189
- css: theme => [itemStyles, danger && dangerItemStyles(theme)],
10190
- ref: itemRef,
10191
- ...props,
10192
- children: getNewChildren(children, props, disabledReason, itemRef)
10193
- });
10194
- });
10195
- const Label$1 = /*#__PURE__*/forwardRef(function Label(_ref5, ref) {
10196
- let {
10197
- children,
10198
- ...props
10199
- } = _ref5;
10200
- return jsx(DropdownMenu$1.Label, {
10201
- ref: ref,
10202
- css: [itemStyles, theme => ({
10203
- color: theme.colors.textSecondary,
10204
- '&:hover': {
10205
- cursor: 'default'
10206
- }
10207
- }), process.env.NODE_ENV === "production" ? "" : ";label:Label;"],
10208
- ...props,
10209
- children: children
10210
- });
10211
- });
10212
- const Separator = /*#__PURE__*/forwardRef(function Separator(_ref6, ref) {
10213
- let {
10214
- children,
10215
- ...props
10216
- } = _ref6;
10217
- return jsx(DropdownMenu$1.Separator, {
10218
- ref: ref,
10219
- css: theme => ({
10220
- height: 1,
10221
- margin: "".concat(theme.spacing.xs, "px ").concat(theme.spacing.sm, "px"),
10222
- backgroundColor: theme.colors.borderDecorative
10223
- }),
10224
- ...props,
10225
- children: children
10226
- });
10227
- });
10228
- const SubTrigger = /*#__PURE__*/forwardRef(function TriggerItem(_ref7, ref) {
10229
- let {
10230
- children,
10231
- disabledReason,
10232
- ...props
10233
- } = _ref7;
10234
- const subTriggerRef = useRef(null);
10235
- useImperativeHandle(ref, () => subTriggerRef.current);
10236
- return jsxs(DropdownMenu$1.SubTrigger, {
10237
- ref: subTriggerRef,
10238
- css: [itemStyles, theme => ({
10239
- '&[data-state="open"]': {
10240
- backgroundColor: theme.colors.actionTertiaryBackgroundHover
10241
- }
10242
- }), process.env.NODE_ENV === "production" ? "" : ";label:SubTrigger;"],
10243
- ...props,
10244
- children: [getNewChildren(children, props, disabledReason, subTriggerRef), jsx(HintColumn, {
10245
- css: theme => ({
10246
- margin: CONSTANTS.subMenuIconMargin(theme),
10247
- display: 'flex',
10248
- alignSelf: 'stretch',
10249
- alignItems: 'center'
10250
- }),
10251
- children: jsx(ChevronRightIcon, {
10252
- css: theme => ({
10253
- fontSize: CONSTANTS.subMenuIconSize(theme)
10254
- })
10255
- })
10256
- })]
10257
- });
10258
- });
10232
+ }
10259
10233
 
10260
- /**
10261
- * Deprecated. Use `SubTrigger` instead.
10262
- * @deprecated
10263
- */
10264
- const TriggerItem = SubTrigger;
10265
- const CheckboxItem = /*#__PURE__*/forwardRef(function CheckboxItem(_ref8, ref) {
10266
- let {
10267
- children,
10268
- disabledReason,
10269
- ...props
10270
- } = _ref8;
10271
- const flags = useDesignSystemFlags();
10272
- const checkboxItemRef = useRef(null);
10273
- useImperativeHandle(ref, () => checkboxItemRef.current);
10274
- return jsx(DropdownMenu$1.CheckboxItem, {
10275
- ref: checkboxItemRef,
10276
- css: theme => [itemStyles, checkboxItemStyles(theme, flags)],
10277
- ...props,
10278
- children: getNewChildren(children, props, disabledReason, checkboxItemRef)
10279
- });
10280
- });
10281
- const ItemIndicator = /*#__PURE__*/forwardRef(function ItemIndicator(_ref9, ref) {
10282
- let {
10283
- children,
10284
- ...props
10285
- } = _ref9;
10286
- const flags = useDesignSystemFlags();
10287
- return jsx(DropdownMenu$1.ItemIndicator, {
10288
- ref: ref,
10289
- css: theme => ({
10290
- marginLeft: -(CONSTANTS.checkboxIconWidth(theme, flags) + CONSTANTS.checkboxPaddingRight(theme, flags)),
10291
- position: 'absolute',
10292
- ...(!flags.USE_NEW_ICONS && {
10293
- fontSize: 24
10294
- })
10295
- }),
10296
- ...props,
10297
- children: children !== null && children !== void 0 ? children : jsx(CheckIcon, {
10298
- css: theme => ({
10299
- color: theme.colors.textSecondary
10300
- })
10301
- })
10302
- });
10303
- });
10304
- const Arrow = /*#__PURE__*/forwardRef(function Arrow(_ref10, ref) {
10305
- let {
10306
- children,
10234
+ const {
10235
+ Text: AntDText
10236
+ } = Typography$1;
10237
+ function getTextEmotionStyles(theme, props) {
10238
+ return /*#__PURE__*/css({
10239
+ '&&': {
10240
+ fontSize: theme.typography.fontSizeBase,
10241
+ lineHeight: theme.typography.lineHeightBase,
10242
+ color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
10243
+ }
10244
+ }, props.disabled && {
10245
+ '&&': {
10246
+ color: theme.colors.actionDisabledText
10247
+ }
10248
+ }, props.hint && {
10249
+ '&&': {
10250
+ fontSize: theme.typography.fontSizeSm,
10251
+ lineHeight: theme.typography.lineHeightSm
10252
+ }
10253
+ }, props.bold && {
10254
+ '&&': {
10255
+ fontSize: theme.typography.fontSizeBase,
10256
+ fontWeight: theme.typography.typographyBoldFontWeight,
10257
+ lineHeight: theme.typography.lineHeightBase
10258
+ }
10259
+ }, props.code && {
10260
+ '&& > code': {
10261
+ fontSize: theme.typography.fontSizeBase,
10262
+ lineHeight: theme.typography.lineHeightBase,
10263
+ fontWeight: theme.typography.typographyBoldFontWeight,
10264
+ background: theme.colors.typographyCodeBg,
10265
+ fontFamily: 'monospace',
10266
+ borderRadius: theme.borders.borderRadiusMd,
10267
+ padding: '2px 4px',
10268
+ border: 'unset',
10269
+ margin: 0
10270
+ }
10271
+ }, props.size && {
10272
+ '&&': (() => {
10273
+ switch (props.size) {
10274
+ case 'xxl':
10275
+ return {
10276
+ fontSize: theme.typography.fontSizeXxl,
10277
+ lineHeight: theme.typography.lineHeightXxl
10278
+ };
10279
+ case 'xl':
10280
+ return {
10281
+ fontSize: theme.typography.fontSizeXl,
10282
+ lineHeight: theme.typography.lineHeightXl
10283
+ };
10284
+ case 'lg':
10285
+ return {
10286
+ fontSize: theme.typography.fontSizeLg,
10287
+ lineHeight: theme.typography.lineHeightLg
10288
+ };
10289
+ case 'sm':
10290
+ return {
10291
+ fontSize: theme.typography.fontSizeSm,
10292
+ lineHeight: theme.typography.lineHeightSm
10293
+ };
10294
+ default:
10295
+ return {
10296
+ fontSize: theme.typography.fontSizeMd,
10297
+ lineHeight: theme.typography.lineHeightMd
10298
+ };
10299
+ }
10300
+ })()
10301
+ }, props.withoutMargins && {
10302
+ '&&': {
10303
+ marginTop: 0,
10304
+ marginBottom: 0
10305
+ }
10306
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getTextEmotionStyles;");
10307
+ }
10308
+ function Text(userProps) {
10309
+ // Omit props that are not supported by `antd`
10310
+ const {
10311
+ dangerouslySetAntdProps,
10312
+ bold,
10313
+ hint,
10314
+ withoutMargins,
10315
+ color,
10307
10316
  ...props
10308
- } = _ref10;
10317
+ } = userProps;
10309
10318
  const {
10310
10319
  theme
10311
10320
  } = useDesignSystemTheme();
10312
- return jsx(DropdownMenu$1.Arrow, {
10313
- css: /*#__PURE__*/css({
10314
- fill: theme.colors.backgroundPrimary,
10315
- stroke: theme.colors.borderDecorative,
10316
- strokeDashoffset: -CONSTANTS.arrowBottomLength(),
10317
- strokeDasharray: CONSTANTS.arrowBottomLength() + 2 * CONSTANTS.arrowSide(),
10318
- strokeWidth: CONSTANTS.arrowStrokeWidth(),
10319
- // TODO: This is a temporary fix for the alignment of the Arrow;
10320
- // Radix has changed the implementation for v1.0.0 (uses floating-ui)
10321
- // which has new behaviors for alignment that we don't want. Generally
10322
- // we need to fix the arrow to always be aligned to the left of the menu (with
10323
- // offset equal to border radius)
10324
- position: 'relative',
10325
- top: -1
10326
- }, process.env.NODE_ENV === "production" ? "" : ";label:Arrow;"),
10327
- ref: ref,
10328
- width: 12,
10329
- height: 6,
10330
- ...props,
10331
- children: children
10332
- });
10333
- });
10334
- const RadioItem = /*#__PURE__*/forwardRef(function RadioItem(_ref11, ref) {
10335
- let {
10336
- children,
10337
- disabledReason,
10338
- ...props
10339
- } = _ref11;
10340
- const flags = useDesignSystemFlags();
10341
- const radioItemRef = useRef(null);
10342
- useImperativeHandle(ref, () => radioItemRef.current);
10343
- return jsx(DropdownMenu$1.RadioItem, {
10344
- ref: radioItemRef,
10345
- css: theme => [itemStyles, checkboxItemStyles(theme, flags)],
10346
- ...props,
10347
- children: getNewChildren(children, props, disabledReason, radioItemRef)
10321
+ return jsx(DesignSystemAntDConfigProvider, {
10322
+ children: jsx(AntDText, {
10323
+ ...props,
10324
+ className: props.className,
10325
+ css: getTextEmotionStyles(theme, userProps),
10326
+ ...dangerouslySetAntdProps
10327
+ })
10348
10328
  });
10349
- });
10350
-
10351
- // UNWRAPPED RADIX-UI-COMPONENTS
10352
- const Group$1 = DropdownMenu$1.Group;
10353
- const RadioGroup = DropdownMenu$1.RadioGroup;
10354
- const Sub = DropdownMenu$1.Sub;
10329
+ }
10355
10330
 
10356
- // EXTRA COMPONENTS
10357
- const HintColumn = /*#__PURE__*/forwardRef(function HintColumn(_ref12, ref) {
10358
- let {
10359
- children,
10360
- ...props
10361
- } = _ref12;
10362
- return jsx("div", {
10363
- ref: ref,
10364
- css: [metaTextStyles, "margin-left:auto;" + (process.env.NODE_ENV === "production" ? "" : ";label:HintColumn;")],
10365
- ...props,
10366
- children: children
10367
- });
10368
- });
10369
- const HintRow = /*#__PURE__*/forwardRef(function HintRow(_ref13, ref) {
10370
- let {
10371
- children,
10372
- ...props
10373
- } = _ref13;
10374
- return jsx("div", {
10375
- ref: ref,
10376
- css: [metaTextStyles, "min-width:100%;" + (process.env.NODE_ENV === "production" ? "" : ";label:HintRow;")],
10377
- ...props,
10378
- children: children
10379
- });
10380
- });
10381
- const IconWrapper = /*#__PURE__*/forwardRef(function IconWrapper(_ref14, ref) {
10382
- let {
10383
- children,
10384
- ...props
10385
- } = _ref14;
10386
- return jsx("div", {
10387
- ref: ref,
10388
- css: theme => ({
10389
- fontSize: 16,
10390
- color: theme.colors.textSecondary,
10391
- paddingRight: 4
10392
- }),
10393
- ...props,
10394
- children: children
10395
- });
10396
- });
10397
- const getNewChildren = (children, props, disabledReason, ref) => {
10398
- const childCount = Children.count(children);
10399
- const tooltip = jsx(Tooltip, {
10400
- title: disabledReason,
10401
- placement: "right",
10402
- dangerouslySetAntdProps: {
10403
- getPopupContainer: () => ref.current || document.body
10404
- },
10405
- children: jsx("span", {
10406
- css: theme => infoIconStyles(theme),
10407
- children: jsx(InfoBorderIcon, {})
10331
+ const {
10332
+ Title: AntDTitle
10333
+ } = Typography$1;
10334
+ function getLevelStyles(theme, props) {
10335
+ switch (props.level) {
10336
+ case 1:
10337
+ return /*#__PURE__*/css({
10338
+ '&&': {
10339
+ fontSize: theme.typography.fontSizeXxl,
10340
+ lineHeight: theme.typography.lineHeightXxl,
10341
+ fontWeight: theme.typography.typographyBoldFontWeight
10342
+ }
10343
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
10344
+ case 2:
10345
+ return /*#__PURE__*/css({
10346
+ '&&': {
10347
+ fontSize: theme.typography.fontSizeXl,
10348
+ lineHeight: theme.typography.lineHeightXl,
10349
+ fontWeight: theme.typography.typographyBoldFontWeight
10350
+ }
10351
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
10352
+ case 3:
10353
+ return /*#__PURE__*/css({
10354
+ '&&': {
10355
+ fontSize: theme.typography.fontSizeLg,
10356
+ lineHeight: theme.typography.lineHeightLg,
10357
+ fontWeight: theme.typography.typographyBoldFontWeight
10358
+ }
10359
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
10360
+ case 4:
10361
+ default:
10362
+ return /*#__PURE__*/css({
10363
+ '&&': {
10364
+ fontSize: theme.typography.fontSizeMd,
10365
+ lineHeight: theme.typography.lineHeightMd,
10366
+ fontWeight: theme.typography.typographyBoldFontWeight
10367
+ }
10368
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
10369
+ }
10370
+ }
10371
+ function getTitleEmotionStyles(theme, props) {
10372
+ return /*#__PURE__*/css(getLevelStyles(theme, props), {
10373
+ '&&': {
10374
+ color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
10375
+ }
10376
+ }, props.withoutMargins && {
10377
+ '&&': {
10378
+ marginTop: '0 !important',
10379
+ // override general styling
10380
+ marginBottom: '0 !important' // override general styling
10381
+ }
10382
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getTitleEmotionStyles;");
10383
+ }
10384
+ function Title$1(userProps) {
10385
+ const {
10386
+ dangerouslySetAntdProps,
10387
+ withoutMargins,
10388
+ color,
10389
+ ...props
10390
+ } = userProps;
10391
+ const {
10392
+ theme
10393
+ } = useDesignSystemTheme();
10394
+ return jsx(DesignSystemAntDConfigProvider, {
10395
+ children: jsx(AntDTitle, {
10396
+ ...props,
10397
+ className: props.className,
10398
+ css: getTitleEmotionStyles(theme, userProps),
10399
+ ...dangerouslySetAntdProps
10408
10400
  })
10409
10401
  });
10410
- if (childCount === 1) {
10411
- return getChild(children, !!props['disabled'], disabledReason, tooltip, 0, childCount);
10412
- }
10413
- return Children.map(children, (child, idx) => {
10414
- return getChild(child, !!props['disabled'], disabledReason, tooltip, idx, childCount);
10415
- });
10416
- };
10417
- const getChild = (child, isDisabled, disabledReason, tooltip, index, siblingCount) => {
10418
- const HintColumnType = jsx(HintColumn, {}).type;
10419
- const isHintColumnType = !!(child && typeof child !== 'string' && typeof child !== 'number' && typeof child !== 'boolean' && 'type' in child && (child === null || child === void 0 ? void 0 : child.type) === HintColumnType);
10420
- if (isDisabled && disabledReason && child && isHintColumnType) {
10421
- return jsxs(Fragment, {
10422
- children: [tooltip, child]
10423
- });
10424
- } else if (index === siblingCount - 1 && isDisabled && disabledReason) {
10425
- return jsxs(Fragment, {
10426
- children: [child, tooltip]
10402
+ }
10403
+
10404
+ const Typography = /* #__PURE__ */(() => {
10405
+ function Typography(_ref) {
10406
+ let {
10407
+ dangerouslySetAntdProps,
10408
+ ...props
10409
+ } = _ref;
10410
+ return jsx(DesignSystemAntDConfigProvider, {
10411
+ children: jsx(Typography$1, {
10412
+ ...props,
10413
+ ...dangerouslySetAntdProps
10414
+ })
10427
10415
  });
10428
10416
  }
10429
- return child;
10430
- };
10417
+ Typography.Text = Text;
10418
+ Typography.Title = Title$1;
10419
+ Typography.Paragraph = Paragraph$1;
10420
+ Typography.Link = Link;
10421
+ return Typography;
10422
+ })();
10431
10423
 
10432
- // CONSTANTS
10433
- const CONSTANTS = {
10434
- itemPaddingVertical(theme) {
10435
- // The number from the mocks is the midpoint between constants
10436
- return 0.5 * theme.spacing.xs + 0.5 * theme.spacing.sm;
10437
- },
10438
- itemPaddingHorizontal(theme) {
10439
- return theme.spacing.sm;
10440
- },
10441
- checkboxIconWidth(theme, flags) {
10442
- return flags.USE_NEW_ICONS ? theme.general.iconFontSizeNew : theme.spacing.lg;
10443
- },
10444
- checkboxPaddingLeft(theme) {
10445
- return theme.spacing.sm;
10446
- },
10447
- checkboxPaddingRight(theme, flags) {
10448
- return flags.USE_NEW_ICONS ? theme.spacing.sm : theme.spacing.xs;
10449
- },
10450
- subMenuIconMargin(theme) {
10451
- // Negative margin so the icons can be larger without increasing the overall item height
10452
- const iconMarginVertical = this.itemPaddingVertical(theme) / 2;
10453
- const iconMarginRight = -this.itemPaddingVertical(theme) + theme.spacing.sm * 1.5;
10454
- return "".concat(-iconMarginVertical, "px ").concat(-iconMarginRight, "px ").concat(-iconMarginVertical, "px auto");
10455
- },
10456
- subMenuIconSize(theme) {
10457
- return theme.spacing.lg;
10458
- },
10459
- arrowBottomLength() {
10460
- // The built in arrow is a polygon: 0,0 30,0 15,10
10461
- return 30;
10462
- },
10463
- arrowHeight() {
10464
- return 10;
10465
- },
10466
- arrowSide() {
10467
- return 2 * (this.arrowHeight() ** 2 * 2) ** 0.5;
10468
- },
10469
- arrowStrokeWidth() {
10470
- // This is eyeballed b/c relative to the svg viewbox coordinate system
10471
- return 2;
10472
- }
10424
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$6() { 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)."; }
10425
+ const DEFAULT_WIDTH$1 = 320;
10426
+ const MIN_WIDTH = 320;
10427
+ const MAX_WIDTH = '90vw';
10428
+ const DEFAULT_POSITION = 'right';
10429
+ const ZINDEX_OVERLAY = 10;
10430
+ const ZINDEX_CONTENT = ZINDEX_OVERLAY + 10;
10431
+ var _ref2$2 = process.env.NODE_ENV === "production" ? {
10432
+ name: "1tflovp",
10433
+ styles: "flex-grow:1;margin-bottom:0;margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
10434
+ } : {
10435
+ name: "1bqm4qg-Content",
10436
+ styles: "flex-grow:1;margin-bottom:0;margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;label:Content;",
10437
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
10473
10438
  };
10474
- const dropdownContentStyles = theme => ({
10475
- backgroundColor: theme.colors.backgroundPrimary,
10476
- color: theme.colors.textPrimary,
10477
- lineHeight: theme.typography.lineHeightBase,
10478
- border: "1px solid ".concat(theme.colors.borderDecorative),
10479
- borderRadius: theme.borders.borderRadiusMd,
10480
- padding: "".concat(theme.spacing.xs, "px 0"),
10481
- boxShadow: theme.themeName !== 'dark' ? "0px 4px 16px 0px rgba(205, 218, 229, 1)" : undefined,
10482
- userSelect: 'none',
10483
- // Ant Design uses 1000s for their zIndex space; this ensures Radix works with that, but
10484
- // we'll likely need to be sure that all Radix components are using the same zIndex going forward.
10485
- zIndex: 2000,
10486
- a: importantify({
10487
- color: theme.colors.textPrimary,
10488
- '&:hover, &:focus': {
10489
- color: theme.colors.textPrimary
10490
- }
10491
- })
10492
- });
10493
- const contentStyles = theme => ({
10494
- ...dropdownContentStyles(theme)
10495
- });
10496
- const itemStyles = theme => ({
10497
- padding: "".concat(CONSTANTS.itemPaddingVertical(theme), "px ").concat(CONSTANTS.itemPaddingHorizontal(theme), "px"),
10498
- display: 'flex',
10499
- flexWrap: 'wrap',
10500
- alignItems: 'center',
10501
- outline: 'unset',
10502
- '&:hover': {
10503
- cursor: 'pointer'
10504
- },
10505
- '&:focus': {
10506
- backgroundColor: theme.colors.actionTertiaryBackgroundHover
10507
- },
10508
- '&[data-disabled]': {
10509
- pointerEvents: 'none',
10510
- color: theme.colors.actionDisabledText
10511
- }
10512
- });
10513
- const dangerItemStyles = theme => ({
10514
- color: theme.colors.textValidationDanger,
10515
- '&:hover, &:focus': {
10516
- backgroundColor: theme.colors.actionDangerDefaultBackgroundHover
10517
- }
10518
- });
10519
- const infoIconStyles = theme => ({
10520
- display: 'inline-flex',
10521
- paddingLeft: theme.spacing.xs,
10522
- color: theme.colors.textSecondary,
10523
- pointerEvents: 'all'
10524
- });
10525
- const checkboxItemStyles = (theme, flags) => ({
10526
- paddingLeft: CONSTANTS.checkboxIconWidth(theme, flags) + CONSTANTS.checkboxPaddingLeft(theme) + CONSTANTS.checkboxPaddingRight(theme, flags)
10527
- });
10528
- const metaTextStyles = theme => ({
10529
- color: theme.colors.textSecondary,
10530
- fontSize: theme.typography.fontSizeSm,
10531
- '[data-disabled] &': {
10532
- color: theme.colors.actionDisabledText
10533
- }
10534
- });
10535
-
10536
- var DropdownMenu = /*#__PURE__*/Object.freeze({
10537
- __proto__: null,
10538
- Root: Root,
10539
- Content: Content$2,
10540
- SubContent: SubContent,
10541
- Trigger: Trigger,
10542
- Item: Item,
10543
- Label: Label$1,
10544
- Separator: Separator,
10545
- SubTrigger: SubTrigger,
10546
- TriggerItem: TriggerItem,
10547
- CheckboxItem: CheckboxItem,
10548
- ItemIndicator: ItemIndicator,
10549
- Arrow: Arrow,
10550
- RadioItem: RadioItem,
10551
- Group: Group$1,
10552
- RadioGroup: RadioGroup,
10553
- Sub: Sub,
10554
- HintColumn: HintColumn,
10555
- HintRow: HintRow,
10556
- IconWrapper: IconWrapper,
10557
- dropdownContentStyles: dropdownContentStyles
10558
- });
10439
+ const Content$4 = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
10440
+ let {
10441
+ children,
10442
+ footer,
10443
+ title,
10444
+ width,
10445
+ position: positionOverride,
10446
+ useCustomScrollBehavior
10447
+ } = _ref;
10448
+ const {
10449
+ theme
10450
+ } = useDesignSystemTheme();
10451
+ const rightContentPadding = theme.spacing.lg; // matches left/top/bottom padding
10559
10452
 
10560
- const getLinkStyles = (theme, clsPrefix, useNewIcons) => {
10561
- const classTypography = ".".concat(clsPrefix, "-typography");
10562
- const styles = {
10563
- ["&".concat(classTypography, ", &").concat(classTypography, ":focus")]: {
10564
- color: theme.colors.actionTertiaryTextDefault
10565
- },
10566
- ["&".concat(classTypography, ":hover, &").concat(classTypography, ":hover .anticon")]: {
10567
- color: theme.colors.actionTertiaryTextHover,
10568
- textDecoration: 'underline'
10569
- },
10570
- ["&".concat(classTypography, ":active, &").concat(classTypography, ":active .anticon")]: {
10571
- color: theme.colors.actionTertiaryTextPress,
10572
- textDecoration: 'underline'
10453
+ const position = positionOverride !== null && positionOverride !== void 0 ? positionOverride : DEFAULT_POSITION;
10454
+ const overlayShow = position === 'right' ? keyframes({
10455
+ '0%': {
10456
+ transform: 'translate(100%, 0)'
10573
10457
  },
10574
- ["&".concat(classTypography, ":focus-visible")]: {
10575
- textDecoration: 'underline'
10458
+ '100%': {
10459
+ transform: 'translate(0, 0)'
10460
+ }
10461
+ }) : keyframes({
10462
+ '0%': {
10463
+ transform: 'translate(-100%, 0)'
10576
10464
  },
10577
- ...(useNewIcons && {
10578
- '.anticon': {
10579
- fontSize: 12
10580
- }
10581
- })
10582
- };
10583
- return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getLinkStyles;");
10584
- };
10585
- const getEllipsisNewTabLinkStyles = () => {
10586
- const styles = {
10587
- paddingRight: 'calc(2px + 1em)',
10588
- // 1em for icon
10589
- position: 'relative'
10590
- };
10591
- return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisNewTabLinkStyles;");
10592
- };
10593
- const getIconStyles = theme => {
10594
- const styles = {
10595
- marginLeft: 2,
10596
- color: theme.colors.actionTertiaryTextDefault
10597
- };
10598
- return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getIconStyles;");
10599
- };
10600
- const getEllipsisIconStyles = useNewIcons => {
10601
- const styles = {
10602
- position: 'absolute',
10603
- right: 0,
10604
- bottom: 0,
10465
+ '100%': {
10466
+ transform: 'translate(0, 0)'
10467
+ }
10468
+ });
10469
+ const dialogPrimitiveContentStyle = /*#__PURE__*/css({
10470
+ color: theme.colors.textPrimary,
10471
+ backgroundColor: theme.colors.backgroundPrimary,
10472
+ boxShadow: 'hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px',
10473
+ position: 'fixed',
10605
10474
  top: 0,
10606
- display: 'flex',
10607
- alignItems: 'center',
10608
- ...(useNewIcons && {
10609
- fontSize: 12
10610
- })
10611
- };
10612
- return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisIconStyles;");
10613
- };
10614
- function Link(_ref) {
10475
+ left: position === 'left' ? 0 : undefined,
10476
+ right: position === 'right' ? 0 : undefined,
10477
+ boxSizing: 'border-box',
10478
+ width: width !== null && width !== void 0 ? width : DEFAULT_WIDTH$1,
10479
+ minWidth: MIN_WIDTH,
10480
+ maxWidth: MAX_WIDTH,
10481
+ zIndex: theme.options.zIndexBase + ZINDEX_CONTENT,
10482
+ height: '100vh',
10483
+ // in order to have specific content in the drawer scroll with fixed title
10484
+ // hide overflow here and remove padding on the right side; content will be responsible for setting right padding
10485
+ // so that the scrollbar will appear in the padding right gutter
10486
+ paddingTop: theme.spacing.md,
10487
+ paddingLeft: theme.spacing.lg,
10488
+ paddingBottom: 0,
10489
+ paddingRight: 0,
10490
+ overflow: 'hidden',
10491
+ '&:focus': {
10492
+ outline: 'none'
10493
+ },
10494
+ '@media (prefers-reduced-motion: no-preference)': {
10495
+ animation: "".concat(overlayShow, " 350ms cubic-bezier(0.16, 1, 0.3, 1)")
10496
+ }
10497
+ }, process.env.NODE_ENV === "production" ? "" : ";label:dialogPrimitiveContentStyle;");
10498
+ return jsxs(Fragment, {
10499
+ children: [jsx(DialogPrimitive.Overlay, {
10500
+ css: /*#__PURE__*/css({
10501
+ backgroundColor: theme.colors.overlayOverlay,
10502
+ position: 'fixed',
10503
+ inset: 0,
10504
+ // needed so that it covers the PersonaNavSidebar
10505
+ zIndex: theme.options.zIndexBase + ZINDEX_OVERLAY
10506
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Content;")
10507
+ }), jsxs(DialogPrimitive.DialogContent, {
10508
+ css: dialogPrimitiveContentStyle,
10509
+ style: {
10510
+ display: 'flex',
10511
+ flexDirection: 'column',
10512
+ justifyContent: 'flex-start'
10513
+ },
10514
+ ref: ref,
10515
+ children: [jsxs("div", {
10516
+ css: /*#__PURE__*/css({
10517
+ flexGrow: 0,
10518
+ flexShrink: 1,
10519
+ display: 'flex',
10520
+ flexDirection: 'row',
10521
+ justifyContent: 'space-between',
10522
+ alignItems: 'center',
10523
+ paddingRight: rightContentPadding,
10524
+ marginBottom: theme.spacing.sm
10525
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Content;"),
10526
+ children: [jsx(DialogPrimitive.Title, {
10527
+ title: typeof title === 'string' ? title : undefined,
10528
+ asChild: typeof title === 'string',
10529
+ css: _ref2$2,
10530
+ children: typeof title === 'string' ? jsx(Typography.Title, {
10531
+ level: 2,
10532
+ withoutMargins: true,
10533
+ ellipsis: true,
10534
+ children: title
10535
+ }) : title
10536
+ }), jsx(DialogPrimitive.Close, {
10537
+ asChild: true,
10538
+ css: /*#__PURE__*/css({
10539
+ flexShrink: 1,
10540
+ marginLeft: theme.spacing.xs
10541
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Content;"),
10542
+ children: jsx(Button, {
10543
+ "aria-label": "Close",
10544
+ icon: jsx(CloseIcon, {})
10545
+ })
10546
+ })]
10547
+ }), jsxs("div", {
10548
+ css: /*#__PURE__*/css({
10549
+ paddingRight: useCustomScrollBehavior ? 0 : rightContentPadding,
10550
+ overflowY: useCustomScrollBehavior ? 'hidden' : 'auto',
10551
+ ...(theme.themeName === 'default' && !useCustomScrollBehavior ? {
10552
+ // Achieves an inner shadow on the content, but only when there is more left to scroll. When the content fits
10553
+ // in the container without scrolling, no shadow will be shown.
10554
+ // Taken from: https://css-tricks.com/scroll-shadows-with-javascript/
10555
+ background: "linear-gradient(\n white 30%,\n rgba(255, 255, 255, 0)\n ) center top,\n \n linear-gradient(\n rgba(255, 255, 255, 0),\n white 70%\n ) center bottom,\n \n radial-gradient(\n farthest-side at 50% 0,\n rgba(0, 0, 0, 0.2),\n rgba(0, 0, 0, 0)\n ) center top,\n \n radial-gradient(\n farthest-side at 50% 100%,\n rgba(0, 0, 0, 0.2),\n rgba(0, 0, 0, 0)\n ) center bottom",
10556
+ backgroundRepeat: 'no-repeat',
10557
+ backgroundSize: '100% 40px, 100% 40px, 100% 14px, 100% 14px',
10558
+ backgroundAttachment: 'local, local, scroll, scroll'
10559
+ } : {})
10560
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Content;"),
10561
+ children: [children, !footer && jsx(Spacer, {
10562
+ size: "lg"
10563
+ })]
10564
+ }), footer && jsx("div", {
10565
+ style: {
10566
+ paddingTop: theme.spacing.md,
10567
+ paddingRight: rightContentPadding,
10568
+ paddingBottom: theme.spacing.lg,
10569
+ flexGrow: 0,
10570
+ flexShrink: 1
10571
+ },
10572
+ children: footer
10573
+ })]
10574
+ })]
10575
+ });
10576
+ });
10577
+ function Root$2(props) {
10578
+ return jsx(DialogPrimitive.Root, {
10579
+ ...props
10580
+ });
10581
+ }
10582
+ function Trigger$2(props) {
10583
+ return jsx(DialogPrimitive.Trigger, {
10584
+ asChild: true,
10585
+ ...props
10586
+ });
10587
+ }
10588
+
10589
+ var Drawer = /*#__PURE__*/Object.freeze({
10590
+ __proto__: null,
10591
+ Content: Content$4,
10592
+ Root: Root$2,
10593
+ Trigger: Trigger$2
10594
+ });
10595
+
10596
+ /**
10597
+ * @deprecated Use `DropdownMenu` instead.
10598
+ */
10599
+ const Dropdown = _ref => {
10615
10600
  let {
10616
10601
  dangerouslySetAntdProps,
10617
10602
  ...props
10618
10603
  } = _ref;
10619
10604
  const {
10605
+ theme
10606
+ } = useDesignSystemTheme();
10607
+ return jsx(DesignSystemAntDConfigProvider, {
10608
+ children: jsx(Dropdown$1, {
10609
+ mouseLeaveDelay: 0.25,
10610
+ ...props,
10611
+ overlayStyle: {
10612
+ zIndex: theme.options.zIndexBase + 50,
10613
+ ...props.overlayStyle
10614
+ },
10615
+ ...dangerouslySetAntdProps
10616
+ })
10617
+ });
10618
+ };
10619
+
10620
+ const Tooltip = _ref => {
10621
+ let {
10620
10622
  children,
10621
- openInNewTab,
10622
- ...restProps
10623
- } = props;
10623
+ title,
10624
+ placement = 'top',
10625
+ dataTestId,
10626
+ dangerouslySetAntdProps,
10627
+ ...props
10628
+ } = _ref;
10624
10629
  const {
10625
- theme,
10626
- classNamePrefix
10630
+ theme
10627
10631
  } = useDesignSystemTheme();
10628
- const {
10629
- USE_NEW_ICONS: useNewIcons
10630
- } = useDesignSystemFlags();
10631
- const newTabProps = {
10632
- rel: 'noopener noreferrer',
10633
- target: '_blank'
10634
- };
10635
- const linkProps = openInNewTab ? {
10636
- ...restProps,
10637
- ...newTabProps
10638
- } : {
10639
- ...restProps
10640
- };
10641
- const linkStyles = props.ellipsis && openInNewTab ? [getLinkStyles(theme, classNamePrefix, useNewIcons), getEllipsisNewTabLinkStyles()] : getLinkStyles(theme, classNamePrefix, useNewIcons);
10642
- const iconStyles = props.ellipsis ? [getIconStyles(theme), getEllipsisIconStyles()] : getIconStyles(theme);
10632
+ if (!title) {
10633
+ return jsx(React__default.Fragment, {
10634
+ children: children
10635
+ });
10636
+ }
10643
10637
  return jsx(DesignSystemAntDConfigProvider, {
10644
- children: jsxs(Typography$1.Link, {
10645
- css: linkStyles,
10646
- ...linkProps,
10638
+ children: jsx(Tooltip$1
10639
+ // eslint-disable-next-line react/forbid-dom-props -- FEINF-1337 - this should turn into data-testid
10640
+ , {
10641
+ title: jsx("span", {
10642
+ "data-test-id": dataTestId,
10643
+ children: title
10644
+ }),
10645
+ placement: placement
10646
+ // Always trigger on hover and focus
10647
+ ,
10648
+ trigger: ['hover', 'focus'],
10649
+ overlayInnerStyle: {
10650
+ backgroundColor: '#2F3941',
10651
+ lineHeight: '22px',
10652
+ padding: '4px 8px'
10653
+ },
10654
+ overlayStyle: {
10655
+ zIndex: theme.options.zIndexBase + 70
10656
+ },
10657
+ css: getAnimationCss(theme.options.enableAnimation),
10647
10658
  ...dangerouslySetAntdProps,
10648
- children: [children, openInNewTab ? jsx(NewWindowIcon, {
10649
- css: iconStyles,
10650
- ...newTabProps
10651
- }) : null]
10659
+ ...props,
10660
+ children: children
10661
+ })
10662
+ });
10663
+ };
10664
+
10665
+ const Root$1 = DropdownMenu$1.Root; // Behavioral component only
10666
+
10667
+ const Content$3 = /*#__PURE__*/forwardRef(function Content(_ref, ref) {
10668
+ let {
10669
+ children,
10670
+ minWidth = 220,
10671
+ ...props
10672
+ } = _ref;
10673
+ const {
10674
+ getPopupContainer
10675
+ } = useDesignSystemContext();
10676
+ return jsx(DropdownMenu$1.Portal, {
10677
+ container: getPopupContainer && getPopupContainer(),
10678
+ children: jsx(DropdownMenu$1.Content, {
10679
+ ref: ref,
10680
+ css: [contentStyles$1, {
10681
+ minWidth
10682
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Content;"],
10683
+ sideOffset: 4,
10684
+ align: "start",
10685
+ ...props,
10686
+ children: children
10652
10687
  })
10653
10688
  });
10654
- }
10655
-
10656
- const {
10657
- Paragraph: AntDParagraph
10658
- } = Typography$1;
10659
- function getParagraphEmotionStyles(theme, props) {
10660
- return /*#__PURE__*/css({
10661
- '&&': {
10662
- fontSize: theme.typography.fontSizeBase,
10663
- lineHeight: theme.typography.lineHeightBase,
10664
- color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
10665
- }
10666
- }, props.disabled && {
10667
- '&&': {
10668
- color: theme.colors.actionDisabledText
10669
- }
10670
- }, props.withoutMargins && {
10671
- '&&': {
10672
- marginTop: 0,
10673
- marginBottom: 0
10674
- }
10675
- }, process.env.NODE_ENV === "production" ? "" : ";label:getParagraphEmotionStyles;");
10676
- }
10677
- function Paragraph$1(userProps) {
10678
- const {
10679
- dangerouslySetAntdProps,
10680
- withoutMargins,
10681
- color,
10689
+ });
10690
+ const SubContent = /*#__PURE__*/forwardRef(function Content(_ref2, ref) {
10691
+ let {
10692
+ children,
10693
+ minWidth = 220,
10694
+ ...props
10695
+ } = _ref2;
10696
+ const {
10697
+ getPopupContainer
10698
+ } = useDesignSystemContext();
10699
+ return jsx(DropdownMenu$1.Portal, {
10700
+ container: getPopupContainer && getPopupContainer(),
10701
+ children: jsx(DropdownMenu$1.SubContent, {
10702
+ ref: ref,
10703
+ css: [contentStyles$1, {
10704
+ minWidth
10705
+ }, process.env.NODE_ENV === "production" ? "" : ";label:SubContent;"],
10706
+ sideOffset: -2,
10707
+ alignOffset: -5,
10708
+ ...props,
10709
+ children: children
10710
+ })
10711
+ });
10712
+ });
10713
+ const Trigger$1 = /*#__PURE__*/forwardRef(function Trigger(_ref3, ref) {
10714
+ let {
10715
+ children,
10716
+ ...props
10717
+ } = _ref3;
10718
+ return jsx(DropdownMenu$1.Trigger, {
10719
+ ref: ref,
10720
+ ...props,
10721
+ children: children
10722
+ });
10723
+ });
10724
+ const Item = /*#__PURE__*/forwardRef(function Item(_ref4, ref) {
10725
+ let {
10726
+ children,
10727
+ disabledReason,
10728
+ danger,
10729
+ ...props
10730
+ } = _ref4;
10731
+ const itemRef = useRef(null);
10732
+ useImperativeHandle(ref, () => itemRef.current);
10733
+ return jsx(DropdownMenu$1.Item, {
10734
+ css: theme => [itemStyles, danger && dangerItemStyles(theme)],
10735
+ ref: itemRef,
10736
+ ...props,
10737
+ children: getNewChildren(children, props, disabledReason, itemRef)
10738
+ });
10739
+ });
10740
+ const Label$1 = /*#__PURE__*/forwardRef(function Label(_ref5, ref) {
10741
+ let {
10742
+ children,
10743
+ ...props
10744
+ } = _ref5;
10745
+ return jsx(DropdownMenu$1.Label, {
10746
+ ref: ref,
10747
+ css: [itemStyles, theme => ({
10748
+ color: theme.colors.textSecondary,
10749
+ '&:hover': {
10750
+ cursor: 'default'
10751
+ }
10752
+ }), process.env.NODE_ENV === "production" ? "" : ";label:Label;"],
10753
+ ...props,
10754
+ children: children
10755
+ });
10756
+ });
10757
+ const Separator = /*#__PURE__*/forwardRef(function Separator(_ref6, ref) {
10758
+ let {
10759
+ children,
10760
+ ...props
10761
+ } = _ref6;
10762
+ return jsx(DropdownMenu$1.Separator, {
10763
+ ref: ref,
10764
+ css: theme => ({
10765
+ height: 1,
10766
+ margin: "".concat(theme.spacing.xs, "px ").concat(theme.spacing.sm, "px"),
10767
+ backgroundColor: theme.colors.borderDecorative
10768
+ }),
10769
+ ...props,
10770
+ children: children
10771
+ });
10772
+ });
10773
+ const SubTrigger = /*#__PURE__*/forwardRef(function TriggerItem(_ref7, ref) {
10774
+ let {
10775
+ children,
10776
+ disabledReason,
10777
+ ...props
10778
+ } = _ref7;
10779
+ const subTriggerRef = useRef(null);
10780
+ useImperativeHandle(ref, () => subTriggerRef.current);
10781
+ return jsxs(DropdownMenu$1.SubTrigger, {
10782
+ ref: subTriggerRef,
10783
+ css: [itemStyles, theme => ({
10784
+ '&[data-state="open"]': {
10785
+ backgroundColor: theme.colors.actionTertiaryBackgroundHover
10786
+ }
10787
+ }), process.env.NODE_ENV === "production" ? "" : ";label:SubTrigger;"],
10788
+ ...props,
10789
+ children: [getNewChildren(children, props, disabledReason, subTriggerRef), jsx(HintColumn, {
10790
+ css: theme => ({
10791
+ margin: CONSTANTS$1.subMenuIconMargin(theme),
10792
+ display: 'flex',
10793
+ alignSelf: 'stretch',
10794
+ alignItems: 'center'
10795
+ }),
10796
+ children: jsx(ChevronRightIcon, {
10797
+ css: theme => ({
10798
+ fontSize: CONSTANTS$1.subMenuIconSize(theme)
10799
+ })
10800
+ })
10801
+ })]
10802
+ });
10803
+ });
10804
+
10805
+ /**
10806
+ * Deprecated. Use `SubTrigger` instead.
10807
+ * @deprecated
10808
+ */
10809
+ const TriggerItem = SubTrigger;
10810
+ const CheckboxItem = /*#__PURE__*/forwardRef(function CheckboxItem(_ref8, ref) {
10811
+ let {
10812
+ children,
10813
+ disabledReason,
10814
+ ...props
10815
+ } = _ref8;
10816
+ const flags = useDesignSystemFlags();
10817
+ const checkboxItemRef = useRef(null);
10818
+ useImperativeHandle(ref, () => checkboxItemRef.current);
10819
+ return jsx(DropdownMenu$1.CheckboxItem, {
10820
+ ref: checkboxItemRef,
10821
+ css: theme => [itemStyles, checkboxItemStyles(theme, flags)],
10822
+ ...props,
10823
+ children: getNewChildren(children, props, disabledReason, checkboxItemRef)
10824
+ });
10825
+ });
10826
+ const ItemIndicator = /*#__PURE__*/forwardRef(function ItemIndicator(_ref9, ref) {
10827
+ let {
10828
+ children,
10682
10829
  ...props
10683
- } = userProps;
10684
- const {
10685
- theme
10686
- } = useDesignSystemTheme();
10687
- return jsx(DesignSystemAntDConfigProvider, {
10688
- children: jsx(AntDParagraph, {
10689
- ...props,
10690
- className: props.className,
10691
- css: getParagraphEmotionStyles(theme, userProps),
10692
- ...dangerouslySetAntdProps
10830
+ } = _ref9;
10831
+ const flags = useDesignSystemFlags();
10832
+ return jsx(DropdownMenu$1.ItemIndicator, {
10833
+ ref: ref,
10834
+ css: theme => ({
10835
+ marginLeft: -(CONSTANTS$1.checkboxIconWidth(theme, flags) + CONSTANTS$1.checkboxPaddingRight(theme, flags)),
10836
+ position: 'absolute',
10837
+ ...(!flags.USE_NEW_ICONS && {
10838
+ fontSize: 24
10839
+ })
10840
+ }),
10841
+ ...props,
10842
+ children: children !== null && children !== void 0 ? children : jsx(CheckIcon, {
10843
+ css: theme => ({
10844
+ color: theme.colors.textSecondary
10845
+ })
10693
10846
  })
10694
10847
  });
10695
- }
10696
-
10697
- const {
10698
- Text: AntDText
10699
- } = Typography$1;
10700
- function getTextEmotionStyles(theme, props) {
10701
- return /*#__PURE__*/css({
10702
- '&&': {
10703
- fontSize: theme.typography.fontSizeBase,
10704
- lineHeight: theme.typography.lineHeightBase,
10705
- color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
10706
- }
10707
- }, props.disabled && {
10708
- '&&': {
10709
- color: theme.colors.actionDisabledText
10710
- }
10711
- }, props.hint && {
10712
- '&&': {
10713
- fontSize: theme.typography.fontSizeSm,
10714
- lineHeight: theme.typography.lineHeightSm
10715
- }
10716
- }, props.bold && {
10717
- '&&': {
10718
- fontSize: theme.typography.fontSizeBase,
10719
- fontWeight: theme.typography.typographyBoldFontWeight,
10720
- lineHeight: theme.typography.lineHeightBase
10721
- }
10722
- }, props.code && {
10723
- '&& > code': {
10724
- fontSize: theme.typography.fontSizeBase,
10725
- lineHeight: theme.typography.lineHeightBase,
10726
- fontWeight: theme.typography.typographyBoldFontWeight,
10727
- background: theme.colors.typographyCodeBg,
10728
- fontFamily: 'monospace',
10729
- borderRadius: theme.borders.borderRadiusMd,
10730
- padding: '2px 4px',
10731
- border: 'unset',
10732
- margin: 0
10733
- }
10734
- }, props.size && {
10735
- '&&': (() => {
10736
- switch (props.size) {
10737
- case 'xxl':
10738
- return {
10739
- fontSize: theme.typography.fontSizeXxl,
10740
- lineHeight: theme.typography.lineHeightXxl
10741
- };
10742
- case 'xl':
10743
- return {
10744
- fontSize: theme.typography.fontSizeXl,
10745
- lineHeight: theme.typography.lineHeightXl
10746
- };
10747
- case 'lg':
10748
- return {
10749
- fontSize: theme.typography.fontSizeLg,
10750
- lineHeight: theme.typography.lineHeightLg
10751
- };
10752
- case 'sm':
10753
- return {
10754
- fontSize: theme.typography.fontSizeSm,
10755
- lineHeight: theme.typography.lineHeightSm
10756
- };
10757
- default:
10758
- return {
10759
- fontSize: theme.typography.fontSizeMd,
10760
- lineHeight: theme.typography.lineHeightMd
10761
- };
10762
- }
10763
- })()
10764
- }, props.withoutMargins && {
10765
- '&&': {
10766
- marginTop: 0,
10767
- marginBottom: 0
10768
- }
10769
- }, process.env.NODE_ENV === "production" ? "" : ";label:getTextEmotionStyles;");
10770
- }
10771
- function Text(userProps) {
10772
- // Omit props that are not supported by `antd`
10773
- const {
10774
- dangerouslySetAntdProps,
10775
- bold,
10776
- hint,
10777
- withoutMargins,
10778
- color,
10848
+ });
10849
+ const Arrow$1 = /*#__PURE__*/forwardRef(function Arrow(_ref10, ref) {
10850
+ let {
10851
+ children,
10779
10852
  ...props
10780
- } = userProps;
10853
+ } = _ref10;
10781
10854
  const {
10782
10855
  theme
10783
10856
  } = useDesignSystemTheme();
10784
- return jsx(DesignSystemAntDConfigProvider, {
10785
- children: jsx(AntDText, {
10786
- ...props,
10787
- className: props.className,
10788
- css: getTextEmotionStyles(theme, userProps),
10789
- ...dangerouslySetAntdProps
10790
- })
10857
+ return jsx(DropdownMenu$1.Arrow, {
10858
+ css: /*#__PURE__*/css({
10859
+ fill: theme.colors.backgroundPrimary,
10860
+ stroke: theme.colors.borderDecorative,
10861
+ strokeDashoffset: -CONSTANTS$1.arrowBottomLength(),
10862
+ strokeDasharray: CONSTANTS$1.arrowBottomLength() + 2 * CONSTANTS$1.arrowSide(),
10863
+ strokeWidth: CONSTANTS$1.arrowStrokeWidth(),
10864
+ // TODO: This is a temporary fix for the alignment of the Arrow;
10865
+ // Radix has changed the implementation for v1.0.0 (uses floating-ui)
10866
+ // which has new behaviors for alignment that we don't want. Generally
10867
+ // we need to fix the arrow to always be aligned to the left of the menu (with
10868
+ // offset equal to border radius)
10869
+ position: 'relative',
10870
+ top: -1
10871
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Arrow;"),
10872
+ ref: ref,
10873
+ width: 12,
10874
+ height: 6,
10875
+ ...props,
10876
+ children: children
10791
10877
  });
10792
- }
10878
+ });
10879
+ const RadioItem = /*#__PURE__*/forwardRef(function RadioItem(_ref11, ref) {
10880
+ let {
10881
+ children,
10882
+ disabledReason,
10883
+ ...props
10884
+ } = _ref11;
10885
+ const flags = useDesignSystemFlags();
10886
+ const radioItemRef = useRef(null);
10887
+ useImperativeHandle(ref, () => radioItemRef.current);
10888
+ return jsx(DropdownMenu$1.RadioItem, {
10889
+ ref: radioItemRef,
10890
+ css: theme => [itemStyles, checkboxItemStyles(theme, flags)],
10891
+ ...props,
10892
+ children: getNewChildren(children, props, disabledReason, radioItemRef)
10893
+ });
10894
+ });
10793
10895
 
10794
- const {
10795
- Title: AntDTitle
10796
- } = Typography$1;
10797
- function getLevelStyles(theme, props) {
10798
- switch (props.level) {
10799
- case 1:
10800
- return /*#__PURE__*/css({
10801
- '&&': {
10802
- fontSize: theme.typography.fontSizeXxl,
10803
- lineHeight: theme.typography.lineHeightXxl,
10804
- fontWeight: theme.typography.typographyBoldFontWeight
10805
- }
10806
- }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
10807
- case 2:
10808
- return /*#__PURE__*/css({
10809
- '&&': {
10810
- fontSize: theme.typography.fontSizeXl,
10811
- lineHeight: theme.typography.lineHeightXl,
10812
- fontWeight: theme.typography.typographyBoldFontWeight
10813
- }
10814
- }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
10815
- case 3:
10816
- return /*#__PURE__*/css({
10817
- '&&': {
10818
- fontSize: theme.typography.fontSizeLg,
10819
- lineHeight: theme.typography.lineHeightLg,
10820
- fontWeight: theme.typography.typographyBoldFontWeight
10821
- }
10822
- }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
10823
- case 4:
10824
- default:
10825
- return /*#__PURE__*/css({
10826
- '&&': {
10827
- fontSize: theme.typography.fontSizeMd,
10828
- lineHeight: theme.typography.lineHeightMd,
10829
- fontWeight: theme.typography.typographyBoldFontWeight
10830
- }
10831
- }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
10832
- }
10833
- }
10834
- function getTitleEmotionStyles(theme, props) {
10835
- return /*#__PURE__*/css(getLevelStyles(theme, props), {
10836
- '&&': {
10837
- color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
10838
- }
10839
- }, props.withoutMargins && {
10840
- '&&': {
10841
- marginTop: '0 !important',
10842
- // override general styling
10843
- marginBottom: '0 !important' // override general styling
10844
- }
10845
- }, process.env.NODE_ENV === "production" ? "" : ";label:getTitleEmotionStyles;");
10846
- }
10847
- function Title$1(userProps) {
10848
- const {
10849
- dangerouslySetAntdProps,
10850
- withoutMargins,
10851
- color,
10896
+ // UNWRAPPED RADIX-UI-COMPONENTS
10897
+ const Group$2 = DropdownMenu$1.Group;
10898
+ const RadioGroup = DropdownMenu$1.RadioGroup;
10899
+ const Sub = DropdownMenu$1.Sub;
10900
+
10901
+ // EXTRA COMPONENTS
10902
+ const HintColumn = /*#__PURE__*/forwardRef(function HintColumn(_ref12, ref) {
10903
+ let {
10904
+ children,
10852
10905
  ...props
10853
- } = userProps;
10854
- const {
10855
- theme
10856
- } = useDesignSystemTheme();
10857
- return jsx(DesignSystemAntDConfigProvider, {
10858
- children: jsx(AntDTitle, {
10859
- ...props,
10860
- className: props.className,
10861
- css: getTitleEmotionStyles(theme, userProps),
10862
- ...dangerouslySetAntdProps
10906
+ } = _ref12;
10907
+ return jsx("div", {
10908
+ ref: ref,
10909
+ css: [metaTextStyles, "margin-left:auto;" + (process.env.NODE_ENV === "production" ? "" : ";label:HintColumn;")],
10910
+ ...props,
10911
+ children: children
10912
+ });
10913
+ });
10914
+ const HintRow = /*#__PURE__*/forwardRef(function HintRow(_ref13, ref) {
10915
+ let {
10916
+ children,
10917
+ ...props
10918
+ } = _ref13;
10919
+ return jsx("div", {
10920
+ ref: ref,
10921
+ css: [metaTextStyles, "min-width:100%;" + (process.env.NODE_ENV === "production" ? "" : ";label:HintRow;")],
10922
+ ...props,
10923
+ children: children
10924
+ });
10925
+ });
10926
+ const IconWrapper = /*#__PURE__*/forwardRef(function IconWrapper(_ref14, ref) {
10927
+ let {
10928
+ children,
10929
+ ...props
10930
+ } = _ref14;
10931
+ return jsx("div", {
10932
+ ref: ref,
10933
+ css: theme => ({
10934
+ fontSize: 16,
10935
+ color: theme.colors.textSecondary,
10936
+ paddingRight: 4
10937
+ }),
10938
+ ...props,
10939
+ children: children
10940
+ });
10941
+ });
10942
+ const getNewChildren = (children, props, disabledReason, ref) => {
10943
+ const childCount = Children.count(children);
10944
+ const tooltip = jsx(Tooltip, {
10945
+ title: disabledReason,
10946
+ placement: "right",
10947
+ dangerouslySetAntdProps: {
10948
+ getPopupContainer: () => ref.current || document.body
10949
+ },
10950
+ children: jsx("span", {
10951
+ css: theme => infoIconStyles(theme),
10952
+ children: jsx(InfoBorderIcon, {})
10863
10953
  })
10864
10954
  });
10865
- }
10866
-
10867
- const Typography = /* #__PURE__ */(() => {
10868
- function Typography(_ref) {
10869
- let {
10870
- dangerouslySetAntdProps,
10871
- ...props
10872
- } = _ref;
10873
- return jsx(DesignSystemAntDConfigProvider, {
10874
- children: jsx(Typography$1, {
10875
- ...props,
10876
- ...dangerouslySetAntdProps
10877
- })
10955
+ if (childCount === 1) {
10956
+ return getChild(children, !!props['disabled'], disabledReason, tooltip, 0, childCount);
10957
+ }
10958
+ return Children.map(children, (child, idx) => {
10959
+ return getChild(child, !!props['disabled'], disabledReason, tooltip, idx, childCount);
10960
+ });
10961
+ };
10962
+ const getChild = (child, isDisabled, disabledReason, tooltip, index, siblingCount) => {
10963
+ const HintColumnType = jsx(HintColumn, {}).type;
10964
+ const isHintColumnType = !!(child && typeof child !== 'string' && typeof child !== 'number' && typeof child !== 'boolean' && 'type' in child && (child === null || child === void 0 ? void 0 : child.type) === HintColumnType);
10965
+ if (isDisabled && disabledReason && child && isHintColumnType) {
10966
+ return jsxs(Fragment, {
10967
+ children: [tooltip, child]
10968
+ });
10969
+ } else if (index === siblingCount - 1 && isDisabled && disabledReason) {
10970
+ return jsxs(Fragment, {
10971
+ children: [child, tooltip]
10878
10972
  });
10879
10973
  }
10880
- Typography.Text = Text;
10881
- Typography.Title = Title$1;
10882
- Typography.Paragraph = Paragraph$1;
10883
- Typography.Link = Link;
10884
- return Typography;
10885
- })();
10974
+ return child;
10975
+ };
10976
+
10977
+ // CONSTANTS
10978
+ const CONSTANTS$1 = {
10979
+ itemPaddingVertical(theme) {
10980
+ // The number from the mocks is the midpoint between constants
10981
+ return 0.5 * theme.spacing.xs + 0.5 * theme.spacing.sm;
10982
+ },
10983
+ itemPaddingHorizontal(theme) {
10984
+ return theme.spacing.sm;
10985
+ },
10986
+ checkboxIconWidth(theme, flags) {
10987
+ return flags.USE_NEW_ICONS ? theme.general.iconFontSizeNew : theme.spacing.lg;
10988
+ },
10989
+ checkboxPaddingLeft(theme) {
10990
+ return theme.spacing.sm;
10991
+ },
10992
+ checkboxPaddingRight(theme, flags) {
10993
+ return flags.USE_NEW_ICONS ? theme.spacing.sm : theme.spacing.xs;
10994
+ },
10995
+ subMenuIconMargin(theme) {
10996
+ // Negative margin so the icons can be larger without increasing the overall item height
10997
+ const iconMarginVertical = this.itemPaddingVertical(theme) / 2;
10998
+ const iconMarginRight = -this.itemPaddingVertical(theme) + theme.spacing.sm * 1.5;
10999
+ return "".concat(-iconMarginVertical, "px ").concat(-iconMarginRight, "px ").concat(-iconMarginVertical, "px auto");
11000
+ },
11001
+ subMenuIconSize(theme) {
11002
+ return theme.spacing.lg;
11003
+ },
11004
+ arrowBottomLength() {
11005
+ // The built in arrow is a polygon: 0,0 30,0 15,10
11006
+ return 30;
11007
+ },
11008
+ arrowHeight() {
11009
+ return 10;
11010
+ },
11011
+ arrowSide() {
11012
+ return 2 * (this.arrowHeight() ** 2 * 2) ** 0.5;
11013
+ },
11014
+ arrowStrokeWidth() {
11015
+ // This is eyeballed b/c relative to the svg viewbox coordinate system
11016
+ return 2;
11017
+ }
11018
+ };
11019
+ const dropdownContentStyles = theme => ({
11020
+ backgroundColor: theme.colors.backgroundPrimary,
11021
+ color: theme.colors.textPrimary,
11022
+ lineHeight: theme.typography.lineHeightBase,
11023
+ border: "1px solid ".concat(theme.colors.borderDecorative),
11024
+ borderRadius: theme.borders.borderRadiusMd,
11025
+ padding: "".concat(theme.spacing.xs, "px 0"),
11026
+ boxShadow: theme.themeName !== 'dark' ? "0px 4px 16px 0px rgba(205, 218, 229, 1)" : undefined,
11027
+ userSelect: 'none',
11028
+ // Ant Design uses 1000s for their zIndex space; this ensures Radix works with that, but
11029
+ // we'll likely need to be sure that all Radix components are using the same zIndex going forward.
11030
+ //
11031
+ // Additionally, there is an issue where macOS overlay scrollbars in Chrome and Safari (sometimes!)
11032
+ // overlap other elements with higher zIndex, because the scrollbars themselves have zIndex 9999,
11033
+ // so we have to use a higher value than that: https://github.com/databricks/universe/pull/232825
11034
+ zIndex: 10000,
11035
+ a: importantify({
11036
+ color: theme.colors.textPrimary,
11037
+ '&:hover, &:focus': {
11038
+ color: theme.colors.textPrimary
11039
+ }
11040
+ })
11041
+ });
11042
+ const contentStyles$1 = theme => ({
11043
+ ...dropdownContentStyles(theme)
11044
+ });
11045
+ const itemStyles = theme => ({
11046
+ padding: "".concat(CONSTANTS$1.itemPaddingVertical(theme), "px ").concat(CONSTANTS$1.itemPaddingHorizontal(theme), "px"),
11047
+ display: 'flex',
11048
+ flexWrap: 'wrap',
11049
+ alignItems: 'center',
11050
+ outline: 'unset',
11051
+ '&:hover': {
11052
+ cursor: 'pointer'
11053
+ },
11054
+ '&:focus': {
11055
+ backgroundColor: theme.colors.actionTertiaryBackgroundHover
11056
+ },
11057
+ '&[data-disabled]': {
11058
+ pointerEvents: 'none',
11059
+ color: theme.colors.actionDisabledText
11060
+ }
11061
+ });
11062
+ const dangerItemStyles = theme => ({
11063
+ color: theme.colors.textValidationDanger,
11064
+ '&:hover, &:focus': {
11065
+ backgroundColor: theme.colors.actionDangerDefaultBackgroundHover
11066
+ }
11067
+ });
11068
+ const infoIconStyles = theme => ({
11069
+ display: 'inline-flex',
11070
+ paddingLeft: theme.spacing.xs,
11071
+ color: theme.colors.textSecondary,
11072
+ pointerEvents: 'all'
11073
+ });
11074
+ const checkboxItemStyles = (theme, flags) => ({
11075
+ paddingLeft: CONSTANTS$1.checkboxIconWidth(theme, flags) + CONSTANTS$1.checkboxPaddingLeft(theme) + CONSTANTS$1.checkboxPaddingRight(theme, flags)
11076
+ });
11077
+ const metaTextStyles = theme => ({
11078
+ color: theme.colors.textSecondary,
11079
+ fontSize: theme.typography.fontSizeSm,
11080
+ '[data-disabled] &': {
11081
+ color: theme.colors.actionDisabledText
11082
+ }
11083
+ });
11084
+
11085
+ var DropdownMenu = /*#__PURE__*/Object.freeze({
11086
+ __proto__: null,
11087
+ Root: Root$1,
11088
+ Content: Content$3,
11089
+ SubContent: SubContent,
11090
+ Trigger: Trigger$1,
11091
+ Item: Item,
11092
+ Label: Label$1,
11093
+ Separator: Separator,
11094
+ SubTrigger: SubTrigger,
11095
+ TriggerItem: TriggerItem,
11096
+ CheckboxItem: CheckboxItem,
11097
+ ItemIndicator: ItemIndicator,
11098
+ Arrow: Arrow$1,
11099
+ RadioItem: RadioItem,
11100
+ Group: Group$2,
11101
+ RadioGroup: RadioGroup,
11102
+ Sub: Sub,
11103
+ HintColumn: HintColumn,
11104
+ HintRow: HintRow,
11105
+ IconWrapper: IconWrapper,
11106
+ dropdownContentStyles: dropdownContentStyles
11107
+ });
10886
11108
 
10887
11109
  function _EMOTION_STRINGIFIED_CSS_ERROR__$5() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
10888
11110
  const {
@@ -10942,9 +11164,11 @@ const Empty = props => {
10942
11164
  description,
10943
11165
  image = jsx(GridDashIcon, {}),
10944
11166
  button,
10945
- dangerouslyAppendEmotionCSS
11167
+ dangerouslyAppendEmotionCSS,
11168
+ ...dataProps
10946
11169
  } = props;
10947
11170
  return jsx("div", {
11171
+ ...dataProps,
10948
11172
  css: _ref$3,
10949
11173
  children: jsxs("div", {
10950
11174
  css: [getEmptyStyles(theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Empty;"],
@@ -11354,7 +11578,7 @@ const DuboisInput = /*#__PURE__*/forwardRef(function Input(_ref4, ref) {
11354
11578
  })
11355
11579
  });
11356
11580
  });
11357
- const Group = _ref5 => {
11581
+ const Group$1 = _ref5 => {
11358
11582
  let {
11359
11583
  dangerouslySetAntdProps,
11360
11584
  dangerouslyAppendEmotionCSS,
@@ -11378,7 +11602,7 @@ const Group = _ref5 => {
11378
11602
  const InputNamespace = /* #__PURE__ */Object.assign(DuboisInput, {
11379
11603
  TextArea,
11380
11604
  Password,
11381
- Group
11605
+ Group: Group$1
11382
11606
  });
11383
11607
  const Input = InputNamespace;
11384
11608
 
@@ -11387,67 +11611,24 @@ const Input = InputNamespace;
11387
11611
  // since these will be exposed in the library's exports.
11388
11612
  const __INTERNAL_DO_NOT_USE__TextArea = TextArea;
11389
11613
  const __INTERNAL_DO_NOT_USE__Password = Password;
11390
- const __INTERNAL_DO_NOT_USE_DEDUPE__Group = Group;
11614
+ const __INTERNAL_DO_NOT_USE_DEDUPE__Group = Group$1;
11391
11615
 
11392
- const verticalGroupEmotionStyles = _ref => {
11616
+ const getRadioInputStyles = _ref => {
11393
11617
  let {
11394
- theme,
11395
11618
  clsPrefix,
11396
- isBold
11397
- } = _ref;
11398
- return /*#__PURE__*/css(importantify({
11399
- display: 'flex',
11400
- flexDirection: 'column',
11401
- flexWrap: 'wrap',
11402
- '& > label': {
11403
- fontWeight: isBold ? theme.typography.typographyBoldFontWeight : 'normal'
11404
- // TODO(FEINF-1496): Uncomment, removed for now to avoid impacting app with V2 changes
11405
- // paddingBottom: theme.spacing.sm,
11406
- },
11407
-
11408
- ["& > label + .".concat(clsPrefix, "-hint")]: {
11409
- // TODO(FEINF-1496): Uncomment, removed for now to avoid impacting app with V2 changes
11410
- // marginTop: `-${theme.spacing.sm}px`,
11411
- marginBottom: theme.spacing.sm,
11412
- paddingLeft: theme.spacing.lg
11413
- }
11414
- }), process.env.NODE_ENV === "production" ? "" : ";label:verticalGroupEmotionStyles;");
11415
- };
11416
- const radioOverrideEmotionStyles = _ref2 => {
11417
- let {
11418
11619
  theme,
11419
- clsPrefix,
11420
- classNamePrefix,
11421
- isBold
11422
- } = _ref2;
11423
- return /*#__PURE__*/css({
11424
- '&&': {
11425
- display: 'grid',
11426
- gridTemplateRows: '[label] auto [hint] auto',
11427
- gridAutoColumns: 'max-content',
11428
- // TODO(FEINF-1496): Uncomment, removed for now to avoid impacting app with V2 changes
11429
- // gridColumnGap: theme.spacing.md,
11430
- gridColumnGap: theme.spacing.sm
11431
- },
11432
- '& > label': {
11433
- fontWeight: isBold ? theme.typography.typographyBoldFontWeight : 'normal',
11434
- gridRow: 'label / label',
11435
- marginRight: 0
11436
- },
11437
- ["& > label + .".concat(classNamePrefix, "-hint")]: {
11438
- display: 'inline-block',
11439
- gridRow: 'hint / hint',
11440
- paddingLeft: theme.spacing.lg
11441
- },
11620
+ useNewStyles
11621
+ } = _ref;
11622
+ return {
11442
11623
  [".".concat(clsPrefix)]: {
11443
11624
  alignSelf: 'start',
11444
11625
  // Unchecked Styles
11445
11626
  ["> .".concat(clsPrefix, "-input + .").concat(clsPrefix, "-inner")]: {
11446
11627
  width: theme.spacing.md,
11447
11628
  height: theme.spacing.md,
11448
- background: theme.colors.radioDefaultBackground,
11629
+ background: useNewStyles ? theme.colors.actionDefaultBackgroundDefault : theme.colors.radioDefaultBackground,
11449
11630
  borderStyle: 'solid',
11450
- borderColor: theme.colors.radioDefaultBorder,
11631
+ borderColor: useNewStyles ? theme.colors.actionDefaultBorderDefault : theme.colors.radioDefaultBorder,
11451
11632
  boxShadow: 'unset',
11452
11633
  transform: 'unset',
11453
11634
  // This prevents an awkward jitter on the border
@@ -11461,21 +11642,27 @@ const radioOverrideEmotionStyles = _ref2 => {
11461
11642
  },
11462
11643
  // Hover
11463
11644
  ["&:not(.".concat(clsPrefix, "-disabled) > .").concat(clsPrefix, "-input:hover + .").concat(clsPrefix, "-inner")]: {
11464
- borderColor: theme.colors.radioInteractiveHover,
11465
- background: theme.colors.radioInteractiveHoverSecondary
11645
+ borderColor: useNewStyles ? theme.colors.actionPrimaryBackgroundHover : theme.colors.radioInteractiveHover,
11646
+ background: useNewStyles ? theme.colors.actionDefaultBackgroundHover : theme.colors.radioInteractiveHoverSecondary
11466
11647
  },
11467
11648
  // Focus
11468
11649
  ["&:not(.".concat(clsPrefix, "-disabled)> .").concat(clsPrefix, "-input:focus + .").concat(clsPrefix, "-inner")]: {
11469
- borderColor: theme.colors.primary
11650
+ borderColor: useNewStyles ? theme.colors.actionPrimaryBackgroundDefault : theme.colors.primary
11470
11651
  },
11471
11652
  // Active
11472
11653
  ["&:not(.".concat(clsPrefix, "-disabled)> .").concat(clsPrefix, "-input:active + .").concat(clsPrefix, "-inner")]: {
11473
- borderColor: theme.colors.radioInteractivePress,
11474
- background: theme.colors.radioInteractivePressSecondary
11654
+ borderColor: useNewStyles ? theme.colors.actionPrimaryBackgroundPress : theme.colors.radioInteractivePress,
11655
+ background: useNewStyles ? theme.colors.actionDefaultBackgroundPress : theme.colors.radioInteractivePressSecondary
11475
11656
  },
11476
11657
  // Disabled
11477
11658
  ["&.".concat(clsPrefix, "-disabled > .").concat(clsPrefix, "-input + .").concat(clsPrefix, "-inner")]: {
11478
- borderColor: "".concat(theme.colors.radioDisabled, "!important") // Ant uses !important
11659
+ ...(useNewStyles ? {
11660
+ border: "none !important",
11661
+ // Ant uses !important
11662
+ background: theme.colors.actionDisabledBackground
11663
+ } : {
11664
+ borderColor: "".concat(theme.colors.radioDisabled, "!important") // Ant uses !important
11665
+ })
11479
11666
  },
11480
11667
 
11481
11668
  // Checked Styles
@@ -11484,69 +11671,163 @@ const radioOverrideEmotionStyles = _ref2 => {
11484
11671
  border: 'unset'
11485
11672
  },
11486
11673
  ["> .".concat(clsPrefix, "-input + .").concat(clsPrefix, "-inner")]: {
11487
- background: theme.colors.primary,
11674
+ background: useNewStyles ? theme.colors.actionPrimaryBackgroundDefault : theme.colors.primary,
11488
11675
  borderColor: theme.colors.primary,
11489
11676
  '&:after': {
11490
11677
  content: "\"\"",
11491
11678
  borderRadius: theme.spacing.xs,
11492
- backgroundColor: theme.colors.radioDefaultBackground,
11679
+ backgroundColor: useNewStyles ? theme.colors.white : theme.colors.radioDefaultBackground,
11493
11680
  width: theme.spacing.xs,
11494
11681
  height: theme.spacing.xs
11495
11682
  }
11496
11683
  },
11497
11684
  // Hover
11498
11685
  ["&:not(.".concat(clsPrefix, "-disabled) > .").concat(clsPrefix, "-input:hover + .").concat(clsPrefix, "-inner")]: {
11499
- background: theme.colors.radioInteractiveHover,
11500
- borderColor: theme.colors.radioInteractiveHover
11686
+ background: useNewStyles ? theme.colors.actionPrimaryBackgroundHover : theme.colors.radioInteractiveHover,
11687
+ borderColor: useNewStyles ? theme.colors.actionPrimaryBackgroundPress : theme.colors.radioInteractiveHover
11501
11688
  },
11502
11689
  // Focus
11503
11690
  ["&:not(.".concat(clsPrefix, "-disabled) > .").concat(clsPrefix, "-input:focus-visible + .").concat(clsPrefix, "-inner")]: {
11504
- background: theme.colors.primary,
11505
- borderColor: theme.colors.primary,
11506
- boxShadow: "0 0 0 1px ".concat(theme.colors.radioDefaultBackground, ", 0 0 0 3px ").concat(theme.colors.primary)
11691
+ background: useNewStyles ? theme.colors.actionDefaultBackgroundPress : theme.colors.primary,
11692
+ borderColor: useNewStyles ? theme.colors.actionDefaultBorderFocus : theme.colors.primary,
11693
+ boxShadow: "0 0 0 1px ".concat(useNewStyles ? theme.colors.actionDefaultBackgroundDefault : theme.colors.radioDefaultBackground, ", 0 0 0 3px ").concat(theme.colors.primary)
11507
11694
  },
11508
11695
  // Active
11509
11696
  ["&:not(.".concat(clsPrefix, "-disabled) > .").concat(clsPrefix, "-input:active + .").concat(clsPrefix, "-inner")]: {
11510
- background: theme.colors.radioInteractivePress,
11511
- borderColor: theme.colors.radioInteractivePress
11697
+ background: useNewStyles ? theme.colors.actionDefaultBackgroundPress : theme.colors.radioInteractivePress,
11698
+ borderColor: useNewStyles ? theme.colors.actionDefaultBorderPress : theme.colors.radioInteractivePress
11512
11699
  },
11513
11700
  // Disabled
11514
11701
  ["&.".concat(clsPrefix, "-disabled > .").concat(clsPrefix, "-input + .").concat(clsPrefix, "-inner")]: {
11515
- background: "".concat(theme.colors.radioDisabled),
11516
- border: "2px solid ".concat(theme.colors.radioDisabled, "!important") // !important inherited from ant
11702
+ background: useNewStyles ? theme.colors.actionDisabledBackground : theme.colors.radioDisabled,
11703
+ border: useNewStyles ? 'none !important' : "2px solid ".concat(theme.colors.radioDisabled, "!important") // !important inherited from ant
11704
+ }
11705
+ }
11706
+ }
11707
+ };
11708
+ };
11709
+
11710
+ const getCommonRadioGroupStyles = _ref2 => {
11711
+ let {
11712
+ theme,
11713
+ clsPrefix,
11714
+ classNamePrefix,
11715
+ useNewStyles
11716
+ } = _ref2;
11717
+ return /*#__PURE__*/css({
11718
+ '& > label': {
11719
+ ...(useNewStyles && {
11720
+ ["&.".concat(classNamePrefix, "-radio-wrapper-disabled > span")]: {
11721
+ color: theme.colors.textPrimary
11517
11722
  }
11518
- }
11723
+ })
11519
11724
  },
11520
-
11725
+ ["& > label + .".concat(classNamePrefix, "-hint")]: {
11726
+ paddingLeft: theme.spacing.lg
11727
+ },
11728
+ ...getRadioInputStyles({
11729
+ theme,
11730
+ clsPrefix,
11731
+ useNewStyles
11732
+ }),
11521
11733
  ...getAnimationCss(theme.options.enableAnimation)
11522
- }, process.env.NODE_ENV === "production" ? "" : ";label:radioOverrideEmotionStyles;");
11734
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getCommonRadioGroupStyles;");
11523
11735
  };
11524
- const getRadioStyles = _ref3 => {
11736
+ const getHorizontalRadioGroupStyles = _ref3 => {
11525
11737
  let {
11526
11738
  theme,
11527
- isBold
11739
+ classNamePrefix,
11740
+ useNewStyles
11528
11741
  } = _ref3;
11529
- const styles = {
11742
+ return /*#__PURE__*/css({
11530
11743
  '&&': {
11531
- fontWeight: isBold ? theme.typography.typographyBoldFontWeight : 'normal'
11744
+ display: 'grid',
11745
+ gridTemplateRows: '[label] auto [hint] auto',
11746
+ gridAutoColumns: 'max-content',
11747
+ gridColumnGap: useNewStyles ? theme.spacing.md : theme.spacing.sm
11748
+ },
11749
+ '& > label': {
11750
+ gridRow: 'label / label',
11751
+ marginRight: 0
11752
+ },
11753
+ ["& > label + .".concat(classNamePrefix, "-hint")]: {
11754
+ display: 'inline-block',
11755
+ gridRow: 'hint / hint'
11756
+ }
11757
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getHorizontalRadioGroupStyles;");
11758
+ };
11759
+ const getVerticalRadioGroupStyles = _ref4 => {
11760
+ let {
11761
+ theme,
11762
+ classNamePrefix,
11763
+ useNewStyles
11764
+ } = _ref4;
11765
+ return /*#__PURE__*/css({
11766
+ display: 'flex',
11767
+ flexDirection: 'column',
11768
+ flexWrap: 'wrap',
11769
+ '& > label': {
11770
+ fontWeight: 'normal',
11771
+ ...(useNewStyles && {
11772
+ paddingBottom: theme.spacing.sm
11773
+ })
11774
+ },
11775
+ ["& > label:last-of-type"]: {
11776
+ paddingBottom: 0
11777
+ },
11778
+ ["& > label + .".concat(classNamePrefix, "-hint")]: {
11779
+ marginBottom: theme.spacing.sm,
11780
+ paddingLeft: theme.spacing.lg,
11781
+ ...(useNewStyles && {
11782
+ marginTop: "-".concat(theme.spacing.sm, "px")
11783
+ })
11784
+ },
11785
+ ["& > label:last-of-type + .".concat(classNamePrefix, "-hint")]: {
11786
+ ...(useNewStyles && {
11787
+ marginTop: 0
11788
+ })
11532
11789
  }
11790
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getVerticalRadioGroupStyles;");
11791
+ };
11792
+ const getRadioStyles = _ref5 => {
11793
+ let {
11794
+ theme,
11795
+ clsPrefix,
11796
+ useNewStyles
11797
+ } = _ref5;
11798
+ // Default as bold for standalone radios
11799
+ const fontWeight = 'normal';
11800
+ const styles = {
11801
+ fontWeight
11533
11802
  };
11534
- return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:getRadioStyles;");
11803
+ return /*#__PURE__*/css({
11804
+ ...getRadioInputStyles({
11805
+ theme,
11806
+ clsPrefix,
11807
+ useNewStyles
11808
+ }),
11809
+ ...styles
11810
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getRadioStyles;");
11535
11811
  };
11536
- const DuboisRadio = /*#__PURE__*/forwardRef(function Radio(_ref4, ref) {
11812
+ const DuboisRadio = /*#__PURE__*/forwardRef(function Radio(_ref6, ref) {
11537
11813
  let {
11538
11814
  dangerouslySetAntdProps,
11539
- isBold = false,
11540
11815
  ...props
11541
- } = _ref4;
11816
+ } = _ref6;
11542
11817
  const {
11543
- theme
11818
+ theme,
11819
+ getPrefixedClassName
11544
11820
  } = useDesignSystemTheme();
11821
+ const {
11822
+ USE_NEW_RADIO_STYLES
11823
+ } = useDesignSystemFlags();
11824
+ const clsPrefix = getPrefixedClassName('radio');
11545
11825
  return jsx(DesignSystemAntDConfigProvider, {
11546
11826
  children: jsx(Radio$1, {
11547
11827
  css: getRadioStyles({
11548
11828
  theme,
11549
- isBold
11829
+ clsPrefix,
11830
+ useNewStyles: USE_NEW_RADIO_STYLES
11550
11831
  }),
11551
11832
  ...props,
11552
11833
  ...dangerouslySetAntdProps,
@@ -11554,59 +11835,80 @@ const DuboisRadio = /*#__PURE__*/forwardRef(function Radio(_ref4, ref) {
11554
11835
  })
11555
11836
  });
11556
11837
  });
11557
- const StyledRadioGroup = /*#__PURE__*/forwardRef(function StyledRadioGroup(_ref5, ref) {
11838
+ const StyledRadioGroup = /*#__PURE__*/forwardRef(function StyledRadioGroup(_ref7, ref) {
11558
11839
  let {
11559
11840
  dangerouslySetAntdProps,
11560
- isBold = false,
11561
11841
  ...props
11562
- } = _ref5;
11842
+ } = _ref7;
11563
11843
  const {
11564
11844
  theme,
11565
11845
  getPrefixedClassName,
11566
11846
  classNamePrefix
11567
11847
  } = useDesignSystemTheme();
11848
+ const {
11849
+ USE_NEW_RADIO_STYLES
11850
+ } = useDesignSystemFlags();
11568
11851
  const clsPrefix = getPrefixedClassName('radio');
11569
11852
  return jsx(DesignSystemAntDConfigProvider, {
11570
11853
  children: jsx(Radio$1.Group, {
11571
11854
  ...props,
11572
- css: radioOverrideEmotionStyles({
11855
+ css: getCommonRadioGroupStyles({
11573
11856
  theme,
11574
11857
  clsPrefix,
11575
11858
  classNamePrefix,
11576
- isBold
11859
+ useNewStyles: USE_NEW_RADIO_STYLES
11577
11860
  }),
11578
11861
  ...dangerouslySetAntdProps,
11579
11862
  ref: ref
11580
11863
  })
11581
11864
  });
11582
11865
  });
11583
- const VerticalGroup = /*#__PURE__*/forwardRef(function VerticalGroup(_ref6, ref) {
11866
+ const HorizontalGroup = /*#__PURE__*/forwardRef(function HorizontalGroup(_ref8, ref) {
11584
11867
  let {
11585
11868
  dangerouslySetAntdProps,
11586
- isBold = false,
11587
11869
  ...props
11588
- } = _ref6;
11870
+ } = _ref8;
11589
11871
  const {
11590
11872
  theme,
11591
11873
  classNamePrefix
11592
11874
  } = useDesignSystemTheme();
11875
+ const {
11876
+ USE_NEW_RADIO_STYLES
11877
+ } = useDesignSystemFlags();
11593
11878
  return jsx(StyledRadioGroup, {
11594
- css: verticalGroupEmotionStyles({
11879
+ css: getHorizontalRadioGroupStyles({
11595
11880
  theme,
11596
- clsPrefix: classNamePrefix,
11597
- isBold
11881
+ classNamePrefix,
11882
+ useNewStyles: USE_NEW_RADIO_STYLES
11598
11883
  }),
11599
11884
  ...props,
11600
11885
  ref: ref,
11601
11886
  ...dangerouslySetAntdProps
11602
11887
  });
11603
11888
  });
11604
- const HorizontalGroup = /*#__PURE__*/forwardRef(function HorizontalGroup(_ref7, ref) {
11889
+ const Group = /*#__PURE__*/forwardRef(function HorizontalGroup(_ref9, ref) {
11605
11890
  let {
11606
11891
  dangerouslySetAntdProps,
11892
+ layout = 'vertical',
11607
11893
  ...props
11608
- } = _ref7;
11894
+ } = _ref9;
11895
+ const {
11896
+ theme,
11897
+ classNamePrefix
11898
+ } = useDesignSystemTheme();
11899
+ const {
11900
+ USE_NEW_RADIO_STYLES
11901
+ } = useDesignSystemFlags();
11609
11902
  return jsx(StyledRadioGroup, {
11903
+ css: layout === 'horizontal' ? getHorizontalRadioGroupStyles({
11904
+ theme,
11905
+ classNamePrefix,
11906
+ useNewStyles: USE_NEW_RADIO_STYLES
11907
+ }) : getVerticalRadioGroupStyles({
11908
+ theme,
11909
+ classNamePrefix,
11910
+ useNewStyles: USE_NEW_RADIO_STYLES
11911
+ }),
11610
11912
  ...props,
11611
11913
  ref: ref,
11612
11914
  ...dangerouslySetAntdProps
@@ -11615,7 +11917,7 @@ const HorizontalGroup = /*#__PURE__*/forwardRef(function HorizontalGroup(_ref7,
11615
11917
 
11616
11918
  // Note: We are overriding ant's default "Group" with our own.
11617
11919
  const RadioNamespace = /* #__PURE__ */Object.assign(DuboisRadio, {
11618
- Group: VerticalGroup,
11920
+ Group,
11619
11921
  HorizontalGroup
11620
11922
  });
11621
11923
  const Radio = RadioNamespace;
@@ -11625,7 +11927,7 @@ const Radio = RadioNamespace;
11625
11927
  // since these will be exposed in the library's exports.
11626
11928
  // We should ideally be using __Group instead of __VerticalGroup, but that exists under Checkbox too and conflicts, therefore
11627
11929
  // we show a wrong component name in "Show code" in docs, fix included in story to replace this with correct name
11628
- const __INTERNAL_DO_NOT_USE__VerticalGroup = VerticalGroup;
11930
+ const __INTERNAL_DO_NOT_USE__VerticalGroup = Group;
11629
11931
  const __INTERNAL_DO_NOT_USE__HorizontalGroup = HorizontalGroup;
11630
11932
 
11631
11933
  function getSelectEmotionStyles(_ref) {
@@ -11717,6 +12019,7 @@ function getSelectEmotionStyles(_ref) {
11717
12019
  [classSelector]: {
11718
12020
  outlineColor: theme.colors.actionPrimaryBackgroundDefault,
11719
12021
  outlineWidth: 2,
12022
+ outlineOffset: -2,
11720
12023
  outlineStyle: 'solid',
11721
12024
  borderColor: 'transparent',
11722
12025
  boxShadow: 'none'
@@ -11984,6 +12287,7 @@ function DuboisSelect(_ref2, ref) {
11984
12287
  optionFilterProp,
11985
12288
  dangerouslySetAntdProps,
11986
12289
  virtual,
12290
+ dropdownClassName,
11987
12291
  ...restProps
11988
12292
  } = _ref2;
11989
12293
  const {
@@ -12035,7 +12339,7 @@ function DuboisSelect(_ref2, ref) {
12035
12339
  }),
12036
12340
  children: "No results found"
12037
12341
  }),
12038
- dropdownClassName: css$1(getDropdownStyles(clsPrefix, theme, USE_NEW_SELECT_DROPDOWN_STYLES, useNewIcons)),
12342
+ dropdownClassName: css$1([getDropdownStyles(clsPrefix, theme, USE_NEW_SELECT_DROPDOWN_STYLES, useNewIcons), dropdownClassName]),
12039
12343
  maxTagPlaceholder: items => "+ ".concat(items.length, " more"),
12040
12344
  mode: mode,
12041
12345
  options: options,
@@ -12251,7 +12555,7 @@ function RHFControlledInput(_ref) {
12251
12555
  defaultValue: restProps.defaultValue
12252
12556
  });
12253
12557
  }
12254
- function RHFControlledSelect(_ref2) {
12558
+ function RHFControlledPasswordInput(_ref2) {
12255
12559
  let {
12256
12560
  name,
12257
12561
  control,
@@ -12265,6 +12569,48 @@ function RHFControlledSelect(_ref2) {
12265
12569
  control: control,
12266
12570
  rules: rules
12267
12571
  });
12572
+ return jsx(Input.Password, {
12573
+ ...restProps,
12574
+ ...field,
12575
+ value: field.value,
12576
+ defaultValue: restProps.defaultValue
12577
+ });
12578
+ }
12579
+ function RHFControlledTextArea(_ref3) {
12580
+ let {
12581
+ name,
12582
+ control,
12583
+ rules,
12584
+ ...restProps
12585
+ } = _ref3;
12586
+ const {
12587
+ field
12588
+ } = useController({
12589
+ name: name,
12590
+ control: control,
12591
+ rules: rules
12592
+ });
12593
+ return jsx(Input.TextArea, {
12594
+ ...restProps,
12595
+ ...field,
12596
+ value: field.value,
12597
+ defaultValue: restProps.defaultValue
12598
+ });
12599
+ }
12600
+ function RHFControlledSelect(_ref4) {
12601
+ let {
12602
+ name,
12603
+ control,
12604
+ rules,
12605
+ ...restProps
12606
+ } = _ref4;
12607
+ const {
12608
+ field
12609
+ } = useController({
12610
+ name: name,
12611
+ control: control,
12612
+ rules: rules
12613
+ });
12268
12614
  return jsx(Select, {
12269
12615
  ...restProps,
12270
12616
  ...field,
@@ -12272,13 +12618,13 @@ function RHFControlledSelect(_ref2) {
12272
12618
  defaultValue: field.value
12273
12619
  });
12274
12620
  }
12275
- function RHFControlledCheckboxGroup(_ref3) {
12621
+ function RHFControlledCheckboxGroup(_ref5) {
12276
12622
  let {
12277
12623
  name,
12278
12624
  control,
12279
12625
  rules,
12280
12626
  ...restProps
12281
- } = _ref3;
12627
+ } = _ref5;
12282
12628
  const {
12283
12629
  field
12284
12630
  } = useController({
@@ -12292,13 +12638,13 @@ function RHFControlledCheckboxGroup(_ref3) {
12292
12638
  value: field.value
12293
12639
  });
12294
12640
  }
12295
- function RHFControlledRadioGroup(_ref4) {
12641
+ function RHFControlledRadioGroup(_ref6) {
12296
12642
  let {
12297
12643
  name,
12298
12644
  control,
12299
12645
  rules,
12300
12646
  ...restProps
12301
- } = _ref4;
12647
+ } = _ref6;
12302
12648
  const {
12303
12649
  field
12304
12650
  } = useController({
@@ -12311,13 +12657,13 @@ function RHFControlledRadioGroup(_ref4) {
12311
12657
  ...field
12312
12658
  });
12313
12659
  }
12314
- function RHFControlledSwitch(_ref5) {
12660
+ function RHFControlledSwitch(_ref7) {
12315
12661
  let {
12316
12662
  name,
12317
12663
  control,
12318
12664
  rules,
12319
12665
  ...restProps
12320
- } = _ref5;
12666
+ } = _ref7;
12321
12667
  const {
12322
12668
  field: {
12323
12669
  value,
@@ -12336,6 +12682,8 @@ function RHFControlledSwitch(_ref5) {
12336
12682
  }
12337
12683
  const RHFControlledComponents = {
12338
12684
  Input: RHFControlledInput,
12685
+ Password: RHFControlledPasswordInput,
12686
+ TextArea: RHFControlledTextArea,
12339
12687
  Select: RHFControlledSelect,
12340
12688
  CheckboxGroup: RHFControlledCheckboxGroup,
12341
12689
  RadioGroup: RHFControlledRadioGroup,
@@ -12486,7 +12834,7 @@ const {
12486
12834
  Header,
12487
12835
  Footer,
12488
12836
  Sider,
12489
- Content: Content$1
12837
+ Content: Content$2
12490
12838
  } = Layout$1;
12491
12839
  const Layout = /* #__PURE__ */(() => {
12492
12840
  const Layout = _ref => {
@@ -12554,7 +12902,7 @@ const Layout = /* #__PURE__ */(() => {
12554
12902
  ...props
12555
12903
  } = _ref5;
12556
12904
  return jsx(DesignSystemAntDConfigProvider, {
12557
- children: jsx(Content$1, {
12905
+ children: jsx(Content$2, {
12558
12906
  ...props,
12559
12907
  children: jsx(RestoreAntDDefaultClsPrefix, {
12560
12908
  children: children
@@ -12666,7 +13014,8 @@ const getModalEmotionStyles = args => {
12666
13014
  lineHeight: 'normal',
12667
13015
  display: 'flex',
12668
13016
  alignItems: 'center',
12669
- justifyContent: 'center'
13017
+ justifyContent: 'center',
13018
+ color: theme.colors.textSecondary
12670
13019
  },
12671
13020
  [classNameClose]: {
12672
13021
  height: BUTTON_SIZE,
@@ -13136,7 +13485,7 @@ const Popover = _ref => {
13136
13485
  theme
13137
13486
  } = useDesignSystemTheme();
13138
13487
  return jsx(DesignSystemAntDConfigProvider, {
13139
- children: jsx(Popover$1, {
13488
+ children: jsx(Popover$2, {
13140
13489
  zIndex: theme.options.zIndexBase + 30,
13141
13490
  ...props,
13142
13491
  content: jsx(RestoreAntDDefaultClsPrefix, {
@@ -13146,6 +13495,125 @@ const Popover = _ref => {
13146
13495
  });
13147
13496
  };
13148
13497
 
13498
+ const Root = Popover$1.Root; // Behavioral component only
13499
+
13500
+ const Content$1 = /*#__PURE__*/forwardRef(function Content(_ref, ref) {
13501
+ let {
13502
+ children,
13503
+ minWidth = 220,
13504
+ ...props
13505
+ } = _ref;
13506
+ const {
13507
+ getPopupContainer
13508
+ } = useDesignSystemContext();
13509
+ return jsx(Popover$1.Portal, {
13510
+ container: getPopupContainer && getPopupContainer(),
13511
+ children: jsx(Popover$1.Content, {
13512
+ ref: ref,
13513
+ css: [contentStyles, {
13514
+ minWidth
13515
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Content;"],
13516
+ sideOffset: 4,
13517
+ ...props,
13518
+ children: children
13519
+ })
13520
+ });
13521
+ });
13522
+ const Trigger = /*#__PURE__*/forwardRef(function Trigger(_ref2, ref) {
13523
+ let {
13524
+ children,
13525
+ ...props
13526
+ } = _ref2;
13527
+ return jsx(Popover$1.Trigger, {
13528
+ ref: ref,
13529
+ ...props,
13530
+ children: children
13531
+ });
13532
+ });
13533
+ const Arrow = /*#__PURE__*/forwardRef(function Arrow(_ref3, ref) {
13534
+ let {
13535
+ children,
13536
+ ...props
13537
+ } = _ref3;
13538
+ const {
13539
+ theme
13540
+ } = useDesignSystemTheme();
13541
+ return jsx(Popover$1.Arrow, {
13542
+ css: /*#__PURE__*/css({
13543
+ fill: theme.colors.backgroundPrimary,
13544
+ stroke: theme.colors.borderDecorative,
13545
+ strokeDashoffset: -CONSTANTS.arrowBottomLength(),
13546
+ strokeDasharray: CONSTANTS.arrowBottomLength() + 2 * CONSTANTS.arrowSide(),
13547
+ strokeWidth: CONSTANTS.arrowStrokeWidth(),
13548
+ // TODO: This is a temporary fix for the alignment of the Arrow;
13549
+ // Radix has changed the implementation for v1.0.0 (uses floating-ui)
13550
+ // which has new behaviors for alignment that we don't want. Generally
13551
+ // we need to fix the arrow to always be aligned to the left of the menu (with
13552
+ // offset equal to border radius)
13553
+ position: 'relative',
13554
+ top: -1
13555
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Arrow;"),
13556
+ ref: ref,
13557
+ width: 12,
13558
+ height: 6,
13559
+ ...props,
13560
+ children: children
13561
+ });
13562
+ });
13563
+
13564
+ // CONSTANTS
13565
+ const CONSTANTS = {
13566
+ arrowBottomLength() {
13567
+ // The built in arrow is a polygon: 0,0 30,0 15,10
13568
+ return 30;
13569
+ },
13570
+ arrowHeight() {
13571
+ return 10;
13572
+ },
13573
+ arrowSide() {
13574
+ return 2 * (this.arrowHeight() ** 2 * 2) ** 0.5;
13575
+ },
13576
+ arrowStrokeWidth() {
13577
+ // This is eyeballed b/c relative to the svg viewbox coordinate system
13578
+ return 2;
13579
+ }
13580
+ };
13581
+ const popoverContentStyles = theme => ({
13582
+ backgroundColor: theme.colors.backgroundPrimary,
13583
+ color: theme.colors.textPrimary,
13584
+ lineHeight: theme.typography.lineHeightBase,
13585
+ border: "1px solid ".concat(theme.colors.borderDecorative),
13586
+ borderRadius: theme.borders.borderRadiusMd,
13587
+ padding: "".concat(theme.spacing.sm, "px"),
13588
+ boxShadow: theme.themeName !== 'dark' ? "0px 4px 16px 0px rgba(205, 218, 229, 1)" : undefined,
13589
+ userSelect: 'none',
13590
+ zIndex: theme.options.zIndexBase + 30,
13591
+ a: importantify({
13592
+ color: theme.colors.textPrimary,
13593
+ cursor: 'default',
13594
+ '&:hover, &:focus': {
13595
+ color: theme.colors.textPrimary
13596
+ }
13597
+ }),
13598
+ '&:focus-visible': {
13599
+ outlineStyle: 'solid',
13600
+ outlineWidth: '2px',
13601
+ outlineOffset: '1px',
13602
+ outlineColor: theme.colors.primary
13603
+ }
13604
+ });
13605
+ const contentStyles = theme => ({
13606
+ ...popoverContentStyles(theme)
13607
+ });
13608
+
13609
+ var PopoverV2 = /*#__PURE__*/Object.freeze({
13610
+ __proto__: null,
13611
+ Root: Root,
13612
+ Content: Content$1,
13613
+ Trigger: Trigger,
13614
+ Arrow: Arrow
13615
+ });
13616
+
13149
13617
  function getSegmentedControlGroupEmotionStyles(clsPrefix) {
13150
13618
  const classSmallGroup = ".".concat(clsPrefix, "-radio-group-small");
13151
13619
  const classButtonWrapper = ".".concat(clsPrefix, "-radio-button-wrapper");
@@ -13580,28 +14048,6 @@ const Skeleton = /* #__PURE__ */(() => {
13580
14048
  return Skeleton;
13581
14049
  })();
13582
14050
 
13583
- const Spacer = _ref => {
13584
- let {
13585
- size = 'md',
13586
- ...props
13587
- } = _ref;
13588
- const {
13589
- theme
13590
- } = useDesignSystemTheme();
13591
- const spacingValues = {
13592
- xs: theme.spacing.xs,
13593
- sm: theme.spacing.sm,
13594
- md: theme.spacing.md,
13595
- lg: theme.spacing.lg
13596
- };
13597
- return jsx("div", {
13598
- css: /*#__PURE__*/css({
13599
- height: spacingValues[size]
13600
- }, process.env.NODE_ENV === "production" ? "" : ";label:Spacer;"),
13601
- ...props
13602
- });
13603
- };
13604
-
13605
14051
  const rotate = keyframes({
13606
14052
  '0%': {
13607
14053
  transform: 'rotate(0deg) translate3d(0, 0, 0)'
@@ -13747,9 +14193,9 @@ const DropdownButton = props => {
13747
14193
  ...dropdownProps,
13748
14194
  overlay: overlay,
13749
14195
  children: rightButtonToRender
13750
- }) : jsxs(Root, {
14196
+ }) : jsxs(Root$1, {
13751
14197
  ...props.dropdownMenuRootProps,
13752
- children: [jsx(Trigger, {
14198
+ children: [jsx(Trigger$1, {
13753
14199
  disabled: disabled,
13754
14200
  asChild: true,
13755
14201
  children: rightButtonToRender
@@ -14605,5 +15051,5 @@ const Tree = /*#__PURE__*/forwardRef(function Tree(_ref, ref) {
14605
15051
  });
14606
15052
  });
14607
15053
 
14608
- export { Accordion, AccordionPanel, Alert, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, AppIcon, ApplyDesignSystemFlags, ArrayIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowsUpDownIcon, AutoComplete, BarChartIcon, BeakerIcon, BinaryIcon, BoldIcon, BookIcon, BookmarkBorderIcon, BookmarkFillIcon, BracketsIcon, Breadcrumb, BriefcaseFillIcon, BriefcaseIcon, Button, CalendarEventIcon, CalendarIcon, CaretDownSquareIcon, CaretUpSquareIcon, CatalogIcon, ChartLineIcon, CheckCircleBorderIcon, CheckCircleFillIcon, CheckIcon, CheckLineIcon, Checkbox, ChecklistIcon, ChevronDoubleDownIcon, ChevronDoubleLeftIcon, ChevronDoubleRightIcon, ChevronDoubleUpIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleIcon, ClipboardIcon, ClockIcon, CloseIcon, CloudDownloadIcon, CloudIcon, CloudKeyIcon, CloudOffIcon, CloudUploadIcon, ClusterIcon, ClustersIcon, CodeIcon, Col, ColorFillIcon, ConnectIcon, Content, CopyIcon, DIcon, DU_BOIS_ENABLE_ANIMATION_CLASSNAME, DangerModal, DashIcon, DashboardIcon, DataIcon, DataMarketplace, DatabaseIcon, DesignSystemAntDConfigProvider, DesignSystemContext, DesignSystemProvider, DownloadIcon, DragIcon, Dropdown, DropdownMenu, DuboisDatePicker, Empty, ErrorBorderIcon, ErrorFillIcon, ExpandLessIcon, ExpandMoreIcon, ExperimentIcon, FileCodeIcon, FileDocumentIcon, FileIcon, FileImageIcon, FileModelIcon, FilterIcon, Folder1Icon, FolderIcon, FontIcon, ForkIcon, Form, FormDubois, FormUI, FullscreenExitIcon, FullscreenIcon, Gear1Icon, GearIcon, GiftIcon, GridDashIcon, GridIcon, H1Icon, H2Icon, H3Icon, Header$1 as Header, HistoryIcon, HomeIcon, Icon, ImageIcon, IndentDecreaseIcon, IndentIncreaseIcon, InfinityIcon, InfoBorderIcon, InfoFillIcon, Input, ItalicIcon, KeyboardIcon, LayerIcon, Layout, LegacyDatePicker, LifesaverIcon, LightningIcon, LinkIcon, LinkRemoveIcon, ListBorderIcon, ListIcon, LoadingIcon, LockBorderIcon, LockFillIcon, LockUnlockedIcon, MIcon, Menu, MenuIcon, MinusBoxIcon, MinusCircleBorderIcon, MinusCircleFillIcon, Modal, ModelsIcon, Nav, NavButton, NewWindowIcon, NoIcon, NotebookIcon, NotificationIcon, NotificationsOffIcon, OfficeIcon, OptGroup, Option, OverflowIcon, PageBottomIcon, PageFirstIcon, PageLastIcon, PageTopIcon, PageWrapper, Pagination, Panel, PanelBody, PanelHeader, PanelHeaderButtons, PanelHeaderTitle, PencilIcon, PinBorderIcon, PinCancelIcon, PinFillIcon, PlayCircleBorderIcon, PlayCircleFillIcon, PlayIcon, PlugIcon, PlusCircleBorderIcon, PlusCircleFillIcon, PlusIcon, PlusSquareIcon, Popover, QueryEditorIcon, QueryIcon, QueryListViewIcon, QueryNavIcon, QuestionMarkBorderIcon, QuestionMarkFillIcon, RHFControlledComponents, ROW_GUTTER_SIZE, Radio, ReaderModeIcon, Redo, RedoIcon, Refresh, RefreshIcon, ReposIcon, RestoreAntDDefaultClsPrefix, Row, SaveIcon, SchoolIcon, Search1Icon, SearchIcon, SecurityIcon, SegmentedControlButton, SegmentedControlGroup, Select, ShareIcon, Sidebar, SidebarAutoIcon, SidebarCollapseIcon, SidebarExpandIcon, SidebarIcon, Skeleton, SlidersIcon, SortAscendingIcon, SortDescendingIcon, SortUnsortedIcon, Space, Spacer, SpeechBubbleIcon, SpeechBubblePlusIcon, Spinner, SplitButton, StarBorderIcon, StarFillIcon, StopCircleBorderIcon, StopCricleFillIcon, StopIcon, StreamIcon, Switch, SyncIcon, TabPane, Table, TableIcon, Tabs, Tag, Tooltip, TrashIcon, Tree, TreeIcon, Typography, UnderlineIcon, Undo, UploadIcon, UsbIcon, UserBadgeIcon, UserCircleIcon, UserGroupIcon, UserIcon, Visible, VisibleOff, WarningBorderIcon, WarningFillIcon, WithDesignSystemThemeHoc, WorkspacesIcon, XCircleBorderIcon, XCircleFillIcon, 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, useDesignSystemTheme, useNotification, useThemedStyles, withNotifications };
15054
+ export { Accordion, AccordionPanel, Alert, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, AppIcon, ApplyDesignSystemFlags, ArrayIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowsUpDownIcon, AutoComplete, BarChartIcon, BeakerIcon, BinaryIcon, BoldIcon, BookIcon, BookmarkBorderIcon, BookmarkFillIcon, BracketsIcon, Breadcrumb, BriefcaseFillIcon, BriefcaseIcon, Button, CalendarEventIcon, CalendarIcon, CaretDownSquareIcon, CaretUpSquareIcon, CatalogIcon, ChartLineIcon, CheckCircleBorderIcon, CheckCircleFillIcon, CheckIcon, CheckLineIcon, Checkbox, ChecklistIcon, ChevronDoubleDownIcon, ChevronDoubleLeftIcon, ChevronDoubleRightIcon, ChevronDoubleUpIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleIcon, ClipboardIcon, ClockIcon, CloseIcon, CloudDownloadIcon, CloudIcon, CloudKeyIcon, CloudOffIcon, CloudUploadIcon, ClusterIcon, ClustersIcon, CodeIcon, Col, ColorFillIcon, ConnectIcon, Content, CopyIcon, DIcon, DU_BOIS_ENABLE_ANIMATION_CLASSNAME, DangerModal, DashIcon, DashboardIcon, DataIcon, DataMarketplace, DatabaseIcon, DesignSystemAntDConfigProvider, DesignSystemContext, DesignSystemProvider, DownloadIcon, DragIcon, Drawer, Dropdown, DropdownMenu, DuboisDatePicker, Empty, ErrorBorderIcon, ErrorFillIcon, ExpandLessIcon, ExpandMoreIcon, ExperimentIcon, FileCodeIcon, FileDocumentIcon, FileIcon, FileImageIcon, FileModelIcon, FilterIcon, Folder1Icon, FolderIcon, FontIcon, ForkIcon, Form, FormDubois, FormUI, FullscreenExitIcon, FullscreenIcon, Gear1Icon, GearIcon, GiftIcon, GridDashIcon, GridIcon, H1Icon, H2Icon, H3Icon, Header$1 as Header, HistoryIcon, HomeIcon, Icon, ImageIcon, IndentDecreaseIcon, IndentIncreaseIcon, InfinityIcon, InfoBorderIcon, InfoFillIcon, Input, ItalicIcon, KeyboardIcon, LayerIcon, Layout, LegacyDatePicker, LifesaverIcon, LightningIcon, LinkIcon, LinkRemoveIcon, ListBorderIcon, ListIcon, LoadingIcon, LockBorderIcon, LockFillIcon, LockUnlockedIcon, MIcon, Menu, MenuIcon, MinusBoxIcon, MinusCircleBorderIcon, MinusCircleFillIcon, Modal, ModelsIcon, Nav, NavButton, NewWindowIcon, NoIcon, NotebookIcon, NotificationIcon, NotificationsOffIcon, OfficeIcon, OptGroup, Option, OverflowIcon, PageBottomIcon, PageFirstIcon, PageLastIcon, PageTopIcon, PageWrapper, Pagination, Panel, PanelBody, PanelHeader, PanelHeaderButtons, PanelHeaderTitle, PencilIcon, PinBorderIcon, PinCancelIcon, PinFillIcon, PlayCircleBorderIcon, PlayCircleFillIcon, PlayIcon, PlugIcon, PlusCircleBorderIcon, PlusCircleFillIcon, PlusIcon, PlusSquareIcon, Popover, PopoverV2, QueryEditorIcon, QueryIcon, QueryListViewIcon, QueryNavIcon, QuestionMarkBorderIcon, QuestionMarkFillIcon, RHFControlledComponents, ROW_GUTTER_SIZE, Radio, ReaderModeIcon, Redo, RedoIcon, Refresh, RefreshIcon, ReposIcon, RestoreAntDDefaultClsPrefix, Row, SaveIcon, SchoolIcon, Search1Icon, SearchIcon, SecurityIcon, SegmentedControlButton, SegmentedControlGroup, Select, ShareIcon, Sidebar, SidebarAutoIcon, SidebarCollapseIcon, SidebarExpandIcon, SidebarIcon, Skeleton, SlidersIcon, SortAscendingIcon, SortDescendingIcon, SortUnsortedIcon, Space, Spacer, SpeechBubbleIcon, SpeechBubblePlusIcon, Spinner, SplitButton, StarBorderIcon, StarFillIcon, StopCircleBorderIcon, StopCricleFillIcon, StopIcon, StreamIcon, Switch, SyncIcon, TabPane, Table, TableIcon, Tabs, Tag, Tooltip, TrashIcon, Tree, TreeIcon, Typography, UnderlineIcon, Undo, UploadIcon, UsbIcon, UserBadgeIcon, UserCircleIcon, UserGroupIcon, UserIcon, VariableIcon, Visible, VisibleOff, WarningBorderIcon, WarningFillIcon, WithDesignSystemThemeHoc, WorkspacesIcon, XCircleBorderIcon, XCircleFillIcon, 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, useDesignSystemTheme, useNotification, useThemedStyles, withNotifications };
14609
15055
  //# sourceMappingURL=index.js.map