@ceed/cds 1.34.1 → 1.36.0-next.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/components/Accordions/Accordions.d.ts +1 -0
- package/dist/components/Alert/Alert.d.ts +5 -5
- package/dist/components/Autocomplete/Autocomplete.d.ts +2 -2
- package/dist/components/Avatar/Avatar.d.ts +7 -17
- package/dist/components/Box/Box.d.ts +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +6 -5
- package/dist/components/Button/Button.d.ts +3 -2
- package/dist/components/Calendar/Calendar.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/Chip/Chip.d.ts +1 -0
- package/dist/components/Container/Container.d.ts +6 -1
- package/dist/components/CurrencyInput/CurrencyInput.d.ts +1 -1
- package/dist/components/DialogActions/DialogActions.d.ts +1 -0
- package/dist/components/DialogContent/DialogContent.d.ts +1 -0
- package/dist/components/DialogFrame/DialogFrame.d.ts +1 -1
- package/dist/components/DialogTitle/DialogTitle.d.ts +1 -0
- package/dist/components/Divider/Divider.d.ts +1 -0
- package/dist/components/Drawer/Drawer.d.ts +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts +28 -1
- package/dist/components/FilterableCheckboxGroup/FilterableCheckboxGroup.d.ts +1 -1
- package/dist/components/FormControl/FormControl.d.ts +1 -0
- package/dist/components/FormHelperText/FormHelperText.d.ts +1 -0
- package/dist/components/FormLabel/FormLabel.d.ts +1 -0
- package/dist/components/Grid/Grid.d.ts +1 -0
- package/dist/components/IconButton/IconButton.d.ts +3 -2
- package/dist/components/IconMenuButton/IconMenuButton.d.ts +7 -6
- package/dist/components/InfoSign/InfoSign.d.ts +3 -2
- package/dist/components/Input/Input.d.ts +8 -22
- package/dist/components/InsetDrawer/InsetDrawer.d.ts +1 -0
- package/dist/components/Markdown/Markdown.d.ts +9 -24
- package/dist/components/Menu/Menu.d.ts +2 -1
- package/dist/components/MenuButton/MenuButton.d.ts +10 -8
- package/dist/components/Modal/Modal.d.ts +4 -2
- package/dist/components/NavigationGroup/NavigationGroup.d.ts +3 -2
- package/dist/components/NavigationItem/NavigationItem.d.ts +3 -2
- package/dist/components/Navigator/Navigator.d.ts +5 -4
- package/dist/components/Pagination/Pagination.d.ts +2 -2
- package/dist/components/Radio/Radio.d.ts +1 -0
- package/dist/components/RadioList/RadioList.d.ts +3 -2
- package/dist/components/Select/Select.d.ts +12 -10
- package/dist/components/Sheet/Sheet.d.ts +1 -0
- package/dist/components/Stack/Stack.d.ts +1 -0
- package/dist/components/Stepper/Stepper.d.ts +2 -1
- package/dist/components/Switch/Switch.d.ts +1 -0
- package/dist/components/Table/Table.d.ts +7 -5
- package/dist/components/Tabs/Tabs.d.ts +1 -0
- package/dist/components/Textarea/Textarea.d.ts +8 -20
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +15 -0
- package/dist/components/Tooltip/Tooltip.d.ts +1 -0
- package/dist/components/Typography/Typography.d.ts +1 -0
- package/dist/components/Uploader/Uploader.d.ts +18 -17
- package/dist/components/data-display/Avatar.md +60 -72
- package/dist/components/data-display/Badge.md +197 -181
- package/dist/components/data-display/Chip.md +164 -142
- package/dist/components/data-display/DataTable.md +843 -338
- package/dist/components/data-display/InfoSign.md +1 -3
- package/dist/components/data-display/Markdown.md +93 -125
- package/dist/components/data-display/Table.md +1453 -1007
- package/dist/components/data-display/Typography.md +113 -116
- package/dist/components/feedback/Alert.md +80 -86
- package/dist/components/feedback/CircularProgress.md +32 -36
- package/dist/components/feedback/Dialog.md +25 -17
- package/dist/components/feedback/Modal.md +296 -264
- package/dist/components/feedback/Skeleton.md +125 -89
- package/dist/components/index.d.ts +62 -2
- package/dist/components/inputs/Autocomplete.md +191 -95
- package/dist/components/inputs/Button.md +83 -83
- package/dist/components/inputs/ButtonGroup.md +195 -185
- package/dist/components/inputs/Calendar.md +25 -28
- package/dist/components/inputs/Checkbox.md +11 -29
- package/dist/components/inputs/CurrencyInput.md +4 -4
- package/dist/components/inputs/DatePicker.md +229 -110
- package/dist/components/inputs/DateRangePicker.md +248 -137
- package/dist/components/inputs/FilterableCheckboxGroup.md +115 -55
- package/dist/components/inputs/FormControl.md +75 -69
- package/dist/components/inputs/IconButton.md +229 -205
- package/dist/components/inputs/Input.md +131 -98
- package/dist/components/inputs/MonthPicker.md +186 -84
- package/dist/components/inputs/MonthRangePicker.md +73 -49
- package/dist/components/inputs/PercentageInput.md +15 -31
- package/dist/components/inputs/RadioButton.md +320 -256
- package/dist/components/inputs/RadioList.md +66 -50
- package/dist/components/inputs/RadioTileGroup.md +287 -170
- package/dist/components/inputs/SearchBar.md +82 -60
- package/dist/components/inputs/Select.md +106 -95
- package/dist/components/inputs/Slider.md +153 -102
- package/dist/components/inputs/Switch.md +193 -138
- package/dist/components/inputs/Textarea.md +15 -20
- package/dist/components/inputs/Uploader/Uploader.md +68 -39
- package/dist/components/layout/Box.md +841 -662
- package/dist/components/layout/Container.md +3 -11
- package/dist/components/layout/Grid.md +480 -394
- package/dist/components/layout/Stack.md +739 -566
- package/dist/components/navigation/Breadcrumbs.md +4 -4
- package/dist/components/navigation/Drawer.md +34 -25
- package/dist/components/navigation/Dropdown.md +745 -408
- package/dist/components/navigation/IconMenuButton.md +14 -6
- package/dist/components/navigation/InsetDrawer.md +8 -13
- package/dist/components/navigation/Link.md +1 -2
- package/dist/components/navigation/Menu.md +623 -502
- package/dist/components/navigation/MenuButton.md +18 -10
- package/dist/components/navigation/NavigationGroup.md +19 -50
- package/dist/components/navigation/NavigationItem.md +6 -6
- package/dist/components/navigation/Navigator.md +26 -28
- package/dist/components/navigation/Pagination.md +86 -75
- package/dist/components/navigation/Stepper.md +2 -12
- package/dist/components/navigation/Tabs.md +48 -36
- package/dist/components/surfaces/Accordions.md +89 -172
- package/dist/components/surfaces/Card.md +1094 -709
- package/dist/components/surfaces/Divider.md +562 -412
- package/dist/components/surfaces/Sheet.md +700 -518
- package/dist/guides/ThemeProvider.md +8 -8
- package/dist/index.browser.js +5 -5
- package/dist/index.browser.js.map +4 -4
- package/dist/index.cjs +1082 -1036
- package/dist/index.d.ts +2 -1
- package/dist/index.js +749 -695
- package/framer/index.js +1 -1
- package/package.json +34 -36
|
@@ -9,7 +9,7 @@ declare const PaginationRoot: import("@emotion/styled").StyledComponent<Pick<{
|
|
|
9
9
|
} & import("@mui/joy").StackSlotsAndSlotProps & import("@mui/joy/styles/types").SystemProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
10
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
11
11
|
}, "children" | "direction" | "sx" | ("p" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "divider" | "spacing" | "useFlexGap" | keyof import("@mui/joy").StackSlotsAndSlotProps>, "style" | "title" | "children" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "content" | "direction" | "translate" | "ref" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | ("p" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "divider" | "spacing" | "useFlexGap" | keyof import("@mui/joy").StackSlotsAndSlotProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme>, {}, {}>;
|
|
12
|
-
interface PaginationProps extends React.ComponentProps<typeof PaginationRoot> {
|
|
12
|
+
export interface PaginationProps extends React.ComponentProps<typeof PaginationRoot> {
|
|
13
13
|
paginationModel: {
|
|
14
14
|
page: number;
|
|
15
15
|
pageSize: number;
|
|
@@ -23,7 +23,7 @@ interface PaginationProps extends React.ComponentProps<typeof PaginationRoot> {
|
|
|
23
23
|
size?: 'sm' | 'md' | 'lg';
|
|
24
24
|
variant?: 'standard' | 'compact';
|
|
25
25
|
}
|
|
26
|
-
declare function Pagination(
|
|
26
|
+
declare function Pagination(inProps: PaginationProps): React.JSX.Element;
|
|
27
27
|
declare namespace Pagination {
|
|
28
28
|
var displayName: string;
|
|
29
29
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React, { ComponentProps, ReactNode } from 'react';
|
|
2
2
|
import { RadioGroup } from '../Radio/Radio';
|
|
3
|
-
|
|
3
|
+
export type RadioListProps = {
|
|
4
4
|
items: {
|
|
5
5
|
label: ReactNode;
|
|
6
6
|
value: string;
|
|
7
7
|
}[];
|
|
8
|
-
} & ComponentProps<typeof RadioGroup
|
|
8
|
+
} & ComponentProps<typeof RadioGroup>;
|
|
9
|
+
declare function RadioList(props: RadioListProps): React.JSX.Element;
|
|
9
10
|
declare namespace RadioList {
|
|
10
11
|
var displayName: string;
|
|
11
12
|
}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import React, { ComponentProps } from 'react';
|
|
2
|
-
import { Select as JoySelect } from '@mui/joy';
|
|
2
|
+
import { Select as JoySelect, type SelectProps as JoySelectProps } from '@mui/joy';
|
|
3
3
|
import { SelectValue } from '@mui/base';
|
|
4
|
+
export type { JoySelectProps };
|
|
5
|
+
export type { OptionProps } from '@mui/joy';
|
|
6
|
+
export type OptionType = {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string | number;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
secondaryText?: string;
|
|
11
|
+
} | string | number;
|
|
4
12
|
declare const Option: import("framer-motion").CustomDomComponent<{
|
|
5
13
|
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").OptionPropsColorOverrides> | undefined;
|
|
6
14
|
children?: React.ReactNode;
|
|
@@ -13,16 +21,10 @@ declare const Option: import("framer-motion").CustomDomComponent<{
|
|
|
13
21
|
ref?: ((instance: HTMLLIElement | null) => void) | React.RefObject<HTMLLIElement> | null | undefined;
|
|
14
22
|
}, "label" | "children" | "color" | "variant" | "sx" | "disabled" | "value" | keyof import("@mui/joy").OptionSlotsAndSlotProps>>;
|
|
15
23
|
export { Option };
|
|
16
|
-
type
|
|
17
|
-
label: string;
|
|
18
|
-
value: string | number;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
secondaryText?: string;
|
|
21
|
-
} | string | number;
|
|
22
|
-
type InferOptionValue<OptionValue> = OptionValue extends {
|
|
24
|
+
export type InferOptionValue<OptionValue> = OptionValue extends {
|
|
23
25
|
value: infer V;
|
|
24
26
|
} ? V : OptionValue;
|
|
25
|
-
interface
|
|
27
|
+
export interface SelectProps<OptionValue extends OptionType, Multiple extends boolean = false> extends Omit<ComponentProps<typeof JoySelect<OptionValue, any, Multiple>>, 'value' | 'onChange' | 'multiple'> {
|
|
26
28
|
options: OptionValue[];
|
|
27
29
|
label?: string;
|
|
28
30
|
helperText?: string;
|
|
@@ -36,7 +38,7 @@ interface CeedSelectProps<OptionValue extends OptionType, Multiple extends boole
|
|
|
36
38
|
}, newValue: InferOptionValue<OptionValue>) => void;
|
|
37
39
|
multiple?: Multiple;
|
|
38
40
|
}
|
|
39
|
-
declare function Select<OptionValue extends OptionType, Multiple extends boolean = false>(props:
|
|
41
|
+
declare function Select<OptionValue extends OptionType, Multiple extends boolean = false>(props: SelectProps<OptionValue, Multiple>): React.JSX.Element;
|
|
40
42
|
declare namespace Select {
|
|
41
43
|
var displayName: string;
|
|
42
44
|
}
|
|
@@ -21,7 +21,8 @@ declare const StepIndicator: import("@emotion/styled").StyledComponent<{
|
|
|
21
21
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
22
22
|
}, "children" | "color" | "variant" | "sx" | keyof import("@mui/joy").StepIndicatorSlotsAndSlotProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme>, {}, {}>;
|
|
23
23
|
export { StepIndicator };
|
|
24
|
-
|
|
24
|
+
export type { StepProps, StepIndicatorProps, StepperProps as JoyStepperProps } from '@mui/joy';
|
|
25
|
+
export interface StepperProps {
|
|
25
26
|
steps: {
|
|
26
27
|
indicatorContent?: ReactNode | string;
|
|
27
28
|
label?: ReactNode | string;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableProps } from '@mui/joy';
|
|
3
|
+
export type { TableProps };
|
|
3
4
|
declare const Table: {
|
|
4
5
|
(props: TableProps): React.JSX.Element;
|
|
5
6
|
displayName: string;
|
|
6
7
|
};
|
|
7
8
|
export { Table };
|
|
8
|
-
interface
|
|
9
|
+
export interface TableHeadCell {
|
|
9
10
|
label: string;
|
|
10
11
|
numeric?: boolean;
|
|
11
12
|
width?: string;
|
|
12
13
|
minWidth?: string;
|
|
13
14
|
maxWidth?: string;
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
-
headCells:
|
|
16
|
+
export interface TableHeadProps<D extends Record<string, unknown> = Record<string, unknown>> {
|
|
17
|
+
headCells: TableHeadCell[];
|
|
17
18
|
/**
|
|
18
19
|
* Show Checkbox to select all rows
|
|
19
20
|
*/
|
|
@@ -32,12 +33,13 @@ declare function TableHead<D extends Record<string, unknown>>(props: {
|
|
|
32
33
|
[key: string]: any;
|
|
33
34
|
}>;
|
|
34
35
|
};
|
|
35
|
-
}
|
|
36
|
+
}
|
|
37
|
+
declare function TableHead<D extends Record<string, unknown>>(props: TableHeadProps<D>): React.JSX.Element;
|
|
36
38
|
declare namespace TableHead {
|
|
37
39
|
var displayName: string;
|
|
38
40
|
}
|
|
39
41
|
export { TableHead };
|
|
40
|
-
interface TableBodyProps<D extends Record<string, unknown>> {
|
|
42
|
+
export interface TableBodyProps<D extends Record<string, unknown> = Record<string, unknown>> {
|
|
41
43
|
rows: D[];
|
|
42
44
|
cellOrder: (keyof D)[];
|
|
43
45
|
rowOptions?: Partial<Record<keyof D, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
export type { TabProps, TabsProps, TabListProps, TabPanelProps } from '@mui/joy';
|
|
2
3
|
declare const Tabs: import("@emotion/styled").StyledComponent<Omit<import("@mui/base").TabsOwnProps, "slots" | "slotProps"> & {
|
|
3
4
|
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").TabsPropsColorOverrides> | undefined;
|
|
4
5
|
size?: import("@mui/types").OverridableStringUnion<"sm" | "md" | "lg", import("@mui/joy").TabsPropsSizeOverrides> | undefined;
|
|
@@ -1,26 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TextareaProps } from '@mui/joy';
|
|
2
|
+
import { TextareaProps as JoyTextareaProps } from '@mui/joy';
|
|
3
3
|
import { MotionProps } from 'framer-motion';
|
|
4
|
+
export type { JoyTextareaProps };
|
|
5
|
+
export type TextareaProps = {
|
|
6
|
+
label?: string;
|
|
7
|
+
error?: boolean;
|
|
8
|
+
helperText?: React.ReactNode;
|
|
9
|
+
} & JoyTextareaProps & MotionProps;
|
|
4
10
|
declare const Textarea: {
|
|
5
|
-
(props:
|
|
6
|
-
label?: string | undefined;
|
|
7
|
-
error?: boolean | undefined;
|
|
8
|
-
helperText?: React.ReactNode;
|
|
9
|
-
} & {
|
|
10
|
-
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
11
|
-
} & import("@mui/joy").TextareaSlotsAndSlotProps & Pick<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "defaultValue" | "autoFocus" | "id" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onKeyUp" | "onClick" | "disabled" | "name" | "value" | "autoComplete" | "placeholder" | "readOnly" | "required"> & {
|
|
12
|
-
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").TextareaPropsColorOverrides> | undefined;
|
|
13
|
-
endDecorator?: React.ReactNode;
|
|
14
|
-
error?: boolean | undefined;
|
|
15
|
-
maxRows?: string | number | undefined;
|
|
16
|
-
minRows?: string | number | undefined;
|
|
17
|
-
startDecorator?: React.ReactNode;
|
|
18
|
-
size?: import("@mui/types").OverridableStringUnion<"sm" | "md" | "lg", import("@mui/joy").TextareaPropsSizeOverrides> | undefined;
|
|
19
|
-
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
20
|
-
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").TextareaPropsVariantOverrides> | undefined;
|
|
21
|
-
} & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
22
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
23
|
-
}, "color" | "defaultValue" | "autoFocus" | "id" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onKeyUp" | "onClick" | "variant" | "sx" | "disabled" | "size" | "endDecorator" | "startDecorator" | "component" | "name" | "value" | "autoComplete" | "placeholder" | "readOnly" | "required" | "error" | keyof import("@mui/joy").TextareaSlotsAndSlotProps | "maxRows" | "minRows"> & MotionProps): React.JSX.Element;
|
|
11
|
+
(props: TextareaProps): React.JSX.Element;
|
|
24
12
|
displayName: string;
|
|
25
13
|
};
|
|
26
14
|
export { Textarea };
|
|
@@ -8,6 +8,9 @@ import { MonthPickerProps } from '../MonthPicker';
|
|
|
8
8
|
import { MonthRangePickerProps } from '../MonthRangePicker';
|
|
9
9
|
import { PercentageInputProps } from '../PercentageInput';
|
|
10
10
|
import type { SearchBarOwnerState, SearchBarProps, SearchBarSlot } from '../SearchBar/SearchBar';
|
|
11
|
+
import type { AlertProps } from '../Alert/Alert';
|
|
12
|
+
import type { PaginationProps } from '../Pagination/Pagination';
|
|
13
|
+
import type { FilterableCheckboxGroupProps } from '../FilterableCheckboxGroup/FilterableCheckboxGroup';
|
|
11
14
|
declare module '@mui/joy/styles' {
|
|
12
15
|
interface TypographySystemOverrides {
|
|
13
16
|
'marketing-lg': true;
|
|
@@ -47,6 +50,18 @@ declare module '@mui/joy/styles' {
|
|
|
47
50
|
defaultProps?: Partial<SearchBarProps>;
|
|
48
51
|
styleOverrides?: StyleOverrides<SearchBarSlot, SearchBarOwnerState, Theme>;
|
|
49
52
|
};
|
|
53
|
+
Alert?: {
|
|
54
|
+
defaultProps?: Partial<AlertProps>;
|
|
55
|
+
styleOverrides?: StyleOverrides<'root', {}, Theme>;
|
|
56
|
+
};
|
|
57
|
+
Pagination?: {
|
|
58
|
+
defaultProps?: Partial<PaginationProps>;
|
|
59
|
+
styleOverrides?: StyleOverrides<'root' | 'button' | 'container', {}, Theme>;
|
|
60
|
+
};
|
|
61
|
+
FilterableCheckboxGroup?: {
|
|
62
|
+
defaultProps?: Partial<FilterableCheckboxGroupProps>;
|
|
63
|
+
styleOverrides?: StyleOverrides<'root', {}, Theme>;
|
|
64
|
+
};
|
|
50
65
|
}
|
|
51
66
|
}
|
|
52
67
|
declare module '@mui/joy/Avatar' {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TypographyProps } from '@mui/joy';
|
|
3
3
|
import { MotionProps } from 'framer-motion';
|
|
4
|
+
export type { TypographyProps };
|
|
4
5
|
declare const Typography: {
|
|
5
6
|
(props: TypographyProps & MotionProps): React.JSX.Element;
|
|
6
7
|
displayName: string;
|
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
type UserUpload = {
|
|
2
|
+
export type UserUpload = {
|
|
3
3
|
id: string | number;
|
|
4
4
|
name: string;
|
|
5
5
|
size?: number;
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
onChange?: (
|
|
7
|
+
export interface UploaderProps {
|
|
8
|
+
onChange?: (event: {
|
|
9
9
|
target: {
|
|
10
|
-
name?: string
|
|
10
|
+
name?: string;
|
|
11
11
|
value: File[];
|
|
12
12
|
};
|
|
13
|
-
}) => void
|
|
14
|
-
onDelete?: (
|
|
15
|
-
name?: string
|
|
16
|
-
size?:
|
|
17
|
-
label?: string
|
|
18
|
-
error?: boolean
|
|
13
|
+
}) => void;
|
|
14
|
+
onDelete?: (deletedFile: UserUpload) => void;
|
|
15
|
+
name?: string;
|
|
16
|
+
size?: 'sm' | 'md';
|
|
17
|
+
label?: string;
|
|
18
|
+
error?: boolean;
|
|
19
19
|
accept: string;
|
|
20
|
-
disabled?: boolean
|
|
21
|
-
minCount?: number
|
|
22
|
-
maxCount?: number
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
minCount?: number;
|
|
22
|
+
maxCount?: number;
|
|
23
23
|
/**
|
|
24
24
|
* Maximum size per file in bytes
|
|
25
25
|
*/
|
|
26
|
-
maxFileSize?: number
|
|
26
|
+
maxFileSize?: number;
|
|
27
27
|
/**
|
|
28
28
|
* Maximum size of all files in bytes
|
|
29
29
|
*/
|
|
30
30
|
maxFileTotalSize: number;
|
|
31
|
-
uploaded?: UserUpload[]
|
|
31
|
+
uploaded?: UserUpload[];
|
|
32
32
|
/**
|
|
33
33
|
* 모든 안내 메세지/에러 메세지보다 해당 메세지가 우선적으로 보여진다.
|
|
34
34
|
* 기본 안내 메세지 및 에러 메세지를 사용하려면 해당 필드를 비워야 한다.
|
|
35
35
|
*/
|
|
36
|
-
helperText?: string
|
|
37
|
-
}
|
|
36
|
+
helperText?: string;
|
|
37
|
+
}
|
|
38
|
+
declare const Uploader: React.MemoExoticComponent<(props: UploaderProps) => React.JSX.Element>;
|
|
38
39
|
export { Uploader };
|
|
@@ -54,8 +54,8 @@ An avatar that uses an image.
|
|
|
54
54
|
|
|
55
55
|
```tsx
|
|
56
56
|
<Stack direction="row" spacing={2} alignItems="center">
|
|
57
|
-
|
|
58
|
-
</Stack>
|
|
57
|
+
<Avatar {...args} />
|
|
58
|
+
</Stack>
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
### With Text
|
|
@@ -64,8 +64,8 @@ An avatar that uses text or initials.
|
|
|
64
64
|
|
|
65
65
|
```tsx
|
|
66
66
|
<Stack direction="row" spacing={2} alignItems="center">
|
|
67
|
-
|
|
68
|
-
</Stack>
|
|
67
|
+
<Avatar {...args} />
|
|
68
|
+
</Stack>
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
## Customization
|
|
@@ -76,8 +76,10 @@ You can apply various visual styles.
|
|
|
76
76
|
|
|
77
77
|
```tsx
|
|
78
78
|
<Stack direction="row" spacing={2} alignItems="center">
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
{variants.map((variant) => (
|
|
80
|
+
<Avatar key={variant} {...args} variant={variant} />
|
|
81
|
+
))}
|
|
82
|
+
</Stack>
|
|
81
83
|
```
|
|
82
84
|
|
|
83
85
|
- **solid**: A style with a filled background color
|
|
@@ -91,10 +93,12 @@ You can use avatars in various sizes.
|
|
|
91
93
|
|
|
92
94
|
```tsx
|
|
93
95
|
<Stack direction="row" spacing={2} alignItems="center">
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
</
|
|
96
|
+
{sizesWithXs.map((size) => (
|
|
97
|
+
<Avatar key={size} {...args} size={size}>
|
|
98
|
+
{getSizeContent(size)}
|
|
99
|
+
</Avatar>
|
|
100
|
+
))}
|
|
101
|
+
</Stack>
|
|
98
102
|
```
|
|
99
103
|
|
|
100
104
|
- **xs**: Extra small size (16px)
|
|
@@ -108,8 +112,10 @@ You can apply various color themes.
|
|
|
108
112
|
|
|
109
113
|
```tsx
|
|
110
114
|
<Stack direction="row" spacing={2} alignItems="center">
|
|
111
|
-
|
|
112
|
-
|
|
115
|
+
{colors.map((color) => (
|
|
116
|
+
<Avatar key={color} {...args} color={color} />
|
|
117
|
+
))}
|
|
118
|
+
</Stack>
|
|
113
119
|
```
|
|
114
120
|
|
|
115
121
|
- **primary**: Primary brand color
|
|
@@ -124,26 +130,32 @@ You can review all variant, size, and color combinations.
|
|
|
124
130
|
|
|
125
131
|
```tsx
|
|
126
132
|
<Stack gap={8}>
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
<
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
</
|
|
133
|
+
{variants.map((variant) => (
|
|
134
|
+
<Stack key={variant} gap={2}>
|
|
135
|
+
<Typography level="title-md">
|
|
136
|
+
{variant.slice(0, 1).toLocaleUpperCase()}
|
|
137
|
+
{variant.slice(1)} Variant
|
|
138
|
+
</Typography>
|
|
139
|
+
{colors.map((color) => (
|
|
140
|
+
<Stack key={color} direction="row" gap={2} alignItems="center">
|
|
141
|
+
{sizesWithXs.map((size) => (
|
|
142
|
+
<Stack key={size} alignItems="center" gap={1}>
|
|
143
|
+
<Avatar {...args} size={size} color={color} variant={variant}>
|
|
144
|
+
{getSizeContent(size)}
|
|
145
|
+
</Avatar>
|
|
146
|
+
<Typography level="body-sm">{size}</Typography>
|
|
147
|
+
</Stack>
|
|
148
|
+
))}
|
|
149
|
+
{/* With image */}
|
|
150
|
+
<Stack alignItems="center" gap={1}>
|
|
151
|
+
<Avatar {...args} size="md" color={color} variant={variant} />
|
|
152
|
+
<Typography level="body-sm">image</Typography>
|
|
153
|
+
</Stack>
|
|
154
|
+
</Stack>
|
|
155
|
+
))}
|
|
156
|
+
</Stack>
|
|
157
|
+
))}
|
|
158
|
+
</Stack>
|
|
147
159
|
```
|
|
148
160
|
|
|
149
161
|
## Common Use Cases
|
|
@@ -154,11 +166,7 @@ An example of using an avatar in a user profile.
|
|
|
154
166
|
|
|
155
167
|
```tsx
|
|
156
168
|
<Stack direction="row" spacing={2} alignItems="center">
|
|
157
|
-
<Avatar
|
|
158
|
-
src="/user-profile.jpg"
|
|
159
|
-
alt="김철수"
|
|
160
|
-
size="lg"
|
|
161
|
-
/>
|
|
169
|
+
<Avatar src="/user-profile.jpg" alt="김철수" size="lg" />
|
|
162
170
|
<Stack>
|
|
163
171
|
<Typography level="title-md">김철수</Typography>
|
|
164
172
|
<Typography level="body-sm" color="neutral">
|
|
@@ -200,9 +208,7 @@ Used to represent a user in comments or feeds.
|
|
|
200
208
|
2시간 전
|
|
201
209
|
</Typography>
|
|
202
210
|
</Stack>
|
|
203
|
-
<Typography level="body-md">
|
|
204
|
-
이것은 사용자의 댓글 내용입니다.
|
|
205
|
-
</Typography>
|
|
211
|
+
<Typography level="body-md">이것은 사용자의 댓글 내용입니다.</Typography>
|
|
206
212
|
</Stack>
|
|
207
213
|
</Stack>
|
|
208
214
|
```
|
|
@@ -217,13 +223,7 @@ Used to display a list of team members.
|
|
|
217
223
|
|
|
218
224
|
{teamMembers.map((member) => (
|
|
219
225
|
<Stack key={member.id} direction="row" spacing={2} alignItems="center">
|
|
220
|
-
<Avatar
|
|
221
|
-
src={member.avatar}
|
|
222
|
-
alt={member.name}
|
|
223
|
-
size="md"
|
|
224
|
-
variant="soft"
|
|
225
|
-
color="primary"
|
|
226
|
-
>
|
|
226
|
+
<Avatar src={member.avatar} alt={member.name} size="md" variant="soft" color="primary">
|
|
227
227
|
{member.name.charAt(0)}
|
|
228
228
|
</Avatar>
|
|
229
229
|
<Stack flex={1}>
|
|
@@ -246,9 +246,15 @@ Used to display multiple users as a group.
|
|
|
246
246
|
|
|
247
247
|
```tsx
|
|
248
248
|
<Stack direction="row" spacing={-1}>
|
|
249
|
-
<Avatar size="sm" variant="solid" color="primary"
|
|
250
|
-
|
|
251
|
-
|
|
249
|
+
<Avatar size="sm" variant="solid" color="primary">
|
|
250
|
+
김
|
|
251
|
+
</Avatar>
|
|
252
|
+
<Avatar size="sm" variant="solid" color="success">
|
|
253
|
+
이
|
|
254
|
+
</Avatar>
|
|
255
|
+
<Avatar size="sm" variant="solid" color="warning">
|
|
256
|
+
박
|
|
257
|
+
</Avatar>
|
|
252
258
|
<Avatar size="sm" variant="outlined" color="neutral">
|
|
253
259
|
<Typography level="body-xs">+3</Typography>
|
|
254
260
|
</Avatar>
|
|
@@ -327,12 +333,7 @@ Used to represent users or items in list items.
|
|
|
327
333
|
If image loading fails, it automatically falls back to initials or an icon.
|
|
328
334
|
|
|
329
335
|
```tsx
|
|
330
|
-
<Avatar
|
|
331
|
-
src="/broken-image-url.jpg"
|
|
332
|
-
alt="김철수"
|
|
333
|
-
color="primary"
|
|
334
|
-
variant="soft"
|
|
335
|
-
>
|
|
336
|
+
<Avatar src="/broken-image-url.jpg" alt="김철수" color="primary" variant="soft">
|
|
336
337
|
김
|
|
337
338
|
</Avatar>
|
|
338
339
|
```
|
|
@@ -342,12 +343,7 @@ If image loading fails, it automatically falls back to initials or an icon.
|
|
|
342
343
|
While the image is loading, `children` are shown first, then the image is displayed once loading completes.
|
|
343
344
|
|
|
344
345
|
```tsx
|
|
345
|
-
<Avatar
|
|
346
|
-
src="/slow-loading-image.jpg"
|
|
347
|
-
alt="사용자"
|
|
348
|
-
color="neutral"
|
|
349
|
-
variant="soft"
|
|
350
|
-
>
|
|
346
|
+
<Avatar src="/slow-loading-image.jpg" alt="사용자" color="neutral" variant="soft">
|
|
351
347
|
<PersonIcon />
|
|
352
348
|
</Avatar>
|
|
353
349
|
```
|
|
@@ -378,10 +374,7 @@ Avatar provides the following accessibility features:
|
|
|
378
374
|
For image avatars, provide appropriate alt text.
|
|
379
375
|
|
|
380
376
|
```tsx
|
|
381
|
-
<Avatar
|
|
382
|
-
src="/user-profile.jpg"
|
|
383
|
-
alt="김철수의 프로필 사진"
|
|
384
|
-
/>
|
|
377
|
+
<Avatar src="/user-profile.jpg" alt="김철수의 프로필 사진" />
|
|
385
378
|
```
|
|
386
379
|
|
|
387
380
|
### Semantic Meaning
|
|
@@ -389,12 +382,7 @@ For image avatars, provide appropriate alt text.
|
|
|
389
382
|
If the avatar carries meaning rather than serving a purely decorative purpose, provide an appropriate role.
|
|
390
383
|
|
|
391
384
|
```tsx
|
|
392
|
-
<Avatar
|
|
393
|
-
src="/user-avatar.jpg"
|
|
394
|
-
alt="현재 사용자"
|
|
395
|
-
role="img"
|
|
396
|
-
aria-label="현재 로그인한 사용자의 프로필 이미지"
|
|
397
|
-
/>
|
|
385
|
+
<Avatar src="/user-avatar.jpg" alt="현재 사용자" role="img" aria-label="현재 로그인한 사용자의 프로필 이미지" />
|
|
398
386
|
```
|
|
399
387
|
|
|
400
388
|
### Color Contrast
|