@omniumretail/component-library 1.0.36 → 1.0.38

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 (40) hide show
  1. package/dist/bundle.js +27 -27
  2. package/dist/main.css +14 -8
  3. package/dist/types/components/AnalyticsBar/AnalyticsBar.stories.d.ts +5 -0
  4. package/dist/types/components/AnalyticsBar/helpers/codeMutation.d.ts +4 -0
  5. package/dist/types/components/AnalyticsBar/index.d.ts +3 -0
  6. package/dist/types/components/AnalyticsBar/interfaces/analyticsBar.d.ts +12 -0
  7. package/dist/types/components/CategoryResponse/CategoryResponse.stories.d.ts +4 -0
  8. package/dist/types/components/CategoryResponse/evaluationOptions.d.ts +10 -0
  9. package/dist/types/components/CategoryResponse/index.d.ts +9 -0
  10. package/dist/types/components/DatePickerTag/DatePickerTag.stories.d.ts +5 -0
  11. package/dist/types/components/DatePickerTag/index.d.ts +6 -0
  12. package/dist/types/components/Menu/Menu.stories.d.ts +5 -0
  13. package/dist/types/components/Menu/helpers/codeMutation.d.ts +4 -0
  14. package/dist/types/components/Menu/index.d.ts +3 -0
  15. package/dist/types/components/index.d.ts +1 -1
  16. package/dist/types/constants/translationHelper.d.ts +2 -0
  17. package/package.json +1 -1
  18. package/src/components/AnalyticsBar/AnalyticsBar.stories.tsx +180 -0
  19. package/src/components/AnalyticsBar/helpers/codeMutation.tsx +19 -0
  20. package/src/components/AnalyticsBar/index.tsx +76 -0
  21. package/src/components/AnalyticsBar/interfaces/analyticsBar.tsx +13 -0
  22. package/src/components/AnalyticsBar/styles.module.scss +108 -0
  23. package/src/components/Category/Category.stories.tsx +64 -37
  24. package/src/components/Category/CategoryContent/index.tsx +9 -9
  25. package/src/components/CategoryResponse/CategoryResponse.stories.tsx +261 -0
  26. package/src/components/CategoryResponse/evaluationOptions.tsx +81 -0
  27. package/src/components/CategoryResponse/index.tsx +280 -0
  28. package/src/components/CategoryResponse/styles.module.scss +135 -0
  29. package/src/components/{RangePickerTag/RangePickerTag.stories.tsx → DatePickerTag/DatePickerTag.stories.tsx} +4 -4
  30. package/src/components/{RangePickerTag → DatePickerTag}/index.tsx +9 -10
  31. package/src/components/{RangePickerTag → DatePickerTag}/styles.module.scss +5 -0
  32. package/src/components/Menu/Menu.stories.tsx +178 -0
  33. package/src/components/Menu/helpers/codeMutation.tsx +19 -0
  34. package/src/components/Menu/index.tsx +23 -0
  35. package/src/components/Menu/styles.module.scss +0 -0
  36. package/src/components/index.tsx +1 -1
  37. package/src/constants/translationHelper.ts +7 -0
  38. package/src/locales/en.json +3 -0
  39. package/src/locales/es.json +3 -0
  40. package/src/locales/pt.json +3 -0
@@ -0,0 +1,23 @@
1
+ import styles from './styles.module.scss';
2
+ import { MinusOutlined, PlusOutlined } from '@ant-design/icons';
3
+ import type { MenuProps } from 'antd';
4
+ import { Menu as MenuAntd} from 'antd';
5
+
6
+ export const Menu = (props: MenuProps) => {
7
+ const {
8
+ items
9
+ } = props;
10
+
11
+ const onClick: MenuProps['onClick'] = (e) => {
12
+ // console.log('click ', e);
13
+ };
14
+
15
+ return (
16
+ <MenuAntd
17
+ onClick={onClick}
18
+ mode="inline"
19
+ items={items}
20
+ expandIcon={({ isOpen }) => (isOpen ? <MinusOutlined /> : <PlusOutlined />)}
21
+ />
22
+ );
23
+ };
File without changes
@@ -16,4 +16,4 @@ export * from './ModalWithTable';
16
16
  export * from './Sidebar';
17
17
  export * from './Switch';
18
18
  export * from './Category';
19
- export * from './RangePickerTag';
19
+ export * from './DatePickerTag';
@@ -0,0 +1,7 @@
1
+ import i18next from 'i18next';
2
+
3
+ const translate = (key: any, options = {}) => {
4
+ return i18next.t(key, options);
5
+ };
6
+
7
+ export default translate;
@@ -26,6 +26,9 @@
26
26
  "errorQuestion": "Missing Question",
27
27
  "placeholderGrade": "Grade",
28
28
  "errorGrade": "Missing Grade"
29
+ },
30
+ "categoryResponse": {
31
+ "notApplicable": "Not Applicable"
29
32
  }
30
33
  }
31
34
  }
@@ -26,6 +26,9 @@
26
26
  "errorQuestion": "Missing Question ES",
27
27
  "placeholderGrade": "Grade ES",
28
28
  "errorGrade": "Missing Grade ES"
29
+ },
30
+ "categoryResponse": {
31
+ "notApplicable": "Not Applicable ES"
29
32
  }
30
33
  }
31
34
  }
@@ -27,6 +27,9 @@
27
27
  "errorQuestion": "Missing Question PT",
28
28
  "placeholderGrade": "Grade PT",
29
29
  "errorGrade": "Missing Grade PT"
30
+ },
31
+ "categoryResponse": {
32
+ "notApplicable": "Não Aplicável"
30
33
  }
31
34
  }
32
35
  }