@databricks/design-system 2.0.5 → 2.0.6
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/CHANGELOG.md +19 -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-Ct9x3rC1.js} +5 -5
- package/dist/{RHFControlledTypeaheadComboboxV2-DsH-nIEk.js.map → RHFControlledTypeaheadComboboxV2-Ct9x3rC1.js.map} +1 -1
- package/dist/{WizardStepContentWrapper-Bq1wm0V7.js → WizardStepContentWrapper-6YTjeEaA.js} +477 -450
- package/dist/WizardStepContentWrapper-6YTjeEaA.js.map +1 -0
- package/dist/icon-metadata.json +2064 -0
- package/dist/{index-BRAVZg-S.js → index-DiRpSwH2.js} +239 -38
- package/dist/index-DiRpSwH2.js.map +1 -0
- package/dist/index-dark.css +458 -190
- package/dist/index-dark.mitigated.css +460 -192
- package/dist/index.css +1415 -1082
- package/dist/index.js +4 -4
- package/dist/index.mitigated.css +1417 -1084
- package/dist/patterns.js +3 -3
- 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/index.d.ts +1 -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/_shared_/Tabs/styles.d.ts +2 -3
- package/dist-types/~patterns/Wizard/WizardModal.d.ts +1 -1
- package/package.json +4 -2
- package/dist/WizardStepContentWrapper-Bq1wm0V7.js.map +0 -1
- package/dist/index-BRAVZg-S.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as primitiveColors, f as DesignSystemEventProvider, g as useDesignSystemTheme, h as DesignTokenScope, i as useDesignSystemContext, I as InfoFillIcon, C as CheckCircleFillIcon, j as WarningFillIcon, k as DangerFillIcon, l as DesignSystemEventProviderAnalyticsEventTypes, m as useDesignSystemEventComponentCallbacks, n as DesignSystemEventProviderComponentTypes, o as DesignSystemEventProviderComponentSubTypeMap, q as useNotifyOnFirstView, r as useStableUuidV4, B as Button, T as Typography, s as ChevronDownIcon, t as ChevronRightIcon, v as DesignSystemAntDConfigProvider, w as CloseSmallIcon, x as addDebugOutlineIfEnabled, y as Modal, z as getAnimationCss, A as token, S as ShapeTokens, E as getDarkModePortalStyles, G as useModalContext, R as Root$
|
|
1
|
+
import { p as primitiveColors, f as DesignSystemEventProvider, g as useDesignSystemTheme, h as DesignTokenScope, i as useDesignSystemContext, I as InfoFillIcon, C as CheckCircleFillIcon, j as WarningFillIcon, k as DangerFillIcon, l as DesignSystemEventProviderAnalyticsEventTypes, m as useDesignSystemEventComponentCallbacks, n as DesignSystemEventProviderComponentTypes, o as DesignSystemEventProviderComponentSubTypeMap, q as useNotifyOnFirstView, r as useStableUuidV4, B as Button$1, T as Typography, s as ChevronDownIcon, t as ChevronRightIcon, v as DesignSystemAntDConfigProvider, w as CloseSmallIcon, x as addDebugOutlineIfEnabled, y as Modal, z as getAnimationCss, A as token, S as ShapeTokens, E as getDarkModePortalStyles, G as useModalContext, R as Root$3, H as Trigger, J as InfoSmallIcon, K as Content, L as Arrow, N as Tooltip, O as SparkleDoubleIcon, P as getIconClassName, Q as LoadingState, U as visuallyHidden, V as genSkeletonAnimatedColor, X as getOffsets, Y as DesignSystemEventSuppressInteractionProviderContext, Z as DesignSystemEventSuppressInteractionTrueContextValue, _ as tableStyles, $ as repeatingElementsStyles, a0 as tableClassNames, a1 as hideIconButtonRowStyles, a2 as hideIconButtonActionCellClassName, a3 as safex, a4 as TitleSkeleton, a5 as useDialogComboboxContext, a6 as PlusIcon, a7 as importantify, a8 as getComboboxOptionItemWrapperStyles, a9 as getFooterStyles, aa as useDialogComboboxOptionListContext, ab as generateUuidV4, ac as getContentOptions, ad as findHighlightedOption, ae as highlightOption, af as Input, ag as SearchIcon, ah as EmptyResults, ai as findClosestOptionSibling, aj as DialogComboboxOptionListCheckboxItem, ak as DialogComboboxOptionListSelectItem, al as DialogComboboxOptionListContextProvider, am as LoadingSpinner, an as DialogComboboxOptionList, ao as useUniqueId, ap as TypeaheadComboboxContextProvider, aq as useTypeaheadComboboxContext, ar as useDuboisThemeClass, as as useDesignTokenOverrideStyles, at as getComboboxContentWrapperStyles, au as ClearSelectionButton, av as TypeaheadComboboxSelectedItem, aw as CountBadge, ax as getValidationStateColor, ay as SectionHeader, az as useComboboxState$1, aA as useMultipleSelectionState$1, aB as Radio, aC as Checkbox, aD as DialogCombobox, aE as DialogComboboxTrigger, aF as DialogComboboxContent, aG as Select, aH as SelectTrigger, aI as SelectContent, aJ as SelectOption, aK as LegacySelect, aL as WarningIcon, aM as CheckCircleIcon, aN as DangerIcon, aO as Hint, aP as Title$1, aQ as CloseIcon, aR as RestoreAntDDefaultClsPrefix, aS as AccessibleContainer, aT as DU_BOIS_ENABLE_ANIMATION_CLASSNAME, aU as Tag, aV as CircleOffIcon, aW as CircleOutlineIcon, aX as CircleIcon, aY as getBtnClassName, aZ as SortAscendingIcon, a_ as SortDescendingIcon, a$ as SortUnsortedIcon, b0 as MinusSquareIcon, b1 as PlusSquareIcon, b2 as TypeaheadComboboxV2ContextProvider, b3 as useTypeaheadComboboxV2Context, b4 as useRadixModalContext, b5 as useIsomorphicLayoutEffect, b6 as useScrollOptionIntoView, b7 as InfoTooltip, b8 as getInfoIconStyles, b9 as HintRow, ba as getCheckboxStyles, bb as getMenuItemStyles, bc as TypeaheadComboboxSelectedItem$1, bd as CountBadge$1, be as TypeaheadComboboxMenuItem } from './WizardStepContentWrapper-6YTjeEaA.js';
|
|
2
2
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
3
3
|
import { ThemeProvider, css, Global, createElement, ClassNames, keyframes } from '@emotion/react';
|
|
4
4
|
import { Alert as Alert$1, AutoComplete as AutoComplete$1, Breadcrumb as Breadcrumb$1, DatePicker, Dropdown as Dropdown$1, Switch as Switch$1, Col as Col$1, Row as Row$1, Space as Space$1, notification, Popover, Skeleton, Menu as Menu$1, Steps as Steps$1 } from 'antd';
|
|
@@ -14,6 +14,8 @@ import { computePosition, flip as flip$1, size } from '@floating-ui/dom';
|
|
|
14
14
|
import { createPortal } from 'react-dom';
|
|
15
15
|
import * as RadixHoverCard from '@radix-ui/react-hover-card';
|
|
16
16
|
import * as Toast from '@radix-ui/react-toast';
|
|
17
|
+
import * as RadixSlider from '@radix-ui/react-slider';
|
|
18
|
+
import * as RadixToolbar from '@radix-ui/react-toolbar';
|
|
17
19
|
import { useComboBox } from '@react-aria/combobox';
|
|
18
20
|
import { useListBox, useOption } from '@react-aria/listbox';
|
|
19
21
|
import { useOverlay, useOverlayPosition, Overlay, DismissButton } from '@react-aria/overlays';
|
|
@@ -539,7 +541,7 @@ const Alert = ({ componentId, analyticsEvents = [
|
|
|
539
541
|
};
|
|
540
542
|
const memoizedActions = useMemo(()=>{
|
|
541
543
|
if (!actions?.length) return null;
|
|
542
|
-
return actions.map((action, index)=>/*#__PURE__*/ jsx(Button, {
|
|
544
|
+
return actions.map((action, index)=>/*#__PURE__*/ jsx(Button$1, {
|
|
543
545
|
size: "small",
|
|
544
546
|
...action
|
|
545
547
|
}, index));
|
|
@@ -643,7 +645,7 @@ const Alert = ({ componentId, analyticsEvents = [
|
|
|
643
645
|
gap: theme.spacing.xs
|
|
644
646
|
}),
|
|
645
647
|
children: [
|
|
646
|
-
showCollapseToggle && /*#__PURE__*/ jsx(Button, {
|
|
648
|
+
showCollapseToggle && /*#__PURE__*/ jsx(Button$1, {
|
|
647
649
|
"aria-expanded": isExpanded,
|
|
648
650
|
"aria-controls": descriptionRegionId,
|
|
649
651
|
"aria-label": isExpanded ? collapseToggleAriaLabel : expandToggleAriaLabel,
|
|
@@ -919,7 +921,7 @@ const InfoPopover = ({ children, popoverProps, iconTitle, iconProps, isKeyboardF
|
|
|
919
921
|
}
|
|
920
922
|
};
|
|
921
923
|
const { onKeyDown, ...restPopoverProps } = popoverProps || {};
|
|
922
|
-
return /*#__PURE__*/ jsxs(Root$
|
|
924
|
+
return /*#__PURE__*/ jsxs(Root$3, {
|
|
923
925
|
componentId: "codegen_design-system_src_design-system_popover_infopopover.tsx_36",
|
|
924
926
|
open: open,
|
|
925
927
|
onOpenChange: setOpen,
|
|
@@ -1053,7 +1055,7 @@ const OverflowPopover = ({ items, renderLabel, tooltipText, ariaLabel = 'More it
|
|
|
1053
1055
|
...addDebugOutlineIfEnabled(),
|
|
1054
1056
|
children: /*#__PURE__*/ jsx(Trigger, {
|
|
1055
1057
|
asChild: true,
|
|
1056
|
-
children: /*#__PURE__*/ jsx(Button, {
|
|
1058
|
+
children: /*#__PURE__*/ jsx(Button$1, {
|
|
1057
1059
|
componentId: "something",
|
|
1058
1060
|
type: "link",
|
|
1059
1061
|
children: renderLabel ? renderLabel(label) : label
|
|
@@ -1067,7 +1069,7 @@ const OverflowPopover = ({ items, renderLabel, tooltipText, ariaLabel = 'More it
|
|
|
1067
1069
|
children: trigger
|
|
1068
1070
|
});
|
|
1069
1071
|
}
|
|
1070
|
-
return /*#__PURE__*/ jsxs(Root$
|
|
1072
|
+
return /*#__PURE__*/ jsxs(Root$3, {
|
|
1071
1073
|
componentId: "codegen_design-system_src_design-system_overflow_overflowpopover.tsx_37",
|
|
1072
1074
|
defaultOpen: defaultOpen,
|
|
1073
1075
|
onOpenChange: (open)=>setShowTooltip(!open),
|
|
@@ -1163,7 +1165,7 @@ function getAvatarEmotionStyles({ backgroundColor, size = DEFAULT_SIZE, theme })
|
|
|
1163
1165
|
height: avatarSize,
|
|
1164
1166
|
width: avatarSize,
|
|
1165
1167
|
fontSize,
|
|
1166
|
-
[
|
|
1168
|
+
[`& :is(${getIconClassName()})`]: {
|
|
1167
1169
|
fontSize: iconSize
|
|
1168
1170
|
}
|
|
1169
1171
|
},
|
|
@@ -1433,10 +1435,13 @@ const Breadcrumb = /* #__PURE__ */ (()=>{
|
|
|
1433
1435
|
},
|
|
1434
1436
|
[separatorClass]: {
|
|
1435
1437
|
fontSize: theme.general.iconFontSize,
|
|
1436
|
-
|
|
1437
|
-
fontSize:
|
|
1438
|
+
[`& :is(${getIconClassName()})`]: {
|
|
1439
|
+
fontSize: theme.typography.fontSizeBase
|
|
1438
1440
|
}
|
|
1439
1441
|
},
|
|
1442
|
+
[`& :is(${getIconClassName()})`]: {
|
|
1443
|
+
fontSize: theme.typography.fontSizeBase
|
|
1444
|
+
},
|
|
1440
1445
|
'& > span': {
|
|
1441
1446
|
display: 'inline-flex',
|
|
1442
1447
|
alignItems: 'center'
|
|
@@ -1602,7 +1607,7 @@ const Table = /*#__PURE__*/ forwardRef(function Table({ children, size = 'defaul
|
|
|
1602
1607
|
}
|
|
1603
1608
|
],
|
|
1604
1609
|
// Needed to make panel body content focusable when scrollable for keyboard-only users to be able to focus & scroll
|
|
1605
|
-
//
|
|
1610
|
+
// oxlint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
|
1606
1611
|
tabIndex: scrollable ? 0 : -1,
|
|
1607
1612
|
onScroll: onScroll,
|
|
1608
1613
|
children: [
|
|
@@ -1965,6 +1970,7 @@ const Card = ({ children, customLoadingContent, dangerouslyAppendEmotionCSS, loa
|
|
|
1965
1970
|
]);
|
|
1966
1971
|
const content = /*#__PURE__*/ jsx("div", {
|
|
1967
1972
|
ref: mergedRef,
|
|
1973
|
+
// oxlint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
|
1968
1974
|
tabIndex: !href ? 0 : undefined,
|
|
1969
1975
|
...addDebugOutlineIfEnabled(),
|
|
1970
1976
|
css: href ? [] : [
|
|
@@ -2284,7 +2290,7 @@ const YearPicker = /*#__PURE__*/ forwardRef(// eslint-disable-next-line react-co
|
|
|
2284
2290
|
*/ YearPicker
|
|
2285
2291
|
});
|
|
2286
2292
|
|
|
2287
|
-
const Separator = (props)=>{
|
|
2293
|
+
const Separator$1 = (props)=>{
|
|
2288
2294
|
const { theme } = useDesignSystemTheme();
|
|
2289
2295
|
return /*#__PURE__*/ jsx("div", {
|
|
2290
2296
|
...props,
|
|
@@ -2306,7 +2312,7 @@ const DialogComboboxAddButton = ({ children, ...restProps })=>{
|
|
|
2306
2312
|
if (!isInsideDialogCombobox) {
|
|
2307
2313
|
throw new Error('`DialogComboboxAddButton` must be used within `DialogCombobox`');
|
|
2308
2314
|
}
|
|
2309
|
-
return /*#__PURE__*/ jsx(Button, {
|
|
2315
|
+
return /*#__PURE__*/ jsx(Button$1, {
|
|
2310
2316
|
// oxlint-disable-next-line @databricks/no-dynamic-property-value -- Contextual component ID validated through DialogCombobox component exempt:fc0846cb-b73b-401b-834e-75bb8b6d4c20
|
|
2311
2317
|
componentId: `${componentId ? componentId : 'design_system.dialogcombobox'}.add_option`,
|
|
2312
2318
|
...restProps,
|
|
@@ -2692,7 +2698,7 @@ const DialogComboboxSeparator = (props)=>{
|
|
|
2692
2698
|
if (!isInsideDialogCombobox) {
|
|
2693
2699
|
throw new Error('`DialogComboboxSeparator` must be used within `DialogCombobox`');
|
|
2694
2700
|
}
|
|
2695
|
-
return /*#__PURE__*/ jsx(Separator, {
|
|
2701
|
+
return /*#__PURE__*/ jsx(Separator$1, {
|
|
2696
2702
|
...props
|
|
2697
2703
|
});
|
|
2698
2704
|
};
|
|
@@ -3132,6 +3138,7 @@ children, dangerouslySetAntdProps, onClick, ...restProps }, ref) {
|
|
|
3132
3138
|
children: /*#__PURE__*/ jsx("input", {
|
|
3133
3139
|
ref: mergedRef,
|
|
3134
3140
|
type: "checkbox",
|
|
3141
|
+
// oxlint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
3135
3142
|
role: "switch",
|
|
3136
3143
|
id: uniqueId,
|
|
3137
3144
|
...checkedStateProps,
|
|
@@ -3992,7 +3999,7 @@ size, ...restProps }, ref)=>{
|
|
|
3992
3999
|
if (!isInsideTypeaheadCombobox) {
|
|
3993
4000
|
throw new Error('`TypeaheadComboboxSeparator` must be used within `TypeaheadComboboxMenu`');
|
|
3994
4001
|
}
|
|
3995
|
-
return /*#__PURE__*/ jsx(Separator, {
|
|
4002
|
+
return /*#__PURE__*/ jsx(Separator$1, {
|
|
3996
4003
|
...props
|
|
3997
4004
|
});
|
|
3998
4005
|
};
|
|
@@ -4007,7 +4014,7 @@ size, ...restProps }, ref)=>{
|
|
|
4007
4014
|
if (!isInsideTypeaheadCombobox) {
|
|
4008
4015
|
throw new Error('`TypeaheadComboboxAddButton` must be used within `TypeaheadCombobox`');
|
|
4009
4016
|
}
|
|
4010
|
-
return /*#__PURE__*/ jsx(Button, {
|
|
4017
|
+
return /*#__PURE__*/ jsx(Button$1, {
|
|
4011
4018
|
...restProps,
|
|
4012
4019
|
// oxlint-disable-next-line @databricks/no-dynamic-property-value -- Validated in the Root for the context exempt:844c1e83-84b8-41ba-95af-bae4799834aa
|
|
4013
4020
|
componentId: `${componentId}.add_option`,
|
|
@@ -4408,10 +4415,10 @@ function RHFControlledMultiSelectTypeaheadCombobox({ name, control, rules, allIt
|
|
|
4408
4415
|
// pull the ~175KB chunk. Generics don't flow through React.lazy, so each public wrapper re-declares the
|
|
4409
4416
|
// generic signature and casts its props onto the (default-generic) lazy component; the lazy impl has the
|
|
4410
4417
|
// identical prop shape.
|
|
4411
|
-
const LazyRHFControlledTypeaheadComboboxV2 = /*#__PURE__*/ React__default.lazy(()=>import('./RHFControlledTypeaheadComboboxV2-
|
|
4418
|
+
const LazyRHFControlledTypeaheadComboboxV2 = /*#__PURE__*/ React__default.lazy(()=>import('./RHFControlledTypeaheadComboboxV2-Ct9x3rC1.js').then((m)=>({
|
|
4412
4419
|
default: m.RHFControlledTypeaheadComboboxV2
|
|
4413
4420
|
})));
|
|
4414
|
-
const LazyRHFControlledMultiSelectTypeaheadComboboxV2 = /*#__PURE__*/ React__default.lazy(()=>import('./RHFControlledTypeaheadComboboxV2-
|
|
4421
|
+
const LazyRHFControlledMultiSelectTypeaheadComboboxV2 = /*#__PURE__*/ React__default.lazy(()=>import('./RHFControlledTypeaheadComboboxV2-Ct9x3rC1.js').then((m)=>({
|
|
4415
4422
|
default: m.RHFControlledMultiSelectTypeaheadComboboxV2
|
|
4416
4423
|
})));
|
|
4417
4424
|
function RHFControlledTypeaheadComboboxV2(props) {
|
|
@@ -4995,28 +5002,39 @@ const defaultProps = {
|
|
|
4995
5002
|
return LegacySkeleton;
|
|
4996
5003
|
})();
|
|
4997
5004
|
|
|
5005
|
+
const getMenuIconStyles = (theme, classNamePrefix)=>({
|
|
5006
|
+
[`.${classNamePrefix}-menu-item :is(.anticon, .db-icon), .${classNamePrefix}-menu-submenu-title :is(.anticon, .db-icon)`]: {
|
|
5007
|
+
fontSize: theme.typography.fontSizeBase
|
|
5008
|
+
}
|
|
5009
|
+
});
|
|
4998
5010
|
/**
|
|
4999
5011
|
* @deprecated Use `DropdownMenu` instead.
|
|
5000
5012
|
*/ const Menu = /* #__PURE__ */ (()=>{
|
|
5001
|
-
const Menu = ({ dangerouslySetAntdProps, ...props })=>{
|
|
5013
|
+
const Menu = ({ dangerouslySetAntdProps, css: cssProp, ...props })=>{
|
|
5014
|
+
const { theme, classNamePrefix } = useDesignSystemTheme();
|
|
5002
5015
|
return /*#__PURE__*/ jsx(DesignSystemAntDConfigProvider, {
|
|
5003
5016
|
children: /*#__PURE__*/ jsx(Menu$1, {
|
|
5004
5017
|
...addDebugOutlineIfEnabled(),
|
|
5005
5018
|
...props,
|
|
5006
|
-
...dangerouslySetAntdProps
|
|
5019
|
+
...dangerouslySetAntdProps,
|
|
5020
|
+
css: [
|
|
5021
|
+
getMenuIconStyles(theme, classNamePrefix),
|
|
5022
|
+
cssProp
|
|
5023
|
+
]
|
|
5007
5024
|
})
|
|
5008
5025
|
});
|
|
5009
5026
|
};
|
|
5010
5027
|
Menu.Item = Menu$1.Item;
|
|
5011
5028
|
Menu.ItemGroup = Menu$1.ItemGroup;
|
|
5012
5029
|
Menu.SubMenu = function SubMenu({ dangerouslySetAntdProps, ...props }) {
|
|
5013
|
-
const { theme } = useDesignSystemTheme();
|
|
5030
|
+
const { theme, classNamePrefix } = useDesignSystemTheme();
|
|
5014
5031
|
return /*#__PURE__*/ jsx(ClassNames, {
|
|
5015
5032
|
children: ({ css })=>{
|
|
5016
5033
|
return /*#__PURE__*/ jsx(Menu$1.SubMenu, {
|
|
5017
5034
|
...addDebugOutlineIfEnabled(),
|
|
5018
5035
|
popupClassName: css({
|
|
5019
|
-
zIndex: theme.options.zIndexBase + 50
|
|
5036
|
+
zIndex: theme.options.zIndexBase + 50,
|
|
5037
|
+
...getMenuIconStyles(theme, classNamePrefix)
|
|
5020
5038
|
}),
|
|
5021
5039
|
popupOffset: [
|
|
5022
5040
|
-6,
|
|
@@ -5140,7 +5158,7 @@ const getToastRootStyle = (theme, classNamePrefix)=>{
|
|
|
5140
5158
|
}
|
|
5141
5159
|
});
|
|
5142
5160
|
};
|
|
5143
|
-
const Root = // eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
5161
|
+
const Root$2 = // eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
5144
5162
|
/*#__PURE__*/ forwardRef(function({ children, severity = 'info', severityLabel, componentId, analyticsEvents = [
|
|
5145
5163
|
DesignSystemEventProviderAnalyticsEventTypes.OnView
|
|
5146
5164
|
], className, style, ...props }, ref) {
|
|
@@ -5270,7 +5288,7 @@ const Close = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
5270
5288
|
css: getCloseStyles(theme),
|
|
5271
5289
|
...restProps,
|
|
5272
5290
|
asChild: true,
|
|
5273
|
-
children: /*#__PURE__*/ jsx(Button, {
|
|
5291
|
+
children: /*#__PURE__*/ jsx(Button$1, {
|
|
5274
5292
|
componentId: componentId ? componentId : 'codegen_design-system_src_design-system_notification_notification.tsx_224',
|
|
5275
5293
|
analyticsEvents: analyticsEvents,
|
|
5276
5294
|
icon: /*#__PURE__*/ jsx(CloseIcon, {}),
|
|
@@ -5299,7 +5317,7 @@ var Notification = /*#__PURE__*/Object.freeze({
|
|
|
5299
5317
|
Close: Close,
|
|
5300
5318
|
Description: Description,
|
|
5301
5319
|
Provider: Provider,
|
|
5302
|
-
Root: Root,
|
|
5320
|
+
Root: Root$2,
|
|
5303
5321
|
Title: Title,
|
|
5304
5322
|
Viewport: Viewport
|
|
5305
5323
|
});
|
|
@@ -5413,6 +5431,103 @@ const ResourceStatusIndicator = (props)=>{
|
|
|
5413
5431
|
});
|
|
5414
5432
|
};
|
|
5415
5433
|
|
|
5434
|
+
const ROOT_STYLES = /*#__PURE__*/ css({
|
|
5435
|
+
position: 'relative',
|
|
5436
|
+
display: 'flex',
|
|
5437
|
+
alignItems: 'center',
|
|
5438
|
+
'&[data-orientation="vertical"]': {
|
|
5439
|
+
flexDirection: 'column',
|
|
5440
|
+
width: 'var(--db-slider-size)',
|
|
5441
|
+
height: 100
|
|
5442
|
+
},
|
|
5443
|
+
'&[data-orientation="horizontal"]': {
|
|
5444
|
+
height: 'var(--db-slider-size)',
|
|
5445
|
+
width: 200
|
|
5446
|
+
}
|
|
5447
|
+
});
|
|
5448
|
+
const Root$1 = // eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
5449
|
+
/*#__PURE__*/ forwardRef((props, ref)=>{
|
|
5450
|
+
return /*#__PURE__*/ jsx(RadixSlider.Root, {
|
|
5451
|
+
...addDebugOutlineIfEnabled(),
|
|
5452
|
+
css: ROOT_STYLES,
|
|
5453
|
+
...props,
|
|
5454
|
+
ref: ref
|
|
5455
|
+
});
|
|
5456
|
+
});
|
|
5457
|
+
const TRACK_STYLES = /*#__PURE__*/ css({
|
|
5458
|
+
backgroundColor: 'var(--db-slider-track-surface)',
|
|
5459
|
+
position: 'relative',
|
|
5460
|
+
flexGrow: 1,
|
|
5461
|
+
borderRadius: 'var(--db-slider-border-radius)',
|
|
5462
|
+
'&[data-orientation="vertical"]': {
|
|
5463
|
+
width: 'var(--db-slider-track-thickness)'
|
|
5464
|
+
},
|
|
5465
|
+
'&[data-orientation="horizontal"]': {
|
|
5466
|
+
height: 'var(--db-slider-track-thickness)'
|
|
5467
|
+
}
|
|
5468
|
+
});
|
|
5469
|
+
const Track = // eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
5470
|
+
/*#__PURE__*/ forwardRef((props, ref)=>{
|
|
5471
|
+
return /*#__PURE__*/ jsx(RadixSlider.Track, {
|
|
5472
|
+
css: TRACK_STYLES,
|
|
5473
|
+
...props,
|
|
5474
|
+
ref: ref
|
|
5475
|
+
});
|
|
5476
|
+
});
|
|
5477
|
+
const RANGE_STYLES = /*#__PURE__*/ css({
|
|
5478
|
+
backgroundColor: 'var(--db-slider-range-surface)',
|
|
5479
|
+
position: 'absolute',
|
|
5480
|
+
borderRadius: 'var(--db-slider-border-radius)',
|
|
5481
|
+
height: '100%',
|
|
5482
|
+
'&[data-disabled]': {
|
|
5483
|
+
backgroundColor: 'var(--db-slider-range-surface-disabled)'
|
|
5484
|
+
}
|
|
5485
|
+
});
|
|
5486
|
+
const Range = // eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
5487
|
+
/*#__PURE__*/ forwardRef((props, ref)=>{
|
|
5488
|
+
return /*#__PURE__*/ jsx(RadixSlider.Range, {
|
|
5489
|
+
css: RANGE_STYLES,
|
|
5490
|
+
...props,
|
|
5491
|
+
ref: ref
|
|
5492
|
+
});
|
|
5493
|
+
});
|
|
5494
|
+
const THUMB_STYLES = /*#__PURE__*/ css({
|
|
5495
|
+
display: 'block',
|
|
5496
|
+
width: 'var(--db-slider-thumb-size)',
|
|
5497
|
+
height: 'var(--db-slider-thumb-size)',
|
|
5498
|
+
backgroundColor: 'var(--db-slider-thumb-surface)',
|
|
5499
|
+
boxShadow: 'none',
|
|
5500
|
+
borderRadius: 'var(--db-slider-border-radius)',
|
|
5501
|
+
outline: 'none',
|
|
5502
|
+
'&:hover': {
|
|
5503
|
+
backgroundColor: 'var(--db-slider-thumb-surface-hover)'
|
|
5504
|
+
},
|
|
5505
|
+
'&:focus': {
|
|
5506
|
+
backgroundColor: 'var(--db-slider-thumb-surface-press)'
|
|
5507
|
+
},
|
|
5508
|
+
'&[data-disabled]': {
|
|
5509
|
+
backgroundColor: 'var(--db-slider-thumb-surface-disabled)',
|
|
5510
|
+
boxShadow: 'none'
|
|
5511
|
+
}
|
|
5512
|
+
});
|
|
5513
|
+
const Thumb = // eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
5514
|
+
/*#__PURE__*/ forwardRef((props, ref)=>{
|
|
5515
|
+
return /*#__PURE__*/ jsx(RadixSlider.Thumb, {
|
|
5516
|
+
css: THUMB_STYLES,
|
|
5517
|
+
"aria-label": "Slider thumb",
|
|
5518
|
+
...props,
|
|
5519
|
+
ref: ref
|
|
5520
|
+
});
|
|
5521
|
+
});
|
|
5522
|
+
|
|
5523
|
+
var Slider = /*#__PURE__*/Object.freeze({
|
|
5524
|
+
__proto__: null,
|
|
5525
|
+
Range: Range,
|
|
5526
|
+
Root: Root$1,
|
|
5527
|
+
Thumb: Thumb,
|
|
5528
|
+
Track: Track
|
|
5529
|
+
});
|
|
5530
|
+
|
|
5416
5531
|
/**
|
|
5417
5532
|
* SnackBarManager is a store for managing SnackBar state.
|
|
5418
5533
|
* It maintains the list of active snacks and notifies subscribers when state changes.
|
|
@@ -5484,18 +5599,19 @@ const snackBarManager = new SnackBarManager();
|
|
|
5484
5599
|
|
|
5485
5600
|
const getCloseButtonStyles = (clsPrefix)=>{
|
|
5486
5601
|
const notLink = `:not(${getBtnClassName(clsPrefix, '-link', '')})`;
|
|
5602
|
+
const iconSelector = `:is(${getIconClassName()})`;
|
|
5487
5603
|
return /*#__PURE__*/ css({
|
|
5488
5604
|
marginLeft: 'var(--db-snackbar-close-button-spacing)',
|
|
5489
5605
|
flexShrink: 0,
|
|
5490
5606
|
// Override design system colors to use dark mode colors in both light and dark modes for proper contrast
|
|
5491
|
-
[`&&:enabled${notLink} >
|
|
5607
|
+
[`&&:enabled${notLink} > ${iconSelector}`]: {
|
|
5492
5608
|
color: 'var(--db-snackbar-close-icon) !important'
|
|
5493
5609
|
},
|
|
5494
|
-
[`&&:enabled${notLink}:hover >
|
|
5610
|
+
[`&&:enabled${notLink}:hover > ${iconSelector}`]: {
|
|
5495
5611
|
color: 'var(--db-snackbar-close-icon-hover) !important'
|
|
5496
5612
|
},
|
|
5497
|
-
[`&&:enabled${notLink}:active >
|
|
5498
|
-
color: 'var(--db-snackbar-close-icon-
|
|
5613
|
+
[`&&:enabled${notLink}:active > ${iconSelector}`]: {
|
|
5614
|
+
color: 'var(--db-snackbar-close-icon-active) !important'
|
|
5499
5615
|
}
|
|
5500
5616
|
});
|
|
5501
5617
|
};
|
|
@@ -5642,7 +5758,7 @@ const SnackBarRoot = /*#__PURE__*/ forwardRef(function SnackBarRoot({ snack }, r
|
|
|
5642
5758
|
}),
|
|
5643
5759
|
snack.closeButton !== false && /*#__PURE__*/ jsx(Toast.Close, {
|
|
5644
5760
|
asChild: true,
|
|
5645
|
-
children: /*#__PURE__*/ jsx(Button, {
|
|
5761
|
+
children: /*#__PURE__*/ jsx(Button$1, {
|
|
5646
5762
|
css: getCloseButtonStyles(classNamePrefix),
|
|
5647
5763
|
componentId: "design-system.snackbar.close",
|
|
5648
5764
|
icon: /*#__PURE__*/ jsx(CloseIcon, {}),
|
|
@@ -5763,7 +5879,7 @@ const TableFilterInput = /*#__PURE__*/ forwardRef(function SearchInput({ onSubmi
|
|
|
5763
5879
|
flex: 1
|
|
5764
5880
|
})
|
|
5765
5881
|
}),
|
|
5766
|
-
/*#__PURE__*/ jsx(Button, {
|
|
5882
|
+
/*#__PURE__*/ jsx(Button$1, {
|
|
5767
5883
|
componentId: componentId ? `${componentId}.search_submit` : 'codegen_design-system_src_design-system_tableui_tablefilterinput.tsx_65',
|
|
5768
5884
|
htmlType: "submit",
|
|
5769
5885
|
"aria-label": "Search",
|
|
@@ -5911,7 +6027,7 @@ const TableHeaderResizeHandle = /*#__PURE__*/ forwardRef(function TableHeaderRes
|
|
|
5911
6027
|
css: tableStyles.resizeHandle
|
|
5912
6028
|
})
|
|
5913
6029
|
});
|
|
5914
|
-
return increaseWidthHandler && decreaseWidthHandler ? /*#__PURE__*/ jsxs(Root$
|
|
6030
|
+
return increaseWidthHandler && decreaseWidthHandler ? /*#__PURE__*/ jsxs(Root$3, {
|
|
5915
6031
|
componentId: "codegen_design-system_src_design-system_tableui_tableheader.tsx_114",
|
|
5916
6032
|
onOpenChange: setIsPopoverOpen,
|
|
5917
6033
|
children: [
|
|
@@ -5949,7 +6065,7 @@ const TableHeaderResizeHandle = /*#__PURE__*/ forwardRef(function TableHeaderRes
|
|
|
5949
6065
|
alignItems: 'center'
|
|
5950
6066
|
},
|
|
5951
6067
|
children: [
|
|
5952
|
-
/*#__PURE__*/ jsx(Button, {
|
|
6068
|
+
/*#__PURE__*/ jsx(Button$1, {
|
|
5953
6069
|
onClick: ()=>{
|
|
5954
6070
|
decreaseWidthHandler();
|
|
5955
6071
|
},
|
|
@@ -5960,7 +6076,7 @@ const TableHeaderResizeHandle = /*#__PURE__*/ forwardRef(function TableHeaderRes
|
|
|
5960
6076
|
backgroundColor: theme.colors.actionTertiaryBackgroundHover
|
|
5961
6077
|
}
|
|
5962
6078
|
}),
|
|
5963
|
-
/*#__PURE__*/ jsx(Button, {
|
|
6079
|
+
/*#__PURE__*/ jsx(Button$1, {
|
|
5964
6080
|
onClick: ()=>{
|
|
5965
6081
|
increaseWidthHandler();
|
|
5966
6082
|
},
|
|
@@ -6238,6 +6354,90 @@ const TableRowSelectCell = /*#__PURE__*/ forwardRef(function TableRowSelectCell(
|
|
|
6238
6354
|
});
|
|
6239
6355
|
});
|
|
6240
6356
|
|
|
6357
|
+
const rootStyles = /*#__PURE__*/ css({
|
|
6358
|
+
alignItems: 'center',
|
|
6359
|
+
backgroundColor: 'var(--db-toolbar-surface)',
|
|
6360
|
+
border: '1px solid var(--db-toolbar-border)',
|
|
6361
|
+
borderRadius: 'var(--db-toolbar-border-radius)',
|
|
6362
|
+
boxShadow: 'var(--db-toolbar-shadow)',
|
|
6363
|
+
display: 'flex',
|
|
6364
|
+
gap: 'var(--db-toolbar-gap)',
|
|
6365
|
+
width: 'max-content',
|
|
6366
|
+
padding: 'var(--db-toolbar-spacing)'
|
|
6367
|
+
});
|
|
6368
|
+
const Root = // eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
6369
|
+
/*#__PURE__*/ forwardRef((props, ref)=>{
|
|
6370
|
+
return /*#__PURE__*/ jsx(RadixToolbar.Root, {
|
|
6371
|
+
...addDebugOutlineIfEnabled(),
|
|
6372
|
+
css: rootStyles,
|
|
6373
|
+
...props,
|
|
6374
|
+
ref: ref
|
|
6375
|
+
});
|
|
6376
|
+
});
|
|
6377
|
+
const Button = /*#__PURE__*/ forwardRef(// eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
6378
|
+
(props, ref)=>{
|
|
6379
|
+
return /*#__PURE__*/ jsx(RadixToolbar.Button, {
|
|
6380
|
+
...props,
|
|
6381
|
+
ref: ref
|
|
6382
|
+
});
|
|
6383
|
+
});
|
|
6384
|
+
const separatorStyles = /*#__PURE__*/ css({
|
|
6385
|
+
alignSelf: 'stretch',
|
|
6386
|
+
backgroundColor: 'var(--db-toolbar-separator-surface)',
|
|
6387
|
+
width: 1
|
|
6388
|
+
});
|
|
6389
|
+
const Separator = /*#__PURE__*/ forwardRef(// eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
6390
|
+
(props, ref)=>{
|
|
6391
|
+
return /*#__PURE__*/ jsx(RadixToolbar.Separator, {
|
|
6392
|
+
css: separatorStyles,
|
|
6393
|
+
...props,
|
|
6394
|
+
ref: ref
|
|
6395
|
+
});
|
|
6396
|
+
});
|
|
6397
|
+
const Link = // eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
6398
|
+
/*#__PURE__*/ forwardRef((props, ref)=>{
|
|
6399
|
+
return /*#__PURE__*/ jsx(RadixToolbar.Link, {
|
|
6400
|
+
...props,
|
|
6401
|
+
ref: ref
|
|
6402
|
+
});
|
|
6403
|
+
});
|
|
6404
|
+
const ToggleGroup = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
6405
|
+
return /*#__PURE__*/ jsx(RadixToolbar.ToggleGroup, {
|
|
6406
|
+
...props,
|
|
6407
|
+
ref: ref
|
|
6408
|
+
});
|
|
6409
|
+
});
|
|
6410
|
+
const toggleItemStyles = /*#__PURE__*/ css({
|
|
6411
|
+
background: 'none',
|
|
6412
|
+
color: 'var(--db-toolbar-toggle-item-text)',
|
|
6413
|
+
border: 'none',
|
|
6414
|
+
cursor: 'pointer',
|
|
6415
|
+
'&:hover': {
|
|
6416
|
+
color: 'var(--db-toolbar-toggle-item-text-hover)'
|
|
6417
|
+
},
|
|
6418
|
+
'&[data-state="on"]': {
|
|
6419
|
+
color: 'var(--db-toolbar-toggle-item-text-press)'
|
|
6420
|
+
}
|
|
6421
|
+
});
|
|
6422
|
+
const ToggleItem = /*#__PURE__*/ forwardRef(// eslint-disable-next-line react-component-name/react-component-name -- TODO(FEINF-4716)
|
|
6423
|
+
(props, ref)=>{
|
|
6424
|
+
return /*#__PURE__*/ jsx(RadixToolbar.ToggleItem, {
|
|
6425
|
+
css: toggleItemStyles,
|
|
6426
|
+
...props,
|
|
6427
|
+
ref: ref
|
|
6428
|
+
});
|
|
6429
|
+
});
|
|
6430
|
+
|
|
6431
|
+
var Toolbar = /*#__PURE__*/Object.freeze({
|
|
6432
|
+
__proto__: null,
|
|
6433
|
+
Button: Button,
|
|
6434
|
+
Link: Link,
|
|
6435
|
+
Root: Root,
|
|
6436
|
+
Separator: Separator,
|
|
6437
|
+
ToggleGroup: ToggleGroup,
|
|
6438
|
+
ToggleItem: ToggleItem
|
|
6439
|
+
});
|
|
6440
|
+
|
|
6241
6441
|
function treeGridReducer(state, action) {
|
|
6242
6442
|
switch(action.type){
|
|
6243
6443
|
case 'TOGGLE_ROW_EXPANDED':
|
|
@@ -6484,7 +6684,8 @@ const TreeGrid = ({ data, columns, renderCell, renderRow, renderTable, renderHea
|
|
|
6484
6684
|
const defaultRenderHeader = useCallback(({ columns, headerProps })=>/*#__PURE__*/ jsx("thead", {
|
|
6485
6685
|
...headerProps,
|
|
6486
6686
|
children: /*#__PURE__*/ jsx("tr", {
|
|
6487
|
-
children: columns.map((column)
|
|
6687
|
+
children: columns.map((column)=>// oxlint-disable-next-line jsx-a11y/no-redundant-roles
|
|
6688
|
+
/*#__PURE__*/ jsx("th", {
|
|
6488
6689
|
role: "columnheader",
|
|
6489
6690
|
children: column.header
|
|
6490
6691
|
}, column.id))
|
|
@@ -7626,7 +7827,7 @@ const TypeaheadComboboxSeparator = (props)=>{
|
|
|
7626
7827
|
}
|
|
7627
7828
|
// role="presentation" keeps the decorative separator out of the listbox's owned children (which
|
|
7628
7829
|
// must be only options) now that menu children render as direct children of the <ul role="listbox">.
|
|
7629
|
-
return /*#__PURE__*/ jsx(Separator, {
|
|
7830
|
+
return /*#__PURE__*/ jsx(Separator$1, {
|
|
7630
7831
|
role: "presentation",
|
|
7631
7832
|
...props
|
|
7632
7833
|
});
|
|
@@ -7638,7 +7839,7 @@ const TypeaheadComboboxAddButton = /*#__PURE__*/ forwardRef(function TypeaheadCo
|
|
|
7638
7839
|
if (!isInsideTypeaheadCombobox) {
|
|
7639
7840
|
throw new Error('`TypeaheadComboboxAddButton` must be used within `TypeaheadComboboxRoot`');
|
|
7640
7841
|
}
|
|
7641
|
-
return /*#__PURE__*/ jsx(Button, {
|
|
7842
|
+
return /*#__PURE__*/ jsx(Button$1, {
|
|
7642
7843
|
...restProps,
|
|
7643
7844
|
// oxlint-disable-next-line @databricks/no-dynamic-property-value -- Validated in the Root for the context exempt:ae0b57c6-871d-4375-a3ea-2574d7a3899e
|
|
7644
7845
|
componentId: componentIdProp ?? `${componentId}.add_option`,
|
|
@@ -8304,5 +8505,5 @@ const DM_SANS_FONT_FAMILY = "'DM Sans', -apple-system, BlinkMacSystemFont, 'Sego
|
|
|
8304
8505
|
// code and other tabular text keep a fixed-width face if the web font fails to load.
|
|
8305
8506
|
const DM_MONO_FONT_FAMILY = "'DM Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace";
|
|
8306
8507
|
|
|
8307
|
-
export {
|
|
8308
|
-
//# sourceMappingURL=index-
|
|
8508
|
+
export { TableFilterLayout as $, Alert as A, Breadcrumb as B, Card as C, DBAssistantAvatar as D, ROW_GUTTER_SIZE as E, FormUI as F, GenericSkeleton as G, Header as H, InfoPopover as I, ResourceStatusIndicator as J, Row as K, LegacyDatePicker as L, Menu as M, Notification as N, Overflow as O, PageWrapper as P, SnackBar as Q, RHFControlledComponents as R, Slider as S, TypeaheadComboboxRoot as T, Space as U, Steps as V, Switch as W, Table as X, TableCell as Y, TableContext as Z, TableFilterInput as _, TypeaheadComboboxMultiSelectInput as a, TableHeader as a0, TableRow as a1, TableRowAction as a2, TableRowActionHeader as a3, TableRowContext as a4, TableRowMenuContainer as a5, TableRowMultiAction as a6, TableRowSelectCell as a7, TableSkeleton as a8, TableSkeletonRows as a9, useDesignSystemFlags as aA, useFastDom as aB, useLegacyNotification as aC, useSnackBar as aD, useThemedStyles as aE, withNotifications as aF, Toolbar as aa, TreeGrid as ab, TruncationTooltip as ac, TypeaheadComboboxAddButton$1 as ad, TypeaheadComboboxInput$1 as ae, TypeaheadComboboxMenu$1 as af, TypeaheadComboboxMultiSelectInput$1 as ag, TypeaheadComboboxRoot$1 as ah, TypeaheadComboboxSectionHeader$1 as ai, TypeaheadComboboxSeparator$1 as aj, TypeaheadComboboxToggleButton$1 as ak, index as al, consumerDarkColorList as am, consumerLightColorList as an, flushFastdomForTesting as ao, getGlobalResetStyles as ap, getGlobalStyles as aq, getSwitchWithLabelStyles as ar, isSafeRelativeUrl as as, isSafeUrl as at, measure as au, sanitizeNextUrl as av, setupDesignSystemEventProviderForTesting as aw, snackBarManager as ax, update as ay, useDefaultTreeGridState as az, TypeaheadComboboxMenu as b, TypeaheadComboboxInput as c, ApplyGlobalStyles as d, AssistantAvatar as e, AutoComplete as f, Avatar as g, AvatarGroup as h, Col as i, DM_MONO_FONT_FAMILY as j, DM_SANS_FONT_FAMILY as k, DesignTokenScopeWithEmotionTheme as l, DialogComboboxAddButton as m, DialogComboboxFooter as n, DialogComboboxHintRow as o, DialogComboboxOptionControlledList as p, DialogComboboxOptionListSearch as q, DialogComboboxSeparator as r, Dropdown as s, DuboisDatePicker as t, useComboboxState as u, HoverCard as v, LegacyPopover as w, LegacySkeleton as x, OverflowPopover as y, ParagraphSkeleton as z };
|
|
8509
|
+
//# sourceMappingURL=index-DiRpSwH2.js.map
|