@lunit/design-system 2.2.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.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 +226 -227
- 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 -7
- 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 +3 -4
- 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 -3
- 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 +9 -11
- 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 +17 -25
- 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 +5 -6
- 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 +6 -9
- 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 +6 -6
- package/src/stories/components/Alert/Alert.stories.tsx +38 -45
- 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 -135
- 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 -53
- package/src/stories/components/TextField/TextFieldDocs.mdx +8 -12
- package/src/stories/components/TextField/TextFieldMulti.stories.tsx +39 -55
- package/src/stories/components/TextField/TextFieldSingle.stories.tsx +74 -118
- package/src/stories/components/TextField/TextFieldSize.stories.tsx +35 -55
- package/src/stories/components/Toast/Toast.stories.tsx +35 -50
- package/src/stories/components/ToggleButton/Basic.stories.tsx +115 -152
- package/src/stories/components/ToggleButton/ToggleButtonDocs.mdx +10 -14
- package/src/stories/components/ToggleButton/ToggleButtonKind.stories.tsx +141 -200
- 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 -54
- 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
|
@@ -1,125 +1,124 @@
|
|
|
1
|
-
import { styled } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import MenuItem from "@mui/material/MenuItem";
|
|
1
|
+
import { styled } from '@mui/material/styles';
|
|
2
|
+
import Select from '@mui/material/Select';
|
|
3
|
+
import MenuItem from '@mui/material/MenuItem';
|
|
5
4
|
|
|
6
|
-
import { DropdownProps } from
|
|
7
|
-
type StyledDropdownProps = Omit<DropdownProps,
|
|
8
|
-
selectSize:
|
|
5
|
+
import { DropdownProps } from './Dropdown.types';
|
|
6
|
+
type StyledDropdownProps = Omit<DropdownProps, 'size'> & {
|
|
7
|
+
selectSize: 'small' | 'medium' | 'large';
|
|
9
8
|
};
|
|
10
9
|
|
|
11
10
|
const valuesBySize = {
|
|
12
11
|
small: {
|
|
13
|
-
height:
|
|
14
|
-
padding:
|
|
15
|
-
iconTop:
|
|
16
|
-
iconRight:
|
|
12
|
+
height: '28px',
|
|
13
|
+
padding: '4px 12px',
|
|
14
|
+
iconTop: '4px',
|
|
15
|
+
iconRight: '12px',
|
|
17
16
|
},
|
|
18
17
|
medium: {
|
|
19
|
-
height:
|
|
20
|
-
padding:
|
|
21
|
-
iconTop:
|
|
22
|
-
iconRight:
|
|
18
|
+
height: '36px',
|
|
19
|
+
padding: '8px 16px',
|
|
20
|
+
iconTop: '8px',
|
|
21
|
+
iconRight: '16px',
|
|
23
22
|
},
|
|
24
23
|
large: {
|
|
25
|
-
height:
|
|
26
|
-
padding:
|
|
27
|
-
iconTop:
|
|
28
|
-
iconRight:
|
|
24
|
+
height: '44px',
|
|
25
|
+
padding: '10px 16px',
|
|
26
|
+
iconTop: '12px', // large 의 text line height 가 medium, small 보다 4px 크기 때문에 그의 반절인 2px + padding 값 10px => 12px
|
|
27
|
+
iconRight: '16px',
|
|
29
28
|
},
|
|
30
29
|
};
|
|
31
30
|
|
|
32
31
|
export const StyledSelect = styled(Select, {
|
|
33
32
|
shouldForwardProp: (prop: string) => {
|
|
34
|
-
return ![
|
|
33
|
+
return !['selectSize', 'select'].includes(prop);
|
|
35
34
|
},
|
|
36
35
|
})<StyledDropdownProps>(({ theme, selectSize }) => ({
|
|
37
|
-
...(selectSize ===
|
|
36
|
+
...(selectSize === 'large'
|
|
38
37
|
? { ...theme.typography.body1_16_regular }
|
|
39
38
|
: { ...theme.typography.body2_14_regular }),
|
|
40
|
-
height: valuesBySize[selectSize ||
|
|
41
|
-
padding: valuesBySize[selectSize ||
|
|
39
|
+
height: valuesBySize[selectSize || 'medium'].height,
|
|
40
|
+
padding: valuesBySize[selectSize || 'medium'].padding,
|
|
42
41
|
backgroundColor: theme.palette.lunit_token.component.textfield_bg,
|
|
43
|
-
overflow:
|
|
44
|
-
|
|
42
|
+
overflow: 'hidden',
|
|
43
|
+
'& .MuiSelect-select': {
|
|
45
44
|
paddingTop: 0,
|
|
46
45
|
paddingBottom: 0,
|
|
47
|
-
paddingRight:
|
|
46
|
+
paddingRight: '28px !important', // icon width 20px + 아이콘과 텍스트 사이의 gap 8px
|
|
48
47
|
color: theme.palette.lunit_token.core.text_normal,
|
|
49
48
|
},
|
|
50
|
-
|
|
51
|
-
borderRadius:
|
|
52
|
-
border:
|
|
49
|
+
'&.MuiInputBase-root': {
|
|
50
|
+
borderRadius: '8px',
|
|
51
|
+
border: 'none',
|
|
53
52
|
|
|
54
|
-
|
|
55
|
-
border:
|
|
53
|
+
'&:hover:not(.Mui-disabled, .Mui-error):before': {
|
|
54
|
+
border: 'none',
|
|
56
55
|
},
|
|
57
56
|
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
backgroundColor:
|
|
57
|
+
'& .MuiInput-input': {
|
|
58
|
+
'&:focus': {
|
|
59
|
+
backgroundColor: 'transparent',
|
|
61
60
|
},
|
|
62
61
|
},
|
|
63
|
-
|
|
64
|
-
border:
|
|
62
|
+
'&::after': {
|
|
63
|
+
border: 'none',
|
|
65
64
|
},
|
|
66
|
-
|
|
67
|
-
border:
|
|
65
|
+
'&::before': {
|
|
66
|
+
border: 'none',
|
|
68
67
|
},
|
|
69
|
-
|
|
70
|
-
position:
|
|
68
|
+
'&:hover': {
|
|
69
|
+
position: 'relative',
|
|
71
70
|
zIndex: 0,
|
|
72
71
|
backgroundColor: theme.palette.lunit_token.component.textfield_bg,
|
|
73
|
-
border:
|
|
72
|
+
border: 'none',
|
|
74
73
|
},
|
|
75
|
-
|
|
74
|
+
'&:hover::before': {
|
|
76
75
|
content: '""',
|
|
77
|
-
position:
|
|
76
|
+
position: 'absolute',
|
|
78
77
|
top: 0,
|
|
79
78
|
left: 0,
|
|
80
|
-
width:
|
|
81
|
-
height:
|
|
79
|
+
width: '100%',
|
|
80
|
+
height: '100%',
|
|
82
81
|
zIndex: -1,
|
|
83
|
-
backgroundColor: theme.palette.lunit_token.core.
|
|
84
|
-
border:
|
|
82
|
+
backgroundColor: theme.palette.lunit_token.core.status_hover,
|
|
83
|
+
border: 'none',
|
|
85
84
|
},
|
|
86
85
|
// .Mui-focused 컴포넌트에 바로 border를 적용하면 컴포넌트의 width, height 값이 border 값만큼 늘어나기 때문에 따로 엘리먼트를 만들어서 border 를 적용함.
|
|
87
86
|
// 다른 :before 들도 동일한 이유로 작성
|
|
88
|
-
|
|
89
|
-
border: `1px solid ${theme.palette.lunit_token.core.
|
|
87
|
+
'&.Mui-focused::before': {
|
|
88
|
+
border: `1px solid ${theme.palette.lunit_token.core.status_focused}`,
|
|
90
89
|
content: '""',
|
|
91
|
-
position:
|
|
90
|
+
position: 'absolute',
|
|
92
91
|
top: 0,
|
|
93
92
|
bottom: 0,
|
|
94
93
|
left: 0,
|
|
95
94
|
right: 0,
|
|
96
|
-
borderRadius:
|
|
97
|
-
transition:
|
|
95
|
+
borderRadius: '8px',
|
|
96
|
+
transition: 'none',
|
|
98
97
|
},
|
|
99
|
-
|
|
98
|
+
'&.Mui-disabled': {
|
|
100
99
|
opacity: 0.38,
|
|
101
100
|
},
|
|
102
|
-
|
|
103
|
-
borderBottomStyle:
|
|
101
|
+
'&.Mui-disabled:before': {
|
|
102
|
+
borderBottomStyle: 'none',
|
|
104
103
|
},
|
|
105
|
-
|
|
104
|
+
'&.Mui-error::before': {
|
|
106
105
|
border: `1px solid ${theme.palette.lunit_token.component.textfield_border_error}`,
|
|
107
106
|
content: '""',
|
|
108
|
-
position:
|
|
107
|
+
position: 'absolute',
|
|
109
108
|
top: 0,
|
|
110
109
|
bottom: 0,
|
|
111
110
|
left: 0,
|
|
112
111
|
right: 0,
|
|
113
|
-
borderRadius:
|
|
114
|
-
transition:
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
width:
|
|
118
|
-
height:
|
|
119
|
-
top: valuesBySize[selectSize ||
|
|
120
|
-
right: valuesBySize[selectSize ||
|
|
112
|
+
borderRadius: '8px',
|
|
113
|
+
transition: 'none',
|
|
114
|
+
},
|
|
115
|
+
'& .MuiSvgIcon-root': {
|
|
116
|
+
width: '20px',
|
|
117
|
+
height: '20px',
|
|
118
|
+
top: valuesBySize[selectSize || 'medium'].iconTop, // mui 에서 이 icon position 이 position: absolute 로 되어 있어서 padding 값에 맞춰 포지션 조절
|
|
119
|
+
right: valuesBySize[selectSize || 'medium'].iconRight,
|
|
121
120
|
color: theme.palette.lunit_token.core.text_normal,
|
|
122
|
-
|
|
121
|
+
'&.Mui-disabled': {
|
|
123
122
|
color: theme.palette.lunit_token.core.text_normal,
|
|
124
123
|
},
|
|
125
124
|
},
|
|
@@ -127,27 +126,27 @@ export const StyledSelect = styled(Select, {
|
|
|
127
126
|
|
|
128
127
|
export const StyledMenuItem = styled(MenuItem)(({ theme }) => ({
|
|
129
128
|
...theme.typography.body2_14_regular,
|
|
130
|
-
padding:
|
|
131
|
-
borderRadius:
|
|
129
|
+
padding: '8px',
|
|
130
|
+
borderRadius: '8px',
|
|
132
131
|
color: theme.palette.lunit_token.core.text_normal,
|
|
133
|
-
backgroundColor:
|
|
134
|
-
display:
|
|
135
|
-
flexDirection:
|
|
136
|
-
justifyContent:
|
|
137
|
-
gap:
|
|
138
|
-
|
|
139
|
-
backgroundColor: theme.palette.lunit_token.core.
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
backgroundColor:
|
|
143
|
-
|
|
144
|
-
backgroundColor: theme.palette.lunit_token.core.
|
|
132
|
+
backgroundColor: 'transparent',
|
|
133
|
+
display: 'flex',
|
|
134
|
+
flexDirection: 'row',
|
|
135
|
+
justifyContent: 'space-between',
|
|
136
|
+
gap: '8px',
|
|
137
|
+
'&:hover': {
|
|
138
|
+
backgroundColor: theme.palette.lunit_token.core.status_hover,
|
|
139
|
+
},
|
|
140
|
+
'&.Mui-focusVisible': {
|
|
141
|
+
backgroundColor: 'transparent',
|
|
142
|
+
'&:hover': {
|
|
143
|
+
backgroundColor: theme.palette.lunit_token.core.status_hover,
|
|
145
144
|
},
|
|
146
145
|
},
|
|
147
146
|
// TODO: 디자이너와 focus 디자인 확인 후 살리든 지우든 하기
|
|
148
147
|
// "&:focus::before": {
|
|
149
148
|
// border: "1px solid",
|
|
150
|
-
// borderColor: theme.palette.lunit_token.core.
|
|
149
|
+
// borderColor: theme.palette.lunit_token.core.status_focused,
|
|
151
150
|
// content: '""',
|
|
152
151
|
// position: "absolute",
|
|
153
152
|
// top: 0,
|
|
@@ -155,16 +154,16 @@ export const StyledMenuItem = styled(MenuItem)(({ theme }) => ({
|
|
|
155
154
|
// left: -8,
|
|
156
155
|
// right: -8,
|
|
157
156
|
// },
|
|
158
|
-
|
|
159
|
-
display:
|
|
157
|
+
'& .multipleChecked': {
|
|
158
|
+
display: 'none',
|
|
160
159
|
},
|
|
161
|
-
|
|
162
|
-
backgroundColor: theme.palette.lunit_token.core.
|
|
160
|
+
'&.filledStyle': {
|
|
161
|
+
backgroundColor: theme.palette.lunit_token.core.status_selected,
|
|
163
162
|
},
|
|
164
163
|
}));
|
|
165
164
|
|
|
166
|
-
export const StyledIconWrapper = styled(
|
|
167
|
-
width:
|
|
168
|
-
height:
|
|
169
|
-
marginRight:
|
|
165
|
+
export const StyledIconWrapper = styled('div')({
|
|
166
|
+
width: '20px',
|
|
167
|
+
height: '20px',
|
|
168
|
+
marginRight: '8px',
|
|
170
169
|
});
|
|
@@ -1,50 +1,49 @@
|
|
|
1
|
-
import React, { forwardRef } from
|
|
2
|
-
import ArrowDownSm from
|
|
3
|
-
import { DropdownProps } from
|
|
4
|
-
import { StyledSelect } from
|
|
1
|
+
import React, { forwardRef, useCallback } from 'react';
|
|
2
|
+
import ArrowDownSm from '@lunit/design-system-icons/ArrowDownSm';
|
|
3
|
+
import { DropdownProps } from './Dropdown.types';
|
|
4
|
+
import { StyledSelect } from './Dropdown.styled';
|
|
5
|
+
import { SvgIconProps } from '@mui/material';
|
|
5
6
|
|
|
6
7
|
const Dropdown = forwardRef((props: DropdownProps, ref) => {
|
|
7
|
-
const {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
sx,
|
|
13
|
-
...restProps
|
|
14
|
-
} = props;
|
|
8
|
+
const { select = 'single', size = 'medium', className, children, sx, ...restProps } = props;
|
|
9
|
+
const IconComponent = useCallback(
|
|
10
|
+
(iconProps: SvgIconProps) => <ArrowDownSm {...iconProps} />,
|
|
11
|
+
[],
|
|
12
|
+
);
|
|
15
13
|
|
|
16
14
|
return (
|
|
17
15
|
<StyledSelect
|
|
18
16
|
className={className}
|
|
19
17
|
variant="standard" // variant standard 기준으로 스타일링 되어있음. 다른 variant 사용 시 스타일이 틀어질 수 있음
|
|
20
|
-
multiple={select ===
|
|
21
|
-
IconComponent={
|
|
18
|
+
multiple={select === 'multiple'}
|
|
19
|
+
IconComponent={IconComponent}
|
|
22
20
|
MenuProps={{
|
|
23
21
|
anchorOrigin: {
|
|
24
|
-
vertical:
|
|
25
|
-
horizontal:
|
|
22
|
+
vertical: 'bottom',
|
|
23
|
+
horizontal: 'left',
|
|
26
24
|
},
|
|
27
25
|
transformOrigin: {
|
|
28
|
-
vertical:
|
|
29
|
-
horizontal:
|
|
26
|
+
vertical: 'top',
|
|
27
|
+
horizontal: 'left',
|
|
30
28
|
},
|
|
31
29
|
PaperProps: {
|
|
32
30
|
sx: {
|
|
33
|
-
marginTop:
|
|
34
|
-
padding:
|
|
35
|
-
borderRadius:
|
|
31
|
+
marginTop: '4px',
|
|
32
|
+
padding: '0px 8px',
|
|
33
|
+
borderRadius: '8px',
|
|
36
34
|
backgroundColor: (theme) => theme.palette.lunit_token.core.bg_02,
|
|
37
35
|
},
|
|
38
|
-
className: `elevation2 ${className ||
|
|
36
|
+
className: `elevation2 ${className || 'light1'}`,
|
|
39
37
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
slotProps: {
|
|
39
|
+
list: {
|
|
40
|
+
sx: {
|
|
41
|
+
'& .singleChecked': {
|
|
42
|
+
display: select === 'single' ? 'inherit' : 'none',
|
|
43
|
+
},
|
|
44
|
+
'& .multipleChecked': {
|
|
45
|
+
display: select === 'multiple' ? 'inherit !important' : 'none',
|
|
46
|
+
},
|
|
48
47
|
},
|
|
49
48
|
},
|
|
50
49
|
},
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import type { MenuItemProps, SelectProps } from
|
|
1
|
+
import type { MenuItemProps, SelectProps } from '@mui/material';
|
|
2
2
|
|
|
3
|
-
import type { JSX } from
|
|
3
|
+
import type { JSX } from 'react';
|
|
4
4
|
|
|
5
|
-
export interface DropdownProps
|
|
6
|
-
extends Omit<SelectProps, "size" | "variant" | "placeholder"> {
|
|
5
|
+
export interface DropdownProps extends Omit<SelectProps, 'size' | 'variant' | 'placeholder'> {
|
|
7
6
|
// mui variant 를 바꾸게 되면 스타일이 틀어질 수 있어서 variant 를 아예 사용하지 못하게 props 에서 제거
|
|
8
7
|
// mui select 에서는 placeholder 가 동작하지 않기 때문에 유저가 헷갈리지 않게 props 에서 제거
|
|
9
|
-
select?:
|
|
10
|
-
size?:
|
|
8
|
+
select?: 'single' | 'multiple';
|
|
9
|
+
size?: 'small' | 'medium' | 'large';
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
export interface DropdownItemProps extends MenuItemProps {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { Box, Divider, ListSubheader, SxProps } from
|
|
3
|
-
import Check from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Box, Divider, ListSubheader, SxProps } from '@mui/material';
|
|
3
|
+
import Check from '@lunit/design-system-icons/Check';
|
|
4
4
|
|
|
5
|
-
import Checkbox from
|
|
6
|
-
import Typography from
|
|
5
|
+
import Checkbox from '../Checkbox';
|
|
6
|
+
import Typography from '../Typography';
|
|
7
7
|
|
|
8
|
-
import { DropdownItemProps } from
|
|
9
|
-
import { StyledIconWrapper, StyledMenuItem } from
|
|
8
|
+
import { DropdownItemProps } from './Dropdown.types';
|
|
9
|
+
import { StyledIconWrapper, StyledMenuItem } from './Dropdown.styled';
|
|
10
10
|
|
|
11
11
|
export function DropdownItem(props: DropdownItemProps) {
|
|
12
12
|
const {
|
|
@@ -21,15 +21,15 @@ export function DropdownItem(props: DropdownItemProps) {
|
|
|
21
21
|
|
|
22
22
|
return (
|
|
23
23
|
<StyledMenuItem
|
|
24
|
-
className={isFilledStyle && selected ?
|
|
24
|
+
className={isFilledStyle && selected ? 'filledStyle' : undefined}
|
|
25
25
|
sx={sx}
|
|
26
26
|
{...restProps}
|
|
27
27
|
>
|
|
28
28
|
<Box
|
|
29
29
|
sx={{
|
|
30
|
-
display:
|
|
31
|
-
flexDirection:
|
|
32
|
-
justifyContent:
|
|
30
|
+
display: 'flex',
|
|
31
|
+
flexDirection: 'row',
|
|
32
|
+
justifyContent: 'flex-start',
|
|
33
33
|
}}
|
|
34
34
|
>
|
|
35
35
|
{!isFilledStyle && (
|
|
@@ -37,11 +37,7 @@ export function DropdownItem(props: DropdownItemProps) {
|
|
|
37
37
|
<StyledIconWrapper className="singleChecked">
|
|
38
38
|
{selected && <Check fontSize="small" />}
|
|
39
39
|
</StyledIconWrapper>
|
|
40
|
-
<Checkbox
|
|
41
|
-
className="multipleChecked"
|
|
42
|
-
sx={{ mr: 2 }}
|
|
43
|
-
checked={selected}
|
|
44
|
-
/>
|
|
40
|
+
<Checkbox className="multipleChecked" sx={{ mr: 2 }} checked={selected} />
|
|
45
41
|
</>
|
|
46
42
|
)}
|
|
47
43
|
{leftIcon && (
|
|
@@ -73,29 +69,22 @@ export function DropdownDivider({ sx }: { sx?: SxProps }) {
|
|
|
73
69
|
return (
|
|
74
70
|
<Divider
|
|
75
71
|
sx={{
|
|
76
|
-
margin:
|
|
77
|
-
borderColor: (theme) =>
|
|
78
|
-
theme.palette.lunit_token.component.dropdown_divider_border,
|
|
72
|
+
margin: '8px -8px',
|
|
73
|
+
borderColor: (theme) => theme.palette.lunit_token.component.dropdown_divider_border,
|
|
79
74
|
...sx,
|
|
80
75
|
}}
|
|
81
76
|
/>
|
|
82
77
|
);
|
|
83
78
|
}
|
|
84
79
|
|
|
85
|
-
export function DropdownSubtitle({
|
|
86
|
-
title,
|
|
87
|
-
sx,
|
|
88
|
-
}: {
|
|
89
|
-
title: string;
|
|
90
|
-
sx?: SxProps;
|
|
91
|
-
}) {
|
|
80
|
+
export function DropdownSubtitle({ title, sx }: { title: string; sx?: SxProps }) {
|
|
92
81
|
return (
|
|
93
82
|
<ListSubheader
|
|
94
83
|
sx={{
|
|
95
|
-
typography:
|
|
96
|
-
padding:
|
|
84
|
+
typography: 'body3_12_semibold',
|
|
85
|
+
padding: '4px 8px',
|
|
97
86
|
color: (theme) => theme.palette.lunit_token.core.text_light,
|
|
98
|
-
backgroundColor:
|
|
87
|
+
backgroundColor: 'transparent',
|
|
99
88
|
...sx,
|
|
100
89
|
}}
|
|
101
90
|
>
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
DropdownDivider,
|
|
5
|
-
DropdownSubtitle,
|
|
6
|
-
} from "./DropdownItem";
|
|
7
|
-
export type { DropdownProps, DropdownItemProps } from "./Dropdown.types";
|
|
1
|
+
export { default } from './Dropdown';
|
|
2
|
+
export { DropdownItem, DropdownDivider, DropdownSubtitle } from './DropdownItem';
|
|
3
|
+
export type { DropdownProps, DropdownItemProps } from './Dropdown.types';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FormControlLabel, styled } from
|
|
1
|
+
import { FormControlLabel, styled } from '@mui/material';
|
|
2
2
|
|
|
3
3
|
export const StyledFormControlLabel = styled(FormControlLabel)(({ theme }) => ({
|
|
4
4
|
marginLeft: 0,
|
|
5
5
|
'& .MuiTypography-root': {
|
|
6
6
|
marginLeft: theme.spacing(2),
|
|
7
|
-
}
|
|
8
|
-
}))
|
|
7
|
+
},
|
|
8
|
+
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { FormControlLabelProps } from
|
|
3
|
-
import { StyledFormControlLabel } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormControlLabelProps } from '@mui/material';
|
|
3
|
+
import { StyledFormControlLabel } from './FormLabel.styled';
|
|
4
4
|
|
|
5
5
|
const FormLabel = (props: FormControlLabelProps) => {
|
|
6
6
|
return <StyledFormControlLabel {...props} />;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './FormLabel';
|
|
@@ -1,32 +1,26 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { styled } from
|
|
3
|
-
import MuiRadio, { RadioProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { styled } from '@mui/material/styles';
|
|
3
|
+
import MuiRadio, { RadioProps } from '@mui/material/Radio';
|
|
4
4
|
|
|
5
5
|
const CustomRadio = styled(MuiRadio)(({ theme }) => ({
|
|
6
6
|
padding: 0,
|
|
7
|
-
|
|
7
|
+
'&.Mui-disabled': {
|
|
8
8
|
opacity: 0.38,
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
'&.Mui-focusVisible:after': {
|
|
11
11
|
content: '""',
|
|
12
|
-
position:
|
|
13
|
-
display:
|
|
12
|
+
position: 'absolute',
|
|
13
|
+
display: 'block',
|
|
14
14
|
width: 24,
|
|
15
15
|
height: 24,
|
|
16
|
-
borderRadius:
|
|
17
|
-
border: `1px solid ${theme.palette.lunit_token.core.
|
|
16
|
+
borderRadius: '50%',
|
|
17
|
+
border: `1px solid ${theme.palette.lunit_token.core.status_focused}`,
|
|
18
18
|
},
|
|
19
19
|
}));
|
|
20
20
|
|
|
21
21
|
const DefaultIcon = () => {
|
|
22
22
|
return (
|
|
23
|
-
<svg
|
|
24
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
25
|
-
width="20"
|
|
26
|
-
height="20"
|
|
27
|
-
viewBox="0 0 20 20"
|
|
28
|
-
fill="none"
|
|
29
|
-
>
|
|
23
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
30
24
|
<path
|
|
31
25
|
fillRule="evenodd"
|
|
32
26
|
clipRule="evenodd"
|
|
@@ -39,13 +33,7 @@ const DefaultIcon = () => {
|
|
|
39
33
|
|
|
40
34
|
const CheckedIcon = () => {
|
|
41
35
|
return (
|
|
42
|
-
<svg
|
|
43
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
44
|
-
width="20"
|
|
45
|
-
height="20"
|
|
46
|
-
viewBox="0 0 20 20"
|
|
47
|
-
fill="none"
|
|
48
|
-
>
|
|
36
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
49
37
|
<path
|
|
50
38
|
fillRule="evenodd"
|
|
51
39
|
clipRule="evenodd"
|
|
@@ -58,12 +46,7 @@ const CheckedIcon = () => {
|
|
|
58
46
|
|
|
59
47
|
const Radio = (props: RadioProps) => {
|
|
60
48
|
return (
|
|
61
|
-
<CustomRadio
|
|
62
|
-
disableRipple
|
|
63
|
-
icon={<DefaultIcon />}
|
|
64
|
-
checkedIcon={<CheckedIcon />}
|
|
65
|
-
{...props}
|
|
66
|
-
/>
|
|
49
|
+
<CustomRadio disableRipple icon={<DefaultIcon />} checkedIcon={<CheckedIcon />} {...props} />
|
|
67
50
|
);
|
|
68
51
|
};
|
|
69
52
|
|
|
@@ -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;
|