@veritone-ce/design-system 2.2.5 → 2.2.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/dist/cjs/Dialog/components.js +39 -13
- package/dist/cjs/Dialog/styles.module.scss.js +1 -1
- package/dist/cjs/Drawer/components.js +46 -13
- package/dist/cjs/Drawer/styles.module.scss.js +1 -1
- package/dist/cjs/Menu/controlled.js +2 -0
- package/dist/cjs/styles.css +2 -2
- package/dist/esm/Dialog/components.js +40 -14
- package/dist/esm/Dialog/styles.module.scss.js +1 -1
- package/dist/esm/Drawer/components.js +47 -14
- package/dist/esm/Drawer/styles.module.scss.js +1 -1
- package/dist/esm/Menu/controlled.js +2 -0
- package/dist/esm/styles.css +2 -2
- package/dist/types/Dialog/components.d.ts +2 -0
- package/dist/types/Dialog/factory.d.ts +1 -0
- package/dist/types/Drawer/components.d.ts +5 -0
- package/dist/types/Drawer/factory.d.ts +2 -0
- package/dist/types/Menu/controlled.d.ts +2 -1
- package/package.json +1 -1
|
@@ -48,32 +48,58 @@ const Dialog = React__namespace.forwardRef(function Dialog2({
|
|
|
48
48
|
overlayStyle,
|
|
49
49
|
overlayClassName,
|
|
50
50
|
lockScroll = true,
|
|
51
|
+
disableAutoFocus = false,
|
|
51
52
|
"data-testid": dataTestId,
|
|
52
53
|
...options
|
|
53
54
|
}, propRef) {
|
|
54
55
|
const dialog = state.useDialog(options);
|
|
56
|
+
const { isMounted: overlayIsMounted, styles: overlayTransitionStyles } = react.useTransitionStyles(dialog.context, {
|
|
57
|
+
duration: 225,
|
|
58
|
+
initial: {
|
|
59
|
+
opacity: 0
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
const { isMounted: innerIsMounted, styles: innerTransitionStyles } = react.useTransitionStyles(dialog.context, {
|
|
63
|
+
duration: 225,
|
|
64
|
+
initial: {
|
|
65
|
+
transform: `scale(95%)`
|
|
66
|
+
}
|
|
67
|
+
});
|
|
55
68
|
const ref = react.useMergeRefs([dialog.context.refs.setFloating, propRef]);
|
|
56
69
|
let content = null;
|
|
57
|
-
if (
|
|
70
|
+
if (overlayIsMounted || innerIsMounted) {
|
|
58
71
|
content = /* @__PURE__ */ jsxRuntime.jsx(react.FloatingPortal, { root: portalEl, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
59
72
|
react.FloatingOverlay,
|
|
60
73
|
{
|
|
61
|
-
style:
|
|
74
|
+
style: {
|
|
75
|
+
...overlayTransitionStyles,
|
|
76
|
+
...overlayStyle
|
|
77
|
+
},
|
|
62
78
|
className: cx.cx(styles_module.default["dialog-overlay"], overlayClassName),
|
|
63
79
|
lockScroll,
|
|
64
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
65
|
-
|
|
80
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
81
|
+
react.FloatingFocusManager,
|
|
66
82
|
{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
83
|
+
context: dialog.context,
|
|
84
|
+
disabled: disableAutoFocus,
|
|
85
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(portal.PortalThemeRelay, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
ref,
|
|
89
|
+
"aria-labelledby": dialog.labelId,
|
|
90
|
+
"aria-describedby": dialog.descriptionId,
|
|
91
|
+
...dialog.getFloatingProps(),
|
|
92
|
+
"data-testid": dataTestId,
|
|
93
|
+
style: {
|
|
94
|
+
...innerTransitionStyles,
|
|
95
|
+
...style
|
|
96
|
+
},
|
|
97
|
+
className: cx.cx(styles_module.default["dialog"], className),
|
|
98
|
+
children
|
|
99
|
+
}
|
|
100
|
+
) })
|
|
75
101
|
}
|
|
76
|
-
)
|
|
102
|
+
)
|
|
77
103
|
}
|
|
78
104
|
) });
|
|
79
105
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var modules_efc4e723 = {"dialog-overlay":"
|
|
5
|
+
var modules_efc4e723 = {"dialog-overlay":"vt_ce_Dialog_dialogOverlay__36db6625","dialog":"vt_ce_Dialog_dialog__36db6625","dialog-start":"vt_ce_Dialog_dialogStart__36db6625","dialog-end":"vt_ce_Dialog_dialogEnd__36db6625","dialog-content":"vt_ce_Dialog_dialogContent__36db6625","dialog-title":"vt_ce_Dialog_dialogTitle__36db6625","dialog-typography":"vt_ce_Dialog_dialogTypography__36db6625","dialog-actions":"vt_ce_Dialog_dialogActions__36db6625"};
|
|
6
6
|
|
|
7
7
|
exports.default = modules_efc4e723;
|
|
@@ -41,6 +41,7 @@ function _interopNamespaceDefault(e) {
|
|
|
41
41
|
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
42
42
|
|
|
43
43
|
const Drawer = React__namespace.forwardRef(function Drawer2({
|
|
44
|
+
placement = "end",
|
|
44
45
|
children,
|
|
45
46
|
portalEl,
|
|
46
47
|
style,
|
|
@@ -50,6 +51,7 @@ const Drawer = React__namespace.forwardRef(function Drawer2({
|
|
|
50
51
|
overlayStyle,
|
|
51
52
|
overlayClassName,
|
|
52
53
|
lockScroll = true,
|
|
54
|
+
disableAutoFocus = false,
|
|
53
55
|
"data-testid": dataTestId,
|
|
54
56
|
...options
|
|
55
57
|
}, propRef) {
|
|
@@ -57,37 +59,68 @@ const Drawer = React__namespace.forwardRef(function Drawer2({
|
|
|
57
59
|
...options,
|
|
58
60
|
dismissEnabled: overlay
|
|
59
61
|
});
|
|
62
|
+
const { isMounted: overlayIsMounted, styles: overlayTransitionStyles } = react.useTransitionStyles(drawer.context, {
|
|
63
|
+
duration: 225,
|
|
64
|
+
initial: {
|
|
65
|
+
opacity: 0
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
const { isMounted: innerIsMounted, styles: innerTransitionStyles } = react.useTransitionStyles(drawer.context, {
|
|
69
|
+
duration: 225,
|
|
70
|
+
initial: {
|
|
71
|
+
transform: `translateX(${placement === "start" ? "-66px" : "66px"})`
|
|
72
|
+
}
|
|
73
|
+
});
|
|
60
74
|
const ref = react.useMergeRefs([drawer.context.refs.setFloating, propRef]);
|
|
61
75
|
const strategyCn = styles_module.default[`drawer-overlay-strategy-${strategy}`];
|
|
76
|
+
const placementCn = styles_module.default[`drawer-overlay-placement-${placement}`];
|
|
62
77
|
let content = null;
|
|
63
|
-
if (
|
|
64
|
-
content = /* @__PURE__ */ jsxRuntime.jsx(react.FloatingPortal, { root: portalEl, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
78
|
+
if (overlayIsMounted || innerIsMounted) {
|
|
79
|
+
content = /* @__PURE__ */ jsxRuntime.jsx(react.FloatingPortal, { root: portalEl, children: /* @__PURE__ */ jsxRuntime.jsx(reactRemoveScroll.RemoveScroll, { enabled: overlay && lockScroll, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
65
80
|
"div",
|
|
66
81
|
{
|
|
67
|
-
style:
|
|
82
|
+
style: {
|
|
83
|
+
...overlayTransitionStyles,
|
|
84
|
+
...overlayStyle
|
|
85
|
+
},
|
|
68
86
|
className: cx.cx(
|
|
69
87
|
styles_module.default["drawer-overlay"],
|
|
70
88
|
strategyCn,
|
|
89
|
+
placementCn,
|
|
71
90
|
overlay && styles_module.default["drawer-overlay-enabled"],
|
|
72
91
|
overlayClassName
|
|
73
92
|
),
|
|
74
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
75
|
-
|
|
93
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
94
|
+
"div",
|
|
76
95
|
{
|
|
77
|
-
as: "div",
|
|
78
|
-
enabled: overlay && lockScroll,
|
|
79
96
|
ref,
|
|
97
|
+
...drawer.getFloatingProps(),
|
|
80
98
|
"aria-labelledby": drawer.labelId,
|
|
81
99
|
"aria-describedby": drawer.descriptionId,
|
|
82
|
-
...drawer.getFloatingProps(),
|
|
83
100
|
"data-testid": dataTestId,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
101
|
+
className: styles_module.default["drawer-wrapper"],
|
|
102
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
103
|
+
react.FloatingFocusManager,
|
|
104
|
+
{
|
|
105
|
+
context: drawer.context,
|
|
106
|
+
disabled: disableAutoFocus,
|
|
107
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
108
|
+
"div",
|
|
109
|
+
{
|
|
110
|
+
className: cx.cx(styles_module.default["drawer"], className),
|
|
111
|
+
style: {
|
|
112
|
+
...innerTransitionStyles,
|
|
113
|
+
...style
|
|
114
|
+
},
|
|
115
|
+
children
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
}
|
|
119
|
+
)
|
|
87
120
|
}
|
|
88
|
-
)
|
|
121
|
+
)
|
|
89
122
|
}
|
|
90
|
-
) });
|
|
123
|
+
) }) });
|
|
91
124
|
}
|
|
92
125
|
return /* @__PURE__ */ jsxRuntime.jsx(state.DrawerContext.Provider, { value: drawer, children: content });
|
|
93
126
|
});
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var modules_efc4e723 = {"drawer-overlay":"
|
|
5
|
+
var modules_efc4e723 = {"drawer-overlay":"vt_ce_Drawer_drawerOverlay__923c77c9","drawer-overlay-enabled":"vt_ce_Drawer_drawerOverlayEnabled__923c77c9","drawer-overlay-strategy-fixed":"vt_ce_Drawer_drawerOverlayStrategyFixed__923c77c9","drawer-overlay-strategy-absolute":"vt_ce_Drawer_drawerOverlayStrategyAbsolute__923c77c9","drawer-overlay-placement-start":"vt_ce_Drawer_drawerOverlayPlacementStart__923c77c9","drawer":"vt_ce_Drawer_drawer__923c77c9","drawer-overlay-placement-end":"vt_ce_Drawer_drawerOverlayPlacementEnd__923c77c9","drawer-wrapper":"vt_ce_Drawer_drawerWrapper__923c77c9","drawer-start":"vt_ce_Drawer_drawerStart__923c77c9","drawer-end":"vt_ce_Drawer_drawerEnd__923c77c9","drawer-content":"vt_ce_Drawer_drawerContent__923c77c9","drawer-title-container":"vt_ce_Drawer_drawerTitleContainer__923c77c9","drawer-title":"vt_ce_Drawer_drawerTitle__923c77c9","drawer-title-actions":"vt_ce_Drawer_drawerTitleActions__923c77c9","drawer-typography":"vt_ce_Drawer_drawerTypography__923c77c9","drawer-actions":"vt_ce_Drawer_drawerActions__923c77c9"};
|
|
6
6
|
|
|
7
7
|
exports.default = modules_efc4e723;
|
|
@@ -27,6 +27,7 @@ function Menu({
|
|
|
27
27
|
matchAnchorWidth = false,
|
|
28
28
|
options,
|
|
29
29
|
dismissEnabled = true,
|
|
30
|
+
disableAutoFocus = false,
|
|
30
31
|
className,
|
|
31
32
|
...props
|
|
32
33
|
}) {
|
|
@@ -93,6 +94,7 @@ function Menu({
|
|
|
93
94
|
{
|
|
94
95
|
context,
|
|
95
96
|
modal: false,
|
|
97
|
+
disabled: disableAutoFocus,
|
|
96
98
|
order: ["reference", "content"],
|
|
97
99
|
children: /* @__PURE__ */ jsxRuntime.jsx(portal.PortalThemeRelay, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
98
100
|
"div",
|
package/dist/cjs/styles.css
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
.vt_ce_Tooltip_tooltipAnchor__4170edb1{display:inline}.vt_ce_Tooltip_tooltipBody__4170edb1{background-color:var(--vt-ce-theme-palette-background-primary,#fff);border-color:var(--vt-ce-theme-palette-background-secondary,#e0e8f0);border-radius:4px;border-style:solid;border-width:1px;color:var(--vt-ce-theme-palette-text-primary,#2a323c);font-family:var(--vt-ce-theme-typography-label-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-label-fontSize,14px);font-style:var(--vt-ce-theme-typography-label-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-label-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-label-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-label-lineHeight,17px);padding:4px 10px;text-transform:var(--vt-ce-theme-typography-label-textTransform,inherit);z-index:10}
|
|
14
14
|
.vt_ce_Typography_tTitle__56e154f0{font-family:var(--vt-ce-theme-typography-title-fontFamily,Dosis,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-title-fontSize,18px);font-style:var(--vt-ce-theme-typography-title-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-title-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-title-letterSpacing,.25px);line-height:var(--vt-ce-theme-typography-title-lineHeight,normal);text-transform:var(--vt-ce-theme-typography-title-textTransform,uppercase)}.vt_ce_Typography_tH1__56e154f0{font-family:var(--vt-ce-theme-typography-h1-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-h1-fontSize,24px);font-style:var(--vt-ce-theme-typography-h1-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-h1-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-h1-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-h1-lineHeight,34px);text-transform:var(--vt-ce-theme-typography-h1-textTransform,inherit)}.vt_ce_Typography_tH2__56e154f0{font-family:var(--vt-ce-theme-typography-h2-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-h2-fontSize,20px);font-style:var(--vt-ce-theme-typography-h2-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-h2-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-h2-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-h2-lineHeight,30px);text-transform:var(--vt-ce-theme-typography-h2-textTransform,inherit)}.vt_ce_Typography_tH3__56e154f0{font-family:var(--vt-ce-theme-typography-h3-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-h3-fontSize,18px);font-style:var(--vt-ce-theme-typography-h3-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-h3-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-h3-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-h3-lineHeight,26px);text-transform:var(--vt-ce-theme-typography-h3-textTransform,inherit)}.vt_ce_Typography_tH4__56e154f0{font-family:var(--vt-ce-theme-typography-h4-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-h4-fontSize,16px);font-style:var(--vt-ce-theme-typography-h4-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-h4-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-h4-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-h4-lineHeight,24px);text-transform:var(--vt-ce-theme-typography-h4-textTransform,inherit)}.vt_ce_Typography_tLabel__56e154f0{font-family:var(--vt-ce-theme-typography-label-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-label-fontSize,14px);font-style:var(--vt-ce-theme-typography-label-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-label-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-label-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-label-lineHeight,17px);text-transform:var(--vt-ce-theme-typography-label-textTransform,inherit)}.vt_ce_Typography_tParagraph1__56e154f0{font-family:var(--vt-ce-theme-typography-paragraph1-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-paragraph1-fontSize,16px);font-style:var(--vt-ce-theme-typography-paragraph1-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-paragraph1-fontWeight,400);letter-spacing:var(--vt-ce-theme-typography-paragraph1-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-paragraph1-lineHeight,24px);text-transform:var(--vt-ce-theme-typography-paragraph1-textTransform,inherit)}.vt_ce_Typography_tParagraph2__56e154f0{font-family:var(--vt-ce-theme-typography-paragraph2-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-paragraph2-fontSize,14px);font-style:var(--vt-ce-theme-typography-paragraph2-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-paragraph2-fontWeight,400);letter-spacing:var(--vt-ce-theme-typography-paragraph2-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-paragraph2-lineHeight,20px);text-transform:var(--vt-ce-theme-typography-paragraph2-textTransform,inherit)}.vt_ce_Typography_tParagraph3__56e154f0{font-family:var(--vt-ce-theme-typography-paragraph3-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-paragraph3-fontSize,12px);font-style:var(--vt-ce-theme-typography-paragraph3-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-paragraph3-fontWeight,400);letter-spacing:var(--vt-ce-theme-typography-paragraph3-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-paragraph3-lineHeight,18px);text-transform:var(--vt-ce-theme-typography-paragraph3-textTransform,inherit)}.vt_ce_Typography_tButton__56e154f0{font-family:var(--vt-ce-theme-typography-button-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-button-fontSize,14px);font-style:var(--vt-ce-theme-typography-button-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-button-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-button-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-button-lineHeight,20px);text-transform:var(--vt-ce-theme-typography-button-textTransform,inherit)}.vt_ce_Typography_tButtonSmall__56e154f0{font-family:var(--vt-ce-theme-typography-buttonSmall-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-buttonSmall-fontSize,12px);font-style:var(--vt-ce-theme-typography-buttonSmall-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-buttonSmall-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-buttonSmall-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-buttonSmall-lineHeight,18px);text-transform:var(--vt-ce-theme-typography-buttonSmall-textTransform,inherit)}.vt_ce_Typography_cPrimary__56e154f0{color:var(--vt-ce-theme-palette-text-primary,#2a323c)}.vt_ce_Typography_cSecondary__56e154f0{color:var(--vt-ce-theme-palette-text-secondary,#5c6269)}.vt_ce_Typography_cTertiary__56e154f0{color:var(--vt-ce-theme-palette-text-tertiary,#465364)}.vt_ce_Typography_cDisabled__56e154f0{color:var(--vt-ce-theme-palette-disabled-on,#7c848d)}.vt_ce_Typography_cInherit__56e154f0{color:inherit}
|
|
15
15
|
.vt_ce_styles_cssVarProvider__b6a03d8f{display:contents}
|
|
16
|
-
.
|
|
17
|
-
.
|
|
16
|
+
.vt_ce_Dialog_dialogOverlay__36db6625{background:rgba(0,0,0,.54);display:grid;place-items:center}.vt_ce_Dialog_dialog__36db6625{background-color:var(--vt-ce-theme-palette-background-primary,#fff);border:1px solid var(--vt-ce-theme-palette-disabled-on,#7c848d);border-radius:4px;box-shadow:0 4px 4px 0 rgba(0,0,0,.25);color:var(--vt-ce-theme-palette-text-primary,#2a323c);display:flex;flex-direction:column;margin:15px;max-height:calc(100% - 64px);max-width:calc(100% - 64px);padding:30px 0}.vt_ce_Dialog_dialog__36db6625:has(>.vt_ce_Dialog_dialogStart__36db6625:first-child){padding-block-start:0}.vt_ce_Dialog_dialog__36db6625:has(>.vt_ce_Dialog_dialogEnd__36db6625:last-child){padding-block-end:0}.vt_ce_Dialog_dialogStart__36db6625{display:block;flex:0 0 auto}.vt_ce_Dialog_dialogContent__36db6625{flex:1 1 auto;--webkit-overflow-scrolling:touch;overflow-y:auto;padding:0 30px}.vt_ce_Dialog_dialogEnd__36db6625{display:block;flex:0 0 auto}.vt_ce_Dialog_dialogTitle__36db6625{flex:0 0 auto;font-size:18px;line-height:24px;margin:30px 0 0;padding:0 30px}.vt_ce_Dialog_dialogTypography__36db6625{margin:15px 0}.vt_ce_Dialog_dialogActions__36db6625{align-items:center;display:flex;gap:10px;justify-content:flex-end;margin:15px 0 40px;padding:0 30px}
|
|
17
|
+
.vt_ce_Drawer_drawerOverlay__923c77c9{display:grid;inset:0;overflow:hidden;pointer-events:none}.vt_ce_Drawer_drawerOverlay__923c77c9>*{pointer-events:auto}.vt_ce_Drawer_drawerOverlayEnabled__923c77c9{background:rgba(0,0,0,.54);pointer-events:auto}.vt_ce_Drawer_drawerOverlayStrategyFixed__923c77c9{position:fixed}.vt_ce_Drawer_drawerOverlayStrategyAbsolute__923c77c9{position:absolute}.vt_ce_Drawer_drawerOverlayPlacementStart__923c77c9{place-items:stretch start}.vt_ce_Drawer_drawerOverlayPlacementStart__923c77c9 .vt_ce_Drawer_drawer__923c77c9{border-inline-end:1px solid var(--vt-ce-theme-palette-disabled-on,#7c848d)}.vt_ce_Drawer_drawerOverlayPlacementEnd__923c77c9{place-items:stretch end}.vt_ce_Drawer_drawerOverlayPlacementEnd__923c77c9 .vt_ce_Drawer_drawer__923c77c9{border-inline-start:1px solid var(--vt-ce-theme-palette-disabled-on,#7c848d)}.vt_ce_Drawer_drawerWrapper__923c77c9{display:flex;max-width:calc(100% - 64px)}.vt_ce_Drawer_drawer__923c77c9{background-color:var(--vt-ce-theme-palette-background-primary,#fff);box-shadow:0 0 14px 0 rgba(0,0,0,.25);color:var(--vt-ce-theme-palette-text-primary,#2a323c);display:flex;flex-direction:column;padding:20px 0}.vt_ce_Drawer_drawer__923c77c9:has(>.vt_ce_Drawer_drawerStart__923c77c9:first-child){padding-block-start:0}.vt_ce_Drawer_drawer__923c77c9:has(>.vt_ce_Drawer_drawerEnd__923c77c9:last-child){padding-block-end:0}.vt_ce_Drawer_drawerStart__923c77c9{display:block;flex:0 0 auto}.vt_ce_Drawer_drawerContent__923c77c9{flex:1 1 auto;--webkit-overflow-scrolling:touch;overflow-y:auto;padding:0 20px}.vt_ce_Drawer_drawerEnd__923c77c9{display:block;flex:0 0 auto}.vt_ce_Drawer_drawerTitleContainer__923c77c9{align-items:baseline;background-color:var(--vt-ce-theme-palette-background-primary,#fff);color:var(--vt-ce-theme-palette-text-primary,#2a323c);display:flex;justify-content:space-between}.vt_ce_Drawer_drawerTitleContainer__923c77c9[data-container=bar]{background-color:var(--vt-ce-drawer-palette-surface);color:var(--vt-ce-drawer-palette-on)}.vt_ce_Drawer_drawerTitle__923c77c9{flex:1 0 auto;margin:20px 0;padding:0 20px}.vt_ce_Drawer_drawerTitleActions__923c77c9{display:flex;flex:0 0 auto;padding:0 20px 0 0}.vt_ce_Drawer_drawerTypography__923c77c9{margin:20px 0}.vt_ce_Drawer_drawerActions__923c77c9{align-items:center;display:flex;flex:0 0 auto;gap:10px;justify-content:flex-end;margin:20px 0;padding:0 20px}
|
|
18
18
|
.vt_ce_Icon_icon__5881e2e1{display:inline-block;height:var(--vt-ce-icon-size,18px);width:var(--vt-ce-icon-size,18px)}.vt_ce_Icon_icon__5881e2e1 svg{height:var(--vt-ce-icon-size,18px);vertical-align:baseline;width:var(--vt-ce-icon-size,18px)}.vt_ce_Icon_icon__5881e2e1[data-size=large],.vt_ce_Icon_icon__5881e2e1[data-size=large] svg{height:24px;width:24px}.vt_ce_Icon_icon__5881e2e1[data-size=medium],.vt_ce_Icon_icon__5881e2e1[data-size=medium] svg{height:18px;width:18px}.vt_ce_Icon_icon__5881e2e1[data-size=small],.vt_ce_Icon_icon__5881e2e1[data-size=small] svg{height:14px;width:14px}.vt_ce_Icon_icon__5881e2e1[data-size=inherit],.vt_ce_Icon_icon__5881e2e1[data-size=inherit] svg{font-size:1em;height:1em;width:1em}
|
|
19
19
|
.vt_ce_Menu_menu__f5f59292{border:1px solid var(--vt-ce-theme-palette-disabled-on,#7c848d);border-radius:0 0 4px 4px;display:block;outline:0;padding-bottom:5px;padding-top:5px}.vt_ce_Menu_menu__f5f59292,.vt_ce_Menu_option__f5f59292{background-color:var(--vt-ce-theme-palette-background-primary,#fff)}.vt_ce_Menu_option__f5f59292{align-items:center;border:none;color:var(--vt-ce-theme-palette-text-primary,#2a323c);cursor:pointer;display:flex;font-family:var(--vt-ce-theme-typography-paragraph2-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-paragraph2-fontSize,14px);font-style:var(--vt-ce-theme-typography-paragraph2-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-paragraph2-fontWeight,400);letter-spacing:var(--vt-ce-theme-typography-paragraph2-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-paragraph2-lineHeight,20px);padding:5px 10px;text-transform:var(--vt-ce-theme-typography-paragraph2-textTransform,inherit);width:100%}.vt_ce_Menu_option__f5f59292:focus{background-color:var(--vt-ce-theme-palette-table-hover-surface,#eaf1fa);color:var(--vt-ce-theme-palette-table-hover-on,#000);outline:none}.vt_ce_Menu_optionIcon__f5f59292{align-items:center;display:inline-flex;justify-content:center;margin-inline-end:10px;--vt-ce-icon-size:14px}.vt_ce_Menu_optionLabel__f5f59292{text-align:start}
|
|
20
20
|
.vt_ce_Select_select__cb05e024{cursor:pointer;display:inline-flex;flex-direction:column;gap:3px}.vt_ce_Select_label__cb05e024{color:var(--vt-ce-theme-palette-text-secondary,#5c6269);font-family:var(--vt-ce-theme-typography-label-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-label-fontSize,14px);font-style:var(--vt-ce-theme-typography-label-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-label-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-label-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-label-lineHeight,17px);text-transform:var(--vt-ce-theme-typography-label-textTransform,inherit)}.vt_ce_Select_innerInputContainer__cb05e024{align-items:center;align-self:stretch;background:var(--vt-ce-theme-palette-background-primary,#fff);border-radius:4px;color:var(--vt-ce-theme-palette-text-primary,#2a323c);display:flex;gap:10px;margin-bottom:1px;margin-top:1px;outline:var(--vt-ce-theme-palette-text-secondary,#5c6269) solid 1px;padding:0 8px}.vt_ce_Select_innerInputContainer__cb05e024:focus-within,.vt_ce_Select_innerInputContainer__cb05e024:hover,.vt_ce_Select_innerInputContainer__cb05e024[data-focused=true]{outline-color:var(--vt-ce-theme-palette-action-primary-hover-surface,#335b89);outline-width:2px}.vt_ce_Select_innerInputContainer__cb05e024[data-disabled=true]{background-color:var(--vt-ce-theme-palette-action-primary-disabled-surface,#fafafa);color:var(--vt-ce-theme-palette-action-primary-disabled-on,#7c848d);outline-color:var(--vt-ce-theme-palette-background-secondary,#e0e8f0)}.vt_ce_Select_innerInputContainer__cb05e024[data-disabled=true]:focus-within,.vt_ce_Select_innerInputContainer__cb05e024[data-disabled=true]:hover{outline-color:var(--vt-ce-theme-palette-background-secondary,#e0e8f0);outline-width:1px}.vt_ce_Select_innerInputContainer__cb05e024[data-error=true]{outline-color:var(--vt-ce-theme-palette-indicator-error-base-surface,#eb0000)}.vt_ce_Select_innerInput__cb05e024{background:none;border:none;color:inherit;flex-grow:1;font-family:var(--vt-ce-theme-typography-paragraph2-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-paragraph2-fontSize,14px);font-style:var(--vt-ce-theme-typography-paragraph2-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-paragraph2-fontWeight,400);letter-spacing:var(--vt-ce-theme-typography-paragraph2-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-paragraph2-lineHeight,20px);outline:none;padding:8px 0;text-transform:var(--vt-ce-theme-typography-paragraph2-textTransform,inherit)}.vt_ce_Select_innerInput__cb05e024::-moz-placeholder{color:var(--vt-ce-theme-palette-action-primary-disabled-on,#7c848d)}.vt_ce_Select_innerInput__cb05e024::placeholder{color:var(--vt-ce-theme-palette-action-primary-disabled-on,#7c848d)}.vt_ce_Select_innerInput__cb05e024[data-selected=true]::-moz-placeholder{color:inherit}.vt_ce_Select_innerInput__cb05e024[data-selected=true]::placeholder{color:inherit}.vt_ce_Select_selectIcon__cb05e024{align-items:center;display:inline-flex;flex-shrink:0;justify-content:center;padding:8px 0;--vt-ce-icon-size:18px}.vt_ce_Select_helpLabel__cb05e024{color:var(--vt-ce-theme-palette-text-secondary,#5c6269)}.vt_ce_Select_errorLabel__cb05e024,.vt_ce_Select_helpLabel__cb05e024{font-family:var(--vt-ce-theme-typography-paragraph3-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-paragraph3-fontSize,12px);font-style:var(--vt-ce-theme-typography-paragraph3-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-paragraph3-fontWeight,400);letter-spacing:var(--vt-ce-theme-typography-paragraph3-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-paragraph3-lineHeight,18px);text-transform:var(--vt-ce-theme-typography-paragraph3-textTransform,inherit)}.vt_ce_Select_errorLabel__cb05e024{align-items:center;color:var(--vt-ce-theme-palette-indicator-error-base-surface,#eb0000);display:flex;gap:3px}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use client';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { useMergeRefs, FloatingPortal, FloatingOverlay, FloatingFocusManager } from '@floating-ui/react';
|
|
5
|
+
import { useTransitionStyles, useMergeRefs, FloatingPortal, FloatingOverlay, FloatingFocusManager } from '@floating-ui/react';
|
|
6
6
|
import modules_efc4e723 from './styles.module.scss.js';
|
|
7
7
|
import { useDialog, DialogContext, useDialogContext } from './state.js';
|
|
8
8
|
import 'color2k';
|
|
@@ -25,32 +25,58 @@ const Dialog = React.forwardRef(function Dialog2({
|
|
|
25
25
|
overlayStyle,
|
|
26
26
|
overlayClassName,
|
|
27
27
|
lockScroll = true,
|
|
28
|
+
disableAutoFocus = false,
|
|
28
29
|
"data-testid": dataTestId,
|
|
29
30
|
...options
|
|
30
31
|
}, propRef) {
|
|
31
32
|
const dialog = useDialog(options);
|
|
33
|
+
const { isMounted: overlayIsMounted, styles: overlayTransitionStyles } = useTransitionStyles(dialog.context, {
|
|
34
|
+
duration: 225,
|
|
35
|
+
initial: {
|
|
36
|
+
opacity: 0
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
const { isMounted: innerIsMounted, styles: innerTransitionStyles } = useTransitionStyles(dialog.context, {
|
|
40
|
+
duration: 225,
|
|
41
|
+
initial: {
|
|
42
|
+
transform: `scale(95%)`
|
|
43
|
+
}
|
|
44
|
+
});
|
|
32
45
|
const ref = useMergeRefs([dialog.context.refs.setFloating, propRef]);
|
|
33
46
|
let content = null;
|
|
34
|
-
if (
|
|
47
|
+
if (overlayIsMounted || innerIsMounted) {
|
|
35
48
|
content = /* @__PURE__ */ jsx(FloatingPortal, { root: portalEl, children: /* @__PURE__ */ jsx(
|
|
36
49
|
FloatingOverlay,
|
|
37
50
|
{
|
|
38
|
-
style:
|
|
51
|
+
style: {
|
|
52
|
+
...overlayTransitionStyles,
|
|
53
|
+
...overlayStyle
|
|
54
|
+
},
|
|
39
55
|
className: cx(modules_efc4e723["dialog-overlay"], overlayClassName),
|
|
40
56
|
lockScroll,
|
|
41
|
-
children: /* @__PURE__ */ jsx(
|
|
42
|
-
|
|
57
|
+
children: /* @__PURE__ */ jsx(
|
|
58
|
+
FloatingFocusManager,
|
|
43
59
|
{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
60
|
+
context: dialog.context,
|
|
61
|
+
disabled: disableAutoFocus,
|
|
62
|
+
children: /* @__PURE__ */ jsx(PortalThemeRelay, { children: /* @__PURE__ */ jsx(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
ref,
|
|
66
|
+
"aria-labelledby": dialog.labelId,
|
|
67
|
+
"aria-describedby": dialog.descriptionId,
|
|
68
|
+
...dialog.getFloatingProps(),
|
|
69
|
+
"data-testid": dataTestId,
|
|
70
|
+
style: {
|
|
71
|
+
...innerTransitionStyles,
|
|
72
|
+
...style
|
|
73
|
+
},
|
|
74
|
+
className: cx(modules_efc4e723["dialog"], className),
|
|
75
|
+
children
|
|
76
|
+
}
|
|
77
|
+
) })
|
|
52
78
|
}
|
|
53
|
-
)
|
|
79
|
+
)
|
|
54
80
|
}
|
|
55
81
|
) });
|
|
56
82
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var modules_efc4e723 = {"dialog-overlay":"
|
|
1
|
+
var modules_efc4e723 = {"dialog-overlay":"vt_ce_Dialog_dialogOverlay__36db6625","dialog":"vt_ce_Dialog_dialog__36db6625","dialog-start":"vt_ce_Dialog_dialogStart__36db6625","dialog-end":"vt_ce_Dialog_dialogEnd__36db6625","dialog-content":"vt_ce_Dialog_dialogContent__36db6625","dialog-title":"vt_ce_Dialog_dialogTitle__36db6625","dialog-typography":"vt_ce_Dialog_dialogTypography__36db6625","dialog-actions":"vt_ce_Dialog_dialogActions__36db6625"};
|
|
2
2
|
|
|
3
3
|
export { modules_efc4e723 as default };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use client';
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { useMergeRefs, FloatingPortal, FloatingFocusManager } from '@floating-ui/react';
|
|
5
|
+
import { useTransitionStyles, useMergeRefs, FloatingPortal, FloatingFocusManager } from '@floating-ui/react';
|
|
6
6
|
import { RemoveScroll } from 'react-remove-scroll';
|
|
7
7
|
import modules_efc4e723 from './styles.module.scss.js';
|
|
8
8
|
import { useDrawer, DrawerContext, useDrawerContext } from './state.js';
|
|
@@ -18,6 +18,7 @@ import Typography from '../Typography/index.js';
|
|
|
18
18
|
import IconButton from '../IconButton/index.js';
|
|
19
19
|
|
|
20
20
|
const Drawer = React.forwardRef(function Drawer2({
|
|
21
|
+
placement = "end",
|
|
21
22
|
children,
|
|
22
23
|
portalEl,
|
|
23
24
|
style,
|
|
@@ -27,6 +28,7 @@ const Drawer = React.forwardRef(function Drawer2({
|
|
|
27
28
|
overlayStyle,
|
|
28
29
|
overlayClassName,
|
|
29
30
|
lockScroll = true,
|
|
31
|
+
disableAutoFocus = false,
|
|
30
32
|
"data-testid": dataTestId,
|
|
31
33
|
...options
|
|
32
34
|
}, propRef) {
|
|
@@ -34,37 +36,68 @@ const Drawer = React.forwardRef(function Drawer2({
|
|
|
34
36
|
...options,
|
|
35
37
|
dismissEnabled: overlay
|
|
36
38
|
});
|
|
39
|
+
const { isMounted: overlayIsMounted, styles: overlayTransitionStyles } = useTransitionStyles(drawer.context, {
|
|
40
|
+
duration: 225,
|
|
41
|
+
initial: {
|
|
42
|
+
opacity: 0
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
const { isMounted: innerIsMounted, styles: innerTransitionStyles } = useTransitionStyles(drawer.context, {
|
|
46
|
+
duration: 225,
|
|
47
|
+
initial: {
|
|
48
|
+
transform: `translateX(${placement === "start" ? "-66px" : "66px"})`
|
|
49
|
+
}
|
|
50
|
+
});
|
|
37
51
|
const ref = useMergeRefs([drawer.context.refs.setFloating, propRef]);
|
|
38
52
|
const strategyCn = modules_efc4e723[`drawer-overlay-strategy-${strategy}`];
|
|
53
|
+
const placementCn = modules_efc4e723[`drawer-overlay-placement-${placement}`];
|
|
39
54
|
let content = null;
|
|
40
|
-
if (
|
|
41
|
-
content = /* @__PURE__ */ jsx(FloatingPortal, { root: portalEl, children: /* @__PURE__ */ jsx(
|
|
55
|
+
if (overlayIsMounted || innerIsMounted) {
|
|
56
|
+
content = /* @__PURE__ */ jsx(FloatingPortal, { root: portalEl, children: /* @__PURE__ */ jsx(RemoveScroll, { enabled: overlay && lockScroll, children: /* @__PURE__ */ jsx(
|
|
42
57
|
"div",
|
|
43
58
|
{
|
|
44
|
-
style:
|
|
59
|
+
style: {
|
|
60
|
+
...overlayTransitionStyles,
|
|
61
|
+
...overlayStyle
|
|
62
|
+
},
|
|
45
63
|
className: cx(
|
|
46
64
|
modules_efc4e723["drawer-overlay"],
|
|
47
65
|
strategyCn,
|
|
66
|
+
placementCn,
|
|
48
67
|
overlay && modules_efc4e723["drawer-overlay-enabled"],
|
|
49
68
|
overlayClassName
|
|
50
69
|
),
|
|
51
|
-
children: /* @__PURE__ */ jsx(
|
|
52
|
-
|
|
70
|
+
children: /* @__PURE__ */ jsx(
|
|
71
|
+
"div",
|
|
53
72
|
{
|
|
54
|
-
as: "div",
|
|
55
|
-
enabled: overlay && lockScroll,
|
|
56
73
|
ref,
|
|
74
|
+
...drawer.getFloatingProps(),
|
|
57
75
|
"aria-labelledby": drawer.labelId,
|
|
58
76
|
"aria-describedby": drawer.descriptionId,
|
|
59
|
-
...drawer.getFloatingProps(),
|
|
60
77
|
"data-testid": dataTestId,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
78
|
+
className: modules_efc4e723["drawer-wrapper"],
|
|
79
|
+
children: /* @__PURE__ */ jsx(
|
|
80
|
+
FloatingFocusManager,
|
|
81
|
+
{
|
|
82
|
+
context: drawer.context,
|
|
83
|
+
disabled: disableAutoFocus,
|
|
84
|
+
children: /* @__PURE__ */ jsx(
|
|
85
|
+
"div",
|
|
86
|
+
{
|
|
87
|
+
className: cx(modules_efc4e723["drawer"], className),
|
|
88
|
+
style: {
|
|
89
|
+
...innerTransitionStyles,
|
|
90
|
+
...style
|
|
91
|
+
},
|
|
92
|
+
children
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
}
|
|
96
|
+
)
|
|
64
97
|
}
|
|
65
|
-
)
|
|
98
|
+
)
|
|
66
99
|
}
|
|
67
|
-
) });
|
|
100
|
+
) }) });
|
|
68
101
|
}
|
|
69
102
|
return /* @__PURE__ */ jsx(DrawerContext.Provider, { value: drawer, children: content });
|
|
70
103
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var modules_efc4e723 = {"drawer-overlay":"
|
|
1
|
+
var modules_efc4e723 = {"drawer-overlay":"vt_ce_Drawer_drawerOverlay__923c77c9","drawer-overlay-enabled":"vt_ce_Drawer_drawerOverlayEnabled__923c77c9","drawer-overlay-strategy-fixed":"vt_ce_Drawer_drawerOverlayStrategyFixed__923c77c9","drawer-overlay-strategy-absolute":"vt_ce_Drawer_drawerOverlayStrategyAbsolute__923c77c9","drawer-overlay-placement-start":"vt_ce_Drawer_drawerOverlayPlacementStart__923c77c9","drawer":"vt_ce_Drawer_drawer__923c77c9","drawer-overlay-placement-end":"vt_ce_Drawer_drawerOverlayPlacementEnd__923c77c9","drawer-wrapper":"vt_ce_Drawer_drawerWrapper__923c77c9","drawer-start":"vt_ce_Drawer_drawerStart__923c77c9","drawer-end":"vt_ce_Drawer_drawerEnd__923c77c9","drawer-content":"vt_ce_Drawer_drawerContent__923c77c9","drawer-title-container":"vt_ce_Drawer_drawerTitleContainer__923c77c9","drawer-title":"vt_ce_Drawer_drawerTitle__923c77c9","drawer-title-actions":"vt_ce_Drawer_drawerTitleActions__923c77c9","drawer-typography":"vt_ce_Drawer_drawerTypography__923c77c9","drawer-actions":"vt_ce_Drawer_drawerActions__923c77c9"};
|
|
2
2
|
|
|
3
3
|
export { modules_efc4e723 as default };
|
|
@@ -23,6 +23,7 @@ function Menu({
|
|
|
23
23
|
matchAnchorWidth = false,
|
|
24
24
|
options,
|
|
25
25
|
dismissEnabled = true,
|
|
26
|
+
disableAutoFocus = false,
|
|
26
27
|
className,
|
|
27
28
|
...props
|
|
28
29
|
}) {
|
|
@@ -89,6 +90,7 @@ function Menu({
|
|
|
89
90
|
{
|
|
90
91
|
context,
|
|
91
92
|
modal: false,
|
|
93
|
+
disabled: disableAutoFocus,
|
|
92
94
|
order: ["reference", "content"],
|
|
93
95
|
children: /* @__PURE__ */ jsx(PortalThemeRelay, { children: /* @__PURE__ */ jsx(
|
|
94
96
|
"div",
|
package/dist/esm/styles.css
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
.vt_ce_Tooltip_tooltipAnchor__4170edb1{display:inline}.vt_ce_Tooltip_tooltipBody__4170edb1{background-color:var(--vt-ce-theme-palette-background-primary,#fff);border-color:var(--vt-ce-theme-palette-background-secondary,#e0e8f0);border-radius:4px;border-style:solid;border-width:1px;color:var(--vt-ce-theme-palette-text-primary,#2a323c);font-family:var(--vt-ce-theme-typography-label-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-label-fontSize,14px);font-style:var(--vt-ce-theme-typography-label-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-label-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-label-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-label-lineHeight,17px);padding:4px 10px;text-transform:var(--vt-ce-theme-typography-label-textTransform,inherit);z-index:10}
|
|
14
14
|
.vt_ce_Typography_tTitle__56e154f0{font-family:var(--vt-ce-theme-typography-title-fontFamily,Dosis,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-title-fontSize,18px);font-style:var(--vt-ce-theme-typography-title-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-title-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-title-letterSpacing,.25px);line-height:var(--vt-ce-theme-typography-title-lineHeight,normal);text-transform:var(--vt-ce-theme-typography-title-textTransform,uppercase)}.vt_ce_Typography_tH1__56e154f0{font-family:var(--vt-ce-theme-typography-h1-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-h1-fontSize,24px);font-style:var(--vt-ce-theme-typography-h1-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-h1-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-h1-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-h1-lineHeight,34px);text-transform:var(--vt-ce-theme-typography-h1-textTransform,inherit)}.vt_ce_Typography_tH2__56e154f0{font-family:var(--vt-ce-theme-typography-h2-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-h2-fontSize,20px);font-style:var(--vt-ce-theme-typography-h2-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-h2-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-h2-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-h2-lineHeight,30px);text-transform:var(--vt-ce-theme-typography-h2-textTransform,inherit)}.vt_ce_Typography_tH3__56e154f0{font-family:var(--vt-ce-theme-typography-h3-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-h3-fontSize,18px);font-style:var(--vt-ce-theme-typography-h3-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-h3-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-h3-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-h3-lineHeight,26px);text-transform:var(--vt-ce-theme-typography-h3-textTransform,inherit)}.vt_ce_Typography_tH4__56e154f0{font-family:var(--vt-ce-theme-typography-h4-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-h4-fontSize,16px);font-style:var(--vt-ce-theme-typography-h4-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-h4-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-h4-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-h4-lineHeight,24px);text-transform:var(--vt-ce-theme-typography-h4-textTransform,inherit)}.vt_ce_Typography_tLabel__56e154f0{font-family:var(--vt-ce-theme-typography-label-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-label-fontSize,14px);font-style:var(--vt-ce-theme-typography-label-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-label-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-label-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-label-lineHeight,17px);text-transform:var(--vt-ce-theme-typography-label-textTransform,inherit)}.vt_ce_Typography_tParagraph1__56e154f0{font-family:var(--vt-ce-theme-typography-paragraph1-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-paragraph1-fontSize,16px);font-style:var(--vt-ce-theme-typography-paragraph1-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-paragraph1-fontWeight,400);letter-spacing:var(--vt-ce-theme-typography-paragraph1-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-paragraph1-lineHeight,24px);text-transform:var(--vt-ce-theme-typography-paragraph1-textTransform,inherit)}.vt_ce_Typography_tParagraph2__56e154f0{font-family:var(--vt-ce-theme-typography-paragraph2-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-paragraph2-fontSize,14px);font-style:var(--vt-ce-theme-typography-paragraph2-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-paragraph2-fontWeight,400);letter-spacing:var(--vt-ce-theme-typography-paragraph2-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-paragraph2-lineHeight,20px);text-transform:var(--vt-ce-theme-typography-paragraph2-textTransform,inherit)}.vt_ce_Typography_tParagraph3__56e154f0{font-family:var(--vt-ce-theme-typography-paragraph3-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-paragraph3-fontSize,12px);font-style:var(--vt-ce-theme-typography-paragraph3-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-paragraph3-fontWeight,400);letter-spacing:var(--vt-ce-theme-typography-paragraph3-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-paragraph3-lineHeight,18px);text-transform:var(--vt-ce-theme-typography-paragraph3-textTransform,inherit)}.vt_ce_Typography_tButton__56e154f0{font-family:var(--vt-ce-theme-typography-button-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-button-fontSize,14px);font-style:var(--vt-ce-theme-typography-button-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-button-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-button-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-button-lineHeight,20px);text-transform:var(--vt-ce-theme-typography-button-textTransform,inherit)}.vt_ce_Typography_tButtonSmall__56e154f0{font-family:var(--vt-ce-theme-typography-buttonSmall-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-buttonSmall-fontSize,12px);font-style:var(--vt-ce-theme-typography-buttonSmall-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-buttonSmall-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-buttonSmall-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-buttonSmall-lineHeight,18px);text-transform:var(--vt-ce-theme-typography-buttonSmall-textTransform,inherit)}.vt_ce_Typography_cPrimary__56e154f0{color:var(--vt-ce-theme-palette-text-primary,#2a323c)}.vt_ce_Typography_cSecondary__56e154f0{color:var(--vt-ce-theme-palette-text-secondary,#5c6269)}.vt_ce_Typography_cTertiary__56e154f0{color:var(--vt-ce-theme-palette-text-tertiary,#465364)}.vt_ce_Typography_cDisabled__56e154f0{color:var(--vt-ce-theme-palette-disabled-on,#7c848d)}.vt_ce_Typography_cInherit__56e154f0{color:inherit}
|
|
15
15
|
.vt_ce_styles_cssVarProvider__b6a03d8f{display:contents}
|
|
16
|
-
.
|
|
17
|
-
.
|
|
16
|
+
.vt_ce_Dialog_dialogOverlay__36db6625{background:rgba(0,0,0,.54);display:grid;place-items:center}.vt_ce_Dialog_dialog__36db6625{background-color:var(--vt-ce-theme-palette-background-primary,#fff);border:1px solid var(--vt-ce-theme-palette-disabled-on,#7c848d);border-radius:4px;box-shadow:0 4px 4px 0 rgba(0,0,0,.25);color:var(--vt-ce-theme-palette-text-primary,#2a323c);display:flex;flex-direction:column;margin:15px;max-height:calc(100% - 64px);max-width:calc(100% - 64px);padding:30px 0}.vt_ce_Dialog_dialog__36db6625:has(>.vt_ce_Dialog_dialogStart__36db6625:first-child){padding-block-start:0}.vt_ce_Dialog_dialog__36db6625:has(>.vt_ce_Dialog_dialogEnd__36db6625:last-child){padding-block-end:0}.vt_ce_Dialog_dialogStart__36db6625{display:block;flex:0 0 auto}.vt_ce_Dialog_dialogContent__36db6625{flex:1 1 auto;--webkit-overflow-scrolling:touch;overflow-y:auto;padding:0 30px}.vt_ce_Dialog_dialogEnd__36db6625{display:block;flex:0 0 auto}.vt_ce_Dialog_dialogTitle__36db6625{flex:0 0 auto;font-size:18px;line-height:24px;margin:30px 0 0;padding:0 30px}.vt_ce_Dialog_dialogTypography__36db6625{margin:15px 0}.vt_ce_Dialog_dialogActions__36db6625{align-items:center;display:flex;gap:10px;justify-content:flex-end;margin:15px 0 40px;padding:0 30px}
|
|
17
|
+
.vt_ce_Drawer_drawerOverlay__923c77c9{display:grid;inset:0;overflow:hidden;pointer-events:none}.vt_ce_Drawer_drawerOverlay__923c77c9>*{pointer-events:auto}.vt_ce_Drawer_drawerOverlayEnabled__923c77c9{background:rgba(0,0,0,.54);pointer-events:auto}.vt_ce_Drawer_drawerOverlayStrategyFixed__923c77c9{position:fixed}.vt_ce_Drawer_drawerOverlayStrategyAbsolute__923c77c9{position:absolute}.vt_ce_Drawer_drawerOverlayPlacementStart__923c77c9{place-items:stretch start}.vt_ce_Drawer_drawerOverlayPlacementStart__923c77c9 .vt_ce_Drawer_drawer__923c77c9{border-inline-end:1px solid var(--vt-ce-theme-palette-disabled-on,#7c848d)}.vt_ce_Drawer_drawerOverlayPlacementEnd__923c77c9{place-items:stretch end}.vt_ce_Drawer_drawerOverlayPlacementEnd__923c77c9 .vt_ce_Drawer_drawer__923c77c9{border-inline-start:1px solid var(--vt-ce-theme-palette-disabled-on,#7c848d)}.vt_ce_Drawer_drawerWrapper__923c77c9{display:flex;max-width:calc(100% - 64px)}.vt_ce_Drawer_drawer__923c77c9{background-color:var(--vt-ce-theme-palette-background-primary,#fff);box-shadow:0 0 14px 0 rgba(0,0,0,.25);color:var(--vt-ce-theme-palette-text-primary,#2a323c);display:flex;flex-direction:column;padding:20px 0}.vt_ce_Drawer_drawer__923c77c9:has(>.vt_ce_Drawer_drawerStart__923c77c9:first-child){padding-block-start:0}.vt_ce_Drawer_drawer__923c77c9:has(>.vt_ce_Drawer_drawerEnd__923c77c9:last-child){padding-block-end:0}.vt_ce_Drawer_drawerStart__923c77c9{display:block;flex:0 0 auto}.vt_ce_Drawer_drawerContent__923c77c9{flex:1 1 auto;--webkit-overflow-scrolling:touch;overflow-y:auto;padding:0 20px}.vt_ce_Drawer_drawerEnd__923c77c9{display:block;flex:0 0 auto}.vt_ce_Drawer_drawerTitleContainer__923c77c9{align-items:baseline;background-color:var(--vt-ce-theme-palette-background-primary,#fff);color:var(--vt-ce-theme-palette-text-primary,#2a323c);display:flex;justify-content:space-between}.vt_ce_Drawer_drawerTitleContainer__923c77c9[data-container=bar]{background-color:var(--vt-ce-drawer-palette-surface);color:var(--vt-ce-drawer-palette-on)}.vt_ce_Drawer_drawerTitle__923c77c9{flex:1 0 auto;margin:20px 0;padding:0 20px}.vt_ce_Drawer_drawerTitleActions__923c77c9{display:flex;flex:0 0 auto;padding:0 20px 0 0}.vt_ce_Drawer_drawerTypography__923c77c9{margin:20px 0}.vt_ce_Drawer_drawerActions__923c77c9{align-items:center;display:flex;flex:0 0 auto;gap:10px;justify-content:flex-end;margin:20px 0;padding:0 20px}
|
|
18
18
|
.vt_ce_Icon_icon__5881e2e1{display:inline-block;height:var(--vt-ce-icon-size,18px);width:var(--vt-ce-icon-size,18px)}.vt_ce_Icon_icon__5881e2e1 svg{height:var(--vt-ce-icon-size,18px);vertical-align:baseline;width:var(--vt-ce-icon-size,18px)}.vt_ce_Icon_icon__5881e2e1[data-size=large],.vt_ce_Icon_icon__5881e2e1[data-size=large] svg{height:24px;width:24px}.vt_ce_Icon_icon__5881e2e1[data-size=medium],.vt_ce_Icon_icon__5881e2e1[data-size=medium] svg{height:18px;width:18px}.vt_ce_Icon_icon__5881e2e1[data-size=small],.vt_ce_Icon_icon__5881e2e1[data-size=small] svg{height:14px;width:14px}.vt_ce_Icon_icon__5881e2e1[data-size=inherit],.vt_ce_Icon_icon__5881e2e1[data-size=inherit] svg{font-size:1em;height:1em;width:1em}
|
|
19
19
|
.vt_ce_Menu_menu__f5f59292{border:1px solid var(--vt-ce-theme-palette-disabled-on,#7c848d);border-radius:0 0 4px 4px;display:block;outline:0;padding-bottom:5px;padding-top:5px}.vt_ce_Menu_menu__f5f59292,.vt_ce_Menu_option__f5f59292{background-color:var(--vt-ce-theme-palette-background-primary,#fff)}.vt_ce_Menu_option__f5f59292{align-items:center;border:none;color:var(--vt-ce-theme-palette-text-primary,#2a323c);cursor:pointer;display:flex;font-family:var(--vt-ce-theme-typography-paragraph2-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-paragraph2-fontSize,14px);font-style:var(--vt-ce-theme-typography-paragraph2-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-paragraph2-fontWeight,400);letter-spacing:var(--vt-ce-theme-typography-paragraph2-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-paragraph2-lineHeight,20px);padding:5px 10px;text-transform:var(--vt-ce-theme-typography-paragraph2-textTransform,inherit);width:100%}.vt_ce_Menu_option__f5f59292:focus{background-color:var(--vt-ce-theme-palette-table-hover-surface,#eaf1fa);color:var(--vt-ce-theme-palette-table-hover-on,#000);outline:none}.vt_ce_Menu_optionIcon__f5f59292{align-items:center;display:inline-flex;justify-content:center;margin-inline-end:10px;--vt-ce-icon-size:14px}.vt_ce_Menu_optionLabel__f5f59292{text-align:start}
|
|
20
20
|
.vt_ce_Select_select__cb05e024{cursor:pointer;display:inline-flex;flex-direction:column;gap:3px}.vt_ce_Select_label__cb05e024{color:var(--vt-ce-theme-palette-text-secondary,#5c6269);font-family:var(--vt-ce-theme-typography-label-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-label-fontSize,14px);font-style:var(--vt-ce-theme-typography-label-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-label-fontWeight,600);letter-spacing:var(--vt-ce-theme-typography-label-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-label-lineHeight,17px);text-transform:var(--vt-ce-theme-typography-label-textTransform,inherit)}.vt_ce_Select_innerInputContainer__cb05e024{align-items:center;align-self:stretch;background:var(--vt-ce-theme-palette-background-primary,#fff);border-radius:4px;color:var(--vt-ce-theme-palette-text-primary,#2a323c);display:flex;gap:10px;margin-bottom:1px;margin-top:1px;outline:var(--vt-ce-theme-palette-text-secondary,#5c6269) solid 1px;padding:0 8px}.vt_ce_Select_innerInputContainer__cb05e024:focus-within,.vt_ce_Select_innerInputContainer__cb05e024:hover,.vt_ce_Select_innerInputContainer__cb05e024[data-focused=true]{outline-color:var(--vt-ce-theme-palette-action-primary-hover-surface,#335b89);outline-width:2px}.vt_ce_Select_innerInputContainer__cb05e024[data-disabled=true]{background-color:var(--vt-ce-theme-palette-action-primary-disabled-surface,#fafafa);color:var(--vt-ce-theme-palette-action-primary-disabled-on,#7c848d);outline-color:var(--vt-ce-theme-palette-background-secondary,#e0e8f0)}.vt_ce_Select_innerInputContainer__cb05e024[data-disabled=true]:focus-within,.vt_ce_Select_innerInputContainer__cb05e024[data-disabled=true]:hover{outline-color:var(--vt-ce-theme-palette-background-secondary,#e0e8f0);outline-width:1px}.vt_ce_Select_innerInputContainer__cb05e024[data-error=true]{outline-color:var(--vt-ce-theme-palette-indicator-error-base-surface,#eb0000)}.vt_ce_Select_innerInput__cb05e024{background:none;border:none;color:inherit;flex-grow:1;font-family:var(--vt-ce-theme-typography-paragraph2-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-paragraph2-fontSize,14px);font-style:var(--vt-ce-theme-typography-paragraph2-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-paragraph2-fontWeight,400);letter-spacing:var(--vt-ce-theme-typography-paragraph2-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-paragraph2-lineHeight,20px);outline:none;padding:8px 0;text-transform:var(--vt-ce-theme-typography-paragraph2-textTransform,inherit)}.vt_ce_Select_innerInput__cb05e024::-moz-placeholder{color:var(--vt-ce-theme-palette-action-primary-disabled-on,#7c848d)}.vt_ce_Select_innerInput__cb05e024::placeholder{color:var(--vt-ce-theme-palette-action-primary-disabled-on,#7c848d)}.vt_ce_Select_innerInput__cb05e024[data-selected=true]::-moz-placeholder{color:inherit}.vt_ce_Select_innerInput__cb05e024[data-selected=true]::placeholder{color:inherit}.vt_ce_Select_selectIcon__cb05e024{align-items:center;display:inline-flex;flex-shrink:0;justify-content:center;padding:8px 0;--vt-ce-icon-size:18px}.vt_ce_Select_helpLabel__cb05e024{color:var(--vt-ce-theme-palette-text-secondary,#5c6269)}.vt_ce_Select_errorLabel__cb05e024,.vt_ce_Select_helpLabel__cb05e024{font-family:var(--vt-ce-theme-typography-paragraph3-fontFamily,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-paragraph3-fontSize,12px);font-style:var(--vt-ce-theme-typography-paragraph3-fontStyle,normal);font-weight:var(--vt-ce-theme-typography-paragraph3-fontWeight,400);letter-spacing:var(--vt-ce-theme-typography-paragraph3-letterSpacing,inherit);line-height:var(--vt-ce-theme-typography-paragraph3-lineHeight,18px);text-transform:var(--vt-ce-theme-typography-paragraph3-textTransform,inherit)}.vt_ce_Select_errorLabel__cb05e024{align-items:center;color:var(--vt-ce-theme-palette-indicator-error-base-surface,#eb0000);display:flex;gap:3px}
|
|
@@ -6,6 +6,7 @@ import { type IconButtonProps } from '../IconButton/index.js';
|
|
|
6
6
|
export type DialogProps = DialogOptions & {
|
|
7
7
|
portalEl?: HTMLElement | null | React.MutableRefObject<HTMLElement | null>;
|
|
8
8
|
lockScroll?: boolean;
|
|
9
|
+
disableAutoFocus?: boolean;
|
|
9
10
|
children: React.ReactNode;
|
|
10
11
|
'data-testid'?: string;
|
|
11
12
|
style?: React.CSSProperties;
|
|
@@ -16,6 +17,7 @@ export type DialogProps = DialogOptions & {
|
|
|
16
17
|
declare const Dialog: React.ForwardRefExoticComponent<DialogOptions & {
|
|
17
18
|
portalEl?: HTMLElement | React.MutableRefObject<HTMLElement | null> | null | undefined;
|
|
18
19
|
lockScroll?: boolean | undefined;
|
|
20
|
+
disableAutoFocus?: boolean | undefined;
|
|
19
21
|
children: React.ReactNode;
|
|
20
22
|
'data-testid'?: string | undefined;
|
|
21
23
|
style?: React.CSSProperties | undefined;
|
|
@@ -6,6 +6,7 @@ export type DialogFactoryOptions = {
|
|
|
6
6
|
export declare function createDialogComponent({ portalEl }: DialogFactoryOptions): React.ForwardRefExoticComponent<import("./state.js").DialogOptions & {
|
|
7
7
|
portalEl?: HTMLElement | React.MutableRefObject<HTMLElement | null> | null | undefined;
|
|
8
8
|
lockScroll?: boolean | undefined;
|
|
9
|
+
disableAutoFocus?: boolean | undefined;
|
|
9
10
|
children: React.ReactNode;
|
|
10
11
|
'data-testid'?: string | undefined;
|
|
11
12
|
style?: React.CSSProperties | undefined;
|
|
@@ -5,9 +5,12 @@ import { type ButtonProps } from '../Button/index.js';
|
|
|
5
5
|
import { type TypographyProps } from '../Typography/index.js';
|
|
6
6
|
import { type IconButtonProps } from '../IconButton/index.js';
|
|
7
7
|
export type DrawerStrategy = 'fixed' | 'absolute';
|
|
8
|
+
export type DrawerPlacement = 'start' | 'end';
|
|
8
9
|
export type DrawerProps = Omit<DrawerOptions, 'dismissEnabled'> & {
|
|
9
10
|
portalEl?: HTMLElement | null | React.MutableRefObject<HTMLElement | null>;
|
|
11
|
+
placement?: DrawerPlacement;
|
|
10
12
|
lockScroll?: boolean;
|
|
13
|
+
disableAutoFocus?: boolean;
|
|
11
14
|
strategy?: DrawerStrategy;
|
|
12
15
|
children: React.ReactNode;
|
|
13
16
|
style?: React.CSSProperties;
|
|
@@ -19,7 +22,9 @@ export type DrawerProps = Omit<DrawerOptions, 'dismissEnabled'> & {
|
|
|
19
22
|
};
|
|
20
23
|
declare const Drawer: React.ForwardRefExoticComponent<Omit<DrawerOptions, "dismissEnabled"> & {
|
|
21
24
|
portalEl?: HTMLElement | React.MutableRefObject<HTMLElement | null> | null | undefined;
|
|
25
|
+
placement?: DrawerPlacement | undefined;
|
|
22
26
|
lockScroll?: boolean | undefined;
|
|
27
|
+
disableAutoFocus?: boolean | undefined;
|
|
23
28
|
strategy?: DrawerStrategy | undefined;
|
|
24
29
|
children: React.ReactNode;
|
|
25
30
|
style?: React.CSSProperties | undefined;
|
|
@@ -3,7 +3,9 @@ import { type DrawerProps } from './components.js';
|
|
|
3
3
|
export type DrawerFactoryOptions = Partial<DrawerProps>;
|
|
4
4
|
export declare function createDrawerComponent(overrides: DrawerFactoryOptions): React.ForwardRefExoticComponent<Omit<import("./state.js").DrawerOptions, "dismissEnabled"> & {
|
|
5
5
|
portalEl?: HTMLElement | React.MutableRefObject<HTMLElement | null> | null | undefined;
|
|
6
|
+
placement?: import("./components.js").DrawerPlacement | undefined;
|
|
6
7
|
lockScroll?: boolean | undefined;
|
|
8
|
+
disableAutoFocus?: boolean | undefined;
|
|
7
9
|
strategy?: import("./components.js").DrawerStrategy | undefined;
|
|
8
10
|
children: React.ReactNode;
|
|
9
11
|
style?: React.CSSProperties | undefined;
|
|
@@ -14,6 +14,7 @@ export type MenuProps = {
|
|
|
14
14
|
role?: MenuRole;
|
|
15
15
|
placement?: PopoverPlacement;
|
|
16
16
|
strategy?: PopoverStrategy;
|
|
17
|
+
disableAutoFocus?: boolean;
|
|
17
18
|
enableTypeahead?: boolean;
|
|
18
19
|
matchAnchorWidth?: boolean;
|
|
19
20
|
options: MenuOption[];
|
|
@@ -23,7 +24,7 @@ export type MenuProps = {
|
|
|
23
24
|
style?: React.CSSProperties;
|
|
24
25
|
className?: string;
|
|
25
26
|
};
|
|
26
|
-
declare function Menu({ open: isOpen, role: assumeRole, placement, strategy, enableTypeahead, matchAnchorWidth, options, dismissEnabled, className, ...props }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare function Menu({ open: isOpen, role: assumeRole, placement, strategy, enableTypeahead, matchAnchorWidth, options, dismissEnabled, disableAutoFocus, className, ...props }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
27
28
|
export type MenuItemProps = {
|
|
28
29
|
label?: string;
|
|
29
30
|
icon?: React.ReactNode;
|