dgrcorrientes-modulos 1.0.0

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 (254) hide show
  1. package/.nvmrc +1 -0
  2. package/.prettierrc.cjs +8 -0
  3. package/.storybook/main.cjs +11 -0
  4. package/.storybook/manager-head.html +2 -0
  5. package/.storybook/manager.cjs +6 -0
  6. package/.storybook/preview-head.html +3 -0
  7. package/.storybook/preview.cjs +11 -0
  8. package/.storybook/themes.cjs +14 -0
  9. package/README.md +21 -0
  10. package/StoryBook.txt +19 -0
  11. package/dist-config.cjs +57 -0
  12. package/index.html +13 -0
  13. package/package.json +60 -0
  14. package/public/elevation.ico +0 -0
  15. package/public/elevationImage.png +0 -0
  16. package/public/vite.svg +1 -0
  17. package/src/App.scss +36 -0
  18. package/src/App.tsx +34 -0
  19. package/src/assets/react.svg +1 -0
  20. package/src/index.js +70 -0
  21. package/src/index.scss +63 -0
  22. package/src/index.ts +108 -0
  23. package/src/main.tsx +11 -0
  24. package/src/sass/base/_base.scss +50 -0
  25. package/src/sass/base/_controls.scss +90 -0
  26. package/src/sass/base/_datepicker.scss +114 -0
  27. package/src/sass/base/_typo.scss +71 -0
  28. package/src/sass/base/fonts/SFUIText-Bold.ttf +0 -0
  29. package/src/sass/base/fonts/SFUIText-BoldItalic.ttf +0 -0
  30. package/src/sass/base/fonts/SFUIText-Heavy.ttf +0 -0
  31. package/src/sass/base/fonts/SFUIText-HeavyItalic.ttf +0 -0
  32. package/src/sass/base/fonts/SFUIText-Light.ttf +0 -0
  33. package/src/sass/base/fonts/SFUIText-LightItalic.ttf +0 -0
  34. package/src/sass/base/fonts/SFUIText-Medium.ttf +0 -0
  35. package/src/sass/base/fonts/SFUIText-MediumItalic.ttf +0 -0
  36. package/src/sass/base/fonts/SFUIText-Regular.ttf +0 -0
  37. package/src/sass/base/fonts/SFUIText-RegularItalic.ttf +0 -0
  38. package/src/sass/base/fonts/SFUIText-Semibold.ttf +0 -0
  39. package/src/sass/base/fonts/SFUIText-SemiboldItalic.ttf +0 -0
  40. package/src/sass/bulma/bulma-changes.scss +19 -0
  41. package/src/sass/bulma/extensions/extensions.sass +1 -0
  42. package/src/sass/bulma/extensions/steps/bulma-steps.sass +3 -0
  43. package/src/sass/bulma/extensions/steps/index.sass +421 -0
  44. package/src/sass/bulma/variables/_variables-bulma.sass +16 -0
  45. package/src/sass/bulma/variables/components/card.sass +20 -0
  46. package/src/sass/bulma/variables/components/navbar.sass +50 -0
  47. package/src/sass/bulma/variables/components/tabs.sass +28 -0
  48. package/src/sass/bulma/variables/elements/button.sass +46 -0
  49. package/src/sass/bulma/variables/elements/notification.sass +8 -0
  50. package/src/sass/bulma/variables/elements/title.sass +20 -0
  51. package/src/sass/bulma/variables/grid/column.sass +2 -0
  52. package/src/sass/main.sass +16 -0
  53. package/src/sass/utilities/_bulma-variables.sass +20 -0
  54. package/src/sass/utilities/_derived-variables.scss +68 -0
  55. package/src/sass/utilities/_helpers.scss +70 -0
  56. package/src/sass/utilities/_variables.scss +147 -0
  57. package/src/stories/Changelog.stories.tsx +73 -0
  58. package/src/stories/Components/AssistanceDiary/AssistanceDiary.scss +19 -0
  59. package/src/stories/Components/AssistanceDiary/AssistanceDiary.stories.tsx +25 -0
  60. package/src/stories/Components/AssistanceDiary/AssistanceDiary.tsx +57 -0
  61. package/src/stories/Components/AverageAttended/AverageAttended.scss +39 -0
  62. package/src/stories/Components/AverageAttended/AverageAttended.stories.tsx +71 -0
  63. package/src/stories/Components/AverageAttended/AverageAttended.tsx +311 -0
  64. package/src/stories/Components/Breadcrumb/Breadcrumb.stories.tsx +45 -0
  65. package/src/stories/Components/Breadcrumb/Breadcrumb.tsx +68 -0
  66. package/src/stories/Components/Breadcrumb/breadcrumb.scss +82 -0
  67. package/src/stories/Components/CTA/CTA.scss +76 -0
  68. package/src/stories/Components/CTA/CTA.stories.tsx +46 -0
  69. package/src/stories/Components/CTA/CTA.tsx +70 -0
  70. package/src/stories/Components/Cards/Card CTA/CardCta.stories.tsx +34 -0
  71. package/src/stories/Components/Cards/Card CTA/CardCta.tsx +81 -0
  72. package/src/stories/Components/Cards/Card CTA/cardCta.scss +71 -0
  73. package/src/stories/Components/Cards/Card Expiration/cardExpiration.scss +105 -0
  74. package/src/stories/Components/Cards/Card Expiration/cardExpiration.stories.tsx +40 -0
  75. package/src/stories/Components/Cards/Card Expiration/cardExpiration.tsx +95 -0
  76. package/src/stories/Components/Cards/Card Vertical/CardVertical.stories.tsx +43 -0
  77. package/src/stories/Components/Cards/Card Vertical/CardVertical.tsx +106 -0
  78. package/src/stories/Components/Cards/Card Vertical/cardVertical.scss +130 -0
  79. package/src/stories/Components/Cards/CardActivity/cardActivity.scss +31 -0
  80. package/src/stories/Components/Cards/CardActivity/cardActivity.stories.tsx +20 -0
  81. package/src/stories/Components/Cards/CardActivity/cardActivity.tsx +48 -0
  82. package/src/stories/Components/Cards/CardHorizontal/CardHorizontal.stories.tsx +96 -0
  83. package/src/stories/Components/Cards/CardHorizontal/CardHorizontal.tsx +94 -0
  84. package/src/stories/Components/Cards/CardHorizontal/cardHorizontal.scss +65 -0
  85. package/src/stories/Components/Cards/CardUser/CardUser.stories.tsx +135 -0
  86. package/src/stories/Components/Cards/CardUser/CardUser.tsx +122 -0
  87. package/src/stories/Components/Cards/CardUser/cardUser.scss +115 -0
  88. package/src/stories/Components/Cart/Cart.scss +279 -0
  89. package/src/stories/Components/Cart/Cart.stories.tsx +350 -0
  90. package/src/stories/Components/Cart/Cart.tsx +277 -0
  91. package/src/stories/Components/Collapse/Collapse.scss +339 -0
  92. package/src/stories/Components/Collapse/Collapse.stories.tsx +766 -0
  93. package/src/stories/Components/Collapse/Collapse.tsx +451 -0
  94. package/src/stories/Components/CollapseEdit/CollapseEdit.scss +128 -0
  95. package/src/stories/Components/CollapseEdit/CollapseEdit.stories.tsx +29 -0
  96. package/src/stories/Components/CollapseEdit/CollapseEdit.tsx +185 -0
  97. package/src/stories/Components/CompleteDiary/CompleteDiary.scss +165 -0
  98. package/src/stories/Components/CompleteDiary/CompleteDiary.stories.tsx +219 -0
  99. package/src/stories/Components/CompleteDiary/CompleteDiary.tsx +394 -0
  100. package/src/stories/Components/Dropdown/Dropdown.scss +60 -0
  101. package/src/stories/Components/Dropdown/Dropdown.stories.tsx +19 -0
  102. package/src/stories/Components/Dropdown/Dropdown.tsx +99 -0
  103. package/src/stories/Components/EmptyState/EmptyState.stories.tsx +46 -0
  104. package/src/stories/Components/EmptyState/EmptyState.tsx +44 -0
  105. package/src/stories/Components/EmptyState/emptyState.scss +75 -0
  106. package/src/stories/Components/ErrorPage/ErrorPage.scss +65 -0
  107. package/src/stories/Components/ErrorPage/ErrorPage.stories.tsx +164 -0
  108. package/src/stories/Components/ErrorPage/ErrorPage.tsx +107 -0
  109. package/src/stories/Components/IncomingCall/IncomingCall.scss +27 -0
  110. package/src/stories/Components/IncomingCall/IncomingCall.stories.tsx +43 -0
  111. package/src/stories/Components/IncomingCall/IncomingCall.tsx +76 -0
  112. package/src/stories/Components/ModalConfirm/ModalConfirm.scss +30 -0
  113. package/src/stories/Components/ModalConfirm/ModalConfirm.stories.tsx +21 -0
  114. package/src/stories/Components/ModalConfirm/ModalConfirm.tsx +118 -0
  115. package/src/stories/Components/Pagination/Pagination.scss +42 -0
  116. package/src/stories/Components/Pagination/Pagination.stories.tsx +25 -0
  117. package/src/stories/Components/Pagination/Pagination.tsx +143 -0
  118. package/src/stories/Components/PerformanceAssessment/PerformanceAssessment.scss +26 -0
  119. package/src/stories/Components/PerformanceAssessment/PerformanceAssessment.stories.tsx +27 -0
  120. package/src/stories/Components/PerformanceAssessment/PerformanceAssessment.tsx +108 -0
  121. package/src/stories/Components/ShiftDiary/ShiftDiary.scss +45 -0
  122. package/src/stories/Components/ShiftDiary/ShiftDiary.stories.tsx +32 -0
  123. package/src/stories/Components/ShiftDiary/ShiftDiary.tsx +92 -0
  124. package/src/stories/Components/Stepper/Stepper.stories.tsx +26 -0
  125. package/src/stories/Components/Stepper/Stepper.tsx +102 -0
  126. package/src/stories/Components/Stepper/stepper.scss +59 -0
  127. package/src/stories/Components/Tabs/Tabs.stories.tsx +76 -0
  128. package/src/stories/Components/Tabs/Tabs.tsx +111 -0
  129. package/src/stories/Components/Tabs/tabs.scss +118 -0
  130. package/src/stories/Components/Tooltip/Tooltip.scss +235 -0
  131. package/src/stories/Components/Tooltip/Tooltip.stories.tsx +125 -0
  132. package/src/stories/Components/Tooltip/Tooltip.tsx +222 -0
  133. package/src/stories/Elements/Alert/Alert.stories.tsx +65 -0
  134. package/src/stories/Elements/Alert/Alert.tsx +49 -0
  135. package/src/stories/Elements/Alert/alert.scss +189 -0
  136. package/src/stories/Elements/Badge/Badge.stories.tsx +15 -0
  137. package/src/stories/Elements/Badge/Badge.tsx +21 -0
  138. package/src/stories/Elements/Badge/badge.scss +24 -0
  139. package/src/stories/Elements/Button/Button.stories.tsx +54 -0
  140. package/src/stories/Elements/Button/Button.tsx +118 -0
  141. package/src/stories/Elements/Button/button.scss +102 -0
  142. package/src/stories/Elements/Icon/Icon.stories.tsx +33 -0
  143. package/src/stories/Elements/Icon/Icon.tsx +57 -0
  144. package/src/stories/Elements/Icon/icon.scss +15 -0
  145. package/src/stories/Elements/Icon/icono.svg +1 -0
  146. package/src/stories/Elements/ProgressBar/ProgressBar.scss +26 -0
  147. package/src/stories/Elements/ProgressBar/ProgressBar.stories.tsx +19 -0
  148. package/src/stories/Elements/ProgressBar/ProgressBar.tsx +35 -0
  149. package/src/stories/Form/Autocomplete/Autocomplete.stories.tsx +55 -0
  150. package/src/stories/Form/Autocomplete/Autocomplete.tsx +160 -0
  151. package/src/stories/Form/Autocomplete/autocomplete.scss +311 -0
  152. package/src/stories/Form/Autocomplete-Prueba/Autocomplete.stories.tsx +50 -0
  153. package/src/stories/Form/Autocomplete-Prueba/AutocompletePrueba.tsx +83 -0
  154. package/src/stories/Form/Checkbox/Checkbox.stories.tsx +26 -0
  155. package/src/stories/Form/Checkbox/Checkbox.tsx +89 -0
  156. package/src/stories/Form/Checkbox/checkbox.scss +41 -0
  157. package/src/stories/Form/DatePicker/DatePickerExample.stories.tsx +27 -0
  158. package/src/stories/Form/DatePicker/DatePickerExample.tsx +65 -0
  159. package/src/stories/Form/DatePickerComponent/DatePickerComponent.scss +116 -0
  160. package/src/stories/Form/DatePickerComponent/DatePickerComponent.stories.tsx +37 -0
  161. package/src/stories/Form/DatePickerComponent/DatePickerComponent.tsx +97 -0
  162. package/src/stories/Form/Filters/Filters.stories.tsx +84 -0
  163. package/src/stories/Form/Filters/Filters.tsx +230 -0
  164. package/src/stories/Form/Filters/filters.scss +261 -0
  165. package/src/stories/Form/Input/Input.stories.tsx +25 -0
  166. package/src/stories/Form/Input/Input.tsx +86 -0
  167. package/src/stories/Form/Input/InputVar.sass +26 -0
  168. package/src/stories/Form/Input/input.scss +19 -0
  169. package/src/stories/Form/InputFormControl/Input-form-control.stories.tsx +26 -0
  170. package/src/stories/Form/InputFormControl/Input-form-control.tsx +48 -0
  171. package/src/stories/Form/InputFormControl/input-form-control.scss +34 -0
  172. package/src/stories/Form/Radio/Radio.stories.tsx +19 -0
  173. package/src/stories/Form/Radio/Radio.tsx +84 -0
  174. package/src/stories/Form/Radio/radio.scss +19 -0
  175. package/src/stories/Form/Search/Search.scss +50 -0
  176. package/src/stories/Form/Search/Search.stories.tsx +26 -0
  177. package/src/stories/Form/Search/Search.tsx +84 -0
  178. package/src/stories/Form/Select/Select.stories.tsx +55 -0
  179. package/src/stories/Form/Select/Select.tsx +121 -0
  180. package/src/stories/Form/Select/select.scss +303 -0
  181. package/src/stories/Form/Switch/Switch.stories.tsx +17 -0
  182. package/src/stories/Form/Switch/Switch.tsx +36 -0
  183. package/src/stories/Form/Switch/switch.scss +123 -0
  184. package/src/stories/Form/Textarea/Textarea.stories.tsx +19 -0
  185. package/src/stories/Form/Textarea/Textarea.tsx +52 -0
  186. package/src/stories/Form/Textarea/textarea.scss +25 -0
  187. package/src/stories/Form/UploadFileItem/UploadFileItem.scss +49 -0
  188. package/src/stories/Form/UploadFileItem/UploadFileItem.stories.tsx +18 -0
  189. package/src/stories/Form/UploadFileItem/UploadFileItem.tsx +89 -0
  190. package/src/stories/Form/UploadFiles/UploadFiles.scss +17 -0
  191. package/src/stories/Form/UploadFiles/UploadFiles.stories.tsx +32 -0
  192. package/src/stories/Form/UploadFiles/UploadFiles.tsx +177 -0
  193. package/src/stories/Layout/Footer/Footer.scss +129 -0
  194. package/src/stories/Layout/Footer/Footer.stories.tsx +101 -0
  195. package/src/stories/Layout/Footer/Footer.tsx +81 -0
  196. package/src/stories/Layout/Header/Header.scss +190 -0
  197. package/src/stories/Layout/Header/Header.stories.tsx +223 -0
  198. package/src/stories/Layout/Header/Header.tsx +278 -0
  199. package/src/stories/Layout/HeaderTable/HeaderTable.scss +21 -0
  200. package/src/stories/Layout/HeaderTable/HeaderTable.stories.tsx +112 -0
  201. package/src/stories/Layout/HeaderTable/HeaderTable.tsx +72 -0
  202. package/src/stories/Layout/Sidebar/Sidebar.scss +50 -0
  203. package/src/stories/Layout/Sidebar/Sidebar.stories.tsx +744 -0
  204. package/src/stories/Layout/Sidebar/Sidebar.tsx +129 -0
  205. package/src/stories/Layout/SidebarEmpty/SidebarEmpty.scss +64 -0
  206. package/src/stories/Layout/SidebarEmpty/SidebarEmpty.stories.tsx +26 -0
  207. package/src/stories/Layout/SidebarEmpty/SidebarEmpty.tsx +100 -0
  208. package/src/stories/Layout/Subtitle/Subtitle.scss +88 -0
  209. package/src/stories/Layout/Subtitle/Subtitle.stories.tsx +46 -0
  210. package/src/stories/Layout/Subtitle/Subtitle.tsx +108 -0
  211. package/src/stories/Layout/Title/Title.scss +79 -0
  212. package/src/stories/Layout/Title/Title.stories.tsx +86 -0
  213. package/src/stories/Layout/Title/Title.tsx +96 -0
  214. package/src/stories/Welcome.stories.tsx +111 -0
  215. package/src/stories/assets/404 Page Not Found _Two Color (1).png +0 -0
  216. package/src/stories/assets/404 Page Not Found _Two Color.png +0 -0
  217. package/src/stories/assets/Empty Inbox _Two Color.png +0 -0
  218. package/src/stories/assets/Loading _Two Color.png +0 -0
  219. package/src/stories/assets/Notifications_Two Color 1.png +0 -0
  220. package/src/stories/assets/Online protection_Two Color.png +0 -0
  221. package/src/stories/assets/Under Constructions _Two Color.png +0 -0
  222. package/src/stories/assets/bulma.png +0 -0
  223. package/src/stories/assets/burger.svg +5 -0
  224. package/src/stories/assets/code-brackets.svg +1 -0
  225. package/src/stories/assets/colors.svg +1 -0
  226. package/src/stories/assets/comments.svg +1 -0
  227. package/src/stories/assets/decor-bg.png +0 -0
  228. package/src/stories/assets/direction.svg +1 -0
  229. package/src/stories/assets/e-isologo.svg +4 -0
  230. package/src/stories/assets/e-isotype.svg +4 -0
  231. package/src/stories/assets/e-logo_negative.svg +14 -0
  232. package/src/stories/assets/e-logotype.svg +14 -0
  233. package/src/stories/assets/flow.svg +1 -0
  234. package/src/stories/assets/logo_gobierno_corrientes.svg +9 -0
  235. package/src/stories/assets/logo_rentas_corrientes.svg +10 -0
  236. package/src/stories/assets/logo_rentas_corrientes_compacto.svg +10 -0
  237. package/src/stories/assets/plugin.svg +1 -0
  238. package/src/stories/assets/repo.svg +1 -0
  239. package/src/stories/assets/stackalt.svg +1 -0
  240. package/src/stories/assets/storybook.svg +13 -0
  241. package/src/stories/assets/thumbnail-black.jpg +0 -0
  242. package/src/stories/assets/thumbnail-black[2].jpg +0 -0
  243. package/src/stories/assets/thumbnail.jpg +0 -0
  244. package/src/stories/assets/thumbnail[2].jpg +0 -0
  245. package/src/stories/changelog.ts +389 -0
  246. package/src/utils/functions.ts +57 -0
  247. package/src/vite-env.d.ts +2 -0
  248. package/static/e-isologo-192.jpg +0 -0
  249. package/static/e-isologo.svg +4 -0
  250. package/static/e-logotype.svg +14 -0
  251. package/static/favicon.ico +0 -0
  252. package/tsconfig.json +22 -0
  253. package/tsconfig.node.json +9 -0
  254. package/vite.config.ts +22 -0
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ 16
@@ -0,0 +1,8 @@
1
+ module.exports = {
2
+ arrowParens: 'avoid',
3
+ bracketSameLine: true,
4
+ bracketSpacing: false,
5
+ singleQuote: true,
6
+ trailingComma: 'all',
7
+ printWidth: 140,
8
+ };
@@ -0,0 +1,11 @@
1
+ module.exports = {
2
+ stories: ['../src/**/*.stories.mdx', '../src/stories/Welcome.stories.tsx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
3
+ addons: ['@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-interactions'],
4
+ framework: '@storybook/react',
5
+ core: {
6
+ builder: '@storybook/builder-vite',
7
+ },
8
+ features: {
9
+ storyStoreV7: true,
10
+ },
11
+ };
@@ -0,0 +1,2 @@
1
+ <link rel="shortcut icon" href="/elevation.ico" />
2
+ <link rel="icon" type="image/png" href="/elevationImage.png" sizes="192x192" />
@@ -0,0 +1,6 @@
1
+ import {addons} from '@storybook/addons';
2
+ import {elv_theme} from './themes.cjs';
3
+
4
+ addons.setConfig({
5
+ theme: elv_theme,
6
+ });
@@ -0,0 +1,3 @@
1
+ <script>
2
+ window.global = window;
3
+ </script>
@@ -0,0 +1,11 @@
1
+ import '../src/sass/main.sass';
2
+
3
+ export const parameters = {
4
+ actions: {argTypesRegex: '^on[A-Z].*'},
5
+ controls: {
6
+ matchers: {
7
+ color: /(background|color)$/i,
8
+ date: /Date$/,
9
+ },
10
+ },
11
+ };
@@ -0,0 +1,14 @@
1
+ import {create} from '@storybook/theming/create';
2
+ import isotype from '/static/e-logotype.svg';
3
+
4
+ export const elv_theme = create({
5
+ base: 'light',
6
+ // Typography
7
+ fontBase: '"Lato", sans-serif',
8
+ // fontCode: 'monospace',
9
+
10
+ brandTitle: 'Elevation Storybook',
11
+ brandUrl: 'https://storybookcte.elevation.net.ar/?path=/story/elevation-welcome--welcome',
12
+ brandImage: isotype,
13
+ brandTarget: '_blank',
14
+ });
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # README
2
+
3
+ ### Instalación
4
+
5
+ `yarn storybook`
6
+
7
+ ### Ejecución
8
+
9
+ `yarn storybook`
10
+
11
+ ### Build Estática (Página Storybook)
12
+
13
+ `yarn build-storybook`
14
+
15
+ ### Build Librería (Componentes)
16
+
17
+ `yarn build`
18
+
19
+ ### Versión de Node
20
+
21
+ v16.10.0
package/StoryBook.txt ADDED
@@ -0,0 +1,19 @@
1
+
2
+ ---------------------------------
3
+ yarn install
4
+ yarn storybook
5
+
6
+ ---------------------------------
7
+ Version de node: nvm list
8
+
9
+ Installar Node
10
+ nvm install 16.10.0
11
+ Usar Node
12
+ nvm use 16.10.0
13
+
14
+ Borrar carpeta node_modules en caso de Error
15
+
16
+ ------------------------------------
17
+ Build static storyBook
18
+ ------------------------------------
19
+ yarn build-storybook
@@ -0,0 +1,57 @@
1
+ const {writeFileSync} = require('fs');
2
+ const axios = require('axios');
3
+
4
+ //======== NOMBRE DEL PAQUETE Y PACKAGE.JSON =========
5
+ const packageName = 'storybook-cte-library';
6
+
7
+ async function getLatestVersion(packageName) {
8
+ try {
9
+ const response = await axios.get(`https://registry.npmjs.org/${packageName}/latest`);
10
+ return response.data.version;
11
+ } catch (error) {
12
+ return null;
13
+ }
14
+ }
15
+
16
+ var latestVersion = null;
17
+ getLatestVersion(packageName).then(version => {
18
+ if (version) {
19
+ latestVersion = version;
20
+ } else {
21
+ latestVersion = '1.0.0';
22
+ }
23
+
24
+ const packageJson = {
25
+ name: packageName,
26
+ version: latestVersion,
27
+ description: 'Un paquete de componentes minimizado',
28
+ main: 'components.js',
29
+ module: 'components.js',
30
+ typings: 'index.d.ts',
31
+ peerDependencies: {
32
+ react: '^17.0.2',
33
+ 'react-dom': '^17.0.2',
34
+ },
35
+ author: {
36
+ name: 'Elevation',
37
+ email: 'erodriguez@elevation.com.ar',
38
+ url: 'https://elevation.com.ar',
39
+ },
40
+ license: 'MIT',
41
+ };
42
+
43
+ writeFileSync('./dist/package.json', JSON.stringify(packageJson));
44
+ });
45
+
46
+ const indexDts = `declare module "${packageName}";`;
47
+ const readmeDoc =
48
+ '# README \n ### Instalación \n `yarn add ' +
49
+ packageName +
50
+ '@latest` \n ### Integración (Ejemplo React) \n #### CSS \n `@import "' +
51
+ packageName +
52
+ '/style.css"` \n #### Utilización de un Componente (Ejemplo Button) \n `@import {Button} from "' +
53
+ packageName +
54
+ '"` \n ### Frameworks y assets incorporados en CSS (style.css): \n Bulma Framework: v0.9.4 \n @fortawesome/fontawesome-free: v^6.3.0, \n San Francisco Font';
55
+
56
+ writeFileSync('./dist/index.d.ts', indexDts);
57
+ writeFileSync('./dist/README.md', readmeDoc);
package/index.html ADDED
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Vite + React + TS</title>
8
+ </head>
9
+ <body>
10
+ <div id="root"></div>
11
+ <script type="module" src="/src/main.tsx"></script>
12
+ </body>
13
+ </html>
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "dgrcorrientes-modulos",
3
+ "private": false,
4
+ "version": "1.0.0",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "import": "./dist/components.js",
9
+ "require": "./dist/components.umd.cjs"
10
+ }
11
+ },
12
+ "engines": {
13
+ "node": "16",
14
+ "npm": "8"
15
+ },
16
+ "scripts": {
17
+ "dev": "vite",
18
+ "build": "tsc && vite build",
19
+ "postbuild": "node ./dist-config.cjs",
20
+ "preview": "vite preview",
21
+ "storybook": "start-storybook -p 6006 -s public",
22
+ "build-storybook": "build-storybook -s public"
23
+ },
24
+ "dependencies": {
25
+ "@fortawesome/fontawesome-free": "^6.3.0",
26
+ "@types/node": "^20.2.1",
27
+ "@types/react-mic": "^12.4.6",
28
+ "bulma": "^0.9.4",
29
+ "react": "^17.0.2",
30
+ "react-circular-progressbar": "^2.1.0",
31
+ "react-datepicker": "^4.11.0",
32
+ "react-dom": "^17.0.2",
33
+ "react-mic": "^12.4.6",
34
+ "react-sweetalert2": "^0.6.0",
35
+ "sass": "^1.59.3"
36
+ },
37
+ "devDependencies": {
38
+ "@babel/core": "^7.19.3",
39
+ "@fortawesome/fontawesome-free": "^6.3.0",
40
+ "@storybook/addon-actions": "^6.5.12",
41
+ "@storybook/addon-essentials": "^6.5.12",
42
+ "@storybook/addon-interactions": "^6.5.12",
43
+ "@storybook/addon-links": "^6.5.12",
44
+ "@storybook/builder-vite": "^0.2.4",
45
+ "@storybook/cli": "^6.5.12",
46
+ "@storybook/react": "^6.5.12",
47
+ "@storybook/testing-library": "^0.0.13",
48
+ "@storybook/theming": "^6.5.12",
49
+ "@types/react": "^17.0.2",
50
+ "@types/react-datepicker": "^4.11.2",
51
+ "@types/react-dom": "^17.0.2",
52
+ "@vitejs/plugin-react": "^2.1.0",
53
+ "axios": "^1.3.5",
54
+ "babel-loader": "^8.2.5",
55
+ "fs-extra": "^11.1.1",
56
+ "sass": "^1.59.3",
57
+ "typescript": "^4.6.4",
58
+ "vite": "^3.1.0"
59
+ }
60
+ }
Binary file
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/src/App.scss ADDED
@@ -0,0 +1,36 @@
1
+ // #root {
2
+ // max-width: 1280px;
3
+ // margin: 0 auto;
4
+ // padding: 2rem;
5
+ // text-align: center;
6
+ // }
7
+
8
+ // .logo {
9
+ // height: 6em;
10
+ // padding: 1.5em;
11
+ // will-change: filter;
12
+
13
+ // &:hover {
14
+ // filter: drop-shadow(0 0 2em #646cffaa);
15
+ // }
16
+
17
+ // &.react:hover {
18
+ // filter: drop-shadow(0 0 2em #61dafbaa);
19
+ // }
20
+ // }
21
+
22
+ // @keyframes logo-spin {
23
+ // from {
24
+ // transform: rotate(0deg);
25
+ // }
26
+
27
+ // to {
28
+ // transform: rotate(360deg);
29
+ // }
30
+ // }
31
+
32
+ // @media (prefers-reduced-motion: no-preference) {
33
+ // a:nth-of-type(2) .logo {
34
+ // animation: logo-spin infinite 20s linear;
35
+ // }
36
+ // }
package/src/App.tsx ADDED
@@ -0,0 +1,34 @@
1
+ import { useState } from 'react'
2
+ import reactLogo from './assets/react.svg'
3
+ import "./App.scss"
4
+
5
+ function App() {
6
+ const [count, setCount] = useState(0)
7
+
8
+ return (
9
+ <div className="App">
10
+ <div>
11
+ <a href="https://vitejs.dev" target="_blank">
12
+ <img src="/vite.svg" className="logo" alt="Vite logo" />
13
+ </a>
14
+ <a href="https://reactjs.org" target="_blank">
15
+ <img src={reactLogo} className="logo react" alt="React logo" />
16
+ </a>
17
+ </div>
18
+ <h1>Vite + React</h1>
19
+ <div className="card">
20
+ <button onClick={() => setCount((count) => count + 1)}>
21
+ count is {count}
22
+ </button>
23
+ <p>
24
+ Edit <code>src/App.tsx</code> and save to test HMR
25
+ </p>
26
+ </div>
27
+ <p className="read-the-docs">
28
+ Click on the Vite and React logos to learn more
29
+ </p>
30
+ </div>
31
+ )
32
+ }
33
+
34
+ export default App
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>
package/src/index.js ADDED
@@ -0,0 +1,70 @@
1
+ import './sass/main.sass';
2
+
3
+ // ELEMENTS =========================================
4
+ import {Alert} from './stories/Elements/Alert/Alert';
5
+ import {Button} from './stories/Elements/Button/Button';
6
+ import {Badge} from './stories/Elements/Badge/Badge';
7
+ import {Icon} from './stories/Elements/Icon/Icon';
8
+ //----------
9
+ export {Alert, Button, Badge, Icon};
10
+
11
+ //COMPONENTS ========================================
12
+ import {Breadcrumb} from './stories/Components/Breadcrumb/Breadcrumb';
13
+ import {CardCTA} from './stories/Components/Cards/Card CTA/CardCta';
14
+ import {CardExpiration} from './stories/Components/Cards/Card Expiration/cardExpiration';
15
+ import {CardVertical} from './stories/Components/Cards/Card Vertical/CardVertical';
16
+ import {CardActivity} from './stories/Components/Cards/CardActivity/cardActivity';
17
+ import {CardHorizontal} from './stories/Components/Cards/CardHorizontal/CardHorizontal';
18
+ import {CardUser} from './stories/Components/Cards/CardUser/CardUser';
19
+ import {Cart} from './stories/Components/Cart/Cart';
20
+ import {Collapse} from './stories/Components/Collapse/Collapse';
21
+ import {CTA} from './stories/Components/CTA/CTA';
22
+ import {Dropdown} from './stories/Components/Dropdown/Dropdown';
23
+ import {EmptyState} from './stories/Components/EmptyState/EmptyState';
24
+ import {Pagination} from './stories/Components/Pagination/Pagination';
25
+ import {Stepper} from './stories/Components/Stepper/Stepper';
26
+ import {Tabs} from './stories/Components/Tabs/Tabs';
27
+ import {Tooltip} from './stories/Components/Tooltip/Tooltip';
28
+ //----------
29
+ export {
30
+ Breadcrumb,
31
+ CardCTA,
32
+ CardExpiration,
33
+ CardVertical,
34
+ CardActivity,
35
+ CardUser,
36
+ CardHorizontal,
37
+ Cart,
38
+ Collapse,
39
+ CTA,
40
+ Dropdown,
41
+ EmptyState,
42
+ Pagination,
43
+ Stepper,
44
+ Tabs,
45
+ Tooltip,
46
+ };
47
+
48
+ //FORM ========================================
49
+ import {Checkbox} from './stories/Form/Checkbox/Checkbox';
50
+ import {DatePickerComponent} from './stories/Form/DatePickerComponent/DatePickerComponent';
51
+ import {Filters} from './stories/Form/Filters/Filters';
52
+ import {Input} from './stories/Form/Input/Input';
53
+ import {InputForm} from './stories/Form/InputFormControl/Input-form-control';
54
+ import {Radio} from './stories/Form/Radio/Radio';
55
+ import {Search} from './stories/Form/Search/Search';
56
+ import {Select} from './stories/Form/Select/Select';
57
+ import {Switch} from './stories/Form/Switch/Switch';
58
+ import {Textarea} from './stories/Form/Textarea/Textarea';
59
+ //----------
60
+ export {Checkbox, DatePickerComponent, Filters, Input, InputForm, Search, Radio, Select, Switch, Textarea};
61
+
62
+ //LAYOUT ========================================
63
+ import {Footer} from './stories/Layout/Footer/Footer';
64
+ import {Header} from './stories/Layout/Header/Header';
65
+ import {HeaderTable} from './stories/Layout/HeaderTable/HeaderTable';
66
+ import {Sidebar} from './stories/Layout/Sidebar/Sidebar';
67
+ import {Subtitle} from './stories/Layout/Subtitle/Subtitle';
68
+ import {Title} from './stories/Layout/Title/Title';
69
+ //----------
70
+ export {Footer, Header, HeaderTable, Sidebar, Subtitle, Title};
package/src/index.scss ADDED
@@ -0,0 +1,63 @@
1
+ // :root {
2
+ // font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
3
+ // font-size: 16px;
4
+ // line-height: 24px;
5
+ // font-weight: 400;
6
+ // color-scheme: light dark;
7
+ // color: rgba(255, 255, 255, 0.87);
8
+ // background-color: #242424;
9
+ // font-synthesis: none;
10
+ // text-rendering: optimizeLegibility;
11
+ // -webkit-font-smoothing: antialiased;
12
+ // -moz-osx-font-smoothing: grayscale;
13
+ // -webkit-text-size-adjust: 100%;
14
+ // }
15
+
16
+ // body {
17
+ // margin: 0;
18
+ // display: flex;
19
+ // place-items: center;
20
+ // min-width: 320px;
21
+ // min-height: 100vh;
22
+ // }
23
+
24
+ // h1 {
25
+ // font-size: 3.2em;
26
+ // line-height: 1.1;
27
+ // }
28
+
29
+ // button {
30
+ // border-radius: 8px;
31
+ // border: 1px solid transparent;
32
+ // padding: 0.6em 1.2em;
33
+ // font-size: 1em;
34
+ // font-weight: 500;
35
+ // font-family: inherit;
36
+ // background-color: #1a1a1a;
37
+ // cursor: pointer;
38
+ // transition: border-color 0.25s;
39
+
40
+ // &:hover {
41
+ // border-color: #646cff;
42
+ // }
43
+
44
+ // &:focus,
45
+ // &:focus-visible {
46
+ // outline: 4px auto -webkit-focus-ring-color;
47
+ // }
48
+ // }
49
+
50
+ // @media (prefers-color-scheme: light) {
51
+ // :root {
52
+ // color: #213547;
53
+ // background-color: #ffffff;
54
+ // }
55
+
56
+ // a:hover {
57
+ // color: #747bff;
58
+ // }
59
+
60
+ // button {
61
+ // background-color: #f9f9f9;
62
+ // }
63
+ // }
package/src/index.ts ADDED
@@ -0,0 +1,108 @@
1
+ import './sass/main.sass';
2
+
3
+ // ELEMENTS =========================================
4
+ import {Alert} from './stories/Elements/Alert/Alert';
5
+ import {Button} from './stories/Elements/Button/Button';
6
+ import {Badge} from './stories/Elements/Badge/Badge';
7
+ import {Icon} from './stories/Elements/Icon/Icon';
8
+ import {ProgressBar} from './stories/Elements/ProgressBar/ProgressBar';
9
+ //----------
10
+ export {Alert, Button, Badge, Icon, ProgressBar};
11
+
12
+ //COMPONENTS ========================================
13
+ import {AssistanceDiary} from './stories/Components/AssistanceDiary/AssistanceDiary';
14
+ import {AverageAttended} from './stories/Components/AverageAttended/AverageAttended';
15
+ import {Breadcrumb} from './stories/Components/Breadcrumb/Breadcrumb';
16
+ import {CardCTA} from './stories/Components/Cards/Card CTA/CardCta';
17
+ import {CardExpiration} from './stories/Components/Cards/Card Expiration/cardExpiration';
18
+ import {CardVertical} from './stories/Components/Cards/Card Vertical/CardVertical';
19
+ import {CardActivity} from './stories/Components/Cards/CardActivity/cardActivity';
20
+ import {CardHorizontal} from './stories/Components/Cards/CardHorizontal/CardHorizontal';
21
+ import {CardUser} from './stories/Components/Cards/CardUser/CardUser';
22
+ import {Cart} from './stories/Components/Cart/Cart';
23
+ import {Collapse} from './stories/Components/Collapse/Collapse';
24
+ import {CollapseEdit} from './stories/Components/CollapseEdit/CollapseEdit';
25
+ import {CompleteDiary} from './stories/Components/CompleteDiary/CompleteDiary';
26
+ import {CTA} from './stories/Components/CTA/CTA';
27
+ import {Dropdown} from './stories/Components/Dropdown/Dropdown';
28
+ import {EmptyState} from './stories/Components/EmptyState/EmptyState';
29
+ import {ErrorPage} from './stories/Components/ErrorPage/ErrorPage';
30
+ import {IncomingCall} from './stories/Components/IncomingCall/IncomingCall';
31
+ import {ModalConfirm} from './stories/Components/ModalConfirm/ModalConfirm';
32
+ import {Pagination} from './stories/Components/Pagination/Pagination';
33
+ import {PerformanceAssessment} from './stories/Components/PerformanceAssessment/PerformanceAssessment';
34
+ import {ShiftDiary} from './stories/Components/ShiftDiary/ShiftDiary';
35
+ import {Stepper} from './stories/Components/Stepper/Stepper';
36
+ import {Tabs} from './stories/Components/Tabs/Tabs';
37
+ import {Tooltip} from './stories/Components/Tooltip/Tooltip';
38
+ //----------
39
+ export {
40
+ AssistanceDiary,
41
+ AverageAttended,
42
+ Breadcrumb,
43
+ CardCTA,
44
+ CardExpiration,
45
+ CardVertical,
46
+ CardActivity,
47
+ CardUser,
48
+ CardHorizontal,
49
+ Cart,
50
+ Collapse,
51
+ CollapseEdit,
52
+ CompleteDiary,
53
+ CTA,
54
+ Dropdown,
55
+ EmptyState,
56
+ ErrorPage,
57
+ IncomingCall,
58
+ ModalConfirm,
59
+ Pagination,
60
+ PerformanceAssessment,
61
+ ShiftDiary,
62
+ Stepper,
63
+ Tabs,
64
+ Tooltip,
65
+ };
66
+
67
+ //FORM ========================================
68
+ import {Autocomplete} from './stories/Form/Autocomplete/Autocomplete';
69
+ import {Checkbox} from './stories/Form/Checkbox/Checkbox';
70
+ import {DatePickerComponent} from './stories/Form/DatePickerComponent/DatePickerComponent';
71
+ import {Filters} from './stories/Form/Filters/Filters';
72
+ import {Input} from './stories/Form/Input/Input';
73
+ import {InputForm} from './stories/Form/InputFormControl/Input-form-control';
74
+ import {Radio} from './stories/Form/Radio/Radio';
75
+ import {Search} from './stories/Form/Search/Search';
76
+ import {Select} from './stories/Form/Select/Select';
77
+ import {Switch} from './stories/Form/Switch/Switch';
78
+ import {Textarea} from './stories/Form/Textarea/Textarea';
79
+ import {UploadFiles} from './stories/Form/UploadFiles/UploadFiles';
80
+ import {UploadFileItem} from './stories/Form/UploadFileItem/UploadFileItem';
81
+
82
+ //----------
83
+ export {
84
+ Autocomplete,
85
+ Checkbox,
86
+ DatePickerComponent,
87
+ Filters,
88
+ Input,
89
+ InputForm,
90
+ Search,
91
+ Radio,
92
+ Select,
93
+ Switch,
94
+ Textarea,
95
+ UploadFiles,
96
+ UploadFileItem,
97
+ };
98
+
99
+ //LAYOUT ========================================
100
+ import {Footer} from './stories/Layout/Footer/Footer';
101
+ import {Header} from './stories/Layout/Header/Header';
102
+ import {HeaderTable} from './stories/Layout/HeaderTable/HeaderTable';
103
+ import {Sidebar} from './stories/Layout/Sidebar/Sidebar';
104
+ import {SidebarEmpty} from './stories/Layout/SidebarEmpty/SidebarEmpty';
105
+ import {Subtitle} from './stories/Layout/Subtitle/Subtitle';
106
+ import {Title} from './stories/Layout/Title/Title';
107
+ //----------
108
+ export {Footer, Header, HeaderTable, Sidebar, SidebarEmpty, Subtitle, Title};
package/src/main.tsx ADDED
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import ReactDOM from 'react-dom';
3
+ import App from './App';
4
+ import './index.scss';
5
+
6
+ ReactDOM.render(
7
+ <React.StrictMode>
8
+ <App />
9
+ </React.StrictMode>,
10
+ document.getElementById('root'),
11
+ );
@@ -0,0 +1,50 @@
1
+ @import '/src/sass/utilities/variables';
2
+
3
+ .elv-component {
4
+ // TEXT
5
+ font-family: 'SF UI Text', sans-serif !important;
6
+ word-wrap: break-word;
7
+ word-break: break-word;
8
+ line-height: 150% !important;
9
+ box-sizing: initial;
10
+
11
+ h1,
12
+ h2,
13
+ h3,
14
+ h4,
15
+ h5,
16
+ p {
17
+ line-height: 150%;
18
+ margin: 0;
19
+ }
20
+
21
+ input {
22
+ font-family: 'SF UI Text', sans-serif !important;
23
+ }
24
+
25
+ a {
26
+ cursor: pointer;
27
+ text-decoration: none;
28
+ strong {
29
+ color: currentColor;
30
+ }
31
+ &:hover {
32
+ color: $info-700;
33
+ }
34
+ }
35
+
36
+ .modal-background {
37
+ z-index: 5000 !important;
38
+ position: fixed;
39
+ }
40
+
41
+ .card-box {
42
+ box-shadow: 0px 0px 2px rgba(14, 31, 53, 0.12), 0px 1px 4px rgba(14, 31, 53, 0.06);
43
+
44
+ &:hover {
45
+ box-shadow: 0px 3px 6px rgba(14, 31, 53, 0.08), 0px 6px 12px rgba(14, 31, 53, 0.12), 0px 14px 24px rgba(14, 31, 53, 0.08);
46
+ }
47
+ }
48
+
49
+ @import '/src/sass/bulma/bulma-changes.scss';
50
+ }