norma-library 0.6.86 → 0.6.88

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.
Files changed (67) hide show
  1. package/.storybook/main.ts +7 -0
  2. package/dist/esm/components/Box/interfaces.d.ts +1 -0
  3. package/dist/esm/components/Breadcrumb/index.d.ts +2 -2
  4. package/dist/esm/components/Breadcrumb/index.js +13 -9
  5. package/dist/esm/components/Breadcrumb/index.js.map +1 -1
  6. package/dist/esm/components/Breadcrumb/interface.d.ts +11 -6
  7. package/dist/esm/components/Breadcrumb/styles.d.ts +3 -3
  8. package/dist/esm/components/Breadcrumb/styles.js +3 -3
  9. package/dist/esm/components/Breadcrumb/styles.js.map +1 -1
  10. package/dist/esm/components/ProductCard/ProductCard.js +7 -5
  11. package/dist/esm/components/ProductCard/ProductCard.js.map +1 -1
  12. package/dist/esm/components/ProductCard/ProductCard.style.js +1 -1
  13. package/dist/esm/components/ProductCard/ProductCard.style.js.map +1 -1
  14. package/dist/esm/components/Typography/Text/interfaces.d.ts +1 -0
  15. package/dist/esm/components/Typography/Title/interfaces.d.ts +1 -0
  16. package/dist/esm/hooks/useClickOutside.d.ts +1 -1
  17. package/dist/esm/hooks/useClickOutside.js.map +1 -1
  18. package/dist/esm/interfaces/ProductCard.d.ts +1 -1
  19. package/package.json +24 -24
  20. package/src/components/Box/interfaces.ts +2 -0
  21. package/src/components/Breadcrumb/index.tsx +16 -11
  22. package/src/components/Breadcrumb/interface.ts +12 -6
  23. package/src/components/Breadcrumb/styles.tsx +10 -11
  24. package/src/components/ProductCard/ProductCard.style.ts +0 -1
  25. package/src/components/ProductCard/ProductCard.tsx +6 -5
  26. package/src/components/Typography/Text/interfaces.ts +3 -1
  27. package/src/components/Typography/Title/interfaces.ts +2 -0
  28. package/src/hooks/useClickOutside.tsx +1 -1
  29. package/src/interfaces/ProductCard.ts +1 -1
  30. package/src/stories/Accordion.stories.tsx +19 -19
  31. package/src/stories/Avatar.stories.tsx +32 -28
  32. package/src/stories/Badge.stories.tsx +17 -15
  33. package/src/stories/Box.stories.tsx +16 -12
  34. package/src/stories/Breadcrumb.stories.tsx +62 -18
  35. package/src/stories/Button.stories.tsx +24 -16
  36. package/src/stories/Card.stories.tsx +21 -13
  37. package/src/stories/ChatMessage.stories.tsx +10 -9
  38. package/src/stories/ChatMessageBalloon.stories.tsx +83 -66
  39. package/src/stories/CheckBox.stories.tsx +23 -23
  40. package/src/stories/DateInput.stories.tsx +15 -16
  41. package/src/stories/DatePicker.stories.tsx +17 -12
  42. package/src/stories/DropDown.stories.tsx +16 -16
  43. package/src/stories/IconButton.stories.tsx +45 -21
  44. package/src/stories/Modal.stories.tsx +49 -49
  45. package/src/stories/ModalStatus.stories.tsx +34 -18
  46. package/src/stories/MultiSelectInput.stories.tsx +30 -28
  47. package/src/stories/NormaChatMessageBalloon.stories.tsx +119 -82
  48. package/src/stories/Paper.stories.tsx +14 -14
  49. package/src/stories/ProductCard.stories.tsx +123 -51
  50. package/src/stories/ProgressBar.stories.tsx +27 -19
  51. package/src/stories/RadioGroup.stories.tsx +28 -21
  52. package/src/stories/RangerSlider.stories.tsx +43 -35
  53. package/src/stories/Select.stories.tsx +61 -33
  54. package/src/stories/SelectInput.stories.tsx +27 -25
  55. package/src/stories/ServiceCard.stories.tsx +36 -27
  56. package/src/stories/Table.stories.tsx +211 -276
  57. package/src/stories/Tabs.stories.tsx +17 -17
  58. package/src/stories/Tag.stories.tsx +22 -14
  59. package/src/stories/Text.stories.tsx +9 -9
  60. package/src/stories/TextField.stories.tsx +116 -35
  61. package/src/stories/TextInput.stories.tsx +14 -15
  62. package/src/stories/TimeLine.stories.tsx +22 -20
  63. package/src/stories/TimePicker.stories.tsx +54 -30
  64. package/src/stories/Title.stories.tsx +9 -9
  65. package/src/stories/UncontrolledTable.stories.tsx +196 -66
  66. package/src/stories/UncontrolledTabs.stories.tsx +28 -23
  67. /package/src/stories/{Colors.stories.mdx → Colors.mdx} +0 -0
@@ -1,8 +1,8 @@
1
- import React from 'react';
1
+ import React from 'react'
2
2
 
3
- import type { Meta } from '@storybook/react';
4
- import { ChatMessageBalloon } from '../components';
5
- import { Typography } from '@mui/material';
3
+ import type { Meta } from '@storybook/react'
4
+ import { ChatMessageBalloon } from '../components'
5
+ import { Typography } from '@mui/material'
6
6
 
7
7
  const meta = {
8
8
  title: 'Display/ChatMessageBalloon',
@@ -12,97 +12,114 @@ const meta = {
12
12
  },
13
13
  tags: ['autodocs'],
14
14
  argTypes: {},
15
- } ;
16
-
17
- export default meta;
15
+ }
18
16
 
17
+ export default meta
19
18
 
20
19
  export const ChatMessageBalloonBasic = () => {
21
20
  return (
22
- <div style={{backgroundColor: "#F0F0F0", boxSizing: "border-box", padding: "20px"}}>
23
- <ChatMessageBalloon
24
- onMouseEnter={ () => console.log('onMouseEnter') }
21
+ <div style={{ backgroundColor: '#F0F0F0', boxSizing: 'border-box', padding: '20px' }}>
22
+ <ChatMessageBalloon
23
+ onMouseEnter={() => console.log('onMouseEnter')}
25
24
  bottomChildren={<div>Bottom Children</div>}
26
- label="Agente Marcos"
25
+ label="Agente Marcos"
27
26
  description={
28
27
  <Typography
29
28
  variant="body1"
30
29
  style={{
31
- fontSize: "16px"
30
+ fontSize: '16px',
32
31
  }}
33
32
  >
34
- {"Olá, tudo bem? Meu nome é Ana e falo em nome do banco Bradesco. Eu gostaria de falar com Maria Conceição da Silva"}
33
+ {
34
+ 'Olá, tudo bem? Meu nome é Ana e falo em nome do banco Bradesco. Eu gostaria de falar com Maria Conceição da Silva'
35
+ }
35
36
  </Typography>
36
37
  }
37
- date={"10:23"}
38
+ date={'10:23'}
38
39
  direction="I"
39
40
  attachments={[]}
40
41
  >
41
- <span style={{
42
- height: "38px",
43
- width: "38px",
44
- border: "1px solid #FF8348",
45
- borderRadius: "38px",
46
- backgroundColor: "#FFF",
47
- display: "flex",
48
- alignItems: "center",
49
- justifyContent: "center",
50
- marginRight: "10px"
51
- }}>{"1"}</span>
52
- <span style={{
53
- height: "38px",
54
- width: "38px",
55
- border: "1px solid #FF8348",
56
- borderRadius: "38px",
57
- backgroundColor: "#FFF",
58
- display: "flex",
59
- alignItems: "center",
60
- justifyContent: "center"
61
- }}>{"2"}</span>
42
+ <span
43
+ style={{
44
+ height: '38px',
45
+ width: '38px',
46
+ border: '1px solid #FF8348',
47
+ borderRadius: '38px',
48
+ backgroundColor: '#FFF',
49
+ display: 'flex',
50
+ alignItems: 'center',
51
+ justifyContent: 'center',
52
+ marginRight: '10px',
53
+ }}
54
+ >
55
+ {'1'}
56
+ </span>
57
+ <span
58
+ style={{
59
+ height: '38px',
60
+ width: '38px',
61
+ border: '1px solid #FF8348',
62
+ borderRadius: '38px',
63
+ backgroundColor: '#FFF',
64
+ display: 'flex',
65
+ alignItems: 'center',
66
+ justifyContent: 'center',
67
+ }}
68
+ >
69
+ {'2'}
70
+ </span>
62
71
  </ChatMessageBalloon>
63
72
 
64
- <ChatMessageBalloon
65
- onMouseEnter={ () => console.log('onMouseEnter') }
73
+ <ChatMessageBalloon
74
+ onMouseEnter={() => console.log('onMouseEnter')}
66
75
  bottomChildren={<div>Bottom children</div>}
67
- label="Agente Marcos"
76
+ label="Agente Marcos"
68
77
  description={
69
78
  <Typography
70
79
  variant="body1"
71
80
  style={{
72
- fontSize: "16px"
81
+ fontSize: '16px',
73
82
  }}
74
83
  >
75
- {"Olá, tudo bem? Meu nome é Ana e falo em nome do banco Bradesco. Eu gostaria de falar com Maria Conceição da Silva"}
84
+ {
85
+ 'Olá, tudo bem? Meu nome é Ana e falo em nome do banco Bradesco. Eu gostaria de falar com Maria Conceição da Silva'
86
+ }
76
87
  </Typography>
77
88
  }
78
- date={"10:23"}
89
+ date={'10:23'}
79
90
  direction="O"
80
91
  attachments={[]}
81
92
  >
82
- <span style={{
83
- height: "38px",
84
- width: "38px",
85
- border: "1px solid #FF8348",
86
- borderRadius: "38px",
87
- backgroundColor: "#FFF",
88
- display: "flex",
89
- alignItems: "center",
90
- justifyContent: "center",
91
- marginRight: "10px"
92
- }}>{"1"}</span>
93
- <span style={{
94
- height: "38px",
95
- width: "38px",
96
- border: "1px solid #FF8348",
97
- borderRadius: "38px",
98
- backgroundColor: "#FFF",
99
- display: "flex",
100
- alignItems: "center",
101
- justifyContent: "center"
102
- }}>{"2"}</span>
93
+ <span
94
+ style={{
95
+ height: '38px',
96
+ width: '38px',
97
+ border: '1px solid #FF8348',
98
+ borderRadius: '38px',
99
+ backgroundColor: '#FFF',
100
+ display: 'flex',
101
+ alignItems: 'center',
102
+ justifyContent: 'center',
103
+ marginRight: '10px',
104
+ }}
105
+ >
106
+ {'1'}
107
+ </span>
108
+ <span
109
+ style={{
110
+ height: '38px',
111
+ width: '38px',
112
+ border: '1px solid #FF8348',
113
+ borderRadius: '38px',
114
+ backgroundColor: '#FFF',
115
+ display: 'flex',
116
+ alignItems: 'center',
117
+ justifyContent: 'center',
118
+ }}
119
+ >
120
+ {'2'}
121
+ </span>
103
122
  </ChatMessageBalloon>
104
123
  </div>
105
-
106
-
107
- );
108
- };
124
+ )
125
+ }
@@ -1,8 +1,8 @@
1
- import React from 'react';
2
- import { CheckBox } from '../components/CheckBox';
3
- import type { Meta, StoryObj } from '@storybook/react';
4
- import { FormControlLabel } from '@mui/material';
5
- import { pink } from '@mui/material/colors';
1
+ import React from 'react'
2
+ import { CheckBox } from '../components/CheckBox'
3
+ import type { Meta, StoryObj } from '@storybook/react'
4
+ import { FormControlLabel } from '@mui/material'
5
+ import { pink } from '@mui/material/colors'
6
6
 
7
7
  const meta = {
8
8
  title: 'Form/CheckBox',
@@ -12,23 +12,23 @@ const meta = {
12
12
  },
13
13
  tags: ['autodocs'],
14
14
  argTypes: {},
15
- } satisfies Meta<typeof CheckBox>;
15
+ } satisfies Meta<typeof CheckBox>
16
16
 
17
- export default meta;
17
+ export default meta
18
18
 
19
- type Story = StoryObj<typeof meta>;
19
+ type Story = StoryObj<typeof meta>
20
20
 
21
21
  const defaultArgs = {
22
22
  disabled: false,
23
- };
23
+ }
24
24
 
25
25
  export const Playground: Story = {
26
26
  args: {
27
27
  color: 'primary',
28
28
  },
29
- };
29
+ }
30
30
 
31
- const label = { inputProps: { 'aria-label': 'Checkbox demo' } };
31
+ const label = { inputProps: { 'aria-label': 'Checkbox demo' } }
32
32
 
33
33
  export const CheckboxVariant = () => {
34
34
  return (
@@ -38,9 +38,9 @@ export const CheckboxVariant = () => {
38
38
  <CheckBox {...label} disabled />
39
39
  <CheckBox {...label} disabled checked />
40
40
  </>
41
- );
42
- };
43
- CheckboxVariant.storyName = 'CheckBox Variants';
41
+ )
42
+ }
43
+ CheckboxVariant.storyName = 'CheckBox Variants'
44
44
 
45
45
  export const CheckboxProps = () => {
46
46
  return (
@@ -50,9 +50,9 @@ export const CheckboxProps = () => {
50
50
  <FormControlLabel required control={<CheckBox />} label="Required" />
51
51
  <FormControlLabel disabled control={<CheckBox />} label="Disabled" />
52
52
  </>
53
- );
54
- };
55
- CheckboxProps.storyName = 'Variants and Label';
53
+ )
54
+ }
55
+ CheckboxProps.storyName = 'Variants and Label'
56
56
 
57
57
  export const CheckboxColors = () => {
58
58
  return (
@@ -72,9 +72,9 @@ export const CheckboxColors = () => {
72
72
  }}
73
73
  />
74
74
  </>
75
- );
76
- };
77
- CheckboxColors.storyName = 'CheckBox Colors';
75
+ )
76
+ }
77
+ CheckboxColors.storyName = 'CheckBox Colors'
78
78
 
79
79
  export const CheckboxSizes = () => {
80
80
  return (
@@ -83,6 +83,6 @@ export const CheckboxSizes = () => {
83
83
  <FormControlLabel control={<CheckBox />} label="CheckBox Default" />
84
84
  <FormControlLabel control={<CheckBox size="medium" />} label="CheckBox Medium" />
85
85
  </>
86
- );
87
- };
88
- CheckboxSizes.storyName = 'CheckBox Sizes';
86
+ )
87
+ }
88
+ CheckboxSizes.storyName = 'CheckBox Sizes'
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import DateInput from '../components/DateInput';
1
+ import React from 'react'
2
+ import DateInput from '../components/DateInput'
3
3
 
4
4
  export default {
5
5
  title: 'Form/DateInput',
@@ -8,45 +8,44 @@ export default {
8
8
  parameters: {
9
9
  layout: 'centered',
10
10
  },
11
- argTypes: {
11
+ argTypes: {
12
12
  dateFormat: {
13
13
  description: "Adicione uma formato de data: 'dd/MM/yyyy' ou 'dd/MM/yyyy HH:mm'.",
14
- options: ['dd/MM/yyyy', 'dd/MM/yyyy HH:mm']
14
+ options: ['dd/MM/yyyy', 'dd/MM/yyyy HH:mm'],
15
15
  },
16
16
  className: {
17
17
  description: 'Adicione uma classe.',
18
18
  },
19
19
  label: {
20
- description: 'Adicione uma label.'
20
+ description: 'Adicione uma label.',
21
21
  },
22
22
  dateSelected: {
23
- description: 'Adicione uma data inicial.'
23
+ description: 'Adicione uma data inicial.',
24
24
  },
25
25
  onChange: {
26
- description: 'Função para capturar o valor quando alterado.'
26
+ description: 'Função para capturar o valor quando alterado.',
27
27
  },
28
28
  showTimeSelect: {
29
- description: 'Adiciona horario na seleção da data.'
29
+ description: 'Adiciona horario na seleção da data.',
30
30
  },
31
31
  timeFormat: {
32
- description: "Adicione uma formato ao horario na seleção da data."
32
+ description: 'Adicione uma formato ao horario na seleção da data.',
33
33
  },
34
34
  disabled: {
35
- description: 'Habilita ou desabilita.'
36
- }
37
- }
38
-
35
+ description: 'Habilita ou desabilita.',
36
+ },
37
+ },
39
38
  }
40
39
 
41
40
  export const Default = (args) => <DateInput {...args} />
42
41
 
43
42
  Default.args = {
44
- dateFormat: "dd/MM/yyyy HH:mm",
43
+ dateFormat: 'dd/MM/yyyy HH:mm',
45
44
  className: '',
46
45
  label: 'Data:',
47
46
  dateSelected: new Date(),
48
47
  onChange: '',
49
48
  showTimeSelect: false,
50
49
  timeFormat: 'HH:mm',
51
- disabled: false
52
- }
50
+ disabled: false,
51
+ }
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { DatePicker } from '../components';
3
- import type { Meta } from '@storybook/react';
1
+ import React from 'react'
2
+ import { DatePicker } from '../components'
3
+ import type { Meta } from '@storybook/react'
4
4
 
5
5
  const meta = {
6
6
  title: 'Form/DatePicker',
@@ -10,12 +10,12 @@ const meta = {
10
10
  },
11
11
  tags: ['autodocs'],
12
12
  argTypes: {},
13
- } satisfies Meta<typeof DatePicker>;
13
+ } satisfies Meta<typeof DatePicker>
14
14
 
15
- export default meta;
15
+ export default meta
16
16
 
17
- export const BasicDatePicker = () => <DatePicker sx={{ minWidth: 275 }} label="DatePicker" />;
18
- BasicDatePicker.storyName = 'DatePicker Basic';
17
+ export const BasicDatePicker = () => <DatePicker sx={{ minWidth: 275 }} label="DatePicker" />
18
+ BasicDatePicker.storyName = 'DatePicker Basic'
19
19
 
20
20
  export const DatePickerVariants = () => (
21
21
  <>
@@ -29,9 +29,9 @@ export const DatePickerVariants = () => (
29
29
  <DatePicker sx={{ minWidth: 275 }} label="DatePicker Desktop" variant="desktop" />
30
30
  </div>
31
31
  </>
32
- );
32
+ )
33
33
 
34
- DatePickerVariants.storyName = 'DatePicker Variants';
34
+ DatePickerVariants.storyName = 'DatePicker Variants'
35
35
 
36
36
  export const DatePickerLanguage = () => (
37
37
  <>
@@ -39,12 +39,17 @@ export const DatePickerLanguage = () => (
39
39
  <DatePicker sx={{ minWidth: 275 }} label="DatePicker Brazil" language="pt-br" />
40
40
  </div>
41
41
  <div style={{ width: '480px', marginBottom: 30 }}>
42
- <DatePicker sx={{ minWidth: 275 }} label="DatePicker English" language="en" format="YYYY-MM-DD" />
42
+ <DatePicker
43
+ sx={{ minWidth: 275 }}
44
+ label="DatePicker English"
45
+ language="en"
46
+ format="YYYY-MM-DD"
47
+ />
43
48
  </div>
44
49
  <div style={{ width: '480px', marginBottom: 30 }}>
45
50
  <DatePicker sx={{ minWidth: 275 }} label="DatePicker Spain" language="es" />
46
51
  </div>
47
52
  </>
48
- );
53
+ )
49
54
 
50
- DatePickerLanguage.storyName = 'DatePicker Languages';
55
+ DatePickerLanguage.storyName = 'DatePicker Languages'
@@ -1,8 +1,8 @@
1
- import React from 'react';
1
+ import React from 'react'
2
2
 
3
- import type { Meta, StoryObj } from '@storybook/react';
4
- import { Button, DropDown } from '../components';
5
- import { MenuItem } from '@mui/material';
3
+ import type { Meta, StoryObj } from '@storybook/react'
4
+ import { Button, DropDown } from '../components'
5
+ import { MenuItem } from '@mui/material'
6
6
 
7
7
  const meta = {
8
8
  title: 'Layout/DropDown',
@@ -12,23 +12,23 @@ const meta = {
12
12
  },
13
13
  tags: ['autodocs'],
14
14
  argTypes: {},
15
- } satisfies Meta<typeof DropDown>;
15
+ } satisfies Meta<typeof DropDown>
16
16
 
17
- export default meta;
17
+ export default meta
18
18
 
19
- type Story = StoryObj<typeof meta>;
19
+ type Story = StoryObj<typeof meta>
20
20
 
21
21
  export const DropDownlBasic = () => {
22
- const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);
23
- const open = Boolean(anchorEl);
22
+ const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null)
23
+ const open = Boolean(anchorEl)
24
24
 
25
25
  const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {
26
- setAnchorEl(event.currentTarget);
27
- };
26
+ setAnchorEl(event.currentTarget)
27
+ }
28
28
 
29
29
  const handleClose = () => {
30
- setAnchorEl(null);
31
- };
30
+ setAnchorEl(null)
31
+ }
32
32
 
33
33
  return (
34
34
  <>
@@ -51,7 +51,7 @@ export const DropDownlBasic = () => {
51
51
  </DropDown>
52
52
  )}
53
53
  </>
54
- );
55
- };
54
+ )
55
+ }
56
56
 
57
- DropDownlBasic.storyName = 'DropDown Basic';
57
+ DropDownlBasic.storyName = 'DropDown Basic'
@@ -1,11 +1,19 @@
1
- import React from 'react';
2
- import { IconButton, Icons } from '../components';
3
- import type { Meta, StoryObj } from '@storybook/react';
4
- import { ButtonVariant, SizeVariant, ColorVariant } from '../types';
1
+ import React from 'react'
2
+ import { IconButton, Icons } from '../components'
3
+ import type { Meta, StoryObj } from '@storybook/react'
4
+ import { ButtonVariant, SizeVariant, ColorVariant } from '../types'
5
5
 
6
- const sizes: SizeVariant[] = ['small', 'medium', 'large'];
7
- const variants: ButtonVariant[] = ['text', 'outlined', 'contained'];
8
- const colors: ColorVariant[] = ['inherit', 'primary', 'secondary', 'success', 'error', 'info', 'warning'];
6
+ const sizes: SizeVariant[] = ['small', 'medium', 'large']
7
+ const variants: ButtonVariant[] = ['text', 'outlined', 'contained']
8
+ const colors: ColorVariant[] = [
9
+ 'inherit',
10
+ 'primary',
11
+ 'secondary',
12
+ 'success',
13
+ 'error',
14
+ 'info',
15
+ 'warning',
16
+ ]
9
17
 
10
18
  const meta = {
11
19
  title: 'Layout/IconButton',
@@ -15,15 +23,15 @@ const meta = {
15
23
  },
16
24
  tags: ['autodocs'],
17
25
  argTypes: {},
18
- } satisfies Meta<typeof IconButton>;
26
+ } satisfies Meta<typeof IconButton>
19
27
 
20
- export default meta;
28
+ export default meta
21
29
 
22
- type Story = StoryObj<typeof meta>;
30
+ type Story = StoryObj<typeof meta>
23
31
 
24
32
  const defaultArgs = {
25
33
  color: 'primary',
26
- };
34
+ }
27
35
 
28
36
  export const Playground: Story = {
29
37
  args: {
@@ -32,7 +40,7 @@ export const Playground: Story = {
32
40
  color: 'primary',
33
41
  variant: 'text',
34
42
  },
35
- };
43
+ }
36
44
 
37
45
  export const IconButtonSizes = () => (
38
46
  <>
@@ -42,21 +50,31 @@ export const IconButtonSizes = () => (
42
50
  </IconButton>
43
51
  ))}
44
52
  </>
45
- );
53
+ )
46
54
 
47
- IconButtonSizes.storyName = 'IconButton Sizes';
55
+ IconButtonSizes.storyName = 'IconButton Sizes'
48
56
 
49
57
  export const IconButtonVariants = () => (
50
58
  <>
51
59
  {variants.map((variant, key) => (
52
- <IconButton key={key} size="medium" variant={variant} color="primary" sx={{ marginRight: '5px' }}>
53
- <Icons icon="faceHappy" color={variant === 'contained' ? 'white' : 'primary'} scale="medium" />
60
+ <IconButton
61
+ key={key}
62
+ size="medium"
63
+ variant={variant}
64
+ color="primary"
65
+ sx={{ marginRight: '5px' }}
66
+ >
67
+ <Icons
68
+ icon="faceHappy"
69
+ color={variant === 'contained' ? 'white' : 'primary'}
70
+ scale="medium"
71
+ />
54
72
  </IconButton>
55
73
  ))}
56
74
  </>
57
- );
75
+ )
58
76
 
59
- IconButtonVariants.storyName = 'IconButton Variants';
77
+ IconButtonVariants.storyName = 'IconButton Variants'
60
78
 
61
79
  export const IconButtonColors = () => (
62
80
  <>
@@ -67,12 +85,18 @@ export const IconButtonColors = () => (
67
85
  ))}
68
86
  <div>
69
87
  {colors.map((color, key) => (
70
- <IconButton key={key} size="medium" variant="contained" color={color} sx={{ margin: '5px' }}>
88
+ <IconButton
89
+ key={key}
90
+ size="medium"
91
+ variant="contained"
92
+ color={color}
93
+ sx={{ margin: '5px' }}
94
+ >
71
95
  <Icons icon="user" color="white" scale="medium" />
72
96
  </IconButton>
73
97
  ))}
74
98
  </div>
75
99
  </>
76
- );
100
+ )
77
101
 
78
- IconButtonColors.storyName = 'IconButton Colors';
102
+ IconButtonColors.storyName = 'IconButton Colors'