@databricks/design-system 2.0.5 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +239 -166
- package/CHANGELOG.md +47 -0
- package/design-guidance/docs/README.md +40 -0
- package/design-guidance/docs/review-contract.md +22 -0
- package/design-guidance/docs/tokens.md +35 -0
- package/design-guidance/docs/voice.md +40 -0
- package/design-guidance/skills/dbui-build-screen.md +24 -0
- package/design-guidance/skills/dbui-check-ecosystem.md +21 -0
- package/design-guidance/skills/dbui-check-guidelines.md +29 -0
- package/design-guidance/skills/dbui-check-principles.md +26 -0
- package/design-guidance/skills/dbui-check-voice.md +17 -0
- package/design-guidance/skills/dbui-pick-component.md +23 -0
- package/design-guidance/skills/dbui-pick-icon.md +23 -0
- package/design-guidance/skills/dbui-review.md +30 -0
- package/design-guidance/skills/dbui-validate.md +23 -0
- package/dist/{RHFControlledTypeaheadComboboxV2-DsH-nIEk.js → RHFControlledTypeaheadComboboxV2-nSSYj16I.js} +5 -5
- package/dist/{RHFControlledTypeaheadComboboxV2-DsH-nIEk.js.map → RHFControlledTypeaheadComboboxV2-nSSYj16I.js.map} +1 -1
- package/dist/{WizardStepContentWrapper-Bq1wm0V7.js → WizardStepContentWrapper-bbh_CoIf.js} +644 -679
- package/dist/WizardStepContentWrapper-bbh_CoIf.js.map +1 -0
- package/dist/dubois-colors.less +1 -1
- package/dist/icon-metadata.json +2069 -0
- package/dist/{index-BRAVZg-S.js → index-CUCuUviS.js} +350 -139
- package/dist/index-CUCuUviS.js.map +1 -0
- package/dist/index-dark.css +593 -191
- package/dist/index-dark.mitigated.css +623 -208
- package/dist/index.css +1536 -1049
- package/dist/index.js +4 -4
- package/dist/index.mitigated.css +1566 -1066
- package/dist/patterns.js +3 -3
- package/dist-types/design-system/Alert/Alert.d.ts +21 -4
- package/dist-types/design-system/Button/Button.d.ts +2 -1
- package/dist-types/design-system/Drawer/Drawer.d.ts +3 -1
- package/dist-types/design-system/Icon/AntdIcon.d.ts +3 -0
- package/dist-types/design-system/Icon/Icon.d.ts +20 -6
- package/dist-types/design-system/Icon/NativeIcon.d.ts +3 -0
- package/dist-types/design-system/Icon/__generated/icons/LakewatchIcon.d.ts +4 -0
- package/dist-types/design-system/Icon/__generated/icons/SlidesIcon.d.ts +4 -0
- package/dist-types/design-system/Icon/__generated/icons/index.d.ts +2 -0
- package/dist-types/design-system/Icon/index.d.ts +1 -0
- package/dist-types/design-system/Icon/utils.d.ts +1 -0
- package/dist-types/design-system/TypeaheadCombobox/TypeaheadComboboxControls.d.ts +0 -2
- package/dist-types/design-system/_shared_/Tabs/styles.d.ts +2 -3
- package/dist-types/design-system/index.d.ts +0 -1
- package/dist-types/design-system/utils/safex.d.ts +4 -2
- package/dist-types/theme/generalVariables.d.ts +0 -1
- package/dist-types/~patterns/Wizard/WizardModal.d.ts +1 -1
- package/package.json +8 -5
- package/setup.mjs +586 -0
- package/dist/WizardStepContentWrapper-Bq1wm0V7.js.map +0 -1
- package/dist/index-BRAVZg-S.js.map +0 -1
- package/dist-types/design-system/LegacyTooltip/LegacyTooltip.d.ts +0 -47
- package/dist-types/design-system/LegacyTooltip/index.d.ts +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from '@emotion/react/jsx-runtime';
|
|
2
2
|
import isUndefined from 'lodash/isUndefined';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import React__default, { useRef, useEffect, useMemo, useCallback, useContext, createContext, useState, forwardRef, useLayoutEffect, useImperativeHandle, Children } from 'react';
|
|
4
|
+
import React__default, { useRef, useEffect, useMemo, useCallback, useContext, createContext, useState, forwardRef, useLayoutEffect, useImperativeHandle, Children, isValidElement } from 'react';
|
|
5
5
|
import { useTheme, ThemeProvider, css, keyframes, ClassNames, Global, createElement } from '@emotion/react';
|
|
6
|
-
import { ConfigProvider, notification, Collapse, Button as Button$
|
|
6
|
+
import { ConfigProvider, notification, Collapse, Button as Button$1, Typography as Typography$1, Checkbox as Checkbox$1, Input as Input$2, Select as Select$1, Radio as Radio$1, Layout as Layout$1, Form as Form$1, Pagination as Pagination$1, Table, Dropdown, Tree as Tree$1 } from 'antd';
|
|
7
7
|
import classnames from 'classnames';
|
|
8
8
|
import { useMergeRefs } from '@floating-ui/react';
|
|
9
9
|
import uniqueId$1 from 'lodash/uniqueId';
|
|
@@ -16,6 +16,8 @@ import '@floating-ui/dom';
|
|
|
16
16
|
import { createPortal } from 'react-dom';
|
|
17
17
|
import '@radix-ui/react-hover-card';
|
|
18
18
|
import '@radix-ui/react-toast';
|
|
19
|
+
import '@radix-ui/react-slider';
|
|
20
|
+
import '@radix-ui/react-toolbar';
|
|
19
21
|
import '@react-aria/combobox';
|
|
20
22
|
import { useOption } from '@react-aria/listbox';
|
|
21
23
|
import '@react-aria/overlays';
|
|
@@ -42,23 +44,21 @@ import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
|
42
44
|
import * as RadixTooltip from '@radix-ui/react-tooltip-patch';
|
|
43
45
|
import { TooltipProvider } from '@radix-ui/react-tooltip-patch';
|
|
44
46
|
import kebabCase from 'lodash/kebabCase';
|
|
45
|
-
import
|
|
47
|
+
import AntdIconBase, { EllipsisOutlined } from '@ant-design/icons';
|
|
46
48
|
import random from 'lodash/random';
|
|
47
49
|
import times from 'lodash/times';
|
|
48
50
|
import { ContextMenuArrow, ContextMenuSub, ContextMenuGroup, ContextMenuTrigger, ContextMenuItemIndicator, ContextMenuCheckboxItem, ContextMenuPortal, ContextMenuContent, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuSeparator, ContextMenuRadioItem, ContextMenuRadioGroup, ContextMenuItem, ContextMenuLabel, ContextMenu as ContextMenu$2 } from '@radix-ui/react-context-menu';
|
|
49
|
-
import { DayPicker, useDayRender, Button as Button$
|
|
51
|
+
import { DayPicker, useDayRender, Button as Button$2 } from 'react-day-picker';
|
|
50
52
|
import { tabbable } from 'tabbable';
|
|
51
53
|
import { useCombobox, useMultipleSelection } from 'downshift';
|
|
52
54
|
import * as RadixNavigationMenu from '@radix-ui/react-navigation-menu';
|
|
53
55
|
import { RadioGroupItem, RadioGroup as RadioGroup$2 } from '@radix-ui/react-radio-group';
|
|
54
56
|
import * as Progress$1 from '@radix-ui/react-progress';
|
|
55
57
|
import { ResizableBox } from 'react-resizable';
|
|
56
|
-
import * as RadixSlider from '@radix-ui/react-slider';
|
|
57
58
|
import * as ScrollArea from '@radix-ui/react-scroll-area';
|
|
58
59
|
import * as RadixTabs from '@radix-ui/react-tabs';
|
|
59
60
|
import debounce from 'lodash/debounce';
|
|
60
61
|
import * as Toggle from '@radix-ui/react-toggle';
|
|
61
|
-
import * as RadixToolbar from '@radix-ui/react-toolbar';
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* Used to hide text visually, but still be readable by screen-readers
|
|
@@ -77,6 +77,16 @@ import * as RadixToolbar from '@radix-ui/react-toolbar';
|
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
+
function shouldUseTestDefaultFlagValues() {
|
|
81
|
+
if (typeof process !== 'undefined' && process.env?.NODE_ENV === 'test') {
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
const globalWithMarker = globalThis;
|
|
85
|
+
return Boolean(globalWithMarker.__DATABRICKS_USE_TEST_DEFAULT_FLAG_VALUES__ || globalWithMarker.window?.__DATABRICKS_USE_TEST_DEFAULT_FLAG_VALUES__);
|
|
86
|
+
}
|
|
87
|
+
function resolveFlagFallback(defaultValue, testDefault) {
|
|
88
|
+
return testDefault !== undefined && shouldUseTestDefaultFlagValues() ? testDefault : defaultValue;
|
|
89
|
+
}
|
|
80
90
|
/**
|
|
81
91
|
* Provides access to http://go/safex flags from the frontend. Note that this is a temporary
|
|
82
92
|
* workaround until direct `safex` imports are available.
|
|
@@ -87,22 +97,23 @@ import * as RadixToolbar from '@radix-ui/react-toolbar';
|
|
|
87
97
|
*
|
|
88
98
|
* @param flag The name of the flag to check
|
|
89
99
|
* @param defaultValue The default value to return if the flag is not set
|
|
100
|
+
* @param testDefault The default to use in Jest or UiTestServer tests
|
|
90
101
|
* @returns
|
|
91
|
-
*/ const safex = (flag, defaultValue)=>{
|
|
102
|
+
*/ const safex = (flag, defaultValue, testDefault)=>{
|
|
92
103
|
// Catching errors here, because we don't have type-safety to ensure
|
|
93
104
|
// that `__debug__safex`'s API hasn't changed.
|
|
94
105
|
try {
|
|
95
106
|
const globalSafex = window.__debug__safex;
|
|
96
107
|
if (globalSafex) {
|
|
97
|
-
return globalSafex(flag, defaultValue);
|
|
108
|
+
return globalSafex(flag, defaultValue, testDefault);
|
|
98
109
|
}
|
|
99
110
|
const override = globalThis.__TEST_FLAG_OVERRIDES__?.[flag];
|
|
100
111
|
if (override !== undefined) {
|
|
101
112
|
return override;
|
|
102
113
|
}
|
|
103
|
-
return defaultValue;
|
|
114
|
+
return resolveFlagFallback(defaultValue, testDefault);
|
|
104
115
|
} catch (e) {
|
|
105
|
-
return defaultValue;
|
|
116
|
+
return resolveFlagFallback(defaultValue, testDefault);
|
|
106
117
|
}
|
|
107
118
|
};
|
|
108
119
|
/**
|
|
@@ -114,13 +125,14 @@ import * as RadixToolbar from '@radix-ui/react-toolbar';
|
|
|
114
125
|
*
|
|
115
126
|
* @param flag The name of the flag to check
|
|
116
127
|
* @param defaultValue The default value to return if the flag is not set
|
|
128
|
+
* @param testDefault The default to use in Jest or UiTestServer tests
|
|
117
129
|
* @returns
|
|
118
|
-
*/ const serverSideSafe = (flag, defaultValue)=>{
|
|
130
|
+
*/ const serverSideSafe = (flag, defaultValue, testDefault)=>{
|
|
119
131
|
try {
|
|
120
132
|
// Delegate to web-shared's serverSideSafe if available (includes local overrides)
|
|
121
133
|
const globalServerSideSafe = window.__debug__serverSideSafe;
|
|
122
134
|
if (globalServerSideSafe) {
|
|
123
|
-
return globalServerSideSafe(flag, defaultValue);
|
|
135
|
+
return globalServerSideSafe(flag, defaultValue, testDefault);
|
|
124
136
|
}
|
|
125
137
|
// Fallback: check server-side flags directly
|
|
126
138
|
const explicitOverride = window.__DATABRICKS_SAFE_FLAGS__?.[flag];
|
|
@@ -131,9 +143,9 @@ import * as RadixToolbar from '@radix-ui/react-toolbar';
|
|
|
131
143
|
if (envOverride !== undefined) {
|
|
132
144
|
return envOverride;
|
|
133
145
|
}
|
|
134
|
-
return defaultValue;
|
|
146
|
+
return resolveFlagFallback(defaultValue, testDefault);
|
|
135
147
|
} catch (e) {
|
|
136
|
-
return defaultValue;
|
|
148
|
+
return resolveFlagFallback(defaultValue, testDefault);
|
|
137
149
|
}
|
|
138
150
|
};
|
|
139
151
|
|
|
@@ -249,7 +261,7 @@ const primitiveColors = {
|
|
|
249
261
|
neutral650: '#424242',
|
|
250
262
|
neutral700: '#262626',
|
|
251
263
|
neutral800: '#161616',
|
|
252
|
-
neutralWarm050: '#
|
|
264
|
+
neutralWarm050: '#FCFBF9',
|
|
253
265
|
orange: '#FF3621',
|
|
254
266
|
pink: '#B45091',
|
|
255
267
|
purple: '#8A63BF',
|
|
@@ -688,7 +700,6 @@ const heightBase = 40;
|
|
|
688
700
|
const borderWidth = 1;
|
|
689
701
|
const antdGeneralVariables = {
|
|
690
702
|
classnamePrefix: antdVars['ant-prefix'],
|
|
691
|
-
iconfontCssPrefix: 'anticon',
|
|
692
703
|
borderRadiusBase: 4,
|
|
693
704
|
borderWidth: borderWidth,
|
|
694
705
|
heightSm: 32,
|
|
@@ -1755,8 +1766,10 @@ const getAnimationCss = memoize((enableAnimation)=>{
|
|
|
1755
1766
|
...disableAnimationCss,
|
|
1756
1767
|
'&::before': disableAnimationCss,
|
|
1757
1768
|
'&::after': disableAnimationCss,
|
|
1758
|
-
// Also apply to all child elements with a class that starts with our prefix
|
|
1759
|
-
|
|
1769
|
+
// Also apply to all child elements with a class that starts with our prefix, except elements
|
|
1770
|
+
// which must keep their own animation. Mark those elements directly rather than matching an
|
|
1771
|
+
// ancestor scope for every Du Bois descendant.
|
|
1772
|
+
[`[class*=du-bois]:not(.${DU_BOIS_ENABLE_ANIMATION_CLASSNAME})`]: {
|
|
1760
1773
|
...disableAnimationCss,
|
|
1761
1774
|
// Also target any pseudo-elements associated with those elements, since these can also be animated.
|
|
1762
1775
|
'&::before': disableAnimationCss,
|
|
@@ -1860,6 +1873,20 @@ function semanticColorsToStyle(semanticColors) {
|
|
|
1860
1873
|
children: children
|
|
1861
1874
|
});
|
|
1862
1875
|
};
|
|
1876
|
+
// Entries of `overrides` that differ from `ambient` (added or changed) — what a scope contributes on
|
|
1877
|
+
// top of the tokens it already inherits. Empty when the scope changes nothing over ambient.
|
|
1878
|
+
function getChangedEntries(overrides, ambient) {
|
|
1879
|
+
const changed = {};
|
|
1880
|
+
if (overrides === undefined) return changed;
|
|
1881
|
+
// Object.keys widens to string[]; the cast restores the key union so the record indexing type-checks.
|
|
1882
|
+
for (const key of Object.keys(overrides)){
|
|
1883
|
+
const value = overrides[key];
|
|
1884
|
+
if (value !== undefined && value !== ambient?.[key]) {
|
|
1885
|
+
changed[key] = value;
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
return changed;
|
|
1889
|
+
}
|
|
1863
1890
|
/**
|
|
1864
1891
|
* Applies design-token overrides to a component or page subtree, reaching BOTH in-tree components and
|
|
1865
1892
|
* portaled surfaces (Modal, Drawer, DropdownMenu, Popover, Notification, …). This is the primitive to
|
|
@@ -1902,6 +1929,32 @@ function semanticColorsToStyle(semanticColors) {
|
|
|
1902
1929
|
ambient.designTokenOverrides,
|
|
1903
1930
|
overrideTokens
|
|
1904
1931
|
]);
|
|
1932
|
+
// What THIS scope changes vs the ambient one. The cumulative maps above feed the context, so portaled
|
|
1933
|
+
// surfaces re-stamp the full palette on their detached roots; the scoped delta below is all the in-tree
|
|
1934
|
+
// DOM node needs to stamp, because descendants already inherit the ambient tokens by CSS.
|
|
1935
|
+
const scopedSemanticColors = useMemo(()=>{
|
|
1936
|
+
const changed = getChangedEntries(semanticColors, ambient.semanticColors);
|
|
1937
|
+
return Object.keys(changed).length > 0 ? changed : undefined;
|
|
1938
|
+
}, [
|
|
1939
|
+
semanticColors,
|
|
1940
|
+
ambient.semanticColors
|
|
1941
|
+
]);
|
|
1942
|
+
const scopedOverrideTokens = useMemo(()=>{
|
|
1943
|
+
const changed = getChangedEntries(overrideTokens, ambient.designTokenOverrides);
|
|
1944
|
+
return Object.keys(changed).length > 0 ? changed : undefined;
|
|
1945
|
+
}, [
|
|
1946
|
+
overrideTokens,
|
|
1947
|
+
ambient.designTokenOverrides
|
|
1948
|
+
]);
|
|
1949
|
+
// A scope that changes nothing over ambient is a no-op: descendants already inherit the ambient scope
|
|
1950
|
+
// in-tree and read the same cumulative context, so render them directly. The mode check compares the
|
|
1951
|
+
// ambient CONTEXT mode (what descendants inherit and portals re-stamp from), not the emotion theme — a
|
|
1952
|
+
// forced-mode ancestor can make the two diverge, and skipping must not leave that divergence unreset.
|
|
1953
|
+
if (scopedSemanticColors === undefined && scopedOverrideTokens === undefined && resolvedIsDarkMode === ambient.isDarkMode) {
|
|
1954
|
+
return /*#__PURE__*/ jsx(Fragment, {
|
|
1955
|
+
children: children
|
|
1956
|
+
});
|
|
1957
|
+
}
|
|
1905
1958
|
return(// DesignTokenScope IS the sanctioned wrapper that feeds token overrides into DesignSystemThemeContext
|
|
1906
1959
|
// for portaled surfaces, so it is one of the "special exceptions" the forbid rule allows.
|
|
1907
1960
|
// eslint-disable-next-line react/forbid-elements
|
|
@@ -1913,8 +1966,8 @@ function semanticColorsToStyle(semanticColors) {
|
|
|
1913
1966
|
designTokenOverrides: mergedOverrideTokens,
|
|
1914
1967
|
children: /*#__PURE__*/ jsx(DesignTokenScopeImpl, {
|
|
1915
1968
|
isDarkMode: resolvedIsDarkMode,
|
|
1916
|
-
semanticColors:
|
|
1917
|
-
overrideTokens:
|
|
1969
|
+
semanticColors: scopedSemanticColors,
|
|
1970
|
+
overrideTokens: scopedOverrideTokens,
|
|
1918
1971
|
children: children
|
|
1919
1972
|
})
|
|
1920
1973
|
}));
|
|
@@ -2152,14 +2205,14 @@ const getIconVariantStyles = (theme, color)=>{
|
|
|
2152
2205
|
} : {};
|
|
2153
2206
|
}
|
|
2154
2207
|
};
|
|
2155
|
-
// Module-level cache. The full css prop for
|
|
2208
|
+
// Module-level cache. The full css prop for AntdIconBase depends only on (theme, color) —
|
|
2156
2209
|
// at most ~5 distinct color values per theme — so we share one css object across every
|
|
2157
2210
|
// Icon instance. Same pattern as getShadowScrollStylesMemoized in css-utils.tsx.
|
|
2158
2211
|
const getMemoizedIconCss$1 = memoize((theme, color)=>({
|
|
2159
2212
|
fontSize: theme.general.iconFontSize,
|
|
2160
2213
|
...getIconVariantStyles(theme, color)
|
|
2161
2214
|
}), (theme, color)=>`${themeMemoKey(theme)}|${color ?? 'undef'}`);
|
|
2162
|
-
const
|
|
2215
|
+
const AntdIcon = /*#__PURE__*/ forwardRef(function AntdIcon(props, forwardedRef) {
|
|
2163
2216
|
const { component: Component, color, style, ...otherProps } = props;
|
|
2164
2217
|
const { theme } = useDesignSystemTheme();
|
|
2165
2218
|
const linearGradientId = useUniqueId('ai-linear-gradient');
|
|
@@ -2217,7 +2270,7 @@ const Icon = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
|
2217
2270
|
aiGradientEnd
|
|
2218
2271
|
]);
|
|
2219
2272
|
return /*#__PURE__*/ jsx(DesignSystemAntDConfigProvider, {
|
|
2220
|
-
children: /*#__PURE__*/ jsx(
|
|
2273
|
+
children: /*#__PURE__*/ jsx(AntdIconBase, {
|
|
2221
2274
|
...addDebugOutlineIfEnabled(),
|
|
2222
2275
|
ref: forwardedRef,
|
|
2223
2276
|
"aria-hidden": "true",
|
|
@@ -2231,6 +2284,131 @@ const Icon = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
|
2231
2284
|
});
|
|
2232
2285
|
});
|
|
2233
2286
|
|
|
2287
|
+
const getColorClassName = (color)=>{
|
|
2288
|
+
return color ? `db-icon-${color}` : undefined;
|
|
2289
|
+
};
|
|
2290
|
+
const NativeIcon = /*#__PURE__*/ forwardRef(function NativeIcon({ component: Component, className, color, style, spin, rotate, viewBox, tabIndex, onClick, children, ...spanProps }, ref) {
|
|
2291
|
+
const effectiveTabIndex = tabIndex ?? (onClick ? -1 : undefined);
|
|
2292
|
+
const linearGradientId = useUniqueId('ai-linear-gradient');
|
|
2293
|
+
const svgStyle = useMemo(()=>rotate || color === 'ai' ? {
|
|
2294
|
+
...rotate ? {
|
|
2295
|
+
rotate: `${rotate}deg`
|
|
2296
|
+
} : {},
|
|
2297
|
+
...color === 'ai' ? {
|
|
2298
|
+
'--db-icon-gradient': `url(#${linearGradientId})`
|
|
2299
|
+
} : {}
|
|
2300
|
+
} : undefined, [
|
|
2301
|
+
rotate,
|
|
2302
|
+
color,
|
|
2303
|
+
linearGradientId
|
|
2304
|
+
]);
|
|
2305
|
+
const svgProps = useMemo(()=>({
|
|
2306
|
+
width: '1em',
|
|
2307
|
+
height: '1em',
|
|
2308
|
+
fill: Component ? 'none' : 'currentColor',
|
|
2309
|
+
'aria-hidden': 'true',
|
|
2310
|
+
focusable: 'false',
|
|
2311
|
+
className: classnames({
|
|
2312
|
+
'db-icon-spin': spin
|
|
2313
|
+
}),
|
|
2314
|
+
style: svgStyle,
|
|
2315
|
+
...viewBox !== undefined ? {
|
|
2316
|
+
viewBox
|
|
2317
|
+
} : {}
|
|
2318
|
+
}), [
|
|
2319
|
+
Component,
|
|
2320
|
+
spin,
|
|
2321
|
+
svgStyle,
|
|
2322
|
+
viewBox
|
|
2323
|
+
]);
|
|
2324
|
+
// component takes precedence over children, matching antd's Icon.
|
|
2325
|
+
let glyph = null;
|
|
2326
|
+
if (Component) {
|
|
2327
|
+
glyph = /*#__PURE__*/ jsx(Component, {
|
|
2328
|
+
...svgProps,
|
|
2329
|
+
children: children
|
|
2330
|
+
});
|
|
2331
|
+
} else if (children) {
|
|
2332
|
+
glyph = /*#__PURE__*/ jsx("svg", {
|
|
2333
|
+
...svgProps,
|
|
2334
|
+
children: children
|
|
2335
|
+
});
|
|
2336
|
+
}
|
|
2337
|
+
return /*#__PURE__*/ jsxs("span", {
|
|
2338
|
+
...addDebugOutlineIfEnabled(),
|
|
2339
|
+
// TODO: only set role="img" when the icon is not aria-hidden and has an aria-label or
|
|
2340
|
+
// aria-labelledby. role="img" is for content images, not decorative icons, most of which
|
|
2341
|
+
// are aria-hidden and better represented as text in the DOM.
|
|
2342
|
+
role: "img",
|
|
2343
|
+
"aria-hidden": "true",
|
|
2344
|
+
...spanProps,
|
|
2345
|
+
ref: ref,
|
|
2346
|
+
tabIndex: effectiveTabIndex,
|
|
2347
|
+
onClick: onClick,
|
|
2348
|
+
className: classnames('db-icon', getColorClassName(color), className),
|
|
2349
|
+
style: style,
|
|
2350
|
+
children: [
|
|
2351
|
+
glyph,
|
|
2352
|
+
color === 'ai' && /*#__PURE__*/ jsx("svg", {
|
|
2353
|
+
className: "db-icon-gradient-definitions",
|
|
2354
|
+
width: "0",
|
|
2355
|
+
height: "0",
|
|
2356
|
+
viewBox: "0 0 0 0",
|
|
2357
|
+
"aria-hidden": "true",
|
|
2358
|
+
focusable: "false",
|
|
2359
|
+
children: /*#__PURE__*/ jsx("defs", {
|
|
2360
|
+
children: /*#__PURE__*/ jsxs("linearGradient", {
|
|
2361
|
+
id: linearGradientId,
|
|
2362
|
+
x1: "0%",
|
|
2363
|
+
y1: "0%",
|
|
2364
|
+
x2: "100%",
|
|
2365
|
+
y2: "100%",
|
|
2366
|
+
children: [
|
|
2367
|
+
/*#__PURE__*/ jsx("stop", {
|
|
2368
|
+
offset: "20.5%",
|
|
2369
|
+
className: "db-icon-ai-gradient-start"
|
|
2370
|
+
}),
|
|
2371
|
+
/*#__PURE__*/ jsx("stop", {
|
|
2372
|
+
offset: "46.91%",
|
|
2373
|
+
className: "db-icon-ai-gradient-mid"
|
|
2374
|
+
}),
|
|
2375
|
+
/*#__PURE__*/ jsx("stop", {
|
|
2376
|
+
offset: "79.5%",
|
|
2377
|
+
className: "db-icon-ai-gradient-end"
|
|
2378
|
+
})
|
|
2379
|
+
]
|
|
2380
|
+
})
|
|
2381
|
+
})
|
|
2382
|
+
})
|
|
2383
|
+
]
|
|
2384
|
+
});
|
|
2385
|
+
});
|
|
2386
|
+
|
|
2387
|
+
// Selector matching the design-system icon wrapper: `.db-icon` once the native icon flag is on,
|
|
2388
|
+
// `.anticon` otherwise. Authored icon styles should use this instead of hardcoding either class.
|
|
2389
|
+
// Returns a single class (never a comma-list) and callers must not wrap it in `:is()` — both forms
|
|
2390
|
+
// multiply the selector count, which inflated Monaco's per-keystroke style-recalc cost.
|
|
2391
|
+
function getIconClassName() {
|
|
2392
|
+
return serverSideSafe('databricks.fe.designsystem.useNativeIcon', false) ? '.db-icon' : '.anticon';
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
// Public Icon selects between the native (plain-DOM, token-driven) implementation and the legacy
|
|
2396
|
+
// AntD-backed implementation on the `databricks.fe.designsystem.useNativeIcon` server-side flag,
|
|
2397
|
+
// default off. serverSideSafe resolves synchronously at render, so the choice is stable from first paint.
|
|
2398
|
+
const Icon = /*#__PURE__*/ forwardRef(function Icon({ forceNativeIcon, ...props }, ref) {
|
|
2399
|
+
const useNativeIcon = forceNativeIcon ?? serverSideSafe('databricks.fe.designsystem.useNativeIcon', false);
|
|
2400
|
+
if (useNativeIcon) {
|
|
2401
|
+
return /*#__PURE__*/ jsx(NativeIcon, {
|
|
2402
|
+
...props,
|
|
2403
|
+
ref: ref
|
|
2404
|
+
});
|
|
2405
|
+
}
|
|
2406
|
+
return /*#__PURE__*/ jsx(AntdIcon, {
|
|
2407
|
+
...props,
|
|
2408
|
+
ref: ref
|
|
2409
|
+
});
|
|
2410
|
+
});
|
|
2411
|
+
|
|
2234
2412
|
function SvgAzHorizontalIcon(props) {
|
|
2235
2413
|
return /*#__PURE__*/ jsx("svg", {
|
|
2236
2414
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9122,6 +9300,37 @@ const LakewatchDetectionRuleIcon = /*#__PURE__*/ forwardRef((props, forwardedRef
|
|
|
9122
9300
|
});
|
|
9123
9301
|
LakewatchDetectionRuleIcon.displayName = "LakewatchDetectionRuleIcon";
|
|
9124
9302
|
|
|
9303
|
+
function SvgLakewatchIcon(props) {
|
|
9304
|
+
return /*#__PURE__*/ jsxs("svg", {
|
|
9305
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9306
|
+
width: "1em",
|
|
9307
|
+
height: "1em",
|
|
9308
|
+
fill: "none",
|
|
9309
|
+
viewBox: "0 0 16 16",
|
|
9310
|
+
...props,
|
|
9311
|
+
children: [
|
|
9312
|
+
/*#__PURE__*/ jsx("path", {
|
|
9313
|
+
fill: "currentColor",
|
|
9314
|
+
d: "M10.726 5.704c.326.712.51 1.504.51 2.338l-.009.289a5.6 5.6 0 0 1-.5 2.045l-1.182-.8a4.2 4.2 0 0 0-.001-3.072z"
|
|
9315
|
+
}),
|
|
9316
|
+
/*#__PURE__*/ jsx("path", {
|
|
9317
|
+
fill: "currentColor",
|
|
9318
|
+
fillRule: "evenodd",
|
|
9319
|
+
d: "M14.393.337c.679-.46 1.607.015 1.607.822v13.765l-.01.147c-.105.715-.96 1.105-1.597.675l-5.108-3.454a5.6 5.6 0 0 1-3.668 1.368l-.289-.008a5.619 5.619 0 0 1 .29-11.228c1.4 0 2.678.514 3.661 1.362zm-6.82 6.29a1.7 1.7 0 0 0-.002 2.817l7.029 4.752V1.886zM5.616 3.825a4.217 4.217 0 1 0 0 8.435c.915 0 1.76-.295 2.451-.79l-1.28-.867C5.024 9.412 4.97 6.86 6.623 5.585l.166-.12 1.273-.859a4.2 4.2 0 0 0-2.446-.781",
|
|
9320
|
+
clipRule: "evenodd"
|
|
9321
|
+
})
|
|
9322
|
+
]
|
|
9323
|
+
});
|
|
9324
|
+
}
|
|
9325
|
+
const LakewatchIcon = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
9326
|
+
return /*#__PURE__*/ jsx(Icon, {
|
|
9327
|
+
ref: forwardedRef,
|
|
9328
|
+
...props,
|
|
9329
|
+
component: SvgLakewatchIcon
|
|
9330
|
+
});
|
|
9331
|
+
});
|
|
9332
|
+
LakewatchIcon.displayName = "LakewatchIcon";
|
|
9333
|
+
|
|
9125
9334
|
function SvgLakewatchParserIcon(props) {
|
|
9126
9335
|
return /*#__PURE__*/ jsxs("svg", {
|
|
9127
9336
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -13099,6 +13308,37 @@ const SlidersIcon = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
|
13099
13308
|
});
|
|
13100
13309
|
SlidersIcon.displayName = "SlidersIcon";
|
|
13101
13310
|
|
|
13311
|
+
function SvgSlidesIcon(props) {
|
|
13312
|
+
return /*#__PURE__*/ jsxs("svg", {
|
|
13313
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13314
|
+
width: "1em",
|
|
13315
|
+
height: "1em",
|
|
13316
|
+
fill: "none",
|
|
13317
|
+
viewBox: "0 0 16 16",
|
|
13318
|
+
...props,
|
|
13319
|
+
children: [
|
|
13320
|
+
/*#__PURE__*/ jsx("path", {
|
|
13321
|
+
fill: "currentColor",
|
|
13322
|
+
d: "M12 5.5H4V4h8z"
|
|
13323
|
+
}),
|
|
13324
|
+
/*#__PURE__*/ jsx("path", {
|
|
13325
|
+
fill: "currentColor",
|
|
13326
|
+
fillRule: "evenodd",
|
|
13327
|
+
d: "M14.25 1a.75.75 0 0 1 .75.75v9.5a.75.75 0 0 1-.75.75h-2.837l1.667 3h-1.716l-1.666-3H6.302l-1.666 3H2.92l1.667-3H1.75a.75.75 0 0 1-.75-.75v-9.5A.75.75 0 0 1 1.75 1zM2.5 10.5h11v-8h-11z",
|
|
13328
|
+
clipRule: "evenodd"
|
|
13329
|
+
})
|
|
13330
|
+
]
|
|
13331
|
+
});
|
|
13332
|
+
}
|
|
13333
|
+
const SlidesIcon = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
13334
|
+
return /*#__PURE__*/ jsx(Icon, {
|
|
13335
|
+
ref: forwardedRef,
|
|
13336
|
+
...props,
|
|
13337
|
+
component: SvgSlidesIcon
|
|
13338
|
+
});
|
|
13339
|
+
});
|
|
13340
|
+
SlidesIcon.displayName = "SlidesIcon";
|
|
13341
|
+
|
|
13102
13342
|
function SvgSnippetIcon(props) {
|
|
13103
13343
|
return /*#__PURE__*/ jsxs("svg", {
|
|
13104
13344
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -17343,6 +17583,7 @@ var ShapeTokens = /*#__PURE__*/ function(ShapeTokens) {
|
|
|
17343
17583
|
const token = (token, fallback)=>`var(${token}, ${typeof fallback === 'number' ? `${fallback}px` : fallback})`;
|
|
17344
17584
|
|
|
17345
17585
|
const SMALL_BUTTON_HEIGHT$2 = 24;
|
|
17586
|
+
const ICON_SELECTOR$1 = `${getIconClassName()}`;
|
|
17346
17587
|
// Hoisted to module level so the default reference is stable across renders and instances.
|
|
17347
17588
|
// Without this, the default `analyticsEvents = [...]` literal would be a fresh array on every
|
|
17348
17589
|
// render, propagating ref-instability into useDesignSystemEventComponentCallbacks.
|
|
@@ -17356,7 +17597,7 @@ const getMemoizedLoadingSpinnerCss = memoize((iconOnly, forceIconStyles)=>({
|
|
|
17356
17597
|
color: 'inherit !important',
|
|
17357
17598
|
pointerEvents: 'none',
|
|
17358
17599
|
...!iconOnly && !forceIconStyles && {
|
|
17359
|
-
|
|
17600
|
+
[getIconClassName()]: {
|
|
17360
17601
|
verticalAlign: '-0.2em'
|
|
17361
17602
|
}
|
|
17362
17603
|
},
|
|
@@ -17382,12 +17623,11 @@ const getMemoizedButtonEmotionStyles = (props)=>{
|
|
|
17382
17623
|
themeCache.set(cacheKey, styles);
|
|
17383
17624
|
return styles;
|
|
17384
17625
|
};
|
|
17385
|
-
|
|
17386
|
-
|
|
17387
|
-
}
|
|
17626
|
+
// Trailing-icon slot wrapper class, derived from the design-system icon class so this slot and the
|
|
17627
|
+
// consumers that style it stay in sync with it. getIconClassName() is a selector — strip the dot.
|
|
17628
|
+
const BUTTON_END_ICON_CLASSNAME = `${getIconClassName().replace('.', '')}-btn-end-icon`;
|
|
17388
17629
|
const getButtonEmotionStyles = ({ theme, classNamePrefix, loading, withIcon, onlyIcon, isAnchor, enableAnimation, size, type, useFocusPseudoClass, forceIconStyles, danger })=>{
|
|
17389
|
-
const
|
|
17390
|
-
const clsEndIcon = `.${getEndIconClsName(theme)}`;
|
|
17630
|
+
const clsEndIcon = `.${BUTTON_END_ICON_CLASSNAME}`;
|
|
17391
17631
|
const clsLoadingIcon = `.${classNamePrefix}-btn-loading-icon`;
|
|
17392
17632
|
const clsIconOnly = `.${classNamePrefix}-btn-icon-only`;
|
|
17393
17633
|
const classPrimary = `.${classNamePrefix}-btn-primary`;
|
|
@@ -17420,7 +17660,7 @@ const getButtonEmotionStyles = ({ theme, classNamePrefix, loading, withIcon, onl
|
|
|
17420
17660
|
const inactiveIconCss = {
|
|
17421
17661
|
color: theme.colors.textSecondary
|
|
17422
17662
|
};
|
|
17423
|
-
const endIconCssSelector = `span > ${clsEndIcon} > ${
|
|
17663
|
+
const endIconCssSelector = `span > ${clsEndIcon} > ${ICON_SELECTOR$1}`;
|
|
17424
17664
|
const styles = {
|
|
17425
17665
|
lineHeight: theme.typography.lineHeightBase,
|
|
17426
17666
|
boxShadow: 'none',
|
|
@@ -17504,7 +17744,7 @@ const getButtonEmotionStyles = ({ theme, classNamePrefix, loading, withIcon, onl
|
|
|
17504
17744
|
}
|
|
17505
17745
|
}
|
|
17506
17746
|
},
|
|
17507
|
-
[`&[disabled] > ${
|
|
17747
|
+
[`&[disabled] > ${ICON_SELECTOR$1}`]: {
|
|
17508
17748
|
color: 'inherit !important'
|
|
17509
17749
|
},
|
|
17510
17750
|
[clsLoadingIcon]: {
|
|
@@ -17530,7 +17770,7 @@ const getButtonEmotionStyles = ({ theme, classNamePrefix, loading, withIcon, onl
|
|
|
17530
17770
|
animationDuration: '1s !important'
|
|
17531
17771
|
}
|
|
17532
17772
|
},
|
|
17533
|
-
[`& > ${clsLoadingIcon}
|
|
17773
|
+
[`& > ${clsLoadingIcon} ${ICON_SELECTOR$1}`]: {
|
|
17534
17774
|
paddingRight: 0
|
|
17535
17775
|
},
|
|
17536
17776
|
[`> :not(${clsLoadingIcon})`]: {
|
|
@@ -17544,17 +17784,17 @@ const getButtonEmotionStyles = ({ theme, classNamePrefix, loading, withIcon, onl
|
|
|
17544
17784
|
}
|
|
17545
17785
|
},
|
|
17546
17786
|
// Icon styles
|
|
17547
|
-
[`> ${
|
|
17787
|
+
[`> ${ICON_SELECTOR$1} + span, > span + ${ICON_SELECTOR$1}`]: {
|
|
17548
17788
|
marginRight: 0,
|
|
17549
17789
|
marginLeft: theme.spacing.xs
|
|
17550
17790
|
},
|
|
17551
|
-
[`> ${
|
|
17791
|
+
[`> ${ICON_SELECTOR$1}`]: iconCss,
|
|
17552
17792
|
[`> ${endIconCssSelector}`]: {
|
|
17553
17793
|
...iconCss,
|
|
17554
17794
|
marginLeft: size === 'small' ? theme.spacing.xs : theme.spacing.sm
|
|
17555
17795
|
},
|
|
17556
17796
|
...!type && !danger && {
|
|
17557
|
-
[`&:enabled:not(:hover):not(:active) > ${
|
|
17797
|
+
[`&:enabled:not(:hover):not(:active) > ${ICON_SELECTOR$1}`]: inactiveIconCss
|
|
17558
17798
|
},
|
|
17559
17799
|
...!type && !danger && {
|
|
17560
17800
|
[`&:enabled:not(:hover):not(:active) > ${endIconCssSelector}, &[href]:not(:disabled):not(:hover):not(:active) > ${endIconCssSelector}`]: inactiveIconCss
|
|
@@ -17579,13 +17819,13 @@ const getButtonEmotionStyles = ({ theme, classNamePrefix, loading, withIcon, onl
|
|
|
17579
17819
|
color: theme.colors.actionDangerDefaultTextPress
|
|
17580
17820
|
}
|
|
17581
17821
|
},
|
|
17582
|
-
|
|
17822
|
+
[`&:hover > ${ICON_SELECTOR$1}`]: {
|
|
17583
17823
|
color: tertiaryColors['&:hover'].color,
|
|
17584
17824
|
...danger && {
|
|
17585
17825
|
color: theme.colors.actionDangerDefaultTextHover
|
|
17586
17826
|
}
|
|
17587
17827
|
},
|
|
17588
|
-
|
|
17828
|
+
[`&:active > ${ICON_SELECTOR$1}`]: {
|
|
17589
17829
|
color: tertiaryColors['&:active'].color,
|
|
17590
17830
|
...danger && {
|
|
17591
17831
|
color: theme.colors.actionDangerDefaultTextPress
|
|
@@ -17597,7 +17837,7 @@ const getButtonEmotionStyles = ({ theme, classNamePrefix, loading, withIcon, onl
|
|
|
17597
17837
|
}
|
|
17598
17838
|
}
|
|
17599
17839
|
},
|
|
17600
|
-
[`&:enabled:not(${classLink}) >
|
|
17840
|
+
[`&:enabled:not(${classLink}) > ${ICON_SELECTOR$1}`]: {
|
|
17601
17841
|
color: theme.colors.textSecondary,
|
|
17602
17842
|
...danger && {
|
|
17603
17843
|
color: theme.colors.actionDangerDefaultTextDefault
|
|
@@ -17652,7 +17892,7 @@ const getButtonEmotionStyles = ({ theme, classNamePrefix, loading, withIcon, onl
|
|
|
17652
17892
|
height: theme.general.heightSm / 2,
|
|
17653
17893
|
width: theme.general.heightSm / 2
|
|
17654
17894
|
},
|
|
17655
|
-
[`& > ${clsLoadingIcon}
|
|
17895
|
+
[`& > ${clsLoadingIcon} ${ICON_SELECTOR$1}`]: {
|
|
17656
17896
|
// left: `calc(50% - 6px)!important`,
|
|
17657
17897
|
height: theme.general.heightSm / 2,
|
|
17658
17898
|
width: theme.general.heightSm / 2,
|
|
@@ -17688,7 +17928,7 @@ const AntDButtonInternal = /* #__PURE__ */ (()=>{
|
|
|
17688
17928
|
// If the button is a submit button and is part of a form, it is not the subject of the interaction, the form submission is
|
|
17689
17929
|
isInteractionSubject: !(props.htmlType === 'submit' && formContext.componentId)
|
|
17690
17930
|
});
|
|
17691
|
-
const clsEndIcon =
|
|
17931
|
+
const clsEndIcon = BUTTON_END_ICON_CLASSNAME;
|
|
17692
17932
|
const loadingCls = `${classNamePrefix}-btn-loading-icon`;
|
|
17693
17933
|
const { elementRef: buttonRef } = useNotifyOnFirstView({
|
|
17694
17934
|
onView: eventContext.onView
|
|
@@ -17740,7 +17980,7 @@ const AntDButtonInternal = /* #__PURE__ */ (()=>{
|
|
|
17740
17980
|
css: getMemoizedLoadingSpinnerCss(iconOnly, Boolean(dangerouslySetForceIconStyles))
|
|
17741
17981
|
}) : null;
|
|
17742
17982
|
return /*#__PURE__*/ jsx(DesignSystemAntDConfigProvider, {
|
|
17743
|
-
children: /*#__PURE__*/ jsx(Button$
|
|
17983
|
+
children: /*#__PURE__*/ jsx(Button$1, {
|
|
17744
17984
|
...addDebugOutlineIfEnabled(),
|
|
17745
17985
|
...props,
|
|
17746
17986
|
css: getMemoizedButtonEmotionStyles({
|
|
@@ -17880,7 +18120,7 @@ const NativeButton = /*#__PURE__*/ forwardRef(function NativeButton({ type, size
|
|
|
17880
18120
|
'db-btn-icon-only': iconOnly,
|
|
17881
18121
|
'db-btn-empty': isEmpty,
|
|
17882
18122
|
'db-btn-force-icon': forceIconStyles,
|
|
17883
|
-
'db-btn-
|
|
18123
|
+
'db-btn-block': Boolean(block),
|
|
17884
18124
|
'db-btn-loading': loading,
|
|
17885
18125
|
// While loading with a leading icon, reserve the icon's width so the button doesn't shrink.
|
|
17886
18126
|
'db-btn-loading-with-icon': loading && Boolean(icon),
|
|
@@ -17901,7 +18141,7 @@ const NativeButton = /*#__PURE__*/ forwardRef(function NativeButton({ type, size
|
|
|
17901
18141
|
// `.anticon` base rule.
|
|
17902
18142
|
const leading = loading ? /*#__PURE__*/ jsx(Spinner, {
|
|
17903
18143
|
className: "db-btn-spinner",
|
|
17904
|
-
animationDuration:
|
|
18144
|
+
animationDuration: 1,
|
|
17905
18145
|
inheritColor: true,
|
|
17906
18146
|
label: "loading",
|
|
17907
18147
|
"aria-label": "loading",
|
|
@@ -17965,12 +18205,13 @@ const NativeButton = /*#__PURE__*/ forwardRef(function NativeButton({ type, size
|
|
|
17965
18205
|
});
|
|
17966
18206
|
});
|
|
17967
18207
|
|
|
17968
|
-
// Public Button selects between the native (plain-DOM, token-driven) implementation and the legacy
|
|
17969
|
-
//
|
|
18208
|
+
// Public Button selects between the native (plain-DOM, token-driven) implementation and the legacy one.
|
|
18209
|
+
// `forceMode` defaults to `'native'` so new buttons are native; existing callsites pass `'flag'` to
|
|
18210
|
+
// defer to the `databricks.fe.designsystem.useNativeButton` server-side flag for rollout.
|
|
17970
18211
|
// serverSideSafe resolves synchronously at render, so the choice is stable from first paint.
|
|
17971
|
-
const Button
|
|
17972
|
-
const Button = /*#__PURE__*/ forwardRef(function Button({
|
|
17973
|
-
const useNativeButton =
|
|
18212
|
+
const Button = /* #__PURE__ */ (()=>{
|
|
18213
|
+
const Button = /*#__PURE__*/ forwardRef(function Button({ forceMode = 'native', ...props }, ref) {
|
|
18214
|
+
const useNativeButton = forceMode === 'native' || forceMode === 'flag' && serverSideSafe('databricks.fe.designsystem.useNativeButton', false);
|
|
17974
18215
|
if (useNativeButton) {
|
|
17975
18216
|
return /*#__PURE__*/ jsx(NativeButton, {
|
|
17976
18217
|
...props,
|
|
@@ -17982,8 +18223,8 @@ const Button$1 = /* #__PURE__ */ (()=>{
|
|
|
17982
18223
|
ref: ref
|
|
17983
18224
|
});
|
|
17984
18225
|
});
|
|
17985
|
-
//
|
|
17986
|
-
//
|
|
18226
|
+
// Keep the marker Ant wrappers (e.g. Tooltip) read to identify a button, so their spacing/rendering
|
|
18227
|
+
// around Button is unchanged regardless of which implementation renders underneath.
|
|
17987
18228
|
// See: https://github.com/ant-design/ant-design/blob/6dd39c1f89b4d6632e6ed022ff1bc275ca1e0f1f/components/button/button.tsx#L291
|
|
17988
18229
|
Button.__ANT_BUTTON = true;
|
|
17989
18230
|
return Button;
|
|
@@ -18108,18 +18349,18 @@ const getLinkStyles = (theme, clsPrefix)=>{
|
|
|
18108
18349
|
[`&${classTypography}, &${classTypography}:focus`]: {
|
|
18109
18350
|
color: theme.colors.actionTertiaryTextDefault
|
|
18110
18351
|
},
|
|
18111
|
-
[`&${classTypography}:hover, &${classTypography}:hover
|
|
18352
|
+
[`&${classTypography}:hover, &${classTypography}:hover ${getIconClassName()}`]: {
|
|
18112
18353
|
color: theme.colors.actionTertiaryTextHover,
|
|
18113
18354
|
textDecoration: 'underline'
|
|
18114
18355
|
},
|
|
18115
|
-
[`&${classTypography}:active, &${classTypography}:active
|
|
18356
|
+
[`&${classTypography}:active, &${classTypography}:active ${getIconClassName()}`]: {
|
|
18116
18357
|
color: theme.colors.actionTertiaryTextPress,
|
|
18117
18358
|
textDecoration: 'underline'
|
|
18118
18359
|
},
|
|
18119
18360
|
[`&${classTypography}:focus-visible`]: {
|
|
18120
18361
|
textDecoration: 'underline'
|
|
18121
18362
|
},
|
|
18122
|
-
|
|
18363
|
+
[getIconClassName()]: {
|
|
18123
18364
|
fontSize: 12,
|
|
18124
18365
|
verticalAlign: 'baseline'
|
|
18125
18366
|
},
|
|
@@ -18128,19 +18369,19 @@ const getLinkStyles = (theme, clsPrefix)=>{
|
|
|
18128
18369
|
[`.${clsPrefix}-tooltip-inner a&${classTypography}`]: {
|
|
18129
18370
|
[`&, :focus`]: {
|
|
18130
18371
|
color: theme.colors.blue500,
|
|
18131
|
-
|
|
18372
|
+
[getIconClassName()]: {
|
|
18132
18373
|
color: theme.colors.blue500
|
|
18133
18374
|
}
|
|
18134
18375
|
},
|
|
18135
18376
|
':active': {
|
|
18136
18377
|
color: theme.colors.blue500,
|
|
18137
|
-
|
|
18378
|
+
[getIconClassName()]: {
|
|
18138
18379
|
color: theme.colors.blue500
|
|
18139
18380
|
}
|
|
18140
18381
|
},
|
|
18141
18382
|
':hover': {
|
|
18142
18383
|
color: theme.colors.blue400,
|
|
18143
|
-
|
|
18384
|
+
[getIconClassName()]: {
|
|
18144
18385
|
color: theme.colors.blue400
|
|
18145
18386
|
}
|
|
18146
18387
|
}
|
|
@@ -18176,7 +18417,7 @@ const getEllipsisIconStyles = (useNewIcons)=>{
|
|
|
18176
18417
|
};
|
|
18177
18418
|
return /*#__PURE__*/ css(styles);
|
|
18178
18419
|
};
|
|
18179
|
-
const Link
|
|
18420
|
+
const Link = /*#__PURE__*/ forwardRef(function Link({ dangerouslySetAntdProps, componentId, analyticsEvents, onClick, ...props }, ref) {
|
|
18180
18421
|
const { children, openInNewTab, dangerouslyHideNewTabIcon, ellipsis, ...restProps } = props;
|
|
18181
18422
|
const { theme, classNamePrefix } = useDesignSystemTheme();
|
|
18182
18423
|
const memoizedAnalyticsEvents = useMemo(()=>analyticsEvents ?? [
|
|
@@ -18258,7 +18499,7 @@ function getParagraphEmotionStyles(theme, clsPrefix, props) {
|
|
|
18258
18499
|
lineHeight: theme.typography.lineHeightBase,
|
|
18259
18500
|
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
18260
18501
|
},
|
|
18261
|
-
|
|
18502
|
+
[`& ${getIconClassName()}`]: {
|
|
18262
18503
|
verticalAlign: 'text-bottom'
|
|
18263
18504
|
},
|
|
18264
18505
|
[`${getBtnClassName(clsPrefix, '-link', '& ')}, ${getBtnClassName(clsPrefix, '-tertiary', '& ')}`]: {
|
|
@@ -18339,7 +18580,7 @@ function getTextEmotionStyles(theme, props) {
|
|
|
18339
18580
|
return {
|
|
18340
18581
|
fontSize: theme.typography.fontSizeXxl,
|
|
18341
18582
|
lineHeight: theme.typography.lineHeightXxl,
|
|
18342
|
-
|
|
18583
|
+
[`& ${getIconClassName()}`]: {
|
|
18343
18584
|
lineHeight: theme.typography.lineHeightXxl,
|
|
18344
18585
|
verticalAlign: 'middle'
|
|
18345
18586
|
}
|
|
@@ -18348,7 +18589,7 @@ function getTextEmotionStyles(theme, props) {
|
|
|
18348
18589
|
return {
|
|
18349
18590
|
fontSize: theme.typography.fontSizeXl,
|
|
18350
18591
|
lineHeight: theme.typography.lineHeightXl,
|
|
18351
|
-
|
|
18592
|
+
[`& ${getIconClassName()}`]: {
|
|
18352
18593
|
lineHeight: theme.typography.lineHeightXl,
|
|
18353
18594
|
verticalAlign: 'middle'
|
|
18354
18595
|
}
|
|
@@ -18357,7 +18598,7 @@ function getTextEmotionStyles(theme, props) {
|
|
|
18357
18598
|
return {
|
|
18358
18599
|
fontSize: theme.typography.fontSizeLg,
|
|
18359
18600
|
lineHeight: theme.typography.lineHeightLg,
|
|
18360
|
-
|
|
18601
|
+
[`& ${getIconClassName()}`]: {
|
|
18361
18602
|
lineHeight: theme.typography.lineHeightLg,
|
|
18362
18603
|
verticalAlign: 'middle'
|
|
18363
18604
|
}
|
|
@@ -18366,7 +18607,7 @@ function getTextEmotionStyles(theme, props) {
|
|
|
18366
18607
|
return {
|
|
18367
18608
|
fontSize: theme.typography.fontSizeSm,
|
|
18368
18609
|
lineHeight: theme.typography.lineHeightSm,
|
|
18369
|
-
|
|
18610
|
+
[`& ${getIconClassName()}`]: {
|
|
18370
18611
|
verticalAlign: '-0.219em'
|
|
18371
18612
|
}
|
|
18372
18613
|
};
|
|
@@ -18482,7 +18723,7 @@ function getLevelStyles(theme, props) {
|
|
|
18482
18723
|
lineHeight: theme.typography[tokens.lineHeight],
|
|
18483
18724
|
fontWeight: theme.typography.typographyBoldFontWeight
|
|
18484
18725
|
},
|
|
18485
|
-
|
|
18726
|
+
[`& > ${getIconClassName()}`]: {
|
|
18486
18727
|
lineHeight: theme.typography[tokens.lineHeight]
|
|
18487
18728
|
}
|
|
18488
18729
|
});
|
|
@@ -18492,7 +18733,7 @@ function getTitleEmotionStyles(theme, props) {
|
|
|
18492
18733
|
'&&': {
|
|
18493
18734
|
color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
|
|
18494
18735
|
},
|
|
18495
|
-
|
|
18736
|
+
[`& > ${getIconClassName()}`]: {
|
|
18496
18737
|
verticalAlign: 'middle'
|
|
18497
18738
|
}
|
|
18498
18739
|
}, props.withoutMargins && {
|
|
@@ -18568,7 +18809,7 @@ const Typography = /* #__PURE__ */ (()=>{
|
|
|
18568
18809
|
Typography.Text = Text$1;
|
|
18569
18810
|
Typography.Title = Title$1;
|
|
18570
18811
|
Typography.Paragraph = Paragraph$2;
|
|
18571
|
-
Typography.Link = Link
|
|
18812
|
+
Typography.Link = Link;
|
|
18572
18813
|
Typography.Hint = Hint$2;
|
|
18573
18814
|
Typography.Truncate = Truncate;
|
|
18574
18815
|
Typography.TextMiddleElide = TextMiddleElide;
|
|
@@ -18753,7 +18994,7 @@ function DefaultFooter({ componentId, onOk, onCancel, confirmLoading, okText, ca
|
|
|
18753
18994
|
const handleOk = (e)=>onOk?.(e);
|
|
18754
18995
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
18755
18996
|
children: [
|
|
18756
|
-
cancelText && /*#__PURE__*/ jsx(Button
|
|
18997
|
+
cancelText && /*#__PURE__*/ jsx(Button, {
|
|
18757
18998
|
componentId: componentId ? `${componentId}.footer.cancel` : 'modal.close',
|
|
18758
18999
|
onClick: handleCancel,
|
|
18759
19000
|
autoFocus: autoFocusButton === 'cancel',
|
|
@@ -18762,7 +19003,7 @@ function DefaultFooter({ componentId, onOk, onCancel, confirmLoading, okText, ca
|
|
|
18762
19003
|
...cancelButtonProps,
|
|
18763
19004
|
children: cancelText
|
|
18764
19005
|
}),
|
|
18765
|
-
okText && /*#__PURE__*/ jsx(Button
|
|
19006
|
+
okText && /*#__PURE__*/ jsx(Button, {
|
|
18766
19007
|
componentId: componentId ? `${componentId}.footer.ok` : 'modal.ok',
|
|
18767
19008
|
loading: confirmLoading,
|
|
18768
19009
|
onClick: handleOk,
|
|
@@ -19080,7 +19321,7 @@ function ModalInternal({ componentId, analyticsEvents = [
|
|
|
19080
19321
|
}),
|
|
19081
19322
|
dangerouslySetAntdProps?.closable === undefined || dangerouslySetAntdProps?.closable ? /*#__PURE__*/ jsx(DialogPrimitive.Close, {
|
|
19082
19323
|
asChild: true,
|
|
19083
|
-
children: /*#__PURE__*/ jsx(Button
|
|
19324
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
19084
19325
|
icon: dangerouslySetAntdProps?.closeIcon ?? /*#__PURE__*/ jsx(CloseIcon, {
|
|
19085
19326
|
ref: elementRef
|
|
19086
19327
|
}),
|
|
@@ -19180,14 +19421,14 @@ function DangerModal(props) {
|
|
|
19180
19421
|
shouldStartInteraction: props.shouldStartInteraction,
|
|
19181
19422
|
title: titleComp,
|
|
19182
19423
|
footer: [
|
|
19183
|
-
/*#__PURE__*/ jsx(Button
|
|
19424
|
+
/*#__PURE__*/ jsx(Button, {
|
|
19184
19425
|
componentId: props.componentId ? `${props.componentId}.danger.footer.cancel` : 'modal.danger.cancel',
|
|
19185
19426
|
onClick: onCancel,
|
|
19186
19427
|
shouldStartInteraction: props.shouldStartInteraction,
|
|
19187
19428
|
...cancelButtonProps,
|
|
19188
19429
|
children: cancelText || 'Cancel'
|
|
19189
19430
|
}, "cancel"),
|
|
19190
|
-
/*#__PURE__*/ jsx(Button
|
|
19431
|
+
/*#__PURE__*/ jsx(Button, {
|
|
19191
19432
|
componentId: props.componentId ? `${props.componentId}.danger.footer.ok` : 'modal.danger.ok',
|
|
19192
19433
|
type: "primary",
|
|
19193
19434
|
danger: true,
|
|
@@ -19214,7 +19455,7 @@ const Anchor = Popover$1.Anchor; // Behavioral component only
|
|
|
19214
19455
|
const DEFAULT_ANALYTICS_EVENTS$5 = [
|
|
19215
19456
|
DesignSystemEventProviderAnalyticsEventTypes.OnView
|
|
19216
19457
|
];
|
|
19217
|
-
const Root$
|
|
19458
|
+
const Root$9 = ({ children, onOpenChange, componentId, analyticsEvents = DEFAULT_ANALYTICS_EVENTS$5, ...props })=>{
|
|
19218
19459
|
const firstView = useRef(true);
|
|
19219
19460
|
const eventContext = useDesignSystemEventComponentCallbacks({
|
|
19220
19461
|
componentType: DesignSystemEventProviderComponentTypes.Popover,
|
|
@@ -19301,9 +19542,8 @@ const Close = /*#__PURE__*/ forwardRef(function Close({ children, ...props }, re
|
|
|
19301
19542
|
});
|
|
19302
19543
|
});
|
|
19303
19544
|
const Arrow$2 = /*#__PURE__*/ forwardRef(function Arrow({ children, ...props }, ref) {
|
|
19304
|
-
const { theme } = useDesignSystemTheme();
|
|
19305
19545
|
return /*#__PURE__*/ jsx(Popover$1.Arrow, {
|
|
19306
|
-
css:
|
|
19546
|
+
css: arrowStyles,
|
|
19307
19547
|
ref: ref,
|
|
19308
19548
|
width: 12,
|
|
19309
19549
|
height: 6,
|
|
@@ -19331,39 +19571,41 @@ const CONSTANTS$1 = {
|
|
|
19331
19571
|
const popoverContentStylesResolver = memoize(// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
19332
19572
|
// @ts-ignore [FEINF-3177] TODO: fix to work with React 18 types
|
|
19333
19573
|
(theme)=>({
|
|
19334
|
-
backgroundColor:
|
|
19335
|
-
color:
|
|
19574
|
+
backgroundColor: 'var(--db-popover-surface)',
|
|
19575
|
+
color: 'var(--db-popover-text)',
|
|
19336
19576
|
lineHeight: theme.typography.lineHeightBase,
|
|
19337
|
-
border: `1px solid
|
|
19338
|
-
borderRadius:
|
|
19339
|
-
padding:
|
|
19340
|
-
boxShadow:
|
|
19577
|
+
border: `1px solid var(--db-popover-border)`,
|
|
19578
|
+
borderRadius: 'var(--db-popover-border-radius)',
|
|
19579
|
+
padding: 'var(--db-popover-spacing)',
|
|
19580
|
+
boxShadow: 'var(--db-popover-shadow)',
|
|
19341
19581
|
zIndex: theme.options.zIndexBase + 30,
|
|
19342
19582
|
...getDarkModePortalStyles(theme),
|
|
19343
19583
|
a: importantify({
|
|
19344
|
-
color:
|
|
19584
|
+
color: 'var(--db-popover-link-text)',
|
|
19345
19585
|
'&:hover, &:focus': {
|
|
19346
|
-
color:
|
|
19586
|
+
color: 'var(--db-popover-link-text-hover)'
|
|
19347
19587
|
}
|
|
19348
19588
|
}),
|
|
19349
19589
|
'&:focus-visible': {
|
|
19350
19590
|
outlineStyle: 'solid',
|
|
19351
|
-
outlineWidth: '
|
|
19591
|
+
outlineWidth: 'var(--db-popover-focus-ring-width)',
|
|
19352
19592
|
outlineOffset: '1px',
|
|
19353
|
-
outlineColor:
|
|
19593
|
+
outlineColor: 'var(--db-popover-focus-ring)'
|
|
19354
19594
|
}
|
|
19355
19595
|
}));
|
|
19356
19596
|
const contentStyles$1 = (theme)=>popoverContentStylesResolver(theme);
|
|
19357
|
-
//
|
|
19358
|
-
|
|
19359
|
-
|
|
19360
|
-
|
|
19361
|
-
|
|
19362
|
-
|
|
19363
|
-
|
|
19364
|
-
|
|
19365
|
-
|
|
19366
|
-
|
|
19597
|
+
// Fill and stroke read from the popover CSS variables; the rest is fixed geometry, so this no
|
|
19598
|
+
// longer depends on the theme. borderDecorative was an alias for border, so the arrow stroke
|
|
19599
|
+
// and the content border share --db-popover-border.
|
|
19600
|
+
const arrowStyles = {
|
|
19601
|
+
fill: 'var(--db-popover-surface)',
|
|
19602
|
+
stroke: 'var(--db-popover-border)',
|
|
19603
|
+
strokeDashoffset: -CONSTANTS$1.arrowBottomLength(),
|
|
19604
|
+
strokeDasharray: CONSTANTS$1.arrowBottomLength() + 2 * CONSTANTS$1.arrowSide(),
|
|
19605
|
+
strokeWidth: CONSTANTS$1.arrowStrokeWidth(),
|
|
19606
|
+
position: 'relative',
|
|
19607
|
+
top: -1
|
|
19608
|
+
};
|
|
19367
19609
|
|
|
19368
19610
|
var Popover = /*#__PURE__*/Object.freeze({
|
|
19369
19611
|
__proto__: null,
|
|
@@ -19371,7 +19613,7 @@ var Popover = /*#__PURE__*/Object.freeze({
|
|
|
19371
19613
|
Arrow: Arrow$2,
|
|
19372
19614
|
Close: Close,
|
|
19373
19615
|
Content: Content$7,
|
|
19374
|
-
Root: Root$
|
|
19616
|
+
Root: Root$9,
|
|
19375
19617
|
Trigger: Trigger$5
|
|
19376
19618
|
});
|
|
19377
19619
|
|
|
@@ -19463,19 +19705,19 @@ const getTooltipStyles = (theme, clsPrefix)=>{
|
|
|
19463
19705
|
[`& a${classTypography}`]: {
|
|
19464
19706
|
'&, :focus': {
|
|
19465
19707
|
color: 'var(--db-tooltip-link-text)',
|
|
19466
|
-
|
|
19708
|
+
[getIconClassName()]: {
|
|
19467
19709
|
color: 'var(--db-tooltip-link-text)'
|
|
19468
19710
|
}
|
|
19469
19711
|
},
|
|
19470
19712
|
':active': {
|
|
19471
|
-
color: 'var(--db-tooltip-link-text-
|
|
19472
|
-
|
|
19473
|
-
color: 'var(--db-tooltip-link-text-
|
|
19713
|
+
color: 'var(--db-tooltip-link-text-active)',
|
|
19714
|
+
[getIconClassName()]: {
|
|
19715
|
+
color: 'var(--db-tooltip-link-text-active)'
|
|
19474
19716
|
}
|
|
19475
19717
|
},
|
|
19476
19718
|
':hover': {
|
|
19477
19719
|
color: 'var(--db-tooltip-link-text-hover)',
|
|
19478
|
-
|
|
19720
|
+
[getIconClassName()]: {
|
|
19479
19721
|
color: 'var(--db-tooltip-link-text-hover)'
|
|
19480
19722
|
}
|
|
19481
19723
|
}
|
|
@@ -19751,7 +19993,7 @@ const Banner = (props)=>{
|
|
|
19751
19993
|
});
|
|
19752
19994
|
const actionButton = onAccept && ctaText ? /*#__PURE__*/ jsx("div", {
|
|
19753
19995
|
css: styles.actionButtonContainer,
|
|
19754
|
-
children: /*#__PURE__*/ jsx(Button
|
|
19996
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
19755
19997
|
componentId: `${componentId}.accept`,
|
|
19756
19998
|
onClick: onAccept,
|
|
19757
19999
|
css: styles.actionButton,
|
|
@@ -19763,7 +20005,7 @@ const Banner = (props)=>{
|
|
|
19763
20005
|
}) : null;
|
|
19764
20006
|
const close = closable !== false ? /*#__PURE__*/ jsx("div", {
|
|
19765
20007
|
css: styles.closeIconContainer,
|
|
19766
|
-
children: /*#__PURE__*/ jsx(Button
|
|
20008
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
19767
20009
|
componentId: `${componentId}.close`,
|
|
19768
20010
|
css: styles.closeButton,
|
|
19769
20011
|
onClick: ()=>{
|
|
@@ -19936,6 +20178,7 @@ const TitleSkeleton = ({ label, seed = '', frameRate = 60, style, level, inline
|
|
|
19936
20178
|
});
|
|
19937
20179
|
};
|
|
19938
20180
|
|
|
20181
|
+
const ICON_SELECTOR = `${getIconClassName()}`;
|
|
19939
20182
|
// Class names that can be used to reference children within
|
|
19940
20183
|
// Should not be used outside of design system
|
|
19941
20184
|
// TODO: PE-239 Maybe we could add "dangerous" into the names or make them completely random.
|
|
@@ -19960,7 +20203,7 @@ const repeatingElementsStyles = {
|
|
|
19960
20203
|
paddingRight: 'var(--table-spacing-sm)',
|
|
19961
20204
|
wordBreak: 'break-word',
|
|
19962
20205
|
overflow: 'hidden',
|
|
19963
|
-
|
|
20206
|
+
[`& ${ICON_SELECTOR}`]: {
|
|
19964
20207
|
verticalAlign: 'text-bottom'
|
|
19965
20208
|
}
|
|
19966
20209
|
}),
|
|
@@ -20055,31 +20298,31 @@ const hideIconButtonRowStyles = /*#__PURE__*/ css({
|
|
|
20055
20298
|
transition: 'opacity 0.1s ease !important'
|
|
20056
20299
|
},
|
|
20057
20300
|
// Hide by default
|
|
20058
|
-
[`.${hideIconButtonActionCellClassName} button:has(> span
|
|
20301
|
+
[`.${hideIconButtonActionCellClassName} button:has(> span${ICON_SELECTOR}[role="img"]:only-child),
|
|
20059
20302
|
.${hideIconButtonActionCellClassName} button:has(> i.fa:only-child),
|
|
20060
|
-
.${hideIconButtonActionCellClassName} a:has(> span
|
|
20303
|
+
.${hideIconButtonActionCellClassName} a:has(> span${ICON_SELECTOR}[role="img"]:only-child),
|
|
20061
20304
|
.${hideIconButtonActionCellClassName} a:has(> i.fa:only-child)`]: {
|
|
20062
20305
|
opacity: 0,
|
|
20063
20306
|
transition: 'opacity 0.1s ease !important'
|
|
20064
20307
|
},
|
|
20065
|
-
[`.${hideIconButtonActionCellClassName} button:focus-visible:has(> span
|
|
20308
|
+
[`.${hideIconButtonActionCellClassName} button:focus-visible:has(> span${ICON_SELECTOR}[role="img"]:only-child),
|
|
20066
20309
|
.${hideIconButtonActionCellClassName} button:focus-visible:has(> i.fa:only-child),
|
|
20067
|
-
.${hideIconButtonActionCellClassName} a:focus-visible:has(> span
|
|
20310
|
+
.${hideIconButtonActionCellClassName} a:focus-visible:has(> span${ICON_SELECTOR}[role="img"]:only-child),
|
|
20068
20311
|
.${hideIconButtonActionCellClassName} a:focus-visible:has(> i.fa:only-child)`]: {
|
|
20069
20312
|
outlineStyle: 'solid !important'
|
|
20070
20313
|
},
|
|
20071
20314
|
// Keep visible when actively clicked or when dropdown is open
|
|
20072
|
-
[`&:hover .${hideIconButtonActionCellClassName} button:has(> span
|
|
20073
|
-
.${hideIconButtonActionCellClassName} button:focus-visible:has(> span
|
|
20315
|
+
[`&:hover .${hideIconButtonActionCellClassName} button:has(> span${ICON_SELECTOR}[role="img"]:only-child),
|
|
20316
|
+
.${hideIconButtonActionCellClassName} button:focus-visible:has(> span${ICON_SELECTOR}[role="img"]:only-child),
|
|
20074
20317
|
&:hover .${hideIconButtonActionCellClassName} button:has(> i.fa:only-child),
|
|
20075
20318
|
.${hideIconButtonActionCellClassName} button:focus-visible:has(> i.fa:only-child),
|
|
20076
|
-
&:hover .${hideIconButtonActionCellClassName} a:has(> span
|
|
20077
|
-
.${hideIconButtonActionCellClassName} a:focus-visible:has(> span
|
|
20319
|
+
&:hover .${hideIconButtonActionCellClassName} a:has(> span${ICON_SELECTOR}[role="img"]:only-child),
|
|
20320
|
+
.${hideIconButtonActionCellClassName} a:focus-visible:has(> span${ICON_SELECTOR}[role="img"]:only-child),
|
|
20078
20321
|
&:hover .${hideIconButtonActionCellClassName} a:has(> i.fa:only-child),
|
|
20079
20322
|
.${hideIconButtonActionCellClassName} a:focus-visible:has(> i.fa:only-child)
|
|
20080
|
-
.${hideIconButtonActionCellClassName} div[aria-expanded="true"] > button:has(span
|
|
20323
|
+
.${hideIconButtonActionCellClassName} div[aria-expanded="true"] > button:has(span${ICON_SELECTOR}[role="img"]:only-child),
|
|
20081
20324
|
.${hideIconButtonActionCellClassName} div[aria-expanded="true"] > button:has(i.fa:only-child),
|
|
20082
|
-
.${hideIconButtonActionCellClassName} button[aria-expanded="true"]:has(span
|
|
20325
|
+
.${hideIconButtonActionCellClassName} button[aria-expanded="true"]:has(span${ICON_SELECTOR}[role="img"]:only-child),
|
|
20083
20326
|
.${hideIconButtonActionCellClassName} button[aria-expanded="true"]:has(i.fa:only-child),`]: {
|
|
20084
20327
|
opacity: 1
|
|
20085
20328
|
}
|
|
@@ -20904,8 +21147,7 @@ zIndex)=>{
|
|
|
20904
21147
|
});
|
|
20905
21148
|
};
|
|
20906
21149
|
const getChild = (child, isDisabled, disabledReason, tooltip, index, siblingCount)=>{
|
|
20907
|
-
const
|
|
20908
|
-
const isHintColumnType = Boolean(child && typeof child !== 'string' && typeof child !== 'number' && typeof child !== 'boolean' && 'type' in child && child?.type === HintColumnType);
|
|
21150
|
+
const isHintColumnType = Boolean(child && typeof child !== 'string' && typeof child !== 'number' && typeof child !== 'boolean' && 'type' in child && child?.type === HintColumn);
|
|
20909
21151
|
if (isDisabled && disabledReason && child && isHintColumnType) {
|
|
20910
21152
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
20911
21153
|
children: [
|
|
@@ -20929,7 +21171,7 @@ const DropdownContext = /*#__PURE__*/ createContext({
|
|
|
20929
21171
|
setIsOpen: (isOpen)=>{}
|
|
20930
21172
|
});
|
|
20931
21173
|
const useDropdownContext = ()=>React__default.useContext(DropdownContext);
|
|
20932
|
-
const Root$
|
|
21174
|
+
const Root$8 = ({ children, itemHtmlType, ...props })=>{
|
|
20933
21175
|
const [isOpen, setIsOpen] = React__default.useState(Boolean(props.defaultOpen || props.open));
|
|
20934
21176
|
const useExternalState = useRef(props.open !== undefined || props.onOpenChange !== undefined).current;
|
|
20935
21177
|
useEffect(()=>{
|
|
@@ -21194,7 +21436,7 @@ const Label$1 = /*#__PURE__*/ forwardRef(function Label({ children, ...props },
|
|
|
21194
21436
|
children: children
|
|
21195
21437
|
});
|
|
21196
21438
|
});
|
|
21197
|
-
const Separator$
|
|
21439
|
+
const Separator$1 = /*#__PURE__*/ forwardRef(function Separator({ children, ...props }, ref) {
|
|
21198
21440
|
return /*#__PURE__*/ jsx(DropdownMenu$1.Separator, {
|
|
21199
21441
|
ref: ref,
|
|
21200
21442
|
css: dropdownSeparatorStyles,
|
|
@@ -21570,8 +21812,8 @@ var DropdownMenu = /*#__PURE__*/Object.freeze({
|
|
|
21570
21812
|
Label: Label$1,
|
|
21571
21813
|
RadioGroup: RadioGroup$1,
|
|
21572
21814
|
RadioItem: RadioItem$1,
|
|
21573
|
-
Root: Root$
|
|
21574
|
-
Separator: Separator$
|
|
21815
|
+
Root: Root$8,
|
|
21816
|
+
Separator: Separator$1,
|
|
21575
21817
|
Sub: Sub$1,
|
|
21576
21818
|
SubContent: SubContent$1,
|
|
21577
21819
|
SubTrigger: SubTrigger$1,
|
|
@@ -21630,7 +21872,7 @@ const ContextMenuProps = /*#__PURE__*/ createContext({
|
|
|
21630
21872
|
setIsOpen: (isOpen)=>{}
|
|
21631
21873
|
});
|
|
21632
21874
|
const useContextMenuProps = ()=>React__default.useContext(ContextMenuProps);
|
|
21633
|
-
const Root$
|
|
21875
|
+
const Root$7 = ({ children, onOpenChange, ...props })=>{
|
|
21634
21876
|
const [isOpen, setIsOpen] = React__default.useState(false);
|
|
21635
21877
|
const handleChange = (isOpen)=>{
|
|
21636
21878
|
setIsOpen(isOpen);
|
|
@@ -21913,7 +22155,7 @@ const Hint$1 = ({ children })=>{
|
|
|
21913
22155
|
children: children
|
|
21914
22156
|
});
|
|
21915
22157
|
};
|
|
21916
|
-
const Separator
|
|
22158
|
+
const Separator = ()=>{
|
|
21917
22159
|
const { theme } = useDesignSystemTheme();
|
|
21918
22160
|
return /*#__PURE__*/ jsx(ContextMenuSeparator, {
|
|
21919
22161
|
css: dropdownSeparatorStyles(theme)
|
|
@@ -21924,7 +22166,7 @@ const itemIndicatorStyles = (theme)=>/*#__PURE__*/ css({
|
|
|
21924
22166
|
paddingRight: theme.spacing.xs
|
|
21925
22167
|
});
|
|
21926
22168
|
const ContextMenu = {
|
|
21927
|
-
Root: Root$
|
|
22169
|
+
Root: Root$7,
|
|
21928
22170
|
Trigger: Trigger$3,
|
|
21929
22171
|
Label: Label,
|
|
21930
22172
|
Item: Item$2,
|
|
@@ -21933,7 +22175,7 @@ const ContextMenu = {
|
|
|
21933
22175
|
CheckboxItem: CheckboxItem,
|
|
21934
22176
|
RadioItem: RadioItem,
|
|
21935
22177
|
Arrow: Arrow,
|
|
21936
|
-
Separator: Separator
|
|
22178
|
+
Separator: Separator,
|
|
21937
22179
|
Sub: Sub,
|
|
21938
22180
|
SubTrigger: SubTrigger,
|
|
21939
22181
|
SubContent: SubContent,
|
|
@@ -21954,8 +22196,8 @@ var ContextMenu$1 = /*#__PURE__*/Object.freeze({
|
|
|
21954
22196
|
Label: Label,
|
|
21955
22197
|
RadioGroup: RadioGroup,
|
|
21956
22198
|
RadioItem: RadioItem,
|
|
21957
|
-
Root: Root$
|
|
21958
|
-
Separator: Separator
|
|
22199
|
+
Root: Root$7,
|
|
22200
|
+
Separator: Separator,
|
|
21959
22201
|
Sub: Sub,
|
|
21960
22202
|
SubContent: SubContent,
|
|
21961
22203
|
SubTrigger: SubTrigger,
|
|
@@ -22122,7 +22364,14 @@ const getInputStyles = (clsPrefix, theme, { validationState, type, hasValue, loc
|
|
|
22122
22364
|
}
|
|
22123
22365
|
},
|
|
22124
22366
|
[clearIcon]: {
|
|
22125
|
-
fontSize: theme.typography.fontSizeSm
|
|
22367
|
+
fontSize: theme.typography.fontSizeSm,
|
|
22368
|
+
color: theme.colors.textSecondary,
|
|
22369
|
+
'&:hover': {
|
|
22370
|
+
color: theme.colors.actionTertiaryTextHover
|
|
22371
|
+
},
|
|
22372
|
+
'&:active': {
|
|
22373
|
+
color: theme.colors.actionTertiaryTextPress
|
|
22374
|
+
}
|
|
22126
22375
|
},
|
|
22127
22376
|
[prefixIcon]: {
|
|
22128
22377
|
marginRight: theme.spacing.sm,
|
|
@@ -22569,7 +22818,7 @@ function MonthCell({ index, label, displayYear, selected, disabled, rangeFrom, r
|
|
|
22569
22818
|
const isRangeStart = rangeFromValue !== undefined && cellValue === rangeFromValue;
|
|
22570
22819
|
const isRangeEnd = rangeToValue !== undefined && cellValue === rangeToValue;
|
|
22571
22820
|
const isRangeMiddle = inRange && !isRangeStart && !isRangeEnd;
|
|
22572
|
-
const defaultButton = /*#__PURE__*/ jsx(Button
|
|
22821
|
+
const defaultButton = /*#__PURE__*/ jsx(Button, {
|
|
22573
22822
|
componentId: "datepicker-month-grid-cell",
|
|
22574
22823
|
"aria-label": `${label} ${displayYear}`,
|
|
22575
22824
|
"data-selected": selected || undefined,
|
|
@@ -22752,7 +23001,7 @@ function MonthCell({ index, label, displayYear, selected, disabled, rangeFrom, r
|
|
|
22752
23001
|
marginBottom: theme.spacing.xs
|
|
22753
23002
|
},
|
|
22754
23003
|
children: [
|
|
22755
|
-
/*#__PURE__*/ jsx(Button
|
|
23004
|
+
/*#__PURE__*/ jsx(Button, {
|
|
22756
23005
|
componentId: "datepicker-month-grid-prev",
|
|
22757
23006
|
"aria-label": "Previous year",
|
|
22758
23007
|
icon: /*#__PURE__*/ jsx(ChevronLeftIcon, {}),
|
|
@@ -22765,7 +23014,7 @@ function MonthCell({ index, label, displayYear, selected, disabled, rangeFrom, r
|
|
|
22765
23014
|
"aria-live": "polite",
|
|
22766
23015
|
children: displayYear
|
|
22767
23016
|
}),
|
|
22768
|
-
/*#__PURE__*/ jsx(Button
|
|
23017
|
+
/*#__PURE__*/ jsx(Button, {
|
|
22769
23018
|
componentId: "datepicker-month-grid-next",
|
|
22770
23019
|
"aria-label": "Next year",
|
|
22771
23020
|
icon: /*#__PURE__*/ jsx(ChevronRightIcon, {}),
|
|
@@ -22915,7 +23164,7 @@ function YearCell({ year, index, selected, disabled, isCurrentYear, rangeFrom, r
|
|
|
22915
23164
|
const isRangeStart = rangeFromYear !== undefined && year === rangeFromYear;
|
|
22916
23165
|
const isRangeEnd = rangeToYear !== undefined && year === rangeToYear;
|
|
22917
23166
|
const isRangeMiddle = inRange && !isRangeStart && !isRangeEnd;
|
|
22918
|
-
const defaultButton = /*#__PURE__*/ jsx(Button
|
|
23167
|
+
const defaultButton = /*#__PURE__*/ jsx(Button, {
|
|
22919
23168
|
componentId: "datepicker-year-grid-cell",
|
|
22920
23169
|
"aria-label": String(year),
|
|
22921
23170
|
"data-selected": selected || undefined,
|
|
@@ -23100,7 +23349,7 @@ function YearCell({ year, index, selected, disabled, isCurrentYear, rangeFrom, r
|
|
|
23100
23349
|
marginBottom: theme.spacing.xs
|
|
23101
23350
|
},
|
|
23102
23351
|
children: [
|
|
23103
|
-
/*#__PURE__*/ jsx(Button
|
|
23352
|
+
/*#__PURE__*/ jsx(Button, {
|
|
23104
23353
|
componentId: "datepicker-year-grid-prev",
|
|
23105
23354
|
"aria-label": "Previous decade",
|
|
23106
23355
|
icon: /*#__PURE__*/ jsx(ChevronLeftIcon, {}),
|
|
@@ -23117,7 +23366,7 @@ function YearCell({ year, index, selected, disabled, isCurrentYear, rangeFrom, r
|
|
|
23117
23366
|
decadeStart + YEARS_PER_PAGE - 1
|
|
23118
23367
|
]
|
|
23119
23368
|
}),
|
|
23120
|
-
/*#__PURE__*/ jsx(Button
|
|
23369
|
+
/*#__PURE__*/ jsx(Button, {
|
|
23121
23370
|
componentId: "datepicker-year-grid-next",
|
|
23122
23371
|
"aria-label": "Next decade",
|
|
23123
23372
|
icon: /*#__PURE__*/ jsx(ChevronRightIcon, {}),
|
|
@@ -23380,7 +23629,7 @@ function createDayComponent(renderCellContent) {
|
|
|
23380
23629
|
month: 'long',
|
|
23381
23630
|
day: 'numeric'
|
|
23382
23631
|
});
|
|
23383
|
-
const defaultButton = /*#__PURE__*/ jsx(Button$
|
|
23632
|
+
const defaultButton = /*#__PURE__*/ jsx(Button$2, {
|
|
23384
23633
|
name: "day",
|
|
23385
23634
|
ref: buttonRef,
|
|
23386
23635
|
...dayRender.buttonProps,
|
|
@@ -24067,7 +24316,7 @@ const DatePicker = /*#__PURE__*/ forwardRef(// eslint-disable-next-line react-co
|
|
|
24067
24316
|
pointerEvents: restProps?.disabled ? 'none' : 'auto'
|
|
24068
24317
|
},
|
|
24069
24318
|
...wrapperProps,
|
|
24070
|
-
children: /*#__PURE__*/ jsxs(Root$
|
|
24319
|
+
children: /*#__PURE__*/ jsxs(Root$9, {
|
|
24071
24320
|
componentId: "codegen_design-system_src_development_datepicker_datepicker.tsx_330",
|
|
24072
24321
|
open: isVisible,
|
|
24073
24322
|
onOpenChange: setIsVisible,
|
|
@@ -24267,7 +24516,7 @@ const DatePicker = /*#__PURE__*/ forwardRef(// eslint-disable-next-line react-co
|
|
|
24267
24516
|
maxWidth: 225,
|
|
24268
24517
|
flexWrap: 'wrap'
|
|
24269
24518
|
},
|
|
24270
|
-
children: quickActions?.map((action, i)=>/*#__PURE__*/ jsx(Button
|
|
24519
|
+
children: quickActions?.map((action, i)=>/*#__PURE__*/ jsx(Button, {
|
|
24271
24520
|
size: "small",
|
|
24272
24521
|
componentId: "codegen_design-system_src_design-system_datepicker_datepicker.tsx_281",
|
|
24273
24522
|
onClick: ()=>action.onClick ? action.onClick(action.value) : !Array.isArray(action.value) && handleDatePickerUpdate(action.value),
|
|
@@ -24312,7 +24561,7 @@ const DatePicker = /*#__PURE__*/ forwardRef(// eslint-disable-next-line react-co
|
|
|
24312
24561
|
display: 'flex',
|
|
24313
24562
|
justifyContent: 'flex-end'
|
|
24314
24563
|
},
|
|
24315
|
-
children: /*#__PURE__*/ jsx(Button
|
|
24564
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
24316
24565
|
"aria-label": "Open end date picker",
|
|
24317
24566
|
type: "primary",
|
|
24318
24567
|
componentId: "datepicker-dubois-ok-button",
|
|
@@ -24797,7 +25046,7 @@ const DialogCombobox = ({ children, label, id, value = [], open, emptyText, scro
|
|
|
24797
25046
|
setDisableMouseOver,
|
|
24798
25047
|
onView: eventContext.onView
|
|
24799
25048
|
},
|
|
24800
|
-
children: /*#__PURE__*/ jsx(Root$
|
|
25049
|
+
children: /*#__PURE__*/ jsx(Root$6, {
|
|
24801
25050
|
open: open !== undefined ? open : isOpen,
|
|
24802
25051
|
...props,
|
|
24803
25052
|
children: /*#__PURE__*/ jsx(ComponentFinderContext.Provider, {
|
|
@@ -24809,7 +25058,7 @@ const DialogCombobox = ({ children, label, id, value = [], open, emptyText, scro
|
|
|
24809
25058
|
})
|
|
24810
25059
|
});
|
|
24811
25060
|
};
|
|
24812
|
-
const Root$
|
|
25061
|
+
const Root$6 = (props)=>{
|
|
24813
25062
|
const { children, stayOpenOnSelection, multiSelect, ...restProps } = props;
|
|
24814
25063
|
const { value, setIsOpen, onView } = useDialogComboboxContext();
|
|
24815
25064
|
const firstView = useRef(true);
|
|
@@ -26289,6 +26538,7 @@ const DialogComboboxTrigger = /*#__PURE__*/ forwardRef(// eslint-disable-next-li
|
|
|
26289
26538
|
'aria-label': ariaLabel
|
|
26290
26539
|
},
|
|
26291
26540
|
ref: forwardedRef,
|
|
26541
|
+
// oxlint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
26292
26542
|
role: "combobox",
|
|
26293
26543
|
"aria-haspopup": "listbox",
|
|
26294
26544
|
"aria-invalid": validationState === 'error',
|
|
@@ -26327,6 +26577,7 @@ const DialogComboboxTrigger = /*#__PURE__*/ forwardRef(// eslint-disable-next-li
|
|
|
26327
26577
|
'aria-label': ariaLabel
|
|
26328
26578
|
},
|
|
26329
26579
|
ref: forwardedRef,
|
|
26580
|
+
// oxlint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
26330
26581
|
role: "combobox",
|
|
26331
26582
|
"aria-haspopup": "listbox",
|
|
26332
26583
|
"aria-invalid": validationState === 'error',
|
|
@@ -26412,7 +26663,7 @@ const DialogComboboxTrigger = /*#__PURE__*/ forwardRef(// eslint-disable-next-li
|
|
|
26412
26663
|
componentId: "dialogcombobox-trigger-tooltip",
|
|
26413
26664
|
children: triggerContent
|
|
26414
26665
|
}) : triggerContent,
|
|
26415
|
-
removable && /*#__PURE__*/ jsx(Button
|
|
26666
|
+
removable && /*#__PURE__*/ jsx(Button, {
|
|
26416
26667
|
componentId: "codegen_design-system_src_design-system_dialogcombobox_dialogcomboboxtrigger.tsx_355",
|
|
26417
26668
|
"aria-label": `Remove ${label}`,
|
|
26418
26669
|
onClick: handleRemove,
|
|
@@ -26434,16 +26685,24 @@ const DialogComboboxTrigger = /*#__PURE__*/ forwardRef(// eslint-disable-next-li
|
|
|
26434
26685
|
});
|
|
26435
26686
|
};
|
|
26436
26687
|
|
|
26437
|
-
|
|
26438
|
-
|
|
26688
|
+
// Height comes from the --db-spacer-size-* component tokens (Spacer/tokens.css), so the styles no
|
|
26689
|
+
// longer depend on the JS theme. Mapped explicitly rather than interpolated so each token name is greppable.
|
|
26690
|
+
const SPACER_SIZE_TOKENS = {
|
|
26691
|
+
xs: 'var(--db-spacer-size-xs)',
|
|
26692
|
+
sm: 'var(--db-spacer-size-sm)',
|
|
26693
|
+
mid: 'var(--db-spacer-size-mid)',
|
|
26694
|
+
md: 'var(--db-spacer-size-md)',
|
|
26695
|
+
lg: 'var(--db-spacer-size-lg)'
|
|
26696
|
+
};
|
|
26697
|
+
const getSpacerStyles = memoize((size, shrinks)=>/*#__PURE__*/ css({
|
|
26698
|
+
height: SPACER_SIZE_TOKENS[size],
|
|
26439
26699
|
...shrinks === false ? {
|
|
26440
26700
|
flexShrink: 0
|
|
26441
26701
|
} : undefined
|
|
26442
|
-
}), (
|
|
26702
|
+
}), (size, shrinks)=>`${size}|${shrinks ?? ''}`);
|
|
26443
26703
|
const Spacer = ({ size = 'md', shrinks, ...props })=>{
|
|
26444
|
-
const { theme } = useDesignSystemTheme();
|
|
26445
26704
|
return /*#__PURE__*/ jsx("div", {
|
|
26446
|
-
css: getSpacerStyles(
|
|
26705
|
+
css: getSpacerStyles(size, shrinks),
|
|
26447
26706
|
...props
|
|
26448
26707
|
});
|
|
26449
26708
|
};
|
|
@@ -26485,12 +26744,12 @@ const OVERLAY_SHOW_BOTTOM = /*#__PURE__*/ keyframes({
|
|
|
26485
26744
|
const DEFAULT_ANALYTICS_EVENTS$3 = [
|
|
26486
26745
|
DesignSystemEventProviderAnalyticsEventTypes.OnView
|
|
26487
26746
|
];
|
|
26488
|
-
const Content$4 = ({ children, footer, title, width, height, position: positionOverride, useCustomScrollBehavior, expandContentToFullHeight, disableOpenAutoFocus, onInteractOutside, seeThrough, hideClose, closeOnClickOutside, onCloseClick, componentId = 'design_system.drawer.content', analyticsEvents = DEFAULT_ANALYTICS_EVENTS$3, size = 'default', ...props })=>{
|
|
26747
|
+
const Content$4 = ({ children, footer, title, width, height, position: positionOverride, useCustomScrollBehavior, expandContentToFullHeight, disableOpenAutoFocus, onInteractOutside, seeThrough, hideClose, closeOnClickOutside, onCloseClick, componentId = 'design_system.drawer.content', analyticsEvents = DEFAULT_ANALYTICS_EVENTS$3, size = 'default', className, ...props })=>{
|
|
26489
26748
|
const { getPopupContainer } = useDesignSystemContext();
|
|
26490
26749
|
const { theme } = useDesignSystemTheme();
|
|
26491
26750
|
const themeClass = useDuboisThemeClass();
|
|
26492
26751
|
const themeOverrideStyle = useDesignTokenOverrideStyles();
|
|
26493
|
-
const horizontalContentPadding = size === 'small' ?
|
|
26752
|
+
const horizontalContentPadding = size === 'small' ? 'var(--db-drawer-padding-horizontal-small)' : 'var(--db-drawer-padding-horizontal)';
|
|
26494
26753
|
const [shouldContentBeFocusable, setShouldContentBeFocusable] = useState(false);
|
|
26495
26754
|
const contentContainerRef = useRef(null);
|
|
26496
26755
|
const eventContext = useDesignSystemEventComponentCallbacks({
|
|
@@ -26549,9 +26808,9 @@ const Content$4 = ({ children, footer, title, width, height, position: positionO
|
|
|
26549
26808
|
const isSidePosition = position === 'left' || position === 'right';
|
|
26550
26809
|
const overlayShow = position === 'right' ? OVERLAY_SHOW_RIGHT : position === 'left' ? OVERLAY_SHOW_LEFT : OVERLAY_SHOW_BOTTOM;
|
|
26551
26810
|
const dialogPrimitiveContentStyle = /*#__PURE__*/ css({
|
|
26552
|
-
color:
|
|
26553
|
-
backgroundColor:
|
|
26554
|
-
boxShadow:
|
|
26811
|
+
color: 'var(--db-drawer-text)',
|
|
26812
|
+
backgroundColor: 'var(--db-drawer-surface)',
|
|
26813
|
+
boxShadow: 'var(--db-drawer-shadow)',
|
|
26555
26814
|
position: 'fixed',
|
|
26556
26815
|
boxSizing: 'border-box',
|
|
26557
26816
|
zIndex: theme.options.zIndexBase + DRAWER_ZINDEX_CONTENT_OFFSET,
|
|
@@ -26578,7 +26837,7 @@ const Content$4 = ({ children, footer, title, width, height, position: positionO
|
|
|
26578
26837
|
minHeight: MIN_HEIGHT,
|
|
26579
26838
|
maxHeight: MAX_HEIGHT
|
|
26580
26839
|
} : {},
|
|
26581
|
-
paddingTop: size === 'small' ?
|
|
26840
|
+
paddingTop: size === 'small' ? 'var(--db-drawer-content-padding-top-small)' : 'var(--db-drawer-content-padding-top)',
|
|
26582
26841
|
paddingLeft: 0,
|
|
26583
26842
|
paddingBottom: 0,
|
|
26584
26843
|
paddingRight: 0,
|
|
@@ -26597,14 +26856,19 @@ const Content$4 = ({ children, footer, title, width, height, position: positionO
|
|
|
26597
26856
|
children: [
|
|
26598
26857
|
/*#__PURE__*/ jsx(DialogPrimitive.Overlay, {
|
|
26599
26858
|
"data-testid": "drawer-overlay",
|
|
26859
|
+
// themeClass scopes the scrim under .du-bois-dark so var(--db-drawer-overlay) resolves the dark value.
|
|
26860
|
+
className: themeClass,
|
|
26600
26861
|
css: /*#__PURE__*/ css({
|
|
26601
|
-
backgroundColor:
|
|
26862
|
+
backgroundColor: 'var(--db-drawer-overlay)',
|
|
26602
26863
|
position: 'fixed',
|
|
26603
26864
|
inset: 0,
|
|
26604
26865
|
// needed so that it covers the PersonaNavSidebar
|
|
26605
26866
|
zIndex: theme.options.zIndexBase + DRAWER_ZINDEX_OVERLAY_OFFSET,
|
|
26606
26867
|
opacity: seeThrough || isParentDrawerOpen ? 0 : 1
|
|
26607
26868
|
}),
|
|
26869
|
+
// A React portal renders this scrim outside the DesignTokenScope wrapper, so it stops
|
|
26870
|
+
// inheriting the consumer's scoped --db-* overrides; re-stamp them inline on the scrim.
|
|
26871
|
+
style: themeOverrideStyle,
|
|
26608
26872
|
onClick: closeOnClickOutside ? onCloseClick : undefined
|
|
26609
26873
|
}),
|
|
26610
26874
|
/*#__PURE__*/ jsx(DialogPrimitive.DialogContent, {
|
|
@@ -26617,14 +26881,13 @@ const Content$4 = ({ children, footer, title, width, height, position: positionO
|
|
|
26617
26881
|
opacity: seeThrough ? 0 : 1,
|
|
26618
26882
|
...theme.isDarkMode && {
|
|
26619
26883
|
...position === 'bottom' ? {
|
|
26620
|
-
borderTop:
|
|
26884
|
+
borderTop: '1px solid var(--db-drawer-border)'
|
|
26621
26885
|
} : {
|
|
26622
|
-
borderLeft:
|
|
26886
|
+
borderLeft: '1px solid var(--db-drawer-border)'
|
|
26623
26887
|
}
|
|
26624
26888
|
},
|
|
26625
26889
|
...themeOverrideStyle
|
|
26626
26890
|
},
|
|
26627
|
-
className: themeClass,
|
|
26628
26891
|
onKeyDownCapture: handleKeyDownCapture,
|
|
26629
26892
|
onWheel: (e)=>{
|
|
26630
26893
|
e.stopPropagation();
|
|
@@ -26642,6 +26905,7 @@ const Content$4 = ({ children, footer, title, width, height, position: positionO
|
|
|
26642
26905
|
onInteractOutside: onInteractOutside,
|
|
26643
26906
|
...props,
|
|
26644
26907
|
...eventContext.dataComponentProps,
|
|
26908
|
+
className: classnames(className, themeClass),
|
|
26645
26909
|
children: /*#__PURE__*/ jsx(ApplyDesignSystemContextOverrides, {
|
|
26646
26910
|
getPopupContainer: ()=>contentContainerRef.current ?? document.body,
|
|
26647
26911
|
children: /*#__PURE__*/ jsxs(DrawerContext.Provider, {
|
|
@@ -26659,7 +26923,7 @@ const Content$4 = ({ children, footer, title, width, height, position: positionO
|
|
|
26659
26923
|
alignItems: 'center',
|
|
26660
26924
|
paddingRight: horizontalContentPadding,
|
|
26661
26925
|
paddingLeft: horizontalContentPadding,
|
|
26662
|
-
marginBottom:
|
|
26926
|
+
marginBottom: 'var(--db-drawer-title-margin-bottom)'
|
|
26663
26927
|
}),
|
|
26664
26928
|
children: [
|
|
26665
26929
|
/*#__PURE__*/ jsx(DialogPrimitive.Title, {
|
|
@@ -26684,10 +26948,10 @@ const Content$4 = ({ children, footer, title, width, height, position: positionO
|
|
|
26684
26948
|
asChild: true,
|
|
26685
26949
|
css: /*#__PURE__*/ css({
|
|
26686
26950
|
flexShrink: 1,
|
|
26687
|
-
marginLeft:
|
|
26951
|
+
marginLeft: 'var(--db-drawer-close-button-margin)'
|
|
26688
26952
|
}),
|
|
26689
26953
|
onClick: onCloseClick,
|
|
26690
|
-
children: /*#__PURE__*/ jsx(Button
|
|
26954
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
26691
26955
|
componentId: `${componentId}.close`,
|
|
26692
26956
|
"aria-label": "Close",
|
|
26693
26957
|
icon: /*#__PURE__*/ jsx(CloseIcon, {}),
|
|
@@ -26699,7 +26963,7 @@ const Content$4 = ({ children, footer, title, width, height, position: positionO
|
|
|
26699
26963
|
/*#__PURE__*/ jsxs("div", {
|
|
26700
26964
|
ref: mergedContentRef,
|
|
26701
26965
|
// Needed to make drawer content focusable when scrollable for keyboard-only users to be able to focus & scroll
|
|
26702
|
-
//
|
|
26966
|
+
// oxlint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
|
26703
26967
|
tabIndex: shouldContentBeFocusable ? 0 : -1,
|
|
26704
26968
|
css: /*#__PURE__*/ css({
|
|
26705
26969
|
// in order to have specific content in the drawer scroll with fixed title
|
|
@@ -26720,10 +26984,10 @@ const Content$4 = ({ children, footer, title, width, height, position: positionO
|
|
|
26720
26984
|
}),
|
|
26721
26985
|
footer && /*#__PURE__*/ jsx("div", {
|
|
26722
26986
|
style: {
|
|
26723
|
-
paddingTop:
|
|
26987
|
+
paddingTop: 'var(--db-drawer-footer-padding-top)',
|
|
26724
26988
|
paddingRight: horizontalContentPadding,
|
|
26725
26989
|
paddingLeft: horizontalContentPadding,
|
|
26726
|
-
paddingBottom: size === 'small' ?
|
|
26990
|
+
paddingBottom: size === 'small' ? 'var(--db-drawer-footer-padding-bottom-small)' : 'var(--db-drawer-footer-padding-bottom)',
|
|
26727
26991
|
flexGrow: 0,
|
|
26728
26992
|
flexShrink: 1
|
|
26729
26993
|
},
|
|
@@ -26736,7 +27000,7 @@ const Content$4 = ({ children, footer, title, width, height, position: positionO
|
|
|
26736
27000
|
]
|
|
26737
27001
|
});
|
|
26738
27002
|
};
|
|
26739
|
-
function Root$
|
|
27003
|
+
function Root$5(props) {
|
|
26740
27004
|
return /*#__PURE__*/ jsx(DialogPrimitive.Root, {
|
|
26741
27005
|
...props
|
|
26742
27006
|
});
|
|
@@ -26751,63 +27015,52 @@ function Trigger$2(props) {
|
|
|
26751
27015
|
var Drawer = /*#__PURE__*/Object.freeze({
|
|
26752
27016
|
__proto__: null,
|
|
26753
27017
|
Content: Content$4,
|
|
26754
|
-
Root: Root$
|
|
27018
|
+
Root: Root$5,
|
|
26755
27019
|
Trigger: Trigger$2
|
|
26756
27020
|
});
|
|
26757
27021
|
|
|
26758
27022
|
const { Title, Paragraph } = Typography;
|
|
26759
|
-
function
|
|
26760
|
-
const styles = {
|
|
26761
|
-
display: 'flex',
|
|
26762
|
-
flexDirection: 'column',
|
|
26763
|
-
alignItems: 'center',
|
|
26764
|
-
textAlign: 'center',
|
|
26765
|
-
maxWidth: 600,
|
|
26766
|
-
wordBreak: 'break-word',
|
|
26767
|
-
// TODO: This isn't ideal, but migrating to a safer selector would require a SAFE flag / careful migration.
|
|
26768
|
-
'> [role="img"]': {
|
|
26769
|
-
// Set size of image to 64px
|
|
26770
|
-
fontSize: 64,
|
|
26771
|
-
color: theme.colors.actionDisabledText,
|
|
26772
|
-
marginBottom: theme.spacing.md
|
|
26773
|
-
}
|
|
26774
|
-
};
|
|
26775
|
-
return /*#__PURE__*/ css(styles);
|
|
26776
|
-
}
|
|
26777
|
-
function getEmptyTitleStyles(theme, clsPrefix) {
|
|
27023
|
+
function getEmptyTitleStyles(clsPrefix) {
|
|
26778
27024
|
const styles = {
|
|
26779
27025
|
[`&.${clsPrefix}-typography`]: {
|
|
26780
|
-
color:
|
|
27026
|
+
color: 'var(--db-empty-text)',
|
|
26781
27027
|
marginTop: 0,
|
|
26782
27028
|
marginBottom: 0
|
|
26783
27029
|
}
|
|
26784
27030
|
};
|
|
26785
27031
|
return /*#__PURE__*/ css(styles);
|
|
26786
27032
|
}
|
|
26787
|
-
function getEmptyDescriptionStyles(
|
|
27033
|
+
function getEmptyDescriptionStyles(clsPrefix) {
|
|
26788
27034
|
const styles = {
|
|
26789
27035
|
[`&.${clsPrefix}-typography`]: {
|
|
26790
|
-
color:
|
|
26791
|
-
marginBottom:
|
|
27036
|
+
color: 'var(--db-empty-text)',
|
|
27037
|
+
marginBottom: 'var(--db-empty-description-spacing)'
|
|
26792
27038
|
}
|
|
26793
27039
|
};
|
|
26794
27040
|
return /*#__PURE__*/ css(styles);
|
|
26795
27041
|
}
|
|
26796
|
-
|
|
26797
|
-
|
|
26798
|
-
// getShadowScrollStylesMemoized in css-utils.tsx.
|
|
26799
|
-
const getMemoizedEmptyStyles = memoize((theme)=>getEmptyStyles(theme));
|
|
26800
|
-
const getMemoizedEmptyTitleStyles = memoize((theme, clsPrefix)=>getEmptyTitleStyles(theme, clsPrefix), (theme, clsPrefix)=>`${themeMemoKey(theme)}|${clsPrefix}`);
|
|
26801
|
-
const getMemoizedEmptyDescriptionStyles = memoize((theme, clsPrefix)=>getEmptyDescriptionStyles(theme, clsPrefix), (theme, clsPrefix)=>`${themeMemoKey(theme)}|${clsPrefix}`);
|
|
26802
|
-
// Stable wrapper styles — never depend on theme.
|
|
27042
|
+
const getMemoizedEmptyTitleStyles = memoize(getEmptyTitleStyles);
|
|
27043
|
+
const getMemoizedEmptyDescriptionStyles = memoize(getEmptyDescriptionStyles);
|
|
26803
27044
|
const OUTER_WRAPPER_CSS = /*#__PURE__*/ css({
|
|
26804
27045
|
display: 'flex',
|
|
26805
27046
|
justifyContent: 'center'
|
|
26806
27047
|
});
|
|
26807
|
-
|
|
27048
|
+
const CONTENT_CSS = /*#__PURE__*/ css({
|
|
27049
|
+
display: 'flex',
|
|
27050
|
+
flexDirection: 'column',
|
|
27051
|
+
alignItems: 'center',
|
|
27052
|
+
textAlign: 'center',
|
|
27053
|
+
maxWidth: 'var(--db-empty-max-width)',
|
|
27054
|
+
wordBreak: 'break-word',
|
|
27055
|
+
'> [role="img"]': {
|
|
27056
|
+
fontSize: 'var(--db-empty-image-size)',
|
|
27057
|
+
color: 'var(--db-empty-image-color)',
|
|
27058
|
+
marginBottom: 'var(--db-empty-image-spacing)'
|
|
27059
|
+
}
|
|
27060
|
+
});
|
|
26808
27061
|
const DEFAULT_IMAGE = /*#__PURE__*/ jsx(ListIcon, {});
|
|
26809
27062
|
const Empty = (props)=>{
|
|
26810
|
-
const {
|
|
27063
|
+
const { classNamePrefix } = useDesignSystemTheme();
|
|
26811
27064
|
const { title, description, image = DEFAULT_IMAGE, button, dangerouslyAppendEmotionCSS, ...dataProps } = props;
|
|
26812
27065
|
return /*#__PURE__*/ jsx("div", {
|
|
26813
27066
|
...dataProps,
|
|
@@ -26815,18 +27068,18 @@ const Empty = (props)=>{
|
|
|
26815
27068
|
css: OUTER_WRAPPER_CSS,
|
|
26816
27069
|
children: /*#__PURE__*/ jsxs("div", {
|
|
26817
27070
|
css: [
|
|
26818
|
-
|
|
27071
|
+
CONTENT_CSS,
|
|
26819
27072
|
dangerouslyAppendEmotionCSS
|
|
26820
27073
|
],
|
|
26821
27074
|
children: [
|
|
26822
27075
|
image,
|
|
26823
27076
|
title && /*#__PURE__*/ jsx(Title, {
|
|
26824
27077
|
level: 3,
|
|
26825
|
-
css: getMemoizedEmptyTitleStyles(
|
|
27078
|
+
css: getMemoizedEmptyTitleStyles(classNamePrefix),
|
|
26826
27079
|
children: title
|
|
26827
27080
|
}),
|
|
26828
27081
|
/*#__PURE__*/ jsx(Paragraph, {
|
|
26829
|
-
css: getMemoizedEmptyDescriptionStyles(
|
|
27082
|
+
css: getMemoizedEmptyDescriptionStyles(classNamePrefix),
|
|
26830
27083
|
children: description
|
|
26831
27084
|
}),
|
|
26832
27085
|
button
|
|
@@ -26951,12 +27204,18 @@ function getSelectEmotionStyles({ clsPrefix, theme, validationState }) {
|
|
|
26951
27204
|
marginTop: 0,
|
|
26952
27205
|
color: theme.colors.textSecondary,
|
|
26953
27206
|
fontSize: theme.general.iconFontSize,
|
|
26954
|
-
|
|
27207
|
+
[getIconClassName()]: {
|
|
26955
27208
|
// For some reason ant sets this to 'auto'. Need to set it back to 'none' to allow the element below to receive
|
|
26956
27209
|
// the click event.
|
|
26957
27210
|
pointerEvents: 'none',
|
|
26958
27211
|
// anticon default line height is 0 and that wrongly shifts the icon down
|
|
26959
|
-
lineHeight: 1
|
|
27212
|
+
lineHeight: 1,
|
|
27213
|
+
// AntD vendors `.<prefix>-select-arrow .anticon(> svg) { vertical-align: top }`, which the native
|
|
27214
|
+
// `.db-icon` glyph can't match; without it the glyph falls to its baseline default and shifts up.
|
|
27215
|
+
verticalAlign: 'top',
|
|
27216
|
+
'& > svg': {
|
|
27217
|
+
verticalAlign: 'top'
|
|
27218
|
+
}
|
|
26960
27219
|
},
|
|
26961
27220
|
[`&${classArrowLoading}`]: {
|
|
26962
27221
|
top: (theme.general.heightSm - theme.general.iconFontSize) / 2,
|
|
@@ -27069,7 +27328,7 @@ function getSelectEmotionStyles({ clsPrefix, theme, validationState }) {
|
|
|
27069
27328
|
lineHeight: theme.typography.lineHeightBase,
|
|
27070
27329
|
paddingInlineEnd: 0,
|
|
27071
27330
|
marginInlineEnd: 0,
|
|
27072
|
-
|
|
27331
|
+
[`& > ${getIconClassName()}`]: {
|
|
27073
27332
|
height: theme.general.iconFontSize - 4,
|
|
27074
27333
|
fontSize: theme.general.iconFontSize - 4
|
|
27075
27334
|
},
|
|
@@ -31661,7 +31920,7 @@ const getFormItemEmotionStyles = ({ theme, clsPrefix })=>{
|
|
|
31661
31920
|
[clsFormItemLabel]: {
|
|
31662
31921
|
fontWeight: theme.typography.typographyBoldFontWeight,
|
|
31663
31922
|
lineHeight: theme.typography.lineHeightBase,
|
|
31664
|
-
|
|
31923
|
+
[getIconClassName()]: {
|
|
31665
31924
|
fontSize: theme.general.iconFontSize
|
|
31666
31925
|
}
|
|
31667
31926
|
},
|
|
@@ -31762,10 +32021,31 @@ const FormItem = ({ dangerouslySetAntdProps, children, ...props })=>{
|
|
|
31762
32021
|
implicitContext,
|
|
31763
32022
|
props.rules
|
|
31764
32023
|
]);
|
|
32024
|
+
// Use a DS icon for the help affordance so it tracks the native-icon flag and keeps the
|
|
32025
|
+
// getIconClassName()-keyed 16px size; AntD's QuestionCircleOutlined shrinks once the flag is on.
|
|
32026
|
+
let tooltip = props.tooltip;
|
|
32027
|
+
if (props.tooltip != null) {
|
|
32028
|
+
tooltip = typeof props.tooltip === 'object' && !/*#__PURE__*/ isValidElement(props.tooltip) ? {
|
|
32029
|
+
icon: /*#__PURE__*/ jsx(InfoSmallIcon, {
|
|
32030
|
+
css: /*#__PURE__*/ css({
|
|
32031
|
+
color: theme.colors.textSecondary
|
|
32032
|
+
})
|
|
32033
|
+
}),
|
|
32034
|
+
...props.tooltip
|
|
32035
|
+
} : {
|
|
32036
|
+
title: props.tooltip,
|
|
32037
|
+
icon: /*#__PURE__*/ jsx(InfoSmallIcon, {
|
|
32038
|
+
css: /*#__PURE__*/ css({
|
|
32039
|
+
color: theme.colors.textSecondary
|
|
32040
|
+
})
|
|
32041
|
+
})
|
|
32042
|
+
};
|
|
32043
|
+
}
|
|
31765
32044
|
return /*#__PURE__*/ jsx(DesignSystemAntDConfigProvider, {
|
|
31766
32045
|
children: /*#__PURE__*/ jsx(Form$1.Item, {
|
|
31767
32046
|
...addDebugOutlineIfEnabled(),
|
|
31768
32047
|
...props,
|
|
32048
|
+
tooltip: tooltip,
|
|
31769
32049
|
rules: wrappedRules,
|
|
31770
32050
|
css: getMemoizedFormItemEmotionStyles({
|
|
31771
32051
|
theme,
|
|
@@ -32015,7 +32295,7 @@ const CursorPagination = function CursorPagination({ onNextPage, onPreviousPage,
|
|
|
32015
32295
|
}),
|
|
32016
32296
|
...pageSizeEventContext.dataComponentProps,
|
|
32017
32297
|
children: [
|
|
32018
|
-
/*#__PURE__*/ jsx(Button
|
|
32298
|
+
/*#__PURE__*/ jsx(Button, {
|
|
32019
32299
|
componentId: `${componentId}.previous_page`,
|
|
32020
32300
|
icon: /*#__PURE__*/ jsx(ChevronLeftIcon, {}),
|
|
32021
32301
|
disabled: !hasPreviousPage,
|
|
@@ -32023,7 +32303,7 @@ const CursorPagination = function CursorPagination({ onNextPage, onPreviousPage,
|
|
|
32023
32303
|
type: "tertiary",
|
|
32024
32304
|
children: previousPageText
|
|
32025
32305
|
}),
|
|
32026
|
-
/*#__PURE__*/ jsx(Button
|
|
32306
|
+
/*#__PURE__*/ jsx(Button, {
|
|
32027
32307
|
componentId: `${componentId}.next_page`,
|
|
32028
32308
|
endIcon: /*#__PURE__*/ jsx(ChevronRightIcon, {}),
|
|
32029
32309
|
disabled: !hasNextPage,
|
|
@@ -32135,132 +32415,6 @@ const LegacyTable = (props)=>{
|
|
|
32135
32415
|
});
|
|
32136
32416
|
};
|
|
32137
32417
|
|
|
32138
|
-
// Module-level caches. Both styles depend only on theme (and zIndex), so share one
|
|
32139
|
-
// object across every LegacyTooltip instance instead of allocating per render.
|
|
32140
|
-
const TRIGGER = [
|
|
32141
|
-
'hover',
|
|
32142
|
-
'focus'
|
|
32143
|
-
];
|
|
32144
|
-
const getMemoizedDefaultOverlayInnerStyle = memoize((theme)=>({
|
|
32145
|
-
backgroundColor: '#2F3941',
|
|
32146
|
-
lineHeight: '22px',
|
|
32147
|
-
padding: '4px 8px',
|
|
32148
|
-
boxShadow: theme.general.shadowLow,
|
|
32149
|
-
...getDarkModePortalStyles(theme)
|
|
32150
|
-
}));
|
|
32151
|
-
const getMemoizedDefaultOverlayStyle = memoize((theme)=>({
|
|
32152
|
-
zIndex: theme.options.zIndexBase + 70
|
|
32153
|
-
}), (theme)=>String(theme.options.zIndexBase));
|
|
32154
|
-
const getMemoizedAnimationCss = memoize((enableAnimation)=>/*#__PURE__*/ css({
|
|
32155
|
-
...getAnimationCss(enableAnimation)
|
|
32156
|
-
}));
|
|
32157
|
-
/**
|
|
32158
|
-
* `LegacyTooltip` is deprecated in favor of the new `Tooltip` component
|
|
32159
|
-
* @deprecated
|
|
32160
|
-
*/ const LegacyTooltip = ({ children, title, placement = 'top', dataTestId, dangerouslySetAntdProps, silenceScreenReader = false, useAsLabel = false, ...props })=>{
|
|
32161
|
-
const { theme } = useDesignSystemTheme();
|
|
32162
|
-
const tooltipRef = useRef(null);
|
|
32163
|
-
const duboisId = useUniqueId('dubois-tooltip-component-');
|
|
32164
|
-
const id = dangerouslySetAntdProps?.id ? dangerouslySetAntdProps?.id : duboisId;
|
|
32165
|
-
if (!title) {
|
|
32166
|
-
return /*#__PURE__*/ jsx(React__default.Fragment, {
|
|
32167
|
-
children: children
|
|
32168
|
-
});
|
|
32169
|
-
}
|
|
32170
|
-
const titleProps = silenceScreenReader ? {} : {
|
|
32171
|
-
'aria-live': 'polite',
|
|
32172
|
-
'aria-relevant': 'additions'
|
|
32173
|
-
};
|
|
32174
|
-
if (dataTestId) {
|
|
32175
|
-
titleProps['data-testid'] = dataTestId;
|
|
32176
|
-
}
|
|
32177
|
-
const liveTitle = title && /*#__PURE__*/ React__default.isValidElement(title) ? /*#__PURE__*/ React__default.cloneElement(title, titleProps) : /*#__PURE__*/ jsx("span", {
|
|
32178
|
-
...titleProps,
|
|
32179
|
-
children: title
|
|
32180
|
-
});
|
|
32181
|
-
const ariaProps = {
|
|
32182
|
-
'aria-hidden': false
|
|
32183
|
-
};
|
|
32184
|
-
const addAriaProps = (e)=>{
|
|
32185
|
-
if (!tooltipRef.current || e.currentTarget.hasAttribute('aria-describedby') || e.currentTarget.hasAttribute('aria-labelledby')) {
|
|
32186
|
-
return;
|
|
32187
|
-
}
|
|
32188
|
-
if (id) {
|
|
32189
|
-
e.currentTarget.setAttribute('aria-live', 'polite');
|
|
32190
|
-
if (useAsLabel) {
|
|
32191
|
-
e.currentTarget.setAttribute('aria-labelledby', id);
|
|
32192
|
-
} else {
|
|
32193
|
-
e.currentTarget.setAttribute('aria-describedby', id);
|
|
32194
|
-
}
|
|
32195
|
-
}
|
|
32196
|
-
};
|
|
32197
|
-
const removeAriaProps = (e)=>{
|
|
32198
|
-
if (!tooltipRef || !e.currentTarget.hasAttribute('aria-describedby') && !e.currentTarget.hasAttribute('aria-labelledby')) {
|
|
32199
|
-
return;
|
|
32200
|
-
}
|
|
32201
|
-
if (useAsLabel) {
|
|
32202
|
-
e.currentTarget.removeAttribute('aria-labelledby');
|
|
32203
|
-
} else {
|
|
32204
|
-
e.currentTarget.removeAttribute('aria-describedby');
|
|
32205
|
-
}
|
|
32206
|
-
e.currentTarget.removeAttribute('aria-live');
|
|
32207
|
-
};
|
|
32208
|
-
const interactionProps = {
|
|
32209
|
-
onMouseEnter: (e)=>{
|
|
32210
|
-
addAriaProps(e);
|
|
32211
|
-
},
|
|
32212
|
-
onMouseLeave: (e)=>{
|
|
32213
|
-
removeAriaProps(e);
|
|
32214
|
-
},
|
|
32215
|
-
onFocus: (e)=>{
|
|
32216
|
-
addAriaProps(e);
|
|
32217
|
-
},
|
|
32218
|
-
onBlur: (e)=>{
|
|
32219
|
-
removeAriaProps(e);
|
|
32220
|
-
}
|
|
32221
|
-
};
|
|
32222
|
-
const childWithProps = /*#__PURE__*/ React__default.isValidElement(children) ? /*#__PURE__*/ React__default.cloneElement(children, {
|
|
32223
|
-
...ariaProps,
|
|
32224
|
-
...interactionProps,
|
|
32225
|
-
...children.props
|
|
32226
|
-
}) : isNil(children) ? children : /*#__PURE__*/ jsx("span", {
|
|
32227
|
-
...ariaProps,
|
|
32228
|
-
...interactionProps,
|
|
32229
|
-
children: children
|
|
32230
|
-
});
|
|
32231
|
-
const { overlayInnerStyle, overlayStyle, ...delegatedDangerouslySetAntdProps } = dangerouslySetAntdProps || {};
|
|
32232
|
-
// When no overrides are passed, reuse the module-level memoized objects directly so
|
|
32233
|
-
// the same reference is shared across every tooltip instance with the same theme.
|
|
32234
|
-
const mergedOverlayInnerStyle = overlayInnerStyle ? {
|
|
32235
|
-
backgroundColor: '#2F3941',
|
|
32236
|
-
lineHeight: '22px',
|
|
32237
|
-
padding: '4px 8px',
|
|
32238
|
-
boxShadow: theme.general.shadowLow,
|
|
32239
|
-
...overlayInnerStyle,
|
|
32240
|
-
...getDarkModePortalStyles(theme)
|
|
32241
|
-
} : getMemoizedDefaultOverlayInnerStyle(theme);
|
|
32242
|
-
const mergedOverlayStyle = overlayStyle ? {
|
|
32243
|
-
zIndex: theme.options.zIndexBase + 70,
|
|
32244
|
-
...overlayStyle
|
|
32245
|
-
} : getMemoizedDefaultOverlayStyle(theme);
|
|
32246
|
-
return /*#__PURE__*/ jsx(DesignSystemAntDConfigProvider, {
|
|
32247
|
-
children: /*#__PURE__*/ jsx(Tooltip$1, {
|
|
32248
|
-
id: id,
|
|
32249
|
-
ref: tooltipRef,
|
|
32250
|
-
title: liveTitle,
|
|
32251
|
-
placement: placement,
|
|
32252
|
-
// Always trigger on hover and focus
|
|
32253
|
-
trigger: TRIGGER,
|
|
32254
|
-
overlayInnerStyle: mergedOverlayInnerStyle,
|
|
32255
|
-
overlayStyle: mergedOverlayStyle,
|
|
32256
|
-
css: getMemoizedAnimationCss(theme.options.enableAnimation),
|
|
32257
|
-
...delegatedDangerouslySetAntdProps,
|
|
32258
|
-
...props,
|
|
32259
|
-
children: childWithProps
|
|
32260
|
-
})
|
|
32261
|
-
});
|
|
32262
|
-
};
|
|
32263
|
-
|
|
32264
32418
|
const ListboxContext = /*#__PURE__*/ createContext(null);
|
|
32265
32419
|
const useListboxContext = ()=>{
|
|
32266
32420
|
const context = useContext(ListboxContext);
|
|
@@ -32391,7 +32545,7 @@ const ListboxInput = ({ value, onChange, placeholder, 'aria-controls': ariaContr
|
|
|
32391
32545
|
css: {
|
|
32392
32546
|
position: 'sticky',
|
|
32393
32547
|
top: 0,
|
|
32394
|
-
background:
|
|
32548
|
+
background: 'var(--db-listbox-surface)',
|
|
32395
32549
|
zIndex: designSystemTheme.theme.options.zIndexBase + 1
|
|
32396
32550
|
},
|
|
32397
32551
|
children: /*#__PURE__*/ jsx(Input, {
|
|
@@ -32412,6 +32566,13 @@ const ListboxInput = ({ value, onChange, placeholder, 'aria-controls': ariaContr
|
|
|
32412
32566
|
});
|
|
32413
32567
|
};
|
|
32414
32568
|
|
|
32569
|
+
const LISTBOX_STYLES = /*#__PURE__*/ css({
|
|
32570
|
+
outline: 'none',
|
|
32571
|
+
'&:focus-visible': {
|
|
32572
|
+
boxShadow: '0 0 0 var(--db-listbox-focus-ring-width) var(--db-listbox-focus-ring-color)',
|
|
32573
|
+
borderRadius: 'var(--db-listbox-border-radius)'
|
|
32574
|
+
}
|
|
32575
|
+
});
|
|
32415
32576
|
const ListboxOptions = ({ options, onSelect, onHighlight, className })=>{
|
|
32416
32577
|
const theme = useTheme();
|
|
32417
32578
|
const { listboxId, selectedValue, setSelectedValue, highlightedValue, handleKeyNavigation } = useListboxContext();
|
|
@@ -32452,13 +32613,7 @@ const ListboxOptions = ({ options, onSelect, onHighlight, className })=>{
|
|
|
32452
32613
|
tabIndex: 0,
|
|
32453
32614
|
onKeyDown: handleKeyDown,
|
|
32454
32615
|
"aria-activedescendant": highlightedValue ? `${listboxId}-${highlightedValue}` : undefined,
|
|
32455
|
-
css:
|
|
32456
|
-
outline: 'none',
|
|
32457
|
-
'&:focus-visible': {
|
|
32458
|
-
boxShadow: `0 0 0 2px ${theme.colors.actionDefaultBorderFocus}`,
|
|
32459
|
-
borderRadius: token(ShapeTokens.LIST_ITEM_BORDER_RADIUS, theme.borders.borderRadiusSm)
|
|
32460
|
-
}
|
|
32461
|
-
}),
|
|
32616
|
+
css: LISTBOX_STYLES,
|
|
32462
32617
|
children: options.map((option)=>(option.renderOption || ((additionalProps)=>/*#__PURE__*/ jsx("div", {
|
|
32463
32618
|
...additionalProps,
|
|
32464
32619
|
children: option.label
|
|
@@ -32488,25 +32643,24 @@ const ListboxOptions = ({ options, onSelect, onHighlight, className })=>{
|
|
|
32488
32643
|
const CONTAINER_CSS = /*#__PURE__*/ css({
|
|
32489
32644
|
display: 'flex',
|
|
32490
32645
|
flexDirection: 'column',
|
|
32491
|
-
gap: '
|
|
32646
|
+
gap: 'var(--db-listbox-spacing)'
|
|
32492
32647
|
});
|
|
32493
32648
|
const RESULTS_WRAPPER_CSS = /*#__PURE__*/ css({
|
|
32494
32649
|
width: '100%'
|
|
32495
32650
|
});
|
|
32496
|
-
const
|
|
32497
|
-
|
|
32498
|
-
|
|
32499
|
-
|
|
32500
|
-
|
|
32501
|
-
|
|
32502
|
-
|
|
32651
|
+
const NO_RESULTS_CSS = /*#__PURE__*/ css({
|
|
32652
|
+
color: 'var(--db-listbox-empty-text)',
|
|
32653
|
+
textAlign: 'center',
|
|
32654
|
+
padding: 'var(--db-listbox-empty-spacing-vertical) var(--db-listbox-empty-spacing-horizontal)',
|
|
32655
|
+
width: '100%',
|
|
32656
|
+
boxSizing: 'border-box'
|
|
32657
|
+
});
|
|
32503
32658
|
const DEFAULT_ANALYTICS_EVENTS$2 = [
|
|
32504
32659
|
DesignSystemEventProviderAnalyticsEventTypes.OnValueChange
|
|
32505
32660
|
];
|
|
32506
32661
|
const ListboxContent = ({ options, filterValue, setFilterValue, filterInputPlaceholder, onSelect, ariaLabel, includeFilterInput, filterInputEmptyMessage, listBoxDivRef })=>{
|
|
32507
32662
|
const [highlightedValue, setHighlightedValue] = useState();
|
|
32508
32663
|
const { listboxId } = useListboxContext();
|
|
32509
|
-
const designSystemTheme = useDesignSystemTheme();
|
|
32510
32664
|
const noResultsId = useMemo(()=>`${listboxId}-no-results`, [
|
|
32511
32665
|
listboxId
|
|
32512
32666
|
]);
|
|
@@ -32573,7 +32727,7 @@ const ListboxContent = ({ options, filterValue, setFilterValue, filterInputPlace
|
|
|
32573
32727
|
})
|
|
32574
32728
|
}) : /*#__PURE__*/ jsx("div", {
|
|
32575
32729
|
id: noResultsId,
|
|
32576
|
-
css:
|
|
32730
|
+
css: NO_RESULTS_CSS,
|
|
32577
32731
|
children: filterInputEmptyMessage ?? 'No results found'
|
|
32578
32732
|
})
|
|
32579
32733
|
]
|
|
@@ -32617,52 +32771,52 @@ const Listbox = ({ options, onSelect, includeFilterInput, filterInputEmptyMessag
|
|
|
32617
32771
|
});
|
|
32618
32772
|
};
|
|
32619
32773
|
|
|
32620
|
-
|
|
32621
|
-
|
|
32622
|
-
|
|
32623
|
-
|
|
32624
|
-
|
|
32625
|
-
|
|
32626
|
-
|
|
32627
|
-
|
|
32774
|
+
// Shared by Tabs and NavigationMenu, so these reference existing system/v1 tokens directly (no
|
|
32775
|
+
// component tier).
|
|
32776
|
+
const COMMON_TABS_LIST_STYLES = {
|
|
32777
|
+
display: 'flex',
|
|
32778
|
+
// No v2 token holds the shared tab/list divider color yet; bridges on the v1 --db-color-* token. TODO(FEINF-6505): adopt a v2 token when one lands.
|
|
32779
|
+
borderBottom: '1px solid var(--db-color-action-default-border-default)',
|
|
32780
|
+
marginBottom: 'var(--db-space-4)',
|
|
32781
|
+
height: 'var(--db-size-8)',
|
|
32782
|
+
boxSizing: 'border-box'
|
|
32628
32783
|
};
|
|
32629
|
-
const
|
|
32630
|
-
|
|
32631
|
-
|
|
32632
|
-
|
|
32633
|
-
|
|
32634
|
-
|
|
32635
|
-
marginRight: theme.spacing.md
|
|
32636
|
-
};
|
|
32784
|
+
const COMMON_TABS_TRIGGER_STYLES = {
|
|
32785
|
+
display: 'flex',
|
|
32786
|
+
'font-weight': 'var(--db-font-weight-semibold)',
|
|
32787
|
+
fontSize: 'var(--db-font-size-base)',
|
|
32788
|
+
backgroundColor: 'transparent',
|
|
32789
|
+
marginRight: 'var(--db-space-4)'
|
|
32637
32790
|
};
|
|
32638
32791
|
|
|
32639
|
-
const Root$
|
|
32792
|
+
const Root$4 = // eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
32640
32793
|
/*#__PURE__*/ React__default.forwardRef((props, forwardedRef)=>{
|
|
32641
32794
|
return /*#__PURE__*/ jsx(RadixNavigationMenu.Root, {
|
|
32642
32795
|
...props,
|
|
32643
32796
|
ref: forwardedRef
|
|
32644
32797
|
});
|
|
32645
32798
|
});
|
|
32646
|
-
|
|
32647
|
-
|
|
32648
|
-
|
|
32649
|
-
|
|
32650
|
-
|
|
32651
|
-
|
|
32652
|
-
|
|
32653
|
-
|
|
32654
|
-
|
|
32655
|
-
const getMemoizedItemCss = memoize((
|
|
32656
|
-
...
|
|
32799
|
+
const LIST_CSS = {
|
|
32800
|
+
...COMMON_TABS_LIST_STYLES,
|
|
32801
|
+
marginTop: 0,
|
|
32802
|
+
padding: 0,
|
|
32803
|
+
overflow: 'auto hidden',
|
|
32804
|
+
listStyle: 'none'
|
|
32805
|
+
};
|
|
32806
|
+
// Module-level caches keyed by `active`, so each holds only a handful of entries. Same pattern
|
|
32807
|
+
// as getShadowScrollStylesMemoized in css-utils.tsx.
|
|
32808
|
+
const getMemoizedItemCss = memoize((active)=>({
|
|
32809
|
+
...COMMON_TABS_TRIGGER_STYLES,
|
|
32657
32810
|
height: 'var(--db-navigation-menu-item-height)',
|
|
32658
32811
|
minWidth: 'var(--db-navigation-menu-item-min-width)',
|
|
32659
32812
|
justifyContent: 'center',
|
|
32660
32813
|
...active && {
|
|
32661
32814
|
// Use box-shadow instead of border to prevent it from affecting the size of the element, which results in visual
|
|
32662
32815
|
// jumping when switching tabs.
|
|
32816
|
+
// No v2 token holds the box shadow yet. TODO(FEINF-6505): adopt a v2 token when one lands.
|
|
32663
32817
|
boxShadow: 'inset 0 calc(-1 * var(--db-navigation-menu-indicator-thickness)) 0 var(--db-navigation-menu-indicator)'
|
|
32664
32818
|
}
|
|
32665
|
-
})
|
|
32819
|
+
}));
|
|
32666
32820
|
const getMemoizedLinkCss = memoize((active)=>({
|
|
32667
32821
|
padding: 'var(--db-navigation-menu-link-padding-top) 0 var(--db-navigation-menu-link-padding-bottom) 0',
|
|
32668
32822
|
'&:focus-visible': {
|
|
@@ -32670,34 +32824,32 @@ const getMemoizedLinkCss = memoize((active)=>({
|
|
|
32670
32824
|
outlineOffset: 'var(--db-navigation-menu-focus-ring-offset)'
|
|
32671
32825
|
},
|
|
32672
32826
|
'&&': {
|
|
32673
|
-
color: active ? 'var(--db-navigation-menu-text-
|
|
32827
|
+
color: active ? 'var(--db-navigation-menu-text-selected)' : 'var(--db-navigation-menu-text)',
|
|
32674
32828
|
textDecoration: 'none',
|
|
32675
32829
|
'&:hover': {
|
|
32676
|
-
color: active ? 'var(--db-navigation-menu-text-
|
|
32830
|
+
color: active ? 'var(--db-navigation-menu-text-selected)' : 'var(--db-navigation-menu-text-hover)',
|
|
32677
32831
|
textDecoration: 'none'
|
|
32678
32832
|
},
|
|
32679
32833
|
'&:focus': {
|
|
32680
32834
|
textDecoration: 'none'
|
|
32681
32835
|
},
|
|
32682
32836
|
'&:active': {
|
|
32683
|
-
color: active ? 'var(--db-navigation-menu-text-
|
|
32837
|
+
color: active ? 'var(--db-navigation-menu-text-selected)' : 'var(--db-navigation-menu-text-active)'
|
|
32684
32838
|
}
|
|
32685
32839
|
}
|
|
32686
32840
|
}));
|
|
32687
32841
|
const List$1 = // eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
32688
32842
|
/*#__PURE__*/ React__default.forwardRef((props, forwardedRef)=>{
|
|
32689
|
-
const { theme } = useDesignSystemTheme();
|
|
32690
32843
|
return /*#__PURE__*/ jsx(RadixNavigationMenu.List, {
|
|
32691
|
-
css:
|
|
32844
|
+
css: LIST_CSS,
|
|
32692
32845
|
...props,
|
|
32693
32846
|
ref: forwardedRef
|
|
32694
32847
|
});
|
|
32695
32848
|
});
|
|
32696
32849
|
const Item$1 = // eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
32697
32850
|
/*#__PURE__*/ React__default.forwardRef(({ children, active, ...props }, forwardedRef)=>{
|
|
32698
|
-
const { theme } = useDesignSystemTheme();
|
|
32699
32851
|
return /*#__PURE__*/ jsx(RadixNavigationMenu.Item, {
|
|
32700
|
-
css: getMemoizedItemCss(
|
|
32852
|
+
css: getMemoizedItemCss(Boolean(active)),
|
|
32701
32853
|
...props,
|
|
32702
32854
|
ref: forwardedRef,
|
|
32703
32855
|
children: /*#__PURE__*/ jsx(RadixNavigationMenu.Link, {
|
|
@@ -32713,7 +32865,7 @@ var NavigationMenu = /*#__PURE__*/Object.freeze({
|
|
|
32713
32865
|
__proto__: null,
|
|
32714
32866
|
Item: Item$1,
|
|
32715
32867
|
List: List$1,
|
|
32716
|
-
Root: Root$
|
|
32868
|
+
Root: Root$4
|
|
32717
32869
|
});
|
|
32718
32870
|
|
|
32719
32871
|
const DEFAULT_ANALYTICS_EVENTS_WITH_VIEW$2 = [
|
|
@@ -32827,7 +32979,7 @@ function getTagEmotionStyles(theme, color = 'default', clickable = false, closab
|
|
|
32827
32979
|
color: iconPress
|
|
32828
32980
|
},
|
|
32829
32981
|
'&:focus-visible': focusVisibleStyles,
|
|
32830
|
-
|
|
32982
|
+
[getIconClassName()]: {
|
|
32831
32983
|
verticalAlign: 0
|
|
32832
32984
|
}
|
|
32833
32985
|
},
|
|
@@ -32836,7 +32988,7 @@ function getTagEmotionStyles(theme, color = 'default', clickable = false, closab
|
|
|
32836
32988
|
fontSize: theme.typography.fontSizeBase,
|
|
32837
32989
|
fontWeight: theme.typography.typographyRegularFontWeight,
|
|
32838
32990
|
lineHeight: theme.typography.lineHeightSm,
|
|
32839
|
-
|
|
32991
|
+
[`& ${getIconClassName()}`]: {
|
|
32840
32992
|
verticalAlign: 'text-top'
|
|
32841
32993
|
},
|
|
32842
32994
|
whiteSpace: 'nowrap'
|
|
@@ -32911,7 +33063,6 @@ const Tag = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
|
32911
33063
|
]);
|
|
32912
33064
|
const handleKeyDown = useCallback(// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
32913
33065
|
// @ts-ignore [FEINF-3177] TODO: fix to work with React 18 types
|
|
32914
|
-
// oxlint-disable-next-line @databricks/react-18-types-migration -- TODO(FEINF-6292)
|
|
32915
33066
|
(e)=>{
|
|
32916
33067
|
if (onKeyDown) {
|
|
32917
33068
|
onKeyDown(e);
|
|
@@ -33009,11 +33160,11 @@ const getMemoizedRootCss = memoize((theme)=>({
|
|
|
33009
33160
|
// Item icon css depends on (theme, size). At most 6 cache entries.
|
|
33010
33161
|
const getMemoizedItemIconCss = memoize((theme, size)=>({
|
|
33011
33162
|
marginRight: size === 'large' ? theme.spacing.sm : theme.spacing.xs,
|
|
33012
|
-
[`& >
|
|
33163
|
+
[`& > ${getIconClassName()}`]: {
|
|
33013
33164
|
verticalAlign: `-3px`
|
|
33014
33165
|
}
|
|
33015
33166
|
}), (theme, size)=>`${themeMemoKey(theme)}|${size}`);
|
|
33016
|
-
const Root$
|
|
33167
|
+
const Root$3 = /*#__PURE__*/ React__default.forwardRef(// eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
33017
33168
|
({ size, componentId, analyticsEvents = DEFAULT_ANALYTICS_EVENTS$1, valueHasNoPii, onValueChange, ...props }, forwardedRef)=>{
|
|
33018
33169
|
const { theme } = useDesignSystemTheme();
|
|
33019
33170
|
const contextValue = React__default.useMemo(()=>size ?? 'medium', [
|
|
@@ -33178,7 +33329,7 @@ const getMemoizedRadioGroupItemStyles = memoize((theme, size, iconClass)=>getRad
|
|
|
33178
33329
|
var PillControl = /*#__PURE__*/Object.freeze({
|
|
33179
33330
|
__proto__: null,
|
|
33180
33331
|
Item: Item,
|
|
33181
|
-
Root: Root$
|
|
33332
|
+
Root: Root$3
|
|
33182
33333
|
});
|
|
33183
33334
|
|
|
33184
33335
|
const DEFAULT_ANALYTICS_EVENTS = [
|
|
@@ -33304,64 +33455,66 @@ const PreviewCard = ({ icon, title, subtitle, titleActions, children, startActio
|
|
|
33304
33455
|
return content;
|
|
33305
33456
|
};
|
|
33306
33457
|
const getPreviewCardStyles = (theme, isInteractive, size, disabled, fullBleedImage)=>{
|
|
33307
|
-
const paddingSize = size === 'large' ?
|
|
33458
|
+
const paddingSize = size === 'large' ? 'var(--db-preview-card-padding-large)' : 'var(--db-preview-card-padding)';
|
|
33459
|
+
const gapSize = size === 'large' ? 'var(--db-preview-card-gap-large)' : 'var(--db-preview-card-gap)';
|
|
33308
33460
|
return {
|
|
33309
33461
|
container: {
|
|
33310
33462
|
overflow: 'hidden',
|
|
33311
|
-
borderRadius:
|
|
33312
|
-
border:
|
|
33463
|
+
borderRadius: 'var(--db-preview-card-border-radius)',
|
|
33464
|
+
border: 'var(--db-preview-card-border-width) solid var(--db-preview-card-border)',
|
|
33313
33465
|
padding: paddingSize,
|
|
33314
|
-
color:
|
|
33466
|
+
color: 'var(--db-preview-card-text)',
|
|
33315
33467
|
display: 'flex',
|
|
33316
33468
|
flexDirection: 'column',
|
|
33317
33469
|
justifyContent: 'space-between',
|
|
33318
|
-
gap:
|
|
33319
|
-
boxShadow:
|
|
33470
|
+
gap: gapSize,
|
|
33471
|
+
boxShadow: 'var(--db-preview-card-shadow)',
|
|
33320
33472
|
cursor: isInteractive ? 'pointer' : 'default',
|
|
33321
33473
|
...isInteractive && {
|
|
33322
33474
|
transition: 'box-shadow 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s',
|
|
33323
33475
|
'&[aria-disabled="true"]': {
|
|
33324
33476
|
pointerEvents: 'none',
|
|
33325
|
-
backgroundColor:
|
|
33326
|
-
borderColor:
|
|
33327
|
-
color:
|
|
33477
|
+
backgroundColor: 'var(--db-preview-card-surface-disabled)',
|
|
33478
|
+
borderColor: 'var(--db-preview-card-border-disabled)',
|
|
33479
|
+
color: 'var(--db-preview-card-text-disabled)'
|
|
33328
33480
|
},
|
|
33329
33481
|
'&:hover, &:focus-within': {
|
|
33330
|
-
boxShadow:
|
|
33482
|
+
boxShadow: 'var(--db-preview-card-shadow-hover)'
|
|
33331
33483
|
},
|
|
33332
33484
|
'&:active': {
|
|
33333
|
-
background:
|
|
33334
|
-
borderColor:
|
|
33335
|
-
boxShadow:
|
|
33485
|
+
background: 'var(--db-preview-card-surface-active)',
|
|
33486
|
+
borderColor: 'var(--db-preview-card-border-hover)',
|
|
33487
|
+
boxShadow: 'var(--db-preview-card-shadow-hover)'
|
|
33336
33488
|
},
|
|
33337
33489
|
'&:focus, &[aria-pressed="true"]': {
|
|
33338
|
-
outlineColor:
|
|
33490
|
+
outlineColor: 'var(--db-preview-card-border-focus)',
|
|
33339
33491
|
outlineWidth: 2,
|
|
33340
33492
|
outlineOffset: -2,
|
|
33341
33493
|
outlineStyle: 'solid',
|
|
33342
|
-
boxShadow:
|
|
33343
|
-
borderColor:
|
|
33494
|
+
boxShadow: 'var(--db-preview-card-shadow-hover)',
|
|
33495
|
+
borderColor: 'var(--db-preview-card-border-hover)'
|
|
33344
33496
|
},
|
|
33345
33497
|
'&:active:not(:focus):not(:focus-within)': {
|
|
33346
33498
|
background: 'transparent',
|
|
33347
|
-
borderColor:
|
|
33499
|
+
borderColor: 'var(--db-preview-card-border)'
|
|
33348
33500
|
}
|
|
33349
33501
|
}
|
|
33350
33502
|
},
|
|
33351
33503
|
image: {
|
|
33352
|
-
margin: fullBleedImage ?
|
|
33504
|
+
margin: fullBleedImage ? `calc(${paddingSize} * -1) calc(${paddingSize} * -1) 0` : 0,
|
|
33353
33505
|
'& > *': {
|
|
33354
|
-
borderRadius: fullBleedImage ? 0 :
|
|
33506
|
+
borderRadius: fullBleedImage ? 0 : 'var(--db-preview-card-image-border-radius)'
|
|
33355
33507
|
}
|
|
33356
33508
|
},
|
|
33357
33509
|
header: {
|
|
33358
33510
|
display: 'flex',
|
|
33359
33511
|
alignItems: 'center',
|
|
33360
|
-
gap:
|
|
33512
|
+
gap: 'var(--db-preview-card-gap)'
|
|
33361
33513
|
},
|
|
33362
33514
|
title: {
|
|
33363
|
-
fontWeight:
|
|
33364
|
-
color: disabled ?
|
|
33515
|
+
fontWeight: 'var(--db-preview-card-title-font-weight)',
|
|
33516
|
+
color: disabled ? 'var(--db-preview-card-text-disabled)' : 'var(--db-preview-card-title-text)',
|
|
33517
|
+
// No v2 line-height token. TODO(FEINF-6557): adopt one when it lands.
|
|
33365
33518
|
lineHeight: theme.typography.lineHeightSm
|
|
33366
33519
|
},
|
|
33367
33520
|
subTitle: {
|
|
@@ -33379,13 +33532,13 @@ const getPreviewCardStyles = (theme, isInteractive, size, disabled, fullBleedIma
|
|
|
33379
33532
|
justifyContent: 'space-between',
|
|
33380
33533
|
alignItems: 'center',
|
|
33381
33534
|
flexWrap: 'wrap',
|
|
33382
|
-
gap:
|
|
33535
|
+
gap: 'var(--db-preview-card-gap)'
|
|
33383
33536
|
},
|
|
33384
33537
|
action: {
|
|
33385
33538
|
overflow: 'hidden',
|
|
33386
33539
|
// to ensure focus ring is rendered
|
|
33387
|
-
margin:
|
|
33388
|
-
padding:
|
|
33540
|
+
margin: 'calc(var(--db-preview-card-action-spacing) * -1)',
|
|
33541
|
+
padding: 'var(--db-preview-card-action-spacing)'
|
|
33389
33542
|
}
|
|
33390
33543
|
};
|
|
33391
33544
|
};
|
|
@@ -33421,7 +33574,7 @@ const getProgressRootStyles = (minWidth, maxWidth)=>{
|
|
|
33421
33574
|
return /*#__PURE__*/ css(importantify(styles));
|
|
33422
33575
|
};
|
|
33423
33576
|
const getMemoizedProgressRootStyles = memoize(getProgressRootStyles, (minWidth, maxWidth)=>`${minWidth ?? ''}|${maxWidth ?? ''}`);
|
|
33424
|
-
const Root$
|
|
33577
|
+
const Root$2 = (props)=>{
|
|
33425
33578
|
const { children, value, minWidth, maxWidth, ...restProps } = props;
|
|
33426
33579
|
const contextValue = useMemo(()=>({
|
|
33427
33580
|
progress: value
|
|
@@ -33459,7 +33612,7 @@ const Indicator = (props)=>{
|
|
|
33459
33612
|
var Progress = /*#__PURE__*/Object.freeze({
|
|
33460
33613
|
__proto__: null,
|
|
33461
33614
|
Indicator: Indicator,
|
|
33462
|
-
Root: Root$
|
|
33615
|
+
Root: Root$2
|
|
33463
33616
|
});
|
|
33464
33617
|
|
|
33465
33618
|
const getRadioTileStyles = (theme, classNamePrefix, maxWidth)=>{
|
|
@@ -33637,7 +33790,6 @@ function getSegmentedControlButtonEmotionStyles(clsPrefix, theme, size, spaced =
|
|
|
33637
33790
|
const classWrapper = `.${clsPrefix}-radio-button-wrapper`;
|
|
33638
33791
|
const classWrapperDisabled = `.${clsPrefix}-radio-button-wrapper-disabled`;
|
|
33639
33792
|
const classButton = `.${clsPrefix}-radio-button`;
|
|
33640
|
-
const classIcon = `.${theme.general.iconfontCssPrefix}`;
|
|
33641
33793
|
// Note: Ant radio button uses a 1px-wide `before` pseudo-element to recreate the left border of the button.
|
|
33642
33794
|
// This is because the actual left border is disabled to avoid a double-border effect with the adjacent button's
|
|
33643
33795
|
// right border.
|
|
@@ -33801,7 +33953,7 @@ function getSegmentedControlButtonEmotionStyles(clsPrefix, theme, size, spaced =
|
|
|
33801
33953
|
},
|
|
33802
33954
|
[`&${classWrapperChecked}`]: {
|
|
33803
33955
|
color: theme.colors.actionDefaultTextDefault,
|
|
33804
|
-
[
|
|
33956
|
+
[`& ${getIconClassName()}`]: {
|
|
33805
33957
|
color: theme.colors.textSecondary
|
|
33806
33958
|
},
|
|
33807
33959
|
backgroundColor: theme.colors.backgroundPrimary,
|
|
@@ -34227,7 +34379,7 @@ const getMemoizedNavButtonActiveCss = memoize((theme)=>importantify({
|
|
|
34227
34379
|
borderRadius: theme.borders.borderRadiusSm,
|
|
34228
34380
|
background: theme.colors.actionDefaultBackgroundPress,
|
|
34229
34381
|
button: {
|
|
34230
|
-
|
|
34382
|
+
[`&:enabled:not(:hover):not(:active) > ${getIconClassName()}`]: {
|
|
34231
34383
|
color: theme.colors.actionTertiaryTextPress
|
|
34232
34384
|
}
|
|
34233
34385
|
}
|
|
@@ -34284,7 +34436,7 @@ const NavButton = /*#__PURE__*/ React__default.forwardRef(// eslint-disable-next
|
|
|
34284
34436
|
active ? getMemoizedNavButtonActiveCss(theme) : undefined,
|
|
34285
34437
|
dangerouslyAppendEmotionCSS
|
|
34286
34438
|
],
|
|
34287
|
-
children: /*#__PURE__*/ jsx(Button
|
|
34439
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
34288
34440
|
ref: ref,
|
|
34289
34441
|
icon: icon,
|
|
34290
34442
|
onClick: onClick,
|
|
@@ -34645,7 +34797,7 @@ function PanelHeader({ children, dangerouslyAppendEmotionCSS, componentId, close
|
|
|
34645
34797
|
})
|
|
34646
34798
|
}),
|
|
34647
34799
|
contentContext.closable ? /*#__PURE__*/ jsx("div", {
|
|
34648
|
-
children: /*#__PURE__*/ jsx(Button
|
|
34800
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
34649
34801
|
componentId: componentId ? `${componentId}.close` : 'codegen_design-system_src_design-system_sidebar_sidebar.tsx_427',
|
|
34650
34802
|
size: "small",
|
|
34651
34803
|
icon: closeIcon ?? /*#__PURE__*/ jsx(CloseIcon, {}),
|
|
@@ -34693,7 +34845,7 @@ function PanelBody({ children, dangerouslyAppendEmotionCSS }) {
|
|
|
34693
34845
|
return /*#__PURE__*/ jsx("div", {
|
|
34694
34846
|
ref: bodyRef,
|
|
34695
34847
|
// Needed to make panel body content focusable when scrollable for keyboard-only users to be able to focus & scroll
|
|
34696
|
-
//
|
|
34848
|
+
// oxlint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
|
34697
34849
|
tabIndex: shouldBeFocusable ? 0 : -1,
|
|
34698
34850
|
css: [
|
|
34699
34851
|
getMemoizedPanelBodyCss(theme),
|
|
@@ -34738,106 +34890,6 @@ const Sidebar = /* #__PURE__ */ (()=>{
|
|
|
34738
34890
|
return Sidebar;
|
|
34739
34891
|
})();
|
|
34740
34892
|
|
|
34741
|
-
const ROOT_STYLES = /*#__PURE__*/ css({
|
|
34742
|
-
position: 'relative',
|
|
34743
|
-
display: 'flex',
|
|
34744
|
-
alignItems: 'center',
|
|
34745
|
-
'&[data-orientation="vertical"]': {
|
|
34746
|
-
flexDirection: 'column',
|
|
34747
|
-
width: 20,
|
|
34748
|
-
height: 100
|
|
34749
|
-
},
|
|
34750
|
-
'&[data-orientation="horizontal"]': {
|
|
34751
|
-
height: 20,
|
|
34752
|
-
width: 200
|
|
34753
|
-
}
|
|
34754
|
-
});
|
|
34755
|
-
const Root$3 = // eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
34756
|
-
/*#__PURE__*/ forwardRef((props, ref)=>{
|
|
34757
|
-
return /*#__PURE__*/ jsx(RadixSlider.Root, {
|
|
34758
|
-
...addDebugOutlineIfEnabled(),
|
|
34759
|
-
css: ROOT_STYLES,
|
|
34760
|
-
...props,
|
|
34761
|
-
ref: ref
|
|
34762
|
-
});
|
|
34763
|
-
});
|
|
34764
|
-
const getTrackStyles = memoize((theme)=>/*#__PURE__*/ css({
|
|
34765
|
-
backgroundColor: theme.colors.grey100,
|
|
34766
|
-
position: 'relative',
|
|
34767
|
-
flexGrow: 1,
|
|
34768
|
-
borderRadius: theme.borders.borderRadiusFull,
|
|
34769
|
-
'&[data-orientation="vertical"]': {
|
|
34770
|
-
width: 3
|
|
34771
|
-
},
|
|
34772
|
-
'&[data-orientation="horizontal"]': {
|
|
34773
|
-
height: 3
|
|
34774
|
-
}
|
|
34775
|
-
}));
|
|
34776
|
-
const Track = // eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
34777
|
-
/*#__PURE__*/ forwardRef((props, ref)=>{
|
|
34778
|
-
const { theme } = useDesignSystemTheme();
|
|
34779
|
-
return /*#__PURE__*/ jsx(RadixSlider.Track, {
|
|
34780
|
-
css: getTrackStyles(theme),
|
|
34781
|
-
...props,
|
|
34782
|
-
ref: ref
|
|
34783
|
-
});
|
|
34784
|
-
});
|
|
34785
|
-
const getRangeStyles = memoize((theme)=>/*#__PURE__*/ css({
|
|
34786
|
-
backgroundColor: theme.colors.primary,
|
|
34787
|
-
position: 'absolute',
|
|
34788
|
-
borderRadius: theme.borders.borderRadiusFull,
|
|
34789
|
-
height: '100%',
|
|
34790
|
-
'&[data-disabled]': {
|
|
34791
|
-
backgroundColor: theme.colors.grey100
|
|
34792
|
-
}
|
|
34793
|
-
}));
|
|
34794
|
-
const Range = // eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
34795
|
-
/*#__PURE__*/ forwardRef((props, ref)=>{
|
|
34796
|
-
const { theme } = useDesignSystemTheme();
|
|
34797
|
-
return /*#__PURE__*/ jsx(RadixSlider.Range, {
|
|
34798
|
-
css: getRangeStyles(theme),
|
|
34799
|
-
...props,
|
|
34800
|
-
ref: ref
|
|
34801
|
-
});
|
|
34802
|
-
});
|
|
34803
|
-
const getThumbStyles = memoize((theme)=>/*#__PURE__*/ css({
|
|
34804
|
-
display: 'block',
|
|
34805
|
-
width: 20,
|
|
34806
|
-
height: 20,
|
|
34807
|
-
backgroundColor: theme.colors.actionPrimaryBackgroundDefault,
|
|
34808
|
-
boxShadow: 'none',
|
|
34809
|
-
borderRadius: theme.borders.borderRadiusFull,
|
|
34810
|
-
outline: 'none',
|
|
34811
|
-
'&:hover': {
|
|
34812
|
-
backgroundColor: theme.colors.actionPrimaryBackgroundHover
|
|
34813
|
-
},
|
|
34814
|
-
'&:focus': {
|
|
34815
|
-
backgroundColor: theme.colors.actionPrimaryBackgroundPress
|
|
34816
|
-
},
|
|
34817
|
-
'&[data-disabled]': {
|
|
34818
|
-
backgroundColor: theme.colors.grey200,
|
|
34819
|
-
boxShadow: 'none'
|
|
34820
|
-
}
|
|
34821
|
-
}));
|
|
34822
|
-
const Thumb = // eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
34823
|
-
/*#__PURE__*/ forwardRef((props, ref)=>{
|
|
34824
|
-
const { theme } = useDesignSystemTheme();
|
|
34825
|
-
return /*#__PURE__*/ jsx(RadixSlider.Thumb, {
|
|
34826
|
-
css: getThumbStyles(theme),
|
|
34827
|
-
"aria-label": "Slider thumb",
|
|
34828
|
-
...props,
|
|
34829
|
-
ref: ref
|
|
34830
|
-
});
|
|
34831
|
-
});
|
|
34832
|
-
|
|
34833
|
-
var Slider = /*#__PURE__*/Object.freeze({
|
|
34834
|
-
__proto__: null,
|
|
34835
|
-
Range: Range,
|
|
34836
|
-
Root: Root$3,
|
|
34837
|
-
Thumb: Thumb,
|
|
34838
|
-
Track: Track
|
|
34839
|
-
});
|
|
34840
|
-
|
|
34841
34893
|
// eslint-disable-next-line @databricks/no-restricted-imports-regexp -- we can directly import antd icons here in order to wrap them for use elsewhere in the design system
|
|
34842
34894
|
function React18CompatibleIconComponent(IconComponent) {
|
|
34843
34895
|
return IconComponent;
|
|
@@ -34851,7 +34903,7 @@ function React18CompatibleIconComponent(IconComponent) {
|
|
|
34851
34903
|
* use Du Bois icons from `__generated/icons`.
|
|
34852
34904
|
*/ const LegacyEllipsisOutlined = React18CompatibleIconComponent(EllipsisOutlined);
|
|
34853
34905
|
|
|
34854
|
-
const ButtonGroup = Button$
|
|
34906
|
+
const ButtonGroup = Button$1.Group;
|
|
34855
34907
|
const DropdownButton = (props)=>{
|
|
34856
34908
|
const { theme } = useDesignSystemTheme();
|
|
34857
34909
|
const { getPopupContainer: getContextPopupContainer, getPrefixCls } = useDesignSystemContext();
|
|
@@ -34878,7 +34930,7 @@ const DropdownButton = (props)=>{
|
|
|
34878
34930
|
} else {
|
|
34879
34931
|
dropdownProps.placement = 'bottomRight';
|
|
34880
34932
|
}
|
|
34881
|
-
const leftButton = /*#__PURE__*/ jsxs(Button
|
|
34933
|
+
const leftButton = /*#__PURE__*/ jsxs(Button, {
|
|
34882
34934
|
componentId: componentId ? `${componentId}.primary_button` : 'codegen_design-system_src_design-system_splitbutton_dropdown_dropdownbutton.tsx_148',
|
|
34883
34935
|
type: type,
|
|
34884
34936
|
form: form,
|
|
@@ -34901,7 +34953,7 @@ const DropdownButton = (props)=>{
|
|
|
34901
34953
|
children
|
|
34902
34954
|
]
|
|
34903
34955
|
});
|
|
34904
|
-
const rightButton = /*#__PURE__*/ jsx(Button
|
|
34956
|
+
const rightButton = /*#__PURE__*/ jsx(Button, {
|
|
34905
34957
|
componentId: componentId ? `${componentId}.dropdown_button` : 'codegen_design-system_src_design-system_splitbutton_dropdown_dropdownbutton.tsx_166',
|
|
34906
34958
|
type: type,
|
|
34907
34959
|
danger: danger,
|
|
@@ -34938,7 +34990,7 @@ const DropdownButton = (props)=>{
|
|
|
34938
34990
|
...dropdownProps,
|
|
34939
34991
|
overlay: overlay,
|
|
34940
34992
|
children: rightButtonToRender
|
|
34941
|
-
}) : /*#__PURE__*/ jsxs(Root$
|
|
34993
|
+
}) : /*#__PURE__*/ jsxs(Root$8, {
|
|
34942
34994
|
...dropdownMenuRootProps,
|
|
34943
34995
|
itemHtmlType: htmlType === 'submit' ? 'submit' : undefined,
|
|
34944
34996
|
children: [
|
|
@@ -34967,6 +35019,8 @@ function getSplitButtonEmotionStyles(classNamePrefix, theme, size) {
|
|
|
34967
35019
|
const primary = (suffix = '')=>getBtnClassName(classNamePrefix, `-primary${suffix}`, '');
|
|
34968
35020
|
const classDropdownTrigger = `.${classNamePrefix}-dropdown-trigger`;
|
|
34969
35021
|
const classSmall = `.${classNamePrefix}-btn-group-sm`;
|
|
35022
|
+
const iconClass = getIconClassName();
|
|
35023
|
+
const iconStateSelectors = `${iconClass}, &:hover ${iconClass}, &:active ${iconClass}, &:focus-visible ${iconClass}`;
|
|
34970
35024
|
const styles = {
|
|
34971
35025
|
[btn()]: {
|
|
34972
35026
|
...getDefaultStyles(theme),
|
|
@@ -34980,13 +35034,13 @@ function getSplitButtonEmotionStyles(classNamePrefix, theme, size) {
|
|
|
34980
35034
|
outlineOffset: '-2px',
|
|
34981
35035
|
outlineColor: theme.colors.actionDefaultBorderFocus
|
|
34982
35036
|
},
|
|
34983
|
-
|
|
35037
|
+
[`${iconClass}, &:focus-visible ${iconClass}`]: {
|
|
34984
35038
|
color: theme.colors.textSecondary
|
|
34985
35039
|
},
|
|
34986
|
-
|
|
35040
|
+
[`&:hover ${iconClass}`]: {
|
|
34987
35041
|
color: theme.colors.actionDefaultIconHover
|
|
34988
35042
|
},
|
|
34989
|
-
|
|
35043
|
+
[`&:active ${iconClass}`]: {
|
|
34990
35044
|
color: theme.colors.actionDefaultIconPress
|
|
34991
35045
|
}
|
|
34992
35046
|
},
|
|
@@ -35010,7 +35064,7 @@ function getSplitButtonEmotionStyles(classNamePrefix, theme, size) {
|
|
|
35010
35064
|
outlineOffset: '-3px',
|
|
35011
35065
|
outlineColor: theme.colors.white
|
|
35012
35066
|
},
|
|
35013
|
-
|
|
35067
|
+
[iconStateSelectors]: {
|
|
35014
35068
|
color: theme.colors.actionPrimaryIcon
|
|
35015
35069
|
}
|
|
35016
35070
|
},
|
|
@@ -35036,13 +35090,13 @@ function getSplitButtonEmotionStyles(classNamePrefix, theme, size) {
|
|
|
35036
35090
|
[classDropdownTrigger]: {
|
|
35037
35091
|
borderLeft: `1px solid ${theme.colors.actionPrimaryIcon}`
|
|
35038
35092
|
},
|
|
35039
|
-
|
|
35093
|
+
[iconStateSelectors]: {
|
|
35040
35094
|
color: theme.colors.actionDisabledText
|
|
35041
35095
|
}
|
|
35042
35096
|
},
|
|
35043
35097
|
[primary('[disabled]')]: {
|
|
35044
35098
|
...getDisabledPrimarySplitButtonStyles(theme),
|
|
35045
|
-
|
|
35099
|
+
[iconStateSelectors]: {
|
|
35046
35100
|
color: theme.colors.actionPrimaryTextDefault
|
|
35047
35101
|
}
|
|
35048
35102
|
}
|
|
@@ -35105,7 +35159,7 @@ const SplitButton = (props)=>{
|
|
|
35105
35159
|
children: /*#__PURE__*/ jsx("div", {
|
|
35106
35160
|
ref: ref,
|
|
35107
35161
|
css: SPLIT_BUTTON_CONTAINER_CSS,
|
|
35108
|
-
children: loading ? /*#__PURE__*/ jsx(Button
|
|
35162
|
+
children: loading ? /*#__PURE__*/ jsx(Button, {
|
|
35109
35163
|
componentId: "codegen_design-system_src_design-system_splitbutton_splitbutton.tsx_163",
|
|
35110
35164
|
type: type === 'default' ? undefined : type,
|
|
35111
35165
|
style: loadingButtonStyle,
|
|
@@ -35539,7 +35593,7 @@ const TabsListContext = /*#__PURE__*/ React__default.createContext({
|
|
|
35539
35593
|
current: null
|
|
35540
35594
|
}
|
|
35541
35595
|
});
|
|
35542
|
-
const Root$
|
|
35596
|
+
const Root$1 = /*#__PURE__*/ React__default.forwardRef(// eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
35543
35597
|
({ value, defaultValue, onValueChange, componentId, analyticsEvents, valueHasNoPii, ...props }, forwardedRef)=>{
|
|
35544
35598
|
const emitOnView = safex('databricks.fe.observability.defaultComponentView.tabs', false);
|
|
35545
35599
|
const isControlled = value !== undefined;
|
|
@@ -35655,7 +35709,7 @@ const List = /*#__PURE__*/ React__default.forwardRef(// eslint-disable-next-line
|
|
|
35655
35709
|
styles['addButtonContainer'],
|
|
35656
35710
|
addButtonProps.dangerouslyAppendEmotionCSS
|
|
35657
35711
|
],
|
|
35658
|
-
children: /*#__PURE__*/ jsx(Button
|
|
35712
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
35659
35713
|
icon: /*#__PURE__*/ jsx(PlusIcon, {}),
|
|
35660
35714
|
size: "small",
|
|
35661
35715
|
"aria-label": "Add tab",
|
|
@@ -35841,8 +35895,6 @@ const Trigger$1 = /*#__PURE__*/ React__default.forwardRef(// eslint-disable-next
|
|
|
35841
35895
|
});
|
|
35842
35896
|
});
|
|
35843
35897
|
const Content$1 = /*#__PURE__*/ React__default.forwardRef(({ mountMode = 'active', children, ...props }, forwardedRef)=>{
|
|
35844
|
-
const { theme } = useDesignSystemTheme();
|
|
35845
|
-
const css = getMemoizedContentStyles(theme);
|
|
35846
35898
|
const { activeValue } = React__default.useContext(TabsRootContext);
|
|
35847
35899
|
const shouldSetActivated = props.value === activeValue;
|
|
35848
35900
|
const [hasBeenActivated, setHasBeenActivated] = React__default.useState(shouldSetActivated);
|
|
@@ -35850,7 +35902,7 @@ const Content$1 = /*#__PURE__*/ React__default.forwardRef(({ mountMode = 'active
|
|
|
35850
35902
|
setHasBeenActivated(true);
|
|
35851
35903
|
}
|
|
35852
35904
|
return /*#__PURE__*/ jsx(RadixTabs.Content, {
|
|
35853
|
-
css:
|
|
35905
|
+
css: CONTENT_STYLES,
|
|
35854
35906
|
...props,
|
|
35855
35907
|
ref: forwardedRef,
|
|
35856
35908
|
forceMount: mountMode === 'force' || mountMode === 'preserve' || undefined,
|
|
@@ -35870,13 +35922,12 @@ const ADD_BUTTON_CONTAINER_CSS = {
|
|
|
35870
35922
|
flex: 1
|
|
35871
35923
|
};
|
|
35872
35924
|
const ADD_BUTTON_CSS = {
|
|
35873
|
-
margin: '
|
|
35925
|
+
margin: 'var(--db-tabs-add-button-margin-top) 0 var(--db-tabs-add-button-margin-bottom) 0'
|
|
35874
35926
|
};
|
|
35875
35927
|
const getListStyles = (theme, shadowScrollStylesBackgroundColor, scrollbarHeight)=>{
|
|
35876
|
-
const containerStyles = getCommonTabsListStyles(theme);
|
|
35877
35928
|
return {
|
|
35878
35929
|
container: {
|
|
35879
|
-
...
|
|
35930
|
+
...COMMON_TABS_LIST_STYLES,
|
|
35880
35931
|
contain: 'layout paint'
|
|
35881
35932
|
},
|
|
35882
35933
|
root: SCROLL_ROOT_CSS,
|
|
@@ -35895,11 +35946,11 @@ const getListStyles = (theme, shadowScrollStylesBackgroundColor, scrollbarHeight
|
|
|
35895
35946
|
},
|
|
35896
35947
|
thumb: {
|
|
35897
35948
|
flex: 1,
|
|
35898
|
-
background:
|
|
35949
|
+
background: 'var(--db-tabs-scrollbar-thumb)',
|
|
35899
35950
|
'&:hover': {
|
|
35900
|
-
background:
|
|
35951
|
+
background: 'var(--db-tabs-scrollbar-thumb-hover)'
|
|
35901
35952
|
},
|
|
35902
|
-
borderRadius:
|
|
35953
|
+
borderRadius: 'var(--db-tabs-scrollbar-radius)',
|
|
35903
35954
|
position: 'relative'
|
|
35904
35955
|
},
|
|
35905
35956
|
addButtonContainer: ADD_BUTTON_CONTAINER_CSS,
|
|
@@ -35908,69 +35959,69 @@ const getListStyles = (theme, shadowScrollStylesBackgroundColor, scrollbarHeight
|
|
|
35908
35959
|
};
|
|
35909
35960
|
const getMemoizedListStyles = memoize(getListStyles, (theme, bg, scrollbarHeight)=>`${themeMemoKey(theme)}|${bg ?? ''}|${scrollbarHeight ?? ''}`);
|
|
35910
35961
|
const getTriggerStyles = (theme, isClosable)=>{
|
|
35911
|
-
const
|
|
35962
|
+
const iconSelector = `${getIconClassName()}`;
|
|
35912
35963
|
return {
|
|
35913
35964
|
trigger: {
|
|
35914
|
-
...
|
|
35965
|
+
...COMMON_TABS_TRIGGER_STYLES,
|
|
35915
35966
|
alignItems: 'center',
|
|
35916
35967
|
justifyContent: isClosable ? 'space-between' : 'center',
|
|
35917
|
-
minWidth: isClosable ?
|
|
35918
|
-
color:
|
|
35919
|
-
lineHeight:
|
|
35968
|
+
minWidth: isClosable ? 'var(--db-tabs-trigger-min-width-closable)' : 'var(--db-tabs-trigger-min-width)',
|
|
35969
|
+
color: 'var(--db-tabs-text)',
|
|
35970
|
+
lineHeight: 'var(--db-tabs-line-height)',
|
|
35920
35971
|
whiteSpace: 'nowrap',
|
|
35921
35972
|
border: 'none',
|
|
35922
|
-
padding:
|
|
35973
|
+
padding: 'var(--db-tabs-trigger-padding-top) 0 var(--db-tabs-trigger-padding-bottom) 0',
|
|
35923
35974
|
// The close icon is hidden on inactive tabs until the tab is hovered
|
|
35924
35975
|
// Checking for the last icon to handle cases where the tab name includes an icon
|
|
35925
|
-
[`& >
|
|
35976
|
+
[`& > ${iconSelector}:last-of-type`]: {
|
|
35926
35977
|
visibility: 'hidden'
|
|
35927
35978
|
},
|
|
35928
35979
|
'&:hover': {
|
|
35929
35980
|
cursor: 'pointer',
|
|
35930
|
-
color:
|
|
35931
|
-
[`& >
|
|
35981
|
+
color: 'var(--db-tabs-text-hover)',
|
|
35982
|
+
[`& > ${iconSelector}:last-of-type`]: {
|
|
35932
35983
|
visibility: 'visible'
|
|
35933
35984
|
}
|
|
35934
35985
|
},
|
|
35935
35986
|
'&:active': {
|
|
35936
|
-
color:
|
|
35987
|
+
color: 'var(--db-tabs-text-press)'
|
|
35937
35988
|
},
|
|
35938
35989
|
outlineStyle: 'none',
|
|
35939
|
-
outlineColor:
|
|
35990
|
+
outlineColor: 'var(--db-tabs-focus-ring)',
|
|
35940
35991
|
'&:focus-visible': {
|
|
35941
35992
|
outlineStyle: 'auto'
|
|
35942
35993
|
},
|
|
35943
35994
|
'&[data-state="active"]': {
|
|
35944
|
-
color:
|
|
35995
|
+
color: 'var(--db-tabs-text-active)',
|
|
35945
35996
|
// Use box-shadow instead of border to prevent it from affecting the size of the element, which results in visual
|
|
35946
35997
|
// jumping when switching tabs.
|
|
35947
|
-
boxShadow:
|
|
35998
|
+
boxShadow: 'inset 0 -4px 0 var(--db-tabs-indicator)',
|
|
35948
35999
|
// The close icon is always visible on active tabs
|
|
35949
|
-
[`& >
|
|
36000
|
+
[`& > ${iconSelector}:last-of-type`]: {
|
|
35950
36001
|
visibility: 'visible'
|
|
35951
36002
|
}
|
|
35952
36003
|
},
|
|
35953
36004
|
'&[data-disabled]': {
|
|
35954
|
-
color:
|
|
36005
|
+
color: 'var(--db-tabs-text-disabled)',
|
|
35955
36006
|
'&:hover': {
|
|
35956
36007
|
cursor: 'not-allowed'
|
|
35957
36008
|
}
|
|
35958
36009
|
}
|
|
35959
36010
|
},
|
|
35960
36011
|
closeSmallIcon: {
|
|
35961
|
-
marginLeft:
|
|
35962
|
-
color:
|
|
36012
|
+
marginLeft: 'var(--db-tabs-close-icon-gap)',
|
|
36013
|
+
color: 'var(--db-tabs-text)',
|
|
35963
36014
|
'&:hover': {
|
|
35964
|
-
color:
|
|
36015
|
+
color: 'var(--db-tabs-text-hover)'
|
|
35965
36016
|
},
|
|
35966
36017
|
'&:active': {
|
|
35967
|
-
color:
|
|
36018
|
+
color: 'var(--db-tabs-text-press)'
|
|
35968
36019
|
}
|
|
35969
36020
|
},
|
|
35970
36021
|
// `trailingActions` only: the container is the visual tab (takes the consumer's className); the
|
|
35971
36022
|
// inner trigger is a transparent passthrough.
|
|
35972
36023
|
triggerContainer: {
|
|
35973
|
-
...
|
|
36024
|
+
...COMMON_TABS_TRIGGER_STYLES,
|
|
35974
36025
|
display: 'inline-flex',
|
|
35975
36026
|
alignItems: 'center',
|
|
35976
36027
|
// Fill the list height so the active-tab underline (`inset 0 -4px` box-shadow below) lands on
|
|
@@ -35978,42 +36029,42 @@ const getTriggerStyles = (theme, isClosable)=>{
|
|
|
35978
36029
|
// 20px line box (= heightSm); this branch's tallest child is a small Button, so match the
|
|
35979
36030
|
// height explicitly instead — padding would overflow the list. Centered content keeps the
|
|
35980
36031
|
// trailing actions and close icon in place; only the underline drops to the baseline.
|
|
35981
|
-
height:
|
|
36032
|
+
height: 'var(--db-tabs-height)',
|
|
35982
36033
|
position: 'relative',
|
|
35983
36034
|
// Scope the inner trigger's z-index:-1 hit-area overlay (see `triggerInner`) to this tab.
|
|
35984
36035
|
isolation: 'isolate',
|
|
35985
|
-
color:
|
|
36036
|
+
color: 'var(--db-tabs-text)',
|
|
35986
36037
|
// Focus lands on the inner button; draw the ring on the whole tab instead. Inset `outline`
|
|
35987
36038
|
// (not box-shadow) so the strip's overflow can't clip it and it won't clobber an active underline.
|
|
35988
36039
|
'&:has([role="tab"]:focus-visible)': {
|
|
35989
|
-
outline:
|
|
36040
|
+
outline: 'var(--db-tabs-focus-ring-width) solid var(--db-tabs-focus-ring)',
|
|
35990
36041
|
outlineOffset: '-2px'
|
|
35991
36042
|
},
|
|
35992
36043
|
'&:hover': {
|
|
35993
36044
|
cursor: 'pointer',
|
|
35994
|
-
color:
|
|
36045
|
+
color: 'var(--db-tabs-text-hover)'
|
|
35995
36046
|
},
|
|
35996
36047
|
'&:active': {
|
|
35997
|
-
color:
|
|
36048
|
+
color: 'var(--db-tabs-text-press)'
|
|
35998
36049
|
},
|
|
35999
36050
|
'&[data-state="active"]': {
|
|
36000
|
-
color:
|
|
36051
|
+
color: 'var(--db-tabs-text-active)',
|
|
36001
36052
|
// Use box-shadow instead of border to prevent it from affecting the size of the element, which results in visual
|
|
36002
36053
|
// jumping when switching tabs.
|
|
36003
|
-
boxShadow:
|
|
36054
|
+
boxShadow: 'inset 0 -4px 0 var(--db-tabs-indicator)'
|
|
36004
36055
|
},
|
|
36005
36056
|
'&[data-disabled]': {
|
|
36006
|
-
color:
|
|
36057
|
+
color: 'var(--db-tabs-text-disabled)',
|
|
36007
36058
|
'&:hover': {
|
|
36008
36059
|
cursor: 'not-allowed'
|
|
36009
36060
|
}
|
|
36010
36061
|
},
|
|
36011
36062
|
// Mirror the single-trigger branch: hide the close icon on inactive tabs but keep its box
|
|
36012
36063
|
// reserved (`visibility`, not width) so it doesn't shift the tab, and reveal on hover/active.
|
|
36013
|
-
[`& >
|
|
36064
|
+
[`& > ${iconSelector}:last-of-type`]: {
|
|
36014
36065
|
visibility: 'hidden'
|
|
36015
36066
|
},
|
|
36016
|
-
[`&:hover >
|
|
36067
|
+
[`&:hover > ${iconSelector}:last-of-type, &[data-state="active"] > ${iconSelector}:last-of-type`]: {
|
|
36017
36068
|
visibility: 'visible'
|
|
36018
36069
|
}
|
|
36019
36070
|
},
|
|
@@ -36047,18 +36098,18 @@ const getTriggerStyles = (theme, isClosable)=>{
|
|
|
36047
36098
|
};
|
|
36048
36099
|
};
|
|
36049
36100
|
const getMemoizedTriggerStyles = memoize(getTriggerStyles, (theme, isClosable)=>`${themeMemoKey(theme)}|${isClosable}`);
|
|
36050
|
-
const
|
|
36051
|
-
|
|
36052
|
-
|
|
36053
|
-
|
|
36054
|
-
|
|
36055
|
-
|
|
36101
|
+
const CONTENT_STYLES = {
|
|
36102
|
+
color: 'var(--db-tabs-content-text)',
|
|
36103
|
+
'&[data-state="inactive"]': {
|
|
36104
|
+
display: 'none'
|
|
36105
|
+
}
|
|
36106
|
+
};
|
|
36056
36107
|
|
|
36057
36108
|
var Tabs = /*#__PURE__*/Object.freeze({
|
|
36058
36109
|
__proto__: null,
|
|
36059
36110
|
Content: Content$1,
|
|
36060
36111
|
List: List,
|
|
36061
|
-
Root: Root$
|
|
36112
|
+
Root: Root$1,
|
|
36062
36113
|
Trigger: Trigger$1
|
|
36063
36114
|
});
|
|
36064
36115
|
|
|
@@ -36249,93 +36300,6 @@ const ToggleButton = /*#__PURE__*/ forwardRef(// eslint-disable-next-line react-
|
|
|
36249
36300
|
});
|
|
36250
36301
|
});
|
|
36251
36302
|
|
|
36252
|
-
const getRootStyles = memoize((theme)=>/*#__PURE__*/ css({
|
|
36253
|
-
alignItems: 'center',
|
|
36254
|
-
backgroundColor: theme.colors.backgroundSecondary,
|
|
36255
|
-
border: `1px solid ${theme.colors.border}`,
|
|
36256
|
-
borderRadius: theme.borders.borderRadiusSm,
|
|
36257
|
-
boxShadow: theme.shadows.lg,
|
|
36258
|
-
display: 'flex',
|
|
36259
|
-
gap: theme.spacing.md,
|
|
36260
|
-
width: 'max-content',
|
|
36261
|
-
padding: theme.spacing.sm
|
|
36262
|
-
}));
|
|
36263
|
-
const Root$1 = // eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
36264
|
-
/*#__PURE__*/ forwardRef((props, ref)=>{
|
|
36265
|
-
const { theme } = useDesignSystemTheme();
|
|
36266
|
-
return /*#__PURE__*/ jsx(RadixToolbar.Root, {
|
|
36267
|
-
...addDebugOutlineIfEnabled(),
|
|
36268
|
-
css: getRootStyles(theme),
|
|
36269
|
-
...props,
|
|
36270
|
-
ref: ref
|
|
36271
|
-
});
|
|
36272
|
-
});
|
|
36273
|
-
const Button = /*#__PURE__*/ forwardRef(// eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
36274
|
-
(props, ref)=>{
|
|
36275
|
-
return /*#__PURE__*/ jsx(RadixToolbar.Button, {
|
|
36276
|
-
...props,
|
|
36277
|
-
ref: ref
|
|
36278
|
-
});
|
|
36279
|
-
});
|
|
36280
|
-
const getSeparatorStyles = memoize((theme)=>/*#__PURE__*/ css({
|
|
36281
|
-
alignSelf: 'stretch',
|
|
36282
|
-
backgroundColor: theme.colors.borderDecorative,
|
|
36283
|
-
width: 1
|
|
36284
|
-
}));
|
|
36285
|
-
const Separator = /*#__PURE__*/ forwardRef(// eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
36286
|
-
(props, ref)=>{
|
|
36287
|
-
const { theme } = useDesignSystemTheme();
|
|
36288
|
-
return /*#__PURE__*/ jsx(RadixToolbar.Separator, {
|
|
36289
|
-
css: getSeparatorStyles(theme),
|
|
36290
|
-
...props,
|
|
36291
|
-
ref: ref
|
|
36292
|
-
});
|
|
36293
|
-
});
|
|
36294
|
-
const Link = // eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
36295
|
-
/*#__PURE__*/ forwardRef((props, ref)=>{
|
|
36296
|
-
return /*#__PURE__*/ jsx(RadixToolbar.Link, {
|
|
36297
|
-
...props,
|
|
36298
|
-
ref: ref
|
|
36299
|
-
});
|
|
36300
|
-
});
|
|
36301
|
-
const ToggleGroup = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
36302
|
-
return /*#__PURE__*/ jsx(RadixToolbar.ToggleGroup, {
|
|
36303
|
-
...props,
|
|
36304
|
-
ref: ref
|
|
36305
|
-
});
|
|
36306
|
-
});
|
|
36307
|
-
const getToggleItemStyles = memoize((theme)=>/*#__PURE__*/ css({
|
|
36308
|
-
background: 'none',
|
|
36309
|
-
color: theme.colors.textPrimary,
|
|
36310
|
-
border: 'none',
|
|
36311
|
-
cursor: 'pointer',
|
|
36312
|
-
'&:hover': {
|
|
36313
|
-
color: theme.colors.actionDefaultTextHover
|
|
36314
|
-
},
|
|
36315
|
-
'&[data-state="on"]': {
|
|
36316
|
-
color: theme.colors.actionDefaultTextPress
|
|
36317
|
-
}
|
|
36318
|
-
}));
|
|
36319
|
-
const ToggleItem = /*#__PURE__*/ forwardRef(// eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
36320
|
-
(props, ref)=>{
|
|
36321
|
-
const { theme } = useDesignSystemTheme();
|
|
36322
|
-
return /*#__PURE__*/ jsx(RadixToolbar.ToggleItem, {
|
|
36323
|
-
css: getToggleItemStyles(theme),
|
|
36324
|
-
...props,
|
|
36325
|
-
ref: ref
|
|
36326
|
-
});
|
|
36327
|
-
});
|
|
36328
|
-
|
|
36329
|
-
var Toolbar = /*#__PURE__*/Object.freeze({
|
|
36330
|
-
__proto__: null,
|
|
36331
|
-
Button: Button,
|
|
36332
|
-
Link: Link,
|
|
36333
|
-
Root: Root$1,
|
|
36334
|
-
Separator: Separator,
|
|
36335
|
-
ToggleGroup: ToggleGroup,
|
|
36336
|
-
ToggleItem: ToggleItem
|
|
36337
|
-
});
|
|
36338
|
-
|
|
36339
36303
|
const SWITCHER_ICON_CSS = {
|
|
36340
36304
|
fontSize: '16px !important'
|
|
36341
36305
|
};
|
|
@@ -37038,7 +37002,7 @@ function getWizardFooterButtons({ goToNextStepOrDone, isLastStep, currentStepInd
|
|
|
37038
37002
|
// oxlint-disable-next-line @databricks/no-dynamic-property-value -- Validated through JSX componentId exempt:acae06b0-d74d-44ee-86db-15b3014e2bcf
|
|
37039
37003
|
componentId: componentId ? `${componentId}.cancel` : undefined
|
|
37040
37004
|
}, "cancel")),
|
|
37041
|
-
currentStepIndex > 0 && !previousStepButtonHidden && /*#__PURE__*/ jsx(Button
|
|
37005
|
+
currentStepIndex > 0 && !previousStepButtonHidden && /*#__PURE__*/ jsx(Button, {
|
|
37042
37006
|
onClick: goToPreviousStep,
|
|
37043
37007
|
type: "tertiary",
|
|
37044
37008
|
disabled: previousButtonDisabled,
|
|
@@ -37067,7 +37031,7 @@ function getWizardFooterButtons({ goToNextStepOrDone, isLastStep, currentStepInd
|
|
|
37067
37031
|
]);
|
|
37068
37032
|
}
|
|
37069
37033
|
function CancelButton({ onCancel, cancelButtonContent, componentId, disabled }) {
|
|
37070
|
-
return /*#__PURE__*/ jsx(Button
|
|
37034
|
+
return /*#__PURE__*/ jsx(Button, {
|
|
37071
37035
|
onClick: onCancel,
|
|
37072
37036
|
type: "tertiary",
|
|
37073
37037
|
componentId: componentId ?? 'dubois-wizard-footer-cancel',
|
|
@@ -37079,12 +37043,12 @@ function ButtonWithTooltip({ tooltipContent, disabled, children, ...props }) {
|
|
|
37079
37043
|
return tooltipContent ? /*#__PURE__*/ jsx(Tooltip, {
|
|
37080
37044
|
componentId: "dubois-wizard-footer-tooltip",
|
|
37081
37045
|
content: tooltipContent,
|
|
37082
|
-
children: /*#__PURE__*/ jsx(Button
|
|
37046
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
37083
37047
|
...props,
|
|
37084
37048
|
disabled: disabled,
|
|
37085
37049
|
children: children
|
|
37086
37050
|
})
|
|
37087
|
-
}) : /*#__PURE__*/ jsx(Button
|
|
37051
|
+
}) : /*#__PURE__*/ jsx(Button, {
|
|
37088
37052
|
...props,
|
|
37089
37053
|
disabled: disabled,
|
|
37090
37054
|
children: children
|
|
@@ -37257,7 +37221,7 @@ function Content({ title, modalTitleWhenCompact, width, children, closeLabel, di
|
|
|
37257
37221
|
color: "secondary",
|
|
37258
37222
|
children: title
|
|
37259
37223
|
}),
|
|
37260
|
-
/*#__PURE__*/ jsx(Button
|
|
37224
|
+
/*#__PURE__*/ jsx(Button, {
|
|
37261
37225
|
"aria-label": closeLabel,
|
|
37262
37226
|
icon: /*#__PURE__*/ jsx(CloseIcon, {}),
|
|
37263
37227
|
componentId: "documentation-side-bar-close",
|
|
@@ -37370,13 +37334,13 @@ function VerticalWizardContent({ width, height, steps: wizardSteps, currentStepI
|
|
|
37370
37334
|
]
|
|
37371
37335
|
}),
|
|
37372
37336
|
isCompactStepper && (()=>{
|
|
37373
|
-
const compactStepperContent = /*#__PURE__*/ jsxs(Root$
|
|
37337
|
+
const compactStepperContent = /*#__PURE__*/ jsxs(Root$9, {
|
|
37374
37338
|
componentId: "codegen_design-system_src_~patterns_wizard_verticalwizardcontent.tsx_93",
|
|
37375
37339
|
children: [
|
|
37376
37340
|
/*#__PURE__*/ jsx(Trigger$5, {
|
|
37377
37341
|
asChild: true,
|
|
37378
37342
|
children: /*#__PURE__*/ jsx("div", {
|
|
37379
|
-
children: /*#__PURE__*/ jsx(Button
|
|
37343
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
37380
37344
|
icon: /*#__PURE__*/ jsx(ListIcon, {}),
|
|
37381
37345
|
componentId: "dubois-wizard-vertical-compact-show-stepper-popover",
|
|
37382
37346
|
children: verticalCompactButtonContent?.(currentStepIndex, stepperSteps.length)
|
|
@@ -37578,13 +37542,14 @@ function WizardStepNavigationProvider({ goToStep, currentStepIndex, children })
|
|
|
37578
37542
|
});
|
|
37579
37543
|
}
|
|
37580
37544
|
|
|
37581
|
-
function WizardModal({ onStepChanged, onCancel, initialStep, steps, onModalClose, localizeStepNumber, cancelButtonContent, nextButtonContent, previousButtonContent, doneButtonContent, enableClickingToSteps, ...modalProps }) {
|
|
37545
|
+
function WizardModal({ onStepChanged, onValidateStepChange, onCancel, initialStep, steps, onModalClose, localizeStepNumber, cancelButtonContent, nextButtonContent, previousButtonContent, doneButtonContent, enableClickingToSteps, ...modalProps }) {
|
|
37582
37546
|
const [currentStepIndex, setCurrentStepIndex] = useState(initialStep ?? 0);
|
|
37583
37547
|
const { onStepsChange, isLastStep, ...footerActions } = useWizardCurrentStep({
|
|
37584
37548
|
currentStepIndex,
|
|
37585
37549
|
setCurrentStepIndex,
|
|
37586
37550
|
totalSteps: steps.length,
|
|
37587
|
-
onStepChanged
|
|
37551
|
+
onStepChanged,
|
|
37552
|
+
onValidateStepChange
|
|
37588
37553
|
});
|
|
37589
37554
|
if (steps.length === 0 || !isUndefined(initialStep) && (initialStep < 0 || initialStep >= steps.length)) {
|
|
37590
37555
|
return null;
|
|
@@ -37692,5 +37657,5 @@ function WizardStepContentWrapper({ header, title, description, alertContent, de
|
|
|
37692
37657
|
});
|
|
37693
37658
|
}
|
|
37694
37659
|
|
|
37695
|
-
export { tableClassNames as $, token as A, Button$1 as B, CheckCircleFillIcon as C, DocumentationSidebar as D, getDarkModePortalStyles as E, FIXED_VERTICAL_STEPPER_WIDTH as F, useModalContext as G, Trigger$5 as H, InfoFillIcon as I, InfoSmallIcon as J, Content$7 as K, Arrow$2 as L, MAX_VERTICAL_WIZARD_CONTENT_WIDTH as M, Tooltip as N, SparkleDoubleIcon as O, LoadingState as P, visuallyHidden as Q, Root$b as R, ShapeTokens as S, Typography as T, genSkeletonAnimatedColor as U, getOffsets as V, Wizard as W, DesignSystemEventSuppressInteractionProviderContext as X, DesignSystemEventSuppressInteractionTrueContextValue as Y, tableStyles as Z, repeatingElementsStyles as _, WizardControlled as a, MinusSquareIcon as a$, hideIconButtonRowStyles as a0, hideIconButtonActionCellClassName as a1, safex as a2, TitleSkeleton as a3, useDialogComboboxContext as a4, PlusIcon as a5, importantify as a6, getComboboxOptionItemWrapperStyles as a7, getFooterStyles as a8, useDialogComboboxOptionListContext as a9, Radio as aA, Checkbox as aB, DialogCombobox as aC, DialogComboboxTrigger as aD, DialogComboboxContent as aE, Select as aF, SelectTrigger as aG, SelectContent as aH, SelectOption as aI, LegacySelect as aJ, WarningIcon as aK, CheckCircleIcon as aL, DangerIcon as aM, Hint as aN, Title$1 as aO, CloseIcon as aP, RestoreAntDDefaultClsPrefix as aQ, AccessibleContainer as aR, DU_BOIS_ENABLE_ANIMATION_CLASSNAME as aS, Tag as aT, CircleOffIcon as aU, CircleOutlineIcon as aV, CircleIcon as aW, getBtnClassName as aX, SortAscendingIcon as aY, SortDescendingIcon as aZ, SortUnsortedIcon as a_, generateUuidV4 as aa, getContentOptions as ab, findHighlightedOption as ac, highlightOption as ad, Input as ae, SearchIcon as af, EmptyResults as ag, findClosestOptionSibling as ah, DialogComboboxOptionListCheckboxItem as ai, DialogComboboxOptionListSelectItem as aj, DialogComboboxOptionListContextProvider as ak, LoadingSpinner as al, DialogComboboxOptionList as am, useUniqueId as an, TypeaheadComboboxContextProvider as ao, useTypeaheadComboboxContext as ap, useDuboisThemeClass as aq, useDesignTokenOverrideStyles as ar, getComboboxContentWrapperStyles as as, ClearSelectionButton as at, TypeaheadComboboxSelectedItem$1 as au, CountBadge$1 as av, getValidationStateColor as aw, SectionHeader as ax, useComboboxState as ay, useMultipleSelectionState as az, WizardModal as b, BeakerIcon as b$, PlusSquareIcon as b0, TypeaheadComboboxV2ContextProvider as b1, useTypeaheadComboboxV2Context as b2, useRadixModalContext as b3, useIsomorphicLayoutEffect as b4, useScrollOptionIntoView as b5, InfoTooltip as b6, getInfoIconStyles as b7, HintRow as b8, getCheckboxStyles as b9, ArrowUpDotIcon as bA, ArrowUpFillIcon as bB, ArrowUpIcon as bC, ArrowsCollapseIcon as bD, ArrowsConnectIcon as bE, ArrowsExpandIcon as bF, ArrowsUpDownIcon as bG, AssistantIcon as bH, AtIcon as bI, Auth0Graphic as bJ, Auth0GraphicLarge as bK, AzHorizontalIcon as bL, AzVerticalIcon as bM, BANNER_MAX_HEIGHT as bN, BANNER_MIN_HEIGHT as bO, BackupIcon as bP, BadgeCodeIcon as bQ, BadgeCodeOffIcon as bR, Banner as bS, BarChartIcon as bT, BarGroupedIcon as bU, BarStackedIcon as bV, BarStackedPercentageIcon as bW, BarsAscendingHorizontalIcon as bX, BarsAscendingVerticalIcon as bY, BarsDescendingHorizontalIcon as bZ, BarsDescendingVerticalIcon as b_, getMenuItemStyles as ba, TypeaheadComboboxSelectedItem as bb, CountBadge as bc, TypeaheadComboboxMenuItem as bd, AccessDeniedGraphic as be, Accordion as bf, AccordionPanel as bg, AlignCenterIcon as bh, AlignJustifyIcon as bi, AlignLeftIcon as bj, AlignRightIcon as bk, AlignVerticalBottomIcon as bl, AlignVerticalCenterIcon as bm, AlignVerticalTopIcon as bn, AppIcon as bo, ApplyDesignSystemContextOverrides as bp, ApplyDesignSystemFlags as bq, ArrowDownDotIcon as br, ArrowDownFillIcon as bs, ArrowDownIcon as bt, ArrowInIcon as bu, ArrowInTableIcon as bv, ArrowLeftIcon as bw, ArrowOutTableIcon as bx, ArrowOverIcon as by, ArrowRightIcon as bz, WizardStepContentWrapper as c, CloudCheckIcon as c$, BinaryIcon as c0, BlockQuoteIcon as c1, BoldIcon as c2, BookIcon as c3, BookmarkFillIcon as c4, BookmarkIcon as c5, BooksIcon as c6, BracketsCheckIcon as c7, BracketsCurlyIcon as c8, BracketsErrorIcon as c9, CertifiedFillIcon as cA, CertifiedFillSmallIcon as cB, CertifiedIcon as cC, ChainIcon as cD, ChartLineIcon as cE, CheckCircleBadgeIcon as cF, CheckCircleSmallIcon as cG, CheckIcon as cH, CheckLineIcon as cI, CheckSmallIcon as cJ, CheckboxIcon as cK, ChecklistIcon as cL, ChevronDoubleDownIcon as cM, ChevronDoubleLeftIcon as cN, ChevronDoubleLeftOffIcon as cO, ChevronDoubleRightIcon as cP, ChevronDoubleRightOffIcon as cQ, ChevronDoubleUpIcon as cR, ChevronLeftIcon as cS, ChevronUpIcon as cT, ChipIcon as cU, CircleOffLargeIcon as cV, CircleOutlineLargeIcon as cW, ClipboardIcon as cX, ClockIcon as cY, ClockKeyIcon as cZ, ClockOffIcon as c_, BracketsSquareIcon as ca, BracketsXIcon as cb, BranchCheckIcon as cc, BranchIcon as cd, BranchResetIcon as ce, BriefcaseFillIcon as cf, BriefcaseIcon as cg, BrushIcon as ch, BugIcon as ci, CalendarClockIcon as cj, CalendarEventIcon as ck, CalendarIcon as cl, CalendarRangeIcon as cm, CalendarSyncIcon as cn, CameraIcon as co, CapitalizeIcon as cp, CaretDownSquareIcon as cq, CaretUpSquareIcon as cr, CatalogCloudIcon as cs, CatalogGearIcon as ct, CatalogHomeIcon as cu, CatalogIcon as cv, CatalogOffIcon as cw, CatalogSharedIcon as cx, CatalogUserHomeIcon as cy, CellsSquareIcon as cz, WizardStepNavigationProvider as d, Drawer as d$, CloudDatabaseIcon as d0, CloudDownloadIcon as d1, CloudIcon as d2, CloudKeyIcon as d3, CloudModelIcon as d4, CloudOffIcon as d5, CloudUploadIcon as d6, CodeIcon as d7, ColorFillIcon as d8, ColorMappingEditIcon as d9, DangerSmallIcon as dA, DashIcon as dB, DashboardCodeIcon as dC, DashboardIcon as dD, DataIcon as dE, DataMaskiingGraphic as dF, DatabaseClockIcon as dG, DatabaseIcon as dH, DatabaseImportIcon as dI, DatePicker as dJ, DecimalIcon as dK, DeprecatedIcon as dL, DeprecatedSmallIcon as dM, DesignSystemContext as dN, DesignSystemEventProviderComponentSubTypes as dO, DesignSystemProvider as dP, DesignSystemThemeContext as dQ, DesignSystemThemeProvider as dR, DialogComboboxCountBadge as dS, DialogComboboxCustomButtonTriggerWrapper as dT, DialogComboboxSectionHeader as dU, DollarIcon as dV, DomainCirclesThree as dW, DomainsIcon as dX, DotsCircleIcon as dY, DownloadIcon as dZ, DragIcon as d_, ColorMappingIcon as da, ColorVars as db, ColumnIcon as dc, ColumnSplitIcon as dd, ColumnTagIcon as de, ColumnsIcon as df, CommandIcon as dg, CommandPaletteIcon as dh, CompassIcon as di, ComponentFinderContext as dj, ConnectIcon as dk, Content$2 as dl, ContextMenu$1 as dm, CopyIcon as dn, CreditCardIcon as dp, CursorClickIcon as dq, CursorIcon as dr, CursorPagination as ds, CursorTypeIcon as dt, CustomAppIcon as du, DS_OVERRIDE_TOKENS_WRAPPER_TESTID as dv, DagHorizontalIcon as dw, DagIcon as dx, DagVerticalIcon as dy, DangerModal as dz, useWizardStepNavigation as e, GridIcon as e$, DropdownMenu as e0, Empty as e1, EmptyDashboardGraphic as e2, ErdIcon as e3, ExpandLessIcon as e4, ExpandMoreIcon as e5, FaceFrownIcon as e6, FaceNeutralIcon as e7, FaceSmileIcon as e8, FileCodeIcon as e9, FolderOpenCloudIcon as eA, FolderOpenCubeIcon as eB, FolderOpenIcon as eC, FolderOpenPipelineIcon as eD, FolderOutlinePipelineIcon as eE, FolderSolidPipelineIcon as eF, FontIcon as eG, ForkHorizontalIcon as eH, ForkIcon as eI, Form as eJ, FormContextResetBoundary as eK, FullscreenExitIcon as eL, FullscreenIcon as eM, FunctionIcon as eN, FunctionInputIcon as eO, GavelIcon as eP, GearFillIcon as eQ, GearIcon as eR, GenieCodeIcon as eS, GenieDeepResearchIcon as eT, GiftIcon as eU, GitCommitIcon as eV, GitMergeIcon as eW, GitRebaseIcon as eX, GlobeIcon as eY, Graphic as eZ, GridDashIcon as e_, FileCubeIcon as ea, FileDocumentIcon as eb, FileIcon as ec, FileImageIcon as ed, FileLockIcon as ee, FileModelIcon as ef, FileNewIcon as eg, FilePipelineIcon as eh, FilterFillIcon as ei, FilterIcon as ej, FlagPointerIcon as ek, FloatIcon as el, FlowIcon as em, FlowsIcon as en, FolderBranchFillIcon as eo, FolderBranchIcon as ep, FolderCloudFilledIcon as eq, FolderCloudIcon as er, FolderCubeIcon as es, FolderCubeOutlineIcon as et, FolderFillIcon as eu, FolderHomeIcon as ev, FolderIcon as ew, FolderNewIcon as ex, FolderNodeIcon as ey, FolderOpenBranchIcon as ez, DesignSystemEventProvider as f, LoopIcon as f$, GroupIcon as f0, H1Icon as f1, H2Icon as f2, H3Icon as f3, H4Icon as f4, H5Icon as f5, H6Icon as f6, HashIcon as f7, HistoryIcon as f8, HomeIcon as f9, LegacyOption as fA, LegacySelectOptGroup as fB, LegacySelectOption as fC, LegacyTable as fD, LegacyTooltip as fE, LetterFormatIcon as fF, LettersIcon as fG, LettersNumbersIcon as fH, LibrariesIcon as fI, LifesaverIcon as fJ, LightbulbIcon as fK, LightningCircleFillIcon as fL, LightningIcon as fM, LinearLineIcon as fN, LinkIcon as fO, LinkOffIcon as fP, ListBorderIcon as fQ, ListClearIcon as fR, ListIcon as fS, ListNumberIcon as fT, Listbox as fU, LoadingIcon as fV, LoadingStateContext as fW, LockFillIcon as fX, LockIcon as fY, LockShareIcon as fZ, LockUnlockedIcon as f_, Icon as fa, ImageIcon as fb, IndentDecreaseIcon as fc, IndentIncreaseIcon as fd, InfinityIcon as fe, InfoBookIcon as ff, InfoIcon as fg, IngestionIcon as fh, ItalicIcon as fi, JoinOperatorIcon as fj, KeyIcon as fk, KeyboardIcon as fl, LakebaseCatalogIcon as fm, LakebaseIcon as fn, LakeflowDesignerIcon as fo, LakewatchAlertIcon as fp, LakewatchDatasourceIcon as fq, LakewatchDetectionRuleIcon as fr, LakewatchParserIcon as fs, LayerGraphIcon as ft, LayerIcon as fu, Layout as fv, LeafIcon as fw, LegacyForm as fx, LegacyFormDubois as fy, LegacyOptGroup as fz, useDesignSystemTheme as g, PinIcon as g$, LowercaseIcon as g0, MailIcon as g1, MapIcon as g2, MarkdownIcon as g3, McpIcon as g4, MeasureIcon as g5, MegaphoneIcon as g6, MenuIcon as g7, MicrophoneIcon as g8, MicrophoneOffIcon as g9, OperatorIcon as gA, OutageGraphic as gB, OverflowHorizontalIcon as gC, OverflowIcon as gD, PageBottomIcon as gE, PageFirstIcon as gF, PageIcon as gG, PageLastIcon as gH, PageTopIcon as gI, Pagination as gJ, Panel as gK, PanelBody as gL, PanelDockedIcon as gM, PanelFloatingIcon as gN, PanelHeader as gO, PanelHeaderButtons as gP, PanelHeaderTitle as gQ, PaperclipIcon as gR, PassFailChecklistIcon as gS, PauseIcon as gT, PencilFillIcon as gU, PencilIcon as gV, PencilSparkleIcon as gW, PieChartIcon as gX, PillControl as gY, PinCancelIcon as gZ, PinFillIcon as g_, MinusCircleFillIcon as ga, MinusCircleIcon as gb, MinusCircleSmallIcon as gc, MissingBranchGraphic as gd, MissingGraphic as ge, ModelsIcon as gf, MonotoneLineIcon as gg, MonthPickerGrid as gh, MoonIcon as gi, Nav as gj, NavButton as gk, NavigationMenu as gl, NeonProjectIcon as gm, NewChatIcon as gn, NewTabIcon as go, NewWindowIcon as gp, NoCaseIcon as gq, NoIcon as gr, NotebookIcon as gs, NotebookPipelineIcon as gt, NotificationIcon as gu, NotificationOffIcon as gv, NumberFormatIcon as gw, NumbersIcon as gx, OfficeIcon as gy, OntologyIcon as gz, DesignTokenScope as h, SidebarAutoIcon as h$, PipelineCodeIcon as h0, PipelineCubeIcon as h1, PipelineIcon as h2, PivotOperatorIcon as h3, PlayCircleFillIcon as h4, PlayCircleIcon as h5, PlayDoubleIcon as h6, PlayIcon as h7, PlayMultipleIcon as h8, PlugIcon as h9, ResizeIcon as hA, RhfForm as hB, RichTextIcon as hC, RobotIcon as hD, RocketIcon as hE, RowsIcon as hF, RunIcon as hG, RunningIcon as hH, SMALL_BUTTON_HEIGHT$2 as hI, SaveClockIcon as hJ, SaveIcon as hK, SchemaIcon as hL, SchoolIcon as hM, SearchDataIcon as hN, SegmentedControlButton as hO, SegmentedControlGroup as hP, SelectContext as hQ, SelectContextProvider as hR, SelectOptionGroup as hS, SendIcon as hT, ShareIcon as hU, ShareNodesIcon as hV, ShieldCheckIcon as hW, ShieldIcon as hX, ShieldOffIcon as hY, ShortcutIcon as hZ, Sidebar as h_, PlusCircleFillIcon as ha, PlusCircleIcon as hb, PlusCircleSmallIcon as hc, PlusMinusSquareIcon as hd, Popover as he, PositionBottomIcon as hf, PositionLeftIcon as hg, PositionRightIcon as hh, PositionTopIcon as hi, PreviewCard as hj, Progress as hk, PullRequestIcon as hl, PuzzleIcon as hm, QueryEditorIcon as hn, QueryIcon as ho, QuestionMarkFillIcon as hp, QuestionMarkIcon as hq, RadioIcon as hr, RadioTile as hs, RangePicker as ht, ReaderModeIcon as hu, RedoIcon as hv, RefreshIcon as hw, RefreshPlayIcon as hx, RefreshXIcon as hy, ReplyIcon as hz, useDesignSystemContext as i, TableReportIcon as i$, SidebarClosedIcon as i0, SidebarCollapseIcon as i1, SidebarExpandIcon as i2, SidebarIcon as i3, SidebarOpenIcon as i4, SidebarSyncIcon as i5, SimpleSelect as i6, SimpleSelectOption as i7, SimpleSelectOptionGroup as i8, SlashSquareIcon as i9, SplitButton as iA, SqlIcon as iB, StarFillIcon as iC, StarIcon as iD, StepAfterLineIcon as iE, StepBeforeLineIcon as iF, Stepper as iG, StopCircleFillIcon as iH, StopCircleIcon as iI, StopIcon as iJ, StoredProcedureIcon as iK, StorefrontIcon as iL, StreamIcon as iM, StrikeThroughIcon as iN, SunIcon as iO, SyncIcon as iP, SyncSmallIcon as iQ, SyncToFileIcon as iR, TableAsteriskIcon as iS, TableClockIcon as iT, TableCombineIcon as iU, TableGlassesIcon as iV, TableGlobeIcon as iW, TableIcon as iX, TableLightningIcon as iY, TableMeasureIcon as iZ, TableModelIcon as i_, Slider as ia, SlidersIcon as ib, SnippetIcon as ic, SortCustomHorizontalIcon as id, SortCustomVerticalIcon as ie, SortHorizontalAscendingIcon as ig, SortHorizontalDescendingIcon as ih, SortLetterHorizontalAscendingIcon as ii, SortLetterHorizontalDescendingIcon as ij, SortLetterUnsortedIcon as ik, SortLetterVerticalAscendingIcon as il, SortLetterVerticalDescendingIcon as im, Spacer as io, SparkleDoubleFillIcon as ip, SparkleFillIcon as iq, SparkleIcon as ir, SparkleRectangleIcon as is, SpeechBubbleIcon as it, SpeechBubblePlusIcon as iu, SpeechBubbleQuestionMarkFillIcon as iv, SpeechBubbleQuestionMarkIcon as iw, SpeechBubbleStarIcon as ix, SpeedometerIcon as iy, Spinner as iz, WarningFillIcon as j, ZaHorizontalIcon as j$, TableStreamIcon as j0, TableVectorIcon as j1, TableViewIcon as j2, Tabs as j3, TagColumnIcon as j4, TagIcon as j5, TagTableIcon as j6, TargetIcon as j7, TerminalIcon as j8, TextBoxIcon as j9, UppercaseIcon as jA, UsageOverageGraphic as jB, UsageSpikeGraphic as jC, UsbIcon as jD, UserBadgeIcon as jE, UserCircleIcon as jF, UserGroupFillIcon as jG, UserGroupIcon as jH, UserIcon as jI, UserKeyIconIcon as jJ, UserShieldIcon as jK, UserSparkleIcon as jL, UserTeamIcon as jM, VisibleFillIcon as jN, VisibleIcon as jO, VisibleOffIcon as jP, VoiceModeIcon as jQ, WithDesignSystemThemeHoc as jR, WorkflowCodeIcon as jS, WorkflowCubeIcon as jT, WorkflowsIcon as jU, WorkspacesIcon as jV, WrenchIcon as jW, WrenchSparkleIcon as jX, XCircleFillIcon as jY, XCircleIcon as jZ, YearPickerGrid as j_, TextColorIcon as ja, TextIcon as jb, TextJustifyIcon as jc, TextUnderlineIcon as jd, ThreeDotsIcon as je, ThumbsDownFilledIcon as jf, ThumbsDownIcon as jg, ThumbsUpFilledIcon as jh, ThumbsUpIcon as ji, ToggleButton as jj, TokenIcon as jk, Toolbar as jl, TrashIcon as jm, Tree as jn, TreeIcon as jo, TrendingFillIcon as jp, TrendingIcon as jq, TriangleIcon as jr, TypeaheadComboboxCheckboxItem as js, TypeaheadComboboxFooter as jt, TypeaheadComboboxMenuItem$1 as ju, TypeaheadComboboxMultiSelectStateChangeTypes as jv, TypeaheadComboboxStateChangeTypes as jw, UnderlineIcon as jx, UndoIcon as jy, UploadIcon as jz, DangerFillIcon as k, ZaVerticalIcon as k0, ZeroOpsIcon as k1, ZeroOpsOutlineIcon as k2, ZoomInIcon as k3, ZoomMarqueeSelection as k4, ZoomOutIcon as k5, ZoomToFitIcon as k6, __INTERNAL_DO_NOT_USE__FormItem as k7, __INTERNAL_DO_NOT_USE__Group as k8, __INTERNAL_DO_NOT_USE__HorizontalGroup as k9, setImplicitContextGetter as kA, skipHideIconButtonActionClassName as kB, themeMemoKey as kC, useAntDConfigProviderContext as kD, useCallbackOnEnter as kE, useComponentFinderContext as kF, useDesignSystemEventSuppressInteractionContext as kG, useFormContext as kH, useRadioGroupContext as kI, __INTERNAL_DO_NOT_USE__VerticalGroup as ka, __INTERNAL_DO_NOT_USE__wrapLegacyFormRules as kb, augmentWithDataComponentProps as kc, dialogComboboxLookAheadKeyDown as kd, getBottomOnlyShadowScrollStyles as ke, getButtonEmotionStyles as kf, getComboboxOptionLabelStyles as kg, getDatePickerQuickActionBasic as kh, getDialogComboboxOptionLabelWidth as ki, getHorizontalTabShadowStyles as kj, getInputStyles as kk, getKeyboardNavigationFunctions as kl, getMemoizedButtonEmotionStyles as km, getPaginationEmotionStyles as kn, getPanelContainmentStyle as ko, getRadioStyles as kp, getRangeQuickActionsBasic as kq, getShadowScrollStyles as kr, getTypographyColor as ks, getVirtualListScrollbarStyles as kt, getVirtualListScrollbarThumbColor as ku, getVirtualizedComboboxMenuItemStyles as kv, getWrapperStyle as kw, highlightFirstNonDisabledOption as kx, isOptionDisabled as ky, resetTabIndexToFocusedElement as kz, DesignSystemEventProviderAnalyticsEventTypes as l, useDesignSystemEventComponentCallbacks as m, DesignSystemEventProviderComponentTypes as n, DesignSystemEventProviderComponentSubTypeMap as o, primitiveColors as p, useNotifyOnFirstView as q, useStableUuidV4 as r, ChevronDownIcon as s, ChevronRightIcon as t, useWizardCurrentStep as u, DesignSystemAntDConfigProvider as v, CloseSmallIcon as w, addDebugOutlineIfEnabled as x, Modal as y, getAnimationCss as z };
|
|
37696
|
-
//# sourceMappingURL=WizardStepContentWrapper-
|
|
37660
|
+
export { repeatingElementsStyles as $, token as A, Button as B, CheckCircleFillIcon as C, DocumentationSidebar as D, getDarkModePortalStyles as E, FIXED_VERTICAL_STEPPER_WIDTH as F, useModalContext as G, Trigger$5 as H, InfoFillIcon as I, InfoSmallIcon as J, Content$7 as K, Arrow$2 as L, MAX_VERTICAL_WIZARD_CONTENT_WIDTH as M, Tooltip as N, SparkleDoubleIcon as O, getIconClassName as P, LoadingState as Q, Root$9 as R, ShapeTokens as S, Typography as T, visuallyHidden as U, genSkeletonAnimatedColor as V, Wizard as W, getOffsets as X, DesignSystemEventSuppressInteractionProviderContext as Y, DesignSystemEventSuppressInteractionTrueContextValue as Z, tableStyles as _, WizardControlled as a, SortUnsortedIcon as a$, tableClassNames as a0, hideIconButtonRowStyles as a1, hideIconButtonActionCellClassName as a2, safex as a3, TitleSkeleton as a4, useDialogComboboxContext as a5, PlusIcon as a6, importantify as a7, getComboboxOptionItemWrapperStyles as a8, getFooterStyles as a9, useMultipleSelectionState as aA, Radio as aB, Checkbox as aC, DialogCombobox as aD, DialogComboboxTrigger as aE, DialogComboboxContent as aF, Select as aG, SelectTrigger as aH, SelectContent as aI, SelectOption as aJ, LegacySelect as aK, WarningIcon as aL, CheckCircleIcon as aM, DangerIcon as aN, Hint as aO, Title$1 as aP, CloseIcon as aQ, RestoreAntDDefaultClsPrefix as aR, AccessibleContainer as aS, DU_BOIS_ENABLE_ANIMATION_CLASSNAME as aT, Tag as aU, CircleOffIcon as aV, CircleOutlineIcon as aW, CircleIcon as aX, getBtnClassName as aY, SortAscendingIcon as aZ, SortDescendingIcon as a_, useDialogComboboxOptionListContext as aa, generateUuidV4 as ab, getContentOptions as ac, findHighlightedOption as ad, highlightOption as ae, Input as af, SearchIcon as ag, EmptyResults as ah, findClosestOptionSibling as ai, DialogComboboxOptionListCheckboxItem as aj, DialogComboboxOptionListSelectItem as ak, DialogComboboxOptionListContextProvider as al, LoadingSpinner as am, DialogComboboxOptionList as an, useUniqueId as ao, TypeaheadComboboxContextProvider as ap, useTypeaheadComboboxContext as aq, useDuboisThemeClass as ar, useDesignTokenOverrideStyles as as, getComboboxContentWrapperStyles as at, ClearSelectionButton as au, TypeaheadComboboxSelectedItem$1 as av, CountBadge$1 as aw, getValidationStateColor as ax, SectionHeader as ay, useComboboxState as az, WizardModal as b, BarsDescendingVerticalIcon as b$, MinusSquareIcon as b0, PlusSquareIcon as b1, TypeaheadComboboxV2ContextProvider as b2, useTypeaheadComboboxV2Context as b3, useRadixModalContext as b4, useIsomorphicLayoutEffect as b5, useScrollOptionIntoView as b6, InfoTooltip as b7, getInfoIconStyles as b8, HintRow as b9, ArrowRightIcon as bA, ArrowUpDotIcon as bB, ArrowUpFillIcon as bC, ArrowUpIcon as bD, ArrowsCollapseIcon as bE, ArrowsConnectIcon as bF, ArrowsExpandIcon as bG, ArrowsUpDownIcon as bH, AssistantIcon as bI, AtIcon as bJ, Auth0Graphic as bK, Auth0GraphicLarge as bL, AzHorizontalIcon as bM, AzVerticalIcon as bN, BANNER_MAX_HEIGHT as bO, BANNER_MIN_HEIGHT as bP, BackupIcon as bQ, BadgeCodeIcon as bR, BadgeCodeOffIcon as bS, Banner as bT, BarChartIcon as bU, BarGroupedIcon as bV, BarStackedIcon as bW, BarStackedPercentageIcon as bX, BarsAscendingHorizontalIcon as bY, BarsAscendingVerticalIcon as bZ, BarsDescendingHorizontalIcon as b_, getCheckboxStyles as ba, getMenuItemStyles as bb, TypeaheadComboboxSelectedItem as bc, CountBadge as bd, TypeaheadComboboxMenuItem as be, AccessDeniedGraphic as bf, Accordion as bg, AccordionPanel as bh, AlignCenterIcon as bi, AlignJustifyIcon as bj, AlignLeftIcon as bk, AlignRightIcon as bl, AlignVerticalBottomIcon as bm, AlignVerticalCenterIcon as bn, AlignVerticalTopIcon as bo, AppIcon as bp, ApplyDesignSystemContextOverrides as bq, ApplyDesignSystemFlags as br, ArrowDownDotIcon as bs, ArrowDownFillIcon as bt, ArrowDownIcon as bu, ArrowInIcon as bv, ArrowInTableIcon as bw, ArrowLeftIcon as bx, ArrowOutTableIcon as by, ArrowOverIcon as bz, WizardStepContentWrapper as c, ClockOffIcon as c$, BeakerIcon as c0, BinaryIcon as c1, BlockQuoteIcon as c2, BoldIcon as c3, BookIcon as c4, BookmarkFillIcon as c5, BookmarkIcon as c6, BooksIcon as c7, BracketsCheckIcon as c8, BracketsCurlyIcon as c9, CellsSquareIcon as cA, CertifiedFillIcon as cB, CertifiedFillSmallIcon as cC, CertifiedIcon as cD, ChainIcon as cE, ChartLineIcon as cF, CheckCircleBadgeIcon as cG, CheckCircleSmallIcon as cH, CheckIcon as cI, CheckLineIcon as cJ, CheckSmallIcon as cK, CheckboxIcon as cL, ChecklistIcon as cM, ChevronDoubleDownIcon as cN, ChevronDoubleLeftIcon as cO, ChevronDoubleLeftOffIcon as cP, ChevronDoubleRightIcon as cQ, ChevronDoubleRightOffIcon as cR, ChevronDoubleUpIcon as cS, ChevronLeftIcon as cT, ChevronUpIcon as cU, ChipIcon as cV, CircleOffLargeIcon as cW, CircleOutlineLargeIcon as cX, ClipboardIcon as cY, ClockIcon as cZ, ClockKeyIcon as c_, BracketsErrorIcon as ca, BracketsSquareIcon as cb, BracketsXIcon as cc, BranchCheckIcon as cd, BranchIcon as ce, BranchResetIcon as cf, BriefcaseFillIcon as cg, BriefcaseIcon as ch, BrushIcon as ci, BugIcon as cj, CalendarClockIcon as ck, CalendarEventIcon as cl, CalendarIcon as cm, CalendarRangeIcon as cn, CalendarSyncIcon as co, CameraIcon as cp, CapitalizeIcon as cq, CaretDownSquareIcon as cr, CaretUpSquareIcon as cs, CatalogCloudIcon as ct, CatalogGearIcon as cu, CatalogHomeIcon as cv, CatalogIcon as cw, CatalogOffIcon as cx, CatalogSharedIcon as cy, CatalogUserHomeIcon as cz, WizardStepNavigationProvider as d, DragIcon as d$, CloudCheckIcon as d0, CloudDatabaseIcon as d1, CloudDownloadIcon as d2, CloudIcon as d3, CloudKeyIcon as d4, CloudModelIcon as d5, CloudOffIcon as d6, CloudUploadIcon as d7, CodeIcon as d8, ColorFillIcon as d9, DangerModal as dA, DangerSmallIcon as dB, DashIcon as dC, DashboardCodeIcon as dD, DashboardIcon as dE, DataIcon as dF, DataMaskiingGraphic as dG, DatabaseClockIcon as dH, DatabaseIcon as dI, DatabaseImportIcon as dJ, DatePicker as dK, DecimalIcon as dL, DeprecatedIcon as dM, DeprecatedSmallIcon as dN, DesignSystemContext as dO, DesignSystemEventProviderComponentSubTypes as dP, DesignSystemProvider as dQ, DesignSystemThemeContext as dR, DesignSystemThemeProvider as dS, DialogComboboxCountBadge as dT, DialogComboboxCustomButtonTriggerWrapper as dU, DialogComboboxSectionHeader as dV, DollarIcon as dW, DomainCirclesThree as dX, DomainsIcon as dY, DotsCircleIcon as dZ, DownloadIcon as d_, ColorMappingEditIcon as da, ColorMappingIcon as db, ColorVars as dc, ColumnIcon as dd, ColumnSplitIcon as de, ColumnTagIcon as df, ColumnsIcon as dg, CommandIcon as dh, CommandPaletteIcon as di, CompassIcon as dj, ComponentFinderContext as dk, ConnectIcon as dl, Content$2 as dm, ContextMenu$1 as dn, CopyIcon as dp, CreditCardIcon as dq, CursorClickIcon as dr, CursorIcon as ds, CursorPagination as dt, CursorTypeIcon as du, CustomAppIcon as dv, DS_OVERRIDE_TOKENS_WRAPPER_TESTID as dw, DagHorizontalIcon as dx, DagIcon as dy, DagVerticalIcon as dz, useWizardStepNavigation as e, GridDashIcon as e$, Drawer as e0, DropdownMenu as e1, Empty as e2, EmptyDashboardGraphic as e3, ErdIcon as e4, ExpandLessIcon as e5, ExpandMoreIcon as e6, FaceFrownIcon as e7, FaceNeutralIcon as e8, FaceSmileIcon as e9, FolderOpenBranchIcon as eA, FolderOpenCloudIcon as eB, FolderOpenCubeIcon as eC, FolderOpenIcon as eD, FolderOpenPipelineIcon as eE, FolderOutlinePipelineIcon as eF, FolderSolidPipelineIcon as eG, FontIcon as eH, ForkHorizontalIcon as eI, ForkIcon as eJ, Form as eK, FormContextResetBoundary as eL, FullscreenExitIcon as eM, FullscreenIcon as eN, FunctionIcon as eO, FunctionInputIcon as eP, GavelIcon as eQ, GearFillIcon as eR, GearIcon as eS, GenieCodeIcon as eT, GenieDeepResearchIcon as eU, GiftIcon as eV, GitCommitIcon as eW, GitMergeIcon as eX, GitRebaseIcon as eY, GlobeIcon as eZ, Graphic as e_, FileCodeIcon as ea, FileCubeIcon as eb, FileDocumentIcon as ec, FileIcon as ed, FileImageIcon as ee, FileLockIcon as ef, FileModelIcon as eg, FileNewIcon as eh, FilePipelineIcon as ei, FilterFillIcon as ej, FilterIcon as ek, FlagPointerIcon as el, FloatIcon as em, FlowIcon as en, FlowsIcon as eo, FolderBranchFillIcon as ep, FolderBranchIcon as eq, FolderCloudFilledIcon as er, FolderCloudIcon as es, FolderCubeIcon as et, FolderCubeOutlineIcon as eu, FolderFillIcon as ev, FolderHomeIcon as ew, FolderIcon as ex, FolderNewIcon as ey, FolderNodeIcon as ez, DesignSystemEventProvider as f, LockUnlockedIcon as f$, GridIcon as f0, GroupIcon as f1, H1Icon as f2, H2Icon as f3, H3Icon as f4, H4Icon as f5, H5Icon as f6, H6Icon as f7, HashIcon as f8, HistoryIcon as f9, LegacyFormDubois as fA, LegacyOptGroup as fB, LegacyOption as fC, LegacySelectOptGroup as fD, LegacySelectOption as fE, LegacyTable as fF, LetterFormatIcon as fG, LettersIcon as fH, LettersNumbersIcon as fI, LibrariesIcon as fJ, LifesaverIcon as fK, LightbulbIcon as fL, LightningCircleFillIcon as fM, LightningIcon as fN, LinearLineIcon as fO, LinkIcon as fP, LinkOffIcon as fQ, ListBorderIcon as fR, ListClearIcon as fS, ListIcon as fT, ListNumberIcon as fU, Listbox as fV, LoadingIcon as fW, LoadingStateContext as fX, LockFillIcon as fY, LockIcon as fZ, LockShareIcon as f_, HomeIcon as fa, Icon as fb, ImageIcon as fc, IndentDecreaseIcon as fd, IndentIncreaseIcon as fe, InfinityIcon as ff, InfoBookIcon as fg, InfoIcon as fh, IngestionIcon as fi, ItalicIcon as fj, JoinOperatorIcon as fk, KeyIcon as fl, KeyboardIcon as fm, LakebaseCatalogIcon as fn, LakebaseIcon as fo, LakeflowDesignerIcon as fp, LakewatchAlertIcon as fq, LakewatchDatasourceIcon as fr, LakewatchDetectionRuleIcon as fs, LakewatchIcon as ft, LakewatchParserIcon as fu, LayerGraphIcon as fv, LayerIcon as fw, Layout as fx, LeafIcon as fy, LegacyForm as fz, useDesignSystemTheme as g, PinFillIcon as g$, LoopIcon as g0, LowercaseIcon as g1, MailIcon as g2, MapIcon as g3, MarkdownIcon as g4, McpIcon as g5, MeasureIcon as g6, MegaphoneIcon as g7, MenuIcon as g8, MicrophoneIcon as g9, OntologyIcon as gA, OperatorIcon as gB, OutageGraphic as gC, OverflowHorizontalIcon as gD, OverflowIcon as gE, PageBottomIcon as gF, PageFirstIcon as gG, PageIcon as gH, PageLastIcon as gI, PageTopIcon as gJ, Pagination as gK, Panel as gL, PanelBody as gM, PanelDockedIcon as gN, PanelFloatingIcon as gO, PanelHeader as gP, PanelHeaderButtons as gQ, PanelHeaderTitle as gR, PaperclipIcon as gS, PassFailChecklistIcon as gT, PauseIcon as gU, PencilFillIcon as gV, PencilIcon as gW, PencilSparkleIcon as gX, PieChartIcon as gY, PillControl as gZ, PinCancelIcon as g_, MicrophoneOffIcon as ga, MinusCircleFillIcon as gb, MinusCircleIcon as gc, MinusCircleSmallIcon as gd, MissingBranchGraphic as ge, MissingGraphic as gf, ModelsIcon as gg, MonotoneLineIcon as gh, MonthPickerGrid as gi, MoonIcon as gj, Nav as gk, NavButton as gl, NavigationMenu as gm, NeonProjectIcon as gn, NewChatIcon as go, NewTabIcon as gp, NewWindowIcon as gq, NoCaseIcon as gr, NoIcon as gs, NotebookIcon as gt, NotebookPipelineIcon as gu, NotificationIcon as gv, NotificationOffIcon as gw, NumberFormatIcon as gx, NumbersIcon as gy, OfficeIcon as gz, DesignTokenScope as h, Sidebar as h$, PinIcon as h0, PipelineCodeIcon as h1, PipelineCubeIcon as h2, PipelineIcon as h3, PivotOperatorIcon as h4, PlayCircleFillIcon as h5, PlayCircleIcon as h6, PlayDoubleIcon as h7, PlayIcon as h8, PlayMultipleIcon as h9, ReplyIcon as hA, ResizeIcon as hB, RhfForm as hC, RichTextIcon as hD, RobotIcon as hE, RocketIcon as hF, RowsIcon as hG, RunIcon as hH, RunningIcon as hI, SMALL_BUTTON_HEIGHT$2 as hJ, SaveClockIcon as hK, SaveIcon as hL, SchemaIcon as hM, SchoolIcon as hN, SearchDataIcon as hO, SegmentedControlButton as hP, SegmentedControlGroup as hQ, SelectContext as hR, SelectContextProvider as hS, SelectOptionGroup as hT, SendIcon as hU, ShareIcon as hV, ShareNodesIcon as hW, ShieldCheckIcon as hX, ShieldIcon as hY, ShieldOffIcon as hZ, ShortcutIcon as h_, PlugIcon as ha, PlusCircleFillIcon as hb, PlusCircleIcon as hc, PlusCircleSmallIcon as hd, PlusMinusSquareIcon as he, Popover as hf, PositionBottomIcon as hg, PositionLeftIcon as hh, PositionRightIcon as hi, PositionTopIcon as hj, PreviewCard as hk, Progress as hl, PullRequestIcon as hm, PuzzleIcon as hn, QueryEditorIcon as ho, QueryIcon as hp, QuestionMarkFillIcon as hq, QuestionMarkIcon as hr, RadioIcon as hs, RadioTile as ht, RangePicker as hu, ReaderModeIcon as hv, RedoIcon as hw, RefreshIcon as hx, RefreshPlayIcon as hy, RefreshXIcon as hz, useDesignSystemContext as i, TableModelIcon as i$, SidebarAutoIcon as i0, SidebarClosedIcon as i1, SidebarCollapseIcon as i2, SidebarExpandIcon as i3, SidebarIcon as i4, SidebarOpenIcon as i5, SidebarSyncIcon as i6, SimpleSelect as i7, SimpleSelectOption as i8, SimpleSelectOptionGroup as i9, Spinner as iA, SplitButton as iB, SqlIcon as iC, StarFillIcon as iD, StarIcon as iE, StepAfterLineIcon as iF, StepBeforeLineIcon as iG, Stepper as iH, StopCircleFillIcon as iI, StopCircleIcon as iJ, StopIcon as iK, StoredProcedureIcon as iL, StorefrontIcon as iM, StreamIcon as iN, StrikeThroughIcon as iO, SunIcon as iP, SyncIcon as iQ, SyncSmallIcon as iR, SyncToFileIcon as iS, TableAsteriskIcon as iT, TableClockIcon as iU, TableCombineIcon as iV, TableGlassesIcon as iW, TableGlobeIcon as iX, TableIcon as iY, TableLightningIcon as iZ, TableMeasureIcon as i_, SlashSquareIcon as ia, SlidersIcon as ib, SlidesIcon as ic, SnippetIcon as id, SortCustomHorizontalIcon as ie, SortCustomVerticalIcon as ig, SortHorizontalAscendingIcon as ih, SortHorizontalDescendingIcon as ii, SortLetterHorizontalAscendingIcon as ij, SortLetterHorizontalDescendingIcon as ik, SortLetterUnsortedIcon as il, SortLetterVerticalAscendingIcon as im, SortLetterVerticalDescendingIcon as io, Spacer as ip, SparkleDoubleFillIcon as iq, SparkleFillIcon as ir, SparkleIcon as is, SparkleRectangleIcon as it, SpeechBubbleIcon as iu, SpeechBubblePlusIcon as iv, SpeechBubbleQuestionMarkFillIcon as iw, SpeechBubbleQuestionMarkIcon as ix, SpeechBubbleStarIcon as iy, SpeedometerIcon as iz, WarningFillIcon as j, ZaHorizontalIcon as j$, TableReportIcon as j0, TableStreamIcon as j1, TableVectorIcon as j2, TableViewIcon as j3, Tabs as j4, TagColumnIcon as j5, TagIcon as j6, TagTableIcon as j7, TargetIcon as j8, TerminalIcon as j9, UppercaseIcon as jA, UsageOverageGraphic as jB, UsageSpikeGraphic as jC, UsbIcon as jD, UserBadgeIcon as jE, UserCircleIcon as jF, UserGroupFillIcon as jG, UserGroupIcon as jH, UserIcon as jI, UserKeyIconIcon as jJ, UserShieldIcon as jK, UserSparkleIcon as jL, UserTeamIcon as jM, VisibleFillIcon as jN, VisibleIcon as jO, VisibleOffIcon as jP, VoiceModeIcon as jQ, WithDesignSystemThemeHoc as jR, WorkflowCodeIcon as jS, WorkflowCubeIcon as jT, WorkflowsIcon as jU, WorkspacesIcon as jV, WrenchIcon as jW, WrenchSparkleIcon as jX, XCircleFillIcon as jY, XCircleIcon as jZ, YearPickerGrid as j_, TextBoxIcon as ja, TextColorIcon as jb, TextIcon as jc, TextJustifyIcon as jd, TextUnderlineIcon as je, ThreeDotsIcon as jf, ThumbsDownFilledIcon as jg, ThumbsDownIcon as jh, ThumbsUpFilledIcon as ji, ThumbsUpIcon as jj, ToggleButton as jk, TokenIcon as jl, TrashIcon as jm, Tree as jn, TreeIcon as jo, TrendingFillIcon as jp, TrendingIcon as jq, TriangleIcon as jr, TypeaheadComboboxCheckboxItem as js, TypeaheadComboboxFooter as jt, TypeaheadComboboxMenuItem$1 as ju, TypeaheadComboboxMultiSelectStateChangeTypes as jv, TypeaheadComboboxStateChangeTypes as jw, UnderlineIcon as jx, UndoIcon as jy, UploadIcon as jz, DangerFillIcon as k, ZaVerticalIcon as k0, ZeroOpsIcon as k1, ZeroOpsOutlineIcon as k2, ZoomInIcon as k3, ZoomMarqueeSelection as k4, ZoomOutIcon as k5, ZoomToFitIcon as k6, __INTERNAL_DO_NOT_USE__FormItem as k7, __INTERNAL_DO_NOT_USE__Group as k8, __INTERNAL_DO_NOT_USE__HorizontalGroup as k9, setImplicitContextGetter as kA, skipHideIconButtonActionClassName as kB, themeMemoKey as kC, useAntDConfigProviderContext as kD, useCallbackOnEnter as kE, useComponentFinderContext as kF, useDesignSystemEventSuppressInteractionContext as kG, useFormContext as kH, useRadioGroupContext as kI, __INTERNAL_DO_NOT_USE__VerticalGroup as ka, __INTERNAL_DO_NOT_USE__wrapLegacyFormRules as kb, augmentWithDataComponentProps as kc, dialogComboboxLookAheadKeyDown as kd, getBottomOnlyShadowScrollStyles as ke, getButtonEmotionStyles as kf, getComboboxOptionLabelStyles as kg, getDatePickerQuickActionBasic as kh, getDialogComboboxOptionLabelWidth as ki, getHorizontalTabShadowStyles as kj, getInputStyles as kk, getKeyboardNavigationFunctions as kl, getMemoizedButtonEmotionStyles as km, getPaginationEmotionStyles as kn, getPanelContainmentStyle as ko, getRadioStyles as kp, getRangeQuickActionsBasic as kq, getShadowScrollStyles as kr, getTypographyColor as ks, getVirtualListScrollbarStyles as kt, getVirtualListScrollbarThumbColor as ku, getVirtualizedComboboxMenuItemStyles as kv, getWrapperStyle as kw, highlightFirstNonDisabledOption as kx, isOptionDisabled as ky, resetTabIndexToFocusedElement as kz, DesignSystemEventProviderAnalyticsEventTypes as l, useDesignSystemEventComponentCallbacks as m, DesignSystemEventProviderComponentTypes as n, DesignSystemEventProviderComponentSubTypeMap as o, primitiveColors as p, useNotifyOnFirstView as q, useStableUuidV4 as r, ChevronDownIcon as s, ChevronRightIcon as t, useWizardCurrentStep as u, DesignSystemAntDConfigProvider as v, CloseSmallIcon as w, addDebugOutlineIfEnabled as x, Modal as y, getAnimationCss as z };
|
|
37661
|
+
//# sourceMappingURL=WizardStepContentWrapper-bbh_CoIf.js.map
|