@lunit/design-system 2.1.0 → 2.2.3
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/.babelrc.json +1 -1
- package/README.md +22 -21
- package/dist/cjs/components/Alert/index.js +1 -1
- package/dist/cjs/components/Alert/index.js.map +1 -1
- package/dist/cjs/components/Button/index.js +1 -1
- package/dist/cjs/components/Button/index.js.map +1 -1
- package/dist/cjs/components/Checkbox/index.js +1 -1
- package/dist/cjs/components/Checkbox/index.js.map +1 -1
- package/dist/cjs/components/Chip/index.js +1 -1
- package/dist/cjs/components/Chip/index.js.map +1 -1
- package/dist/cjs/components/DataTable/index.js.map +1 -1
- package/dist/cjs/components/DatePicker/index.js.map +1 -1
- package/dist/cjs/components/Dialog/index.js +1 -1
- package/dist/cjs/components/Dialog/index.js.map +1 -1
- package/dist/cjs/components/Dropdown/index.js +1 -1
- package/dist/cjs/components/Dropdown/index.js.map +1 -1
- package/dist/cjs/components/FormLabel/index.js +1 -1
- package/dist/cjs/components/FormLabel/index.js.map +1 -1
- package/dist/cjs/components/Radio/index.js +1 -1
- package/dist/cjs/components/Radio/index.js.map +1 -1
- package/dist/cjs/components/RadioGroup/index.js.map +1 -1
- package/dist/cjs/components/TextField/index.js +1 -1
- package/dist/cjs/components/TextField/index.js.map +1 -1
- package/dist/cjs/components/Toggle/index.js +1 -1
- package/dist/cjs/components/Toggle/index.js.map +1 -1
- package/dist/cjs/components/ToggleButton/index.js +1 -1
- package/dist/cjs/components/ToggleButton/index.js.map +1 -1
- package/dist/cjs/components/Tooltip/index.js.map +1 -1
- package/dist/cjs/components/Typography/index.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/components/Alert/Alert.js +8 -8
- package/dist/components/Alert/Alert.js.map +1 -1
- package/dist/components/Alert/Alert.styled.js +26 -26
- package/dist/components/Alert/Alert.styled.js.map +1 -1
- package/dist/components/Alert/Alert.utils.js +9 -9
- package/dist/components/Alert/Alert.utils.js.map +1 -1
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Button/Button.js +23 -17
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.styled.js +88 -88
- package/dist/components/Button/Button.styled.js.map +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Button/utils/getButtonPaddingBySizeAndKind.js +9 -9
- package/dist/components/Button/utils/getButtonPaddingBySizeAndKind.js.map +1 -1
- package/dist/components/Button/utils/getHoverStyle.js +1 -1
- package/dist/components/Button/utils/getHoverStyle.js.map +1 -1
- package/dist/components/Button/utils/getIconButtonPaddingBySizeAndKind.js +6 -12
- package/dist/components/Button/utils/getIconButtonPaddingBySizeAndKind.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +9 -9
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Chip/Chip.js +29 -26
- package/dist/components/Chip/Chip.js.map +1 -1
- package/dist/components/Chip/Chip.styled.js +52 -52
- package/dist/components/Chip/Chip.styled.js.map +1 -1
- package/dist/components/Chip/consts.js +5 -5
- package/dist/components/Chip/index.js +1 -1
- package/dist/components/DataTable/DataTable.js +1 -1
- package/dist/components/DataTable/index.js +1 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/Dialog/Dialog.js +18 -18
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Dialog/Dialog.styled.js +90 -90
- package/dist/components/Dialog/Dialog.styled.js.map +1 -1
- package/dist/components/Dialog/components/DialogAction.js +6 -6
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +23 -21
- package/dist/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/components/Dropdown/Dropdown.styled.js +85 -86
- package/dist/components/Dropdown/Dropdown.styled.js.map +1 -1
- package/dist/components/Dropdown/DropdownItem.js +14 -14
- package/dist/components/Dropdown/DropdownItem.js.map +1 -1
- package/dist/components/Dropdown/index.js +2 -2
- package/dist/components/Dropdown/index.js.map +1 -1
- package/dist/components/FormLabel/FormLabel.js +1 -1
- package/dist/components/FormLabel/FormLabel.styled.js +2 -2
- package/dist/components/FormLabel/FormLabel.styled.js.map +1 -1
- package/dist/components/FormLabel/index.js +1 -1
- package/dist/components/Radio/Radio.js +8 -8
- package/dist/components/Radio/Radio.js.map +1 -1
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/TextField/TextField.js +8 -8
- package/dist/components/TextField/TextField.js.map +1 -1
- package/dist/components/TextField/TextField.style.js +112 -112
- package/dist/components/TextField/TextField.style.js.map +1 -1
- package/dist/components/TextField/TextFieldIcon.js +2 -2
- package/dist/components/TextField/TextFieldIcon.js.map +1 -1
- package/dist/components/TextField/index.js +1 -1
- package/dist/components/Toast/Toast.js +13 -13
- package/dist/components/Toast/Toast.js.map +1 -1
- package/dist/components/Toast/Toast.styled.js +26 -26
- package/dist/components/Toast/Toast.utils.js +3 -3
- package/dist/components/Toast/Toast.utils.js.map +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toggle/Toggle.js +3 -4
- package/dist/components/Toggle/Toggle.js.map +1 -1
- package/dist/components/Toggle/Toggle.styled.js +30 -30
- package/dist/components/Toggle/Toggle.styled.js.map +1 -1
- package/dist/components/Toggle/index.js +1 -1
- package/dist/components/ToggleButton/ToggleButton.js +6 -6
- package/dist/components/ToggleButton/ToggleButton.js.map +1 -1
- package/dist/components/ToggleButton/ToggleButton.styled.js +20 -20
- package/dist/components/ToggleButton/ToggleButton.styled.js.map +1 -1
- package/dist/components/ToggleButton/index.js +1 -1
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.js.map +1 -1
- package/dist/components/ToggleButtonGroup/index.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/Typography.js.map +1 -1
- package/dist/components/Typography/index.js +1 -1
- package/dist/foundation/Elevation/index.js +27 -27
- package/dist/foundation/Elevation/utils.js +1 -1
- package/dist/foundation/Elevation/utils.js.map +1 -1
- package/dist/foundation/Typography/index.js +35 -35
- package/dist/foundation/Typography/index.js.map +1 -1
- package/dist/foundation/Typography/tokens.js +136 -136
- package/dist/foundation/Typography/tokens.js.map +1 -1
- package/dist/foundation/colors/base/blue.js +12 -12
- package/dist/foundation/colors/base/green.js +12 -12
- package/dist/foundation/colors/base/grey.js +28 -28
- package/dist/foundation/colors/base/index.js +11 -11
- package/dist/foundation/colors/base/lunitGreen.js +11 -11
- package/dist/foundation/colors/base/lunitTeal.js +12 -12
- package/dist/foundation/colors/base/magenta.js +12 -12
- package/dist/foundation/colors/base/opacity.js +4 -4
- package/dist/foundation/colors/base/orange.js +12 -12
- package/dist/foundation/colors/base/purple.js +12 -12
- package/dist/foundation/colors/base/red.js +12 -12
- package/dist/foundation/colors/base/yellow.js +12 -12
- package/dist/foundation/colors/index.js +119 -121
- package/dist/foundation/colors/index.js.map +1 -1
- package/dist/foundation/colors/token/component.js +184 -212
- package/dist/foundation/colors/token/component.js.map +1 -1
- package/dist/foundation/colors/token/core.js +112 -133
- package/dist/foundation/colors/token/core.js.map +1 -1
- package/dist/foundation/colors/token/index.js +2 -2
- package/dist/foundation/index.js +5 -5
- package/dist/index.js +20 -20
- package/dist/theme.js +6 -6
- package/dist/types/components/Alert/Alert.d.ts +2 -2
- package/dist/types/components/Alert/Alert.styled.d.ts +1 -2
- package/dist/types/components/Alert/Alert.types.d.ts +2 -2
- package/dist/types/components/Alert/Alert.utils.d.ts +1 -1
- package/dist/types/components/Alert/index.d.ts +1 -1
- package/dist/types/components/Button/Button.d.ts +1 -1
- package/dist/types/components/Button/Button.styled.d.ts +249 -265
- package/dist/types/components/Button/Button.types.d.ts +16 -16
- package/dist/types/components/Button/index.d.ts +1 -1
- package/dist/types/components/Button/utils/getButtonPaddingBySizeAndKind.d.ts +4 -4
- package/dist/types/components/Button/utils/getHoverStyle.d.ts +2 -1
- package/dist/types/components/Button/utils/getIconButtonPaddingBySizeAndKind.d.ts +4 -4
- package/dist/types/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/Checkbox/index.d.ts +1 -1
- package/dist/types/components/Chip/Chip.d.ts +1 -1
- package/dist/types/components/Chip/Chip.styled.d.ts +6 -79
- package/dist/types/components/Chip/Chip.types.d.ts +15 -14
- package/dist/types/components/Chip/index.d.ts +1 -1
- package/dist/types/components/DataTable/index.d.ts +1 -1
- package/dist/types/components/DatePicker/index.d.ts +1 -1
- package/dist/types/components/Dialog/Dialog.d.ts +11 -11
- package/dist/types/components/Dialog/Dialog.styled.d.ts +3 -4
- package/dist/types/components/Dialog/components/DialogAction.d.ts +2 -2
- package/dist/types/components/Dialog/index.d.ts +2 -2
- package/dist/types/components/Dropdown/Dropdown.d.ts +2 -2
- package/dist/types/components/Dropdown/Dropdown.styled.d.ts +4 -39
- package/dist/types/components/Dropdown/Dropdown.types.d.ts +5 -5
- package/dist/types/components/Dropdown/DropdownItem.d.ts +3 -3
- package/dist/types/components/Dropdown/index.d.ts +3 -3
- package/dist/types/components/FormLabel/FormLabel.d.ts +1 -1
- package/dist/types/components/FormLabel/index.d.ts +1 -1
- package/dist/types/components/Radio/Radio.d.ts +1 -1
- package/dist/types/components/Radio/index.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +1 -1
- package/dist/types/components/TextField/TextField.d.ts +2 -2
- package/dist/types/components/TextField/TextField.style.d.ts +3 -4
- package/dist/types/components/TextField/TextField.types.d.ts +6 -6
- package/dist/types/components/TextField/TextFieldIcon.d.ts +2 -2
- package/dist/types/components/TextField/index.d.ts +2 -2
- package/dist/types/components/Toast/Toast.d.ts +2 -2
- package/dist/types/components/Toast/Toast.types.d.ts +3 -3
- package/dist/types/components/Toast/Toast.utils.d.ts +1 -1
- package/dist/types/components/Toast/index.d.ts +2 -2
- package/dist/types/components/Toggle/Toggle.d.ts +1 -1
- package/dist/types/components/Toggle/Toggle.styled.d.ts +2 -2
- package/dist/types/components/Toggle/Toggle.types.d.ts +3 -3
- package/dist/types/components/Toggle/index.d.ts +1 -1
- package/dist/types/components/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/types/components/ToggleButton/ToggleButton.styled.d.ts +2 -34
- package/dist/types/components/ToggleButton/ToggleButton.types.d.ts +10 -10
- package/dist/types/components/ToggleButton/index.d.ts +1 -1
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/dist/types/components/ToggleButtonGroup/index.d.ts +1 -1
- package/dist/types/components/Tooltip/index.d.ts +1 -1
- package/dist/types/components/Typography/Typography.d.ts +6 -6
- package/dist/types/components/Typography/index.d.ts +1 -1
- package/dist/types/components/index.d.ts +2 -2
- package/dist/types/foundation/Elevation/index.d.ts +22 -22
- package/dist/types/foundation/Typography/index.d.ts +78 -78
- package/dist/types/foundation/Typography/tokens.d.ts +69 -69
- package/dist/types/foundation/colors/base/index.d.ts +11 -11
- package/dist/types/foundation/colors/index.d.ts +13 -20
- package/dist/types/foundation/colors/token/component.d.ts +1 -1
- package/dist/types/foundation/colors/token/core.d.ts +1 -1
- package/dist/types/foundation/colors/token/index.d.ts +2 -2
- package/dist/types/foundation/colors/types.d.ts +0 -7
- package/dist/types/foundation/index.d.ts +4 -11
- package/dist/types/foundation/spacing.d.ts +1 -1
- package/dist/types/index.d.ts +20 -20
- package/dist/types/theme.d.ts +1 -1
- package/package.json +22 -26
- package/src/components/Alert/Alert.styled.ts +39 -49
- package/src/components/Alert/Alert.tsx +10 -16
- package/src/components/Alert/Alert.types.ts +2 -2
- package/src/components/Alert/Alert.utils.ts +13 -22
- package/src/components/Alert/index.ts +1 -1
- package/src/components/Button/Button.styled.ts +98 -101
- package/src/components/Button/Button.tsx +71 -69
- package/src/components/Button/Button.types.ts +19 -21
- package/src/components/Button/index.ts +1 -1
- package/src/components/Button/utils/getButtonPaddingBySizeAndKind.ts +13 -13
- package/src/components/Button/utils/getHoverStyle.ts +4 -2
- package/src/components/Button/utils/getIconButtonPaddingBySizeAndKind.ts +10 -19
- package/src/components/Checkbox/Checkbox.tsx +13 -25
- package/src/components/Checkbox/index.ts +1 -1
- package/src/components/Chip/Chip.styled.ts +69 -72
- package/src/components/Chip/Chip.tsx +33 -55
- package/src/components/Chip/Chip.types.ts +18 -24
- package/src/components/Chip/consts.ts +5 -5
- package/src/components/Chip/index.ts +1 -1
- package/src/components/DataTable/DataTable.tsx +2 -2
- package/src/components/DataTable/index.ts +1 -1
- package/src/components/DatePicker/DatePicker.tsx +2 -2
- package/src/components/DatePicker/index.ts +1 -1
- package/src/components/Dialog/Dialog.styled.ts +112 -114
- package/src/components/Dialog/Dialog.tsx +41 -46
- package/src/components/Dialog/components/DialogAction.tsx +8 -8
- package/src/components/Dialog/index.ts +3 -3
- package/src/components/Dropdown/Dropdown.styled.tsx +88 -89
- package/src/components/Dropdown/Dropdown.tsx +29 -30
- package/src/components/Dropdown/Dropdown.types.ts +6 -5
- package/src/components/Dropdown/DropdownItem.tsx +18 -29
- package/src/components/Dropdown/index.ts +3 -7
- package/src/components/FormLabel/FormLabel.styled.ts +3 -3
- package/src/components/FormLabel/FormLabel.tsx +3 -3
- package/src/components/FormLabel/index.ts +1 -1
- package/src/components/Radio/Radio.tsx +12 -29
- package/src/components/Radio/index.ts +1 -1
- package/src/components/RadioGroup/index.ts +1 -1
- package/src/components/TextField/TextField.style.ts +123 -132
- package/src/components/TextField/TextField.tsx +50 -62
- package/src/components/TextField/TextField.types.ts +7 -8
- package/src/components/TextField/TextFieldIcon.tsx +4 -7
- package/src/components/TextField/index.ts +2 -2
- package/src/components/Toast/Toast.styled.ts +26 -26
- package/src/components/Toast/Toast.tsx +14 -28
- package/src/components/Toast/Toast.types.ts +3 -8
- package/src/components/Toast/Toast.utils.ts +5 -8
- package/src/components/Toast/index.tsx +2 -2
- package/src/components/Toggle/Toggle.styled.ts +31 -32
- package/src/components/Toggle/Toggle.tsx +5 -11
- package/src/components/Toggle/Toggle.types.ts +3 -3
- package/src/components/Toggle/index.ts +1 -1
- package/src/components/ToggleButton/ToggleButton.styled.ts +47 -49
- package/src/components/ToggleButton/ToggleButton.tsx +91 -97
- package/src/components/ToggleButton/ToggleButton.types.ts +10 -10
- package/src/components/ToggleButton/index.ts +1 -1
- package/src/components/ToggleButtonGroup/ToggleButtonGroup.tsx +3 -8
- package/src/components/ToggleButtonGroup/index.tsx +1 -1
- package/src/components/Tooltip/Tooltip.tsx +2 -2
- package/src/components/Tooltip/index.ts +1 -1
- package/src/components/Typography/Typography.tsx +7 -10
- package/src/components/Typography/index.ts +1 -1
- package/src/components/index.ts +2 -2
- package/src/foundation/Elevation/index.ts +27 -27
- package/src/foundation/Elevation/utils.ts +14 -8
- package/src/foundation/Typography/index.ts +58 -57
- package/src/foundation/Typography/tokens.ts +138 -138
- package/src/foundation/colors/base/blue.ts +12 -12
- package/src/foundation/colors/base/green.ts +12 -12
- package/src/foundation/colors/base/grey.ts +28 -28
- package/src/foundation/colors/base/index.ts +11 -11
- package/src/foundation/colors/base/lunitGreen.ts +11 -11
- package/src/foundation/colors/base/lunitTeal.ts +12 -12
- package/src/foundation/colors/base/magenta.ts +12 -12
- package/src/foundation/colors/base/opacity.ts +4 -4
- package/src/foundation/colors/base/orange.ts +12 -12
- package/src/foundation/colors/base/purple.ts +12 -12
- package/src/foundation/colors/base/red.ts +12 -12
- package/src/foundation/colors/base/yellow.ts +12 -12
- package/src/foundation/colors/index.ts +119 -120
- package/src/foundation/colors/token/component.ts +185 -213
- package/src/foundation/colors/token/core.ts +113 -134
- package/src/foundation/colors/token/index.ts +2 -2
- package/src/foundation/colors/types.ts +0 -7
- package/src/foundation/index.ts +8 -8
- package/src/foundation/spacing.ts +1 -1
- package/src/index.ts +20 -20
- package/src/stories/GettingStarted.mdx +9 -15
- package/src/stories/components/Alert/Alert.stories.tsx +39 -46
- package/src/stories/components/Button/BasicButton.stories.tsx +68 -59
- package/src/stories/components/Button/ButtonDocs.mdx +17 -41
- package/src/stories/components/Button/Color.stories.tsx +28 -51
- package/src/stories/components/Button/IconButton.stories.tsx +40 -47
- package/src/stories/components/Button/Kind.stories.tsx +100 -213
- package/src/stories/components/CheckBox/BasicCheckbox.stories.tsx +52 -71
- package/src/stories/components/CheckBox/CheckboxDocs.mdx +6 -6
- package/src/stories/components/Chip/Chip.stories.tsx +75 -75
- package/src/stories/components/Chip/ChipDocs.mdx +12 -13
- package/src/stories/components/DataTable/DataTable.stories.tsx +4 -4
- package/src/stories/components/DatePicker/DatePicker.stories.tsx +4 -4
- package/src/stories/components/Dialog/Dialog.stories.tsx +103 -124
- package/src/stories/components/Dialog/DialogDocs.mdx +7 -13
- package/src/stories/components/Dropdown/Dropdown.stories.tsx +96 -82
- package/src/stories/components/Dropdown/DropdownDocs.mdx +275 -0
- package/src/stories/components/Dropdown/DropdownExamples.stories.tsx +40 -47
- package/src/stories/components/Dropdown/DropdownItem.stories.tsx +113 -98
- package/src/stories/components/SelectControl/RadioGroup.stories.tsx +17 -30
- package/src/stories/components/SelectControl/RadioStatus.stories.tsx +16 -23
- package/src/stories/components/SelectControl/Toggle.stories.tsx +33 -78
- package/src/stories/components/TextField/BasicTextField.stories.tsx +44 -60
- package/src/stories/components/TextField/TextFieldDocs.mdx +8 -12
- package/src/stories/components/TextField/TextFieldMulti.stories.tsx +39 -58
- package/src/stories/components/TextField/TextFieldSingle.stories.tsx +74 -121
- package/src/stories/components/TextField/TextFieldSize.stories.tsx +35 -56
- package/src/stories/components/Toast/Toast.stories.tsx +39 -49
- package/src/stories/components/ToggleButton/Basic.stories.tsx +237 -235
- package/src/stories/components/ToggleButton/ToggleButtonDocs.mdx +10 -14
- package/src/stories/components/ToggleButton/ToggleButtonKind.stories.tsx +144 -203
- package/src/stories/components/ToggleButton/WithIcon.stories.tsx +87 -107
- package/src/stories/components/Tooltip/Tooltip.stories.tsx +4 -4
- package/src/stories/foundation/Elevation/Elevation.stories.tsx +48 -73
- package/src/stories/foundation/Elevation/styled.ts +3 -3
- package/src/stories/foundation/Typography/Typography.mdx +9 -13
- package/src/stories/foundation/Typography/Typography.stories.tsx +25 -41
- package/src/stories/foundation/Typography/TypographyGroup.tsx +14 -25
- package/src/stories/foundation/Typography/const.ts +13 -19
- package/src/stories/foundation/colors/ColorSystem.tsx +42 -40
- package/src/stories/foundation/colors/Colors.stories.tsx +40 -41
- package/src/stories/foundation/colors/Docs.mdx +73 -77
- package/src/stories/foundation/colors/Mui.stories.tsx +6 -8
- package/src/stories/foundation/colors/Token.inComponent.stories.tsx +81 -71
- package/src/stories/foundation/colors/TokenPaletteTable.stories.tsx +7 -7
- package/src/stories/foundation/colors/TokenPaletteTable.tsx +23 -49
- package/src/stories/foundation/colors/styled.ts +26 -26
- package/src/theme.ts +6 -6
- package/src/types.d.ts +1 -1
- package/tsconfig.build.json +1 -5
- package/tsconfig.json +0 -1
- package/src/stories/components/ToggleButton/Group.stories.tsx +0 -221
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ButtonProps as MuiButtonProps, ButtonTypeMap as MuiButtonTypeMap } from
|
|
3
|
-
import type { OverridableComponent } from
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ButtonProps as MuiButtonProps, ButtonTypeMap as MuiButtonTypeMap } from '@mui/material';
|
|
3
|
+
import type { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
4
4
|
/**
|
|
5
5
|
* TODO: Omit 을 사용할 경우 component prop 타입 추론이 안되는 이슈 발생
|
|
6
6
|
* https://github.com/lunit-io/design-system/pull/133#discussion_r1354277785
|
|
7
7
|
* */
|
|
8
|
-
export interface BaseButtonProps extends Omit<MuiButtonProps,
|
|
8
|
+
export interface BaseButtonProps extends Omit<MuiButtonProps, 'variant'> {
|
|
9
9
|
icon?: React.ReactNode;
|
|
10
|
-
variant?:
|
|
10
|
+
variant?: 'contained' | 'outlined' | 'text' | 'ghost';
|
|
11
11
|
}
|
|
12
12
|
export interface ContainedButtonProps extends BaseButtonProps {
|
|
13
|
-
kind?:
|
|
14
|
-
variant?:
|
|
15
|
-
color?:
|
|
13
|
+
kind?: 'contained';
|
|
14
|
+
variant?: 'contained';
|
|
15
|
+
color?: 'primary' | 'secondary' | 'error';
|
|
16
16
|
}
|
|
17
17
|
export interface GhostButtonProps extends BaseButtonProps {
|
|
18
|
-
kind?:
|
|
19
|
-
variant?:
|
|
20
|
-
color?:
|
|
18
|
+
kind?: 'ghost';
|
|
19
|
+
variant?: 'text' | 'ghost';
|
|
20
|
+
color?: 'primary' | 'secondary' | 'error';
|
|
21
21
|
}
|
|
22
22
|
export interface OutlinedButtonProps extends BaseButtonProps {
|
|
23
|
-
kind?:
|
|
24
|
-
variant?:
|
|
25
|
-
color?:
|
|
23
|
+
kind?: 'outlined';
|
|
24
|
+
variant?: 'outlined';
|
|
25
|
+
color?: 'primary' | 'secondary';
|
|
26
26
|
}
|
|
27
27
|
export type ButtonProps = ContainedButtonProps | GhostButtonProps | OutlinedButtonProps;
|
|
28
|
-
export
|
|
28
|
+
export interface ButtonTypeMap<P = {}, D extends React.ElementType = MuiButtonTypeMap['defaultComponent']> {
|
|
29
29
|
props: P & ButtonProps;
|
|
30
30
|
defaultComponent: D;
|
|
31
|
-
}
|
|
31
|
+
}
|
|
32
32
|
export type ButtonType = OverridableComponent<ButtonTypeMap>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './Button';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ButtonProps } from
|
|
2
|
-
import { ToggleButtonProps } from
|
|
3
|
-
type GetButtonPaddingBySizeAndKindParams = Pick<ButtonProps,
|
|
1
|
+
import type { ButtonProps } from '../Button.types';
|
|
2
|
+
import { ToggleButtonProps } from '@/components/ToggleButton/ToggleButton.types';
|
|
3
|
+
type GetButtonPaddingBySizeAndKindParams = Pick<ButtonProps, 'kind' | 'size'> & Pick<ToggleButtonProps, 'selected'>;
|
|
4
4
|
/**
|
|
5
5
|
* When kind is outlined,
|
|
6
6
|
* the padding value must include the border width of outlined.
|
|
7
7
|
* This function takes care of this.
|
|
8
8
|
*/
|
|
9
|
-
export declare const getButtonPaddingBySizeAndKind: ({ kind, size, selected, }: GetButtonPaddingBySizeAndKindParams) =>
|
|
9
|
+
export declare const getButtonPaddingBySizeAndKind: ({ kind, size, selected, }: GetButtonPaddingBySizeAndKindParams) => "3px 7px" | "4px 8px" | "7px 11px" | "8px 12px" | "9px 11px" | "10px 12px";
|
|
10
10
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
declare const getHoverStyle: (backgroundColor: CSSProperties["color"]) => {
|
|
2
3
|
position: string;
|
|
3
4
|
zIndex: number;
|
|
4
5
|
backgroundColor: import("csstype").Property.Color | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ButtonProps } from
|
|
2
|
-
import { ToggleButtonProps } from
|
|
3
|
-
type GetIconButtonPaddingBySizeAndKindProps = Pick<ButtonProps,
|
|
1
|
+
import type { ButtonProps } from '../Button.types';
|
|
2
|
+
import { ToggleButtonProps } from '@/components/ToggleButton/ToggleButton.types';
|
|
3
|
+
type GetIconButtonPaddingBySizeAndKindProps = Pick<ButtonProps, 'kind' | 'size'> & Pick<ToggleButtonProps, 'selected'>;
|
|
4
4
|
/**
|
|
5
5
|
* When kind is outlined,
|
|
6
6
|
* the padding value must include the border width of outlined.
|
|
7
7
|
* This function takes care of this.
|
|
8
8
|
*/
|
|
9
|
-
export declare const getIconButtonPaddingBySizeAndKind: ({ kind, size, selected, }: GetIconButtonPaddingBySizeAndKindProps) =>
|
|
9
|
+
export declare const getIconButtonPaddingBySizeAndKind: ({ kind, size, selected, }: GetIconButtonPaddingBySizeAndKindProps) => "12px" | "8px" | "4px" | "11px" | "3px" | "7px";
|
|
10
10
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './Checkbox';
|
|
@@ -1,79 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
classes?: Partial<import("@mui/material").ChipClasses> | undefined;
|
|
8
|
-
clickable?: boolean | undefined;
|
|
9
|
-
color?: "primary" | "secondary" | "success" | "info" | "warning" | "error" | "default" | undefined;
|
|
10
|
-
deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
11
|
-
disabled?: boolean | undefined;
|
|
12
|
-
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
13
|
-
label?: import("react").ReactNode;
|
|
14
|
-
onDelete?: ((event: any) => void) | undefined;
|
|
15
|
-
size?: "small" | "medium" | undefined;
|
|
16
|
-
skipFocusWhenDisabled?: boolean | undefined;
|
|
17
|
-
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
18
|
-
tabIndex?: number | undefined;
|
|
19
|
-
variant?: "outlined" | "filled" | undefined;
|
|
20
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
21
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
22
|
-
}, "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "disabled" | "icon" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & OutlinedChipProps, {}, {}>;
|
|
23
|
-
export declare const StyledContainedChipBase: import("@emotion/styled").StyledComponent<{
|
|
24
|
-
avatar?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
25
|
-
children?: null | undefined;
|
|
26
|
-
classes?: Partial<import("@mui/material").ChipClasses> | undefined;
|
|
27
|
-
clickable?: boolean | undefined;
|
|
28
|
-
color?: "primary" | "secondary" | "success" | "info" | "warning" | "error" | "default" | undefined;
|
|
29
|
-
deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
30
|
-
disabled?: boolean | undefined;
|
|
31
|
-
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
32
|
-
label?: import("react").ReactNode;
|
|
33
|
-
onDelete?: ((event: any) => void) | undefined;
|
|
34
|
-
size?: "small" | "medium" | undefined;
|
|
35
|
-
skipFocusWhenDisabled?: boolean | undefined;
|
|
36
|
-
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
37
|
-
tabIndex?: number | undefined;
|
|
38
|
-
variant?: "outlined" | "filled" | undefined;
|
|
39
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
40
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
41
|
-
}, "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "disabled" | "icon" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps, {}, {}>;
|
|
42
|
-
export declare const StyledContainedChipEnable: import("@emotion/styled").StyledComponent<{
|
|
43
|
-
avatar?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
44
|
-
children?: null | undefined;
|
|
45
|
-
classes?: Partial<import("@mui/material").ChipClasses> | undefined;
|
|
46
|
-
clickable?: boolean | undefined;
|
|
47
|
-
color?: "primary" | "secondary" | "success" | "info" | "warning" | "error" | "default" | undefined;
|
|
48
|
-
deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
49
|
-
disabled?: boolean | undefined;
|
|
50
|
-
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
51
|
-
label?: import("react").ReactNode;
|
|
52
|
-
onDelete?: ((event: any) => void) | undefined;
|
|
53
|
-
size?: "small" | "medium" | undefined;
|
|
54
|
-
skipFocusWhenDisabled?: boolean | undefined;
|
|
55
|
-
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
56
|
-
tabIndex?: number | undefined;
|
|
57
|
-
variant?: "outlined" | "filled" | undefined;
|
|
58
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
59
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
60
|
-
}, "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "disabled" | "icon" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps & EnableContainedChipProps, {}, {}>;
|
|
61
|
-
export declare const StyledContainedChipDeletable: import("@emotion/styled").StyledComponent<{
|
|
62
|
-
avatar?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
63
|
-
children?: null | undefined;
|
|
64
|
-
classes?: Partial<import("@mui/material").ChipClasses> | undefined;
|
|
65
|
-
clickable?: boolean | undefined;
|
|
66
|
-
color?: "primary" | "secondary" | "success" | "info" | "warning" | "error" | "default" | undefined;
|
|
67
|
-
deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
68
|
-
disabled?: boolean | undefined;
|
|
69
|
-
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
70
|
-
label?: import("react").ReactNode;
|
|
71
|
-
onDelete?: ((event: any) => void) | undefined;
|
|
72
|
-
size?: "small" | "medium" | undefined;
|
|
73
|
-
skipFocusWhenDisabled?: boolean | undefined;
|
|
74
|
-
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
75
|
-
tabIndex?: number | undefined;
|
|
76
|
-
variant?: "outlined" | "filled" | undefined;
|
|
77
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
78
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
79
|
-
}, "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "disabled" | "icon" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps, {}, {}>;
|
|
1
|
+
import type { Theme } from '@mui/material/styles';
|
|
2
|
+
import type { OutlinedChipProps, BaseContainedChipProps, EnableContainedChipProps } from './Chip.types';
|
|
3
|
+
export declare const StyledOutlinedChip: import("@emotion/styled").StyledComponent<import("@mui/material").ChipOwnProps & import("@mui/material").ChipSlotsAndSlotProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color" | "className" | "style" | "classes" | "children" | "sx" | "variant" | "label" | "tabIndex" | "disabled" | "icon" | "slots" | "slotProps" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & OutlinedChipProps, {}, {}>;
|
|
4
|
+
export declare const StyledContainedChipBase: import("@emotion/styled").StyledComponent<import("@mui/material").ChipOwnProps & import("@mui/material").ChipSlotsAndSlotProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color" | "className" | "style" | "classes" | "children" | "sx" | "variant" | "label" | "tabIndex" | "disabled" | "icon" | "slots" | "slotProps" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps, {}, {}>;
|
|
5
|
+
export declare const StyledContainedChipEnable: import("@emotion/styled").StyledComponent<import("@mui/material").ChipOwnProps & import("@mui/material").ChipSlotsAndSlotProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color" | "className" | "style" | "classes" | "children" | "sx" | "variant" | "label" | "tabIndex" | "disabled" | "icon" | "slots" | "slotProps" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps & EnableContainedChipProps, {}, {}>;
|
|
6
|
+
export declare const StyledContainedChipDeletable: import("@emotion/styled").StyledComponent<import("@mui/material").ChipOwnProps & import("@mui/material").ChipSlotsAndSlotProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color" | "className" | "style" | "classes" | "children" | "sx" | "variant" | "label" | "tabIndex" | "disabled" | "icon" | "slots" | "slotProps" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps, {}, {}>;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
import { CHIP_COLORS } from
|
|
3
|
-
import type { ChipProps as MuiChipProps, ChipTypeMap as MuiChipTypeMap } from
|
|
4
|
-
import type { OverridableComponent } from
|
|
5
|
-
type
|
|
6
|
-
type
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { CHIP_COLORS } from './consts';
|
|
3
|
+
import type { ChipProps as MuiChipProps, ChipTypeMap as MuiChipTypeMap } from '@mui/material';
|
|
4
|
+
import type { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
5
|
+
import type { JSX } from 'react';
|
|
6
|
+
type DesignSystemChipKind = 'outlined' | 'contained';
|
|
7
|
+
type DesignSystemAndMuiContainedChipKind = 'filled' | 'contained';
|
|
7
8
|
type ColorKeys = keyof typeof CHIP_COLORS;
|
|
8
9
|
export type ChipColor = (typeof CHIP_COLORS)[ColorKeys];
|
|
9
10
|
export type ChipThumbnail = string | JSX.Element;
|
|
10
11
|
/**
|
|
11
12
|
* Mui Chip's variant is 'kind' in our design system
|
|
12
13
|
*/
|
|
13
|
-
export interface BaseChipProps extends Pick<MuiChipProps,
|
|
14
|
+
export interface BaseChipProps extends Pick<MuiChipProps, 'label' | 'sx' | 'style' | 'classes' | 'onDelete'> {
|
|
14
15
|
kind?: DesignSystemChipKind;
|
|
15
|
-
variant?:
|
|
16
|
+
variant?: 'outlined' | DesignSystemAndMuiContainedChipKind;
|
|
16
17
|
color?: ChipColor;
|
|
17
18
|
}
|
|
18
19
|
export interface OutlinedChipProps extends BaseChipProps {
|
|
19
|
-
kind?:
|
|
20
|
-
variant?:
|
|
20
|
+
kind?: 'outlined';
|
|
21
|
+
variant?: 'outlined';
|
|
21
22
|
onClick?: never;
|
|
22
23
|
onDelete?: never;
|
|
23
24
|
}
|
|
24
|
-
export interface BaseContainedChipProps extends BaseChipProps, Omit<MuiChipProps,
|
|
25
|
-
kind?:
|
|
25
|
+
export interface BaseContainedChipProps extends BaseChipProps, Omit<MuiChipProps, 'color' | 'size' | 'avatar' | 'deleteIcon' | 'icon' | 'variant'> {
|
|
26
|
+
kind?: 'contained';
|
|
26
27
|
variant?: DesignSystemAndMuiContainedChipKind;
|
|
27
28
|
thumbnail?: ChipThumbnail;
|
|
28
29
|
onClick?: () => void;
|
|
@@ -41,9 +42,9 @@ export interface DeletableContainedChipProps extends BaseContainedChipProps {
|
|
|
41
42
|
}
|
|
42
43
|
export type ContainedChipProps = EnableContainedChipProps | ReadOnlyContainedChipProps | DeletableContainedChipProps;
|
|
43
44
|
export type ChipProps = OutlinedChipProps | ContainedChipProps;
|
|
44
|
-
export
|
|
45
|
+
export interface ChipTypeMap<P = {}, D extends React.ElementType = MuiChipTypeMap['defaultComponent']> {
|
|
45
46
|
props: P & ChipProps;
|
|
46
47
|
defaultComponent: D;
|
|
47
|
-
}
|
|
48
|
+
}
|
|
48
49
|
export type ChipType = OverridableComponent<ChipTypeMap>;
|
|
49
50
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './Chip';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './DataTable';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './DatePicker';
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { SxProps } from
|
|
3
|
-
import type { TypographyProps } from
|
|
4
|
-
export interface
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SxProps } from '@mui/material/styles';
|
|
3
|
+
import type { TypographyProps } from '@mui/material';
|
|
4
|
+
export interface DialogBaseProps {
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
onClose(): void;
|
|
7
|
-
type?:
|
|
7
|
+
type?: 'passive' | 'action';
|
|
8
8
|
nonModal?: boolean;
|
|
9
9
|
title: string;
|
|
10
10
|
titleIcon?: React.ReactNode;
|
|
11
|
-
titleVariant?: TypographyProps[
|
|
11
|
+
titleVariant?: TypographyProps['variant'];
|
|
12
12
|
children: React.ReactNode;
|
|
13
13
|
actions?: React.ReactNode;
|
|
14
14
|
enableBackdropClose?: boolean;
|
|
15
|
-
size?:
|
|
15
|
+
size?: 'small' | 'medium';
|
|
16
16
|
sx?: SxProps;
|
|
17
17
|
style?: React.CSSProperties;
|
|
18
18
|
className?: string;
|
|
19
19
|
}
|
|
20
|
-
export interface PassiveDialogType extends
|
|
21
|
-
type:
|
|
20
|
+
export interface PassiveDialogType extends DialogBaseProps {
|
|
21
|
+
type: 'passive';
|
|
22
22
|
actions?: undefined;
|
|
23
23
|
enableBackdropClose?: true;
|
|
24
24
|
}
|
|
25
|
-
export interface ActionDialogType extends
|
|
26
|
-
type:
|
|
25
|
+
export interface ActionDialogType extends DialogBaseProps {
|
|
26
|
+
type: 'action';
|
|
27
27
|
actions: React.ReactNode;
|
|
28
28
|
enableBackdropClose?: boolean;
|
|
29
29
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { CSSObject } from "@mui/material/styles";
|
|
1
|
+
import type { DialogBaseProps } from './Dialog';
|
|
2
|
+
import type { CSSObject } from '@mui/material/styles';
|
|
4
3
|
export interface DialogElementStyle {
|
|
5
4
|
[key: string]: CSSObject;
|
|
6
5
|
}
|
|
7
|
-
export type DialogStyle = Pick<
|
|
6
|
+
export type DialogStyle = Pick<DialogBaseProps, 'size' | 'type' | 'nonModal'>;
|
|
8
7
|
export declare const StyledBackdrop: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
8
|
export declare const StyledDialog: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & DialogStyle, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
9
|
export declare const StyledDialogTitle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface DialogActionProps {
|
|
3
3
|
children: React.ReactNode;
|
|
4
|
-
justifyContent?: React.CSSProperties[
|
|
4
|
+
justifyContent?: React.CSSProperties['justifyContent'];
|
|
5
5
|
sx?: React.CSSProperties;
|
|
6
6
|
}
|
|
7
7
|
export declare function DialogAction(props: DialogActionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export type {
|
|
1
|
+
export { default } from './Dialog';
|
|
2
|
+
export type { DialogBaseProps, PassiveDialogType, ActionDialogType, PassiveModalProps, ActionModalProps, PassiveNonModalProps, ActionNonModalProps, ModalProps, NonModalProps, DialogProps, } from './Dialog';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { DropdownProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DropdownProps } from './Dropdown.types';
|
|
3
3
|
declare const Dropdown: React.ForwardRefExoticComponent<Omit<DropdownProps, "ref"> & React.RefAttributes<unknown>>;
|
|
4
4
|
export default Dropdown;
|
|
@@ -1,41 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const StyledSelect: import("@emotion/styled").StyledComponent<import("@mui/material/Select").SelectProps<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Omit<DropdownProps, "size"> & {
|
|
1
|
+
import { DropdownProps } from './Dropdown.types';
|
|
2
|
+
export declare const StyledSelect: import("@emotion/styled").StyledComponent<(import("@mui/material/Select").SelectProps<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>) & Omit<DropdownProps, "size"> & {
|
|
4
3
|
selectSize: "small" | "medium" | "large";
|
|
5
4
|
}, {}, {}>;
|
|
6
|
-
export declare const StyledMenuItem: import("@emotion/styled").StyledComponent<{
|
|
7
|
-
|
|
8
|
-
classes?: Partial<import("@mui/material/MenuItem").MenuItemClasses> | undefined;
|
|
9
|
-
dense?: boolean | undefined;
|
|
10
|
-
disabled?: boolean | undefined;
|
|
11
|
-
disableGutters?: boolean | undefined;
|
|
12
|
-
divider?: boolean | undefined;
|
|
13
|
-
selected?: boolean | undefined;
|
|
14
|
-
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
15
|
-
} & Omit<{
|
|
16
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
17
|
-
centerRipple?: boolean | undefined;
|
|
18
|
-
children?: import("react").ReactNode;
|
|
19
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
20
|
-
disabled?: boolean | undefined;
|
|
21
|
-
disableRipple?: boolean | undefined;
|
|
22
|
-
disableTouchRipple?: boolean | undefined;
|
|
23
|
-
focusRipple?: boolean | undefined;
|
|
24
|
-
focusVisibleClassName?: string | undefined;
|
|
25
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
26
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
27
|
-
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
28
|
-
tabIndex?: number | undefined;
|
|
29
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
30
|
-
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
31
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
32
|
-
ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
33
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "autoFocus" | "tabIndex" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "selected" | "dense" | "disableGutters" | "divider"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
34
|
-
export declare const StyledIconWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
|
|
35
|
-
children?: import("react").ReactNode;
|
|
36
|
-
component?: import("react").ElementType<any> | undefined;
|
|
37
|
-
ref?: import("react").Ref<unknown> | undefined;
|
|
38
|
-
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
39
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
40
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
41
|
-
}, ("zIndex" | "typography" | "boxShadow" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "displayPrint" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "marginX" | "marginY" | "paddingX" | "paddingY") | "children" | "sx" | "ref" | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
5
|
+
export declare const StyledMenuItem: import("@emotion/styled").StyledComponent<import("@mui/material/MenuItem").MenuItemOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "className" | "style" | "classes" | "children" | "sx" | "autoFocus" | "tabIndex" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableGutters" | "dense" | "divider" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
6
|
+
export declare const StyledIconWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
export interface DropdownProps extends Omit<SelectProps,
|
|
4
|
-
select?:
|
|
5
|
-
size?:
|
|
1
|
+
import type { MenuItemProps, SelectProps } from '@mui/material';
|
|
2
|
+
import type { JSX } from 'react';
|
|
3
|
+
export interface DropdownProps extends Omit<SelectProps, 'size' | 'variant' | 'placeholder'> {
|
|
4
|
+
select?: 'single' | 'multiple';
|
|
5
|
+
size?: 'small' | 'medium' | 'large';
|
|
6
6
|
}
|
|
7
7
|
export interface DropdownItemProps extends MenuItemProps {
|
|
8
8
|
leftIcon?: JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { SxProps } from
|
|
2
|
-
import { DropdownItemProps } from
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
import { DropdownItemProps } from './Dropdown.types';
|
|
3
3
|
export declare function DropdownItem(props: DropdownItemProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare function DropdownDivider({ sx }: {
|
|
5
5
|
sx?: SxProps;
|
|
6
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare function DropdownSubtitle({ title, sx
|
|
7
|
+
export declare function DropdownSubtitle({ title, sx }: {
|
|
8
8
|
title: string;
|
|
9
9
|
sx?: SxProps;
|
|
10
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export { DropdownItem, DropdownDivider, DropdownSubtitle
|
|
3
|
-
export type { DropdownProps, DropdownItemProps } from
|
|
1
|
+
export { default } from './Dropdown';
|
|
2
|
+
export { DropdownItem, DropdownDivider, DropdownSubtitle } from './DropdownItem';
|
|
3
|
+
export type { DropdownProps, DropdownItemProps } from './Dropdown.types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './FormLabel';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './Radio';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import RadioGroup from
|
|
1
|
+
import RadioGroup from '@mui/material/RadioGroup';
|
|
2
2
|
export default RadioGroup;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { MultiTextFieldProps, SingleTextFieldProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MultiTextFieldProps, SingleTextFieldProps } from './TextField.types';
|
|
3
3
|
declare const TextField: React.ForwardRefExoticComponent<(Omit<SingleTextFieldProps, "ref"> | Omit<MultiTextFieldProps, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export default TextField;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import type { TextFieldProps, TextFieldSize } from "./TextField.types";
|
|
1
|
+
import type { TextFieldProps, TextFieldSize } from './TextField.types';
|
|
3
2
|
declare const BaseTextField: import("@emotion/styled").StyledComponent<{
|
|
4
3
|
variant?: import("@mui/material/TextField").TextFieldVariants | undefined;
|
|
5
4
|
} & Omit<import("@mui/material/TextField").OutlinedTextFieldProps | import("@mui/material/TextField").FilledTextFieldProps | import("@mui/material/TextField").StandardTextFieldProps, "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Omit<TextFieldProps, "size"> & {
|
|
6
5
|
textFieldSize: TextFieldSize;
|
|
7
|
-
hasLeftIcon?: boolean
|
|
8
|
-
hasRightIcon?: boolean
|
|
6
|
+
hasLeftIcon?: boolean;
|
|
7
|
+
hasRightIcon?: boolean;
|
|
9
8
|
}, {}, {}>;
|
|
10
9
|
declare const IconWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
10
|
export { BaseTextField, IconWrapper };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
export type TextFieldSize =
|
|
5
|
-
export interface BaseTextFieldProps extends Omit<OutlinedTextFieldProps,
|
|
1
|
+
import type { SxProps } from '@mui/material';
|
|
2
|
+
import type { TextFieldProps as MuiTextFieldProps, OutlinedTextFieldProps } from '@mui/material/TextField';
|
|
3
|
+
import type { JSX } from 'react';
|
|
4
|
+
export type TextFieldSize = 'small' | 'medium' | 'large';
|
|
5
|
+
export interface BaseTextFieldProps extends Omit<OutlinedTextFieldProps, 'size' | 'value' | 'helperText' | 'variant'> {
|
|
6
6
|
/**
|
|
7
7
|
* The design system TextField has only on kind, which is "contained"
|
|
8
8
|
Below are all return same kind "contained"
|
|
@@ -11,7 +11,7 @@ export interface BaseTextFieldProps extends Omit<OutlinedTextFieldProps, "size"
|
|
|
11
11
|
<TextField variant="filled" />
|
|
12
12
|
<TextField variant="standard" />
|
|
13
13
|
*/
|
|
14
|
-
variant?: MuiTextFieldProps[
|
|
14
|
+
variant?: MuiTextFieldProps['variant'];
|
|
15
15
|
value?: string;
|
|
16
16
|
helperText?: string;
|
|
17
17
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export type { TextFieldProps, BaseTextFieldProps, MultiTextFieldProps, SingleTextFieldProps, } from
|
|
1
|
+
export { default } from './TextField';
|
|
2
|
+
export type { TextFieldProps, BaseTextFieldProps, MultiTextFieldProps, SingleTextFieldProps, } from './TextField.types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { ToastProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ToastProps } from './Toast.types';
|
|
3
3
|
declare const Toast: React.ForwardRefExoticComponent<Omit<ToastProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export default Toast;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlertProps as BaseAlertProps } from
|
|
2
|
-
export interface ToastProps extends Omit<BaseAlertProps,
|
|
3
|
-
severity?:
|
|
1
|
+
import { AlertProps as BaseAlertProps } from '@mui/material';
|
|
2
|
+
export interface ToastProps extends Omit<BaseAlertProps, 'variant' | 'slots' | 'slotProps' | 'components' | 'componentsProps' | 'severity'> {
|
|
3
|
+
severity?: 'success' | 'info' | 'warning' | 'error' | 'normal';
|
|
4
4
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { AlertColor, Theme } from
|
|
1
|
+
import type { AlertColor, Theme } from '@mui/material';
|
|
2
2
|
export declare const getIconColor: (theme: Theme, severity: AlertColor | undefined) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export type { ToastProps } from
|
|
1
|
+
export { default } from './Toast';
|
|
2
|
+
export type { ToastProps } from './Toast.types';
|