@omniumretail/component-library 1.2.70 → 1.2.72

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 (249) hide show
  1. package/dist/component-library.umd.js +1154 -0
  2. package/dist/{types/components → components}/AnalyticsBar/helpers/codeMutation.d.ts +2 -2
  3. package/dist/{types/components → components}/AnalyticsBar/index.d.ts +2 -1
  4. package/dist/{types/components → components}/Button/index.d.ts +2 -1
  5. package/dist/{types/components → components}/Category/index.d.ts +2 -1
  6. package/dist/{types/components → components}/CategoryReadOnly/index.d.ts +2 -1
  7. package/dist/{types/components → components}/CategoryResponse/index.d.ts +3 -2
  8. package/dist/{types/components → components}/DatePicker/index.d.ts +2 -1
  9. package/dist/{types/components → components}/DatePickerTag/index.d.ts +2 -1
  10. package/dist/{types/components → components}/DropdownButton/index.d.ts +3 -2
  11. package/dist/{types/components → components}/Footer2/index.d.ts +2 -1
  12. package/dist/{types/components → components}/Header/Header.data.d.ts +2 -1
  13. package/dist/{types/components → components}/Header/Header.types.d.ts +2 -1
  14. package/dist/{types/components → components}/Header/index.d.ts +2 -1
  15. package/dist/{types/components → components}/Input/index.d.ts +2 -1
  16. package/dist/{types/components → components}/InputCountryCode/index.d.ts +2 -1
  17. package/dist/{types/components → components}/Link/index.d.ts +2 -1
  18. package/dist/{types/components → components}/Menu/helpers/codeMutation.d.ts +2 -2
  19. package/dist/{types/components → components}/Menu/index.d.ts +2 -1
  20. package/dist/{types/components → components}/MobileTable/index.d.ts +2 -1
  21. package/dist/{types/components → components}/ModalWithTable/index.d.ts +2 -1
  22. package/dist/{types/components → components}/Notification/index.d.ts +2 -1
  23. package/dist/{types/components → components}/Radio/index.d.ts +3 -2
  24. package/dist/{types/components → components}/ResponsiveTable/index.d.ts +2 -1
  25. package/dist/{types/components → components}/Select/index.d.ts +2 -1
  26. package/dist/{types/components → components}/Switch/index.d.ts +2 -1
  27. package/dist/{types/components → components}/Table/index.d.ts +2 -1
  28. package/dist/{types/components → components}/Tag/index.d.ts +3 -2
  29. package/dist/{types/components → components}/Upload/index.d.ts +3 -2
  30. package/dist/{types/components → components}/WebCam/index.d.ts +2 -1
  31. package/{src/locales/en.json → dist/locales/en.json.d.ts} +4 -2
  32. package/{src/locales/es.json → dist/locales/es.json.d.ts} +4 -2
  33. package/{src/locales/pt.json → dist/locales/pt.json.d.ts} +4 -1
  34. package/package.json +98 -183
  35. package/NPMPUBLISH.md +0 -29
  36. package/bitbucket-pipelines.yml +0 -95
  37. package/dist/780.bundle.js +0 -1
  38. package/dist/838.bundle.js +0 -2
  39. package/dist/838.bundle.js.LICENSE.txt +0 -1
  40. package/dist/bundle.js +0 -2
  41. package/dist/bundle.js.LICENSE.txt +0 -451
  42. package/dist/main.css +0 -36
  43. package/dist/types/components/AnalyticsBar/AnalyticsBar.stories.d.ts +0 -4
  44. package/dist/types/components/BellNotifications/BellNotifications.stories.d.ts +0 -4
  45. package/dist/types/components/Button/Button.stories.d.ts +0 -5
  46. package/dist/types/components/Category/Category.stories.d.ts +0 -3
  47. package/dist/types/components/CategoryReadOnly/CategoryReadOnly.stories.d.ts +0 -3
  48. package/dist/types/components/CategoryResponse/CategoryResponse.stories.d.ts +0 -3
  49. package/dist/types/components/DatePicker/DatePicker.stories.d.ts +0 -4
  50. package/dist/types/components/DatePickerTag/DatePickerTag.stories.d.ts +0 -4
  51. package/dist/types/components/DropdownButton/DropdownButton.stories.d.ts +0 -4
  52. package/dist/types/components/ExportTableData/ExportTableData.stories.d.ts +0 -3
  53. package/dist/types/components/Footer/Footer.stories.d.ts +0 -4
  54. package/dist/types/components/Footer2/Footer.stories.d.ts +0 -5
  55. package/dist/types/components/Header/Header.stories.d.ts +0 -4
  56. package/dist/types/components/Input/Input.stories.d.ts +0 -4
  57. package/dist/types/components/InputCountryCode/inputCountryCode.stories.d.ts +0 -4
  58. package/dist/types/components/Label/Label.stories.d.ts +0 -5
  59. package/dist/types/components/Link/Link.stories.d.ts +0 -6
  60. package/dist/types/components/Menu/Menu.stories.d.ts +0 -4
  61. package/dist/types/components/MobileTable/MobileTable.stories.d.ts +0 -4
  62. package/dist/types/components/ModalConfirmation/ModalConfirmation.stories.d.ts +0 -4
  63. package/dist/types/components/ModalWithTable/ModalWithTable.stories.d.ts +0 -4
  64. package/dist/types/components/Navigation/Navigation.stories.d.ts +0 -4
  65. package/dist/types/components/Notification/Notification.stories.d.ts +0 -4
  66. package/dist/types/components/Questions/Questions.stories.d.ts +0 -3
  67. package/dist/types/components/Radio/Radio.stories.d.ts +0 -4
  68. package/dist/types/components/ResponseType/ResponseType.stories.d.ts +0 -3
  69. package/dist/types/components/ResponsiveTable/ResponsiveTable.stories.d.ts +0 -8
  70. package/dist/types/components/Select/Select.stories.d.ts +0 -5
  71. package/dist/types/components/Separator/Separator.stories.d.ts +0 -5
  72. package/dist/types/components/Sidebar/Sidebar.stories.d.ts +0 -5
  73. package/dist/types/components/Switch/Switch.stories.d.ts +0 -4
  74. package/dist/types/components/Table/Table.stories.d.ts +0 -8
  75. package/dist/types/components/Tag/Tag.stories.d.ts +0 -4
  76. package/dist/types/components/Upload/Upload.stories.d.ts +0 -3
  77. package/dist/types/components/UserInfo/UserInfo.stories.d.ts +0 -3
  78. package/dist/types/components/WebCam/WebCam.stories.d.ts +0 -3
  79. package/src/assets/code-brackets.svg +0 -1
  80. package/src/assets/colors.svg +0 -1
  81. package/src/assets/comments.svg +0 -1
  82. package/src/assets/direction.svg +0 -1
  83. package/src/assets/flow.svg +0 -1
  84. package/src/assets/fonts/Silka-Bold.woff2 +0 -0
  85. package/src/assets/fonts/Silka-Regular.woff2 +0 -0
  86. package/src/assets/images/A2AI-logo.png +0 -0
  87. package/src/assets/images/omnium-retail-logo-white.png +0 -0
  88. package/src/assets/images/omnium-retail-logo.png +0 -0
  89. package/src/assets/images/omnium-retail_icon.png +0 -0
  90. package/src/assets/plugin.svg +0 -1
  91. package/src/assets/repo.svg +0 -1
  92. package/src/assets/scss/_combinations.scss +0 -0
  93. package/src/assets/scss/_global.scss +0 -89
  94. package/src/assets/scss/index.scss +0 -2
  95. package/src/assets/stackalt.svg +0 -1
  96. package/src/components/AnalyticsBar/AnalyticsBar.stories.tsx +0 -236
  97. package/src/components/AnalyticsBar/helpers/codeMutation.tsx +0 -19
  98. package/src/components/AnalyticsBar/index.tsx +0 -76
  99. package/src/components/AnalyticsBar/interfaces/analyticsBar.tsx +0 -13
  100. package/src/components/AnalyticsBar/styles.module.scss +0 -137
  101. package/src/components/BellNotifications/BellNotifications.stories.tsx +0 -200
  102. package/src/components/BellNotifications/index.tsx +0 -154
  103. package/src/components/BellNotifications/styles.module.scss +0 -239
  104. package/src/components/Button/Button.stories.tsx +0 -26
  105. package/src/components/Button/index.tsx +0 -24
  106. package/src/components/Button/styles.module.scss +0 -70
  107. package/src/components/Category/Category.stories.tsx +0 -371
  108. package/src/components/Category/CategoryContent/index.tsx +0 -255
  109. package/src/components/Category/CategoryContent/styles.module.scss +0 -69
  110. package/src/components/Category/CategorySidebar/index.tsx +0 -344
  111. package/src/components/Category/CategorySidebar/styles.module.scss +0 -28
  112. package/src/components/Category/index.tsx +0 -58
  113. package/src/components/Category/styles.module.scss +0 -13
  114. package/src/components/CategoryReadOnly/CategoryReadOnly.stories.tsx +0 -274
  115. package/src/components/CategoryReadOnly/evaluationOptions.tsx +0 -81
  116. package/src/components/CategoryReadOnly/index.tsx +0 -328
  117. package/src/components/CategoryReadOnly/styles.module.scss +0 -214
  118. package/src/components/CategoryResponse/CategoryResponse.stories.tsx +0 -312
  119. package/src/components/CategoryResponse/evaluationOptions.tsx +0 -81
  120. package/src/components/CategoryResponse/index.tsx +0 -502
  121. package/src/components/CategoryResponse/styles.module.scss +0 -365
  122. package/src/components/DatePicker/DatePicker.stories.tsx +0 -16
  123. package/src/components/DatePicker/index.tsx +0 -38
  124. package/src/components/DatePicker/styles.module.scss +0 -3
  125. package/src/components/DatePickerTag/DatePickerTag.stories.tsx +0 -19
  126. package/src/components/DatePickerTag/index.tsx +0 -91
  127. package/src/components/DatePickerTag/styles.module.scss +0 -32
  128. package/src/components/DropdownButton/DropdownButton.stories.tsx +0 -24
  129. package/src/components/DropdownButton/index.tsx +0 -36
  130. package/src/components/DropdownButton/styles.module.scss +0 -9
  131. package/src/components/ExportTableData/ExportTableData.stories.tsx +0 -43
  132. package/src/components/ExportTableData/index.tsx +0 -37
  133. package/src/components/ExportTableData/styles.module.scss +0 -4
  134. package/src/components/Footer/Footer.stories.tsx +0 -15
  135. package/src/components/Footer/index.tsx +0 -45
  136. package/src/components/Footer/styles.module.scss +0 -38
  137. package/src/components/Footer2/Footer.stories.tsx +0 -184
  138. package/src/components/Footer2/index.tsx +0 -322
  139. package/src/components/Footer2/styles.module.scss +0 -292
  140. package/src/components/Header/Header.data.ts +0 -26
  141. package/src/components/Header/Header.stories.tsx +0 -236
  142. package/src/components/Header/Header.types.ts +0 -32
  143. package/src/components/Header/README.md +0 -38
  144. package/src/components/Header/index.tsx +0 -200
  145. package/src/components/Header/styles.module.scss +0 -216
  146. package/src/components/Input/Input.stories.tsx +0 -13
  147. package/src/components/Input/index.tsx +0 -31
  148. package/src/components/Input/styles.module.scss +0 -8
  149. package/src/components/InputCountryCode/index.tsx +0 -79
  150. package/src/components/InputCountryCode/inputCountryCode.stories.tsx +0 -55
  151. package/src/components/InputCountryCode/styles.module.scss +0 -3
  152. package/src/components/Label/Label.stories.tsx +0 -21
  153. package/src/components/Label/index.tsx +0 -19
  154. package/src/components/Label/styles.module.scss +0 -17
  155. package/src/components/Link/Link.stories.tsx +0 -30
  156. package/src/components/Link/index.tsx +0 -21
  157. package/src/components/Link/styles.module.scss +0 -24
  158. package/src/components/Menu/Menu.stories.tsx +0 -178
  159. package/src/components/Menu/helpers/codeMutation.tsx +0 -19
  160. package/src/components/Menu/index.tsx +0 -24
  161. package/src/components/Menu/styles.module.scss +0 -0
  162. package/src/components/MobileTable/MobileTable.stories.tsx +0 -27
  163. package/src/components/MobileTable/index.tsx +0 -102
  164. package/src/components/MobileTable/styles.module.scss +0 -75
  165. package/src/components/ModalConfirmation/ModalConfirmation.stories.tsx +0 -40
  166. package/src/components/ModalConfirmation/ModalStatusList.tsx +0 -5
  167. package/src/components/ModalConfirmation/index.tsx +0 -71
  168. package/src/components/ModalConfirmation/styles.module.scss +0 -62
  169. package/src/components/ModalWithTable/ModalWithTable.stories.tsx +0 -99
  170. package/src/components/ModalWithTable/index.tsx +0 -238
  171. package/src/components/ModalWithTable/styles.module.scss +0 -77
  172. package/src/components/Navigation/Navigation.stories.tsx +0 -21
  173. package/src/components/Navigation/index.tsx +0 -91
  174. package/src/components/Navigation/styles.module.scss +0 -91
  175. package/src/components/Notification/Notification.stories.tsx +0 -32
  176. package/src/components/Notification/index.tsx +0 -28
  177. package/src/components/Questions/Questions.stories.tsx +0 -37
  178. package/src/components/Questions/SingleQuestion/index.tsx +0 -337
  179. package/src/components/Questions/SingleQuestion/styles.module.scss +0 -142
  180. package/src/components/Questions/index.tsx +0 -124
  181. package/src/components/Questions/styles.modules.scss +0 -0
  182. package/src/components/Radio/Radio.stories.tsx +0 -43
  183. package/src/components/Radio/index.tsx +0 -26
  184. package/src/components/Radio/styles.module.scss +0 -24
  185. package/src/components/ResponseType/ResponseType.stories.tsx +0 -393
  186. package/src/components/ResponseType/index.tsx +0 -100
  187. package/src/components/ResponseType/styles.module.scss +0 -31
  188. package/src/components/ResponsiveTable/ResponsiveTable.stories.tsx +0 -386
  189. package/src/components/ResponsiveTable/index.tsx +0 -389
  190. package/src/components/ResponsiveTable/styles.module.scss +0 -153
  191. package/src/components/Select/Select.stories.tsx +0 -39
  192. package/src/components/Select/index.tsx +0 -27
  193. package/src/components/Select/styles.module.scss +0 -19
  194. package/src/components/Separator/Separator.stories.tsx +0 -22
  195. package/src/components/Separator/index.tsx +0 -27
  196. package/src/components/Separator/styles.module.scss +0 -25
  197. package/src/components/Sidebar/Sidebar.stories.tsx +0 -85
  198. package/src/components/Sidebar/index.tsx +0 -127
  199. package/src/components/Sidebar/styles.module.scss +0 -141
  200. package/src/components/Switch/Switch.stories.tsx +0 -14
  201. package/src/components/Switch/index.tsx +0 -18
  202. package/src/components/Switch/styles.module.scss +0 -7
  203. package/src/components/Table/Table.stories.tsx +0 -337
  204. package/src/components/Table/index.tsx +0 -313
  205. package/src/components/Table/styles.module.scss +0 -97
  206. package/src/components/Tag/Tag.stories.tsx +0 -32
  207. package/src/components/Tag/index.tsx +0 -295
  208. package/src/components/Tag/styles.module.scss +0 -104
  209. package/src/components/Upload/Upload.stories.tsx +0 -45
  210. package/src/components/Upload/index.tsx +0 -112
  211. package/src/components/Upload/styles.module.scss +0 -29
  212. package/src/components/UserInfo/UserInfo.stories.tsx +0 -38
  213. package/src/components/UserInfo/index.tsx +0 -77
  214. package/src/components/UserInfo/styles.module.scss +0 -35
  215. package/src/components/WebCam/WebCam.stories.tsx +0 -24
  216. package/src/components/WebCam/index.tsx +0 -73
  217. package/src/components/WebCam/styles.module.scss +0 -37
  218. package/src/components/index.tsx +0 -34
  219. package/src/constants/i18n.ts +0 -25
  220. package/src/constants/logoCompanyHelper.ts +0 -52
  221. package/src/constants/translationHelper.ts +0 -7
  222. package/src/index.ts +0 -3
  223. package/src/types/Global.d.ts +0 -4
  224. package/tsconfig.json +0 -29
  225. package/webpack.config.js +0 -51
  226. /package/dist/{types/components → components}/AnalyticsBar/interfaces/analyticsBar.d.ts +0 -0
  227. /package/dist/{types/components → components}/BellNotifications/index.d.ts +0 -0
  228. /package/dist/{types/components → components}/Category/CategoryContent/index.d.ts +0 -0
  229. /package/dist/{types/components → components}/Category/CategorySidebar/index.d.ts +0 -0
  230. /package/dist/{types/components → components}/CategoryReadOnly/evaluationOptions.d.ts +0 -0
  231. /package/dist/{types/components → components}/CategoryResponse/evaluationOptions.d.ts +0 -0
  232. /package/dist/{types/components → components}/ExportTableData/index.d.ts +0 -0
  233. /package/dist/{types/components → components}/Footer/index.d.ts +0 -0
  234. /package/dist/{types/components → components}/Label/index.d.ts +0 -0
  235. /package/dist/{types/components → components}/ModalConfirmation/ModalStatusList.d.ts +0 -0
  236. /package/dist/{types/components → components}/ModalConfirmation/index.d.ts +0 -0
  237. /package/dist/{types/components → components}/Navigation/index.d.ts +0 -0
  238. /package/dist/{types/components → components}/Questions/SingleQuestion/index.d.ts +0 -0
  239. /package/dist/{types/components → components}/Questions/index.d.ts +0 -0
  240. /package/dist/{types/components → components}/ResponseType/index.d.ts +0 -0
  241. /package/dist/{types/components → components}/Separator/index.d.ts +0 -0
  242. /package/dist/{types/components → components}/Sidebar/index.d.ts +0 -0
  243. /package/dist/{types/components → components}/UserInfo/index.d.ts +0 -0
  244. /package/dist/{types/components → components}/index.d.ts +0 -0
  245. /package/dist/{types/constants → constants}/i18n.d.ts +0 -0
  246. /package/dist/{types/constants → constants}/logoCompanyHelper.d.ts +0 -0
  247. /package/dist/{types/constants → constants}/translationHelper.d.ts +0 -0
  248. /package/dist/{types/index.d.ts → index.d.ts} +0 -0
  249. /package/{public → dist}/index.ts +0 -0
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- import type { MenuProps } from 'antd';
1
+ import { MenuProps } from 'antd';
2
+
3
3
  export type MenuItem = Required<MenuProps>['items'][number];
4
4
  export declare function getItem(label: React.ReactNode, key: React.Key, icon?: React.ReactNode, children?: MenuItem[], type?: 'group'): MenuItem;
@@ -1,2 +1,3 @@
1
- import { AnalyticsBarProps } from './interfaces/analyticsBar';
1
+ import { AnalyticsBarProps } from './interfaces/analyticsBar';
2
+
2
3
  export declare const AnalyticsBar: (props: AnalyticsBarProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
- import { ButtonProps } from 'antd';
1
+ import { ButtonProps } from 'antd';
2
+
2
3
  export interface CustomButtonProps extends ButtonProps {
3
4
  iconAlignRight?: boolean;
4
5
  buttonStyle?: string;
@@ -1,4 +1,5 @@
1
- import { DataNode } from './CategorySidebar';
1
+ import { DataNode } from './CategorySidebar';
2
+
2
3
  interface Category {
3
4
  data: DataNode[];
4
5
  serverReadyData: any;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  interface CategoryResponse {
3
4
  data: any;
4
5
  serverReadyData: any;
@@ -1,5 +1,6 @@
1
- import { UploadFile } from 'antd';
2
- import React from 'react';
1
+ import { UploadFile } from 'antd';
2
+ import { default as React } from 'react';
3
+
3
4
  interface CategoryResponse {
4
5
  data: any;
5
6
  serverReadyData: any;
@@ -1,4 +1,5 @@
1
- import { DatePickerProps } from 'antd';
1
+ import { DatePickerProps } from 'antd';
2
+
2
3
  export type CustomDatePickerProps = DatePickerProps & {
3
4
  isRangePicker?: boolean;
4
5
  onChange?: (a: any, b: any) => void;
@@ -1,4 +1,5 @@
1
- import { TagProps } from 'antd';
1
+ import { TagProps } from 'antd';
2
+
2
3
  export interface DatePickerTagProps extends TagProps {
3
4
  customTags?: any;
4
5
  tagsInfo?: any;
@@ -1,5 +1,6 @@
1
- import React from 'react';
2
- import { DropdownProps } from 'antd';
1
+ import { default as React } from 'react';
2
+ import { DropdownProps } from 'antd';
3
+
3
4
  export interface DropdownButtonProps extends DropdownProps {
4
5
  options?: {
5
6
  label: string;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  interface SubAction {
3
4
  key: string;
4
5
  label: string;
@@ -1,3 +1,4 @@
1
- import { MenuItem } from './Header.types';
1
+ import { MenuItem } from './Header.types';
2
+
2
3
  export declare const getMenuTopList: (onHome: () => void) => MenuItem[];
3
4
  export declare const getMenuBottomList: (onProfile: () => void, onLogout: () => void, userName?: string) => MenuItem[];
@@ -1,4 +1,5 @@
1
- import { BellNotification } from "components/BellNotifications";
1
+ import { BellNotification } from '../BellNotifications';
2
+
2
3
  export interface MenuItem {
3
4
  name: string;
4
5
  action: () => void;
@@ -1,4 +1,5 @@
1
- import { HeaderProps } from './Header.types';
1
+ import { HeaderProps } from './Header.types';
2
+
2
3
  /**
3
4
  * Header component to display navigation bar with dropdown menus and action button.
4
5
  * @param {HeaderProps} props - Properties passed to the component.
@@ -1,4 +1,5 @@
1
- import { FormItemProps, InputProps } from 'antd';
1
+ import { FormItemProps, InputProps } from 'antd';
2
+
2
3
  export interface FormInputFieldProps extends Omit<FormItemProps, "name"> {
3
4
  name: string;
4
5
  inputProps?: InputProps;
@@ -1,4 +1,5 @@
1
- import { FormItemProps, InputProps, SelectProps } from 'antd';
1
+ import { FormItemProps, InputProps, SelectProps } from 'antd';
2
+
2
3
  export interface FormInputCountryCodeProps extends Omit<FormItemProps, "name"> {
3
4
  name?: string;
4
5
  selectProps?: SelectProps;
@@ -1,4 +1,5 @@
1
- import { ButtonProps } from 'antd';
1
+ import { ButtonProps } from 'antd';
2
+
2
3
  export interface CustomLinkProps extends ButtonProps {
3
4
  iconAlignRight?: boolean;
4
5
  linkSecondary?: boolean;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- import type { MenuProps } from 'antd';
1
+ import { MenuProps } from 'antd';
2
+
3
3
  export type MenuItem = Required<MenuProps>['items'][number];
4
4
  export declare function getItem(label: React.ReactNode, key: React.Key, icon?: React.ReactNode, children?: MenuItem[], type?: 'group'): MenuItem;
@@ -1,2 +1,3 @@
1
- import type { MenuProps } from 'antd';
1
+ import { MenuProps } from 'antd';
2
+
2
3
  export declare const Menu: (props: MenuProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
- import { Dispatch, SetStateAction } from 'react';
1
+ import { Dispatch, SetStateAction } from 'react';
2
+
2
3
  interface Action {
3
4
  key: string;
4
5
  label: string;
@@ -1,4 +1,5 @@
1
- import { TableCustomProps } from '../Table';
1
+ import { TableCustomProps } from '../Table';
2
+
2
3
  export interface ModalWithTableProps {
3
4
  closeText: string;
4
5
  buttonText: string;
@@ -1,4 +1,5 @@
1
- import { ArgsProps } from 'antd/lib/notification';
1
+ import { ArgsProps } from 'antd/lib/notification';
2
+
2
3
  export interface ErrorNotificationProps extends ArgsProps {
3
4
  message: string;
4
5
  description: string;
@@ -1,5 +1,6 @@
1
- import type { RadioProps } from 'antd';
2
- import type { RadioGroupProps } from 'antd/lib/radio';
1
+ import { RadioProps } from 'antd';
2
+ import { RadioGroupProps } from 'antd/lib/radio';
3
+
3
4
  export declare const Radio: ({ ...radioProps }: RadioProps) => import("react/jsx-runtime").JSX.Element;
4
5
  export interface CustomRadioGroupProps extends RadioGroupProps {
5
6
  options: {
@@ -1,4 +1,5 @@
1
- import { TableProps } from 'antd';
1
+ import { TableProps } from 'antd';
2
+
2
3
  export interface FilterTableOptions {
3
4
  value: string;
4
5
  label: string;
@@ -1,4 +1,5 @@
1
- import { SelectProps as AntdSelectProps } from 'antd';
1
+ import { SelectProps as AntdSelectProps } from 'antd';
2
+
2
3
  export interface SelectProps extends AntdSelectProps {
3
4
  customClass?: string;
4
5
  }
@@ -1,4 +1,5 @@
1
- import { SwitchProps } from 'antd';
1
+ import { SwitchProps } from 'antd';
2
+
2
3
  export interface NewSwitchProps extends SwitchProps {
3
4
  customClass?: string;
4
5
  }
@@ -1,4 +1,5 @@
1
- import { TableProps } from 'antd';
1
+ import { TableProps } from 'antd';
2
+
2
3
  export interface FilterOptions {
3
4
  value: string;
4
5
  label: string;
@@ -1,5 +1,6 @@
1
- import React from 'react';
2
- import { TagProps } from 'antd';
1
+ import { default as React } from 'react';
2
+ import { TagProps } from 'antd';
3
+
3
4
  export interface customTagProps extends TagProps {
4
5
  customTags?: string[];
5
6
  tagsInfo?: (tags: string[]) => void;
@@ -1,5 +1,6 @@
1
- import type { UploadFile, UploadProps } from 'antd/es/upload/interface';
2
- import { Dispatch, SetStateAction } from 'react';
1
+ import { UploadFile, UploadProps } from 'antd/es/upload/interface';
2
+ import { Dispatch, SetStateAction } from 'react';
3
+
3
4
  interface UploadPropsExtended extends UploadProps {
4
5
  onImageChange?: (file: UploadFile | null) => void;
5
6
  initialFileList?: UploadFile[];
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  interface CameraCaptureProps {
3
4
  isCameraOn: boolean;
4
5
  customClass?: string;
@@ -1,4 +1,4 @@
1
- {
1
+ declare const _default: {
2
2
  "tableHeadings": {
3
3
  "key": "Key",
4
4
  "name": "Name",
@@ -139,4 +139,6 @@
139
139
  "markAllAsRead": "Mark all as read"
140
140
  }
141
141
  }
142
- }
142
+ };
143
+
144
+ export default _default;
@@ -1,4 +1,4 @@
1
- {
1
+ declare const _default: {
2
2
  "tableHeadings": {
3
3
  "key": "Clave",
4
4
  "name": "Nombre",
@@ -139,4 +139,6 @@
139
139
  "markAllAsRead": "Marcar todo como leído"
140
140
  }
141
141
  }
142
- }
142
+ };
143
+
144
+ export default _default;
@@ -1,4 +1,4 @@
1
- {
1
+ declare const _default: {
2
2
  "tableHeadings": {
3
3
  "key": "Chave",
4
4
  "name": "Nome",
@@ -140,3 +140,6 @@
140
140
  }
141
141
  }
142
142
  }
143
+ ;
144
+
145
+ export default _default;
package/package.json CHANGED
@@ -1,184 +1,99 @@
1
- {
2
- "name": "@omniumretail/component-library",
3
- "version": "1.2.70",
4
- "private": false,
5
- "main": "dist/bundle.js",
6
- "typings": "./dist/types/index",
7
- "dependencies": {
8
- "@ant-design/icons": "^4.8.0",
9
- "@hello-pangea/dnd": "^18.0.1",
10
- "@svgr/webpack": "^5.5.0",
11
- "@testing-library/jest-dom": "^5.14.1",
12
- "@testing-library/react": "^13.0.0",
13
- "@testing-library/user-event": "^13.2.1",
14
- "@types/jest": "^29.2.4",
15
- "@types/node": "^18.11.11",
16
- "@types/react": "^18.0.26",
17
- "@types/react-beautiful-dnd": "^13.1.3",
18
- "@types/react-dom": "^18.0.9",
19
- "antd": "^5.18.3",
20
- "antd-img-crop": "^4.10.2",
21
- "babel-jest": "^27.4.2",
22
- "babel-loader": "^8.2.3",
23
- "babel-plugin-named-asset-import": "^0.3.8",
24
- "babel-preset-react-app": "^10.0.1",
25
- "browser-image-compression": "^2.0.2",
26
- "browserslist": "^4.18.1",
27
- "camelcase": "^6.2.1",
28
- "case-sensitive-paths-webpack-plugin": "^2.4.0",
29
- "classnames": "^2.3.2",
30
- "css-loader": "^6.5.1",
31
- "css-minimizer-webpack-plugin": "^3.2.0",
32
- "dotenv": "^10.0.0",
33
- "dotenv-expand": "^5.1.0",
34
- "eslint": "^8.3.0",
35
- "eslint-config-react-app": "^7.0.1",
36
- "eslint-webpack-plugin": "^3.1.1",
37
- "file-loader": "^6.2.0",
38
- "fs-extra": "^10.0.0",
39
- "html-webpack-plugin": "^5.5.0",
40
- "html2canvas": "^1.4.1",
41
- "i18next": "^22.4.9",
42
- "i18next-browser-languagedetector": "^7.0.1",
43
- "i18next-fetch-backend": "^5.0.1",
44
- "identity-obj-proxy": "^3.0.0",
45
- "jest": "^27.4.3",
46
- "jest-resolve": "^27.4.2",
47
- "jest-watch-typeahead": "^1.0.0",
48
- "jspdf": "^2.5.2",
49
- "lodash.merge": "^4.6.2",
50
- "mini-css-extract-plugin": "^2.7.2",
51
- "moment": "^2.29.4",
52
- "postcss": "^8.4.4",
53
- "postcss-loader": "^6.2.1",
54
- "prompts": "^2.4.2",
55
- "rc-tween-one": "^3.0.6",
56
- "react": "^18.2.0",
57
- "react-app-polyfill": "^3.0.0",
58
- "react-dev-utils": "^12.0.1",
59
- "react-dom": "^18.2.0",
60
- "react-easy-crop": "^4.7.4",
61
- "react-i18next": "^12.1.4",
62
- "react-webcam": "^7.1.1",
63
- "sass": "^1.56.1",
64
- "sass-loader": "^12.3.0",
65
- "style-loader": "^3.3.1",
66
- "terser-webpack-plugin": "^5.2.5",
67
- "typescript": "^4.9.3",
68
- "url-loader": "^4.1.1",
69
- "web-vitals": "^2.1.0",
70
- "xlsx": "^0.18.5"
71
- },
72
- "scripts": {
73
- "prepublish": "rd /s /q .\\dist && yarn build",
74
- "start": "webpack -w",
75
- "build": "webpack",
76
- "test": "node scripts/test.js",
77
- "storybook": "storybook dev -p 6006",
78
- "build-storybook": "storybook build",
79
- "deploy": "aws s3 sync storybook-static/ s3://changeToBucketName"
80
- },
81
- "eslintConfig": {
82
- "extends": [
83
- "react-app",
84
- "react-app/jest"
85
- ],
86
- "overrides": [
87
- {
88
- "files": [
89
- "**/*.stories.*"
90
- ],
91
- "rules": {
92
- "import/no-anonymous-default-export": "off"
93
- }
94
- }
95
- ]
96
- },
97
- "browserslist": {
98
- "production": [
99
- ">0.2%",
100
- "not dead",
101
- "not op_mini all"
102
- ],
103
- "development": [
104
- "last 1 chrome version",
105
- "last 1 firefox version",
106
- "last 1 safari version"
107
- ]
108
- },
109
- "devDependencies": {
110
- "@storybook/addon-docs": "9.1.2",
111
- "@storybook/addon-links": "^9.1.2",
112
- "@storybook/builder-webpack5": "^9.1.2",
113
- "@storybook/cli": "^9.1.2",
114
- "@storybook/manager-webpack5": "^6.5.14",
115
- "@storybook/preset-create-react-app": "^9.1.2",
116
- "@storybook/react-webpack5": "^9.1.2",
117
- "@storybook/testing-library": "^0.0.13",
118
- "prop-types": "^15.8.1",
119
- "react-scripts": "^5.0.1",
120
- "storybook-addon-sass-postcss": "^0.1.3",
121
- "storybook-css-modules": "^1.0.8",
122
- "ts-loader": "^9.4.2",
123
- "webpack": "^5.75.0",
124
- "webpack-cli": "^5.0.1"
125
- },
126
- "jest": {
127
- "roots": [
128
- "<rootDir>/src"
129
- ],
130
- "collectCoverageFrom": [
131
- "src/**/*.{js,jsx,ts,tsx}",
132
- "!src/**/*.d.ts"
133
- ],
134
- "setupFiles": [
135
- "react-app-polyfill/jsdom"
136
- ],
137
- "setupFilesAfterEnv": [
138
- "<rootDir>/src/setupTests.ts"
139
- ],
140
- "testMatch": [
141
- "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
142
- "<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
143
- ],
144
- "testEnvironment": "jsdom",
145
- "transform": {
146
- "^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
147
- "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
148
- "^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
149
- },
150
- "transformIgnorePatterns": [
151
- "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
152
- "^.+\\.module\\.(css|sass|scss)$"
153
- ],
154
- "modulePaths": [
155
- "/Users/carlossoares/Workplace/Sitoo/components-lib-omnium/component-library/src"
156
- ],
157
- "moduleNameMapper": {
158
- "^react-native$": "react-native-web",
159
- "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
160
- },
161
- "moduleFileExtensions": [
162
- "web.js",
163
- "js",
164
- "web.ts",
165
- "ts",
166
- "web.tsx",
167
- "tsx",
168
- "json",
169
- "web.jsx",
170
- "jsx",
171
- "node"
172
- ],
173
- "watchPlugins": [
174
- "jest-watch-typeahead/filename",
175
- "jest-watch-typeahead/testname"
176
- ],
177
- "resetMocks": true
178
- },
179
- "babel": {
180
- "presets": [
181
- "react-app"
182
- ]
183
- }
1
+ {
2
+ "name": "@omniumretail/component-library",
3
+ "version": "1.2.72",
4
+ "private": false,
5
+ "main": "dist/component-library.umd.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "require": "./dist/component-library.umd.js"
11
+ }
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "dependencies": {
17
+ "@ant-design/icons": "^4.8.0",
18
+ "@hello-pangea/dnd": "^18.0.1",
19
+ "@testing-library/react": "^13.0.0",
20
+ "@testing-library/user-event": "^13.2.1",
21
+ "@types/node": "^18.11.11",
22
+ "@types/react": "^18.0.26",
23
+ "@types/react-beautiful-dnd": "^13.1.3",
24
+ "@types/react-dom": "^18.0.9",
25
+ "antd": "^5.18.3",
26
+ "antd-img-crop": "^4.10.2",
27
+ "browser-image-compression": "^2.0.2",
28
+ "browserslist": "^4.18.1",
29
+ "camelcase": "^6.2.1",
30
+ "classnames": "^2.3.2",
31
+ "dayjs": "^1.11.10",
32
+ "dotenv": "^10.0.0",
33
+ "dotenv-expand": "^5.1.0",
34
+ "eslint": "^8.3.0",
35
+ "eslint-config-react-app": "^7.0.1",
36
+ "fs-extra": "^10.0.0",
37
+ "html2canvas": "^1.4.1",
38
+ "i18next": "^22.4.9",
39
+ "i18next-browser-languagedetector": "^7.0.1",
40
+ "i18next-fetch-backend": "^5.0.1",
41
+ "identity-obj-proxy": "^3.0.0",
42
+ "jest": "^27.4.3",
43
+ "jest-resolve": "^27.4.2",
44
+ "jest-watch-typeahead": "^1.0.0",
45
+ "jspdf": "^2.5.2",
46
+ "lodash.merge": "^4.6.2",
47
+ "postcss": "^8.4.4",
48
+ "prompts": "^2.4.2",
49
+ "rc-tween-one": "^3.0.6",
50
+ "react": "^18.2.0",
51
+ "react-app-polyfill": "^3.0.0",
52
+ "react-dom": "^18.2.0",
53
+ "react-easy-crop": "^4.7.4",
54
+ "react-i18next": "^12.1.4",
55
+ "react-webcam": "^7.1.1",
56
+ "sass": "^1.56.1",
57
+ "sass-loader": "^12.3.0",
58
+ "typescript": "^4.9.3",
59
+ "web-vitals": "^2.1.0",
60
+ "xlsx": "^0.18.5"
61
+ },
62
+ "scripts": {
63
+ "prepublish": "rd /s /q .\\dist && yarn build",
64
+ "dev": "vite",
65
+ "build": "vite build",
66
+ "preview": "vite preview",
67
+ "storybook": "storybook dev -p 6006",
68
+ "build-storybook": "storybook build",
69
+ "deploy": "aws s3 sync storybook-static/ s3://changeToBucketName",
70
+ "analyze": "webpack --json > stats.json && webpack-bundle-analyzer stats.json"
71
+ },
72
+ "browserslist": {
73
+ "production": [
74
+ ">0.2%",
75
+ "not dead",
76
+ "not op_mini all"
77
+ ],
78
+ "development": [
79
+ "last 1 chrome version",
80
+ "last 1 firefox version",
81
+ "last 1 safari version"
82
+ ]
83
+ },
84
+ "devDependencies": {
85
+ "@storybook/addon-docs": "9.1.2",
86
+ "@storybook/addon-links": "^9.1.2",
87
+ "@storybook/cli": "^9.1.2",
88
+ "@storybook/react-vite": "^9.1.2",
89
+ "@storybook/test": "^8.6.14",
90
+ "@types/lodash.merge": "^4.6.9",
91
+ "@vitejs/plugin-react": "^5.0.1",
92
+ "prop-types": "^15.8.1",
93
+ "storybook-css-modules": "^1.0.8",
94
+ "tsconfig-paths": "^4.2.0",
95
+ "vite": "^7.1.3",
96
+ "vite-plugin-css-injected-by-js": "^3.5.2",
97
+ "vite-plugin-dts": "^4.5.4"
98
+ }
184
99
  }
package/NPMPUBLISH.md DELETED
@@ -1,29 +0,0 @@
1
- ## How to Publish a Package on npm
2
-
3
- Follow these steps to publish your package on npm:
4
-
5
- 1. **Set up your package**
6
-
7
- Navigate to your project directory in the terminal. If you don't have a `package.json` file, create one by running `npm init` and fill out the prompts. If you want to skip the prompts and use the default configuration, run `npm init -y`.
8
-
9
- 2. **Create your package**
10
-
11
- Write your package code and make sure it works as expected. Update the `main` entry in your `package.json` file to point to your package entry point (like `index.js`).
12
-
13
- 3. **Login to npm**
14
-
15
- If you're not logged into npm, login via the terminal using `npm login`. If you don't have an account, sign up on the npm website. You'll be prompted to enter your username, password, and email.
16
-
17
- 4. **Version your package**
18
-
19
- Decide your package version. npm uses semantic versioning, or `semver`. If you're publishing for the first time, it's likely already at version `1.0.0` or whatever you set during `npm init`. If you're updating, update the version number in `package.json` or use `npm version <update_type>`, replacing `<update_type>` with `patch`, `minor`, or `major` as appropriate.
20
-
21
- 5. **Publish your package**
22
-
23
- Publish your package using `npm publish`. Your package will then be publicly available on npm.
24
-
25
- 6. **Verify your package**
26
-
27
- Check that your package is available by going to `https://www.npmjs.com/package/<your-package-name>`, replacing `<your-package-name>` with the name of your package.
28
-
29
- Remember, to publish updates, update the version number in your `package.json` file or use the `npm version` command, then run `npm publish` again.