@uniformdev/design-system 20.39.1 → 20.39.3-alpha.1
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 +12 -2
- package/dist/index.d.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +12 -2
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -12323,7 +12323,7 @@ var ParameterLabel = ({ id, asSpan, children, testId, ...props }) => {
|
|
|
12323
12323
|
import { forwardRef as forwardRef21 } from "react";
|
|
12324
12324
|
import { jsx as jsx120 } from "@emotion/react/jsx-runtime";
|
|
12325
12325
|
var ParameterMenuButton = forwardRef21(
|
|
12326
|
-
({ label: label2, children, disabled: disabled2 }, ref) => {
|
|
12326
|
+
({ label: label2, children, disabled: disabled2, withoutPortal }, ref) => {
|
|
12327
12327
|
return /* @__PURE__ */ jsx120(
|
|
12328
12328
|
Menu,
|
|
12329
12329
|
{
|
|
@@ -12340,6 +12340,7 @@ var ParameterMenuButton = forwardRef21(
|
|
|
12340
12340
|
children: /* @__PURE__ */ jsx120(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
12341
12341
|
}
|
|
12342
12342
|
),
|
|
12343
|
+
withoutPortal,
|
|
12343
12344
|
children
|
|
12344
12345
|
}
|
|
12345
12346
|
);
|
|
@@ -12431,6 +12432,7 @@ var ParameterShell = ({
|
|
|
12431
12432
|
title,
|
|
12432
12433
|
children,
|
|
12433
12434
|
isParameterGroup = false,
|
|
12435
|
+
menuWithoutPortal,
|
|
12434
12436
|
...props
|
|
12435
12437
|
}) => {
|
|
12436
12438
|
const [manualErrorMessage, setManualErrorMessage] = useState14(void 0);
|
|
@@ -12462,7 +12464,15 @@ var ParameterShell = ({
|
|
|
12462
12464
|
children: actionItems
|
|
12463
12465
|
}
|
|
12464
12466
|
) : null,
|
|
12465
|
-
menuItems ? /* @__PURE__ */ jsx121(
|
|
12467
|
+
menuItems ? /* @__PURE__ */ jsx121(
|
|
12468
|
+
ParameterMenuButton,
|
|
12469
|
+
{
|
|
12470
|
+
label: `${label2} menu`,
|
|
12471
|
+
disabled: props.disabled,
|
|
12472
|
+
withoutPortal: menuWithoutPortal,
|
|
12473
|
+
children: menuItems
|
|
12474
|
+
}
|
|
12475
|
+
) : null,
|
|
12466
12476
|
/* @__PURE__ */ jsx121(
|
|
12467
12477
|
ParameterShellContext.Provider,
|
|
12468
12478
|
{
|
package/dist/index.d.mts
CHANGED
|
@@ -3372,6 +3372,8 @@ type ParameterMenuButtonProps = {
|
|
|
3372
3372
|
label: string;
|
|
3373
3373
|
children?: ReactNode;
|
|
3374
3374
|
disabled?: boolean;
|
|
3375
|
+
/** set to true to render the menu directly in the parent DOM */
|
|
3376
|
+
withoutPortal?: boolean;
|
|
3375
3377
|
};
|
|
3376
3378
|
/** @example <ParameterMenuButton label="label value"><MenuItem>menu option component</MenuItem></ParameterMenuButton> */
|
|
3377
3379
|
declare const ParameterMenuButton: React$1.ForwardRefExoticComponent<ParameterMenuButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -3734,12 +3736,15 @@ type ParameterShellOverrideProps = {
|
|
|
3734
3736
|
*/
|
|
3735
3737
|
isParameterGroup?: boolean;
|
|
3736
3738
|
};
|
|
3737
|
-
type ParameterShellProps = React.InputHTMLAttributes<HTMLDivElement> & CommonParameterInputProps & ParameterShellOverrideProps
|
|
3739
|
+
type ParameterShellProps = React.InputHTMLAttributes<HTMLDivElement> & CommonParameterInputProps & ParameterShellOverrideProps & {
|
|
3740
|
+
/** set to true to render the menu directly in the parent DOM */
|
|
3741
|
+
menuWithoutPortal?: boolean;
|
|
3742
|
+
};
|
|
3738
3743
|
/**
|
|
3739
3744
|
* Uniform Parameter shell component
|
|
3740
3745
|
* @example <ParameterShell label="my label" id="my-id"><ParameterInput onChange={() => {}} /></ParameterShell>
|
|
3741
3746
|
*/
|
|
3742
|
-
declare const ParameterShell: ({ label, labelLeadingIcon, labelTrailingIcon, hiddenLabel, id, errorMessage, warningMessage, infoMessage, caption, errorTestId, captionTestId, menuItems, actionItems, hasOverriddenValue, onResetOverriddenValue, title, children, isParameterGroup, ...props }: ParameterShellProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3747
|
+
declare const ParameterShell: ({ label, labelLeadingIcon, labelTrailingIcon, hiddenLabel, id, errorMessage, warningMessage, infoMessage, caption, errorTestId, captionTestId, menuItems, actionItems, hasOverriddenValue, onResetOverriddenValue, title, children, isParameterGroup, menuWithoutPortal, ...props }: ParameterShellProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3743
3748
|
declare const ParameterShellPlaceholder: ({ children }: {
|
|
3744
3749
|
children?: ReactNode;
|
|
3745
3750
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -3372,6 +3372,8 @@ type ParameterMenuButtonProps = {
|
|
|
3372
3372
|
label: string;
|
|
3373
3373
|
children?: ReactNode;
|
|
3374
3374
|
disabled?: boolean;
|
|
3375
|
+
/** set to true to render the menu directly in the parent DOM */
|
|
3376
|
+
withoutPortal?: boolean;
|
|
3375
3377
|
};
|
|
3376
3378
|
/** @example <ParameterMenuButton label="label value"><MenuItem>menu option component</MenuItem></ParameterMenuButton> */
|
|
3377
3379
|
declare const ParameterMenuButton: React$1.ForwardRefExoticComponent<ParameterMenuButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -3734,12 +3736,15 @@ type ParameterShellOverrideProps = {
|
|
|
3734
3736
|
*/
|
|
3735
3737
|
isParameterGroup?: boolean;
|
|
3736
3738
|
};
|
|
3737
|
-
type ParameterShellProps = React.InputHTMLAttributes<HTMLDivElement> & CommonParameterInputProps & ParameterShellOverrideProps
|
|
3739
|
+
type ParameterShellProps = React.InputHTMLAttributes<HTMLDivElement> & CommonParameterInputProps & ParameterShellOverrideProps & {
|
|
3740
|
+
/** set to true to render the menu directly in the parent DOM */
|
|
3741
|
+
menuWithoutPortal?: boolean;
|
|
3742
|
+
};
|
|
3738
3743
|
/**
|
|
3739
3744
|
* Uniform Parameter shell component
|
|
3740
3745
|
* @example <ParameterShell label="my label" id="my-id"><ParameterInput onChange={() => {}} /></ParameterShell>
|
|
3741
3746
|
*/
|
|
3742
|
-
declare const ParameterShell: ({ label, labelLeadingIcon, labelTrailingIcon, hiddenLabel, id, errorMessage, warningMessage, infoMessage, caption, errorTestId, captionTestId, menuItems, actionItems, hasOverriddenValue, onResetOverriddenValue, title, children, isParameterGroup, ...props }: ParameterShellProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3747
|
+
declare const ParameterShell: ({ label, labelLeadingIcon, labelTrailingIcon, hiddenLabel, id, errorMessage, warningMessage, infoMessage, caption, errorTestId, captionTestId, menuItems, actionItems, hasOverriddenValue, onResetOverriddenValue, title, children, isParameterGroup, menuWithoutPortal, ...props }: ParameterShellProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3743
3748
|
declare const ParameterShellPlaceholder: ({ children }: {
|
|
3744
3749
|
children?: ReactNode;
|
|
3745
3750
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -14251,7 +14251,7 @@ init_emotion_jsx_shim();
|
|
|
14251
14251
|
var import_react139 = require("react");
|
|
14252
14252
|
var import_jsx_runtime120 = require("@emotion/react/jsx-runtime");
|
|
14253
14253
|
var ParameterMenuButton = (0, import_react139.forwardRef)(
|
|
14254
|
-
({ label: label2, children, disabled: disabled2 }, ref) => {
|
|
14254
|
+
({ label: label2, children, disabled: disabled2, withoutPortal }, ref) => {
|
|
14255
14255
|
return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
14256
14256
|
Menu,
|
|
14257
14257
|
{
|
|
@@ -14268,6 +14268,7 @@ var ParameterMenuButton = (0, import_react139.forwardRef)(
|
|
|
14268
14268
|
children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
14269
14269
|
}
|
|
14270
14270
|
),
|
|
14271
|
+
withoutPortal,
|
|
14271
14272
|
children
|
|
14272
14273
|
}
|
|
14273
14274
|
);
|
|
@@ -14360,6 +14361,7 @@ var ParameterShell = ({
|
|
|
14360
14361
|
title,
|
|
14361
14362
|
children,
|
|
14362
14363
|
isParameterGroup = false,
|
|
14364
|
+
menuWithoutPortal,
|
|
14363
14365
|
...props
|
|
14364
14366
|
}) => {
|
|
14365
14367
|
const [manualErrorMessage, setManualErrorMessage] = (0, import_react142.useState)(void 0);
|
|
@@ -14391,7 +14393,15 @@ var ParameterShell = ({
|
|
|
14391
14393
|
children: actionItems
|
|
14392
14394
|
}
|
|
14393
14395
|
) : null,
|
|
14394
|
-
menuItems ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
14396
|
+
menuItems ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
14397
|
+
ParameterMenuButton,
|
|
14398
|
+
{
|
|
14399
|
+
label: `${label2} menu`,
|
|
14400
|
+
disabled: props.disabled,
|
|
14401
|
+
withoutPortal: menuWithoutPortal,
|
|
14402
|
+
children: menuItems
|
|
14403
|
+
}
|
|
14404
|
+
) : null,
|
|
14395
14405
|
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
14396
14406
|
ParameterShellContext.Provider,
|
|
14397
14407
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "20.39.1",
|
|
3
|
+
"version": "20.39.3-alpha.1+5c5ebdb625",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"exports": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@storybook/theming": "^8.3.3",
|
|
39
39
|
"@types/react": "18.3.24",
|
|
40
40
|
"@types/react-dom": "18.3.7",
|
|
41
|
-
"@uniformdev/canvas": "^20.39.1",
|
|
42
|
-
"@uniformdev/richtext": "^20.39.1",
|
|
41
|
+
"@uniformdev/canvas": "^20.39.3-alpha.1+5c5ebdb625",
|
|
42
|
+
"@uniformdev/richtext": "^20.39.3-alpha.1+5c5ebdb625",
|
|
43
43
|
"@vitest/coverage-v8": "3.2.4",
|
|
44
44
|
"autoprefixer": "10.4.21",
|
|
45
45
|
"hygen": "6.2.11",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"publishConfig": {
|
|
94
94
|
"access": "public"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "5c5ebdb6256f19b67d7941890176e63f3d60b8f4"
|
|
97
97
|
}
|