@staffbase/design 20.2.0 → 20.2.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/main.cjs +21 -21
- package/dist/main.cjs.map +1 -1
- package/dist/main.d.ts +29 -29
- package/dist/main.js +21 -21
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ import { UseInteractionsReturn } from '@floating-ui/react';
|
|
|
76
76
|
|
|
77
77
|
export declare type ActionItemVariant = 'default' | 'critical';
|
|
78
78
|
|
|
79
|
-
/** @deprecated
|
|
79
|
+
/** @deprecated Use Menu component instead */
|
|
80
80
|
export declare function ActionMenu({ children, ...options }: {
|
|
81
81
|
children: ReactNode;
|
|
82
82
|
} & Omit<ActionMenuOptions, 'listRef'>): default_2.JSX.Element;
|
|
@@ -85,10 +85,10 @@ export declare namespace ActionMenu {
|
|
|
85
85
|
var displayName: string;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
/** @deprecated
|
|
88
|
+
/** @deprecated Use Menu component instead */
|
|
89
89
|
export declare const ActionMenuContent: default_2.ForwardRefExoticComponent<default_2.HTMLAttributes<HTMLDivElement> & default_2.RefAttributes<HTMLDivElement>>;
|
|
90
90
|
|
|
91
|
-
/** @deprecated
|
|
91
|
+
/** @deprecated Use Menu component instead */
|
|
92
92
|
export declare const ActionMenuItem: default_2.ForwardRefExoticComponent<ActionMenuItemProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
93
93
|
|
|
94
94
|
export declare interface ActionMenuItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -97,7 +97,7 @@ export declare interface ActionMenuItemProps extends ButtonHTMLAttributes<HTMLBu
|
|
|
97
97
|
variant?: ActionItemVariant;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
/** @deprecated
|
|
100
|
+
/** @deprecated Use Menu component instead */
|
|
101
101
|
export declare const ActionMenuLinkItem: default_2.ForwardRefExoticComponent<ActionMenuLinkItemProps & default_2.RefAttributes<HTMLAnchorElement>>;
|
|
102
102
|
|
|
103
103
|
export declare interface ActionMenuLinkItemProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
@@ -124,7 +124,7 @@ export declare interface ActionMenuOptions {
|
|
|
124
124
|
placement?: Placement;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
/** @deprecated
|
|
127
|
+
/** @deprecated Use Menu component instead */
|
|
128
128
|
export declare const ActionMenuTrigger: default_2.ForwardRefExoticComponent<{
|
|
129
129
|
children: ReactNode;
|
|
130
130
|
} & default_2.RefAttributes<HTMLElement>>;
|
|
@@ -183,17 +183,17 @@ export declare const Avatar: {
|
|
|
183
183
|
Image: ForwardRefExoticComponent<Omit<ImageProps, "ref"> & RefAttributes<HTMLImageElement>>;
|
|
184
184
|
};
|
|
185
185
|
|
|
186
|
-
/** @deprecated Use
|
|
186
|
+
/** @deprecated Use Avatar component instead */
|
|
187
187
|
declare type AvatarColor = 'cyan' | 'pink' | 'purple' | 'teal';
|
|
188
188
|
|
|
189
|
-
/** @deprecated Use
|
|
189
|
+
/** @deprecated Use Avatar component instead */
|
|
190
190
|
export declare function AvatarDeprecated(props: AvatarDeprecatedProps): ReactElement;
|
|
191
191
|
|
|
192
192
|
export declare namespace AvatarDeprecated {
|
|
193
193
|
var displayName: string;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
/** @deprecated Use
|
|
196
|
+
/** @deprecated Use Avatar component instead */
|
|
197
197
|
export declare interface AvatarDeprecatedProps {
|
|
198
198
|
/**
|
|
199
199
|
* The `alt` attribute for the rendered `img` element
|
|
@@ -231,7 +231,7 @@ declare interface AvatarProps_2 extends Omit<ComponentProps<'div'>, 'children'>
|
|
|
231
231
|
size?: 48 | 40 | 32 | 24 | 16;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
/** @deprecated Use
|
|
234
|
+
/** @deprecated Use Avatar component instead */
|
|
235
235
|
declare type AvatarSize = '48' | '40' | '32' | '24' | '16';
|
|
236
236
|
|
|
237
237
|
declare interface BackProps extends ComponentProps<'button'> {
|
|
@@ -412,10 +412,10 @@ export declare const Button: ForwardRefExoticComponent<Omit<ButtonProps, "ref">
|
|
|
412
412
|
|
|
413
413
|
declare type ButtonBaseProps = Omit<ComponentProps<'button'>, 'color'>;
|
|
414
414
|
|
|
415
|
-
/** @deprecated Use Button instead */
|
|
415
|
+
/** @deprecated Use Button component instead */
|
|
416
416
|
export declare const ButtonDeprecated: ForwardRefExoticComponent<ButtonDeprecatedProps & RefAttributes<HTMLButtonElement>>;
|
|
417
417
|
|
|
418
|
-
/** @deprecated Use Button instead */
|
|
418
|
+
/** @deprecated Use Button component instead */
|
|
419
419
|
export declare interface ButtonDeprecatedProps extends BaseButtonProps {
|
|
420
420
|
/**
|
|
421
421
|
* Refers to the child element of the button
|
|
@@ -437,7 +437,7 @@ export declare interface ButtonProps extends ButtonBaseProps, ButtonStyleProps {
|
|
|
437
437
|
children: ReactNode;
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
-
/** @deprecated
|
|
440
|
+
/** @deprecated Use Select or SearchableSingleSelect components instead */
|
|
441
441
|
export declare interface ButtonSingleSelectProps<TOption extends BaseOption> extends SingleSelectBaseProps<TOption> {
|
|
442
442
|
/**
|
|
443
443
|
* Optional ref to attach to the select trigger.
|
|
@@ -588,14 +588,14 @@ export declare const Dialog: {
|
|
|
588
588
|
Body: ForwardRefExoticComponent<Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
589
589
|
};
|
|
590
590
|
|
|
591
|
-
/** @deprecated
|
|
591
|
+
/** @deprecated Use Separator component instead */
|
|
592
592
|
export declare function Divider(props: DividerProps): JSX.Element;
|
|
593
593
|
|
|
594
594
|
export declare namespace Divider {
|
|
595
595
|
var displayName: string;
|
|
596
596
|
}
|
|
597
597
|
|
|
598
|
-
/** @deprecated
|
|
598
|
+
/** @deprecated Use Separator component instead */
|
|
599
599
|
export declare interface DividerProps extends HTMLAttributes<HTMLHRElement> {
|
|
600
600
|
dividerPosition?: 'horizontal' | 'vertical';
|
|
601
601
|
fullWidth?: boolean;
|
|
@@ -646,14 +646,14 @@ declare interface EmptyMediaProps extends ComponentProps<'div'> {
|
|
|
646
646
|
size?: 'xs' | 'md' | 'lg';
|
|
647
647
|
}
|
|
648
648
|
|
|
649
|
-
/** @deprecated Use Empty instead */
|
|
649
|
+
/** @deprecated Use Empty component instead */
|
|
650
650
|
export declare function EmptyState(props: EmptyStateProps): ReactElement;
|
|
651
651
|
|
|
652
652
|
export declare namespace EmptyState {
|
|
653
653
|
var displayName: string;
|
|
654
654
|
}
|
|
655
655
|
|
|
656
|
-
/** @deprecated Use Empty instead */
|
|
656
|
+
/** @deprecated Use Empty component instead */
|
|
657
657
|
export declare interface EmptyStateProps {
|
|
658
658
|
/**
|
|
659
659
|
* Defines the title of the component
|
|
@@ -928,10 +928,10 @@ export declare const HouseIcon: default_2.NamedExoticComponent<default_2.SVGAttr
|
|
|
928
928
|
|
|
929
929
|
export declare const Icon: ({ name, ...props }: IconProps) => ReactElement | null;
|
|
930
930
|
|
|
931
|
-
/** @deprecated Use Button with iconOnly instead */
|
|
931
|
+
/** @deprecated Use Button component with iconOnly instead */
|
|
932
932
|
export declare const IconButton: ForwardRefExoticComponent<IconButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
933
933
|
|
|
934
|
-
/** @deprecated Use Button with iconOnly instead */
|
|
934
|
+
/** @deprecated Use Button component with iconOnly instead */
|
|
935
935
|
export declare interface IconButtonProps extends Omit<BaseButtonProps, 'children'> {
|
|
936
936
|
icon: ReactElement<SVGAttributes<SVGElement>>;
|
|
937
937
|
}
|
|
@@ -1317,14 +1317,14 @@ export declare const MinusCircleIcon: default_2.NamedExoticComponent<default_2.S
|
|
|
1317
1317
|
|
|
1318
1318
|
export declare const MobileIcon: default_2.NamedExoticComponent<default_2.SVGAttributes<SVGSVGElement> & default_2.RefAttributes<SVGSVGElement>>;
|
|
1319
1319
|
|
|
1320
|
-
/** @deprecated
|
|
1320
|
+
/** @deprecated Use Dialog component instead */
|
|
1321
1321
|
export declare function Modal(props: ModalProps): ReactElement;
|
|
1322
1322
|
|
|
1323
1323
|
export declare namespace Modal {
|
|
1324
1324
|
var displayName: string;
|
|
1325
1325
|
}
|
|
1326
1326
|
|
|
1327
|
-
/** @deprecated
|
|
1327
|
+
/** @deprecated Use AlertDialog component instead */
|
|
1328
1328
|
export declare function ModalDialog(props: ModalDialogProps): ReactElement;
|
|
1329
1329
|
|
|
1330
1330
|
export declare namespace ModalDialog {
|
|
@@ -1379,7 +1379,7 @@ export declare interface ModalDialogProps {
|
|
|
1379
1379
|
overlayClassName?: string;
|
|
1380
1380
|
}
|
|
1381
1381
|
|
|
1382
|
-
/** @deprecated
|
|
1382
|
+
/** @deprecated Use Dialog component instead */
|
|
1383
1383
|
export declare interface ModalProps {
|
|
1384
1384
|
/**
|
|
1385
1385
|
* The title of the modal component.
|
|
@@ -1788,7 +1788,7 @@ export declare const SearchableSingleSelect: {
|
|
|
1788
1788
|
Empty: ForwardRefExoticComponent<Omit< AutocompleteEmptyProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1789
1789
|
};
|
|
1790
1790
|
|
|
1791
|
-
/** @deprecated
|
|
1791
|
+
/** @deprecated Use Select or SearchableSingleSelect components instead */
|
|
1792
1792
|
export declare interface SearchableSingleSelectProps<TOption extends BaseOption> extends SingleSelectBaseProps<TOption> {
|
|
1793
1793
|
/**
|
|
1794
1794
|
* Value of the input field.
|
|
@@ -1892,7 +1892,7 @@ export declare const SidebarRightIcon: default_2.NamedExoticComponent<default_2.
|
|
|
1892
1892
|
|
|
1893
1893
|
export declare const SingleChoiceQuestionIcon: default_2.NamedExoticComponent<default_2.SVGAttributes<SVGSVGElement> & default_2.RefAttributes<SVGSVGElement>>;
|
|
1894
1894
|
|
|
1895
|
-
/** @deprecated
|
|
1895
|
+
/** @deprecated Use Select or SearchableSingleSelect components instead */
|
|
1896
1896
|
export declare function SingleSelect<TOption extends BaseOption>(props: SingleSelectProps<TOption>): JSX.Element;
|
|
1897
1897
|
|
|
1898
1898
|
export declare namespace SingleSelect {
|
|
@@ -1985,7 +1985,7 @@ declare interface SingleSelectBaseProps<TOption extends BaseOption> {
|
|
|
1985
1985
|
onTriggerMouseDown?: (e: MouseEvent_2) => void;
|
|
1986
1986
|
}
|
|
1987
1987
|
|
|
1988
|
-
/** @deprecated
|
|
1988
|
+
/** @deprecated Use Select or SearchableSingleSelect components instead */
|
|
1989
1989
|
export declare type SingleSelectProps<Toption extends BaseOption> = ButtonSingleSelectProps<Toption> | SearchableSingleSelectProps<Toption>;
|
|
1990
1990
|
|
|
1991
1991
|
export declare const Skeleton: {
|
|
@@ -2035,14 +2035,14 @@ export declare const TagIcon: default_2.NamedExoticComponent<default_2.SVGAttrib
|
|
|
2035
2035
|
|
|
2036
2036
|
export declare const TextArea: ForwardRefExoticComponent<Omit< InputProps_2 & ClassAttributes<HTMLTextAreaElement> & TextareaHTMLAttributes<HTMLTextAreaElement>, "ref"> & RefAttributes<HTMLElement>>;
|
|
2037
2037
|
|
|
2038
|
-
/** @deprecated
|
|
2038
|
+
/** @deprecated Use TextArea component instead */
|
|
2039
2039
|
export declare function TextAreaDeprecated(props: TextAreaDeprecatedProps): ReactElement;
|
|
2040
2040
|
|
|
2041
2041
|
export declare namespace TextAreaDeprecated {
|
|
2042
2042
|
var displayName: string;
|
|
2043
2043
|
}
|
|
2044
2044
|
|
|
2045
|
-
/** @deprecated
|
|
2045
|
+
/** @deprecated Use TextArea component instead */
|
|
2046
2046
|
export declare interface TextAreaDeprecatedProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'maxLength'> {
|
|
2047
2047
|
label: string;
|
|
2048
2048
|
inputId?: string;
|
|
@@ -2073,7 +2073,7 @@ export declare const TextFormattingTextStyleIcon: default_2.NamedExoticComponent
|
|
|
2073
2073
|
|
|
2074
2074
|
export declare const TextIcon: default_2.NamedExoticComponent<default_2.SVGAttributes<SVGSVGElement> & default_2.RefAttributes<SVGSVGElement>>;
|
|
2075
2075
|
|
|
2076
|
-
/** @deprecated
|
|
2076
|
+
/** @deprecated Use TextField component instead */
|
|
2077
2077
|
export declare const TextInput: ForwardRefExoticComponent<TextInputProps & RefAttributes<HTMLInputElement>>;
|
|
2078
2078
|
|
|
2079
2079
|
export declare interface TextInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
@@ -2141,7 +2141,7 @@ export declare const ThumbUpAltIcon: default_2.NamedExoticComponent<default_2.SV
|
|
|
2141
2141
|
|
|
2142
2142
|
export declare const ThumbUpIcon: default_2.NamedExoticComponent<default_2.SVGAttributes<SVGSVGElement> & default_2.RefAttributes<SVGSVGElement>>;
|
|
2143
2143
|
|
|
2144
|
-
/** @deprecated
|
|
2144
|
+
/** @deprecated Use Switch component instead */
|
|
2145
2145
|
export declare function Toggle(props: ToggleProps): ReactElement;
|
|
2146
2146
|
|
|
2147
2147
|
export declare namespace Toggle {
|
|
@@ -2199,7 +2199,7 @@ declare interface TooltipContentProps extends Tooltip_2.Positioner.Props {
|
|
|
2199
2199
|
container?: Tooltip_2.Portal.Props['container'];
|
|
2200
2200
|
}
|
|
2201
2201
|
|
|
2202
|
-
/** @deprecated
|
|
2202
|
+
/** @deprecated Use Tooltip component instead */
|
|
2203
2203
|
export declare function TooltipDeprecated(props: TooltipDeprecatedProps): ReactElement;
|
|
2204
2204
|
|
|
2205
2205
|
export declare namespace TooltipDeprecated {
|
package/dist/main.js
CHANGED
|
@@ -89,7 +89,7 @@ var useActionMenuContext = () => {
|
|
|
89
89
|
};
|
|
90
90
|
//#endregion
|
|
91
91
|
//#region src/components/actionMenu/ActionMenu.tsx
|
|
92
|
-
/** @deprecated
|
|
92
|
+
/** @deprecated Use Menu component instead */
|
|
93
93
|
function ActionMenu({ children, ...options }) {
|
|
94
94
|
const listRef = useRef([]);
|
|
95
95
|
const actionMenu = useActionMenu({
|
|
@@ -104,7 +104,7 @@ function ActionMenu({ children, ...options }) {
|
|
|
104
104
|
})
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
|
-
/** @deprecated
|
|
107
|
+
/** @deprecated Use Menu component instead */
|
|
108
108
|
var ActionMenuTrigger = React.forwardRef(function ActionMenuTrigger({ children }, propRef) {
|
|
109
109
|
const context = useActionMenuContext();
|
|
110
110
|
const childrenRef = children.ref;
|
|
@@ -122,7 +122,7 @@ var ActionMenuTrigger = React.forwardRef(function ActionMenuTrigger({ children }
|
|
|
122
122
|
}));
|
|
123
123
|
return null;
|
|
124
124
|
});
|
|
125
|
-
/** @deprecated
|
|
125
|
+
/** @deprecated Use Menu component instead */
|
|
126
126
|
var ActionMenuContent = React.forwardRef(function ActionMenuContent(props, propRef) {
|
|
127
127
|
const { children, style, className = "", ...rest } = props;
|
|
128
128
|
const { context: floatingContext, ...context } = useActionMenuContext();
|
|
@@ -161,7 +161,7 @@ var ActionMenuContent = React.forwardRef(function ActionMenuContent(props, propR
|
|
|
161
161
|
* Optional helper component, returns a styled button optimized for the ActionMenu.
|
|
162
162
|
* Pass it as a direct child to the ActionMenuContent to make use of the ActionMenu's list navigation
|
|
163
163
|
*/
|
|
164
|
-
/** @deprecated
|
|
164
|
+
/** @deprecated Use Menu component instead */
|
|
165
165
|
var ActionMenuItem = React.forwardRef(function ActionMenuItem(props, ref) {
|
|
166
166
|
const { icon, variant = "default", description, className = "", children, ...rest } = props;
|
|
167
167
|
const { index: _dataindex, ref: listItemRef } = useListItem();
|
|
@@ -195,7 +195,7 @@ var ActionMenuItem = React.forwardRef(function ActionMenuItem(props, ref) {
|
|
|
195
195
|
* Optional helper component, returns a styled link optimized for the ActionMenu.
|
|
196
196
|
* Pass it as a direct child to the ActionMenuContent to use the ActionMenu's list navigation
|
|
197
197
|
*/
|
|
198
|
-
/** @deprecated
|
|
198
|
+
/** @deprecated Use Menu component instead */
|
|
199
199
|
var ActionMenuLinkItem = React.forwardRef(function ActionMenuLinkItem(props, ref) {
|
|
200
200
|
const { icon, variant = "default", description, className = "", children, ...rest } = props;
|
|
201
201
|
const { index: _dataindex, ref: listItemRef } = useListItem();
|
|
@@ -225,12 +225,12 @@ var ActionMenuLinkItem = React.forwardRef(function ActionMenuLinkItem(props, ref
|
|
|
225
225
|
})]
|
|
226
226
|
});
|
|
227
227
|
});
|
|
228
|
-
/** @deprecated
|
|
228
|
+
/** @deprecated Use Menu component instead */
|
|
229
229
|
var ActionMenuItemIcon = (props) => /* @__PURE__ */ jsx("span", {
|
|
230
230
|
className: clsx$1("ds-action-menu__icon", `ds-action-menu__icon--${props.variant}`),
|
|
231
231
|
children: props.icon
|
|
232
232
|
});
|
|
233
|
-
/** @deprecated
|
|
233
|
+
/** @deprecated Use Menu component instead */
|
|
234
234
|
var ActionMenuItemLabel = (props) => /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
235
235
|
className: "ds-action-menu__item-label",
|
|
236
236
|
children: props.children
|
|
@@ -8854,7 +8854,7 @@ var Icon = ({ name, ...props }) => {
|
|
|
8854
8854
|
};
|
|
8855
8855
|
//#endregion
|
|
8856
8856
|
//#region src/components/avatarDeprecated/AvatarDeprecated.tsx
|
|
8857
|
-
/** @deprecated Use
|
|
8857
|
+
/** @deprecated Use Avatar component instead */
|
|
8858
8858
|
function AvatarDeprecated(props) {
|
|
8859
8859
|
const { alt, children, className = "", color = "purple", size = "32", src } = props;
|
|
8860
8860
|
const [hasImage, setHasImage] = useState(src !== void 0 && src !== "");
|
|
@@ -9034,7 +9034,7 @@ var BottomSheet = {
|
|
|
9034
9034
|
};
|
|
9035
9035
|
//#endregion
|
|
9036
9036
|
//#region src/components/buttonDeprecated/ButtonDeprecated.tsx
|
|
9037
|
-
/** @deprecated Use Button instead */
|
|
9037
|
+
/** @deprecated Use Button component instead */
|
|
9038
9038
|
var ButtonDeprecated = forwardRef(function Button(props, ref) {
|
|
9039
9039
|
const { children, className = "", variant = "primary", icon = null, disabled, iconPosition = "leading", ...rest } = props;
|
|
9040
9040
|
return /* @__PURE__ */ jsxs("button", {
|
|
@@ -9052,7 +9052,7 @@ var ButtonDeprecated = forwardRef(function Button(props, ref) {
|
|
|
9052
9052
|
]
|
|
9053
9053
|
});
|
|
9054
9054
|
});
|
|
9055
|
-
/** @deprecated Use Button with iconOnly instead */
|
|
9055
|
+
/** @deprecated Use Button component with iconOnly instead */
|
|
9056
9056
|
var IconButton = forwardRef(function IconButton(props, ref) {
|
|
9057
9057
|
const { icon, className = "", variant = "primary", ...rest } = props;
|
|
9058
9058
|
return /* @__PURE__ */ jsx("button", {
|
|
@@ -9289,7 +9289,7 @@ function getDividerStyles(props) {
|
|
|
9289
9289
|
padding: fullWidth ? `${padding}px 0` : `${padding}px`
|
|
9290
9290
|
};
|
|
9291
9291
|
}
|
|
9292
|
-
/** @deprecated
|
|
9292
|
+
/** @deprecated Use Separator component instead */
|
|
9293
9293
|
function Divider(props) {
|
|
9294
9294
|
const { dividerPosition = "horizontal", className = "", fullWidth = false, ...otherProps } = props;
|
|
9295
9295
|
return /* @__PURE__ */ jsx("hr", {
|
|
@@ -9357,7 +9357,7 @@ var Empty = {
|
|
|
9357
9357
|
//#endregion
|
|
9358
9358
|
//#region src/components/emptyState/EmptyState.tsx
|
|
9359
9359
|
var getValidIconSize = (iconSize) => iconSize === "40px" || iconSize === "96px" ? iconSize : "40px";
|
|
9360
|
-
/** @deprecated Use Empty instead */
|
|
9360
|
+
/** @deprecated Use Empty component instead */
|
|
9361
9361
|
function EmptyState(props) {
|
|
9362
9362
|
const { title, icon, iconSize, body, className = "" } = props;
|
|
9363
9363
|
const validIconSize = getValidIconSize(iconSize);
|
|
@@ -10343,7 +10343,7 @@ var ModalHeader = forwardRef(function ModalHeader(props, ref) {
|
|
|
10343
10343
|
});
|
|
10344
10344
|
});
|
|
10345
10345
|
/**
|
|
10346
|
-
* @deprecated
|
|
10346
|
+
* @deprecated Use Dialog component instead
|
|
10347
10347
|
* Returns an array of two boolean values.
|
|
10348
10348
|
* The first represents the visbility of a shadow for the upper element surrounding the scroll area.
|
|
10349
10349
|
* The second represents the shadow visibility for the lower adjacent element.
|
|
@@ -10432,7 +10432,7 @@ var ModalFooter = forwardRef(function ModalFooter(props, ref) {
|
|
|
10432
10432
|
})]
|
|
10433
10433
|
}) : null;
|
|
10434
10434
|
});
|
|
10435
|
-
/** @deprecated
|
|
10435
|
+
/** @deprecated Use Dialog component instead */
|
|
10436
10436
|
function Modal(props) {
|
|
10437
10437
|
const { onCancel, isOpen = false, className = "", overlayClassName = "", title, keepOnBackdropClick = false } = props;
|
|
10438
10438
|
return /* @__PURE__ */ jsx(ModalWrapper, {
|
|
@@ -10483,11 +10483,11 @@ function ModalWindow(props) {
|
|
|
10483
10483
|
})
|
|
10484
10484
|
] });
|
|
10485
10485
|
}
|
|
10486
|
-
/** @deprecated
|
|
10486
|
+
/** @deprecated Use Dialog component instead */
|
|
10487
10487
|
Modal.displayName = "Modal";
|
|
10488
10488
|
//#endregion
|
|
10489
10489
|
//#region src/components/modalDialog/ModalDialog.tsx
|
|
10490
|
-
/** @deprecated
|
|
10490
|
+
/** @deprecated Use AlertDialog component instead */
|
|
10491
10491
|
function ModalDialog(props) {
|
|
10492
10492
|
const { isOpen, title, text, icon, confirmButtonVariant = "primary", confirmButtonText, onConfirm, cancelButtonText, onCancel, className = "", overlayClassName = "" } = props;
|
|
10493
10493
|
const { refs, context } = useFloating({
|
|
@@ -11180,7 +11180,7 @@ var Separator = forwardRef((props, ref) => {
|
|
|
11180
11180
|
Separator.displayName = "Separator";
|
|
11181
11181
|
//#endregion
|
|
11182
11182
|
//#region src/components/singleSelect/SingleSelect.tsx
|
|
11183
|
-
/** @deprecated
|
|
11183
|
+
/** @deprecated Use Select or SearchableSingleSelect components instead */
|
|
11184
11184
|
function SingleSelect(props) {
|
|
11185
11185
|
const { options, value, onChange, optionLabel, optionDescription, placeholder, label, description, error, disabled, icon, loading, emptyResultText, optionRef, triggerRef, dropdownRef, requiredLabel, triggerTabIndex, onTriggerFocus: handleTriggerFocus, onTriggerBlur: handleTriggerBlur, onTriggerMouseDown: handleTriggerMouseDown, ariaLabelledBy, ...variantProps } = props;
|
|
11186
11186
|
const [open, setOpen] = useState(false);
|
|
@@ -11560,7 +11560,7 @@ var TextArea = forwardRef((props, ref) => {
|
|
|
11560
11560
|
});
|
|
11561
11561
|
//#endregion
|
|
11562
11562
|
//#region src/components/textAreaDeprecated/TextAreaDeprecated.tsx
|
|
11563
|
-
/** @deprecated
|
|
11563
|
+
/** @deprecated Use TextArea component instead */
|
|
11564
11564
|
function TextAreaDeprecated(props) {
|
|
11565
11565
|
const { value, handleValueChange, limit, label, inputId, description, disabled, errorAriaLive, errorMessage, requiredLabel, resizable, className = "", ...rest } = props;
|
|
11566
11566
|
const [count, setCount] = useState(typeof value === "string" ? value.length : 0);
|
|
@@ -11651,7 +11651,7 @@ var TextField = forwardRef((props, ref) => {
|
|
|
11651
11651
|
});
|
|
11652
11652
|
//#endregion
|
|
11653
11653
|
//#region src/components/textInput/TextInput.tsx
|
|
11654
|
-
/** @deprecated
|
|
11654
|
+
/** @deprecated Use TextField component instead */
|
|
11655
11655
|
var TextInput = forwardRef(function TextInput(props, ref) {
|
|
11656
11656
|
const { label = "Label", errorMessage, description, width, icon, iconPosition = "leading", id, requiredLabel, type = "text", variant = "default", className = "", ...restProps } = props;
|
|
11657
11657
|
const randomId = useId();
|
|
@@ -11718,7 +11718,7 @@ var TextInput = forwardRef(function TextInput(props, ref) {
|
|
|
11718
11718
|
TextInput.displayName = "TextInput";
|
|
11719
11719
|
//#endregion
|
|
11720
11720
|
//#region src/components/toggle/Toggle.tsx
|
|
11721
|
-
/** @deprecated
|
|
11721
|
+
/** @deprecated Use Switch component instead */
|
|
11722
11722
|
function Toggle(props) {
|
|
11723
11723
|
const { checked, disabled, name, label, description, onChange, spaceBetween, className = "", ref } = props;
|
|
11724
11724
|
const id = useId();
|
|
@@ -11861,7 +11861,7 @@ var useFloatingElement = (placement, strategy) => {
|
|
|
11861
11861
|
};
|
|
11862
11862
|
//#endregion
|
|
11863
11863
|
//#region src/components/tooltipDeprecated/TooltipDeprecated.tsx
|
|
11864
|
-
/** @deprecated
|
|
11864
|
+
/** @deprecated Use Tooltip component instead */
|
|
11865
11865
|
function TooltipDeprecated(props) {
|
|
11866
11866
|
const { content, children, placement = "top", className = "" } = props;
|
|
11867
11867
|
const { context, floatingUIStyles, isMounted, refs, styles } = useFloatingElement(placement);
|