contentoh-components-library 21.2.46 → 21.2.48

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 (44) hide show
  1. package/dist/components/atoms/GeneralInput/index.js +4 -2
  2. package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +36 -0
  3. package/dist/components/atoms/ListCommercialRetailers/index.js +64 -0
  4. package/dist/components/atoms/ListCommercialRetailers/styles.js +20 -0
  5. package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +37 -0
  6. package/dist/components/atoms/MenuCommercialRetailers/index.js +25 -0
  7. package/dist/components/atoms/MenuCommercialRetailers/styles.js +20 -0
  8. package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +28 -0
  9. package/dist/components/atoms/MenuProductImage/index.js +88 -0
  10. package/dist/components/atoms/MenuProductImage/styles.js +20 -0
  11. package/dist/components/atoms/StatusTag/StatusTag.stories.js +48 -0
  12. package/dist/components/atoms/StatusTag/index.js +58 -0
  13. package/dist/components/atoms/StatusTag/styles.js +20 -0
  14. package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +7 -16
  15. package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +25 -0
  16. package/dist/components/molecules/ApproveRejetPanel/index.js +49 -0
  17. package/dist/components/molecules/ApproveRejetPanel/styles.js +18 -0
  18. package/dist/components/molecules/CustomSelect/CustomSelect.stories.js +22 -21
  19. package/dist/components/molecules/CustomSelect/SelectItem.js +1 -10
  20. package/dist/components/molecules/CustomSelect/index.js +9 -36
  21. package/dist/components/molecules/CustomSelect/styles.js +1 -3
  22. package/dist/components/molecules/SignInLogin/index.js +22 -2
  23. package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +28 -0
  24. package/dist/components/molecules/SignInLoginCreationApp/index.js +270 -0
  25. package/dist/components/molecules/SignInLoginCreationApp/styles.js +20 -0
  26. package/dist/components/molecules/TagAndInput/index.js +4 -2
  27. package/dist/components/pages/Dashboard/Dashboard.stories.js +19 -19
  28. package/dist/components/pages/Dashboard/index.js +1 -1
  29. package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +37 -0
  30. package/dist/components/pages/RegistrationLoginFirstStep/index.js +269 -0
  31. package/dist/components/pages/RegistrationLoginFirstStep/styles.js +20 -0
  32. package/package.json +1 -1
  33. package/src/components/atoms/GeneralInput/index.js +2 -0
  34. package/src/components/atoms/VerticalSideMenuMainPage/styles.js +17 -15
  35. package/src/components/molecules/CustomSelect/CustomSelect.stories.js +11 -19
  36. package/src/components/molecules/CustomSelect/SelectItem.js +0 -7
  37. package/src/components/molecules/CustomSelect/index.js +8 -32
  38. package/src/components/molecules/CustomSelect/styles.js +1 -3
  39. package/src/components/molecules/SignInLogin/index.js +18 -0
  40. package/src/components/molecules/TagAndInput/index.js +2 -0
  41. package/src/components/pages/Dashboard/Dashboard.stories.js +19 -19
  42. package/src/components/pages/Dashboard/index.js +1 -1
  43. package/dist/assets/images/customSelect/starIcon.svg +0 -14
  44. package/src/assets/images/customSelect/starIcon.svg +0 -14
@@ -9,37 +9,37 @@ const Template = (args) => <Dashboard {...args} />;
9
9
  export const DashboardDeafult = Template.bind({});
10
10
  DashboardDeafult.args = {
11
11
  user: {
12
- id_user: 28,
13
- name: "Proveedor",
14
- last_name: "Colgate",
15
- email: "ilopez@contentoh.com",
16
- position: "Prueba Admin",
12
+ id_user: 59,
13
+ name: "The Home",
14
+ last_name: "Depot",
15
+ email: "cadena.ismael@allfreemail.net",
16
+ position: "Admin",
17
17
  telephone: "+523111366336",
18
18
  country: "México",
19
- id_company: 1,
20
- id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
19
+ id_company: 7,
20
+ id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
21
21
  birth_Date: null,
22
22
  about_me: null,
23
23
  zip_code: null,
24
24
  address: null,
25
25
  job: null,
26
- id_stripe: "cus_KuEt6R6vwmN09f",
26
+ id_stripe: "",
27
27
  id_role: 0,
28
28
  active: 1,
29
- is_retailer: 0,
29
+ is_retailer: 1,
30
30
  email_notify: 1,
31
31
  membership: {
32
- id: 76,
33
- start_date: "2022-01-18T17:25:35.000Z",
34
- end_date: "2023-01-18T17:25:35.000Z",
35
- planID: 8,
36
- plan: "prod_KtlhECVSFG2iro",
37
- name: "Plan Pro",
38
- user_limit: "20",
39
- products_limit: "5000",
32
+ id: 24,
33
+ start_date: "2021-11-23T03:35:50.000Z",
34
+ end_date: "2022-11-23T03:35:50.000Z",
35
+ planID: 9,
36
+ plan: "prod_KtlkzZVGq6bRTO",
37
+ name: "Plan Enterprise Full",
38
+ user_limit: "30",
39
+ products_limit: "10000",
40
40
  type: "Enterprise",
41
41
  },
42
- src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1662994279777",
42
+ src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1663928202230",
43
43
  },
44
- jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVh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mYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjU4ODRhZTM0LTU5ZDYtNDQ1NC1iOThlLTgyMTUxOGJjYzNhNyIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJmY2IzMGVjYi1lMjc1LTQyM2UtYjQwMi05YTBjMWNjNzM2YzMiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2MzkyODIwMCwibmFtZSI6IkNhZGVuYSBJc21hZWwiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMzY2MzM2IiwiZXhwIjoxNjYzOTMxODAwLCJpYXQiOjE2NjM5MjgyMDAsImVtYWlsIjoiY2FkZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.E5NPYa6ucsQGTij8gzihdT2zv7gmJwxCZwrbBnQSYXIBw7cMK7U0eC7z4VBEm3tFYCA9SoxIdQtfuGj_lw2-CaXqkkMu4929TtlrrK_nVHYlwsXMSGIW3bComTb2toX8bshD1kd3FnNBFujhrQ-ouuBfQjy2d4fVZA1M4sZi_eT8Lxjo1uI_LfgYxrlS8_IKgfz71NuM-Uc2vxidm2_AG0g7PboSPW24bv1R-Lv272hoR_SmjBPY-I2Pw8DTZwQxWmtoU_MOx1YnY97qx5G6zqbTsjbNYkk97xPb87tKQTo946pB80fOkipTrD2xwhc8AOZQywwKa5NT4nGayDKLdg",
45
45
  };
@@ -55,7 +55,7 @@ export const Dashboard = ({ jwt, user }) => {
55
55
  };
56
56
 
57
57
  const getRetailers = async () => {
58
- const isTHDUser = [657, 818, 819].includes(user.id_company);
58
+ const isTHDUser = user.is_retailer === 1;
59
59
  const retailersResponse = await axios.get(
60
60
  `${process.env.REACT_APP_RETAILER_ENDPOINT}`,
61
61
  {
@@ -1,14 +0,0 @@
1
- <svg id="Componente_34_12" data-name="Componente 34 – 12" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
2
- <defs>
3
- <clipPath id="clip-path">
4
- <rect id="Rectángulo_107" data-name="Rectángulo 107" width="10" height="10" transform="translate(3 3)" fill="#b3b3b3" stroke="#b3b3b3" stroke-width="1"/>
5
- </clipPath>
6
- </defs>
7
- <g id="Rectángulo_287" data-name="Rectángulo 287" fill="#fff" stroke="#f0f0f0" stroke-width="1">
8
- <rect width="16" height="16" rx="8" stroke="none"/>
9
- <rect x="0.5" y="0.5" width="15" height="15" rx="7.5" fill="none"/>
10
- </g>
11
- <g id="Enmascarar_grupo_79" data-name="Enmascarar grupo 79" clip-path="url(#clip-path)">
12
- <path id="star_FILL0_wght400_GRAD0_opsz48" d="M4.037,9.438,6,8.262,7.963,9.45,7.438,7.225l1.725-1.5-2.275-.2L6,3.425,5.113,5.512l-2.275.2,1.725,1.5ZM2.912,11l.813-3.512L1,5.125l3.6-.312L6,1.5,7.4,4.813l3.6.313L8.275,7.488,9.087,11,6,9.137ZM6,6.563Z" transform="translate(2 1.5)" fill="#b3b3b3"/>
13
- </g>
14
- </svg>
@@ -1,14 +0,0 @@
1
- <svg id="Componente_34_12" data-name="Componente 34 – 12" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
2
- <defs>
3
- <clipPath id="clip-path">
4
- <rect id="Rectángulo_107" data-name="Rectángulo 107" width="10" height="10" transform="translate(3 3)" fill="#b3b3b3" stroke="#b3b3b3" stroke-width="1"/>
5
- </clipPath>
6
- </defs>
7
- <g id="Rectángulo_287" data-name="Rectángulo 287" fill="#fff" stroke="#f0f0f0" stroke-width="1">
8
- <rect width="16" height="16" rx="8" stroke="none"/>
9
- <rect x="0.5" y="0.5" width="15" height="15" rx="7.5" fill="none"/>
10
- </g>
11
- <g id="Enmascarar_grupo_79" data-name="Enmascarar grupo 79" clip-path="url(#clip-path)">
12
- <path id="star_FILL0_wght400_GRAD0_opsz48" d="M4.037,9.438,6,8.262,7.963,9.45,7.438,7.225l1.725-1.5-2.275-.2L6,3.425,5.113,5.512l-2.275.2,1.725,1.5ZM2.912,11l.813-3.512L1,5.125l3.6-.312L6,1.5,7.4,4.813l3.6.313L8.275,7.488,9.087,11,6,9.137ZM6,6.563Z" transform="translate(2 1.5)" fill="#b3b3b3"/>
13
- </g>
14
- </svg>