contentoh-components-library 21.3.52 → 21.3.53

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 (36) hide show
  1. package/dist/components/atoms/ButtonV2/styles.js +1 -1
  2. package/dist/components/atoms/Status/styles.js +1 -1
  3. package/dist/components/atoms/VerticalSideMenuMainPage/index.js +23 -18
  4. package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +4 -4
  5. package/dist/components/organisms/DashboardMetric/dashboardMetricUtils.js +0 -27
  6. package/dist/components/organisms/GlobalModal/styles.js +1 -1
  7. package/dist/components/organisms/OrderDetail/styles.js +1 -1
  8. package/dist/components/organisms/OrderDetail/utils/Table/styles.js +1 -1
  9. package/dist/components/pages/Dashboard/Dashboard.stories.js +50 -31
  10. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +89 -127
  11. package/dist/components/pages/ProviderProductEdition/index.js +392 -647
  12. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +108 -61
  13. package/dist/components/pages/RetailerProductEdition/index.js +1 -1
  14. package/dist/index.js +0 -13
  15. package/package.json +6 -7
  16. package/src/components/atoms/ButtonV2/styles.js +1 -1
  17. package/src/components/atoms/Status/styles.js +0 -4
  18. package/src/components/atoms/VerticalSideMenuMainPage/index.js +22 -18
  19. package/src/components/atoms/VerticalSideMenuMainPage/styles.js +4 -3
  20. package/src/components/molecules/AvatarAndValidation/index.js +1 -1
  21. package/src/components/organisms/DashboardMetric/dashboardMetricUtils.js +1 -18
  22. package/src/components/organisms/GlobalModal/styles.js +0 -10
  23. package/src/components/organisms/OrderDetail/index.js +0 -1
  24. package/src/components/organisms/OrderDetail/styles.js +1 -1
  25. package/src/components/organisms/OrderDetail/utils/Table/styles.js +1 -0
  26. package/src/components/pages/Dashboard/Dashboard.stories.js +55 -31
  27. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +96 -135
  28. package/src/components/pages/ProviderProductEdition/index.js +135 -264
  29. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +111 -61
  30. package/src/components/pages/RetailerProductEdition/index.js +1 -1
  31. package/src/index.js +0 -1
  32. package/dist/assets/fonts/roboto/LICENSE.txt +0 -202
  33. package/src/components/organisms/TableResizable/TableResizable.stories.js +0 -17
  34. package/src/components/organisms/TableResizable/index.js +0 -119
  35. package/src/components/organisms/TableResizable/styles.js +0 -133
  36. package/src/components/organisms/TableResizable/utils.js +0 -46
@@ -1,133 +0,0 @@
1
- import styled from "styled-components";
2
-
3
- const defaultTemplateColumns = (totalColumns) =>
4
- `minmax(100px, 1fr) `.repeat(totalColumns);
5
-
6
- export const Container = styled.div`
7
- position: absolute;
8
- overflow: hidden; /* Clips any scrollbars that appear */
9
- font-family: Avenir Next;
10
- font-size: 13px;
11
- width: 90%;
12
-
13
- .reset-button {
14
- display: flex;
15
- justify-content: center;
16
- align-items: center;
17
- border-radius: 50%;
18
- cursor: pointer;
19
- padding: 3px;
20
- border: 0;
21
- background: #f5f5f5;
22
- position: absolute;
23
- top: 5px;
24
- left: 5px;
25
- margin: 0;
26
- z-index: 10;
27
- }
28
-
29
- .table-wrapper {
30
- border-radius: 6px;
31
- background: #fff;
32
- }
33
-
34
- table {
35
- width: 100%;
36
- height: calc(100vh - 250px);
37
- overflow: auto; /* Allow scrolling within the table */
38
- display: grid;
39
- grid-template-columns: ${(props) =>
40
- props.gridTemplateColumns ?? defaultTemplateColumns(props.totalColumns)};
41
- grid-template-rows: ${(props) => `repeat(${props.totalRows + 2}, 50px)`};
42
- }
43
-
44
- table th {
45
- font-size: 15px;
46
- }
47
-
48
- table th,
49
- table td {
50
- text-align: left;
51
- padding: 5px;
52
- }
53
-
54
- table th span,
55
- table td span {
56
- white-space: nowrap;
57
- text-overflow: ellipsis;
58
- overflow: hidden;
59
- display: block;
60
- border-right: 1px solid #ccc;
61
- text-align: center;
62
- height: 100%;
63
- }
64
-
65
- table th:last-child span,
66
- table td:last-child span {
67
- border-right: 0px;
68
- }
69
-
70
- table tr td {
71
- border-bottom: 1px solid #ccc;
72
- }
73
-
74
- table tr th {
75
- border-bottom: 1px solid #ccc;
76
- }
77
-
78
- table thead,
79
- table tbody,
80
- table tr {
81
- display: contents;
82
- background: red;
83
- }
84
-
85
- table thead {
86
- -webkit-user-select: none; /* Safari */
87
- -ms-user-select: none; /* IE 10 and IE 11 */
88
- user-select: none; /* Standard syntax */
89
- }
90
-
91
- th {
92
- position: sticky;
93
- top: 0;
94
- background-color: #fff;
95
- line-height: 40px;
96
- z-index: 8;
97
- }
98
-
99
- td {
100
- line-height: 40px;
101
- height: 50px;
102
- }
103
-
104
- .resize-handle {
105
- display: block;
106
- position: absolute;
107
- cursor: col-resize;
108
- width: 8px;
109
- right: 0;
110
- top: 0;
111
- z-index: 1;
112
- border-right: 1px solid transparent;
113
- }
114
-
115
- .resize-handle:hover {
116
- border-color: #ccc;
117
- }
118
-
119
- .resize-handle.active {
120
- border-color: #517ea5;
121
- }
122
-
123
- .resizeable-table {
124
- width: 100%;
125
- }
126
-
127
- .noOverflow {
128
- overflow: inherit;
129
- span {
130
- overflow: inherit;
131
- }
132
- }
133
- `;
@@ -1,46 +0,0 @@
1
- export const data = [
2
- {
3
- key: 1,
4
- object: {},
5
- columns: [
6
- "Large Detroit Style Pizza",
7
- 3213456785,
8
- "$31.43",
9
- "Pending",
10
- "Dave",
11
- ],
12
- },
13
- {
14
- key: 2,
15
- object: {},
16
- columns: [
17
- "Large Detroit Style Pizza",
18
- 3213456785,
19
- "$31.43",
20
- "Pending",
21
- "Dave",
22
- ],
23
- },
24
- {
25
- key: 3,
26
- object: {},
27
- columns: [
28
- "Large Detroit Style Pizza",
29
- 3213456785,
30
- "$31.43",
31
- "Pending",
32
- "Dave",
33
- ],
34
- },
35
- {
36
- key: 4,
37
- object: {},
38
- columns: [
39
- "Large Detroit Style Pizza",
40
- 3213456785,
41
- "$31.43",
42
- "Pending",
43
- "Dave",
44
- ],
45
- },
46
- ];