groovinads-ui 1.2.74 → 1.9.0

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 (90) hide show
  1. package/README.md +628 -236
  2. package/dist/index.es.js +2 -15
  3. package/dist/index.js +2 -15
  4. package/index.d.ts +364 -0
  5. package/package.json +87 -79
  6. package/.babelrc +0 -3
  7. package/.eslintignore +0 -2
  8. package/.eslintrc.cjs +0 -32
  9. package/.prettierignore +0 -9
  10. package/.prettierrc +0 -7
  11. package/.storybook/main.js +0 -19
  12. package/.storybook/preview-head.html +0 -6
  13. package/.storybook/preview.js +0 -13
  14. package/.yarn/releases/yarn-4.1.1.cjs +0 -893
  15. package/.yarnrc.yml +0 -3
  16. package/rollup.config.mjs +0 -42
  17. package/src/components/Button/Button.jsx +0 -78
  18. package/src/components/Button/index.js +0 -3
  19. package/src/components/Dropdowns/DropdownComponent.jsx +0 -135
  20. package/src/components/Dropdowns/DropdownFilter.jsx +0 -304
  21. package/src/components/Dropdowns/DropdownMultiSelect.jsx +0 -304
  22. package/src/components/Dropdowns/DropdownSimpleDatePicker.jsx +0 -175
  23. package/src/components/Dropdowns/DropdownsDatePicker/DropdownDatePicker.jsx +0 -313
  24. package/src/components/Dropdowns/DropdownsDatePicker/PeriodAndDetailDropdowns.tsx +0 -351
  25. package/src/components/Dropdowns/DropdownsDatePicker/index.js +0 -3
  26. package/src/components/Dropdowns/index.js +0 -7
  27. package/src/components/Inputs/Checkbox.jsx +0 -55
  28. package/src/components/Inputs/Input.jsx +0 -155
  29. package/src/components/Inputs/InputChip.jsx +0 -168
  30. package/src/components/Inputs/InputEmail.jsx +0 -175
  31. package/src/components/Inputs/Radio.jsx +0 -57
  32. package/src/components/Inputs/Switch.jsx +0 -70
  33. package/src/components/Inputs/Textarea.jsx +0 -68
  34. package/src/components/Inputs/index.js +0 -9
  35. package/src/components/Labels/Alert.jsx +0 -62
  36. package/src/components/Labels/Icon.jsx +0 -76
  37. package/src/components/Labels/LoginSource.jsx +0 -19
  38. package/src/components/Labels/PillComponent.jsx +0 -47
  39. package/src/components/Labels/Spinner.jsx +0 -35
  40. package/src/components/Labels/StatusIcon.jsx +0 -66
  41. package/src/components/Labels/index.js +0 -8
  42. package/src/components/Navigation/Dropdowns/DeckDropdown.jsx +0 -210
  43. package/src/components/Navigation/Dropdowns/DropdownClient.jsx +0 -171
  44. package/src/components/Navigation/Dropdowns/UserDropdown.jsx +0 -69
  45. package/src/components/Navigation/Dropdowns/index.js +0 -5
  46. package/src/components/Navigation/Navbar.jsx +0 -83
  47. package/src/components/Navigation/Sidebar.jsx +0 -201
  48. package/src/components/Navigation/Stepper.jsx +0 -22
  49. package/src/components/Navigation/Tabnav.jsx +0 -73
  50. package/src/components/Navigation/index.js +0 -6
  51. package/src/components/Toasts/Toast/ToastCardComponent.jsx +0 -47
  52. package/src/components/Toasts/ToastComponent.jsx +0 -45
  53. package/src/components/Toasts/ToastProgress.jsx +0 -118
  54. package/src/components/Toasts/index.js +0 -4
  55. package/src/components/index.js +0 -50
  56. package/src/hooks/index.js +0 -4
  57. package/src/hooks/useGetBaseDomain.jsx +0 -9
  58. package/src/hooks/useTextFormatter.jsx +0 -48
  59. package/src/index.js +0 -51
  60. package/src/services/components.services.js +0 -29
  61. package/src/services/helpers.js +0 -32
  62. package/src/services/index.jsx +0 -10
  63. package/src/services/url.path.js +0 -29
  64. package/src/stories/Alert.stories.jsx +0 -11
  65. package/src/stories/Button.stories.jsx +0 -20
  66. package/src/stories/Checkbox.stories.jsx +0 -17
  67. package/src/stories/DropdownComponent.stories.jsx +0 -89
  68. package/src/stories/DropdownDatePicker.stories.jsx +0 -69
  69. package/src/stories/DropdownFilter.stories.jsx +0 -60
  70. package/src/stories/DropdownMultiSelect.stories.jsx +0 -72
  71. package/src/stories/DropdownSimpleDatePicker.stories.jsx +0 -64
  72. package/src/stories/Icon.stories.jsx +0 -11
  73. package/src/stories/Input.stories.jsx +0 -20
  74. package/src/stories/InputChip.stories.jsx +0 -44
  75. package/src/stories/InputEmail.stories.jsx +0 -27
  76. package/src/stories/Layout.stories.jsx +0 -73
  77. package/src/stories/LoginSource.stories.jsx +0 -11
  78. package/src/stories/Navbar.stories.jsx +0 -24
  79. package/src/stories/PillComponent.stories.jsx +0 -22
  80. package/src/stories/Radio.stories.jsx +0 -18
  81. package/src/stories/Sidebar.stories.jsx +0 -169
  82. package/src/stories/Spinner.stories.jsx +0 -11
  83. package/src/stories/StatusIcon.stories.jsx +0 -11
  84. package/src/stories/Stepper.stories.jsx +0 -16
  85. package/src/stories/Switch.stories.jsx +0 -17
  86. package/src/stories/Tabnav.stories.jsx +0 -55
  87. package/src/stories/Textarea.stories.jsx +0 -20
  88. package/src/stories/ToastComponent.stories.jsx +0 -62
  89. package/src/stories/ToastProgress.stories.jsx +0 -11
  90. package/version.js +0 -8
@@ -1,60 +0,0 @@
1
- import React, { useState } from "react";
2
- import DropdownFilter from "../components/Dropdowns/DropdownFilter";
3
-
4
- export default {
5
- title: "Dropdown/DropdownFilter",
6
- component: DropdownFilter,
7
- };
8
-
9
- const Template = (args) => {
10
- const [show, setShow] = useState(false);
11
- const handleToggle = () => setShow((prevShow) => !prevShow);
12
- const [selectedValues, setSelectedValues] = useState([]);
13
- const [filters, setFilters] = useState([
14
- {
15
- title: "Filtro 1",
16
- values: [
17
- "Hola 1",
18
- "Item 2",
19
- "Item 3",
20
- "Item 4",
21
- "Item 5",
22
- "Item 6",
23
- "Item 7",
24
- "Item 8",
25
- "Item 9",
26
- "Item 10",
27
- ],
28
- },
29
- ]);
30
- const removeFilter = (index) => {
31
- const newFilters = filters.filter((filter, i) => i !== index);
32
- setFilters(newFilters);
33
- };
34
-
35
- return (
36
- <>
37
- <button onClick={() => setShow(false)}>Close</button>
38
- <button onClick={() => setShow(true)}>Open</button>
39
- <div >
40
- {filters.map((filter, index) => {
41
- return (
42
- <DropdownFilter
43
- {...args}
44
- key={index}
45
- title={filter.title}
46
- values={filter.values}
47
- onRemoveFilter={() => removeFilter(index)}
48
- valuesSelected={selectedValues}
49
- setValuesSelected={setSelectedValues}
50
- show={show}
51
- onToggle={handleToggle}
52
- ></DropdownFilter>
53
- );
54
- })}
55
- </div>
56
- </>
57
- );
58
- };
59
-
60
- export const Default = Template.bind({});
@@ -1,72 +0,0 @@
1
- import React, { useState } from 'react';
2
- import DropdownMultiSelect from '../components/Dropdowns/DropdownMultiSelect';
3
-
4
- export default {
5
- title: 'Dropdown/DropdownMultiSelect',
6
- component: DropdownMultiSelect,
7
- };
8
-
9
- const Template = (args) => {
10
- const [show, setShow] = useState(false);
11
- const [errorRequired, setErrorRequired] = useState(false);
12
-
13
- const handleToggle = () => setShow((prevShow) => !prevShow);
14
-
15
- /* ========== */
16
- /* OPCION 1 - Opciones y valores seleccionados son array de objetos */
17
- const filters = [
18
- { id: 1, name: 'Filter 1', showStatus: '1', name1: 'loreal' },
19
- { id: 2, name: 'Filter 2', showStatus: '0', name1: 'jabon' },
20
- { id: 3, name: 'Filter 3', showStatus: '1', name1: 'blue' },
21
- { id: 4, name: 'Filter 4', showStatus: '0', name1: 'name' },
22
- { id: 5, name: 'Filter 5', showStatus: '0', name1: 'name' },
23
- { id: 6, name: 'Filter 6', showStatus: '2', name1: 'name' },
24
- ];
25
- const [selectedValues, setSelectedValues] = useState([]);
26
- /* ========== */
27
-
28
- /* ========== */
29
- /* OPCION 2 - Opciones y valores seleccionados son array de strings */
30
- const stringFilters = [
31
- 'Filter 1',
32
- 'Filter 2',
33
- 'Filter 3',
34
- 'Filter 4',
35
- 'Filter 5',
36
- ];
37
- const [selectedStringValues, setSelectedStringValues] = useState([]);
38
-
39
- /* const list= ['palabra1', 'palabra2'] */
40
- /* =========== */
41
-
42
- return (
43
- <>
44
- <DropdownMultiSelect
45
- {...args}
46
- values={filters}
47
- valuesSelected={selectedValues}
48
- setValuesSelected={setSelectedValues}
49
- show={show}
50
- onToggle={handleToggle}
51
- object={true}
52
- nameKey='name'
53
- nameKey1='name1'
54
- idKey={'id'}
55
- inputLabel={'Filters (array de objetos)'}
56
- focus={show}
57
- hasId={false}
58
- errorRequired={errorRequired}
59
- setErrorRequiered={setErrorRequired}
60
- validate={true}
61
- disableHash={true}
62
- overflow={true}
63
- />
64
-
65
- <button className='my-3' onClick={() => setErrorRequired(true)}>
66
- Validate
67
- </button>
68
- </>
69
- );
70
- };
71
-
72
- export const Default = Template.bind({});
@@ -1,64 +0,0 @@
1
- import React, { useEffect, useState } from 'react';
2
- import DropdownSimpleDatePicker from '../components/Dropdowns/DropdownSimpleDatePicker';
3
-
4
-
5
- export default {
6
- title: 'Dropdown/DropdownSimpleDatePicker',
7
- component: DropdownSimpleDatePicker,
8
- };
9
-
10
- const Template = (args) => {
11
- const [show, setShow] = useState(false);
12
-
13
- const [startDate, setStartDate] = useState('');
14
- const [endDate, setEndDate] = useState('');
15
-
16
- return (
17
- <>
18
- <div className='d-flex justify-content-between mt-3'>
19
- <div className='col-3 mb-3'>
20
- {/* MAX Y MIN POR PARAMS STATE */}
21
- <DropdownSimpleDatePicker
22
- {...args}
23
- inputLabel='Start Date'
24
- date={startDate}
25
- setDate={setStartDate}
26
- maxDate={endDate}
27
- />
28
- <DropdownSimpleDatePicker
29
- {...args}
30
- inputLabel='End Date'
31
- date={endDate}
32
- setDate={setEndDate}
33
- minDate={startDate}
34
- />
35
- </div>
36
- {/* PRUEBA CON MAXN Y MIN HARCODEADO */}
37
- <div className='col-3 mb-3'>
38
- <DropdownSimpleDatePicker
39
- {...args}
40
- inputLabel='Start Date'
41
- date={startDate}
42
- setDate={setStartDate}
43
- handleClear={() => {
44
- console.log('Aqui');
45
- }}
46
- maxDate={'2025-01-20'}
47
- />
48
- <DropdownSimpleDatePicker
49
- {...args}
50
- inputLabel='End Date'
51
- date={endDate}
52
- setDate={setEndDate}
53
- handleClear={() => {
54
- console.log('Aqui');
55
- }}
56
- minDate={'2025-01-15'}
57
- />
58
- </div>
59
- </div>
60
- </>
61
- );
62
- };
63
-
64
- export const Default = Template.bind({});
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import Icon from '../components/Labels/Icon';
3
-
4
- export default {
5
- title: 'Labels/Icon',
6
- component: Icon,
7
- };
8
-
9
- const Template = (args) => <Icon {...args} />;
10
-
11
- export const Default = Template.bind({});
@@ -1,20 +0,0 @@
1
- import React, { useState } from 'react';
2
- import Input from '../components/Inputs/Input';
3
-
4
- export default {
5
- title: 'Inputs/Input',
6
- component: Input,
7
- };
8
-
9
- const Template = (args) => {
10
- const [showError, setShowError] = useState(false);
11
-
12
- return (
13
- <>
14
- <button onClick={()=>setShowError(true)}>False</button>
15
- <Input {...args} setShowError={setShowError} showError={showError} />
16
- </>
17
- )
18
- };
19
-
20
- export const Default = Template.bind({});
@@ -1,44 +0,0 @@
1
- import React, { useState } from 'react';
2
- import InputChip from '../components/Inputs/InputChip';
3
-
4
- export default {
5
- title: 'Inputs/InputChip',
6
- component: InputChip,
7
- };
8
-
9
- const Template = (args) => {
10
- const [ keywordsList, setKeywordsList] = useState(['keyword1', 'keyword2', 'keyword3']);
11
-
12
- const [ keywordList2, setKeywordsList2] = useState([]);
13
-
14
- return (
15
- <>
16
- {/* HAY KEYWORDS */}
17
- <InputChip
18
- {...args}
19
- className={'mb-3'}
20
- placeholder={'Add keywords…'}
21
- keywordsList={keywordsList}
22
- setKeywordsList={setKeywordsList}
23
- maxKeywordLength={10}
24
- recomendedKeywords={5}
25
- requiredText='You can only add up to 15 keywords.'
26
- maxKeywords={15}
27
- counter={true}
28
- duplicateKeywordErrorText='Duplicate keyword2'
29
- />
30
-
31
- {/* NO HAY KEYWORDS */}
32
- <InputChip
33
- placeholder={'Add keywords…'}
34
- keywordsList={keywordList2}
35
- setKeywordsList={setKeywordsList2}
36
- maxKeywordLength={10}
37
- maxKeywords={15}
38
- requiredText='You can only add up to 15 keywords.'
39
- counter={true}
40
- />
41
- </>
42
- );
43
- }
44
- export const Default = Template.bind({});
@@ -1,27 +0,0 @@
1
- import React, { useState } from 'react';
2
-
3
- // COMPONENTS
4
- import { InputEmail } from '../components';
5
- import { Button } from 'react-bootstrap';
6
-
7
- export default {
8
- title: 'Inputs/InputEmail',
9
- component: InputEmail,
10
- };
11
-
12
- const Template = (args) => {
13
- // const [showModal, setShowModal] = useState(false);
14
- return (
15
- <>
16
- {/* <Button size='lg' onClick={() => setShowModal(!showModal)}>Cambiar</Button> */}
17
- <InputEmail
18
- {...args}
19
- apiGetEmail={'v2/retail-media/brands/settings/notifications'}
20
- apiPostEmail={'v2/retail-media/brands/settings/notifications'}
21
- // showModal={showModal}
22
- />
23
- </>
24
- );
25
- };
26
-
27
- export const Default = Template.bind({});
@@ -1,73 +0,0 @@
1
- import React, { Children, useState } from 'react';
2
- import { Navbar, Sidebar } from '../components/Navigation';
3
-
4
- export default {
5
- title: 'Navigation/Layout',
6
- component: Sidebar,
7
- };
8
-
9
- const Template = (args) => {
10
- const customLinks = [
11
- // section
12
- {
13
- title: 'Main menu', // section.title
14
- links: [
15
- // section.links.map((linkSection, y)=>(...
16
- {
17
- name: 'Home',
18
- icon: 'home', // Sin el 'fa-''
19
- url: '/home',
20
- children: [],
21
- },
22
- ],
23
- },
24
- {
25
- title: 'Reports',
26
- links: [
27
- {
28
- name: 'Impressions',
29
- icon: 'table', // Sin el 'fa-''
30
- url: '',
31
- children: [
32
- {
33
- name: 'Monthly impressions by...',
34
- url: '/impressions',
35
- },
36
- ],
37
- },
38
- ],
39
- },
40
- {
41
- title: 'Back list',
42
- backData: true,
43
- },
44
- ];
45
-
46
- const [show, setShow] = useState(true);
47
-
48
- return (
49
- <>
50
- <Navbar show={show} setShow={setShow} />
51
-
52
- <div className='container-fluid'>
53
- <Sidebar
54
- {...args}
55
- api={'v2/reports/'}
56
- customLinks={customLinks}
57
- defaultOpened={true}
58
- show={show}
59
- setShow={setShow}
60
- />
61
-
62
- <div className='main'>
63
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni quasi
64
- error beatae suscipit sapiente ad sed aut fugit dolor quam culpa,
65
- expedita consequuntur corporis tenetur incidunt illum repudiandae
66
- asperiores voluptate
67
- </div>
68
- </div>
69
- </>
70
- );
71
- };
72
-
73
- export const Default = Template.bind({});
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import LoginSource from '../components/Labels/LoginSource';
3
-
4
- export default {
5
- title: 'Labels/LoginSource',
6
- component: LoginSource,
7
- };
8
-
9
- const Template = (args) => <LoginSource {...args}/>;
10
-
11
- export const Default = Template.bind({});
@@ -1,24 +0,0 @@
1
- import React, { useState } from 'react';
2
- import Navbar from '../components/Navigation/Navbar';
3
-
4
- export default {
5
- title: 'Navigation/Navbar',
6
- component: Navbar,
7
- };
8
-
9
- const Template = (args) => {
10
- return (
11
- <Navbar
12
- {...args}
13
- showDeckMenu={true}
14
- showUserMenu={true}
15
- ></Navbar>
16
- /* <BrowserRouter>
17
- <Routes>
18
- <Route path="*" element={<Navbar {...args}></Navbar>} />
19
- </Routes>
20
- </BrowserRouter> */
21
- );
22
- };
23
-
24
- export const Default = Template.bind({});
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import PillComponent from '../components/Labels/PillComponent';
3
-
4
- export default {
5
- title: 'Labels/PillComponent',
6
- component: PillComponent,
7
- };
8
-
9
- const Template = (args) => {
10
- return(
11
- <PillComponent {...args}
12
- color='green'
13
- closeButton={true}
14
- // onClick={() => console.log('Clicked!!')}
15
- >
16
- {'Hello World'}
17
- </PillComponent>
18
- )
19
-
20
- };
21
-
22
- export const Default = Template.bind({});
@@ -1,18 +0,0 @@
1
- import React, { useState } from 'react';
2
- import Radio from '../components/Inputs/Radio';
3
-
4
- export default {
5
- title: 'Inputs/Radio',
6
- component: Radio,
7
- };
8
-
9
- const Template = (args) => {
10
- const [status, setStatus] = useState(false);
11
-
12
- return (
13
- <Radio {...args} status={status} setStatus={setStatus}>Radio</Radio>
14
- )
15
- };
16
-
17
- export const Default = Template.bind({});
18
-
@@ -1,169 +0,0 @@
1
- import React, { Children, useState } from 'react';
2
- import { Sidebar } from '../components/Navigation';
3
-
4
- export default {
5
- title: 'Navigation/Sidebar',
6
- component: Sidebar,
7
- };
8
-
9
- const Template = (args) => {
10
- const customLinks = [
11
- // section
12
- {
13
- title: 'Main menu', // section.title
14
- links: [
15
- {
16
- name: 'Campaings',
17
- icon: 'home',
18
- url: '/home',
19
- children: [],
20
- pendingLength: 5, // explanation(number) Pass the length of the array from the relevant endpoint data, for example, if there are pending campaigns.
21
- // Not required, only if you want to display a type of pendingType ('warning' or 'badge').
22
- pendingType: 'warning',
23
- },
24
- {
25
- name: 'Reports',
26
- icon: 'home',
27
- url: '/home',
28
- children: [
29
- /* {
30
- name: 'Item 1',
31
- icon: 'home',
32
- url: '/home',
33
- children: [],
34
- }, */
35
- ],
36
- pendingLength: 5,
37
- pendingType: 'badge',
38
- },
39
- ],
40
- },
41
- {
42
- title: 'Reports',
43
- links: [
44
- {
45
- name: 'Impressions',
46
- icon: 'table',
47
- url: '',
48
- children: [
49
- {
50
- name: 'Monthly impressions by...',
51
- url: '/impressions',
52
- },
53
- ],
54
- },
55
- {
56
- name: 'Reports',
57
- icon: 'table', // Sin el 'fa-''
58
- url: '',
59
- children: [
60
- {
61
- name: 'Monthly impressions by...',
62
- url: '/impressions',
63
- },
64
- {
65
- name: '2Monthly impressions by...',
66
- url: '/2impressions',
67
- },
68
- {
69
- name: '3Monthly impressions by...',
70
- url: '/3impressions',
71
- },
72
- ],
73
- },
74
- ],
75
- },
76
- {
77
- title: 'Reports 2',
78
- links: [
79
- {
80
- name: 'Impressions',
81
- icon: 'table', // Sin el 'fa-''
82
- url: '',
83
- children: [
84
- {
85
- name: 'Monthly impressions by...',
86
- url: '/impressions',
87
- },
88
- ],
89
- },
90
- {
91
- name: 'Reports',
92
- icon: 'table', // Sin el 'fa-''
93
- url: '',
94
- children: [
95
- {
96
- name: 'Monthly impressions by...',
97
- url: '/impressions',
98
- },
99
- ],
100
- },
101
- ],
102
- },
103
- {
104
- title: 'Back list',
105
- backData: true,
106
- },
107
- ];
108
-
109
- const selectedClients = {
110
- email: 'lancome@groovinads.com',
111
- id_client: 3661,
112
- id_alias: null,
113
- id_shop: null,
114
- fgAdmin: 0,
115
- fgMaster: 1,
116
- fgClientsAdmin: 0,
117
- country: 'MX',
118
- time_zone: '(GMT-06:00)-GUADALAJARA, MEXICO CITY, MONTERREY ',
119
- time_zone_db: '-6:00',
120
- auth_data: {
121
- login_level: 'USER',
122
- login_id: 308,
123
- email: 'tobias.matarasso@groovinads.com',
124
- scopes: [
125
- 'master',
126
- 'lalala',
127
- 'NewName',
128
- 'user_admin',
129
- 'digital_signage_deals_manager',
130
- 'dashboard_screens',
131
- ],
132
- google_name: 'Tobias Matarasso',
133
- google_picture:
134
- 'https://lh3.googleusercontent.com/a/ACg8ocIYedPDyRN_HV8egw-h3YV_Lv2ZVQa9YSw_g7o7vXBqhMTqEI4=s96-c',
135
- oauth_name: 'Google',
136
- oauth_username: 'Tobias Matarasso',
137
- oauth_picture:
138
- 'https://lh3.googleusercontent.com/a/ACg8ocIYedPDyRN_HV8egw-h3YV_Lv2ZVQa9YSw_g7o7vXBqhMTqEI4=s96-c',
139
- id_api_key: 0,
140
- },
141
- client_name: 'Lancome',
142
- php_session_id: 'u7o2br84i92jmfkdrqen10ngp1',
143
- is_api2_login: true,
144
- };
145
-
146
- return (
147
- <div className='container-fluid'>
148
- <Sidebar
149
- {...args}
150
- api={'v2/reports/'}
151
- customLinks={customLinks}
152
- defaultOpened={true}
153
- selectedClient={selectedClients}
154
- showClients={true}
155
- onNavigate={(url) => console.log('Navigate to:', url)}
156
- />
157
- <div className='main'>
158
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni quasi
159
- error beatae suscipit sapiente ad sed aut fugit dolor quam culpa,
160
- expedita consequuntur corporis tenetur incidunt illum repudiandae
161
- asperiores voluptate!
162
- </div>
163
- </div>
164
- );
165
- };
166
-
167
- export const Default = Template.bind({});
168
-
169
- // navreports: basePath + 'v2/reports/',
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import Spinner from '../components/Labels/Spinner';
3
-
4
- export default {
5
- title: 'Labels/Spinner',
6
- component: Spinner,
7
- };
8
-
9
- const Template = (args) => <Spinner {...args} />;
10
-
11
- export const Default = Template.bind({});
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import StatusIcon from '../components/Labels/StatusIcon';
3
-
4
- export default {
5
- title: 'Labels/StatusIcon',
6
- component: StatusIcon,
7
- };
8
-
9
- const Template = (args) => <StatusIcon {...args} />;
10
-
11
- export const Default = Template.bind({});
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import Stepper from '../components/Navigation/Stepper';
3
-
4
- export default {
5
- title: 'Navigation/Stepper',
6
- component: Stepper,
7
- };
8
-
9
- const Template = (args) =>
10
- <Stepper
11
- {...args}
12
- list={['Step 0', 'Step 1', 'Step 2']}
13
- />
14
-
15
-
16
- export const Default = Template.bind({});
@@ -1,17 +0,0 @@
1
- import React, { useState } from 'react';
2
- import Switch from '../components/Inputs/Switch';
3
-
4
- export default {
5
- title: 'Inputs/Switch',
6
- component: Switch,
7
- };
8
-
9
- const Template = (args) => {
10
- const [status, setStatus] = useState(0);
11
-
12
- return (
13
- <Switch {...args} status={status} setStatus={setStatus}>Switch</Switch>
14
- )
15
- };
16
-
17
- export const Default = Template.bind({});