@omniumretail/component-library 1.2.71 → 1.2.73

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 (191) hide show
  1. package/package.json +6 -3
  2. package/NPMPUBLISH.md +0 -29
  3. package/bitbucket-pipelines.yml +0 -95
  4. package/dist/components/AnalyticsBar/AnalyticsBar.stories.d.ts +0 -5
  5. package/dist/components/BellNotifications/BellNotifications.stories.d.ts +0 -5
  6. package/dist/components/Button/Button.stories.d.ts +0 -6
  7. package/dist/components/Category/Category.stories.d.ts +0 -3
  8. package/dist/components/CategoryReadOnly/CategoryReadOnly.stories.d.ts +0 -3
  9. package/dist/components/CategoryResponse/CategoryResponse.stories.d.ts +0 -3
  10. package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -5
  11. package/dist/components/DatePickerTag/DatePickerTag.stories.d.ts +0 -5
  12. package/dist/components/DropdownButton/DropdownButton.stories.d.ts +0 -5
  13. package/dist/components/ExportTableData/ExportTableData.stories.d.ts +0 -3
  14. package/dist/components/Footer/Footer.stories.d.ts +0 -5
  15. package/dist/components/Footer2/Footer.stories.d.ts +0 -6
  16. package/dist/components/Header/Header.stories.d.ts +0 -5
  17. package/dist/components/Input/Input.stories.d.ts +0 -5
  18. package/dist/components/InputCountryCode/inputCountryCode.stories.d.ts +0 -5
  19. package/dist/components/Label/Label.stories.d.ts +0 -6
  20. package/dist/components/Link/Link.stories.d.ts +0 -7
  21. package/dist/components/Menu/Menu.stories.d.ts +0 -5
  22. package/dist/components/MobileTable/MobileTable.stories.d.ts +0 -5
  23. package/dist/components/ModalConfirmation/ModalConfirmation.stories.d.ts +0 -5
  24. package/dist/components/ModalWithTable/ModalWithTable.stories.d.ts +0 -5
  25. package/dist/components/Navigation/Navigation.stories.d.ts +0 -5
  26. package/dist/components/Notification/Notification.stories.d.ts +0 -5
  27. package/dist/components/Questions/Questions.stories.d.ts +0 -3
  28. package/dist/components/Radio/Radio.stories.d.ts +0 -5
  29. package/dist/components/ResponseType/ResponseType.stories.d.ts +0 -3
  30. package/dist/components/ResponsiveTable/ResponsiveTable.stories.d.ts +0 -9
  31. package/dist/components/Select/Select.stories.d.ts +0 -6
  32. package/dist/components/Separator/Separator.stories.d.ts +0 -6
  33. package/dist/components/Sidebar/Sidebar.stories.d.ts +0 -6
  34. package/dist/components/Switch/Switch.stories.d.ts +0 -5
  35. package/dist/components/Table/Table.stories.d.ts +0 -9
  36. package/dist/components/Tag/Tag.stories.d.ts +0 -5
  37. package/dist/components/Upload/Upload.stories.d.ts +0 -3
  38. package/dist/components/UserInfo/UserInfo.stories.d.ts +0 -3
  39. package/dist/components/WebCam/WebCam.stories.d.ts +0 -3
  40. package/dist/types/index.d.ts +0 -2
  41. package/public/index.ts +0 -0
  42. package/src/assets/code-brackets.svg +0 -1
  43. package/src/assets/colors.svg +0 -1
  44. package/src/assets/comments.svg +0 -1
  45. package/src/assets/direction.svg +0 -1
  46. package/src/assets/flow.svg +0 -1
  47. package/src/assets/fonts/Silka-Bold.woff2 +0 -0
  48. package/src/assets/fonts/Silka-Regular.woff2 +0 -0
  49. package/src/assets/images/A2AI-logo.png +0 -0
  50. package/src/assets/images/omnium-retail-logo-white.png +0 -0
  51. package/src/assets/images/omnium-retail-logo.png +0 -0
  52. package/src/assets/images/omnium-retail_icon.png +0 -0
  53. package/src/assets/plugin.svg +0 -1
  54. package/src/assets/repo.svg +0 -1
  55. package/src/assets/scss/_combinations.scss +0 -0
  56. package/src/assets/scss/_global.scss +0 -89
  57. package/src/assets/scss/index.scss +0 -2
  58. package/src/assets/stackalt.svg +0 -1
  59. package/src/components/AnalyticsBar/AnalyticsBar.stories.tsx +0 -236
  60. package/src/components/AnalyticsBar/helpers/codeMutation.tsx +0 -19
  61. package/src/components/AnalyticsBar/index.tsx +0 -76
  62. package/src/components/AnalyticsBar/interfaces/analyticsBar.tsx +0 -13
  63. package/src/components/AnalyticsBar/styles.module.scss +0 -137
  64. package/src/components/BellNotifications/BellNotifications.stories.tsx +0 -200
  65. package/src/components/BellNotifications/index.tsx +0 -154
  66. package/src/components/BellNotifications/styles.module.scss +0 -239
  67. package/src/components/Button/Button.stories.tsx +0 -26
  68. package/src/components/Button/index.tsx +0 -24
  69. package/src/components/Button/styles.module.scss +0 -70
  70. package/src/components/Category/Category.stories.tsx +0 -371
  71. package/src/components/Category/CategoryContent/index.tsx +0 -255
  72. package/src/components/Category/CategoryContent/styles.module.scss +0 -69
  73. package/src/components/Category/CategorySidebar/index.tsx +0 -344
  74. package/src/components/Category/CategorySidebar/styles.module.scss +0 -28
  75. package/src/components/Category/index.tsx +0 -58
  76. package/src/components/Category/styles.module.scss +0 -13
  77. package/src/components/CategoryReadOnly/CategoryReadOnly.stories.tsx +0 -274
  78. package/src/components/CategoryReadOnly/evaluationOptions.tsx +0 -81
  79. package/src/components/CategoryReadOnly/index.tsx +0 -328
  80. package/src/components/CategoryReadOnly/styles.module.scss +0 -214
  81. package/src/components/CategoryResponse/CategoryResponse.stories.tsx +0 -311
  82. package/src/components/CategoryResponse/evaluationOptions.tsx +0 -81
  83. package/src/components/CategoryResponse/index.tsx +0 -502
  84. package/src/components/CategoryResponse/styles.module.scss +0 -365
  85. package/src/components/DatePicker/DatePicker.stories.tsx +0 -16
  86. package/src/components/DatePicker/index.tsx +0 -38
  87. package/src/components/DatePicker/styles.module.scss +0 -3
  88. package/src/components/DatePickerTag/DatePickerTag.stories.tsx +0 -19
  89. package/src/components/DatePickerTag/index.tsx +0 -91
  90. package/src/components/DatePickerTag/styles.module.scss +0 -32
  91. package/src/components/DropdownButton/DropdownButton.stories.tsx +0 -24
  92. package/src/components/DropdownButton/index.tsx +0 -36
  93. package/src/components/DropdownButton/styles.module.scss +0 -9
  94. package/src/components/ExportTableData/ExportTableData.stories.tsx +0 -43
  95. package/src/components/ExportTableData/index.tsx +0 -37
  96. package/src/components/ExportTableData/styles.module.scss +0 -4
  97. package/src/components/Footer/Footer.stories.tsx +0 -15
  98. package/src/components/Footer/index.tsx +0 -45
  99. package/src/components/Footer/styles.module.scss +0 -38
  100. package/src/components/Footer2/Footer.stories.tsx +0 -184
  101. package/src/components/Footer2/index.tsx +0 -322
  102. package/src/components/Footer2/styles.module.scss +0 -292
  103. package/src/components/Header/Header.data.ts +0 -26
  104. package/src/components/Header/Header.stories.tsx +0 -236
  105. package/src/components/Header/Header.types.ts +0 -32
  106. package/src/components/Header/README.md +0 -38
  107. package/src/components/Header/index.tsx +0 -200
  108. package/src/components/Header/styles.module.scss +0 -216
  109. package/src/components/Input/Input.stories.tsx +0 -13
  110. package/src/components/Input/index.tsx +0 -31
  111. package/src/components/Input/styles.module.scss +0 -8
  112. package/src/components/InputCountryCode/index.tsx +0 -79
  113. package/src/components/InputCountryCode/inputCountryCode.stories.tsx +0 -55
  114. package/src/components/InputCountryCode/styles.module.scss +0 -3
  115. package/src/components/Label/Label.stories.tsx +0 -21
  116. package/src/components/Label/index.tsx +0 -19
  117. package/src/components/Label/styles.module.scss +0 -17
  118. package/src/components/Link/Link.stories.tsx +0 -30
  119. package/src/components/Link/index.tsx +0 -21
  120. package/src/components/Link/styles.module.scss +0 -24
  121. package/src/components/Menu/Menu.stories.tsx +0 -178
  122. package/src/components/Menu/helpers/codeMutation.tsx +0 -19
  123. package/src/components/Menu/index.tsx +0 -24
  124. package/src/components/Menu/styles.module.scss +0 -0
  125. package/src/components/MobileTable/MobileTable.stories.tsx +0 -27
  126. package/src/components/MobileTable/index.tsx +0 -102
  127. package/src/components/MobileTable/styles.module.scss +0 -75
  128. package/src/components/ModalConfirmation/ModalConfirmation.stories.tsx +0 -40
  129. package/src/components/ModalConfirmation/ModalStatusList.tsx +0 -5
  130. package/src/components/ModalConfirmation/index.tsx +0 -71
  131. package/src/components/ModalConfirmation/styles.module.scss +0 -62
  132. package/src/components/ModalWithTable/ModalWithTable.stories.tsx +0 -99
  133. package/src/components/ModalWithTable/index.tsx +0 -238
  134. package/src/components/ModalWithTable/styles.module.scss +0 -77
  135. package/src/components/Navigation/Navigation.stories.tsx +0 -21
  136. package/src/components/Navigation/index.tsx +0 -91
  137. package/src/components/Navigation/styles.module.scss +0 -91
  138. package/src/components/Notification/Notification.stories.tsx +0 -32
  139. package/src/components/Notification/index.tsx +0 -28
  140. package/src/components/Questions/Questions.stories.tsx +0 -37
  141. package/src/components/Questions/SingleQuestion/index.tsx +0 -337
  142. package/src/components/Questions/SingleQuestion/styles.module.scss +0 -142
  143. package/src/components/Questions/index.tsx +0 -124
  144. package/src/components/Questions/styles.modules.scss +0 -0
  145. package/src/components/Radio/Radio.stories.tsx +0 -43
  146. package/src/components/Radio/index.tsx +0 -26
  147. package/src/components/Radio/styles.module.scss +0 -24
  148. package/src/components/ResponseType/ResponseType.stories.tsx +0 -393
  149. package/src/components/ResponseType/index.tsx +0 -100
  150. package/src/components/ResponseType/styles.module.scss +0 -31
  151. package/src/components/ResponsiveTable/ResponsiveTable.stories.tsx +0 -386
  152. package/src/components/ResponsiveTable/index.tsx +0 -389
  153. package/src/components/ResponsiveTable/styles.module.scss +0 -153
  154. package/src/components/Select/Select.stories.tsx +0 -39
  155. package/src/components/Select/index.tsx +0 -27
  156. package/src/components/Select/styles.module.scss +0 -19
  157. package/src/components/Separator/Separator.stories.tsx +0 -22
  158. package/src/components/Separator/index.tsx +0 -27
  159. package/src/components/Separator/styles.module.scss +0 -25
  160. package/src/components/Sidebar/Sidebar.stories.tsx +0 -85
  161. package/src/components/Sidebar/index.tsx +0 -127
  162. package/src/components/Sidebar/styles.module.scss +0 -141
  163. package/src/components/Switch/Switch.stories.tsx +0 -14
  164. package/src/components/Switch/index.tsx +0 -18
  165. package/src/components/Switch/styles.module.scss +0 -7
  166. package/src/components/Table/Table.stories.tsx +0 -337
  167. package/src/components/Table/index.tsx +0 -313
  168. package/src/components/Table/styles.module.scss +0 -97
  169. package/src/components/Tag/Tag.stories.tsx +0 -32
  170. package/src/components/Tag/index.tsx +0 -295
  171. package/src/components/Tag/styles.module.scss +0 -104
  172. package/src/components/Upload/Upload.stories.tsx +0 -45
  173. package/src/components/Upload/index.tsx +0 -112
  174. package/src/components/Upload/styles.module.scss +0 -29
  175. package/src/components/UserInfo/UserInfo.stories.tsx +0 -38
  176. package/src/components/UserInfo/index.tsx +0 -77
  177. package/src/components/UserInfo/styles.module.scss +0 -35
  178. package/src/components/WebCam/WebCam.stories.tsx +0 -24
  179. package/src/components/WebCam/index.tsx +0 -73
  180. package/src/components/WebCam/styles.module.scss +0 -37
  181. package/src/components/index.tsx +0 -34
  182. package/src/constants/i18n.ts +0 -25
  183. package/src/constants/logoCompanyHelper.ts +0 -52
  184. package/src/constants/translationHelper.ts +0 -7
  185. package/src/index.ts +0 -3
  186. package/src/locales/en.json +0 -142
  187. package/src/locales/es.json +0 -142
  188. package/src/locales/pt.json +0 -142
  189. package/src/types/Global.d.ts +0 -4
  190. package/tsconfig.json +0 -24
  191. package/vite.config.js +0 -51
@@ -1,142 +0,0 @@
1
- {
2
- "tableHeadings": {
3
- "key": "Clave",
4
- "name": "Nombre",
5
- "mecanographicNumber": "Código de Empleado",
6
- "store": "Tienda",
7
- "role": "Rol",
8
- "type": "Tipo",
9
- "id": "ID",
10
- "action": "Acción"
11
- },
12
- "userInfoColumn": {
13
- "Date": "Fecha",
14
- "Store": "Tienda",
15
- "Team": "Equipo",
16
- "Supervisor": "Supervisor",
17
- "TypeOfContract": "Tipo de Contrato",
18
- "Nationality": "Nacionalidad",
19
- "CivilStatus": "Estado Civil",
20
- "IdentificationDocument": "Documento de Identificación",
21
- "NTaxpayer": "Número de Contribuyente",
22
- "NIB": "NIB",
23
- "SocialSecurity": "Seguro Social",
24
- "NChildren": "Número de Hijos",
25
- "Workload": "Carga de Trabajo",
26
- "Description": "Descripción",
27
- "Comments": "Comentarios"
28
- },
29
- "navigation": {
30
- "back": "Atrás",
31
- "logout": "Cerrar Sesión",
32
- "home": "Inicio",
33
- "profile": "Perfil",
34
- "notifications": "Notificaciones",
35
- "create": "Crear",
36
- "delete": "Eliminar",
37
- "edit": "Editar",
38
- "export": "Exportar",
39
- "print": "Imprimir",
40
- "update": "Actualizar"
41
- },
42
- "actions": {
43
- "one": "Uno",
44
- "two": "Dos"
45
- },
46
- "components": {
47
- "category": {
48
- "addQuestion": "Agregar Pregunta",
49
- "placeholderInfo": "Información de Marcador",
50
- "errorInfo": "Error de Información",
51
- "placeholderQuestion": "Pregunta",
52
- "errorQuestion": "Error/Pregunta Faltante",
53
- "placeholderResponse": "Respuesta",
54
- "placeholderGrade": "Calificación",
55
- "errorGrade": "Error/Calificación Faltante",
56
- "newCategory": "Nueva Categoría",
57
- "mandatoryAnswer": "Respuesta obligatoria",
58
- "emphasisAnswer": "Resaltar",
59
- "responseType": "Tipo de respuesta",
60
- "errorResponseType": "Tipo de respuesta faltante",
61
- "header": "Cabecera",
62
- "color": "Color asignado",
63
- "flagged": "Destacar",
64
- "multipleChoise": "Selección múltiple",
65
- "placeholderScore": "Puntuación",
66
- "answerNameIsMissing": "Falta el nombre",
67
- "typeResponseNameIsMissing": "Nombre del tipo de respuesta que falta",
68
- "responseTypeName": "Nombre del tipo de respuesta",
69
- "store": "Tienda",
70
- "date": "Fecha",
71
- "author": "Autor"
72
- },
73
- "categorySidBar": {
74
- "addCategory": "Agregar Categoría",
75
- "removeCategory": "Eliminar Categoría",
76
- "categories": "Categorías"
77
- },
78
- "categoryContent": {
79
- "message": "Por favor, seleccione una categoría en la barra lateral",
80
- "categoryName": "Nombre de la Categoría",
81
- "tamplateName": "Nome de la plantilla",
82
- "editCategory": "Editar Categoría",
83
- "categoryNameError": "Error/Nombre de Categoría Faltante",
84
- "templateNameError": "Error/Nombre de la plantilla",
85
- "weighting": "Ponderación",
86
- "openAnswer": "Respuesta Abierta",
87
- "yesNoAnswer": "Respuesta Si/No",
88
- "answerOption": "Opción de Respuesta",
89
- "answers": "Respuestas"
90
- },
91
- "categoryResponse": {
92
- "notApplicable": "No Aplicable",
93
- "answer": "Respuesta",
94
- "yes": "Si",
95
- "no": "No",
96
- "note": "Nota",
97
- "actions": "Acciones",
98
- "editNote": "Editar Nota",
99
- "addNote": "Agregar Nota",
100
- "createAction": "Acción",
101
- "loadFile": "Media",
102
- "placeholderForMultiple": "Seleccione una o más opciones",
103
- "placeholderForSingular": "Seleccione una opción"
104
- },
105
- "categoryReadOnly": {
106
- "categories": "Categorías",
107
- "categoryAverage": "Promedio de la Categoría",
108
- "userResponse": "Respuesta del Usuario:",
109
- "supervisorResponse": "Respuesta del Supervisor:"
110
- },
111
- "analyticsBar": {
112
- "desc": "Descendente",
113
- "asc": "Ascendente"
114
- },
115
- "tag": {
116
- "search": "Buscar",
117
- "advancedFields": "Filtros Avanzados",
118
- "State": "Estado",
119
- "inactiveSwitch": "Incluir inactivos"
120
- },
121
- "table": {
122
- "selectAll": "Seleccionar Todo",
123
- "deselectAll": "Deseleccionar Todo"
124
- },
125
- "datePickerTag": {
126
- "placeholder": "Seleccionar Fecha"
127
- },
128
- "webCam": {
129
- "takePhoto": "Tomar foto",
130
- "confirm": "Confirme",
131
- "takeAgain": "Tomar de nuevo"
132
- },
133
- "upload": {
134
- "loadFile": "Cargar archivo"
135
- },
136
- "bellNotifications": {
137
- "noNotifications": "Sin notificaciones",
138
- "onlyShowNoRead": "Mostrar sólo no leídas",
139
- "markAllAsRead": "Marcar todo como leído"
140
- }
141
- }
142
- }
@@ -1,142 +0,0 @@
1
- {
2
- "tableHeadings": {
3
- "key": "Chave",
4
- "name": "Nome",
5
- "mecanographicNumber": "Número Mecanográfico",
6
- "store": "Loja",
7
- "role": "Posição",
8
- "type": "Tipo",
9
- "id": "Id",
10
- "action": "Ações"
11
- },
12
- "userInfoColumn": {
13
- "Date": "Data",
14
- "Store": "Loja",
15
- "Team": "Equipa em Gestão",
16
- "Supervisor": "Supervisor",
17
- "TypeOfContract": "Tipo de contrato",
18
- "Nationality": "Nacionalidade",
19
- "CivilStatus": "Estado Civil",
20
- "IdentificationDocument": "Doc.Identificação",
21
- "NTaxpayer": "Nº Contribuinte",
22
- "NIB": "NIB",
23
- "SocialSecurity": "Nr Segurança Social",
24
- "NChildren": "Nº Filhos",
25
- "Workload": "Carga horária",
26
- "Description": "Descrição",
27
- "Comments": "Comentários"
28
- },
29
- "navigation": {
30
- "back": "Voltar",
31
- "logout": "Terminar Sessão",
32
- "home": "Início",
33
- "profile": "Perfil",
34
- "notifications": "Notificações",
35
- "create": "Criar",
36
- "delete": "Apagar",
37
- "edit": "Editar",
38
- "export": "Exportar",
39
- "print": "Imprimir",
40
- "update": "Atualizar"
41
- },
42
- "actions": {
43
- "one": "um",
44
- "two": "dois"
45
- },
46
- "components": {
47
- "category": {
48
- "addQuestion": "Adicionar questão",
49
- "placeholderInfo": "Informação da questão",
50
- "errorInfo": "Informação da questão em falta",
51
- "placeholderQuestion": "Questão",
52
- "placeholderResponse": "Resposta",
53
- "errorQuestion": "Questão em falta",
54
- "placeholderGrade": "Ponderação",
55
- "errorGrade": "Ponderação em falta",
56
- "newCategory": "Nova categoria",
57
- "mandatoryAnswer": "Resposta obrigatória",
58
- "emphasisAnswer": "Destaque",
59
- "responseType": "Tipo de resposta",
60
- "errorResponseType": "Tipo de resposta em falta",
61
- "answerNameIsMissing": "Nome em falta",
62
- "header": "Cabeçalho",
63
- "color": "Cor atribuída",
64
- "flagged": "Destacar",
65
- "multipleChoise": "Seleção múltipla",
66
- "placeholderScore": "Pontuação",
67
- "typeResponseNameIsMissing": "Nome do tipo de resposta em falta",
68
- "responseTypeName": "Nome do tipo de resposta",
69
- "store": "Loja",
70
- "date": "Data",
71
- "author": "Autor"
72
- },
73
- "categorySidBar": {
74
- "addCategory": "Adicionar categoria",
75
- "removeCategory": "Remover categoria",
76
- "categories": "Categorias"
77
- },
78
- "categoryContent": {
79
- "message": "Por favor selecione uma categoria na barra lateral",
80
- "categoryName": "Nome da categoria",
81
- "tamplateName": "Nome do template",
82
- "editCategory": "Editar Categoria",
83
- "categoryNameError": "Nome categoria em falta",
84
- "templateNameError": "Nome da template em falta",
85
- "weighting": "Ponderação",
86
- "openAnswer": "Resposta aberta",
87
- "yesNoAnswer": "Resposta Sim/Não",
88
- "answerOption": "Opção de resposta",
89
- "answers": "Questões"
90
- },
91
- "categoryResponse": {
92
- "notApplicable": "Não Aplicável",
93
- "answer": "Resposta",
94
- "yes": "Sim",
95
- "no": "Não",
96
- "note": "Nota",
97
- "actions": "Ações",
98
- "editNote": "Editar Nota",
99
- "addNote": "Adicionar Nota",
100
- "createAction": "Ação",
101
- "loadFile": "Media",
102
- "placeholderForMultiple": "Selecione uma ou mais opções",
103
- "placeholderForSingular": "Selecione uma opção"
104
- },
105
- "categoryReadOnly": {
106
- "categories": "Categorias",
107
- "categoryAverage": "Ponderação da categoria",
108
- "userResponse": "Resposta Utilizador:",
109
- "supervisorResponse": "Resposta Supervisor:"
110
- },
111
- "analyticsBar": {
112
- "desc": "Decrescente",
113
- "asc": "Crescente"
114
- },
115
- "tag": {
116
- "search": "Procurar",
117
- "advancedFields": "Filtros avançados",
118
- "State": "Estado",
119
- "inactiveSwitch": "Incluir inativos"
120
- },
121
- "table": {
122
- "selectAll": "Selecionar todos",
123
- "deselectAll": "Desselecionar Todos"
124
- },
125
- "datePickerTag": {
126
- "placeholder": "Selecionar Data"
127
- },
128
- "webCam": {
129
- "takePhoto": "Tirar Foto",
130
- "confirm": "Confirmar",
131
- "takeAgain": "Tirar Novamente"
132
- },
133
- "upload": {
134
- "loadFile": "Carregar ficheiro"
135
- },
136
- "bellNotifications": {
137
- "noNotifications": "Sem notificações",
138
- "onlyShowNoRead": "Mostrar apenas não lidas",
139
- "markAllAsRead": "Marcar todas como lidas"
140
- }
141
- }
142
- }
@@ -1,4 +0,0 @@
1
- declare module "*.module.css";
2
- declare module "*.module.scss";
3
- declare module "*.png";
4
- declare module "*.svg";
package/tsconfig.json DELETED
@@ -1,24 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2020",
4
- "outDir": "./dist",
5
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
- "skipLibCheck": true,
7
- "esModuleInterop": true,
8
- "allowSyntheticDefaultImports": true,
9
- "strict": true,
10
- "forceConsistentCasingInFileNames": true,
11
- "noFallthroughCasesInSwitch": true,
12
- "module": "ESNext",
13
- "moduleResolution": "node",
14
- "declaration": true,
15
- "declarationDir": "./dist/types",
16
- "resolveJsonModule": true,
17
- "isolatedModules": true,
18
- "sourceMap": true,
19
- "jsx": "react-jsx",
20
- "experimentalDecorators": true,
21
- "downlevelIteration": true
22
- },
23
- "include": ["src"]
24
- }
package/vite.config.js DELETED
@@ -1,51 +0,0 @@
1
- import { defineConfig } from 'vite';
2
- import react from '@vitejs/plugin-react';
3
- import path from 'path';
4
- import dts from 'vite-plugin-dts';
5
- import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js';
6
-
7
- export default defineConfig({
8
- plugins: [
9
- react(),
10
- dts({ insertTypesEntry: true }),
11
- cssInjectedByJsPlugin(),
12
- ],
13
- build: {
14
- lib: {
15
- entry: path.resolve(__dirname, 'src/index.ts'),
16
- name: 'ComponentLibrary',
17
- fileName: (format) => `component-library.${format}.js`,
18
- formats: ['umd'],
19
- },
20
- rollupOptions: {
21
- external: [
22
- 'react',
23
- 'react-dom',
24
- 'react-router-dom',
25
- "react-i18next",
26
- "i18next"
27
- ],
28
- output: {
29
- globals: {
30
- react: "react",
31
- "react-dom": "react-dom",
32
- "react-router-dom": "react-router-dom",
33
- "react-i18next": "react-i18next",
34
- "i18next": "i18next",
35
- },
36
- },
37
- },
38
- sourcemap: false,
39
- },
40
- resolve: {
41
- extensions: ['.js', '.ts', '.tsx', '.jsx'],
42
- },
43
- css: {
44
- modules: {
45
- localsConvention: 'camelCase',
46
- },
47
- preprocessorOptions: {
48
- scss: {},
49
- },
50
- },
51
- });