@uniformdev/design-system 19.196.0 → 19.196.1-alpha.8
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/{importedIcons-XEGXOSVC.js → importedIcons-SI6R3MYO.js} +11 -1
- package/dist/esm/index.js +56 -29
- package/dist/index.d.mts +30 -8
- package/dist/index.d.ts +30 -8
- package/dist/index.js +67 -30
- package/package.json +4 -4
|
@@ -645,6 +645,11 @@ import { CgYinyang } from "@react-icons/all-files/cg/CgYinyang";
|
|
|
645
645
|
import { CgZoomIn } from "@react-icons/all-files/cg/CgZoomIn";
|
|
646
646
|
import { CgZoomOut } from "@react-icons/all-files/cg/CgZoomOut";
|
|
647
647
|
import { MdCopyAll } from "@react-icons/all-files/md/MdCopyAll";
|
|
648
|
+
import { TbDeviceIpad } from "@react-icons/all-files/tb/TbDeviceIpad";
|
|
649
|
+
import { TbDeviceMobile } from "@react-icons/all-files/tb/TbDeviceMobile";
|
|
650
|
+
import { TbDeviceMobileRotated } from "@react-icons/all-files/tb/TbDeviceMobileRotated";
|
|
651
|
+
import { TbDeviceTablet } from "@react-icons/all-files/tb/TbDeviceTablet";
|
|
652
|
+
import { TbDeviceTv } from "@react-icons/all-files/tb/TbDeviceTv";
|
|
648
653
|
var importedIcons = {
|
|
649
654
|
"add-r": CgAddR,
|
|
650
655
|
add: CgAdd,
|
|
@@ -1289,7 +1294,12 @@ var importedIcons = {
|
|
|
1289
1294
|
"work-alt": CgWorkAlt,
|
|
1290
1295
|
yinyang: CgYinyang,
|
|
1291
1296
|
"zoom-in": CgZoomIn,
|
|
1292
|
-
"zoom-out": CgZoomOut
|
|
1297
|
+
"zoom-out": CgZoomOut,
|
|
1298
|
+
"device-mobile": TbDeviceMobile,
|
|
1299
|
+
"device-tablet": TbDeviceTablet,
|
|
1300
|
+
"device-tv": TbDeviceTv,
|
|
1301
|
+
"device-ipad": TbDeviceIpad,
|
|
1302
|
+
"device-mobile-rotated": TbDeviceMobileRotated
|
|
1293
1303
|
};
|
|
1294
1304
|
export {
|
|
1295
1305
|
importedIcons
|
package/dist/esm/index.js
CHANGED
|
@@ -2156,7 +2156,7 @@ function IconsProvider({ children }) {
|
|
|
2156
2156
|
const [isLoading, setIsLoading] = useState2(true);
|
|
2157
2157
|
const [iconsMap, setIconsMap] = useState2({});
|
|
2158
2158
|
const initializeIconsMap = async () => {
|
|
2159
|
-
const { importedIcons } = await import("./importedIcons-
|
|
2159
|
+
const { importedIcons } = await import("./importedIcons-SI6R3MYO.js");
|
|
2160
2160
|
setIconsMap({ ...importedIcons, ...customIcons });
|
|
2161
2161
|
setIsLoading(false);
|
|
2162
2162
|
};
|
|
@@ -13029,7 +13029,7 @@ var Input = React10.forwardRef(
|
|
|
13029
13029
|
errorMessage ? inputError : void 0,
|
|
13030
13030
|
icon ? inputWithIcon : ""
|
|
13031
13031
|
],
|
|
13032
|
-
"aria-label":
|
|
13032
|
+
"aria-label": showLabel || typeof label !== "string" ? void 0 : label,
|
|
13033
13033
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
13034
13034
|
...props,
|
|
13035
13035
|
ref
|
|
@@ -13925,7 +13925,7 @@ import { css as css39 } from "@emotion/react";
|
|
|
13925
13925
|
var buttonSizeBase = css39`
|
|
13926
13926
|
--icon-padding: var(--spacing-xs);
|
|
13927
13927
|
--svg-size: 1rem;
|
|
13928
|
-
--line-offset: -
|
|
13928
|
+
--line-offset: -1px;
|
|
13929
13929
|
font-size: var(--fs-sm);
|
|
13930
13930
|
|
|
13931
13931
|
button {
|
|
@@ -15149,6 +15149,9 @@ var ChipOutlined = css49`
|
|
|
15149
15149
|
border-color: var(--outline-color);
|
|
15150
15150
|
}
|
|
15151
15151
|
`;
|
|
15152
|
+
var ChipDisabled = css49`
|
|
15153
|
+
opacity: var(--opacity-50);
|
|
15154
|
+
`;
|
|
15152
15155
|
|
|
15153
15156
|
// src/components/Chip/Chip.tsx
|
|
15154
15157
|
import { Fragment as Fragment9, jsx as jsx62, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
@@ -15168,6 +15171,7 @@ var Chip = ({
|
|
|
15168
15171
|
theme = "accent-light",
|
|
15169
15172
|
variant = "solid",
|
|
15170
15173
|
chipAction,
|
|
15174
|
+
isDisabled = false,
|
|
15171
15175
|
as = "span",
|
|
15172
15176
|
...props
|
|
15173
15177
|
}) => {
|
|
@@ -15184,7 +15188,8 @@ var Chip = ({
|
|
|
15184
15188
|
ChipContainer,
|
|
15185
15189
|
chipSize[size],
|
|
15186
15190
|
chipTheme[theme],
|
|
15187
|
-
variant === "outlined" ? ChipOutlined : void 0
|
|
15191
|
+
variant === "outlined" ? ChipOutlined : void 0,
|
|
15192
|
+
isDisabled ? ChipDisabled : void 0
|
|
15188
15193
|
],
|
|
15189
15194
|
...props,
|
|
15190
15195
|
children: [
|
|
@@ -18637,8 +18642,9 @@ var modalContentStyles = css80`
|
|
|
18637
18642
|
border-radius: var(--rounded-sm);
|
|
18638
18643
|
${scrollbarStyles}
|
|
18639
18644
|
`;
|
|
18640
|
-
var modalDialogWrapper = css80`
|
|
18641
|
-
|
|
18645
|
+
var modalDialogWrapper = (hasCloseButton) => css80`
|
|
18646
|
+
height: 100%;
|
|
18647
|
+
padding: ${hasCloseButton ? 0 : "var(--spacing-md)"} var(--spacing-lg) var(--spacing-md);
|
|
18642
18648
|
`;
|
|
18643
18649
|
var modalDialogInnerStyles = css80`
|
|
18644
18650
|
// we need to override the gap of the modalInnerStyles when using a modal dialog
|
|
@@ -18662,8 +18668,10 @@ var Modal = React20.forwardRef(
|
|
|
18662
18668
|
modalSize = "lg",
|
|
18663
18669
|
withoutContentPadding = false,
|
|
18664
18670
|
withoutContentBackground = false,
|
|
18671
|
+
disableBodyScroll = false,
|
|
18665
18672
|
...modalProps
|
|
18666
18673
|
}, ref) => {
|
|
18674
|
+
const mouseDownInsideModal = useRef9(false);
|
|
18667
18675
|
const dialogRef = useRef9(null);
|
|
18668
18676
|
const size = {
|
|
18669
18677
|
sm: modalSizeSmall,
|
|
@@ -18672,7 +18680,7 @@ var Modal = React20.forwardRef(
|
|
|
18672
18680
|
};
|
|
18673
18681
|
useShortcut({
|
|
18674
18682
|
handler: () => {
|
|
18675
|
-
onRequestClose();
|
|
18683
|
+
onRequestClose == null ? void 0 : onRequestClose();
|
|
18676
18684
|
},
|
|
18677
18685
|
shortcut: "escape"
|
|
18678
18686
|
});
|
|
@@ -18705,9 +18713,25 @@ var Modal = React20.forwardRef(
|
|
|
18705
18713
|
}
|
|
18706
18714
|
},
|
|
18707
18715
|
css: [modalStyles, !width ? size[modalSize] : void 0],
|
|
18708
|
-
style: {
|
|
18716
|
+
style: {
|
|
18717
|
+
width,
|
|
18718
|
+
height: height === "auto" ? "min-content" : height,
|
|
18719
|
+
// allows menus rendered in the PortalContext to overflow the modal contents
|
|
18720
|
+
// (internal scrolling of contents is handled on a child element)
|
|
18721
|
+
overflow: "visible"
|
|
18722
|
+
},
|
|
18709
18723
|
"data-testid": "side-dialog",
|
|
18710
|
-
onClick:
|
|
18724
|
+
onClick: () => {
|
|
18725
|
+
if (mouseDownInsideModal.current) {
|
|
18726
|
+
return;
|
|
18727
|
+
}
|
|
18728
|
+
onRequestClose == null ? void 0 : onRequestClose();
|
|
18729
|
+
},
|
|
18730
|
+
onMouseUp: () => {
|
|
18731
|
+
setTimeout(() => {
|
|
18732
|
+
mouseDownInsideModal.current = false;
|
|
18733
|
+
});
|
|
18734
|
+
},
|
|
18711
18735
|
onCancel: (e) => {
|
|
18712
18736
|
e.preventDefault();
|
|
18713
18737
|
},
|
|
@@ -18717,10 +18741,13 @@ var Modal = React20.forwardRef(
|
|
|
18717
18741
|
{
|
|
18718
18742
|
css: [modalInnerStyles, { height: height === "auto" ? "auto" : "100%" }],
|
|
18719
18743
|
onClick: (e) => e.stopPropagation(),
|
|
18744
|
+
onMouseDown: () => {
|
|
18745
|
+
mouseDownInsideModal.current = true;
|
|
18746
|
+
},
|
|
18720
18747
|
children: [
|
|
18721
|
-
/* @__PURE__ */ jsxs67("div", { css: modalHeaderStyles, children: [
|
|
18722
|
-
|
|
18723
|
-
/* @__PURE__ */ jsx102(
|
|
18748
|
+
header2 || onRequestClose ? /* @__PURE__ */ jsxs67("div", { css: modalHeaderStyles, children: [
|
|
18749
|
+
header2 ? /* @__PURE__ */ jsx102("div", { css: modalHeaderHeaderStyles, children: header2 }) : null,
|
|
18750
|
+
onRequestClose ? /* @__PURE__ */ jsx102(
|
|
18724
18751
|
Button,
|
|
18725
18752
|
{
|
|
18726
18753
|
type: "button",
|
|
@@ -18731,15 +18758,16 @@ var Modal = React20.forwardRef(
|
|
|
18731
18758
|
"data-testid": "close-dialog",
|
|
18732
18759
|
children: /* @__PURE__ */ jsx102(Icon, { icon: CgClose4, iconColor: "currentColor", size: 24 })
|
|
18733
18760
|
}
|
|
18734
|
-
)
|
|
18735
|
-
] }),
|
|
18761
|
+
) : null
|
|
18762
|
+
] }) : null,
|
|
18736
18763
|
/* @__PURE__ */ jsx102(
|
|
18737
18764
|
"div",
|
|
18738
18765
|
{
|
|
18739
18766
|
css: [
|
|
18740
18767
|
modalContentStyles,
|
|
18741
|
-
|
|
18742
|
-
|
|
18768
|
+
withoutContentPadding ? { padding: 0 } : null,
|
|
18769
|
+
withoutContentBackground ? { background: "transparent" } : null,
|
|
18770
|
+
disableBodyScroll ? { overflow: "visible" } : null
|
|
18743
18771
|
],
|
|
18744
18772
|
children
|
|
18745
18773
|
}
|
|
@@ -18771,9 +18799,9 @@ var ModalDialog = forwardRef16(
|
|
|
18771
18799
|
withoutContentPadding: true,
|
|
18772
18800
|
css: modalDialogInnerStyles,
|
|
18773
18801
|
width: "",
|
|
18774
|
-
children: /* @__PURE__ */ jsxs68(VerticalRhythm, { css: modalDialogWrapper, children: [
|
|
18802
|
+
children: /* @__PURE__ */ jsxs68(VerticalRhythm, { css: modalDialogWrapper(Boolean(onRequestClose)), children: [
|
|
18775
18803
|
/* @__PURE__ */ jsx103("div", { css: modalHeaderStyles, children: header2 }),
|
|
18776
|
-
/* @__PURE__ */ jsx103("div", { children }),
|
|
18804
|
+
/* @__PURE__ */ jsx103("div", { css: { flex: 1 }, children }),
|
|
18777
18805
|
/* @__PURE__ */ jsx103(HorizontalRhythm, { children: buttonGroup })
|
|
18778
18806
|
] })
|
|
18779
18807
|
}
|
|
@@ -19241,7 +19269,7 @@ var ObjectListItem2 = (props) => {
|
|
|
19241
19269
|
/* @__PURE__ */ jsx111(HorizontalRhythm, { gap: "xs", align: renderAs === "multi" ? "flex-start" : "center", children: header2 }),
|
|
19242
19270
|
renderAs === "multi" ? props.children : null
|
|
19243
19271
|
] }),
|
|
19244
|
-
/* @__PURE__ */ jsx111(HorizontalRhythm, { gap: "xs", align: "flex-start", children: rightSlot })
|
|
19272
|
+
/* @__PURE__ */ jsx111(HorizontalRhythm, { gap: "xs", align: renderAs === "multi" ? "flex-start" : "center", children: rightSlot })
|
|
19245
19273
|
] }),
|
|
19246
19274
|
menuItems ? /* @__PURE__ */ jsx111(HorizontalRhythm, { gap: "0", align: "flex-start", children: /* @__PURE__ */ jsx111(
|
|
19247
19275
|
Menu,
|
|
@@ -20151,7 +20179,7 @@ var ParameterImageInner = forwardRef19((props, ref) => {
|
|
|
20151
20179
|
type: "text",
|
|
20152
20180
|
id,
|
|
20153
20181
|
ref,
|
|
20154
|
-
"aria-label": hiddenLabel ? label : void 0,
|
|
20182
|
+
"aria-label": hiddenLabel && typeof label === "string" ? label : void 0,
|
|
20155
20183
|
autoComplete: "off",
|
|
20156
20184
|
...props
|
|
20157
20185
|
}
|
|
@@ -20176,7 +20204,7 @@ var ParameterInputInner = forwardRef20(
|
|
|
20176
20204
|
css: input3,
|
|
20177
20205
|
id,
|
|
20178
20206
|
type: props.type || "text",
|
|
20179
|
-
"aria-label": hiddenLabel ? label : void 0,
|
|
20207
|
+
"aria-label": hiddenLabel && typeof label === "string" ? label : void 0,
|
|
20180
20208
|
autoComplete: "off",
|
|
20181
20209
|
ref,
|
|
20182
20210
|
...props
|
|
@@ -20197,7 +20225,7 @@ var ParameterLink = forwardRef21(
|
|
|
20197
20225
|
"data-testid": "link-parameter-editor",
|
|
20198
20226
|
...shellProps,
|
|
20199
20227
|
label: innerProps.value ? shellProps.label : "",
|
|
20200
|
-
title: !innerProps.value ? shellProps.label : void 0,
|
|
20228
|
+
title: !innerProps.value && typeof shellProps.label === "string" ? shellProps.label : void 0,
|
|
20201
20229
|
children: /* @__PURE__ */ jsx126(
|
|
20202
20230
|
ParameterLinkInner,
|
|
20203
20231
|
{
|
|
@@ -20225,7 +20253,7 @@ var ParameterLinkInner = forwardRef21(
|
|
|
20225
20253
|
readOnly: Boolean(props.value),
|
|
20226
20254
|
id,
|
|
20227
20255
|
ref,
|
|
20228
|
-
"aria-label": hiddenLabel ? label : void 0,
|
|
20256
|
+
"aria-label": hiddenLabel && typeof label === "string" ? label : void 0,
|
|
20229
20257
|
...props
|
|
20230
20258
|
}
|
|
20231
20259
|
),
|
|
@@ -20275,7 +20303,7 @@ var ParameterMultiSelectInner = (props) => {
|
|
|
20275
20303
|
isMulti: true,
|
|
20276
20304
|
isClearable: (_a = props.isClearable) != null ? _a : false,
|
|
20277
20305
|
id,
|
|
20278
|
-
"aria-label": label,
|
|
20306
|
+
"aria-label": typeof label === "string" ? label : void 0,
|
|
20279
20307
|
classNamePrefix: "parameter-multi-select-combobox",
|
|
20280
20308
|
styles: {
|
|
20281
20309
|
menuPortal: (base) => ({
|
|
@@ -23230,7 +23258,7 @@ var ParameterSelectInner = forwardRef23(
|
|
|
23230
23258
|
{
|
|
23231
23259
|
css: [input3, selectInput],
|
|
23232
23260
|
id,
|
|
23233
|
-
"aria-label": hiddenLabel ? label : void 0,
|
|
23261
|
+
"aria-label": hiddenLabel && typeof label === "string" ? label : void 0,
|
|
23234
23262
|
ref,
|
|
23235
23263
|
...props,
|
|
23236
23264
|
children: [
|
|
@@ -23260,7 +23288,7 @@ var ParameterTextareaInner = forwardRef24(({ ...props }, ref) => {
|
|
|
23260
23288
|
css: [input3, textarea2],
|
|
23261
23289
|
id,
|
|
23262
23290
|
ref,
|
|
23263
|
-
"aria-label": hiddenLabel ? label : void 0,
|
|
23291
|
+
"aria-label": hiddenLabel && typeof label === "string" ? label : void 0,
|
|
23264
23292
|
...props
|
|
23265
23293
|
}
|
|
23266
23294
|
);
|
|
@@ -24211,16 +24239,15 @@ var StatusBullet = ({
|
|
|
24211
24239
|
Deleted: StatusDeleted
|
|
24212
24240
|
};
|
|
24213
24241
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
24214
|
-
return /* @__PURE__ */ jsx144(
|
|
24242
|
+
return /* @__PURE__ */ jsx144(Tooltip, { title: message != null ? message : status, children: /* @__PURE__ */ jsx144(
|
|
24215
24243
|
"span",
|
|
24216
24244
|
{
|
|
24217
24245
|
role: "status",
|
|
24218
24246
|
css: [StatusBulletContainer, currentStateStyles[status], statusSize],
|
|
24219
|
-
title: message != null ? message : status,
|
|
24220
24247
|
...props,
|
|
24221
24248
|
children: hideText ? null : message ? message : status
|
|
24222
24249
|
}
|
|
24223
|
-
);
|
|
24250
|
+
) });
|
|
24224
24251
|
};
|
|
24225
24252
|
export {
|
|
24226
24253
|
AddButton,
|
package/dist/index.d.mts
CHANGED
|
@@ -21109,6 +21109,11 @@ declare const allSupportedIcons: {
|
|
|
21109
21109
|
yinyang: _react_icons_all_files.IconType;
|
|
21110
21110
|
'zoom-in': _react_icons_all_files.IconType;
|
|
21111
21111
|
'zoom-out': _react_icons_all_files.IconType;
|
|
21112
|
+
'device-mobile': _react_icons_all_files.IconType;
|
|
21113
|
+
'device-tablet': _react_icons_all_files.IconType;
|
|
21114
|
+
'device-tv': _react_icons_all_files.IconType;
|
|
21115
|
+
'device-ipad': _react_icons_all_files.IconType;
|
|
21116
|
+
'device-mobile-rotated': _react_icons_all_files.IconType;
|
|
21112
21117
|
};
|
|
21113
21118
|
|
|
21114
21119
|
/** A list of available icon names that can be used with the Uniform brand */
|
|
@@ -21385,6 +21390,11 @@ type ChipProps = {
|
|
|
21385
21390
|
* @default 'span'
|
|
21386
21391
|
*/
|
|
21387
21392
|
as?: 'span' | 'button';
|
|
21393
|
+
/**
|
|
21394
|
+
* Whether the chip is visually disabled
|
|
21395
|
+
* @default false
|
|
21396
|
+
*/
|
|
21397
|
+
isDisabled?: boolean;
|
|
21388
21398
|
} & React.HTMLAttributes<HTMLSpanElement>;
|
|
21389
21399
|
/**
|
|
21390
21400
|
* @description Chips are used in a variety of ways
|
|
@@ -21393,7 +21403,7 @@ type ChipProps = {
|
|
|
21393
21403
|
* To represent a different object, as a reference
|
|
21394
21404
|
* @example <Chip text="productId" theme="accent-light" chipAction={<DismissibleChipAction onDismiss={() => {...}}/>} />
|
|
21395
21405
|
*/
|
|
21396
|
-
declare const Chip: ({ icon, iconColor, text, size, theme, variant, chipAction, as, ...props }: ChipProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
21406
|
+
declare const Chip: ({ icon, iconColor, text, size, theme, variant, chipAction, isDisabled, as, ...props }: ChipProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
21397
21407
|
type DismissibleChipActionProps = {
|
|
21398
21408
|
onDismiss: () => void;
|
|
21399
21409
|
} & HTMLAttributes<HTMLButtonElement>;
|
|
@@ -21922,7 +21932,7 @@ declare const InfoMessage: ({ message, testId, icon, ...props }: InfoMessageProp
|
|
|
21922
21932
|
|
|
21923
21933
|
type InputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
21924
21934
|
/** (optional) sets the label value */
|
|
21925
|
-
label?: string;
|
|
21935
|
+
label?: string | React$1.ReactNode;
|
|
21926
21936
|
/** (optional) sets caption text value */
|
|
21927
21937
|
caption?: string | JSX.Element;
|
|
21928
21938
|
/** (optional) add an input icon to the input field */
|
|
@@ -21965,7 +21975,7 @@ type InputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
|
21965
21975
|
*/
|
|
21966
21976
|
declare const Input: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
21967
21977
|
/** (optional) sets the label value */
|
|
21968
|
-
label?: string;
|
|
21978
|
+
label?: string | React$1.ReactNode;
|
|
21969
21979
|
/** (optional) sets caption text value */
|
|
21970
21980
|
caption?: string | JSX.Element;
|
|
21971
21981
|
/** (optional) add an input icon to the input field */
|
|
@@ -22758,6 +22768,9 @@ declare function MenuItemIcon({ icon }: {
|
|
|
22758
22768
|
*/
|
|
22759
22769
|
declare function MenuItemEmptyIcon(): _emotion_react_jsx_runtime.JSX.Element;
|
|
22760
22770
|
|
|
22771
|
+
/**
|
|
22772
|
+
* @deprecated this is deprecated and will be removed in the next major release. Use MenuGroup instead.
|
|
22773
|
+
*/
|
|
22761
22774
|
declare const MenuItemHeading: ({ children }: {
|
|
22762
22775
|
children: ReactNode;
|
|
22763
22776
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
@@ -22826,8 +22839,11 @@ declare const MediaCard: ({ title, subtitle, infoPopover, cover, menuItems, side
|
|
|
22826
22839
|
type ModalProps = {
|
|
22827
22840
|
header?: React__default.ReactNode;
|
|
22828
22841
|
children?: React__default.ReactNode;
|
|
22829
|
-
/**
|
|
22830
|
-
|
|
22842
|
+
/**
|
|
22843
|
+
* Called when the close button is clicked, the Escape button is pressed, or when the modal's backdrop is clicked.
|
|
22844
|
+
* If undefined is passed, the modal will not be closable by the user and the close button will not be rendered.
|
|
22845
|
+
*/
|
|
22846
|
+
onRequestClose: (() => void) | undefined;
|
|
22831
22847
|
/** The size sets the modal width to one of three options sm = 400px, md = 600px and lg = 800px
|
|
22832
22848
|
* if a width attribute is used the size will be overridden by the width attribute
|
|
22833
22849
|
* @default 'lg'
|
|
@@ -22847,6 +22863,12 @@ type ModalProps = {
|
|
|
22847
22863
|
withoutContentBackground?: boolean;
|
|
22848
22864
|
/** Places buttons at the bottom of the modal */
|
|
22849
22865
|
buttonGroup?: ReactNode;
|
|
22866
|
+
/**
|
|
22867
|
+
* Disables scrolling of the modal body if the content exceeds the height.
|
|
22868
|
+
* Can be required for modals that have comboboxes where the menu items are expected
|
|
22869
|
+
* to overflow the bounds of the modal.
|
|
22870
|
+
*/
|
|
22871
|
+
disableBodyScroll?: boolean;
|
|
22850
22872
|
} & React__default.HTMLProps<HTMLDialogElement>;
|
|
22851
22873
|
/**
|
|
22852
22874
|
* A modal component to open a dialog with a backdrop that covers the whole page.
|
|
@@ -22992,7 +23014,7 @@ declare function Pagination({ limit, offset, total, onPageChange, }: {
|
|
|
22992
23014
|
|
|
22993
23015
|
type CommonParameterProps = {
|
|
22994
23016
|
/** sets the label value */
|
|
22995
|
-
label: string;
|
|
23017
|
+
label: string | ReactNode;
|
|
22996
23018
|
/** (optional): allows user to pass a component before the label */
|
|
22997
23019
|
labelLeadingIcon?: ReactNode;
|
|
22998
23020
|
/** (optional): allows user to pass a component after the label */
|
|
@@ -23047,7 +23069,7 @@ type CommonParameterSelectProps = {
|
|
|
23047
23069
|
declare const ParameterShellContext: React$1.Context<CommonParameterProps>;
|
|
23048
23070
|
declare const useParameterShell: () => {
|
|
23049
23071
|
id: string;
|
|
23050
|
-
label:
|
|
23072
|
+
label: React$1.ReactNode;
|
|
23051
23073
|
hiddenLabel: boolean | undefined;
|
|
23052
23074
|
errorMessage: string | undefined;
|
|
23053
23075
|
handleManuallySetErrorMessage: ((message: string | undefined) => void) | undefined;
|
|
@@ -23401,7 +23423,7 @@ declare const ParameterSelectInner: React$1.ForwardRefExoticComponent<Omit<Param
|
|
|
23401
23423
|
declare const extractParameterProps: <T>(props: T & CommonParameterInputProps) => {
|
|
23402
23424
|
shellProps: {
|
|
23403
23425
|
id: string;
|
|
23404
|
-
label:
|
|
23426
|
+
label: ReactNode;
|
|
23405
23427
|
caption: string | undefined;
|
|
23406
23428
|
captionTestId: string | undefined;
|
|
23407
23429
|
errorMessage: string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -21109,6 +21109,11 @@ declare const allSupportedIcons: {
|
|
|
21109
21109
|
yinyang: _react_icons_all_files.IconType;
|
|
21110
21110
|
'zoom-in': _react_icons_all_files.IconType;
|
|
21111
21111
|
'zoom-out': _react_icons_all_files.IconType;
|
|
21112
|
+
'device-mobile': _react_icons_all_files.IconType;
|
|
21113
|
+
'device-tablet': _react_icons_all_files.IconType;
|
|
21114
|
+
'device-tv': _react_icons_all_files.IconType;
|
|
21115
|
+
'device-ipad': _react_icons_all_files.IconType;
|
|
21116
|
+
'device-mobile-rotated': _react_icons_all_files.IconType;
|
|
21112
21117
|
};
|
|
21113
21118
|
|
|
21114
21119
|
/** A list of available icon names that can be used with the Uniform brand */
|
|
@@ -21385,6 +21390,11 @@ type ChipProps = {
|
|
|
21385
21390
|
* @default 'span'
|
|
21386
21391
|
*/
|
|
21387
21392
|
as?: 'span' | 'button';
|
|
21393
|
+
/**
|
|
21394
|
+
* Whether the chip is visually disabled
|
|
21395
|
+
* @default false
|
|
21396
|
+
*/
|
|
21397
|
+
isDisabled?: boolean;
|
|
21388
21398
|
} & React.HTMLAttributes<HTMLSpanElement>;
|
|
21389
21399
|
/**
|
|
21390
21400
|
* @description Chips are used in a variety of ways
|
|
@@ -21393,7 +21403,7 @@ type ChipProps = {
|
|
|
21393
21403
|
* To represent a different object, as a reference
|
|
21394
21404
|
* @example <Chip text="productId" theme="accent-light" chipAction={<DismissibleChipAction onDismiss={() => {...}}/>} />
|
|
21395
21405
|
*/
|
|
21396
|
-
declare const Chip: ({ icon, iconColor, text, size, theme, variant, chipAction, as, ...props }: ChipProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
21406
|
+
declare const Chip: ({ icon, iconColor, text, size, theme, variant, chipAction, isDisabled, as, ...props }: ChipProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
21397
21407
|
type DismissibleChipActionProps = {
|
|
21398
21408
|
onDismiss: () => void;
|
|
21399
21409
|
} & HTMLAttributes<HTMLButtonElement>;
|
|
@@ -21922,7 +21932,7 @@ declare const InfoMessage: ({ message, testId, icon, ...props }: InfoMessageProp
|
|
|
21922
21932
|
|
|
21923
21933
|
type InputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
21924
21934
|
/** (optional) sets the label value */
|
|
21925
|
-
label?: string;
|
|
21935
|
+
label?: string | React$1.ReactNode;
|
|
21926
21936
|
/** (optional) sets caption text value */
|
|
21927
21937
|
caption?: string | JSX.Element;
|
|
21928
21938
|
/** (optional) add an input icon to the input field */
|
|
@@ -21965,7 +21975,7 @@ type InputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
|
21965
21975
|
*/
|
|
21966
21976
|
declare const Input: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
21967
21977
|
/** (optional) sets the label value */
|
|
21968
|
-
label?: string;
|
|
21978
|
+
label?: string | React$1.ReactNode;
|
|
21969
21979
|
/** (optional) sets caption text value */
|
|
21970
21980
|
caption?: string | JSX.Element;
|
|
21971
21981
|
/** (optional) add an input icon to the input field */
|
|
@@ -22758,6 +22768,9 @@ declare function MenuItemIcon({ icon }: {
|
|
|
22758
22768
|
*/
|
|
22759
22769
|
declare function MenuItemEmptyIcon(): _emotion_react_jsx_runtime.JSX.Element;
|
|
22760
22770
|
|
|
22771
|
+
/**
|
|
22772
|
+
* @deprecated this is deprecated and will be removed in the next major release. Use MenuGroup instead.
|
|
22773
|
+
*/
|
|
22761
22774
|
declare const MenuItemHeading: ({ children }: {
|
|
22762
22775
|
children: ReactNode;
|
|
22763
22776
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
@@ -22826,8 +22839,11 @@ declare const MediaCard: ({ title, subtitle, infoPopover, cover, menuItems, side
|
|
|
22826
22839
|
type ModalProps = {
|
|
22827
22840
|
header?: React__default.ReactNode;
|
|
22828
22841
|
children?: React__default.ReactNode;
|
|
22829
|
-
/**
|
|
22830
|
-
|
|
22842
|
+
/**
|
|
22843
|
+
* Called when the close button is clicked, the Escape button is pressed, or when the modal's backdrop is clicked.
|
|
22844
|
+
* If undefined is passed, the modal will not be closable by the user and the close button will not be rendered.
|
|
22845
|
+
*/
|
|
22846
|
+
onRequestClose: (() => void) | undefined;
|
|
22831
22847
|
/** The size sets the modal width to one of three options sm = 400px, md = 600px and lg = 800px
|
|
22832
22848
|
* if a width attribute is used the size will be overridden by the width attribute
|
|
22833
22849
|
* @default 'lg'
|
|
@@ -22847,6 +22863,12 @@ type ModalProps = {
|
|
|
22847
22863
|
withoutContentBackground?: boolean;
|
|
22848
22864
|
/** Places buttons at the bottom of the modal */
|
|
22849
22865
|
buttonGroup?: ReactNode;
|
|
22866
|
+
/**
|
|
22867
|
+
* Disables scrolling of the modal body if the content exceeds the height.
|
|
22868
|
+
* Can be required for modals that have comboboxes where the menu items are expected
|
|
22869
|
+
* to overflow the bounds of the modal.
|
|
22870
|
+
*/
|
|
22871
|
+
disableBodyScroll?: boolean;
|
|
22850
22872
|
} & React__default.HTMLProps<HTMLDialogElement>;
|
|
22851
22873
|
/**
|
|
22852
22874
|
* A modal component to open a dialog with a backdrop that covers the whole page.
|
|
@@ -22992,7 +23014,7 @@ declare function Pagination({ limit, offset, total, onPageChange, }: {
|
|
|
22992
23014
|
|
|
22993
23015
|
type CommonParameterProps = {
|
|
22994
23016
|
/** sets the label value */
|
|
22995
|
-
label: string;
|
|
23017
|
+
label: string | ReactNode;
|
|
22996
23018
|
/** (optional): allows user to pass a component before the label */
|
|
22997
23019
|
labelLeadingIcon?: ReactNode;
|
|
22998
23020
|
/** (optional): allows user to pass a component after the label */
|
|
@@ -23047,7 +23069,7 @@ type CommonParameterSelectProps = {
|
|
|
23047
23069
|
declare const ParameterShellContext: React$1.Context<CommonParameterProps>;
|
|
23048
23070
|
declare const useParameterShell: () => {
|
|
23049
23071
|
id: string;
|
|
23050
|
-
label:
|
|
23072
|
+
label: React$1.ReactNode;
|
|
23051
23073
|
hiddenLabel: boolean | undefined;
|
|
23052
23074
|
errorMessage: string | undefined;
|
|
23053
23075
|
handleManuallySetErrorMessage: ((message: string | undefined) => void) | undefined;
|
|
@@ -23401,7 +23423,7 @@ declare const ParameterSelectInner: React$1.ForwardRefExoticComponent<Omit<Param
|
|
|
23401
23423
|
declare const extractParameterProps: <T>(props: T & CommonParameterInputProps) => {
|
|
23402
23424
|
shellProps: {
|
|
23403
23425
|
id: string;
|
|
23404
|
-
label:
|
|
23426
|
+
label: ReactNode;
|
|
23405
23427
|
caption: string | undefined;
|
|
23406
23428
|
captionTestId: string | undefined;
|
|
23407
23429
|
errorMessage: string | undefined;
|
package/dist/index.js
CHANGED
|
@@ -45,7 +45,7 @@ var importedIcons_exports = {};
|
|
|
45
45
|
__export(importedIcons_exports, {
|
|
46
46
|
importedIcons: () => importedIcons
|
|
47
47
|
});
|
|
48
|
-
var import_CgAdd, import_CgAddR, import_CgAirplane, import_CgAlarm, import_CgAlbum, import_CgAlignBottom, import_CgAlignCenter, import_CgAlignLeft, import_CgAlignMiddle, import_CgAlignRight, import_CgAlignTop, import_CgAnchor, import_CgAppleWatch, import_CgArrangeBack, import_CgArrangeFront, import_CgArrowAlignH, import_CgArrowAlignV, import_CgArrowBottomLeft, import_CgArrowBottomLeftO, import_CgArrowBottomLeftR, import_CgArrowBottomRight, import_CgArrowBottomRightO, import_CgArrowBottomRightR, import_CgArrowDown, import_CgArrowDownO, import_CgArrowDownR, import_CgArrowLeft, import_CgArrowLeftO, import_CgArrowLeftR, import_CgArrowLongDown, import_CgArrowLongDownC, import_CgArrowLongDownE, import_CgArrowLongDownL, import_CgArrowLongDownR, import_CgArrowLongLeft, import_CgArrowLongLeftC, import_CgArrowLongLeftE, import_CgArrowLongLeftL, import_CgArrowLongLeftR, import_CgArrowLongRight, import_CgArrowLongRightC, import_CgArrowLongRightE, import_CgArrowLongRightL, import_CgArrowLongRightR, import_CgArrowLongUp, import_CgArrowLongUpC, import_CgArrowLongUpE, import_CgArrowLongUpL, import_CgArrowLongUpR, import_CgArrowRight, import_CgArrowRightO, import_CgArrowRightR, import_CgArrowsBreakeH, import_CgArrowsBreakeV, import_CgArrowsExchange, import_CgArrowsExchangeAlt, import_CgArrowsExchangeAltV, import_CgArrowsExchangeV, import_CgArrowsExpandDownLeft, import_CgArrowsExpandDownRight, import_CgArrowsExpandLeft, import_CgArrowsExpandLeftAlt, import_CgArrowsExpandRight, import_CgArrowsExpandRightAlt, import_CgArrowsExpandUpLeft, import_CgArrowsExpandUpRight, import_CgArrowsH, import_CgArrowsHAlt, import_CgArrowsMergeAltH, import_CgArrowsMergeAltV, import_CgArrowsScrollH, import_CgArrowsScrollV, import_CgArrowsShrinkH, import_CgArrowsShrinkV, import_CgArrowsV, import_CgArrowsVAlt, import_CgArrowTopLeft, import_CgArrowTopLeftO, import_CgArrowTopLeftR, import_CgArrowTopRight, import_CgArrowTopRightO, import_CgArrowTopRightR, import_CgArrowUp, import_CgArrowUpO, import_CgArrowUpR, import_CgAssign, import_CgAsterisk, import_CgAttachment, import_CgAttribution, import_CgAwards, import_CgBackspace, import_CgBandAid, import_CgBattery, import_CgBatteryEmpty, import_CgBatteryFull, import_CgBee, import_CgBell, import_CgBitbucket, import_CgBlock, import_CgBoard, import_CgBolt, import_CgBookmark, import_CgBorderAll, import_CgBorderBottom, import_CgBorderLeft, import_CgBorderRight, import_CgBorderStyleDashed, import_CgBorderStyleDotted, import_CgBorderStyleSolid, import_CgBot, import_CgBowl, import_CgBox, import_CgBoy, import_CgBriefcase, import_CgBrowse, import_CgBrowser, import_CgBrush, import_CgBulb, import_CgCalculator, import_CgCalendar, import_CgCalendarDates, import_CgCalendarDue, import_CgCalendarNext, import_CgCalendarToday, import_CgCalendarTwo, import_CgCalibrate, import_CgCamera, import_CgCap, import_CgCaptions, import_CgCardClubs, import_CgCardDiamonds, import_CgCardHearts, import_CgCardSpades, import_CgCarousel, import_CgCast, import_CgChart, import_CgCheck, import_CgCheckO, import_CgCheckR, import_CgChevronDoubleDown, import_CgChevronDoubleDownO, import_CgChevronDoubleDownR, import_CgChevronDoubleLeft, import_CgChevronDoubleLeftO, import_CgChevronDoubleLeftR, import_CgChevronDoubleRight, import_CgChevronDoubleRightO, import_CgChevronDoubleRightR, import_CgChevronDoubleUp, import_CgChevronDoubleUpO, import_CgChevronDoubleUpR, import_CgChevronDown, import_CgChevronDownO, import_CgChevronDownR, import_CgChevronLeft, import_CgChevronLeftO, import_CgChevronLeftR, import_CgChevronRight, import_CgChevronRightO, import_CgChevronRightR, import_CgChevronUp, import_CgChevronUpO, import_CgChevronUpR, import_CgClapperBoard, import_CgClipboard, import_CgClose, import_CgCloseO, import_CgCloseR, import_CgCloud, import_CgCode, import_CgCodeSlash, import_CgCoffee, import_CgCollage, import_CgColorBucket, import_CgColorPicker, import_CgComment, import_CgCommunity, import_CgComponents, import_CgCompress, import_CgCompressLeft, import_CgCompressRight, import_CgCompressV, import_CgController, import_CgCopy, import_CgCopyright, import_CgCornerDoubleDownLeft, import_CgCornerDoubleDownRight, import_CgCornerDoubleLeftDown, import_CgCornerDoubleLeftUp, import_CgCornerDoubleRightDown, import_CgCornerDoubleRightUp, import_CgCornerDoubleUpLeft, import_CgCornerDoubleUpRight, import_CgCornerDownLeft, import_CgCornerDownRight, import_CgCornerLeftDown, import_CgCornerLeftUp, import_CgCornerRightDown, import_CgCornerRightUp, import_CgCornerUpLeft, import_CgCornerUpRight, import_CgCPlusPlus, import_CgCreditCard, import_CgCrop, import_CgCross, import_CgCrown, import_CgDanger, import_CgDarkMode, import_CgData, import_CgDatabase, import_CgDebug, import_CgDesktop, import_CgDetailsLess, import_CgDetailsMore, import_CgDialpad, import_CgDice1, import_CgDice2, import_CgDice3, import_CgDice4, import_CgDice5, import_CgDice6, import_CgDisc, import_CgDisplayFlex, import_CgDisplayFullwidth, import_CgDisplayGrid, import_CgDisplaySpacing, import_CgDistributeHorizontal, import_CgDistributeVertical, import_CgDockBottom, import_CgDockLeft, import_CgDockRight, import_CgDockWindow, import_CgDollar, import_CgDrive, import_CgDrop, import_CgDropInvert, import_CgDropOpacity, import_CgDuplicate, import_CgEditBlackPoint, import_CgEditContrast, import_CgEditExposure, import_CgEditFade, import_CgEditFlipH, import_CgEditFlipV, import_CgEditHighlight, import_CgEditMarkup, import_CgEditMask, import_CgEditNoise, import_CgEditShadows, import_CgEditStraight, import_CgEditUnmask, import_CgEject, import_CgEnter, import_CgErase, import_CgEreader, import_CgEricsson, import_CgEthernet, import_CgEuro, import_CgExpand, import_CgExport, import_CgExtension, import_CgExtensionAdd, import_CgExtensionAlt, import_CgExtensionRemove, import_CgExternal, import_CgEye, import_CgEyeAlt, import_CgFeed, import_CgFile, import_CgFileAdd, import_CgFileDocument, import_CgFileRemove, import_CgFilm, import_CgFilters, import_CgFlag, import_CgFlagAlt, import_CgFolder, import_CgFolderAdd, import_CgFolderRemove, import_CgFontHeight, import_CgFontSpacing, import_CgFormatBold, import_CgFormatCenter, import_CgFormatColor, import_CgFormatHeading, import_CgFormatIndentDecrease, import_CgFormatIndentIncrease, import_CgFormatItalic, import_CgFormatJustify, import_CgFormatLeft, import_CgFormatLineHeight, import_CgFormatRight, import_CgFormatSeparator, import_CgFormatSlash, import_CgFormatStrike, import_CgFormatText, import_CgFormatUnderline, import_CgFormatUppercase, import_CgGames, import_CgGenderFemale, import_CgGenderMale, import_CgGhostCharacter, import_CgGift, import_CgGirl, import_CgGitBranch, import_CgGitCommit, import_CgGitFork, import_CgGitPull, import_CgGlass, import_CgGlassAlt, import_CgGlobe, import_CgGlobeAlt, import_CgGym, import_CgHashtag, import_CgHeadset, import_CgHeart, import_CgHome, import_CgHomeAlt, import_CgHomeScreen, import_CgIcecream, import_CgImage, import_CgImport, import_CgInbox, import_CgInfinity, import_CgInfo, import_CgInpicture, import_CgInsertAfter, import_CgInsertAfterO, import_CgInsertAfterR, import_CgInsertBefore, import_CgInsertBeforeO, import_CgInsertBeforeR, import_CgInsights, import_CgInternal, import_CgKey, import_CgKeyboard, import_CgKeyhole, import_CgLaptop, import_CgLayoutGrid, import_CgLayoutGridSmall, import_CgLayoutList, import_CgLayoutPin, import_CgLink, import_CgList, import_CgListTree, import_CgLivePhoto, import_CgLoadbar, import_CgLoadbarAlt, import_CgLoadbarDoc, import_CgLoadbarSound, import_CgLock, import_CgLockUnlock, import_CgLogIn, import_CgLogOff, import_CgLogOut, import_CgLoupe, import_CgMagnet, import_CgMail, import_CgMailForward, import_CgMailOpen, import_CgMailReply, import_CgMathDivide, import_CgMathEqual, import_CgMathMinus, import_CgMathPercent, import_CgMathPlus, import_CgMaximize, import_CgMaximizeAlt, import_CgMediaLive, import_CgMediaPodcast, import_CgMenu, import_CgMenuBoxed, import_CgMenuCake, import_CgMenuCheese, import_CgMenuGridO, import_CgMenuGridR, import_CgMenuHotdog, import_CgMenuLeft, import_CgMenuLeftAlt, import_CgMenuMotion, import_CgMenuOreos, import_CgMenuRight, import_CgMenuRightAlt, import_CgMenuRound, import_CgMergeHorizontal, import_CgMergeVertical, import_CgMic, import_CgMinimize, import_CgMinimizeAlt, import_CgMiniPlayer, import_CgModem, import_CgMoon, import_CgMore, import_CgMoreAlt, import_CgMoreO, import_CgMoreR, import_CgMoreVertical, import_CgMoreVerticalAlt, import_CgMoreVerticalO, import_CgMoreVerticalR, import_CgMouse, import_CgMoveDown, import_CgMoveLeft, import_CgMoveRight, import_CgMoveTask, import_CgMoveUp, import_CgMusic, import_CgMusicNote, import_CgMusicSpeaker, import_CgNametag, import_CgNotes, import_CgNotifications, import_CgOptions, import_CgOrganisation, import_CgPassword, import_CgPathBack, import_CgPathCrop, import_CgPathDivide, import_CgPathExclude, import_CgPathFront, import_CgPathIntersect, import_CgPathOutline, import_CgPathTrim, import_CgPathUnite, import_CgPen, import_CgPentagonBottomLeft, import_CgPentagonBottomRight, import_CgPentagonDown, import_CgPentagonLeft, import_CgPentagonRight, import_CgPentagonTopLeft, import_CgPentagonTopRight, import_CgPentagonUp, import_CgPerformance, import_CgPhone, import_CgPhotoscan, import_CgPiano, import_CgPill, import_CgPin, import_CgPinAlt, import_CgPinBottom, import_CgPinTop, import_CgPlayBackwards, import_CgPlayButton, import_CgPlayButtonO, import_CgPlayButtonR, import_CgPlayForwards, import_CgPlayList, import_CgPlayListAdd, import_CgPlayListCheck, import_CgPlayListRemove, import_CgPlayListSearch, import_CgPlayPause, import_CgPlayPauseO, import_CgPlayPauseR, import_CgPlayStop, import_CgPlayStopO, import_CgPlayStopR, import_CgPlayTrackNext, import_CgPlayTrackNextO, import_CgPlayTrackNextR, import_CgPlayTrackPrev, import_CgPlayTrackPrevO, import_CgPlayTrackPrevR, import_CgPlug, import_CgPolaroid, import_CgPoll, import_CgPresentation, import_CgPrinter, import_CgProfile, import_CgPullClear, import_CgPushChevronDown, import_CgPushChevronDownO, import_CgPushChevronDownR, import_CgPushChevronLeft, import_CgPushChevronLeftO, import_CgPushChevronLeftR, import_CgPushChevronRight, import_CgPushChevronRightO, import_CgPushChevronRightR, import_CgPushChevronUp, import_CgPushChevronUpO, import_CgPushChevronUpR, import_CgPushDown, import_CgPushLeft, import_CgPushRight, import_CgPushUp, import_CgQr, import_CgQuote, import_CgQuoteO, import_CgRadioCheck, import_CgRadioChecked, import_CgRatio, import_CgRead, import_CgReadme, import_CgRecord, import_CgRedo, import_CgRemote, import_CgRemove, import_CgRemoveR, import_CgRename, import_CgReorder, import_CgRepeat, import_CgRing, import_CgRowFirst, import_CgRowLast, import_CgRuler, import_CgSandClock, import_CgScan, import_CgScreen, import_CgScreenMirror, import_CgScreenShot, import_CgScreenWide, import_CgScrollH, import_CgScrollV, import_CgSearch, import_CgSearchFound, import_CgSearchLoading, import_CgSelect, import_CgSelectO, import_CgSelectR, import_CgServer, import_CgShapeCircle, import_CgShapeHalfCircle, import_CgShapeHexagon, import_CgShapeRhombus, import_CgShapeSquare, import_CgShapeTriangle, import_CgShapeZigzag, import_CgShare, import_CgShield, import_CgShoppingBag, import_CgShoppingCart, import_CgShortcut, import_CgSidebar, import_CgSidebarOpen, import_CgSidebarRight, import_CgSignal, import_CgSize, import_CgSleep, import_CgSmartHomeBoiler, import_CgSmartHomeCooker, import_CgSmartHomeHeat, import_CgSmartHomeLight, import_CgSmartHomeRefrigerator, import_CgSmartHomeWashMachine, import_CgSmartphone, import_CgSmartphoneChip, import_CgSmartphoneRam, import_CgSmartphoneShake, import_CgSmile, import_CgSmileMouthOpen, import_CgSmileNeutral, import_CgSmileNoMouth, import_CgSmileNone, import_CgSmileSad, import_CgSmileUpside, import_CgSoftwareDownload, import_CgSoftwareUpload, import_CgSortAz, import_CgSortZa, import_CgSpaceBetween, import_CgSpaceBetweenV, import_CgSpinner, import_CgSpinnerAlt, import_CgSpinnerTwo, import_CgSpinnerTwoAlt, import_CgStack, import_CgStopwatch, import_CgStories, import_CgStyle, import_CgSun, import_CgSupport, import_CgSwap, import_CgSwapVertical, import_CgSweden, import_CgSwiss, import_CgSync, import_CgTab, import_CgTag, import_CgTapDouble, import_CgTapSingle, import_CgTemplate, import_CgTennis, import_CgTerminal, import_CgTerrain, import_CgThermometer, import_CgThermostat, import_CgTikcode, import_CgTime, import_CgTimelapse, import_CgTimer, import_CgToday, import_CgToggleOff, import_CgToggleOn, import_CgToggleSquare, import_CgToggleSquareOff, import_CgToolbarBottom, import_CgToolbarLeft, import_CgToolbarRight, import_CgToolbarTop, import_CgToolbox, import_CgTouchpad, import_CgTrack, import_CgTranscript, import_CgTrash, import_CgTrashEmpty, import_CgTree, import_CgTrees, import_CgTrending, import_CgTrendingDown, import_CgTrophy, import_CgTv, import_CgUiKit, import_CgUmbrella, import_CgUnavailable, import_CgUnblock, import_CgUndo, import_CgUnsplash, import_CgUsb, import_CgUsbC, import_CgUser, import_CgUserAdd, import_CgUserList, import_CgUserRemove, import_CgViewCols, import_CgViewComfortable, import_CgViewDay, import_CgViewGrid, import_CgViewList, import_CgViewMonth, import_CgViewSplit, import_CgVinyl, import_CgVoicemail, import_CgVoicemailO, import_CgVoicemailR, import_CgVolume, import_CgWebcam, import_CgWebsite, import_CgWorkAlt, import_CgYinyang, import_CgZoomIn, import_CgZoomOut, import_MdCopyAll, importedIcons;
|
|
48
|
+
var import_CgAdd, import_CgAddR, import_CgAirplane, import_CgAlarm, import_CgAlbum, import_CgAlignBottom, import_CgAlignCenter, import_CgAlignLeft, import_CgAlignMiddle, import_CgAlignRight, import_CgAlignTop, import_CgAnchor, import_CgAppleWatch, import_CgArrangeBack, import_CgArrangeFront, import_CgArrowAlignH, import_CgArrowAlignV, import_CgArrowBottomLeft, import_CgArrowBottomLeftO, import_CgArrowBottomLeftR, import_CgArrowBottomRight, import_CgArrowBottomRightO, import_CgArrowBottomRightR, import_CgArrowDown, import_CgArrowDownO, import_CgArrowDownR, import_CgArrowLeft, import_CgArrowLeftO, import_CgArrowLeftR, import_CgArrowLongDown, import_CgArrowLongDownC, import_CgArrowLongDownE, import_CgArrowLongDownL, import_CgArrowLongDownR, import_CgArrowLongLeft, import_CgArrowLongLeftC, import_CgArrowLongLeftE, import_CgArrowLongLeftL, import_CgArrowLongLeftR, import_CgArrowLongRight, import_CgArrowLongRightC, import_CgArrowLongRightE, import_CgArrowLongRightL, import_CgArrowLongRightR, import_CgArrowLongUp, import_CgArrowLongUpC, import_CgArrowLongUpE, import_CgArrowLongUpL, import_CgArrowLongUpR, import_CgArrowRight, import_CgArrowRightO, import_CgArrowRightR, import_CgArrowsBreakeH, import_CgArrowsBreakeV, import_CgArrowsExchange, import_CgArrowsExchangeAlt, import_CgArrowsExchangeAltV, import_CgArrowsExchangeV, import_CgArrowsExpandDownLeft, import_CgArrowsExpandDownRight, import_CgArrowsExpandLeft, import_CgArrowsExpandLeftAlt, import_CgArrowsExpandRight, import_CgArrowsExpandRightAlt, import_CgArrowsExpandUpLeft, import_CgArrowsExpandUpRight, import_CgArrowsH, import_CgArrowsHAlt, import_CgArrowsMergeAltH, import_CgArrowsMergeAltV, import_CgArrowsScrollH, import_CgArrowsScrollV, import_CgArrowsShrinkH, import_CgArrowsShrinkV, import_CgArrowsV, import_CgArrowsVAlt, import_CgArrowTopLeft, import_CgArrowTopLeftO, import_CgArrowTopLeftR, import_CgArrowTopRight, import_CgArrowTopRightO, import_CgArrowTopRightR, import_CgArrowUp, import_CgArrowUpO, import_CgArrowUpR, import_CgAssign, import_CgAsterisk, import_CgAttachment, import_CgAttribution, import_CgAwards, import_CgBackspace, import_CgBandAid, import_CgBattery, import_CgBatteryEmpty, import_CgBatteryFull, import_CgBee, import_CgBell, import_CgBitbucket, import_CgBlock, import_CgBoard, import_CgBolt, import_CgBookmark, import_CgBorderAll, import_CgBorderBottom, import_CgBorderLeft, import_CgBorderRight, import_CgBorderStyleDashed, import_CgBorderStyleDotted, import_CgBorderStyleSolid, import_CgBot, import_CgBowl, import_CgBox, import_CgBoy, import_CgBriefcase, import_CgBrowse, import_CgBrowser, import_CgBrush, import_CgBulb, import_CgCalculator, import_CgCalendar, import_CgCalendarDates, import_CgCalendarDue, import_CgCalendarNext, import_CgCalendarToday, import_CgCalendarTwo, import_CgCalibrate, import_CgCamera, import_CgCap, import_CgCaptions, import_CgCardClubs, import_CgCardDiamonds, import_CgCardHearts, import_CgCardSpades, import_CgCarousel, import_CgCast, import_CgChart, import_CgCheck, import_CgCheckO, import_CgCheckR, import_CgChevronDoubleDown, import_CgChevronDoubleDownO, import_CgChevronDoubleDownR, import_CgChevronDoubleLeft, import_CgChevronDoubleLeftO, import_CgChevronDoubleLeftR, import_CgChevronDoubleRight, import_CgChevronDoubleRightO, import_CgChevronDoubleRightR, import_CgChevronDoubleUp, import_CgChevronDoubleUpO, import_CgChevronDoubleUpR, import_CgChevronDown, import_CgChevronDownO, import_CgChevronDownR, import_CgChevronLeft, import_CgChevronLeftO, import_CgChevronLeftR, import_CgChevronRight, import_CgChevronRightO, import_CgChevronRightR, import_CgChevronUp, import_CgChevronUpO, import_CgChevronUpR, import_CgClapperBoard, import_CgClipboard, import_CgClose, import_CgCloseO, import_CgCloseR, import_CgCloud, import_CgCode, import_CgCodeSlash, import_CgCoffee, import_CgCollage, import_CgColorBucket, import_CgColorPicker, import_CgComment, import_CgCommunity, import_CgComponents, import_CgCompress, import_CgCompressLeft, import_CgCompressRight, import_CgCompressV, import_CgController, import_CgCopy, import_CgCopyright, import_CgCornerDoubleDownLeft, import_CgCornerDoubleDownRight, import_CgCornerDoubleLeftDown, import_CgCornerDoubleLeftUp, import_CgCornerDoubleRightDown, import_CgCornerDoubleRightUp, import_CgCornerDoubleUpLeft, import_CgCornerDoubleUpRight, import_CgCornerDownLeft, import_CgCornerDownRight, import_CgCornerLeftDown, import_CgCornerLeftUp, import_CgCornerRightDown, import_CgCornerRightUp, import_CgCornerUpLeft, import_CgCornerUpRight, import_CgCPlusPlus, import_CgCreditCard, import_CgCrop, import_CgCross, import_CgCrown, import_CgDanger, import_CgDarkMode, import_CgData, import_CgDatabase, import_CgDebug, import_CgDesktop, import_CgDetailsLess, import_CgDetailsMore, import_CgDialpad, import_CgDice1, import_CgDice2, import_CgDice3, import_CgDice4, import_CgDice5, import_CgDice6, import_CgDisc, import_CgDisplayFlex, import_CgDisplayFullwidth, import_CgDisplayGrid, import_CgDisplaySpacing, import_CgDistributeHorizontal, import_CgDistributeVertical, import_CgDockBottom, import_CgDockLeft, import_CgDockRight, import_CgDockWindow, import_CgDollar, import_CgDrive, import_CgDrop, import_CgDropInvert, import_CgDropOpacity, import_CgDuplicate, import_CgEditBlackPoint, import_CgEditContrast, import_CgEditExposure, import_CgEditFade, import_CgEditFlipH, import_CgEditFlipV, import_CgEditHighlight, import_CgEditMarkup, import_CgEditMask, import_CgEditNoise, import_CgEditShadows, import_CgEditStraight, import_CgEditUnmask, import_CgEject, import_CgEnter, import_CgErase, import_CgEreader, import_CgEricsson, import_CgEthernet, import_CgEuro, import_CgExpand, import_CgExport, import_CgExtension, import_CgExtensionAdd, import_CgExtensionAlt, import_CgExtensionRemove, import_CgExternal, import_CgEye, import_CgEyeAlt, import_CgFeed, import_CgFile, import_CgFileAdd, import_CgFileDocument, import_CgFileRemove, import_CgFilm, import_CgFilters, import_CgFlag, import_CgFlagAlt, import_CgFolder, import_CgFolderAdd, import_CgFolderRemove, import_CgFontHeight, import_CgFontSpacing, import_CgFormatBold, import_CgFormatCenter, import_CgFormatColor, import_CgFormatHeading, import_CgFormatIndentDecrease, import_CgFormatIndentIncrease, import_CgFormatItalic, import_CgFormatJustify, import_CgFormatLeft, import_CgFormatLineHeight, import_CgFormatRight, import_CgFormatSeparator, import_CgFormatSlash, import_CgFormatStrike, import_CgFormatText, import_CgFormatUnderline, import_CgFormatUppercase, import_CgGames, import_CgGenderFemale, import_CgGenderMale, import_CgGhostCharacter, import_CgGift, import_CgGirl, import_CgGitBranch, import_CgGitCommit, import_CgGitFork, import_CgGitPull, import_CgGlass, import_CgGlassAlt, import_CgGlobe, import_CgGlobeAlt, import_CgGym, import_CgHashtag, import_CgHeadset, import_CgHeart, import_CgHome, import_CgHomeAlt, import_CgHomeScreen, import_CgIcecream, import_CgImage, import_CgImport, import_CgInbox, import_CgInfinity, import_CgInfo, import_CgInpicture, import_CgInsertAfter, import_CgInsertAfterO, import_CgInsertAfterR, import_CgInsertBefore, import_CgInsertBeforeO, import_CgInsertBeforeR, import_CgInsights, import_CgInternal, import_CgKey, import_CgKeyboard, import_CgKeyhole, import_CgLaptop, import_CgLayoutGrid, import_CgLayoutGridSmall, import_CgLayoutList, import_CgLayoutPin, import_CgLink, import_CgList, import_CgListTree, import_CgLivePhoto, import_CgLoadbar, import_CgLoadbarAlt, import_CgLoadbarDoc, import_CgLoadbarSound, import_CgLock, import_CgLockUnlock, import_CgLogIn, import_CgLogOff, import_CgLogOut, import_CgLoupe, import_CgMagnet, import_CgMail, import_CgMailForward, import_CgMailOpen, import_CgMailReply, import_CgMathDivide, import_CgMathEqual, import_CgMathMinus, import_CgMathPercent, import_CgMathPlus, import_CgMaximize, import_CgMaximizeAlt, import_CgMediaLive, import_CgMediaPodcast, import_CgMenu, import_CgMenuBoxed, import_CgMenuCake, import_CgMenuCheese, import_CgMenuGridO, import_CgMenuGridR, import_CgMenuHotdog, import_CgMenuLeft, import_CgMenuLeftAlt, import_CgMenuMotion, import_CgMenuOreos, import_CgMenuRight, import_CgMenuRightAlt, import_CgMenuRound, import_CgMergeHorizontal, import_CgMergeVertical, import_CgMic, import_CgMinimize, import_CgMinimizeAlt, import_CgMiniPlayer, import_CgModem, import_CgMoon, import_CgMore, import_CgMoreAlt, import_CgMoreO, import_CgMoreR, import_CgMoreVertical, import_CgMoreVerticalAlt, import_CgMoreVerticalO, import_CgMoreVerticalR, import_CgMouse, import_CgMoveDown, import_CgMoveLeft, import_CgMoveRight, import_CgMoveTask, import_CgMoveUp, import_CgMusic, import_CgMusicNote, import_CgMusicSpeaker, import_CgNametag, import_CgNotes, import_CgNotifications, import_CgOptions, import_CgOrganisation, import_CgPassword, import_CgPathBack, import_CgPathCrop, import_CgPathDivide, import_CgPathExclude, import_CgPathFront, import_CgPathIntersect, import_CgPathOutline, import_CgPathTrim, import_CgPathUnite, import_CgPen, import_CgPentagonBottomLeft, import_CgPentagonBottomRight, import_CgPentagonDown, import_CgPentagonLeft, import_CgPentagonRight, import_CgPentagonTopLeft, import_CgPentagonTopRight, import_CgPentagonUp, import_CgPerformance, import_CgPhone, import_CgPhotoscan, import_CgPiano, import_CgPill, import_CgPin, import_CgPinAlt, import_CgPinBottom, import_CgPinTop, import_CgPlayBackwards, import_CgPlayButton, import_CgPlayButtonO, import_CgPlayButtonR, import_CgPlayForwards, import_CgPlayList, import_CgPlayListAdd, import_CgPlayListCheck, import_CgPlayListRemove, import_CgPlayListSearch, import_CgPlayPause, import_CgPlayPauseO, import_CgPlayPauseR, import_CgPlayStop, import_CgPlayStopO, import_CgPlayStopR, import_CgPlayTrackNext, import_CgPlayTrackNextO, import_CgPlayTrackNextR, import_CgPlayTrackPrev, import_CgPlayTrackPrevO, import_CgPlayTrackPrevR, import_CgPlug, import_CgPolaroid, import_CgPoll, import_CgPresentation, import_CgPrinter, import_CgProfile, import_CgPullClear, import_CgPushChevronDown, import_CgPushChevronDownO, import_CgPushChevronDownR, import_CgPushChevronLeft, import_CgPushChevronLeftO, import_CgPushChevronLeftR, import_CgPushChevronRight, import_CgPushChevronRightO, import_CgPushChevronRightR, import_CgPushChevronUp, import_CgPushChevronUpO, import_CgPushChevronUpR, import_CgPushDown, import_CgPushLeft, import_CgPushRight, import_CgPushUp, import_CgQr, import_CgQuote, import_CgQuoteO, import_CgRadioCheck, import_CgRadioChecked, import_CgRatio, import_CgRead, import_CgReadme, import_CgRecord, import_CgRedo, import_CgRemote, import_CgRemove, import_CgRemoveR, import_CgRename, import_CgReorder, import_CgRepeat, import_CgRing, import_CgRowFirst, import_CgRowLast, import_CgRuler, import_CgSandClock, import_CgScan, import_CgScreen, import_CgScreenMirror, import_CgScreenShot, import_CgScreenWide, import_CgScrollH, import_CgScrollV, import_CgSearch, import_CgSearchFound, import_CgSearchLoading, import_CgSelect, import_CgSelectO, import_CgSelectR, import_CgServer, import_CgShapeCircle, import_CgShapeHalfCircle, import_CgShapeHexagon, import_CgShapeRhombus, import_CgShapeSquare, import_CgShapeTriangle, import_CgShapeZigzag, import_CgShare, import_CgShield, import_CgShoppingBag, import_CgShoppingCart, import_CgShortcut, import_CgSidebar, import_CgSidebarOpen, import_CgSidebarRight, import_CgSignal, import_CgSize, import_CgSleep, import_CgSmartHomeBoiler, import_CgSmartHomeCooker, import_CgSmartHomeHeat, import_CgSmartHomeLight, import_CgSmartHomeRefrigerator, import_CgSmartHomeWashMachine, import_CgSmartphone, import_CgSmartphoneChip, import_CgSmartphoneRam, import_CgSmartphoneShake, import_CgSmile, import_CgSmileMouthOpen, import_CgSmileNeutral, import_CgSmileNoMouth, import_CgSmileNone, import_CgSmileSad, import_CgSmileUpside, import_CgSoftwareDownload, import_CgSoftwareUpload, import_CgSortAz, import_CgSortZa, import_CgSpaceBetween, import_CgSpaceBetweenV, import_CgSpinner, import_CgSpinnerAlt, import_CgSpinnerTwo, import_CgSpinnerTwoAlt, import_CgStack, import_CgStopwatch, import_CgStories, import_CgStyle, import_CgSun, import_CgSupport, import_CgSwap, import_CgSwapVertical, import_CgSweden, import_CgSwiss, import_CgSync, import_CgTab, import_CgTag, import_CgTapDouble, import_CgTapSingle, import_CgTemplate, import_CgTennis, import_CgTerminal, import_CgTerrain, import_CgThermometer, import_CgThermostat, import_CgTikcode, import_CgTime, import_CgTimelapse, import_CgTimer, import_CgToday, import_CgToggleOff, import_CgToggleOn, import_CgToggleSquare, import_CgToggleSquareOff, import_CgToolbarBottom, import_CgToolbarLeft, import_CgToolbarRight, import_CgToolbarTop, import_CgToolbox, import_CgTouchpad, import_CgTrack, import_CgTranscript, import_CgTrash, import_CgTrashEmpty, import_CgTree, import_CgTrees, import_CgTrending, import_CgTrendingDown, import_CgTrophy, import_CgTv, import_CgUiKit, import_CgUmbrella, import_CgUnavailable, import_CgUnblock, import_CgUndo, import_CgUnsplash, import_CgUsb, import_CgUsbC, import_CgUser, import_CgUserAdd, import_CgUserList, import_CgUserRemove, import_CgViewCols, import_CgViewComfortable, import_CgViewDay, import_CgViewGrid, import_CgViewList, import_CgViewMonth, import_CgViewSplit, import_CgVinyl, import_CgVoicemail, import_CgVoicemailO, import_CgVoicemailR, import_CgVolume, import_CgWebcam, import_CgWebsite, import_CgWorkAlt, import_CgYinyang, import_CgZoomIn, import_CgZoomOut, import_MdCopyAll, import_TbDeviceIpad, import_TbDeviceMobile, import_TbDeviceMobileRotated, import_TbDeviceTablet, import_TbDeviceTv, importedIcons;
|
|
49
49
|
var init_importedIcons = __esm({
|
|
50
50
|
"src/components/Icons/importedIcons.ts"() {
|
|
51
51
|
"use strict";
|
|
@@ -694,6 +694,11 @@ var init_importedIcons = __esm({
|
|
|
694
694
|
import_CgZoomIn = require("@react-icons/all-files/cg/CgZoomIn");
|
|
695
695
|
import_CgZoomOut = require("@react-icons/all-files/cg/CgZoomOut");
|
|
696
696
|
import_MdCopyAll = require("@react-icons/all-files/md/MdCopyAll");
|
|
697
|
+
import_TbDeviceIpad = require("@react-icons/all-files/tb/TbDeviceIpad");
|
|
698
|
+
import_TbDeviceMobile = require("@react-icons/all-files/tb/TbDeviceMobile");
|
|
699
|
+
import_TbDeviceMobileRotated = require("@react-icons/all-files/tb/TbDeviceMobileRotated");
|
|
700
|
+
import_TbDeviceTablet = require("@react-icons/all-files/tb/TbDeviceTablet");
|
|
701
|
+
import_TbDeviceTv = require("@react-icons/all-files/tb/TbDeviceTv");
|
|
697
702
|
importedIcons = {
|
|
698
703
|
"add-r": import_CgAddR.CgAddR,
|
|
699
704
|
add: import_CgAdd.CgAdd,
|
|
@@ -1338,7 +1343,12 @@ var init_importedIcons = __esm({
|
|
|
1338
1343
|
"work-alt": import_CgWorkAlt.CgWorkAlt,
|
|
1339
1344
|
yinyang: import_CgYinyang.CgYinyang,
|
|
1340
1345
|
"zoom-in": import_CgZoomIn.CgZoomIn,
|
|
1341
|
-
"zoom-out": import_CgZoomOut.CgZoomOut
|
|
1346
|
+
"zoom-out": import_CgZoomOut.CgZoomOut,
|
|
1347
|
+
"device-mobile": import_TbDeviceMobile.TbDeviceMobile,
|
|
1348
|
+
"device-tablet": import_TbDeviceTablet.TbDeviceTablet,
|
|
1349
|
+
"device-tv": import_TbDeviceTv.TbDeviceTv,
|
|
1350
|
+
"device-ipad": import_TbDeviceIpad.TbDeviceIpad,
|
|
1351
|
+
"device-mobile-rotated": import_TbDeviceMobileRotated.TbDeviceMobileRotated
|
|
1342
1352
|
};
|
|
1343
1353
|
}
|
|
1344
1354
|
});
|
|
@@ -14764,7 +14774,7 @@ var Input = React10.forwardRef(
|
|
|
14764
14774
|
errorMessage ? inputError : void 0,
|
|
14765
14775
|
icon ? inputWithIcon : ""
|
|
14766
14776
|
],
|
|
14767
|
-
"aria-label":
|
|
14777
|
+
"aria-label": showLabel || typeof label !== "string" ? void 0 : label,
|
|
14768
14778
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
14769
14779
|
...props,
|
|
14770
14780
|
ref
|
|
@@ -15670,7 +15680,7 @@ var import_react58 = require("@emotion/react");
|
|
|
15670
15680
|
var buttonSizeBase = import_react58.css`
|
|
15671
15681
|
--icon-padding: var(--spacing-xs);
|
|
15672
15682
|
--svg-size: 1rem;
|
|
15673
|
-
--line-offset: -
|
|
15683
|
+
--line-offset: -1px;
|
|
15674
15684
|
font-size: var(--fs-sm);
|
|
15675
15685
|
|
|
15676
15686
|
button {
|
|
@@ -16917,6 +16927,9 @@ var ChipOutlined = import_react70.css`
|
|
|
16917
16927
|
border-color: var(--outline-color);
|
|
16918
16928
|
}
|
|
16919
16929
|
`;
|
|
16930
|
+
var ChipDisabled = import_react70.css`
|
|
16931
|
+
opacity: var(--opacity-50);
|
|
16932
|
+
`;
|
|
16920
16933
|
|
|
16921
16934
|
// src/components/Chip/Chip.tsx
|
|
16922
16935
|
var import_jsx_runtime62 = require("@emotion/react/jsx-runtime");
|
|
@@ -16936,6 +16949,7 @@ var Chip = ({
|
|
|
16936
16949
|
theme = "accent-light",
|
|
16937
16950
|
variant = "solid",
|
|
16938
16951
|
chipAction,
|
|
16952
|
+
isDisabled = false,
|
|
16939
16953
|
as = "span",
|
|
16940
16954
|
...props
|
|
16941
16955
|
}) => {
|
|
@@ -16952,7 +16966,8 @@ var Chip = ({
|
|
|
16952
16966
|
ChipContainer,
|
|
16953
16967
|
chipSize[size],
|
|
16954
16968
|
chipTheme[theme],
|
|
16955
|
-
variant === "outlined" ? ChipOutlined : void 0
|
|
16969
|
+
variant === "outlined" ? ChipOutlined : void 0,
|
|
16970
|
+
isDisabled ? ChipDisabled : void 0
|
|
16956
16971
|
],
|
|
16957
16972
|
...props,
|
|
16958
16973
|
children: [
|
|
@@ -20489,8 +20504,9 @@ var modalContentStyles = import_react118.css`
|
|
|
20489
20504
|
border-radius: var(--rounded-sm);
|
|
20490
20505
|
${scrollbarStyles}
|
|
20491
20506
|
`;
|
|
20492
|
-
var modalDialogWrapper = import_react118.css`
|
|
20493
|
-
|
|
20507
|
+
var modalDialogWrapper = (hasCloseButton) => import_react118.css`
|
|
20508
|
+
height: 100%;
|
|
20509
|
+
padding: ${hasCloseButton ? 0 : "var(--spacing-md)"} var(--spacing-lg) var(--spacing-md);
|
|
20494
20510
|
`;
|
|
20495
20511
|
var modalDialogInnerStyles = import_react118.css`
|
|
20496
20512
|
// we need to override the gap of the modalInnerStyles when using a modal dialog
|
|
@@ -20514,8 +20530,10 @@ var Modal = import_react120.default.forwardRef(
|
|
|
20514
20530
|
modalSize = "lg",
|
|
20515
20531
|
withoutContentPadding = false,
|
|
20516
20532
|
withoutContentBackground = false,
|
|
20533
|
+
disableBodyScroll = false,
|
|
20517
20534
|
...modalProps
|
|
20518
20535
|
}, ref) => {
|
|
20536
|
+
const mouseDownInsideModal = (0, import_react120.useRef)(false);
|
|
20519
20537
|
const dialogRef = (0, import_react120.useRef)(null);
|
|
20520
20538
|
const size = {
|
|
20521
20539
|
sm: modalSizeSmall,
|
|
@@ -20524,7 +20542,7 @@ var Modal = import_react120.default.forwardRef(
|
|
|
20524
20542
|
};
|
|
20525
20543
|
useShortcut({
|
|
20526
20544
|
handler: () => {
|
|
20527
|
-
onRequestClose();
|
|
20545
|
+
onRequestClose == null ? void 0 : onRequestClose();
|
|
20528
20546
|
},
|
|
20529
20547
|
shortcut: "escape"
|
|
20530
20548
|
});
|
|
@@ -20557,9 +20575,25 @@ var Modal = import_react120.default.forwardRef(
|
|
|
20557
20575
|
}
|
|
20558
20576
|
},
|
|
20559
20577
|
css: [modalStyles, !width ? size[modalSize] : void 0],
|
|
20560
|
-
style: {
|
|
20578
|
+
style: {
|
|
20579
|
+
width,
|
|
20580
|
+
height: height === "auto" ? "min-content" : height,
|
|
20581
|
+
// allows menus rendered in the PortalContext to overflow the modal contents
|
|
20582
|
+
// (internal scrolling of contents is handled on a child element)
|
|
20583
|
+
overflow: "visible"
|
|
20584
|
+
},
|
|
20561
20585
|
"data-testid": "side-dialog",
|
|
20562
|
-
onClick:
|
|
20586
|
+
onClick: () => {
|
|
20587
|
+
if (mouseDownInsideModal.current) {
|
|
20588
|
+
return;
|
|
20589
|
+
}
|
|
20590
|
+
onRequestClose == null ? void 0 : onRequestClose();
|
|
20591
|
+
},
|
|
20592
|
+
onMouseUp: () => {
|
|
20593
|
+
setTimeout(() => {
|
|
20594
|
+
mouseDownInsideModal.current = false;
|
|
20595
|
+
});
|
|
20596
|
+
},
|
|
20563
20597
|
onCancel: (e) => {
|
|
20564
20598
|
e.preventDefault();
|
|
20565
20599
|
},
|
|
@@ -20569,10 +20603,13 @@ var Modal = import_react120.default.forwardRef(
|
|
|
20569
20603
|
{
|
|
20570
20604
|
css: [modalInnerStyles, { height: height === "auto" ? "auto" : "100%" }],
|
|
20571
20605
|
onClick: (e) => e.stopPropagation(),
|
|
20606
|
+
onMouseDown: () => {
|
|
20607
|
+
mouseDownInsideModal.current = true;
|
|
20608
|
+
},
|
|
20572
20609
|
children: [
|
|
20573
|
-
/* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { css: modalHeaderStyles, children: [
|
|
20574
|
-
|
|
20575
|
-
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
20610
|
+
header2 || onRequestClose ? /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { css: modalHeaderStyles, children: [
|
|
20611
|
+
header2 ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { css: modalHeaderHeaderStyles, children: header2 }) : null,
|
|
20612
|
+
onRequestClose ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
20576
20613
|
Button,
|
|
20577
20614
|
{
|
|
20578
20615
|
type: "button",
|
|
@@ -20583,15 +20620,16 @@ var Modal = import_react120.default.forwardRef(
|
|
|
20583
20620
|
"data-testid": "close-dialog",
|
|
20584
20621
|
children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Icon, { icon: import_CgClose5.CgClose, iconColor: "currentColor", size: 24 })
|
|
20585
20622
|
}
|
|
20586
|
-
)
|
|
20587
|
-
] }),
|
|
20623
|
+
) : null
|
|
20624
|
+
] }) : null,
|
|
20588
20625
|
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
20589
20626
|
"div",
|
|
20590
20627
|
{
|
|
20591
20628
|
css: [
|
|
20592
20629
|
modalContentStyles,
|
|
20593
|
-
|
|
20594
|
-
|
|
20630
|
+
withoutContentPadding ? { padding: 0 } : null,
|
|
20631
|
+
withoutContentBackground ? { background: "transparent" } : null,
|
|
20632
|
+
disableBodyScroll ? { overflow: "visible" } : null
|
|
20595
20633
|
],
|
|
20596
20634
|
children
|
|
20597
20635
|
}
|
|
@@ -20624,9 +20662,9 @@ var ModalDialog = (0, import_react121.forwardRef)(
|
|
|
20624
20662
|
withoutContentPadding: true,
|
|
20625
20663
|
css: modalDialogInnerStyles,
|
|
20626
20664
|
width: "",
|
|
20627
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(VerticalRhythm, { css: modalDialogWrapper, children: [
|
|
20665
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(VerticalRhythm, { css: modalDialogWrapper(Boolean(onRequestClose)), children: [
|
|
20628
20666
|
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { css: modalHeaderStyles, children: header2 }),
|
|
20629
|
-
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { children }),
|
|
20667
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { css: { flex: 1 }, children }),
|
|
20630
20668
|
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(HorizontalRhythm, { children: buttonGroup })
|
|
20631
20669
|
] })
|
|
20632
20670
|
}
|
|
@@ -21118,7 +21156,7 @@ var ObjectListItem2 = (props) => {
|
|
|
21118
21156
|
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(HorizontalRhythm, { gap: "xs", align: renderAs === "multi" ? "flex-start" : "center", children: header2 }),
|
|
21119
21157
|
renderAs === "multi" ? props.children : null
|
|
21120
21158
|
] }),
|
|
21121
|
-
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(HorizontalRhythm, { gap: "xs", align: "flex-start", children: rightSlot })
|
|
21159
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(HorizontalRhythm, { gap: "xs", align: renderAs === "multi" ? "flex-start" : "center", children: rightSlot })
|
|
21122
21160
|
] }),
|
|
21123
21161
|
menuItems ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(HorizontalRhythm, { gap: "0", align: "flex-start", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
21124
21162
|
Menu,
|
|
@@ -22058,7 +22096,7 @@ var ParameterImageInner = (0, import_react142.forwardRef)((props, ref) => {
|
|
|
22058
22096
|
type: "text",
|
|
22059
22097
|
id,
|
|
22060
22098
|
ref,
|
|
22061
|
-
"aria-label": hiddenLabel ? label : void 0,
|
|
22099
|
+
"aria-label": hiddenLabel && typeof label === "string" ? label : void 0,
|
|
22062
22100
|
autoComplete: "off",
|
|
22063
22101
|
...props
|
|
22064
22102
|
}
|
|
@@ -22084,7 +22122,7 @@ var ParameterInputInner = (0, import_react143.forwardRef)(
|
|
|
22084
22122
|
css: input3,
|
|
22085
22123
|
id,
|
|
22086
22124
|
type: props.type || "text",
|
|
22087
|
-
"aria-label": hiddenLabel ? label : void 0,
|
|
22125
|
+
"aria-label": hiddenLabel && typeof label === "string" ? label : void 0,
|
|
22088
22126
|
autoComplete: "off",
|
|
22089
22127
|
ref,
|
|
22090
22128
|
...props
|
|
@@ -22106,7 +22144,7 @@ var ParameterLink = (0, import_react144.forwardRef)(
|
|
|
22106
22144
|
"data-testid": "link-parameter-editor",
|
|
22107
22145
|
...shellProps,
|
|
22108
22146
|
label: innerProps.value ? shellProps.label : "",
|
|
22109
|
-
title: !innerProps.value ? shellProps.label : void 0,
|
|
22147
|
+
title: !innerProps.value && typeof shellProps.label === "string" ? shellProps.label : void 0,
|
|
22110
22148
|
children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
22111
22149
|
ParameterLinkInner,
|
|
22112
22150
|
{
|
|
@@ -22134,7 +22172,7 @@ var ParameterLinkInner = (0, import_react144.forwardRef)(
|
|
|
22134
22172
|
readOnly: Boolean(props.value),
|
|
22135
22173
|
id,
|
|
22136
22174
|
ref,
|
|
22137
|
-
"aria-label": hiddenLabel ? label : void 0,
|
|
22175
|
+
"aria-label": hiddenLabel && typeof label === "string" ? label : void 0,
|
|
22138
22176
|
...props
|
|
22139
22177
|
}
|
|
22140
22178
|
),
|
|
@@ -22185,7 +22223,7 @@ var ParameterMultiSelectInner = (props) => {
|
|
|
22185
22223
|
isMulti: true,
|
|
22186
22224
|
isClearable: (_a = props.isClearable) != null ? _a : false,
|
|
22187
22225
|
id,
|
|
22188
|
-
"aria-label": label,
|
|
22226
|
+
"aria-label": typeof label === "string" ? label : void 0,
|
|
22189
22227
|
classNamePrefix: "parameter-multi-select-combobox",
|
|
22190
22228
|
styles: {
|
|
22191
22229
|
menuPortal: (base) => ({
|
|
@@ -25073,7 +25111,7 @@ var ParameterSelectInner = (0, import_react160.forwardRef)(
|
|
|
25073
25111
|
{
|
|
25074
25112
|
css: [input3, selectInput],
|
|
25075
25113
|
id,
|
|
25076
|
-
"aria-label": hiddenLabel ? label : void 0,
|
|
25114
|
+
"aria-label": hiddenLabel && typeof label === "string" ? label : void 0,
|
|
25077
25115
|
ref,
|
|
25078
25116
|
...props,
|
|
25079
25117
|
children: [
|
|
@@ -25104,7 +25142,7 @@ var ParameterTextareaInner = (0, import_react161.forwardRef)(({ ...props }, ref)
|
|
|
25104
25142
|
css: [input3, textarea2],
|
|
25105
25143
|
id,
|
|
25106
25144
|
ref,
|
|
25107
|
-
"aria-label": hiddenLabel ? label : void 0,
|
|
25145
|
+
"aria-label": hiddenLabel && typeof label === "string" ? label : void 0,
|
|
25108
25146
|
...props
|
|
25109
25147
|
}
|
|
25110
25148
|
);
|
|
@@ -26072,16 +26110,15 @@ var StatusBullet = ({
|
|
|
26072
26110
|
Deleted: StatusDeleted
|
|
26073
26111
|
};
|
|
26074
26112
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
26075
|
-
return /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
26113
|
+
return /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(Tooltip, { title: message != null ? message : status, children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
26076
26114
|
"span",
|
|
26077
26115
|
{
|
|
26078
26116
|
role: "status",
|
|
26079
26117
|
css: [StatusBulletContainer, currentStateStyles[status], statusSize],
|
|
26080
|
-
title: message != null ? message : status,
|
|
26081
26118
|
...props,
|
|
26082
26119
|
children: hideText ? null : message ? message : status
|
|
26083
26120
|
}
|
|
26084
|
-
);
|
|
26121
|
+
) });
|
|
26085
26122
|
};
|
|
26086
26123
|
// Annotate the CommonJS export names for ESM import in node:
|
|
26087
26124
|
0 && (module.exports = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "19.196.
|
|
3
|
+
"version": "19.196.1-alpha.8+a0a6727a3c",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@storybook/theming": "^8.3.3",
|
|
27
27
|
"@types/react": "18.3.3",
|
|
28
28
|
"@types/react-dom": "18.3.0",
|
|
29
|
-
"@uniformdev/canvas": "^19.196.
|
|
30
|
-
"@uniformdev/richtext": "^19.196.
|
|
29
|
+
"@uniformdev/canvas": "^19.196.1-alpha.8+a0a6727a3c",
|
|
30
|
+
"@uniformdev/richtext": "^19.196.1-alpha.8+a0a6727a3c",
|
|
31
31
|
"autoprefixer": "10.4.16",
|
|
32
32
|
"hygen": "6.2.11",
|
|
33
33
|
"postcss": "8.4.38",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "a0a6727a3cc042858d337818c4331d63785da6fa"
|
|
83
83
|
}
|