@uniformdev/design-system 18.21.1-alpha.4 → 18.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +114 -90
- package/dist/index.d.ts +11 -5
- package/dist/index.js +317 -292
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -9147,7 +9147,7 @@ var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props
|
|
|
9147
9147
|
};
|
|
9148
9148
|
|
|
9149
9149
|
// src/components/Drawer/Drawer.tsx
|
|
9150
|
-
import
|
|
9150
|
+
import React11, { useEffect as useEffect5, useMemo, useRef as useRef2 } from "react";
|
|
9151
9151
|
import { CgChevronRight } from "react-icons/cg";
|
|
9152
9152
|
|
|
9153
9153
|
// src/components/Drawer/Drawer.styles.ts
|
|
@@ -9283,71 +9283,15 @@ function isEqualDrawerInstance(a, b) {
|
|
|
9283
9283
|
return isEqualDrawer(a, b) && a.instanceKey === b.instanceKey;
|
|
9284
9284
|
}
|
|
9285
9285
|
|
|
9286
|
-
// src/components/Drawer/Drawer.tsx
|
|
9287
|
-
import { jsx as jsx31, jsxs as jsxs17 } from "@emotion/react/jsx-runtime";
|
|
9288
|
-
var Drawer = React10.forwardRef(
|
|
9289
|
-
({ id, stackId, instanceKey, onRequestClose, header, bgColor, children }, ref) => {
|
|
9290
|
-
const { registerDrawer, unregisterDrawer } = useDrawer();
|
|
9291
|
-
const closeButtonRef = useRef2(null);
|
|
9292
|
-
const component = useMemo(() => {
|
|
9293
|
-
const headerId = `dialog-header-${stackId}-${id}`;
|
|
9294
|
-
return /* @__PURE__ */ jsxs17(
|
|
9295
|
-
"div",
|
|
9296
|
-
{
|
|
9297
|
-
ref,
|
|
9298
|
-
id,
|
|
9299
|
-
role: "dialog",
|
|
9300
|
-
tabIndex: -1,
|
|
9301
|
-
"aria-labelledby": headerId,
|
|
9302
|
-
css: drawerStyles(bgColor),
|
|
9303
|
-
"data-test-id": "side-dialog",
|
|
9304
|
-
children: [
|
|
9305
|
-
/* @__PURE__ */ jsx31(
|
|
9306
|
-
Button,
|
|
9307
|
-
{
|
|
9308
|
-
ref: closeButtonRef,
|
|
9309
|
-
type: "button",
|
|
9310
|
-
onClick: onRequestClose,
|
|
9311
|
-
css: drawerCloseButtonStyles,
|
|
9312
|
-
title: "Close dialog",
|
|
9313
|
-
buttonType: "ghost",
|
|
9314
|
-
children: /* @__PURE__ */ jsx31(Icon, { icon: CgChevronRight, iconColor: "gray", size: "1.5rem" })
|
|
9315
|
-
}
|
|
9316
|
-
),
|
|
9317
|
-
header ? /* @__PURE__ */ jsx31("div", { id: headerId, css: drawerHeaderStyles, children: header }) : null,
|
|
9318
|
-
/* @__PURE__ */ jsx31("div", { css: drawerInnerStyles, children })
|
|
9319
|
-
]
|
|
9320
|
-
}
|
|
9321
|
-
);
|
|
9322
|
-
}, [children, header, id, stackId, bgColor, onRequestClose, ref]);
|
|
9323
|
-
useEffect5(() => {
|
|
9324
|
-
registerDrawer({
|
|
9325
|
-
drawer: {
|
|
9326
|
-
id,
|
|
9327
|
-
component,
|
|
9328
|
-
stackId,
|
|
9329
|
-
onRequestClose,
|
|
9330
|
-
instanceKey
|
|
9331
|
-
},
|
|
9332
|
-
onFirstRender: () => {
|
|
9333
|
-
setTimeout(() => {
|
|
9334
|
-
var _a;
|
|
9335
|
-
(_a = closeButtonRef.current) == null ? void 0 : _a.focus({ preventScroll: true });
|
|
9336
|
-
}, 0);
|
|
9337
|
-
}
|
|
9338
|
-
});
|
|
9339
|
-
}, [component, instanceKey, registerDrawer]);
|
|
9340
|
-
useEffect5(() => {
|
|
9341
|
-
return () => unregisterDrawer({ id, stackId, instanceKey });
|
|
9342
|
-
}, [id, stackId, instanceKey, unregisterDrawer]);
|
|
9343
|
-
return null;
|
|
9344
|
-
}
|
|
9345
|
-
);
|
|
9346
|
-
|
|
9347
9286
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
9348
|
-
import {
|
|
9287
|
+
import { createContext as createContext4, useContext as useContext5 } from "react";
|
|
9288
|
+
import { Fragment as Fragment4, jsx as jsx31, jsxs as jsxs17 } from "@emotion/react/jsx-runtime";
|
|
9349
9289
|
var maxLayeringInPx = 64;
|
|
9350
9290
|
var idealDistanceBetweenLayersInPx = 16;
|
|
9291
|
+
var CurrentDrawerRendererContext = createContext4({});
|
|
9292
|
+
var useCurrentDrawerRenderer = () => {
|
|
9293
|
+
return useContext5(CurrentDrawerRendererContext);
|
|
9294
|
+
};
|
|
9351
9295
|
var DrawerRenderer = ({
|
|
9352
9296
|
stackId,
|
|
9353
9297
|
position = "absolute",
|
|
@@ -9361,7 +9305,7 @@ var DrawerRenderer = ({
|
|
|
9361
9305
|
if (drawersToRender.length === 0) {
|
|
9362
9306
|
return null;
|
|
9363
9307
|
}
|
|
9364
|
-
return /* @__PURE__ */
|
|
9308
|
+
return /* @__PURE__ */ jsx31(CurrentDrawerRendererContext.Provider, { value: { stackId }, children: /* @__PURE__ */ jsx31("div", { css: drawerRendererStyles(position), ...otherProps, children: drawersToRender.map(({ component, id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */ jsx31(
|
|
9365
9309
|
DrawerWrapper,
|
|
9366
9310
|
{
|
|
9367
9311
|
index,
|
|
@@ -9373,7 +9317,7 @@ var DrawerRenderer = ({
|
|
|
9373
9317
|
children: component
|
|
9374
9318
|
},
|
|
9375
9319
|
`${stackId2}-${id}`
|
|
9376
|
-
)) });
|
|
9320
|
+
)) }) });
|
|
9377
9321
|
};
|
|
9378
9322
|
var DrawerWrapper = ({
|
|
9379
9323
|
index,
|
|
@@ -9390,12 +9334,91 @@ var DrawerWrapper = ({
|
|
|
9390
9334
|
offsetInPx = Math.round(maxLayeringInPx * relativeLevel);
|
|
9391
9335
|
}
|
|
9392
9336
|
const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
|
|
9393
|
-
return /* @__PURE__ */
|
|
9394
|
-
/* @__PURE__ */
|
|
9395
|
-
/* @__PURE__ */
|
|
9337
|
+
return /* @__PURE__ */ jsxs17(Fragment4, { children: [
|
|
9338
|
+
/* @__PURE__ */ jsx31("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
|
|
9339
|
+
/* @__PURE__ */ jsx31("div", { css: [drawerWrapperStyles, { width: calculatedWidth, minWidth, maxWidth }], children })
|
|
9396
9340
|
] });
|
|
9397
9341
|
};
|
|
9398
9342
|
|
|
9343
|
+
// src/components/Drawer/Drawer.tsx
|
|
9344
|
+
import { jsx as jsx32, jsxs as jsxs18 } from "@emotion/react/jsx-runtime";
|
|
9345
|
+
var defaultSackId = "_default";
|
|
9346
|
+
var Drawer = React11.forwardRef(
|
|
9347
|
+
({ width, minWidth, maxWidth, position, ...drawerProps }, ref) => {
|
|
9348
|
+
const drawerRendererProps = { width, minWidth, maxWidth, position };
|
|
9349
|
+
const { stackId: inheritedStackId } = useCurrentDrawerRenderer();
|
|
9350
|
+
return inheritedStackId ? /* @__PURE__ */ jsx32(DrawerInner, { ref, ...drawerProps, stackId: inheritedStackId }) : drawerProps.stackId ? /* @__PURE__ */ jsx32(DrawerInner, { ref, ...drawerProps }) : /* @__PURE__ */ jsxs18(DrawerProvider, { children: [
|
|
9351
|
+
/* @__PURE__ */ jsx32(DrawerInner, { ref, ...drawerProps }),
|
|
9352
|
+
/* @__PURE__ */ jsx32(DrawerRenderer, { stackId: defaultSackId, ...drawerRendererProps })
|
|
9353
|
+
] });
|
|
9354
|
+
}
|
|
9355
|
+
);
|
|
9356
|
+
var DrawerInner = ({
|
|
9357
|
+
ref,
|
|
9358
|
+
stackId = defaultSackId,
|
|
9359
|
+
id,
|
|
9360
|
+
bgColor,
|
|
9361
|
+
children,
|
|
9362
|
+
header,
|
|
9363
|
+
instanceKey,
|
|
9364
|
+
onRequestClose
|
|
9365
|
+
}) => {
|
|
9366
|
+
const { registerDrawer, unregisterDrawer } = useDrawer();
|
|
9367
|
+
const closeButtonRef = useRef2(null);
|
|
9368
|
+
const component = useMemo(() => {
|
|
9369
|
+
const headerId = `dialog-header-${stackId}-${id}`;
|
|
9370
|
+
return /* @__PURE__ */ jsxs18(
|
|
9371
|
+
"div",
|
|
9372
|
+
{
|
|
9373
|
+
ref,
|
|
9374
|
+
id,
|
|
9375
|
+
role: "dialog",
|
|
9376
|
+
tabIndex: -1,
|
|
9377
|
+
"aria-labelledby": headerId,
|
|
9378
|
+
css: drawerStyles(bgColor),
|
|
9379
|
+
"data-test-id": "side-dialog",
|
|
9380
|
+
children: [
|
|
9381
|
+
/* @__PURE__ */ jsx32(
|
|
9382
|
+
Button,
|
|
9383
|
+
{
|
|
9384
|
+
ref: closeButtonRef,
|
|
9385
|
+
type: "button",
|
|
9386
|
+
onClick: onRequestClose,
|
|
9387
|
+
css: drawerCloseButtonStyles,
|
|
9388
|
+
title: "Close dialog",
|
|
9389
|
+
buttonType: "ghost",
|
|
9390
|
+
children: /* @__PURE__ */ jsx32(Icon, { icon: CgChevronRight, iconColor: "gray", size: "1.5rem" })
|
|
9391
|
+
}
|
|
9392
|
+
),
|
|
9393
|
+
header ? /* @__PURE__ */ jsx32("div", { id: headerId, css: drawerHeaderStyles, children: header }) : null,
|
|
9394
|
+
/* @__PURE__ */ jsx32("div", { css: drawerInnerStyles, children })
|
|
9395
|
+
]
|
|
9396
|
+
}
|
|
9397
|
+
);
|
|
9398
|
+
}, [children, header, id, stackId, bgColor, onRequestClose, ref]);
|
|
9399
|
+
useEffect5(() => {
|
|
9400
|
+
registerDrawer({
|
|
9401
|
+
drawer: {
|
|
9402
|
+
id,
|
|
9403
|
+
component,
|
|
9404
|
+
stackId,
|
|
9405
|
+
onRequestClose,
|
|
9406
|
+
instanceKey
|
|
9407
|
+
},
|
|
9408
|
+
onFirstRender: () => {
|
|
9409
|
+
setTimeout(() => {
|
|
9410
|
+
var _a;
|
|
9411
|
+
(_a = closeButtonRef.current) == null ? void 0 : _a.focus({ preventScroll: true });
|
|
9412
|
+
}, 0);
|
|
9413
|
+
}
|
|
9414
|
+
});
|
|
9415
|
+
}, [component, instanceKey, registerDrawer]);
|
|
9416
|
+
useEffect5(() => {
|
|
9417
|
+
return () => unregisterDrawer({ id, stackId, instanceKey });
|
|
9418
|
+
}, [id, stackId, instanceKey, unregisterDrawer]);
|
|
9419
|
+
return null;
|
|
9420
|
+
};
|
|
9421
|
+
|
|
9399
9422
|
// src/components/Input/styles/CaptionText.styles.ts
|
|
9400
9423
|
import { css as css28 } from "@emotion/react";
|
|
9401
9424
|
var CaptionText = (dynamicSize) => css28`
|
|
@@ -9529,7 +9552,7 @@ var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
|
9529
9552
|
};
|
|
9530
9553
|
|
|
9531
9554
|
// src/components/Input/Fieldset.tsx
|
|
9532
|
-
import * as
|
|
9555
|
+
import * as React12 from "react";
|
|
9533
9556
|
|
|
9534
9557
|
// src/components/Input/styles/Fieldset.styles.ts
|
|
9535
9558
|
import { css as css31 } from "@emotion/react";
|
|
@@ -9573,7 +9596,7 @@ var fieldsetBody = css31`
|
|
|
9573
9596
|
|
|
9574
9597
|
// src/components/Input/Fieldset.tsx
|
|
9575
9598
|
import { jsx as jsx36, jsxs as jsxs21 } from "@emotion/react/jsx-runtime";
|
|
9576
|
-
var Fieldset =
|
|
9599
|
+
var Fieldset = React12.forwardRef(
|
|
9577
9600
|
({ legend, disabled, children, invert, ...props }, ref) => {
|
|
9578
9601
|
return /* @__PURE__ */ jsxs21("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
|
|
9579
9602
|
legend,
|
|
@@ -9583,7 +9606,7 @@ var Fieldset = React11.forwardRef(
|
|
|
9583
9606
|
);
|
|
9584
9607
|
|
|
9585
9608
|
// src/components/Input/Input.tsx
|
|
9586
|
-
import * as
|
|
9609
|
+
import * as React13 from "react";
|
|
9587
9610
|
|
|
9588
9611
|
// src/components/Input/Label.tsx
|
|
9589
9612
|
import { jsx as jsx37 } from "@emotion/react/jsx-runtime";
|
|
@@ -9626,7 +9649,7 @@ var WarningMessage = ({ message, testId, ...props }) => {
|
|
|
9626
9649
|
|
|
9627
9650
|
// src/components/Input/Input.tsx
|
|
9628
9651
|
import { jsx as jsx39, jsxs as jsxs23 } from "@emotion/react/jsx-runtime";
|
|
9629
|
-
var Input =
|
|
9652
|
+
var Input = React13.forwardRef(
|
|
9630
9653
|
({
|
|
9631
9654
|
label,
|
|
9632
9655
|
icon,
|
|
@@ -11115,7 +11138,7 @@ var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
|
11115
11138
|
};
|
|
11116
11139
|
|
|
11117
11140
|
// src/components/Tooltip/Tooltip.tsx
|
|
11118
|
-
import
|
|
11141
|
+
import React14 from "react";
|
|
11119
11142
|
import {
|
|
11120
11143
|
Tooltip as ReakitTooltip,
|
|
11121
11144
|
TooltipArrow,
|
|
@@ -11144,7 +11167,7 @@ import { Fragment as Fragment9, jsx as jsx64, jsxs as jsxs44 } from "@emotion/re
|
|
|
11144
11167
|
function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
|
|
11145
11168
|
const tooltip = useTooltipState({ placement });
|
|
11146
11169
|
return /* @__PURE__ */ jsxs44(Fragment9, { children: [
|
|
11147
|
-
/* @__PURE__ */ jsx64(TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) =>
|
|
11170
|
+
/* @__PURE__ */ jsx64(TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => React14.cloneElement(children, referenceProps) }),
|
|
11148
11171
|
/* @__PURE__ */ jsxs44(ReakitTooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
|
|
11149
11172
|
/* @__PURE__ */ jsx64(TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
11150
11173
|
title
|
|
@@ -11196,8 +11219,8 @@ var ConnectToDataElementButton = ({
|
|
|
11196
11219
|
};
|
|
11197
11220
|
|
|
11198
11221
|
// src/components/ParameterInputs/hooks/ParameterShellContext.tsx
|
|
11199
|
-
import { createContext as
|
|
11200
|
-
var ParameterShellContext =
|
|
11222
|
+
import { createContext as createContext5, useContext as useContext6 } from "react";
|
|
11223
|
+
var ParameterShellContext = createContext5({
|
|
11201
11224
|
id: "",
|
|
11202
11225
|
label: "",
|
|
11203
11226
|
hiddenLabel: void 0,
|
|
@@ -11206,7 +11229,7 @@ var ParameterShellContext = createContext4({
|
|
|
11206
11229
|
}
|
|
11207
11230
|
});
|
|
11208
11231
|
var useParameterShell = () => {
|
|
11209
|
-
const { id, label, hiddenLabel, errorMessage, onManuallySetErrorMessage } =
|
|
11232
|
+
const { id, label, hiddenLabel, errorMessage, onManuallySetErrorMessage } = useContext6(ParameterShellContext);
|
|
11210
11233
|
return {
|
|
11211
11234
|
id,
|
|
11212
11235
|
label,
|
|
@@ -12172,7 +12195,7 @@ var Skeleton = ({
|
|
|
12172
12195
|
);
|
|
12173
12196
|
|
|
12174
12197
|
// src/components/Switch/Switch.tsx
|
|
12175
|
-
import * as
|
|
12198
|
+
import * as React15 from "react";
|
|
12176
12199
|
|
|
12177
12200
|
// src/components/Switch/Switch.styles.ts
|
|
12178
12201
|
import { css as css58 } from "@emotion/react";
|
|
@@ -12261,7 +12284,7 @@ var SwitchText = css58`
|
|
|
12261
12284
|
|
|
12262
12285
|
// src/components/Switch/Switch.tsx
|
|
12263
12286
|
import { Fragment as Fragment13, jsx as jsx81, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
12264
|
-
var Switch =
|
|
12287
|
+
var Switch = React15.forwardRef(
|
|
12265
12288
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
12266
12289
|
let additionalText = infoText;
|
|
12267
12290
|
if (infoText && toggleText) {
|
|
@@ -12279,7 +12302,7 @@ var Switch = React14.forwardRef(
|
|
|
12279
12302
|
);
|
|
12280
12303
|
|
|
12281
12304
|
// src/components/Table/Table.tsx
|
|
12282
|
-
import * as
|
|
12305
|
+
import * as React16 from "react";
|
|
12283
12306
|
|
|
12284
12307
|
// src/components/Table/Table.styles.ts
|
|
12285
12308
|
import { css as css59 } from "@emotion/react";
|
|
@@ -12309,42 +12332,42 @@ var tableCellData = css59`
|
|
|
12309
12332
|
|
|
12310
12333
|
// src/components/Table/Table.tsx
|
|
12311
12334
|
import { jsx as jsx82 } from "@emotion/react/jsx-runtime";
|
|
12312
|
-
var Table =
|
|
12335
|
+
var Table = React16.forwardRef(({ children, ...otherProps }, ref) => {
|
|
12313
12336
|
return /* @__PURE__ */ jsx82("table", { ref, css: table, ...otherProps, children });
|
|
12314
12337
|
});
|
|
12315
|
-
var TableHead =
|
|
12338
|
+
var TableHead = React16.forwardRef(
|
|
12316
12339
|
({ children, ...otherProps }, ref) => {
|
|
12317
12340
|
return /* @__PURE__ */ jsx82("thead", { ref, css: tableHead, ...otherProps, children });
|
|
12318
12341
|
}
|
|
12319
12342
|
);
|
|
12320
|
-
var TableBody =
|
|
12343
|
+
var TableBody = React16.forwardRef(
|
|
12321
12344
|
({ children, ...otherProps }, ref) => {
|
|
12322
12345
|
return /* @__PURE__ */ jsx82("tbody", { ref, ...otherProps, children });
|
|
12323
12346
|
}
|
|
12324
12347
|
);
|
|
12325
|
-
var TableFoot =
|
|
12348
|
+
var TableFoot = React16.forwardRef(
|
|
12326
12349
|
({ children, ...otherProps }, ref) => {
|
|
12327
12350
|
return /* @__PURE__ */ jsx82("tfoot", { ref, ...otherProps, children });
|
|
12328
12351
|
}
|
|
12329
12352
|
);
|
|
12330
|
-
var TableRow =
|
|
12353
|
+
var TableRow = React16.forwardRef(
|
|
12331
12354
|
({ children, ...otherProps }, ref) => {
|
|
12332
12355
|
return /* @__PURE__ */ jsx82("tr", { ref, css: tableRow, ...otherProps, children });
|
|
12333
12356
|
}
|
|
12334
12357
|
);
|
|
12335
|
-
var TableCellHead =
|
|
12358
|
+
var TableCellHead = React16.forwardRef(
|
|
12336
12359
|
({ children, ...otherProps }, ref) => {
|
|
12337
12360
|
return /* @__PURE__ */ jsx82("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
12338
12361
|
}
|
|
12339
12362
|
);
|
|
12340
|
-
var TableCellData =
|
|
12363
|
+
var TableCellData = React16.forwardRef(
|
|
12341
12364
|
({ children, ...otherProps }, ref) => {
|
|
12342
12365
|
return /* @__PURE__ */ jsx82("td", { ref, css: tableCellData, ...otherProps, children });
|
|
12343
12366
|
}
|
|
12344
12367
|
);
|
|
12345
12368
|
|
|
12346
12369
|
// src/components/Tabs/Tabs.tsx
|
|
12347
|
-
import { createContext as
|
|
12370
|
+
import { createContext as createContext6, useContext as useContext7, useEffect as useEffect7, useMemo as useMemo2 } from "react";
|
|
12348
12371
|
import {
|
|
12349
12372
|
Tab as ReakitTab,
|
|
12350
12373
|
TabList as ReakitTabList,
|
|
@@ -12379,9 +12402,9 @@ var tabButtonGroupStyles = css60`
|
|
|
12379
12402
|
|
|
12380
12403
|
// src/components/Tabs/Tabs.tsx
|
|
12381
12404
|
import { jsx as jsx83 } from "@emotion/react/jsx-runtime";
|
|
12382
|
-
var CurrentTabContext =
|
|
12405
|
+
var CurrentTabContext = createContext6(null);
|
|
12383
12406
|
var useCurrentTab = () => {
|
|
12384
|
-
const context =
|
|
12407
|
+
const context = useContext7(CurrentTabContext);
|
|
12385
12408
|
if (!context) {
|
|
12386
12409
|
throw new Error("This component can only be used inside <Tabs>");
|
|
12387
12410
|
}
|
|
@@ -12641,6 +12664,7 @@ export {
|
|
|
12641
12664
|
skeletonLoading,
|
|
12642
12665
|
supports,
|
|
12643
12666
|
useBreakpoint,
|
|
12667
|
+
useCurrentDrawerRenderer,
|
|
12644
12668
|
useCurrentTab,
|
|
12645
12669
|
useDrawer,
|
|
12646
12670
|
useIconContext,
|
package/dist/index.d.ts
CHANGED
|
@@ -409,8 +409,12 @@ interface DrawerItem {
|
|
|
409
409
|
id: string;
|
|
410
410
|
/** The ReactNode to render inside the drawer */
|
|
411
411
|
component: React__default.ReactNode;
|
|
412
|
-
/**
|
|
413
|
-
|
|
412
|
+
/**
|
|
413
|
+
* The ID of the stack where the drawer should be renderer. It should match the stack ID of an existing DrawerRenderer.
|
|
414
|
+
* If not provided, it will fall back to the default renderer of the drawer.
|
|
415
|
+
* If the drawer is rendered inside another one, this value gets inherited.
|
|
416
|
+
* */
|
|
417
|
+
stackId?: string;
|
|
414
418
|
/** Just like React.Key, changing this value indicates that the drawer has changed and we need to close the current instance and open a new one */
|
|
415
419
|
instanceKey?: string;
|
|
416
420
|
/** Called when the close button is clicked, the Escape button is pressed, or when the drawer's overlay is clicked */
|
|
@@ -442,7 +446,7 @@ interface DrawerProps extends Omit<DrawerItem, 'component'> {
|
|
|
442
446
|
* A drawer component that opens from the right side of is parent. The component is used in combination with DrawerProvider and DrawerRenderer
|
|
443
447
|
* @example <DrawerProvider><Drawer id="my-drawer" stackId="my-stack" header="Title">Hello</Drawer><DrawerRenderer stackId="my-stack"/></DrawerProvider>
|
|
444
448
|
*/
|
|
445
|
-
declare const Drawer: React__default.ForwardRefExoticComponent<DrawerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
449
|
+
declare const Drawer: React__default.ForwardRefExoticComponent<DrawerProps & Omit<DrawerRendererProps, "stackId"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
446
450
|
|
|
447
451
|
interface DrawerRendererProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
448
452
|
/** The ID of the stack to render. Some drawers need to use the same stack ID to be rendered here */
|
|
@@ -453,7 +457,6 @@ interface DrawerRendererProps extends Omit<React__default.HTMLAttributes<HTMLDiv
|
|
|
453
457
|
width?: string;
|
|
454
458
|
/** The minimum width of the drawers. In any CSS length unit (px, rem, %, et al)
|
|
455
459
|
* @default '0'
|
|
456
|
-
|
|
457
460
|
*/
|
|
458
461
|
minWidth?: string;
|
|
459
462
|
/** The maximum width of the drawers. In any CSS length unit (px, rem, %, et al)
|
|
@@ -465,6 +468,9 @@ interface DrawerRendererProps extends Omit<React__default.HTMLAttributes<HTMLDiv
|
|
|
465
468
|
*/
|
|
466
469
|
position?: 'absolute' | 'fixed';
|
|
467
470
|
}
|
|
471
|
+
declare const useCurrentDrawerRenderer: () => {
|
|
472
|
+
stackId?: string | undefined;
|
|
473
|
+
};
|
|
468
474
|
declare const DrawerRenderer: ({ stackId, position, width, minWidth, maxWidth, ...otherProps }: DrawerRendererProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
469
475
|
interface DrawerRendererItemProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
470
476
|
index: number;
|
|
@@ -1698,4 +1704,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
|
1698
1704
|
};
|
|
1699
1705
|
declare const StatusBullet: ({ status, hideText, message, ...props }: StatusBulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1700
1706
|
|
|
1701
|
-
export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, AddListButtonThemeProps, AnimationFile, AnimationFileProps, ArrowPositionProps, Badge, BadgeProps, BoxHeightProps, BreakpointSize, BreakpointsMap, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, ComboBoxGroupBase, ConnectToDataElementButton, ConnectToDataElementButtonProps, Counter, CounterProps, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, DashedBox, DashedBoxProps, Details, DetailsProps, Drawer, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, Fieldset, FieldsetProps, Heading, HeadingProps, HexModalBackground, Icon, IconColor, IconName, IconProps, IconType, IconsProvider, InlineAlert, InlineAlertProps, Input, InputComboBox, InputComboBoxOption, InputComboBoxProps, InputInlineSelect, InputInlineSelectOption, InputInlineSelectProps, InputKeywordSearch, InputKeywordSearchProps, InputProps, InputSelect, InputSelectProps, InputToggle, InputToggleProps, IntegrationComingSoon, IntegrationComingSoonProps, IntegrationHeaderSection, IntegrationHeaderSectionProps, IntegrationLoadingTile, IntegrationLoadingTileProps, IntegrationModalHeader, IntegrationModalHeaderProps, IntegrationModalIcon, IntegrationModalIconProps, IntegrationTile, IntegrationTileProps, Label, LabelProps, Legend, LegendProps, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkList, LinkListProps, LinkManagerWithRefType, LinkProps, LinkWithRef, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, LottieFile, LottieFileKeyProps, LottieFileProps, Menu, MenuContext, MenuItem, MenuItemProps, MenuItemSeparator, MenuItemTextThemeProps, MenuProps, PageHeaderSection, PageHeaderSectionProps, Paragraph, ParagraphProps, ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, ParameterDrawerHeaderProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterLink, ParameterLinkInner, ParameterLinkProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterNameAndPublicIdInput, ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, ParameterRichTextProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, RegisterDrawerProps, ResolveIcon, ResolveIconProps, ScrollableItemProps, ScrollableList, ScrollableListInputItem, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, ShortcutContext, ShortcutRevealer, Skeleton, SkeletonProps, StatusBullet, StatusBulletProps, StatusTypeProps, Switch, SwitchProps, TabButton, TabButtonGroup, TabButtonProps, TabContent, TabContentProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TextAlignProps, Textarea, TextareaProps, Theme, ThemeProps, TileContainer, TileContainerProps, Tooltip, TooltipProps, UniformBadge, UniformLogo, UniformLogoProps, UseShortcutOptions, WarningMessage, WarningMessageProps, breakpoints, button, buttonGhost, buttonGhostDestructive, buttonPrimary, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonUnimportant, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, growSubtle, input, inputError, inputSelect, isMacLike, labelText, macifyShortcut, mq, ripple, scrollbarStyles, skeletonLoading, supports, useBreakpoint, useCurrentTab, useDrawer, useIconContext, useMenuContext, useOutsideClick, useParameterShell, useShortcut };
|
|
1707
|
+
export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, AddListButtonThemeProps, AnimationFile, AnimationFileProps, ArrowPositionProps, Badge, BadgeProps, BoxHeightProps, BreakpointSize, BreakpointsMap, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, ComboBoxGroupBase, ConnectToDataElementButton, ConnectToDataElementButtonProps, Counter, CounterProps, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, DashedBox, DashedBoxProps, Details, DetailsProps, Drawer, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, Fieldset, FieldsetProps, Heading, HeadingProps, HexModalBackground, Icon, IconColor, IconName, IconProps, IconType, IconsProvider, InlineAlert, InlineAlertProps, Input, InputComboBox, InputComboBoxOption, InputComboBoxProps, InputInlineSelect, InputInlineSelectOption, InputInlineSelectProps, InputKeywordSearch, InputKeywordSearchProps, InputProps, InputSelect, InputSelectProps, InputToggle, InputToggleProps, IntegrationComingSoon, IntegrationComingSoonProps, IntegrationHeaderSection, IntegrationHeaderSectionProps, IntegrationLoadingTile, IntegrationLoadingTileProps, IntegrationModalHeader, IntegrationModalHeaderProps, IntegrationModalIcon, IntegrationModalIconProps, IntegrationTile, IntegrationTileProps, Label, LabelProps, Legend, LegendProps, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkList, LinkListProps, LinkManagerWithRefType, LinkProps, LinkWithRef, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, LottieFile, LottieFileKeyProps, LottieFileProps, Menu, MenuContext, MenuItem, MenuItemProps, MenuItemSeparator, MenuItemTextThemeProps, MenuProps, PageHeaderSection, PageHeaderSectionProps, Paragraph, ParagraphProps, ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, ParameterDrawerHeaderProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterLink, ParameterLinkInner, ParameterLinkProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterNameAndPublicIdInput, ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, ParameterRichTextProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, RegisterDrawerProps, ResolveIcon, ResolveIconProps, ScrollableItemProps, ScrollableList, ScrollableListInputItem, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, ShortcutContext, ShortcutRevealer, Skeleton, SkeletonProps, StatusBullet, StatusBulletProps, StatusTypeProps, Switch, SwitchProps, TabButton, TabButtonGroup, TabButtonProps, TabContent, TabContentProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TextAlignProps, Textarea, TextareaProps, Theme, ThemeProps, TileContainer, TileContainerProps, Tooltip, TooltipProps, UniformBadge, UniformLogo, UniformLogoProps, UseShortcutOptions, WarningMessage, WarningMessageProps, breakpoints, button, buttonGhost, buttonGhostDestructive, buttonPrimary, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonUnimportant, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, growSubtle, input, inputError, inputSelect, isMacLike, labelText, macifyShortcut, mq, ripple, scrollbarStyles, skeletonLoading, supports, useBreakpoint, useCurrentDrawerRenderer, useCurrentTab, useDrawer, useIconContext, useMenuContext, useOutsideClick, useParameterShell, useShortcut };
|