@farm-investimentos/front-mfe-components 3.4.1 → 3.4.4

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 (68) hide show
  1. package/README.md +2 -0
  2. package/dist/front-mfe-components.common.js +348 -265
  3. package/dist/front-mfe-components.common.js.map +1 -1
  4. package/dist/front-mfe-components.css +1 -1
  5. package/dist/front-mfe-components.umd.js +348 -265
  6. package/dist/front-mfe-components.umd.js.map +1 -1
  7. package/dist/front-mfe-components.umd.min.js +1 -1
  8. package/dist/front-mfe-components.umd.min.js.map +1 -1
  9. package/package.json +11 -15
  10. package/src/components/AlertReload/AlertReload.stories.js +1 -1
  11. package/src/components/Buttons/ConfirmButton/ConfirmButton.stories.js +11 -1
  12. package/src/components/Buttons/DangerButton/DangerButton.stories.js +11 -1
  13. package/src/components/Buttons/DefaultButton/DefaultButton.stories.js +11 -1
  14. package/src/components/Buttons/ExportButton/ExportButton.stories.js +1 -1
  15. package/src/components/Buttons/ImportButton/ImportButton.stories.js +1 -1
  16. package/src/components/Buttons/MultiImportButton/MultiImportButton.stories.js +1 -1
  17. package/src/components/Buttons/RemoveButton/RemoveButton.stories.js +1 -1
  18. package/src/components/Buttons/ToggleButton/ToggleButton.stories.js +1 -1
  19. package/src/components/CardContext/CardContext.stories.js +1 -1
  20. package/src/components/ChipInviteStatus/ChipInviteStatus.stories.js +8 -6
  21. package/src/components/ChipInviteStatus/ChipInviteStatus.vue +21 -9
  22. package/src/components/ChipInviteStatus/__tests__/ChipInviteStatus.spec.js +1 -1
  23. package/src/components/DataTableEmptyWrapper/DataTableEmptyWrapper.stories.js +1 -1
  24. package/src/components/DataTableHeader/DataTableHeader.stories.js +1 -1
  25. package/src/components/DataTablePaginator/DataTablePaginator.stories.js +40 -5
  26. package/src/components/DataTablePaginator/DataTablePaginator.vue +5 -3
  27. package/src/components/DatePicker/DatePicker.stories.js +14 -4
  28. package/src/components/DatePicker/DatePicker.vue +4 -2
  29. package/src/components/DatePicker/__tests__/DatePicker.spec.js +13 -0
  30. package/src/components/DefaultTextField/DefaultTextField.stories.js +1 -1
  31. package/src/components/DefaultTextField/DefaultTextField.vue +12 -0
  32. package/src/components/DialogFooter/DialogFooter.stories.js +1 -1
  33. package/src/components/DialogHeader/DialogHeader.stories.js +1 -1
  34. package/src/components/FilePicker/FilePicker.scss +5 -4
  35. package/src/components/FilePicker/FilePicker.stories.js +10 -4
  36. package/src/components/FilePicker/FilePicker.vue +95 -67
  37. package/src/components/FilePicker/__tests__/FilePicker.spec.js +17 -0
  38. package/src/components/IconBox/IconBox.stories.js +1 -1
  39. package/src/components/Loader/Loader.stories.js +1 -1
  40. package/src/components/Logos/OriginatorLogo/OriginatorLogo.stories.js +1 -1
  41. package/src/components/Logos/ProductLogo/ProductLogo.stories.js +1 -1
  42. package/src/components/MainFilter/MainFilter.stories.js +1 -1
  43. package/src/components/ManagersList/ManagersList.stories.js +1 -1
  44. package/src/components/ModalPromptUser/ModalPromptUser.stories.js +47 -4
  45. package/src/components/ModalPromptUser/__tests__/ModalPromptUser.spec.js +27 -0
  46. package/src/components/MultipleSelectShortener/MultipleSelectShortener.stories.js +1 -1
  47. package/src/components/PromptUserToConfirm/PromptUserToConfirm.stories.js +23 -3
  48. package/src/components/PromptUserToConfirm/__tests__/PromptUserToConfirm.spec.js +24 -0
  49. package/src/components/RangeDatePicker/RangeDatePicker.stories.js +23 -4
  50. package/src/components/ResetTableRowSelection/ResetTableRowSelection.stories.js +1 -1
  51. package/src/components/SelectModalOptions/SelectModalOptions.stories.js +1 -1
  52. package/src/components/TableContextMenu/TableContextMenu.scss +3 -0
  53. package/src/components/TableContextMenu/TableContextMenu.stories.js +40 -3
  54. package/src/components/TableContextMenu/TableContextMenu.vue +3 -0
  55. package/src/components/Tabs/Tabs.stories.js +1 -1
  56. package/src/examples/Modal.stories.js +47 -0
  57. package/src/examples/Table.stories.js +95 -0
  58. package/src/examples/inputs/Password.stories.js +42 -0
  59. package/src/scss/ButtonOverrides.scss +7 -1
  60. package/src/scss/DefaultModal.scss +66 -64
  61. package/src/scss/DialogOverrides.scss +86 -0
  62. package/src/scss/FormOverrides.scss +46 -6
  63. package/src/scss/Sticky-table.scss +69 -0
  64. package/src/scss/Table.scss +2 -0
  65. package/src/scss/VMenuOverrides.scss +5 -0
  66. package/src/scss/main.scss +4 -0
  67. package/src/scss/utils.scss +138 -99
  68. package/src/stories/Introduction.stories.mdx +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farm-investimentos/front-mfe-components",
3
- "version": "3.4.1",
3
+ "version": "3.4.4",
4
4
  "author": "farm investimentos",
5
5
  "private": false,
6
6
  "main": "./dist/front-mfe-components.common.js",
@@ -21,31 +21,27 @@
21
21
  "src/*"
22
22
  ],
23
23
  "dependencies": {
24
- "@socheatsok78/storybook-addon-vuetify": "^0.1.8",
25
- "@vue/cli-service-global": "^4.5.13",
26
- "@vue/test-utils": "^1.3.0",
27
- "core-js": "^3.6.5",
28
- "sass": "~1.32.0",
29
- "sass-loader": "^10.2.0",
24
+ "core-js": "3.21.1",
25
+ "sass": "1.32.13",
26
+ "sass-loader": "^10.1.1",
30
27
  "vue": "^2.6.11",
31
28
  "vuetify": "^2.5.7"
32
29
  },
33
30
  "devDependencies": {
34
- "@babel/core": "^7.14.8",
31
+ "@socheatsok78/storybook-addon-vuetify": "^0.1.8",
35
32
  "@storybook/addon-actions": "^6.3.6",
36
33
  "@storybook/addon-essentials": "^6.3.6",
37
34
  "@storybook/addon-links": "^6.3.6",
38
35
  "@storybook/vue": "^6.3.6",
39
- "@vue/cli-plugin-babel": "~4.5.0",
40
- "@vue/cli-plugin-eslint": "~4.5.0",
41
- "@vue/cli-plugin-unit-jest": "^4.5.15",
42
- "@vue/cli-service": "~4.5.0",
36
+ "@vue/cli-plugin-babel": "4.5.15",
37
+ "@vue/cli-plugin-eslint": "~4.5.14",
38
+ "@vue/cli-plugin-unit-jest": "~4.5.14",
39
+ "@vue/cli-service": "~4.5.14",
40
+ "@vue/test-utils": "^1.3.0",
43
41
  "babel-eslint": "^10.1.0",
44
- "babel-loader": "^8.2.2",
45
42
  "eslint": "^6.7.2",
46
43
  "eslint-plugin-vue": "^6.2.2",
47
- "jest": "^25.5.4",
48
- "jsdoc": "^3.6.7",
44
+ "storybook-addon-designs": "^6.2.1",
49
45
  "vue-template-compiler": "^2.6.11",
50
46
  "webpack-cli": "^4.9.0"
51
47
  },
@@ -1,7 +1,7 @@
1
1
  import AlertReload from './AlertReload.vue';
2
2
 
3
3
  export default {
4
- title: 'Example/AlertReload',
4
+ title: 'API/AlertReload',
5
5
  component: AlertReload,
6
6
  };
7
7
 
@@ -1,8 +1,18 @@
1
1
  import ConfirmButton from './ConfirmButton.vue';
2
2
 
3
3
  export default {
4
- title: 'Example/Buttons/Confirm',
4
+ title: 'API/Buttons/Confirm',
5
5
  component: ConfirmButton,
6
+ parameters: {
7
+ docs: {
8
+ description: {
9
+ component: `Confirm button<br />
10
+ selector: <em>farm-btn-confirm</em>
11
+ `,
12
+ },
13
+ },
14
+ viewMode: 'docs',
15
+ },
6
16
  };
7
17
 
8
18
  export const Primary = () => ({
@@ -1,8 +1,18 @@
1
1
  import DangerButton from './DangerButton.vue';
2
2
 
3
3
  export default {
4
- title: 'Example/Buttons/DangerButton',
4
+ title: 'API/Buttons/DangerButton',
5
5
  component: DangerButton,
6
+ parameters: {
7
+ docs: {
8
+ description: {
9
+ component: `Danger button<br />
10
+ selector: <em>farm-btn-fanger</em>
11
+ `,
12
+ },
13
+ },
14
+ viewMode: 'docs',
15
+ },
6
16
  };
7
17
 
8
18
  export const Primary = () => ({
@@ -1,8 +1,18 @@
1
1
  import DefaultButton from './DefaultButton.vue';
2
2
 
3
3
  export default {
4
- title: 'Example/Buttons/Default',
4
+ title: 'API/Buttons/Default',
5
5
  component: DefaultButton,
6
+ parameters: {
7
+ docs: {
8
+ description: {
9
+ component: `Default button (inherit from Vuetify)<br />
10
+ selector: <em>farm-btn</em>
11
+ `,
12
+ },
13
+ },
14
+ viewMode: 'docs',
15
+ },
6
16
  };
7
17
 
8
18
  export const Primary = () => ({
@@ -1,7 +1,7 @@
1
1
  import ExportButton from './ExportButton.vue';
2
2
 
3
3
  export default {
4
- title: 'Example/Buttons/Export',
4
+ title: 'API/Buttons/Export',
5
5
  component: ExportButton,
6
6
  };
7
7
 
@@ -1,7 +1,7 @@
1
1
  import ImportButton from './ImportButton.vue';
2
2
 
3
3
  export default {
4
- title: 'Example/Buttons/Import',
4
+ title: 'API/Buttons/Import',
5
5
  component: ImportButton,
6
6
  };
7
7
 
@@ -1,7 +1,7 @@
1
1
  import MultiImport from './MultiImportButton.vue';
2
2
 
3
3
  export default {
4
- title: 'Example/Buttons/MultiImport',
4
+ title: 'API/Buttons/MultiImport',
5
5
  component: MultiImport,
6
6
  };
7
7
 
@@ -1,7 +1,7 @@
1
1
  import RemoveButton from './RemoveButton.vue';
2
2
 
3
3
  export default {
4
- title: 'Example/Buttons/Remove',
4
+ title: 'API/Buttons/Remove',
5
5
  component: RemoveButton,
6
6
  };
7
7
 
@@ -1,7 +1,7 @@
1
1
  import ToggleButton from './ToggleButton.vue';
2
2
 
3
3
  export default {
4
- title: 'Example/Buttons/ToggleButton',
4
+ title: 'API/Buttons/ToggleButton',
5
5
  component: ToggleButton,
6
6
  };
7
7
 
@@ -1,7 +1,7 @@
1
1
  import CardContext from './CardContext.vue';
2
2
 
3
3
  export default {
4
- title: 'Example/CardContext',
4
+ title: 'API/CardContext',
5
5
  component: CardContext,
6
6
  };
7
7
 
@@ -1,18 +1,20 @@
1
1
  import ChipInviteStatus from './ChipInviteStatus.vue';
2
2
 
3
3
  export default {
4
- title: 'Example/Onboarding/ChipInviteStatus',
4
+ title: 'API/Onboarding/ChipInviteStatus',
5
5
  component: ChipInviteStatus,
6
6
  };
7
7
 
8
8
  export const Primary = () => ({
9
9
  components: { ChipInviteStatus },
10
10
  template: `<div style="width: 120px;">
11
- <ChipInviteStatus status="CONVIDAR" />
12
- <ChipInviteStatus status="CONVIDADO" />
13
- <ChipInviteStatus status="INCOMPLETO" />
14
- <ChipInviteStatus status="CONCLUIDO" />
15
- <ChipInviteStatus status="FALHA/ERRO" />
11
+ <ChipInviteStatus :status="10" />
12
+ <ChipInviteStatus :status="11" />
13
+ <ChipInviteStatus :status="12" />
14
+ <ChipInviteStatus :status="13" />
15
+ <ChipInviteStatus :status="14" />
16
+ <ChipInviteStatus :status="15" />
17
+ <ChipInviteStatus :status="16" />
16
18
  </div>`,
17
19
  });
18
20
 
@@ -14,12 +14,24 @@
14
14
  </template>
15
15
  <script>
16
16
  import Vue from 'vue';
17
+ const StatusLabel = {
18
+ 10: 'CONVIDAR',
19
+ 11: 'CONVIDADO',
20
+ 12: 'INCOMPLETO',
21
+ 13: 'CONCLUÍDO',
22
+ 14: 'FALHA/ERRO',
23
+ 15: 'EM ANÁLISE',
24
+ 16: 'EM ANDAMENTO',
25
+ };
26
+
17
27
  const StatusColor = {
18
- CONVIDAR: 'secondary',
19
- CONVIDADO: 'yellow',
20
- INCOMPLETO: 'yellow',
21
- CONCLUIDO: 'success',
22
- 'FALHA/ERRO': 'error',
28
+ 10: 'secondary',
29
+ 11: 'yellow',
30
+ 12: 'yellow',
31
+ 13: 'success',
32
+ 14: 'error',
33
+ 15: 'accent',
34
+ 16: 'primary',
23
35
  };
24
36
 
25
37
  import VChip from 'vuetify/lib/components/VChip/';
@@ -34,8 +46,8 @@ export default Vue.extend({
34
46
  * Invite status
35
47
  */
36
48
  status: {
37
- type: String,
38
- default: '',
49
+ type: Number,
50
+ default: 10,
39
51
  },
40
52
  /**
41
53
  * Full width (from parent)
@@ -47,13 +59,13 @@ export default Vue.extend({
47
59
  },
48
60
  computed: {
49
61
  textColor() {
50
- return this.status === 'CONVIDAR' ? '' : StatusColor[this.status];
62
+ return this.status === 10 || this.status === 16 ? '' : StatusColor[this.status];
51
63
  },
52
64
  color() {
53
65
  return !this.status ? '' : StatusColor[this.status];
54
66
  },
55
67
  label() {
56
- return this.status;
68
+ return StatusLabel[this.status];
57
69
  },
58
70
  },
59
71
  });
@@ -7,7 +7,7 @@ describe('ChipInviteStatus component', () => {
7
7
  beforeEach(() => {
8
8
  wrapper = shallowMount(ChipInviteStatus, {
9
9
  propsData: {
10
- status: 'CONVIDAR',
10
+ status: 10,
11
11
  },
12
12
  });
13
13
  component = wrapper.vm;
@@ -1,7 +1,7 @@
1
1
  import DataTableEmptyWrapper from './DataTableEmptyWrapper.vue';
2
2
 
3
3
  export default {
4
- title: 'Example/Table/DataTableEmptyWrapper',
4
+ title: 'API/Table/DataTableEmptyWrapper',
5
5
  component: DataTableEmptyWrapper,
6
6
  };
7
7
 
@@ -1,7 +1,7 @@
1
1
  import DataTableHeader from './DataTableHeader.vue';
2
2
 
3
3
  export default {
4
- title: 'Example/Table/DataTableHeader',
4
+ title: 'API/Table/DataTableHeader',
5
5
  component: DataTableHeader,
6
6
  };
7
7
 
@@ -1,8 +1,24 @@
1
+ import { withDesign } from 'storybook-addon-designs';
1
2
  import DataTablePaginator from './DataTablePaginator.vue';
2
3
 
3
4
  export default {
4
- title: 'Example/Table/DataTablePaginator',
5
+ title: 'API/Table/DataTablePaginator',
5
6
  component: DataTablePaginator,
7
+ decorators: [withDesign],
8
+ parameters: {
9
+ docs: {
10
+ description: {
11
+ component: `Paginator with items per page select<br />
12
+ selector: <em>farm-datatable-paginator</em>
13
+ `,
14
+ },
15
+ },
16
+ design: {
17
+ type: 'figma',
18
+ url: 'https://www.figma.com/file/1f84J4m1IBghWhozQvdyyt/%E2%9C%8D---Design-System?node-id=1503%3A921',
19
+ },
20
+ viewMode: 'docs',
21
+ },
6
22
  };
7
23
 
8
24
  export const Primary = () => ({
@@ -26,7 +42,26 @@ export const CustomPerPage = () => ({
26
42
  '<DataTablePaginator :perPageOptions="[1, 2, 4, 12, 27]" :totalPages="19" :page="1" />',
27
43
  });
28
44
 
29
- Primary.storyName = 'Básico';
30
- Secondary.storyName = 'Sem limite por páginas';
31
- Disabled.storyName = 'Desabilitado';
32
- CustomPerPage.storyName = 'Lista de registros por página customizada';
45
+ const parameters = {
46
+ design: {
47
+ type: 'figma',
48
+ url: 'https://www.figma.com/file/1f84J4m1IBghWhozQvdyyt/%E2%9C%8D---Design-System?node-id=1503%3A921',
49
+ },
50
+ };
51
+
52
+ Primary.story = {
53
+ name: 'Básico',
54
+ parameters,
55
+ };
56
+ Secondary.story = {
57
+ name: 'Sem limite por páginas',
58
+ parameters,
59
+ };
60
+ Disabled.story = {
61
+ name: 'Desabilitado',
62
+ parameters,
63
+ };
64
+ CustomPerPage.story = {
65
+ name: 'Lista de registros por página customizada',
66
+ parameters,
67
+ };
@@ -22,14 +22,16 @@
22
22
  </section>
23
23
  </template>
24
24
  <script>
25
+ import Vue from 'vue';
25
26
  import { VSelect } from 'vuetify/lib/components/VSelect';
26
27
  import { VPagination } from 'vuetify/lib/components/VPagination';
28
+
27
29
  /**
28
30
  * Componente de paginação usado em tabelas e listas
29
31
  * com opção de itens por página
30
32
  */
31
- export default {
32
- name: 'DataTablePaginator',
33
+ export default Vue.extend({
34
+ name: 'farm-datatable-paginator',
33
35
  props: {
34
36
  /**
35
37
  * Lista de opções para o controle de registros por página
@@ -100,7 +102,7 @@ export default {
100
102
  VSelect,
101
103
  VPagination,
102
104
  },
103
- };
105
+ });
104
106
  </script>
105
107
 
106
108
  <style lang="scss">
@@ -1,26 +1,36 @@
1
1
  import DatePicker from './DatePicker';
2
2
 
3
3
  export default {
4
- title: 'Example/Form/DatePicker',
4
+ title: 'API/Form/DatePicker',
5
5
  component: DatePicker,
6
+ parameters: {
7
+ docs: {
8
+ description: {
9
+ component: `Input Date Picker<br />
10
+ selector: <em>farm-input-datepicker</em>
11
+ `,
12
+ },
13
+ },
14
+ viewMode: 'docs',
15
+ },
6
16
  };
7
17
 
8
18
  export const Primary = () => ({
9
19
  components: { DatePicker },
10
20
  template: `<div style='max-width: 320px'>
11
- <DatePicker inputId="input-custom-id" />
21
+ <DatePicker inputId="input-custom-id-0" />
12
22
  </div>`,
13
23
  });
14
24
 
15
25
  export const InitValue = () => ({
16
26
  components: { DatePicker },
17
- template: `<div style='max-width: 320px'><DatePicker inputId="input-custom-id" value="2021-08-01" /></div>`,
27
+ template: `<div style='max-width: 320px'><DatePicker inputId="input-custom-id-1" value="2021-08-01" /></div>`,
18
28
  });
19
29
 
20
30
  export const MinMaxDates = () => ({
21
31
  components: { DatePicker },
22
32
  template: `<div style='max-width: 320px'>
23
- <DatePicker inputId="input-custom-id" max="2021-12-02" min="2021-07-01" />
33
+ <DatePicker inputId="input-custom-id-2" max="2021-12-02" min="2021-07-01" />
24
34
  max="2021-12-02" min="2021-07-01"
25
35
  </div>`,
26
36
  });
@@ -49,6 +49,7 @@
49
49
  </v-menu>
50
50
  </template>
51
51
  <script>
52
+ import Vue from 'vue';
52
53
  import { VTextField } from 'vuetify/lib/components/VTextField';
53
54
  import { VMenu } from 'vuetify/lib/components/VMenu';
54
55
  import { VBtn } from 'vuetify/lib/components/VBtn';
@@ -57,7 +58,8 @@ import { defaultFormat as dateDefaultFormatter } from '../../helpers/date';
57
58
  /**
58
59
  * Componente de input com datepicker para data
59
60
  */
60
- export default {
61
+ export default Vue.extend({
62
+ name: 'farm-input-datepicker',
61
63
  components: {
62
64
  VTextField,
63
65
  VMenu,
@@ -136,5 +138,5 @@ export default {
136
138
  },
137
139
  },
138
140
  },
139
- };
141
+ });
140
142
  </script>
@@ -3,6 +3,7 @@ import DatePicker from '../DatePicker';
3
3
 
4
4
  describe('DatePicker component', () => {
5
5
  let wrapper;
6
+ let component;
6
7
 
7
8
  beforeEach(() => {
8
9
  wrapper = shallowMount(DatePicker, {
@@ -10,6 +11,7 @@ describe('DatePicker component', () => {
10
11
  inputId: 'someid',
11
12
  },
12
13
  });
14
+ component = wrapper.vm;
13
15
  });
14
16
 
15
17
  test('Created hook', () => {
@@ -21,4 +23,15 @@ describe('DatePicker component', () => {
21
23
  expect(wrapper.element).toMatchSnapshot();
22
24
  });
23
25
  });
26
+
27
+ describe('computed properties', () => {
28
+ it('get inputVal', () => {
29
+ expect(component.inputVal).toBeFalsy();
30
+ });
31
+
32
+ it('get inputVal', () => {
33
+ component.inputVal = 'teste';
34
+ expect(wrapper.emitted().input).toBeDefined();
35
+ });
36
+ });
24
37
  });
@@ -1,7 +1,7 @@
1
1
  import DefaultTextField from './DefaultTextField.vue';
2
2
 
3
3
  export default {
4
- title: 'Example/Form/DefaultTextField',
4
+ title: 'API/Form/DefaultTextField',
5
5
  component: DefaultTextField,
6
6
  };
7
7
 
@@ -29,9 +29,15 @@ export default {
29
29
  value: {
30
30
  required: true,
31
31
  },
32
+ /**
33
+ * Array of rules
34
+ */
32
35
  rules: {
33
36
  type: Array,
34
37
  },
38
+ /**
39
+ * Input is disabled or not
40
+ */
35
41
  disabled: {
36
42
  type: Boolean,
37
43
  default: false,
@@ -41,10 +47,16 @@ export default {
41
47
  required: false,
42
48
  default: 'form',
43
49
  },
50
+ /**
51
+ * Input is required or not
52
+ */
44
53
  required: {
45
54
  type: Boolean,
46
55
  default: false,
47
56
  },
57
+ /**
58
+ * Mask (v-mask)
59
+ */
48
60
  mask: {
49
61
  type: String,
50
62
  default: null,
@@ -1,7 +1,7 @@
1
1
  import DialogFooter from './DialogFooter.vue';
2
2
 
3
3
  export default {
4
- title: 'Example/Dialog/DialogFooter',
4
+ title: 'API/Dialog/DialogFooter',
5
5
  component: DialogFooter,
6
6
  };
7
7
 
@@ -1,7 +1,7 @@
1
1
  import DialogHeader from './DialogHeader.vue';
2
2
 
3
3
  export default {
4
- title: 'Example/Dialog/DialogHeader',
4
+ title: 'API/Dialog/DialogHeader',
5
5
  component: DialogHeader,
6
6
  };
7
7
 
@@ -1,14 +1,11 @@
1
1
  section {
2
- //outline: 1px dashed grey;
3
- //outline-offset: -0.5rem;
4
2
  border: 2px dashed var(--v-gray-lighten1);
5
3
  border-radius: 2rem;
6
4
  background-color: var(--v-gray-lighten4);
7
- //color: var(--v-primary-base);
8
5
  padding: 1rem;
9
6
  position: relative;
10
7
  cursor: pointer;
11
- height: 8rem;
8
+ height: 12rem;
12
9
  display: flex;
13
10
  flex-direction: column;
14
11
  align-items: center;
@@ -45,6 +42,10 @@ section {
45
42
  flex-direction: column;
46
43
  align-items: center;
47
44
  justify-content: center;
45
+ > p {
46
+ margin-bottom: 0;
47
+ font-size: 0.75rem;
48
+ }
48
49
  .v-btn {
49
50
  margin-top: 1rem;
50
51
  }
@@ -1,13 +1,19 @@
1
1
  import FilePicker from './FilePicker.vue';
2
2
 
3
3
  export default {
4
- title: 'Example/FilePicker',
5
- component: FilePicker,
4
+ title: 'API/FilePicker',
5
+ component: FilePicker,
6
6
  };
7
7
 
8
8
  export const Primary = () => ({
9
- components: { FilePicker },
10
- template: '<FilePicker />',
9
+ components: { FilePicker },
10
+ template: '<FilePicker />',
11
+ });
12
+
13
+ export const MaxFileSize = () => ({
14
+ components: { FilePicker },
15
+ template: '<FilePicker maxFileSize="5" />',
11
16
  });
12
17
 
13
18
  Primary.storyName = 'Básico';
19
+ MaxFileSize.storyName = 'Max File Size';