norma-library 0.6.85 → 0.6.87
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/.storybook/main.ts +7 -0
- package/dist/esm/components/Box/interfaces.d.ts +1 -0
- package/dist/esm/components/Breadcrumb/index.d.ts +2 -2
- package/dist/esm/components/Breadcrumb/index.js +13 -9
- package/dist/esm/components/Breadcrumb/index.js.map +1 -1
- package/dist/esm/components/Breadcrumb/interface.d.ts +11 -6
- package/dist/esm/components/Breadcrumb/styles.d.ts +3 -3
- package/dist/esm/components/Breadcrumb/styles.js +3 -3
- package/dist/esm/components/Breadcrumb/styles.js.map +1 -1
- package/dist/esm/components/Icons.js +6 -7
- package/dist/esm/components/Icons.js.map +1 -1
- package/dist/esm/components/ProductCard/ProductCard.js +13 -11
- package/dist/esm/components/ProductCard/ProductCard.js.map +1 -1
- package/dist/esm/components/ProductCard/ProductCard.style.js +2 -2
- package/dist/esm/components/ProductCard/ProductCard.style.js.map +1 -1
- package/dist/esm/components/ServiceCard/ServiceCard.js +6 -6
- package/dist/esm/components/ServiceCard/ServiceCard.js.map +1 -1
- package/dist/esm/components/ServiceCard/ServiceCard.style.js +1 -1
- package/dist/esm/components/ServiceCard/ServiceCard.style.js.map +1 -1
- package/dist/esm/components/Svgs.d.ts +12 -0
- package/dist/esm/components/Svgs.js +36 -0
- package/dist/esm/components/Svgs.js.map +1 -1
- package/dist/esm/components/Typography/Text/interfaces.d.ts +1 -0
- package/dist/esm/components/Typography/Title/interfaces.d.ts +1 -0
- package/dist/esm/hooks/useClickOutside.d.ts +1 -1
- package/dist/esm/hooks/useClickOutside.js.map +1 -1
- package/dist/esm/interfaces/Icons.d.ts +4 -3
- package/dist/esm/interfaces/ProductCard.d.ts +15 -5
- package/dist/esm/interfaces/ServiceCard.d.ts +12 -4
- package/dist/esm/types/index.d.ts +3 -3
- package/dist/esm/types/index.js.map +1 -1
- package/package.json +24 -26
- package/src/components/Box/interfaces.ts +2 -0
- package/src/components/Breadcrumb/index.tsx +16 -11
- package/src/components/Breadcrumb/interface.ts +12 -6
- package/src/components/Breadcrumb/styles.tsx +10 -11
- package/src/components/Icons.tsx +12 -8
- package/src/components/ProductCard/ProductCard.style.ts +5 -2
- package/src/components/ProductCard/ProductCard.tsx +27 -27
- package/src/components/ServiceCard/ServiceCard.style.ts +0 -1
- package/src/components/ServiceCard/ServiceCard.tsx +6 -6
- package/src/components/Svgs.tsx +224 -2
- package/src/components/Typography/Text/interfaces.ts +3 -1
- package/src/components/Typography/Title/interfaces.ts +2 -0
- package/src/hooks/useClickOutside.tsx +1 -1
- package/src/index.ts +0 -2
- package/src/interfaces/Icons.ts +4 -3
- package/src/interfaces/ProductCard.ts +29 -20
- package/src/interfaces/ServiceCard.ts +19 -10
- package/src/stories/Accordion.stories.tsx +19 -19
- package/src/stories/Avatar.stories.tsx +32 -28
- package/src/stories/Badge.stories.tsx +17 -15
- package/src/stories/Box.stories.tsx +16 -12
- package/src/stories/Breadcrumb.stories.tsx +62 -18
- package/src/stories/Button.stories.tsx +24 -16
- package/src/stories/Card.stories.tsx +21 -13
- package/src/stories/ChatMessage.stories.tsx +10 -9
- package/src/stories/ChatMessageBalloon.stories.tsx +83 -66
- package/src/stories/CheckBox.stories.tsx +23 -23
- package/src/stories/DateInput.stories.tsx +15 -16
- package/src/stories/DatePicker.stories.tsx +17 -12
- package/src/stories/DropDown.stories.tsx +16 -16
- package/src/stories/IconButton.stories.tsx +45 -21
- package/src/stories/Modal.stories.tsx +49 -49
- package/src/stories/ModalStatus.stories.tsx +34 -18
- package/src/stories/MultiSelectInput.stories.tsx +30 -28
- package/src/stories/NormaChatMessageBalloon.stories.tsx +119 -82
- package/src/stories/Paper.stories.tsx +14 -14
- package/src/stories/ProductCard.stories.tsx +78 -9
- package/src/stories/ProgressBar.stories.tsx +27 -19
- package/src/stories/RadioGroup.stories.tsx +28 -21
- package/src/stories/RangerSlider.stories.tsx +43 -35
- package/src/stories/Select.stories.tsx +61 -33
- package/src/stories/SelectInput.stories.tsx +27 -25
- package/src/stories/ServiceCard.stories.tsx +43 -15
- package/src/stories/Table.stories.tsx +211 -276
- package/src/stories/Tabs.stories.tsx +17 -17
- package/src/stories/Tag.stories.tsx +22 -14
- package/src/stories/Text.stories.tsx +9 -9
- package/src/stories/TextField.stories.tsx +116 -35
- package/src/stories/TextInput.stories.tsx +14 -15
- package/src/stories/TimeLine.stories.tsx +22 -20
- package/src/stories/TimePicker.stories.tsx +54 -30
- package/src/stories/Title.stories.tsx +9 -9
- package/src/stories/UncontrolledTable.stories.tsx +196 -66
- package/src/stories/UncontrolledTabs.stories.tsx +28 -23
- package/src/types/index.ts +4 -3
- package/src/components/IconifyIcon.tsx +0 -25
- package/src/stories/IconifyIcon.stories.tsx +0 -31
- /package/src/stories/{Colors.stories.mdx → Colors.mdx} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import Table from '../components/Table'
|
|
3
|
-
import { Button } from
|
|
4
|
-
import { format } from
|
|
3
|
+
import { Button } from '../components/Button'
|
|
4
|
+
import { format } from 'date-fns'
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
|
-
title:
|
|
7
|
+
title: 'Layout/Table',
|
|
8
8
|
component: Table,
|
|
9
9
|
tags: ['autodocs'],
|
|
10
10
|
parameters: {
|
|
@@ -12,10 +12,10 @@ export default {
|
|
|
12
12
|
backgrounds: {
|
|
13
13
|
default: 'gray',
|
|
14
14
|
values: [
|
|
15
|
-
{
|
|
16
|
-
name: 'gray',
|
|
17
|
-
value: '#f8f8f8'
|
|
18
|
-
}
|
|
15
|
+
{
|
|
16
|
+
name: 'gray',
|
|
17
|
+
value: '#f8f8f8',
|
|
18
|
+
},
|
|
19
19
|
],
|
|
20
20
|
},
|
|
21
21
|
},
|
|
@@ -24,277 +24,212 @@ export default {
|
|
|
24
24
|
|
|
25
25
|
const data = [
|
|
26
26
|
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
onClick={() => console.log('click')}
|
|
41
|
-
>
|
|
42
|
-
Editar
|
|
43
|
-
</Button>
|
|
44
|
-
)
|
|
27
|
+
date: format(new Date('8-14-2023 21:29'), 'dd/MM/yyyy'),
|
|
28
|
+
duration: 60,
|
|
29
|
+
campaign: 'Campaign 1',
|
|
30
|
+
agent: 'Maggie Leach',
|
|
31
|
+
dnis: 'dnis',
|
|
32
|
+
disposition: 'Disposition 1',
|
|
33
|
+
origin: 'origin',
|
|
34
|
+
id: '1',
|
|
35
|
+
action: (
|
|
36
|
+
<Button color="primary" disableElevation variant="text" onClick={() => console.log('click')}>
|
|
37
|
+
Editar
|
|
38
|
+
</Button>
|
|
39
|
+
),
|
|
45
40
|
},
|
|
46
41
|
{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
onClick={() => console.log('click')}
|
|
62
|
-
>
|
|
63
|
-
Editar
|
|
64
|
-
</Button>
|
|
65
|
-
)
|
|
42
|
+
date: format(new Date('8-13-2023 21:29'), 'dd/MM/yyyy'),
|
|
43
|
+
duration: 60,
|
|
44
|
+
campaign: 'Campaign 2',
|
|
45
|
+
agent: 'Christina Harris',
|
|
46
|
+
ani: 'ani',
|
|
47
|
+
dnis: 'dnis',
|
|
48
|
+
disposition: 'Disposition 2',
|
|
49
|
+
origin: 'origin',
|
|
50
|
+
id: '2',
|
|
51
|
+
action: (
|
|
52
|
+
<Button color="primary" disableElevation variant="text" onClick={() => console.log('click')}>
|
|
53
|
+
Editar
|
|
54
|
+
</Button>
|
|
55
|
+
),
|
|
66
56
|
},
|
|
67
57
|
{
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
onClick={() => console.log('click')}
|
|
83
|
-
>
|
|
84
|
-
Editar
|
|
85
|
-
</Button>
|
|
86
|
-
)
|
|
58
|
+
date: format(new Date('8-12-2023 21:29'), 'dd/MM/yyyy'),
|
|
59
|
+
duration: 60,
|
|
60
|
+
campaign: 'Campaign 3',
|
|
61
|
+
agent: 'Alexia Crawford',
|
|
62
|
+
ani: 'ani',
|
|
63
|
+
dnis: 'dnis',
|
|
64
|
+
disposition: 'Disposition 3',
|
|
65
|
+
origin: 'origin',
|
|
66
|
+
id: '3',
|
|
67
|
+
action: (
|
|
68
|
+
<Button color="primary" disableElevation variant="text" onClick={() => console.log('click')}>
|
|
69
|
+
Editar
|
|
70
|
+
</Button>
|
|
71
|
+
),
|
|
87
72
|
},
|
|
88
73
|
{
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
onClick={() => console.log('click')}
|
|
104
|
-
>
|
|
105
|
-
Editar
|
|
106
|
-
</Button>
|
|
107
|
-
)
|
|
74
|
+
date: format(new Date('8-11-2023 21:29'), 'dd/MM/yyyy'),
|
|
75
|
+
duration: 60,
|
|
76
|
+
campaign: 'Campaign 4',
|
|
77
|
+
agent: 'Robyn Phillips',
|
|
78
|
+
ani: 'ani',
|
|
79
|
+
dnis: 'dnis',
|
|
80
|
+
disposition: 'Disposition 4',
|
|
81
|
+
origin: 'origin',
|
|
82
|
+
id: '4',
|
|
83
|
+
action: (
|
|
84
|
+
<Button color="primary" disableElevation variant="text" onClick={() => console.log('click')}>
|
|
85
|
+
Editar
|
|
86
|
+
</Button>
|
|
87
|
+
),
|
|
108
88
|
},
|
|
109
89
|
{
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
onClick={() => console.log('click')}
|
|
125
|
-
>
|
|
126
|
-
Editar
|
|
127
|
-
</Button>
|
|
128
|
-
)
|
|
90
|
+
date: format(new Date('8-10-2023 21:29'), 'dd/MM/yyyy'),
|
|
91
|
+
duration: 60,
|
|
92
|
+
campaign: 'Campaign 5',
|
|
93
|
+
agent: 'Bruce Robinson',
|
|
94
|
+
ani: 'ani',
|
|
95
|
+
dnis: 'dnis',
|
|
96
|
+
disposition: 'Disposition 5',
|
|
97
|
+
origin: 'origin',
|
|
98
|
+
id: '5',
|
|
99
|
+
action: (
|
|
100
|
+
<Button color="primary" disableElevation variant="text" onClick={() => console.log('click')}>
|
|
101
|
+
Editar
|
|
102
|
+
</Button>
|
|
103
|
+
),
|
|
129
104
|
},
|
|
130
105
|
{
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
onClick={() => console.log('click')}
|
|
146
|
-
>
|
|
147
|
-
Editar
|
|
148
|
-
</Button>
|
|
149
|
-
)
|
|
106
|
+
date: format(new Date('8-9-2023 21:29'), 'dd/MM/yyyy'),
|
|
107
|
+
duration: 60,
|
|
108
|
+
campaign: 'Campaign 6',
|
|
109
|
+
agent: 'Sophia Fletcher',
|
|
110
|
+
ani: 'ani',
|
|
111
|
+
dnis: 'dnis',
|
|
112
|
+
disposition: 'Disposition 6',
|
|
113
|
+
origin: 'origin',
|
|
114
|
+
id: '6',
|
|
115
|
+
action: (
|
|
116
|
+
<Button color="primary" disableElevation variant="text" onClick={() => console.log('click')}>
|
|
117
|
+
Editar
|
|
118
|
+
</Button>
|
|
119
|
+
),
|
|
150
120
|
},
|
|
151
121
|
{
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
onClick={() => console.log('click')}
|
|
167
|
-
>
|
|
168
|
-
Editar
|
|
169
|
-
</Button>
|
|
170
|
-
)
|
|
122
|
+
date: format(new Date('8-8-2023 21:29'), 'dd/MM/yyyy'),
|
|
123
|
+
duration: 60,
|
|
124
|
+
campaign: 'Campaign 7',
|
|
125
|
+
agent: 'Blanca Roberts',
|
|
126
|
+
ani: 'ani',
|
|
127
|
+
dnis: 'dnis',
|
|
128
|
+
disposition: 'Disposition 7',
|
|
129
|
+
origin: 'origin',
|
|
130
|
+
id: '7',
|
|
131
|
+
action: (
|
|
132
|
+
<Button color="primary" disableElevation variant="text" onClick={() => console.log('click')}>
|
|
133
|
+
Editar
|
|
134
|
+
</Button>
|
|
135
|
+
),
|
|
171
136
|
},
|
|
172
137
|
{
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
onClick={() => console.log('click')}
|
|
188
|
-
>
|
|
189
|
-
Editar
|
|
190
|
-
</Button>
|
|
191
|
-
)
|
|
138
|
+
date: format(new Date('8-7-2023 21:29'), 'dd/MM/yyyy'),
|
|
139
|
+
duration: 60,
|
|
140
|
+
campaign: 'Campaign 8',
|
|
141
|
+
agent: 'Peter Warburton',
|
|
142
|
+
ani: 'ani',
|
|
143
|
+
dnis: 'dnis',
|
|
144
|
+
disposition: 'Disposition 8',
|
|
145
|
+
origin: 'origin',
|
|
146
|
+
id: '8',
|
|
147
|
+
action: (
|
|
148
|
+
<Button color="primary" disableElevation variant="text" onClick={() => console.log('click')}>
|
|
149
|
+
Editar
|
|
150
|
+
</Button>
|
|
151
|
+
),
|
|
192
152
|
},
|
|
193
153
|
{
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
<Button
|
|
205
|
-
color="primary"
|
|
206
|
-
disableElevation
|
|
207
|
-
variant="text"
|
|
208
|
-
onClick={() => console.log('click')}
|
|
209
|
-
>
|
|
154
|
+
date: format(new Date('8-7-2023 21:29'), 'dd/MM/yyyy'),
|
|
155
|
+
duration: 60,
|
|
156
|
+
campaign: 'Campaign 8',
|
|
157
|
+
agent: 'Peter Warburton',
|
|
158
|
+
ani: 'ani',
|
|
159
|
+
dnis: 'dnis',
|
|
160
|
+
disposition: 'Disposition 8',
|
|
161
|
+
origin: 'origin',
|
|
162
|
+
id: '8',
|
|
163
|
+
action: (
|
|
164
|
+
<Button color="primary" disableElevation variant="text" onClick={() => console.log('click')}>
|
|
210
165
|
Editar
|
|
211
166
|
</Button>
|
|
212
|
-
)
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
"date": format(new Date('8-7-2023 21:29'), "dd/MM/yyyy"),
|
|
279
|
-
"duration": 60,
|
|
280
|
-
"campaign": "Campaign 8",
|
|
281
|
-
"agent": "Peter Warburton",
|
|
282
|
-
"ani": "ani",
|
|
283
|
-
"dnis": "dnis",
|
|
284
|
-
"disposition": "Disposition 8",
|
|
285
|
-
"origin": "origin",
|
|
286
|
-
"id": "8",
|
|
287
|
-
"action": (
|
|
288
|
-
<Button
|
|
289
|
-
color="primary"
|
|
290
|
-
disableElevation
|
|
291
|
-
variant="text"
|
|
292
|
-
onClick={() => console.log('click')}
|
|
293
|
-
>
|
|
294
|
-
Editar
|
|
295
|
-
</Button>
|
|
296
|
-
)
|
|
297
|
-
}
|
|
167
|
+
),
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
date: format(new Date('8-7-2023 21:29'), 'dd/MM/yyyy'),
|
|
171
|
+
duration: 60,
|
|
172
|
+
campaign: 'Campaign 8',
|
|
173
|
+
agent: 'Peter Warburton',
|
|
174
|
+
ani: 'ani',
|
|
175
|
+
dnis: 'dnis',
|
|
176
|
+
disposition: 'Disposition 8',
|
|
177
|
+
origin: 'origin',
|
|
178
|
+
id: '8',
|
|
179
|
+
action: (
|
|
180
|
+
<Button color="primary" disableElevation variant="text" onClick={() => console.log('click')}>
|
|
181
|
+
Editar
|
|
182
|
+
</Button>
|
|
183
|
+
),
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
date: format(new Date('8-7-2023 21:29'), 'dd/MM/yyyy'),
|
|
187
|
+
duration: 60,
|
|
188
|
+
campaign: 'Campaign 8',
|
|
189
|
+
agent: 'Peter Warburton',
|
|
190
|
+
ani: 'ani',
|
|
191
|
+
dnis: 'dnis',
|
|
192
|
+
disposition: 'Disposition 8',
|
|
193
|
+
origin: 'origin',
|
|
194
|
+
id: '8',
|
|
195
|
+
action: (
|
|
196
|
+
<Button color="primary" disableElevation variant="text" onClick={() => console.log('click')}>
|
|
197
|
+
Editar
|
|
198
|
+
</Button>
|
|
199
|
+
),
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
date: format(new Date('8-7-2023 21:29'), 'dd/MM/yyyy'),
|
|
203
|
+
duration: 60,
|
|
204
|
+
campaign: 'Campaign 8',
|
|
205
|
+
agent: 'Peter Warburton',
|
|
206
|
+
ani: 'ani',
|
|
207
|
+
dnis: 'dnis',
|
|
208
|
+
disposition: 'Disposition 8',
|
|
209
|
+
origin: 'origin',
|
|
210
|
+
id: '8',
|
|
211
|
+
action: (
|
|
212
|
+
<Button color="primary" disableElevation variant="text" onClick={() => console.log('click')}>
|
|
213
|
+
Editar
|
|
214
|
+
</Button>
|
|
215
|
+
),
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
date: format(new Date('8-7-2023 21:29'), 'dd/MM/yyyy'),
|
|
219
|
+
duration: 60,
|
|
220
|
+
campaign: 'Campaign 8',
|
|
221
|
+
agent: 'Peter Warburton',
|
|
222
|
+
ani: 'ani',
|
|
223
|
+
dnis: 'dnis',
|
|
224
|
+
disposition: 'Disposition 8',
|
|
225
|
+
origin: 'origin',
|
|
226
|
+
id: '8',
|
|
227
|
+
action: (
|
|
228
|
+
<Button color="primary" disableElevation variant="text" onClick={() => console.log('click')}>
|
|
229
|
+
Editar
|
|
230
|
+
</Button>
|
|
231
|
+
),
|
|
232
|
+
},
|
|
298
233
|
]
|
|
299
234
|
|
|
300
235
|
const columns = [
|
|
@@ -303,71 +238,71 @@ const columns = [
|
|
|
303
238
|
accessorKey: 'date',
|
|
304
239
|
type: 'date',
|
|
305
240
|
enableColumnFilter: true,
|
|
306
|
-
filterFn: 'customFilterText'
|
|
241
|
+
filterFn: 'customFilterText',
|
|
307
242
|
},
|
|
308
243
|
{
|
|
309
244
|
header: 'duration',
|
|
310
245
|
accessorKey: 'duration',
|
|
311
246
|
type: 'number',
|
|
312
247
|
enableColumnFilter: true,
|
|
313
|
-
filterFn: 'customFilterText'
|
|
248
|
+
filterFn: 'customFilterText',
|
|
314
249
|
},
|
|
315
250
|
{
|
|
316
251
|
header: 'campaign',
|
|
317
252
|
accessorKey: 'campaign',
|
|
318
253
|
type: 'string',
|
|
319
254
|
enableColumnFilter: true,
|
|
320
|
-
filterFn: 'customFilterText'
|
|
255
|
+
filterFn: 'customFilterText',
|
|
321
256
|
},
|
|
322
257
|
{
|
|
323
258
|
header: 'agent',
|
|
324
259
|
accessorKey: 'agent',
|
|
325
260
|
type: 'string',
|
|
326
261
|
enableColumnFilter: true,
|
|
327
|
-
filterFn: 'customFilterText'
|
|
262
|
+
filterFn: 'customFilterText',
|
|
328
263
|
},
|
|
329
264
|
{
|
|
330
265
|
header: 'disposition',
|
|
331
266
|
accessorKey: 'disposition',
|
|
332
267
|
type: 'string',
|
|
333
268
|
enableColumnFilter: true,
|
|
334
|
-
filterFn: 'customFilterText'
|
|
269
|
+
filterFn: 'customFilterText',
|
|
335
270
|
},
|
|
336
271
|
{
|
|
337
272
|
header: 'origin',
|
|
338
273
|
accessorKey: 'origin',
|
|
339
274
|
type: 'string',
|
|
340
275
|
enableColumnFilter: true,
|
|
341
|
-
filterFn: 'customFilterText'
|
|
276
|
+
filterFn: 'customFilterText',
|
|
342
277
|
},
|
|
343
278
|
{
|
|
344
279
|
header: 'ID',
|
|
345
280
|
accessorKey: 'id',
|
|
346
281
|
type: 'string',
|
|
347
282
|
enableColumnFilter: true,
|
|
348
|
-
filterFn: 'customFilterText'
|
|
283
|
+
filterFn: 'customFilterText',
|
|
349
284
|
},
|
|
350
285
|
{
|
|
351
286
|
header: 'action',
|
|
352
287
|
accessorKey: 'action',
|
|
353
288
|
type: 'action',
|
|
354
289
|
enableColumnFilter: false,
|
|
355
|
-
filterFn: 'customFilterText'
|
|
356
|
-
}
|
|
290
|
+
filterFn: 'customFilterText',
|
|
291
|
+
},
|
|
357
292
|
]
|
|
358
293
|
|
|
359
294
|
export const Default = (args) => (
|
|
360
|
-
<Table
|
|
361
|
-
data={data}
|
|
362
|
-
columns={columns}
|
|
363
|
-
showTotalResults
|
|
295
|
+
<Table
|
|
296
|
+
data={data}
|
|
297
|
+
columns={columns}
|
|
298
|
+
showTotalResults
|
|
364
299
|
showSettings
|
|
365
300
|
onClick={(value) => console.log('onClick line:', value)}
|
|
366
301
|
onMouseOver={(value) => console.log('onMouseOver line:', value)}
|
|
367
302
|
onMouseOut={(value) => console.log('onMouseOut line:', value)}
|
|
368
|
-
pagination={{pageIndex:0, pageSize: 10, totalPages: 2}}
|
|
369
|
-
{...args}
|
|
303
|
+
pagination={{ pageIndex: 0, pageSize: 10, totalPages: 2 }}
|
|
304
|
+
{...args}
|
|
370
305
|
/>
|
|
371
306
|
)
|
|
372
307
|
|
|
373
|
-
Default.args = {}
|
|
308
|
+
Default.args = {}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react'
|
|
1
|
+
import React from 'react'
|
|
2
2
|
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react'
|
|
4
|
-
import { Tabs } from '../components'
|
|
5
|
-
import { DataTabs } from '../types'
|
|
6
|
-
import { Typography } from '@mui/material'
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
4
|
+
import { Tabs } from '../components'
|
|
5
|
+
import { DataTabs } from '../types'
|
|
6
|
+
import { Typography } from '@mui/material'
|
|
7
7
|
|
|
8
8
|
const data: DataTabs[] = [
|
|
9
9
|
{
|
|
@@ -11,8 +11,8 @@ const data: DataTabs[] = [
|
|
|
11
11
|
id: 'panel-1',
|
|
12
12
|
children: (
|
|
13
13
|
<Typography>
|
|
14
|
-
Tab 1 - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus
|
|
15
|
-
blandit leo lobortis eget.
|
|
14
|
+
Tab 1 - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus
|
|
15
|
+
ex, sit amet blandit leo lobortis eget.
|
|
16
16
|
</Typography>
|
|
17
17
|
),
|
|
18
18
|
},
|
|
@@ -21,12 +21,12 @@ const data: DataTabs[] = [
|
|
|
21
21
|
id: 'panel-2',
|
|
22
22
|
children: (
|
|
23
23
|
<Typography>
|
|
24
|
-
Tab 2 - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus
|
|
25
|
-
blandit leo lobortis eget.
|
|
24
|
+
Tab 2 - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus
|
|
25
|
+
ex, sit amet blandit leo lobortis eget.
|
|
26
26
|
</Typography>
|
|
27
27
|
),
|
|
28
28
|
},
|
|
29
|
-
]
|
|
29
|
+
]
|
|
30
30
|
|
|
31
31
|
const meta = {
|
|
32
32
|
title: 'Display/Tabs',
|
|
@@ -38,24 +38,24 @@ const meta = {
|
|
|
38
38
|
argTypes: {
|
|
39
39
|
data: data,
|
|
40
40
|
},
|
|
41
|
-
} satisfies Meta<typeof Tabs
|
|
41
|
+
} satisfies Meta<typeof Tabs>
|
|
42
42
|
|
|
43
|
-
export default meta
|
|
43
|
+
export default meta
|
|
44
44
|
|
|
45
|
-
type Story = StoryObj<typeof meta
|
|
45
|
+
type Story = StoryObj<typeof meta>
|
|
46
46
|
|
|
47
47
|
export const Playground: Story = {
|
|
48
48
|
args: {
|
|
49
49
|
data: data,
|
|
50
50
|
},
|
|
51
|
-
}
|
|
51
|
+
}
|
|
52
52
|
|
|
53
53
|
export const TabsBasic = () => {
|
|
54
54
|
return (
|
|
55
55
|
<div style={{ width: '480px', marginBottom: 30 }}>
|
|
56
56
|
<Tabs data={data} onChange={(e, value) => console.log(e, value)} />
|
|
57
57
|
</div>
|
|
58
|
-
)
|
|
59
|
-
}
|
|
58
|
+
)
|
|
59
|
+
}
|
|
60
60
|
|
|
61
|
-
TabsBasic.storyName = 'Tabs Basic'
|
|
61
|
+
TabsBasic.storyName = 'Tabs Basic'
|