@uniformdev/design-system 20.50.1-alpha.2 → 20.50.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/README.md +53 -1
- package/dist/index.d.mts +31 -7
- package/dist/index.d.ts +31 -7
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -55,7 +55,59 @@ export default function Document() {
|
|
|
55
55
|
}
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
### 2.
|
|
58
|
+
### 2. Set up Providers (as needed)
|
|
59
|
+
|
|
60
|
+
Some components rely on React context providers to function correctly. Set them up as needed:
|
|
61
|
+
|
|
62
|
+
#### IconsProvider
|
|
63
|
+
|
|
64
|
+
Required by the `Icon` component when using string-based icon names (e.g. `icon="mail"`). Without the provider, you can still pass icon components directly.
|
|
65
|
+
|
|
66
|
+
```tsx
|
|
67
|
+
import { IconsProvider, Icon } from '@uniformdev/design-system';
|
|
68
|
+
|
|
69
|
+
function App() {
|
|
70
|
+
return (
|
|
71
|
+
<IconsProvider>
|
|
72
|
+
<Icon icon="mail" />
|
|
73
|
+
</IconsProvider>
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Direct consumers:** `Icon`
|
|
79
|
+
**Indirect consumers:** Any component that renders an `Icon` internally (e.g. `Button`, `Callout`, `Details`, `Menu`, and many more)
|
|
80
|
+
|
|
81
|
+
#### DrawerProvider
|
|
82
|
+
|
|
83
|
+
Optional for basic `Drawer` usage -- `Drawer` creates its own internal provider and renderer when no external `DrawerProvider` is present. An explicit `DrawerProvider` is only needed for shared drawer stacks (e.g. multiple drawers rendering into the same `DrawerRenderer`).
|
|
84
|
+
|
|
85
|
+
Required by `DrawerRenderer` and `TakeoverDrawerRenderer`, which must be rendered inside a `DrawerProvider`.
|
|
86
|
+
|
|
87
|
+
```tsx
|
|
88
|
+
import { DrawerProvider, Drawer, DrawerRenderer } from '@uniformdev/design-system';
|
|
89
|
+
|
|
90
|
+
function App() {
|
|
91
|
+
return (
|
|
92
|
+
<DrawerProvider>
|
|
93
|
+
<Drawer id="my-drawer" header="Title">Content</Drawer>
|
|
94
|
+
<DrawerRenderer stackId="_default" />
|
|
95
|
+
</DrawerProvider>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
**Required by:** `DrawerRenderer`, `TakeoverDrawerRenderer`
|
|
101
|
+
**Optional for:** `Drawer` (self-sufficient for simple cases)
|
|
102
|
+
|
|
103
|
+
#### ParameterShell
|
|
104
|
+
|
|
105
|
+
Only required when using `*Inner` components directly (e.g. `ParameterInputInner`, `ParameterSelectInner`). The outer wrapper components (`ParameterInput`, `ParameterSelect`, etc.) create a `ParameterShell` automatically, so no external setup is needed for typical usage.
|
|
106
|
+
|
|
107
|
+
**Required by:** `ParameterInputInner`, `ParameterSelectInner`, `ParameterLinkInner`, `ParameterSelectSliderInner`, `ParameterToggleInner`, `ParameterNumberSliderInner`, `ParameterMultiSelectInner`, `ParameterTextareaInner`, `ParameterImageInner`
|
|
108
|
+
**Not required by:** `ParameterInput`, `ParameterSelect`, `ParameterLink`, and other outer wrappers (they provide it internally)
|
|
109
|
+
|
|
110
|
+
### 3. Use Components
|
|
59
111
|
|
|
60
112
|
```tsx
|
|
61
113
|
import { Button, Heading, Card, Input } from '@uniformdev/design-system';
|
package/dist/index.d.mts
CHANGED
|
@@ -1348,6 +1348,7 @@ interface IconProps extends IconBaseProps {
|
|
|
1348
1348
|
|
|
1349
1349
|
/**
|
|
1350
1350
|
* Component that renders icons
|
|
1351
|
+
* @requires IconsProvider - Wrap a parent component with `<IconsProvider>` for string-based icon names.
|
|
1351
1352
|
* @example <Icon icon="add-r" iconColor="currentColor" />
|
|
1352
1353
|
*/
|
|
1353
1354
|
declare const Icon: React__default.MemoExoticComponent<({ icon, iconColor, size, ...otherProps }: IconProps) => _emotion_react_jsx_runtime.JSX.Element | null>;
|
|
@@ -1905,6 +1906,7 @@ interface DrawerRendererProps extends Omit<React__default.HTMLAttributes<HTMLDiv
|
|
|
1905
1906
|
}
|
|
1906
1907
|
/**
|
|
1907
1908
|
* Renders a stack of drawers in a different location than their original position in the component tree. Uses React Portal under the hood.
|
|
1909
|
+
* @requires DrawerProvider - Must be rendered inside a `<DrawerProvider>`.
|
|
1908
1910
|
* @example <DrawerProvider><Drawer id="my-drawer" stackId="my-stack" header="Title">Hello</Drawer><DrawerRenderer stackId="my-stack"/></DrawerProvider>
|
|
1909
1911
|
*/
|
|
1910
1912
|
declare const DrawerRenderer: ({ stackId, position, width, minWidth, maxWidth, leftAligned, withoutFluidWidth, ...otherProps }: DrawerRendererProps) => _emotion_react_jsx_runtime.JSX.Element | null;
|
|
@@ -1994,8 +1996,10 @@ declare const useCurrentDrawer: () => {
|
|
|
1994
1996
|
leftAligned?: DrawerRendererProps["leftAligned"];
|
|
1995
1997
|
};
|
|
1996
1998
|
/**
|
|
1997
|
-
* A drawer component that opens from the right side of
|
|
1998
|
-
*
|
|
1999
|
+
* A drawer component that opens from the right side of its parent.
|
|
2000
|
+
* When used without an external `<DrawerProvider>`, creates its own provider and renderer internally.
|
|
2001
|
+
* For shared drawer stacks, wrap with `<DrawerProvider>` and use a `<DrawerRenderer>`.
|
|
2002
|
+
* @example <DrawerProvider><Drawer id="my-drawer" header="Title">Hello</Drawer><DrawerRenderer /></DrawerProvider>
|
|
1999
2003
|
*/
|
|
2000
2004
|
declare const Drawer: React__default.ForwardRefExoticComponent<DrawerItem & Omit<DrawerRendererProps, "stackId"> & {
|
|
2001
2005
|
header?: React__default.ReactNode;
|
|
@@ -2012,6 +2016,11 @@ type DrawerContentProps = {
|
|
|
2012
2016
|
declare const DrawerContent: ({ children, buttonGroup, noPadding, ...props }: DrawerContentProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2013
2017
|
|
|
2014
2018
|
declare const TAKEOVER_STACK_ID = "takeover-stack";
|
|
2019
|
+
/**
|
|
2020
|
+
* A specialized drawer renderer that takes over the full stack.
|
|
2021
|
+
* @requires DrawerProvider - Must be rendered inside a `<DrawerProvider>`.
|
|
2022
|
+
* @example <DrawerProvider><TakeoverDrawerRenderer /><Drawer id="my-drawer" header="Title">Hello</Drawer></DrawerProvider>
|
|
2023
|
+
*/
|
|
2015
2024
|
declare const TakeoverDrawerRenderer: (props: Omit<DrawerRendererProps, "stackId"> & {
|
|
2016
2025
|
stackId?: string;
|
|
2017
2026
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
@@ -3430,13 +3439,14 @@ type ParameterImageProps = Omit<CommonParameterInputProps, 'inputIcon' | 'type'>
|
|
|
3430
3439
|
/** Turns off the image preview, if it's not desired or rendered separately with `ParameterImageImage` elsewhere */
|
|
3431
3440
|
disablePreview?: boolean;
|
|
3432
3441
|
};
|
|
3433
|
-
/** @
|
|
3442
|
+
/** @example <ParameterImage {...inputArgs} value={value} onChange={(e) => setValue(e.currentTarget.value)} /> */
|
|
3434
3443
|
declare const ParameterImage: React__default.ForwardRefExoticComponent<Omit<CommonParameterInputProps, "type" | "inputIcon"> & React__default.InputHTMLAttributes<HTMLInputElement> & {
|
|
3435
3444
|
/** Turns off the image preview, if it's not desired or rendered separately with `ParameterImageImage` elsewhere */
|
|
3436
3445
|
disablePreview?: boolean;
|
|
3437
3446
|
} & {
|
|
3438
3447
|
children?: React__default.ReactNode | undefined;
|
|
3439
3448
|
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
3449
|
+
/** @requires ParameterShell - Must be rendered inside a `<ParameterShell>` component. */
|
|
3440
3450
|
declare const ParameterImageInner: React__default.ForwardRefExoticComponent<React__default.InputHTMLAttributes<HTMLInputElement> & {
|
|
3441
3451
|
disablePreview?: boolean;
|
|
3442
3452
|
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
@@ -3469,6 +3479,7 @@ declare const ParameterInput: React$1.ForwardRefExoticComponent<CommonParameterP
|
|
|
3469
3479
|
*/
|
|
3470
3480
|
enableMouseWheel?: boolean;
|
|
3471
3481
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3482
|
+
/** @requires ParameterShell - Must be rendered inside a `<ParameterShell>` component. */
|
|
3472
3483
|
declare const ParameterInputInner: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
3473
3484
|
enableMouseWheel?: boolean;
|
|
3474
3485
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
@@ -3515,6 +3526,7 @@ declare const ParameterLink: React$1.ForwardRefExoticComponent<CommonParameterPr
|
|
|
3515
3526
|
disabled?: boolean;
|
|
3516
3527
|
externalLink?: string;
|
|
3517
3528
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3529
|
+
/** @requires ParameterShell - Must be rendered inside a `<ParameterShell>` component. */
|
|
3518
3530
|
declare const ParameterLinkInner: React$1.ForwardRefExoticComponent<Omit<ParameterLinkProps, "label" | "id"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
3519
3531
|
|
|
3520
3532
|
type ParameterMenuButtonProps = {
|
|
@@ -3535,11 +3547,14 @@ type ParameterMultiSelectProps = CommonParameterInputProps & ParameterMultiSelec
|
|
|
3535
3547
|
};
|
|
3536
3548
|
/**
|
|
3537
3549
|
* @deprecated beta
|
|
3538
|
-
* @example <ParameterMultiSelect label="my label" id="my-id" options={[{ label: 'option label', value: 0}]}
|
|
3550
|
+
* @example <ParameterMultiSelect label="my label" id="my-id" options={[{ label: 'option label', value: 0}]}
|
|
3551
|
+
*/
|
|
3539
3552
|
declare const ParameterMultiSelect: ({ disabled, ...props }: ParameterMultiSelectProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3540
3553
|
/**
|
|
3541
3554
|
* @deprecated beta
|
|
3542
|
-
* @
|
|
3555
|
+
* @requires ParameterShell - Must be rendered inside a `<ParameterShell>` component.
|
|
3556
|
+
* @example <ParameterMultiSelectInner options={[{ label: 'option label', value: 0}]} />
|
|
3557
|
+
*/
|
|
3543
3558
|
declare const ParameterMultiSelectInner: (props: ParameterMultiSelectInnerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3544
3559
|
|
|
3545
3560
|
type ParameterNameAndPublicIdInputProps = {
|
|
@@ -3651,6 +3666,7 @@ declare const ParameterNumberSlider: React$1.ForwardRefExoticComponent<CommonPar
|
|
|
3651
3666
|
captionTestId?: string;
|
|
3652
3667
|
title?: string;
|
|
3653
3668
|
} & Omit<SliderProps, "id" | "aria-label" | "options"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
3669
|
+
/** @requires ParameterShell - Must be rendered inside a `<ParameterShell>` component. */
|
|
3654
3670
|
declare const ParameterNumberSliderInner: React$1.ForwardRefExoticComponent<Omit<SliderProps, "id" | "aria-label" | "options"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
3655
3671
|
|
|
3656
3672
|
type LinkNodeProps = NonNullable<LinkParamValue>;
|
|
@@ -3783,7 +3799,10 @@ declare const ParameterSelect: React$1.ForwardRefExoticComponent<CommonParameter
|
|
|
3783
3799
|
captionTestId?: string;
|
|
3784
3800
|
title?: string;
|
|
3785
3801
|
} & CommonParameterSelectProps & React$1.InputHTMLAttributes<HTMLSelectElement> & React$1.RefAttributes<HTMLSelectElement>>;
|
|
3786
|
-
/**
|
|
3802
|
+
/**
|
|
3803
|
+
* @requires ParameterShell - Must be rendered inside a `<ParameterShell>` component.
|
|
3804
|
+
* @example <ParameterSelectInner options={[{ label: 'option label', value: 0}]} />
|
|
3805
|
+
*/
|
|
3787
3806
|
declare const ParameterSelectInner: React$1.ForwardRefExoticComponent<Omit<ParameterSelectProps, "label" | "id"> & React$1.RefAttributes<HTMLSelectElement>>;
|
|
3788
3807
|
|
|
3789
3808
|
type ParameterSelectSliderProps = CommonParameterInputProps & Omit<SliderProps, 'id' | 'aria-label' | 'value' | 'onChange' | 'min' | 'max' | 'step' | 'showNumberInput'> & {
|
|
@@ -3825,6 +3844,7 @@ declare const ParameterSelectSlider: React$1.ForwardRefExoticComponent<CommonPar
|
|
|
3825
3844
|
*/
|
|
3826
3845
|
onChange: (value: string | undefined) => void;
|
|
3827
3846
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3847
|
+
/** @requires ParameterShell - Must be rendered inside a `<ParameterShell>` component. */
|
|
3828
3848
|
declare const ParameterSelectSliderInner: React$1.ForwardRefExoticComponent<Omit<ParameterSelectSliderProps, "caption" | "title" | "errorTestId" | "captionTestId" | "menuItems" | "actionItems" | keyof CommonParameterProps> & React$1.RefAttributes<HTMLInputElement>>;
|
|
3829
3849
|
|
|
3830
3850
|
/** A function that extracts all common props and element props
|
|
@@ -3892,7 +3912,10 @@ declare const ParameterTextarea: React$1.ForwardRefExoticComponent<CommonParamet
|
|
|
3892
3912
|
captionTestId?: string;
|
|
3893
3913
|
title?: string;
|
|
3894
3914
|
} & React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
3895
|
-
/**
|
|
3915
|
+
/**
|
|
3916
|
+
* @requires ParameterShell - Must be rendered inside a `<ParameterShell>` component.
|
|
3917
|
+
* @example <ParameterTextareaInner />
|
|
3918
|
+
*/
|
|
3896
3919
|
declare const ParameterTextareaInner: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTextAreaElement> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
3897
3920
|
|
|
3898
3921
|
type ParameterToggleInnerProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
@@ -3912,6 +3935,7 @@ declare const ParameterToggle: React$1.ForwardRefExoticComponent<CommonParameter
|
|
|
3912
3935
|
type: "checkbox" | "radio";
|
|
3913
3936
|
withoutIndeterminateState?: boolean;
|
|
3914
3937
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3938
|
+
/** @requires ParameterShell - Must be rendered inside a `<ParameterShell>` component. */
|
|
3915
3939
|
declare const ParameterToggleInner: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
|
|
3916
3940
|
type: "checkbox" | "radio";
|
|
3917
3941
|
withoutIndeterminateState?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1348,6 +1348,7 @@ interface IconProps extends IconBaseProps {
|
|
|
1348
1348
|
|
|
1349
1349
|
/**
|
|
1350
1350
|
* Component that renders icons
|
|
1351
|
+
* @requires IconsProvider - Wrap a parent component with `<IconsProvider>` for string-based icon names.
|
|
1351
1352
|
* @example <Icon icon="add-r" iconColor="currentColor" />
|
|
1352
1353
|
*/
|
|
1353
1354
|
declare const Icon: React__default.MemoExoticComponent<({ icon, iconColor, size, ...otherProps }: IconProps) => _emotion_react_jsx_runtime.JSX.Element | null>;
|
|
@@ -1905,6 +1906,7 @@ interface DrawerRendererProps extends Omit<React__default.HTMLAttributes<HTMLDiv
|
|
|
1905
1906
|
}
|
|
1906
1907
|
/**
|
|
1907
1908
|
* Renders a stack of drawers in a different location than their original position in the component tree. Uses React Portal under the hood.
|
|
1909
|
+
* @requires DrawerProvider - Must be rendered inside a `<DrawerProvider>`.
|
|
1908
1910
|
* @example <DrawerProvider><Drawer id="my-drawer" stackId="my-stack" header="Title">Hello</Drawer><DrawerRenderer stackId="my-stack"/></DrawerProvider>
|
|
1909
1911
|
*/
|
|
1910
1912
|
declare const DrawerRenderer: ({ stackId, position, width, minWidth, maxWidth, leftAligned, withoutFluidWidth, ...otherProps }: DrawerRendererProps) => _emotion_react_jsx_runtime.JSX.Element | null;
|
|
@@ -1994,8 +1996,10 @@ declare const useCurrentDrawer: () => {
|
|
|
1994
1996
|
leftAligned?: DrawerRendererProps["leftAligned"];
|
|
1995
1997
|
};
|
|
1996
1998
|
/**
|
|
1997
|
-
* A drawer component that opens from the right side of
|
|
1998
|
-
*
|
|
1999
|
+
* A drawer component that opens from the right side of its parent.
|
|
2000
|
+
* When used without an external `<DrawerProvider>`, creates its own provider and renderer internally.
|
|
2001
|
+
* For shared drawer stacks, wrap with `<DrawerProvider>` and use a `<DrawerRenderer>`.
|
|
2002
|
+
* @example <DrawerProvider><Drawer id="my-drawer" header="Title">Hello</Drawer><DrawerRenderer /></DrawerProvider>
|
|
1999
2003
|
*/
|
|
2000
2004
|
declare const Drawer: React__default.ForwardRefExoticComponent<DrawerItem & Omit<DrawerRendererProps, "stackId"> & {
|
|
2001
2005
|
header?: React__default.ReactNode;
|
|
@@ -2012,6 +2016,11 @@ type DrawerContentProps = {
|
|
|
2012
2016
|
declare const DrawerContent: ({ children, buttonGroup, noPadding, ...props }: DrawerContentProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2013
2017
|
|
|
2014
2018
|
declare const TAKEOVER_STACK_ID = "takeover-stack";
|
|
2019
|
+
/**
|
|
2020
|
+
* A specialized drawer renderer that takes over the full stack.
|
|
2021
|
+
* @requires DrawerProvider - Must be rendered inside a `<DrawerProvider>`.
|
|
2022
|
+
* @example <DrawerProvider><TakeoverDrawerRenderer /><Drawer id="my-drawer" header="Title">Hello</Drawer></DrawerProvider>
|
|
2023
|
+
*/
|
|
2015
2024
|
declare const TakeoverDrawerRenderer: (props: Omit<DrawerRendererProps, "stackId"> & {
|
|
2016
2025
|
stackId?: string;
|
|
2017
2026
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
@@ -3430,13 +3439,14 @@ type ParameterImageProps = Omit<CommonParameterInputProps, 'inputIcon' | 'type'>
|
|
|
3430
3439
|
/** Turns off the image preview, if it's not desired or rendered separately with `ParameterImageImage` elsewhere */
|
|
3431
3440
|
disablePreview?: boolean;
|
|
3432
3441
|
};
|
|
3433
|
-
/** @
|
|
3442
|
+
/** @example <ParameterImage {...inputArgs} value={value} onChange={(e) => setValue(e.currentTarget.value)} /> */
|
|
3434
3443
|
declare const ParameterImage: React__default.ForwardRefExoticComponent<Omit<CommonParameterInputProps, "type" | "inputIcon"> & React__default.InputHTMLAttributes<HTMLInputElement> & {
|
|
3435
3444
|
/** Turns off the image preview, if it's not desired or rendered separately with `ParameterImageImage` elsewhere */
|
|
3436
3445
|
disablePreview?: boolean;
|
|
3437
3446
|
} & {
|
|
3438
3447
|
children?: React__default.ReactNode | undefined;
|
|
3439
3448
|
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
3449
|
+
/** @requires ParameterShell - Must be rendered inside a `<ParameterShell>` component. */
|
|
3440
3450
|
declare const ParameterImageInner: React__default.ForwardRefExoticComponent<React__default.InputHTMLAttributes<HTMLInputElement> & {
|
|
3441
3451
|
disablePreview?: boolean;
|
|
3442
3452
|
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
@@ -3469,6 +3479,7 @@ declare const ParameterInput: React$1.ForwardRefExoticComponent<CommonParameterP
|
|
|
3469
3479
|
*/
|
|
3470
3480
|
enableMouseWheel?: boolean;
|
|
3471
3481
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3482
|
+
/** @requires ParameterShell - Must be rendered inside a `<ParameterShell>` component. */
|
|
3472
3483
|
declare const ParameterInputInner: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
3473
3484
|
enableMouseWheel?: boolean;
|
|
3474
3485
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
@@ -3515,6 +3526,7 @@ declare const ParameterLink: React$1.ForwardRefExoticComponent<CommonParameterPr
|
|
|
3515
3526
|
disabled?: boolean;
|
|
3516
3527
|
externalLink?: string;
|
|
3517
3528
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3529
|
+
/** @requires ParameterShell - Must be rendered inside a `<ParameterShell>` component. */
|
|
3518
3530
|
declare const ParameterLinkInner: React$1.ForwardRefExoticComponent<Omit<ParameterLinkProps, "label" | "id"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
3519
3531
|
|
|
3520
3532
|
type ParameterMenuButtonProps = {
|
|
@@ -3535,11 +3547,14 @@ type ParameterMultiSelectProps = CommonParameterInputProps & ParameterMultiSelec
|
|
|
3535
3547
|
};
|
|
3536
3548
|
/**
|
|
3537
3549
|
* @deprecated beta
|
|
3538
|
-
* @example <ParameterMultiSelect label="my label" id="my-id" options={[{ label: 'option label', value: 0}]}
|
|
3550
|
+
* @example <ParameterMultiSelect label="my label" id="my-id" options={[{ label: 'option label', value: 0}]}
|
|
3551
|
+
*/
|
|
3539
3552
|
declare const ParameterMultiSelect: ({ disabled, ...props }: ParameterMultiSelectProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3540
3553
|
/**
|
|
3541
3554
|
* @deprecated beta
|
|
3542
|
-
* @
|
|
3555
|
+
* @requires ParameterShell - Must be rendered inside a `<ParameterShell>` component.
|
|
3556
|
+
* @example <ParameterMultiSelectInner options={[{ label: 'option label', value: 0}]} />
|
|
3557
|
+
*/
|
|
3543
3558
|
declare const ParameterMultiSelectInner: (props: ParameterMultiSelectInnerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3544
3559
|
|
|
3545
3560
|
type ParameterNameAndPublicIdInputProps = {
|
|
@@ -3651,6 +3666,7 @@ declare const ParameterNumberSlider: React$1.ForwardRefExoticComponent<CommonPar
|
|
|
3651
3666
|
captionTestId?: string;
|
|
3652
3667
|
title?: string;
|
|
3653
3668
|
} & Omit<SliderProps, "id" | "aria-label" | "options"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
3669
|
+
/** @requires ParameterShell - Must be rendered inside a `<ParameterShell>` component. */
|
|
3654
3670
|
declare const ParameterNumberSliderInner: React$1.ForwardRefExoticComponent<Omit<SliderProps, "id" | "aria-label" | "options"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
3655
3671
|
|
|
3656
3672
|
type LinkNodeProps = NonNullable<LinkParamValue>;
|
|
@@ -3783,7 +3799,10 @@ declare const ParameterSelect: React$1.ForwardRefExoticComponent<CommonParameter
|
|
|
3783
3799
|
captionTestId?: string;
|
|
3784
3800
|
title?: string;
|
|
3785
3801
|
} & CommonParameterSelectProps & React$1.InputHTMLAttributes<HTMLSelectElement> & React$1.RefAttributes<HTMLSelectElement>>;
|
|
3786
|
-
/**
|
|
3802
|
+
/**
|
|
3803
|
+
* @requires ParameterShell - Must be rendered inside a `<ParameterShell>` component.
|
|
3804
|
+
* @example <ParameterSelectInner options={[{ label: 'option label', value: 0}]} />
|
|
3805
|
+
*/
|
|
3787
3806
|
declare const ParameterSelectInner: React$1.ForwardRefExoticComponent<Omit<ParameterSelectProps, "label" | "id"> & React$1.RefAttributes<HTMLSelectElement>>;
|
|
3788
3807
|
|
|
3789
3808
|
type ParameterSelectSliderProps = CommonParameterInputProps & Omit<SliderProps, 'id' | 'aria-label' | 'value' | 'onChange' | 'min' | 'max' | 'step' | 'showNumberInput'> & {
|
|
@@ -3825,6 +3844,7 @@ declare const ParameterSelectSlider: React$1.ForwardRefExoticComponent<CommonPar
|
|
|
3825
3844
|
*/
|
|
3826
3845
|
onChange: (value: string | undefined) => void;
|
|
3827
3846
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3847
|
+
/** @requires ParameterShell - Must be rendered inside a `<ParameterShell>` component. */
|
|
3828
3848
|
declare const ParameterSelectSliderInner: React$1.ForwardRefExoticComponent<Omit<ParameterSelectSliderProps, "caption" | "title" | "errorTestId" | "captionTestId" | "menuItems" | "actionItems" | keyof CommonParameterProps> & React$1.RefAttributes<HTMLInputElement>>;
|
|
3829
3849
|
|
|
3830
3850
|
/** A function that extracts all common props and element props
|
|
@@ -3892,7 +3912,10 @@ declare const ParameterTextarea: React$1.ForwardRefExoticComponent<CommonParamet
|
|
|
3892
3912
|
captionTestId?: string;
|
|
3893
3913
|
title?: string;
|
|
3894
3914
|
} & React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
3895
|
-
/**
|
|
3915
|
+
/**
|
|
3916
|
+
* @requires ParameterShell - Must be rendered inside a `<ParameterShell>` component.
|
|
3917
|
+
* @example <ParameterTextareaInner />
|
|
3918
|
+
*/
|
|
3896
3919
|
declare const ParameterTextareaInner: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTextAreaElement> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
3897
3920
|
|
|
3898
3921
|
type ParameterToggleInnerProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
@@ -3912,6 +3935,7 @@ declare const ParameterToggle: React$1.ForwardRefExoticComponent<CommonParameter
|
|
|
3912
3935
|
type: "checkbox" | "radio";
|
|
3913
3936
|
withoutIndeterminateState?: boolean;
|
|
3914
3937
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3938
|
+
/** @requires ParameterShell - Must be rendered inside a `<ParameterShell>` component. */
|
|
3915
3939
|
declare const ParameterToggleInner: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
|
|
3916
3940
|
type: "checkbox" | "radio";
|
|
3917
3941
|
withoutIndeterminateState?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "20.50.1
|
|
3
|
+
"version": "20.50.1",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"exports": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@storybook/react-vite": "10.1.0",
|
|
36
36
|
"@types/react": "19.2.2",
|
|
37
37
|
"@types/react-dom": "19.2.2",
|
|
38
|
-
"@uniformdev/canvas": "^20.50.1
|
|
39
|
-
"@uniformdev/richtext": "^20.50.1
|
|
38
|
+
"@uniformdev/canvas": "^20.50.1",
|
|
39
|
+
"@uniformdev/richtext": "^20.50.1",
|
|
40
40
|
"autoprefixer": "10.4.21",
|
|
41
41
|
"hygen": "6.2.11",
|
|
42
42
|
"jsdom": "20.0.3",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"publishConfig": {
|
|
89
89
|
"access": "public"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "696a2df1399a5b68564f931286806b2597f6fa64"
|
|
92
92
|
}
|