@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,105 +1,82 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
TableHead,
|
|
5
|
-
TableRow,
|
|
6
|
-
TableBody,
|
|
7
|
-
TableCell,
|
|
8
|
-
} from "@mui/material";
|
|
9
|
-
import { action } from "@storybook/addon-actions";
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Table, TableHead, TableRow, TableBody, TableCell } from '@mui/material';
|
|
3
|
+
import { action } from 'storybook/actions';
|
|
10
4
|
|
|
11
|
-
import Button from
|
|
5
|
+
import Button from '@/components/Button';
|
|
12
6
|
|
|
13
|
-
import type { StoryFn, Meta } from
|
|
7
|
+
import type { StoryFn, Meta } from '@storybook/react-webpack5';
|
|
14
8
|
|
|
15
9
|
export default {
|
|
16
|
-
title:
|
|
10
|
+
title: 'Components/Button',
|
|
17
11
|
component: Button,
|
|
18
12
|
args: {
|
|
19
|
-
kind:
|
|
20
|
-
children:
|
|
13
|
+
kind: 'contained',
|
|
14
|
+
children: 'Text',
|
|
21
15
|
disabled: false,
|
|
22
|
-
size:
|
|
16
|
+
size: 'small',
|
|
23
17
|
onClick: () => {
|
|
24
|
-
action(
|
|
25
|
-
console.log(
|
|
18
|
+
action('onClick')();
|
|
19
|
+
console.log('onClick');
|
|
26
20
|
},
|
|
27
21
|
},
|
|
28
22
|
argTypes: {
|
|
29
23
|
children: {
|
|
30
|
-
type:
|
|
24
|
+
type: 'string',
|
|
31
25
|
},
|
|
32
26
|
disabled: {
|
|
33
27
|
control: {
|
|
34
|
-
type:
|
|
28
|
+
type: 'boolean',
|
|
35
29
|
},
|
|
36
30
|
table: {
|
|
37
|
-
defaultValue: { summary:
|
|
31
|
+
defaultValue: { summary: 'false' },
|
|
38
32
|
},
|
|
39
33
|
},
|
|
40
34
|
size: {
|
|
41
35
|
control: {
|
|
42
|
-
type:
|
|
36
|
+
type: 'radio',
|
|
43
37
|
},
|
|
44
|
-
options: [
|
|
38
|
+
options: ['small', 'medium', 'large'],
|
|
45
39
|
table: {
|
|
46
|
-
defaultValue: { summary:
|
|
40
|
+
defaultValue: { summary: 'small' },
|
|
47
41
|
},
|
|
48
42
|
},
|
|
49
43
|
onClick: {
|
|
50
|
-
type:
|
|
44
|
+
type: 'function',
|
|
51
45
|
control: {
|
|
52
|
-
type:
|
|
46
|
+
type: 'radio',
|
|
53
47
|
},
|
|
54
|
-
options: [
|
|
48
|
+
options: ['function', undefined],
|
|
55
49
|
mapping: {
|
|
56
|
-
function: action(
|
|
50
|
+
function: action('onClick'),
|
|
57
51
|
undefined: undefined,
|
|
58
52
|
},
|
|
59
|
-
description:
|
|
60
|
-
"It is a callback function that is called when the button is clicked.",
|
|
53
|
+
description: 'It is a callback function that is called when the button is clicked.',
|
|
61
54
|
},
|
|
62
55
|
kind: {
|
|
63
56
|
control: false,
|
|
64
|
-
options: [
|
|
65
|
-
description:
|
|
57
|
+
options: ['contained', 'outlined', 'ghost'],
|
|
58
|
+
description: 'Button has three Kinds Contained, Outlined, Ghost',
|
|
66
59
|
table: {
|
|
67
|
-
defaultValue: { summary:
|
|
60
|
+
defaultValue: { summary: 'contained' },
|
|
68
61
|
},
|
|
69
62
|
},
|
|
70
63
|
variant: {
|
|
71
64
|
control: {
|
|
72
|
-
type:
|
|
65
|
+
type: 'radio',
|
|
73
66
|
},
|
|
74
|
-
options: [
|
|
75
|
-
description:
|
|
67
|
+
options: ['contained', 'outlined', 'text', 'ghost'],
|
|
68
|
+
description: 'The variant is alias of kind.',
|
|
76
69
|
table: {
|
|
77
|
-
defaultValue: { summary:
|
|
70
|
+
defaultValue: { summary: 'contained' },
|
|
78
71
|
},
|
|
79
72
|
},
|
|
80
73
|
},
|
|
81
74
|
parameters: {
|
|
82
75
|
controls: {
|
|
83
|
-
include: [
|
|
84
|
-
"onClick",
|
|
85
|
-
"children",
|
|
86
|
-
"color",
|
|
87
|
-
"size",
|
|
88
|
-
"disabled",
|
|
89
|
-
"kind",
|
|
90
|
-
"variant",
|
|
91
|
-
],
|
|
76
|
+
include: ['onClick', 'children', 'color', 'size', 'disabled', 'kind', 'variant'],
|
|
92
77
|
},
|
|
93
78
|
pseudo: {
|
|
94
|
-
hover: [
|
|
95
|
-
"#hover1",
|
|
96
|
-
"#hover2",
|
|
97
|
-
"#hover3",
|
|
98
|
-
"#hover4",
|
|
99
|
-
"#hover5",
|
|
100
|
-
"#hover6",
|
|
101
|
-
"#hover7",
|
|
102
|
-
],
|
|
79
|
+
hover: ['#hover1', '#hover2', '#hover3', '#hover4', '#hover5', '#hover6', '#hover7'],
|
|
103
80
|
},
|
|
104
81
|
docs: {
|
|
105
82
|
description: {
|
|
@@ -110,22 +87,18 @@ export default {
|
|
|
110
87
|
},
|
|
111
88
|
} as Meta<typeof Button>;
|
|
112
89
|
|
|
113
|
-
const ButtonTemplate: StoryFn<typeof Button> = ({
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
variant,
|
|
117
|
-
children,
|
|
118
|
-
...restProps
|
|
119
|
-
}) => {
|
|
90
|
+
const ButtonTemplate: StoryFn<typeof Button> = ({ color, children, ...restProps }) => {
|
|
91
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
|
|
92
|
+
const { variant, kind, ...restArgs } = restProps;
|
|
120
93
|
return (
|
|
121
94
|
<>
|
|
122
|
-
<Button color={color} {...
|
|
95
|
+
<Button color={color} {...restArgs} sx={{ mr: 2 }}>
|
|
123
96
|
{children}
|
|
124
97
|
</Button>
|
|
125
|
-
<Button kind="outlined" color="primary" {...
|
|
98
|
+
<Button kind="outlined" color="primary" {...restArgs} sx={{ mr: 2 }}>
|
|
126
99
|
{children}
|
|
127
100
|
</Button>
|
|
128
|
-
<Button kind="ghost" color={color} {...
|
|
101
|
+
<Button kind="ghost" color={color} {...restArgs}>
|
|
129
102
|
{children}
|
|
130
103
|
</Button>
|
|
131
104
|
</>
|
|
@@ -137,31 +110,28 @@ export const Kind = {
|
|
|
137
110
|
};
|
|
138
111
|
|
|
139
112
|
const ContainedButtonTemplate: StoryFn<typeof Button> = (args) => {
|
|
140
|
-
|
|
113
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
|
|
114
|
+
const { variant, ...restProps } = args;
|
|
141
115
|
return (
|
|
142
116
|
<>
|
|
143
117
|
<Table sx={{ width: 650 }}>
|
|
144
118
|
<TableHead>
|
|
145
119
|
<TableRow>
|
|
146
|
-
<TableCell
|
|
147
|
-
<TableCell sx={{ typography:
|
|
120
|
+
<TableCell />
|
|
121
|
+
<TableCell sx={{ typography: 'body2_14_medium', color: 'inherit' }}>
|
|
148
122
|
Contained Primary
|
|
149
123
|
</TableCell>
|
|
150
|
-
<TableCell sx={{ typography:
|
|
124
|
+
<TableCell sx={{ typography: 'body2_14_medium', color: 'inherit' }}>
|
|
151
125
|
Contained Secondary
|
|
152
126
|
</TableCell>
|
|
153
|
-
<TableCell sx={{ typography:
|
|
127
|
+
<TableCell sx={{ typography: 'body2_14_medium', color: 'inherit' }}>
|
|
154
128
|
Contained Error
|
|
155
129
|
</TableCell>
|
|
156
130
|
</TableRow>
|
|
157
131
|
</TableHead>
|
|
158
132
|
<TableBody>
|
|
159
133
|
<TableRow>
|
|
160
|
-
<TableCell
|
|
161
|
-
sx={{ typography: "body2_14_regular", color: "inherit" }}
|
|
162
|
-
>
|
|
163
|
-
Enable
|
|
164
|
-
</TableCell>
|
|
134
|
+
<TableCell sx={{ typography: 'body2_14_regular', color: 'inherit' }}>Enable</TableCell>
|
|
165
135
|
<TableCell>
|
|
166
136
|
<Button {...restProps} kind="contained">
|
|
167
137
|
{args.children}
|
|
@@ -179,23 +149,14 @@ const ContainedButtonTemplate: StoryFn<typeof Button> = (args) => {
|
|
|
179
149
|
</TableCell>
|
|
180
150
|
</TableRow>
|
|
181
151
|
<TableRow>
|
|
182
|
-
<TableCell
|
|
183
|
-
sx={{ typography: "body2_14_regular", color: "inherit" }}
|
|
184
|
-
>
|
|
185
|
-
Hover
|
|
186
|
-
</TableCell>
|
|
152
|
+
<TableCell sx={{ typography: 'body2_14_regular', color: 'inherit' }}>Hover</TableCell>
|
|
187
153
|
<TableCell>
|
|
188
154
|
<Button {...restProps} id="hover1" kind="contained">
|
|
189
155
|
{args.children}
|
|
190
156
|
</Button>
|
|
191
157
|
</TableCell>
|
|
192
158
|
<TableCell>
|
|
193
|
-
<Button
|
|
194
|
-
{...restProps}
|
|
195
|
-
id="hover2"
|
|
196
|
-
kind="contained"
|
|
197
|
-
color="secondary"
|
|
198
|
-
>
|
|
159
|
+
<Button {...restProps} id="hover2" kind="contained" color="secondary">
|
|
199
160
|
{args.children}
|
|
200
161
|
</Button>
|
|
201
162
|
</TableCell>
|
|
@@ -206,17 +167,9 @@ const ContainedButtonTemplate: StoryFn<typeof Button> = (args) => {
|
|
|
206
167
|
</TableCell>
|
|
207
168
|
</TableRow>
|
|
208
169
|
<TableRow>
|
|
209
|
-
<TableCell
|
|
210
|
-
sx={{ typography: "body2_14_regular", color: "inherit" }}
|
|
211
|
-
>
|
|
212
|
-
Focus
|
|
213
|
-
</TableCell>
|
|
170
|
+
<TableCell sx={{ typography: 'body2_14_regular', color: 'inherit' }}>Focus</TableCell>
|
|
214
171
|
<TableCell>
|
|
215
|
-
<Button
|
|
216
|
-
{...restProps}
|
|
217
|
-
kind="contained"
|
|
218
|
-
className="Mui-focusVisible"
|
|
219
|
-
>
|
|
172
|
+
<Button {...restProps} kind="contained" className="Mui-focusVisible">
|
|
220
173
|
{args.children}
|
|
221
174
|
</Button>
|
|
222
175
|
</TableCell>
|
|
@@ -231,20 +184,13 @@ const ContainedButtonTemplate: StoryFn<typeof Button> = (args) => {
|
|
|
231
184
|
</Button>
|
|
232
185
|
</TableCell>
|
|
233
186
|
<TableCell>
|
|
234
|
-
<Button
|
|
235
|
-
{...restProps}
|
|
236
|
-
kind="contained"
|
|
237
|
-
color="error"
|
|
238
|
-
className="Mui-focusVisible"
|
|
239
|
-
>
|
|
187
|
+
<Button {...restProps} kind="contained" color="error" className="Mui-focusVisible">
|
|
240
188
|
{args.children}
|
|
241
189
|
</Button>
|
|
242
190
|
</TableCell>
|
|
243
191
|
</TableRow>
|
|
244
192
|
<TableRow>
|
|
245
|
-
<TableCell
|
|
246
|
-
sx={{ typography: "body2_14_regular", color: "inherit" }}
|
|
247
|
-
>
|
|
193
|
+
<TableCell sx={{ typography: 'body2_14_regular', color: 'inherit' }}>
|
|
248
194
|
Disabled
|
|
249
195
|
</TableCell>
|
|
250
196
|
<TableCell>
|
|
@@ -253,12 +199,7 @@ const ContainedButtonTemplate: StoryFn<typeof Button> = (args) => {
|
|
|
253
199
|
</Button>
|
|
254
200
|
</TableCell>
|
|
255
201
|
<TableCell>
|
|
256
|
-
<Button
|
|
257
|
-
{...restProps}
|
|
258
|
-
kind="contained"
|
|
259
|
-
color="secondary"
|
|
260
|
-
disabled
|
|
261
|
-
>
|
|
202
|
+
<Button {...restProps} kind="contained" color="secondary" disabled>
|
|
262
203
|
{args.children}
|
|
263
204
|
</Button>
|
|
264
205
|
</TableCell>
|
|
@@ -279,47 +220,44 @@ export const KindContained = {
|
|
|
279
220
|
|
|
280
221
|
argTypes: {
|
|
281
222
|
color: {
|
|
282
|
-
control:
|
|
283
|
-
options: [
|
|
284
|
-
defaultValue:
|
|
223
|
+
control: 'false',
|
|
224
|
+
options: ['primary', 'secondary', 'error'],
|
|
225
|
+
defaultValue: 'primary',
|
|
285
226
|
description: `The color of the component.
|
|
286
227
|
\n It supports both default and custom theme colors,
|
|
287
228
|
\n which can be added as shown in the palette customization guide.`,
|
|
288
229
|
table: {
|
|
289
|
-
defaultValue: { summary:
|
|
230
|
+
defaultValue: { summary: 'primary' },
|
|
290
231
|
},
|
|
291
232
|
},
|
|
292
233
|
},
|
|
293
234
|
|
|
294
|
-
name:
|
|
235
|
+
name: 'Kind: Contained',
|
|
295
236
|
};
|
|
296
237
|
|
|
297
238
|
const GhostButtonTemplate: StoryFn<typeof Button> = (args) => {
|
|
298
|
-
|
|
239
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
|
|
240
|
+
const { variant, ...restProps } = args;
|
|
299
241
|
return (
|
|
300
242
|
<>
|
|
301
243
|
<Table sx={{ width: 650 }}>
|
|
302
244
|
<TableHead>
|
|
303
245
|
<TableRow>
|
|
304
|
-
<TableCell
|
|
305
|
-
<TableCell sx={{ typography:
|
|
246
|
+
<TableCell />
|
|
247
|
+
<TableCell sx={{ typography: 'body2_14_medium', color: 'inherit' }}>
|
|
306
248
|
Ghost Primary
|
|
307
249
|
</TableCell>
|
|
308
|
-
<TableCell sx={{ typography:
|
|
250
|
+
<TableCell sx={{ typography: 'body2_14_medium', color: 'inherit' }}>
|
|
309
251
|
Ghost Secondary
|
|
310
252
|
</TableCell>
|
|
311
|
-
<TableCell sx={{ typography:
|
|
253
|
+
<TableCell sx={{ typography: 'body2_14_medium', color: 'inherit' }}>
|
|
312
254
|
Ghost Error
|
|
313
255
|
</TableCell>
|
|
314
256
|
</TableRow>
|
|
315
257
|
</TableHead>
|
|
316
258
|
<TableBody>
|
|
317
259
|
<TableRow>
|
|
318
|
-
<TableCell
|
|
319
|
-
sx={{ typography: "body2_14_regular", color: "inherit" }}
|
|
320
|
-
>
|
|
321
|
-
Enable
|
|
322
|
-
</TableCell>
|
|
260
|
+
<TableCell sx={{ typography: 'body2_14_regular', color: 'inherit' }}>Enable</TableCell>
|
|
323
261
|
<TableCell>
|
|
324
262
|
<Button {...restProps} kind="ghost">
|
|
325
263
|
{args.children}
|
|
@@ -337,11 +275,7 @@ const GhostButtonTemplate: StoryFn<typeof Button> = (args) => {
|
|
|
337
275
|
</TableCell>
|
|
338
276
|
</TableRow>
|
|
339
277
|
<TableRow>
|
|
340
|
-
<TableCell
|
|
341
|
-
sx={{ typography: "body2_14_regular", color: "inherit" }}
|
|
342
|
-
>
|
|
343
|
-
Hover
|
|
344
|
-
</TableCell>
|
|
278
|
+
<TableCell sx={{ typography: 'body2_14_regular', color: 'inherit' }}>Hover</TableCell>
|
|
345
279
|
<TableCell>
|
|
346
280
|
<Button {...restProps} id="hover4" kind="ghost">
|
|
347
281
|
{args.children}
|
|
@@ -359,41 +293,25 @@ const GhostButtonTemplate: StoryFn<typeof Button> = (args) => {
|
|
|
359
293
|
</TableCell>
|
|
360
294
|
</TableRow>
|
|
361
295
|
<TableRow>
|
|
362
|
-
<TableCell
|
|
363
|
-
sx={{ typography: "body2_14_regular", color: "inherit" }}
|
|
364
|
-
>
|
|
365
|
-
Focus
|
|
366
|
-
</TableCell>
|
|
296
|
+
<TableCell sx={{ typography: 'body2_14_regular', color: 'inherit' }}>Focus</TableCell>
|
|
367
297
|
<TableCell>
|
|
368
298
|
<Button {...restProps} kind="ghost" className="Mui-focusVisible">
|
|
369
299
|
{args.children}
|
|
370
300
|
</Button>
|
|
371
301
|
</TableCell>
|
|
372
302
|
<TableCell>
|
|
373
|
-
<Button
|
|
374
|
-
{...restProps}
|
|
375
|
-
kind="ghost"
|
|
376
|
-
color="secondary"
|
|
377
|
-
className="Mui-focusVisible"
|
|
378
|
-
>
|
|
303
|
+
<Button {...restProps} kind="ghost" color="secondary" className="Mui-focusVisible">
|
|
379
304
|
{args.children}
|
|
380
305
|
</Button>
|
|
381
306
|
</TableCell>
|
|
382
307
|
<TableCell>
|
|
383
|
-
<Button
|
|
384
|
-
{...restProps}
|
|
385
|
-
kind="ghost"
|
|
386
|
-
color="error"
|
|
387
|
-
className="Mui-focusVisible"
|
|
388
|
-
>
|
|
308
|
+
<Button {...restProps} kind="ghost" color="error" className="Mui-focusVisible">
|
|
389
309
|
{args.children}
|
|
390
310
|
</Button>
|
|
391
311
|
</TableCell>
|
|
392
312
|
</TableRow>
|
|
393
313
|
<TableRow>
|
|
394
|
-
<TableCell
|
|
395
|
-
sx={{ typography: "body2_14_regular", color: "inherit" }}
|
|
396
|
-
>
|
|
314
|
+
<TableCell sx={{ typography: 'body2_14_regular', color: 'inherit' }}>
|
|
397
315
|
Disabled
|
|
398
316
|
</TableCell>
|
|
399
317
|
<TableCell>
|
|
@@ -425,121 +343,90 @@ export const KindGhost = {
|
|
|
425
343
|
|
|
426
344
|
argTypes: {
|
|
427
345
|
color: {
|
|
428
|
-
control:
|
|
429
|
-
options: [
|
|
346
|
+
control: 'false',
|
|
347
|
+
options: ['primary', 'secondary', 'error'],
|
|
430
348
|
description: `The color of the component.
|
|
431
349
|
\n It supports both default and custom theme colors,
|
|
432
350
|
\n which can be added as shown in the palette customization guide.`,
|
|
433
|
-
defaultValue:
|
|
351
|
+
defaultValue: 'primary',
|
|
434
352
|
table: {
|
|
435
|
-
defaultValue: { summary:
|
|
353
|
+
defaultValue: { summary: 'primary' },
|
|
436
354
|
},
|
|
437
355
|
},
|
|
438
356
|
},
|
|
439
357
|
|
|
440
|
-
name:
|
|
358
|
+
name: 'Kind: Ghost',
|
|
441
359
|
};
|
|
442
360
|
|
|
443
|
-
const OutlinedButtonTemplate: StoryFn<typeof Button> = ({
|
|
444
|
-
|
|
445
|
-
variant,
|
|
446
|
-
color,
|
|
447
|
-
...restProps
|
|
448
|
-
}) => {
|
|
361
|
+
const OutlinedButtonTemplate: StoryFn<typeof Button> = (args) => {
|
|
362
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
|
|
363
|
+
const { variant, kind, color, ...restProps } = args;
|
|
449
364
|
return (
|
|
450
365
|
<>
|
|
451
366
|
<Table sx={{ width: 600 }}>
|
|
452
367
|
<TableHead>
|
|
453
368
|
<TableRow>
|
|
454
|
-
<TableCell
|
|
455
|
-
<TableCell sx={{ typography:
|
|
369
|
+
<TableCell />
|
|
370
|
+
<TableCell sx={{ typography: 'body2_14_medium', color: 'inherit' }}>
|
|
456
371
|
Outlined Primary
|
|
457
372
|
</TableCell>
|
|
458
|
-
<TableCell sx={{ typography:
|
|
373
|
+
<TableCell sx={{ typography: 'body2_14_medium', color: 'inherit' }}>
|
|
459
374
|
Outlined Secondary
|
|
460
375
|
</TableCell>
|
|
461
376
|
</TableRow>
|
|
462
377
|
</TableHead>
|
|
463
378
|
<TableBody>
|
|
464
379
|
<TableRow>
|
|
465
|
-
<TableCell
|
|
466
|
-
sx={{ typography: "body2_14_regular", color: "inherit" }}
|
|
467
|
-
>
|
|
468
|
-
Enable
|
|
469
|
-
</TableCell>
|
|
380
|
+
<TableCell sx={{ typography: 'body2_14_regular', color: 'inherit' }}>Enable</TableCell>
|
|
470
381
|
<TableCell>
|
|
471
382
|
<Button {...restProps} kind="outlined">
|
|
472
|
-
{
|
|
383
|
+
{args.children}
|
|
473
384
|
</Button>
|
|
474
385
|
</TableCell>
|
|
475
386
|
<TableCell>
|
|
476
387
|
<Button {...restProps} kind="outlined" color="secondary">
|
|
477
|
-
{
|
|
388
|
+
{args.children}
|
|
478
389
|
</Button>
|
|
479
390
|
</TableCell>
|
|
480
391
|
</TableRow>
|
|
481
392
|
<TableRow>
|
|
482
|
-
<TableCell
|
|
483
|
-
sx={{ typography: "body2_14_regular", color: "inherit" }}
|
|
484
|
-
>
|
|
485
|
-
Hover
|
|
486
|
-
</TableCell>
|
|
393
|
+
<TableCell sx={{ typography: 'body2_14_regular', color: 'inherit' }}>Hover</TableCell>
|
|
487
394
|
<TableCell>
|
|
488
395
|
<Button {...restProps} id="hover7" kind="outlined">
|
|
489
|
-
{
|
|
396
|
+
{args.children}
|
|
490
397
|
</Button>
|
|
491
398
|
</TableCell>
|
|
492
399
|
<TableCell>
|
|
493
|
-
<Button
|
|
494
|
-
{
|
|
495
|
-
id="hover7"
|
|
496
|
-
kind="outlined"
|
|
497
|
-
color="secondary"
|
|
498
|
-
>
|
|
499
|
-
{restProps.children}
|
|
400
|
+
<Button {...restProps} id="hover7" kind="outlined" color="secondary">
|
|
401
|
+
{args.children}
|
|
500
402
|
</Button>
|
|
501
403
|
</TableCell>
|
|
502
404
|
</TableRow>
|
|
503
405
|
<TableRow>
|
|
504
|
-
<TableCell
|
|
505
|
-
sx={{ typography: "body2_14_regular", color: "inherit" }}
|
|
506
|
-
>
|
|
507
|
-
Focus
|
|
508
|
-
</TableCell>
|
|
406
|
+
<TableCell sx={{ typography: 'body2_14_regular', color: 'inherit' }}>Focus</TableCell>
|
|
509
407
|
<TableCell>
|
|
510
|
-
<Button
|
|
511
|
-
{
|
|
512
|
-
kind="outlined"
|
|
513
|
-
className="Mui-focusVisible"
|
|
514
|
-
>
|
|
515
|
-
{restProps.children}
|
|
408
|
+
<Button {...restProps} kind="outlined" className="Mui-focusVisible">
|
|
409
|
+
{args.children}
|
|
516
410
|
</Button>
|
|
517
411
|
</TableCell>
|
|
518
412
|
<TableCell>
|
|
519
|
-
<Button
|
|
520
|
-
{
|
|
521
|
-
kind="outlined"
|
|
522
|
-
color="secondary"
|
|
523
|
-
className="Mui-focusVisible"
|
|
524
|
-
>
|
|
525
|
-
{restProps.children}
|
|
413
|
+
<Button {...restProps} kind="outlined" color="secondary" className="Mui-focusVisible">
|
|
414
|
+
{args.children}
|
|
526
415
|
</Button>
|
|
527
416
|
</TableCell>
|
|
528
417
|
</TableRow>
|
|
529
418
|
<TableRow>
|
|
530
|
-
<TableCell
|
|
531
|
-
sx={{ typography: "body2_14_regular", color: "inherit" }}
|
|
532
|
-
>
|
|
419
|
+
<TableCell sx={{ typography: 'body2_14_regular', color: 'inherit' }}>
|
|
533
420
|
Disabled
|
|
534
421
|
</TableCell>
|
|
535
422
|
<TableCell>
|
|
536
423
|
<Button {...restProps} kind="outlined" disabled>
|
|
537
|
-
{
|
|
424
|
+
{args.children}
|
|
538
425
|
</Button>
|
|
539
426
|
</TableCell>
|
|
540
427
|
<TableCell>
|
|
541
428
|
<Button {...restProps} kind="outlined" color="secondary" disabled>
|
|
542
|
-
{
|
|
429
|
+
{args.children}
|
|
543
430
|
</Button>
|
|
544
431
|
</TableCell>
|
|
545
432
|
</TableRow>
|
|
@@ -554,18 +441,18 @@ export const KindOutlined = {
|
|
|
554
441
|
|
|
555
442
|
argTypes: {
|
|
556
443
|
color: {
|
|
557
|
-
control:
|
|
558
|
-
options: [
|
|
559
|
-
defaultValue:
|
|
444
|
+
control: 'false',
|
|
445
|
+
options: ['primary'],
|
|
446
|
+
defaultValue: 'primary',
|
|
560
447
|
description: `The color of the component.
|
|
561
448
|
\n It supports both default and custom theme colors,
|
|
562
449
|
\n which can be added as shown in the palette customization guide.`,
|
|
563
450
|
table: {
|
|
564
|
-
type: { summary:
|
|
565
|
-
defaultValue: { summary:
|
|
451
|
+
type: { summary: 'primary' },
|
|
452
|
+
defaultValue: { summary: 'primary' },
|
|
566
453
|
},
|
|
567
454
|
},
|
|
568
455
|
},
|
|
569
456
|
|
|
570
|
-
name:
|
|
457
|
+
name: 'Kind: Outlined',
|
|
571
458
|
};
|