@farm-investimentos/front-mfe-components 8.7.1 → 9.1.1

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 (125) hide show
  1. package/dist/front-mfe-components.common.js +2326 -2122
  2. package/dist/front-mfe-components.common.js.map +1 -1
  3. package/dist/front-mfe-components.css +1 -1
  4. package/dist/front-mfe-components.umd.js +2326 -2122
  5. package/dist/front-mfe-components.umd.js.map +1 -1
  6. package/dist/front-mfe-components.umd.min.js +1 -1
  7. package/dist/front-mfe-components.umd.min.js.map +1 -1
  8. package/package.json +2 -2
  9. package/src/components/Buttons/ConfirmButton/ConfirmButton.vue +1 -5
  10. package/src/components/Buttons/DangerButton/DangerButton.stories.js +7 -18
  11. package/src/components/Buttons/DangerButton/DangerButton.vue +2 -6
  12. package/src/components/Buttons/DefaultButton/DefaultButton.scss +11 -2
  13. package/src/components/Buttons/DefaultButton/DefaultButton.stories.js +11 -7
  14. package/src/components/Buttons/DefaultButton/DefaultButton.vue +15 -15
  15. package/src/components/Buttons/DefaultButton/__tests__/DefaultButton.spec.js +0 -4
  16. package/src/components/Buttons/ExportButton/ExportButton.stories.js +3 -6
  17. package/src/components/Buttons/ExportButton/ExportButton.vue +1 -7
  18. package/src/components/Buttons/ImportButton/ImportButton.scss +9 -0
  19. package/src/components/Buttons/ImportButton/ImportButton.stories.js +5 -9
  20. package/src/components/Buttons/ImportButton/ImportButton.vue +4 -15
  21. package/src/components/Buttons/MultiImportButton/MultiImportButton.stories.js +2 -5
  22. package/src/components/Buttons/MultiImportButton/MultiImportButton.vue +0 -2
  23. package/src/components/Buttons/RemoveButton/RemoveButton.scss +5 -0
  24. package/src/components/Buttons/RemoveButton/RemoveButton.stories.js +2 -4
  25. package/src/components/Buttons/RemoveButton/RemoveButton.vue +2 -12
  26. package/src/components/Buttons/ToggleButton/ToggleButton.stories.js +5 -12
  27. package/src/components/Buttons/ToggleButton/ToggleButton.vue +3 -9
  28. package/src/{examples/Card.stories.ts → components/Card/CardComposition.stories.ts} +2 -29
  29. package/src/components/CardContext/CardContext.stories.js +14 -26
  30. package/src/components/CardContext/CardContext.vue +5 -5
  31. package/src/components/Checkbox/Checkbox.scss +29 -0
  32. package/src/components/Checkbox/Checkbox.stories.js +49 -0
  33. package/src/components/Checkbox/Checkbox.vue +48 -0
  34. package/src/components/Checkbox/__tests__/Checkbox.spec.js +20 -0
  35. package/src/components/Checkbox/index.ts +4 -0
  36. package/src/components/Chip/Chip.stories.js +44 -3
  37. package/src/{examples → components/Chip}/Chip.stories.scss +0 -0
  38. package/src/components/Chip/Chip.vue +4 -9
  39. package/src/components/ChipInviteStatus/ChipInviteStatus.stories.js +9 -12
  40. package/src/components/Collapsible/Collapsible.stories.js +41 -11
  41. package/src/components/Collapsible/Collapsible.vue +1 -10
  42. package/src/components/DataTableEmptyWrapper/DataTableEmptyWrapper.stories.js +5 -11
  43. package/src/components/DataTableHeader/DataTableHeader.stories.js +1 -2
  44. package/src/components/DataTablePaginator/DataTablePaginator.stories.js +4 -4
  45. package/src/components/DataTablePaginator/__tests__/DataTablePaginator.spec.js +1 -1
  46. package/src/components/DatePicker/DatePicker.vue +8 -1
  47. package/src/components/DialogFooter/DialogFooter.stories.js +31 -3
  48. package/src/components/DialogHeader/DialogHeader.stories.js +33 -7
  49. package/src/components/FilePicker/FilePicker.stories.js +1 -6
  50. package/src/components/Icon/Icon.stories.js +2 -2
  51. package/src/components/IconBox/IconBox.scss +17 -5
  52. package/src/components/IconBox/IconBox.stories.js +65 -5
  53. package/src/components/IconBox/IconBox.vue +18 -6
  54. package/src/components/IdCaption/IdCaption.scss +36 -0
  55. package/src/components/IdCaption/IdCaption.stories.js +116 -0
  56. package/src/components/IdCaption/IdCaption.vue +63 -0
  57. package/src/components/IdCaption/__tests__/IdCaption.spec.js +14 -0
  58. package/src/components/IdCaption/index.ts +3 -0
  59. package/src/components/Label/Label.stories.js +3 -12
  60. package/src/{examples → components/Loader}/Loader.stories.ts +2 -11
  61. package/src/components/Logger/Logger.stories.js +36 -6
  62. package/src/components/Logger/LoggerItem/LoggerItem.stories.js +42 -4
  63. package/src/components/Logger/LoggerItem/LoggerItem.vue +0 -4
  64. package/src/components/Logos/OriginatorLogo/OriginatorLogo.stories.js +2 -3
  65. package/src/components/Logos/ProductLogo/ProductLogo.stories.js +2 -3
  66. package/src/components/MainFilter/MainFilter.stories.js +19 -10
  67. package/src/components/MainFilter/MainFilter.vue +2 -12
  68. package/src/components/ManagersList/ManagersList.stories.js +2 -6
  69. package/src/components/ManagersList/ManagersList.vue +5 -3
  70. package/src/components/ModalPromptUser/ModalPromptUser.stories.js +22 -30
  71. package/src/components/ModalPromptUser/ModalPromptUser.vue +0 -4
  72. package/src/components/MultipleFilePicker/MultipleFilePicker.stories.js +1 -10
  73. package/src/components/MultipleSelectShortener/MultipleSelectShortener.stories.js +2 -7
  74. package/src/components/ProgressBar/ProgressBar.stories.js +16 -11
  75. package/src/components/PromptUserToConfirm/PromptUserToConfirm.stories.js +18 -12
  76. package/src/components/PromptUserToConfirm/PromptUserToConfirm.vue +5 -3
  77. package/src/components/ResetTableRowSelection/ResetTableRowSelection.stories.js +1 -4
  78. package/src/components/SelectModalOptions/SelectModalOptions.stories.js +3 -8
  79. package/src/components/Stepper/StepperHeader/StepperHeader.stories.js +54 -3
  80. package/src/components/Stepper/StepperHeader/StepperHeader.vue +0 -4
  81. package/src/components/TableContextMenu/TableContextMenu.stories.js +20 -40
  82. package/src/components/TableContextMenu/TableContextMenu.vue +0 -2
  83. package/src/components/Tabs/Tabs.stories.js +2 -5
  84. package/src/components/Tabs/Tabs.vue +4 -3
  85. package/src/components/TextField/TextField.stories.js +25 -10
  86. package/src/components/Typography/BodyText/BodyText.stories.js +34 -6
  87. package/src/components/Typography/BodyText/BodyText.vue +0 -3
  88. package/src/components/Typography/Caption/Caption.stories.js +30 -7
  89. package/src/components/Typography/Caption/Caption.vue +0 -2
  90. package/src/components/Typography/Heading/Heading.stories.js +7 -6
  91. package/src/components/Typography/Heading/Heading.vue +0 -2
  92. package/src/components/Typography/OverlayText/OverlayText.stories.js +0 -1
  93. package/src/components/Typography/OverlayText/OverlayText.vue +0 -2
  94. package/src/components/Typography/Subtitle/Subtitle.stories.js +34 -6
  95. package/src/components/Typography/Subtitle/Subtitle.vue +0 -2
  96. package/src/configurations/_theme-colors-base.scss +8 -0
  97. package/src/configurations/_theme-colors-variations.scss +9 -0
  98. package/src/examples/Colors.stories.js +28 -0
  99. package/src/examples/Colors.stories.scss +15 -0
  100. package/src/examples/ConfirmDialog.stories.js +1 -9
  101. package/src/examples/Container/Basic.stories.js +2 -16
  102. package/src/examples/Form/Full.stories.js +1 -7
  103. package/src/examples/Modal.stories.js +1 -55
  104. package/src/examples/Table.stories.js +2 -11
  105. package/src/examples/inputs/Password.stories.js +1 -1
  106. package/src/examples/inputs/Select.stories.js +1 -1
  107. package/src/main.ts +3 -0
  108. package/src/stories/Introduction.stories.mdx +1 -1
  109. package/src/components/Loader/Loader.stories.js +0 -13
  110. package/src/examples/Chip.stories.js +0 -53
  111. package/src/examples/Collapsible.stories.js +0 -52
  112. package/src/examples/Dialog/DialogFooter.stories.js +0 -42
  113. package/src/examples/Dialog/DialogHeader.stories.js +0 -43
  114. package/src/examples/Form/Label.stories.js +0 -18
  115. package/src/examples/Form/TextField.stories.js +0 -47
  116. package/src/examples/IconBox.stories.js +0 -62
  117. package/src/examples/Logger/Logger.stories.js +0 -59
  118. package/src/examples/Logger/LoggerItem.stories.js +0 -81
  119. package/src/examples/MainFilter.stories.js +0 -29
  120. package/src/examples/ProgressBar.stories.js +0 -71
  121. package/src/examples/Stepper/StepperHeader.stories.js +0 -99
  122. package/src/examples/Typography/BodyText.stories.js +0 -58
  123. package/src/examples/Typography/Caption.stories.js +0 -55
  124. package/src/examples/Typography/Heading.stories.js +0 -32
  125. package/src/examples/Typography/Subtitle.stories.js +0 -58
@@ -35,7 +35,6 @@ import { VIcon } from 'vuetify/lib/components/VIcon';
35
35
  import { VList } from 'vuetify/lib/components/VList';
36
36
  import VListItem from 'vuetify/lib/components/VList/VListItem';
37
37
  import { VListItemContent, VListItemTitle } from 'vuetify/lib';
38
- import DefaultButton from '../Buttons/DefaultButton';
39
38
 
40
39
  export default Vue.extend({
41
40
  name: 'farm-context-menu',
@@ -46,7 +45,6 @@ export default Vue.extend({
46
45
  VListItem,
47
46
  VListItemContent,
48
47
  VListItemTitle,
49
- 'farm-btn': DefaultButton,
50
48
  },
51
49
  props: {
52
50
  items: {
@@ -1,13 +1,10 @@
1
1
  import Tabs from './Tabs.vue';
2
2
 
3
3
  export default {
4
- title: 'API/Tabs',
4
+ title: 'Display/Tabs',
5
5
  component: Tabs,
6
6
  };
7
7
 
8
8
  export const Primary = () => ({
9
- components: { Tabs },
10
- template: '<Tabs />',
9
+ template: '<farm-tabs />',
11
10
  });
12
-
13
- Primary.storyName = 'Padrão';
@@ -19,9 +19,10 @@
19
19
  </v-tabs>
20
20
  </template>
21
21
 
22
- <script>
22
+ <script lang="ts">
23
+ import Vue from 'vue';
23
24
  import { VTabs, VTab } from 'vuetify/lib/components/VTabs';
24
- export default {
25
+ export default Vue.extend({
25
26
  name: 'farm-tabs',
26
27
  data: () => ({
27
28
  selected: 0,
@@ -86,7 +87,7 @@ export default {
86
87
  VTabs,
87
88
  VTab,
88
89
  },
89
- };
90
+ });
90
91
  </script>
91
92
  <style scoped lang="scss">
92
93
  div.rounded-circle {
@@ -22,7 +22,6 @@ export default {
22
22
  };
23
23
 
24
24
  export const Primary = () => ({
25
- components: { 'farm-textfield': TextField },
26
25
  data() {
27
26
  return {
28
27
  v: '',
@@ -34,14 +33,30 @@ export const Primary = () => ({
34
33
  </div>`,
35
34
  });
36
35
 
37
- const parameters = {
38
- design: {
39
- type: 'figma',
40
- url: 'https://www.figma.com/file/1f84J4m1IBghWhozQvdyyt/%E2%9C%85---Design-System-%7C-v1?node-id=1503%3A227',
36
+ export const BindVar = () => ({
37
+ data() {
38
+ return {
39
+ v: '',
40
+ };
41
41
  },
42
- };
42
+ template: `<div style="width: 480px">
43
+ <farm-textfield v-model="v" />
44
+ value: {{ v }}
45
+ </div>`,
46
+ });
43
47
 
44
- Primary.story = {
45
- name: 'Basic',
46
- parameters,
47
- };
48
+ export const Rules = () => ({
49
+ data() {
50
+ return {
51
+ v: '',
52
+ rules: {
53
+ required: val => !!val,
54
+ },
55
+ };
56
+ },
57
+ template: `<div style="width: 480px">
58
+ <h4>Custom rule (required field)</h4>
59
+ <farm-textfield v-model="v" :rules="[rules.required]" />
60
+ value: {{ v }}
61
+ </div>`,
62
+ });
@@ -1,4 +1,4 @@
1
- import BodyText from './BodyText.vue';
1
+ import BodyText from './BodyText';
2
2
 
3
3
  export default {
4
4
  title: 'Typography/BodyText',
@@ -19,12 +19,40 @@ export const Primary = () => ({
19
19
  components: { 'farm-bodytext': BodyText },
20
20
  data() {
21
21
  return {
22
- type: 1,
22
+ types: [1, 2],
23
+ variations: ['regular', 'medium', 'bold'],
23
24
  };
24
25
  },
25
- template: `<farm-bodytext :type="1" :variation="'regular'" tag="span">
26
- farm bodytext
27
- </farm-bodytext>`,
26
+ template: `<div>
27
+ <div v-for="type in types" :key="type">
28
+ <farm-bodytext
29
+ v-for="variation in variations"
30
+ :key="variation"
31
+ :type="type"
32
+ :variation="variation">
33
+ BodyText {{ type }} {{ variation }}
34
+ </farm-bodytext>
35
+ </div>
36
+ </div>`,
28
37
  });
29
38
 
30
- Primary.storyName = 'Basic';
39
+ export const CustomTag = () => ({
40
+ components: { 'farm-bodytext': BodyText },
41
+ data() {
42
+ return {
43
+ tags: ['p', 'span', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'legend', 'label', 'li'],
44
+ };
45
+ },
46
+ template: `<div>
47
+ <farm-bodytext
48
+ v-for="t in tags"
49
+ :tag="t"
50
+ :key="t"
51
+ :type="1"
52
+ variation="regular"
53
+ >
54
+ BodyText with {{ t }} tag
55
+ </farm-bodytext>
56
+
57
+ </div>`,
58
+ });
@@ -11,8 +11,6 @@
11
11
  </template>
12
12
  <script lang="ts">
13
13
  import Vue, { computed, ref, watch, toRefs, PropType } from 'vue';
14
- import Typography from '../Typography.vue';
15
-
16
14
  import { Keys } from './configurations';
17
15
 
18
16
  export default Vue.extend({
@@ -45,7 +43,6 @@ export default Vue.extend({
45
43
 
46
44
  return { weight, size, key, type, variation };
47
45
  },
48
- components: { 'farm-typography': Typography },
49
46
  });
50
47
  </script>
51
48
  <style lang="scss" scoped>
@@ -1,4 +1,4 @@
1
- import Caption from './Caption.vue';
1
+ import Caption from './Caption';
2
2
 
3
3
  export default {
4
4
  title: 'Typography/Caption',
@@ -16,15 +16,38 @@ export default {
16
16
  };
17
17
 
18
18
  export const Primary = () => ({
19
- components: { 'farm-caption': Caption },
20
19
  data() {
21
20
  return {
22
- type: 1,
21
+ variations: ['regular', 'medium'],
23
22
  };
24
23
  },
25
- template: `<farm-caption variation="regular" tag="span">
26
- farm caption
27
- </farm-caption>`,
24
+ template: `<div>
25
+ <farm-caption
26
+ v-for="variation in variations"
27
+ :key="variation"
28
+ :variation="variation">
29
+ Caption {{ variation }}
30
+ </farm-caption>
31
+
32
+ </div>`,
28
33
  });
29
34
 
30
- Primary.storyName = 'Basic';
35
+ export const CustomTag = () => ({
36
+ data() {
37
+ return {
38
+ tags: ['p', 'span', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'legend', 'label', 'li'],
39
+ };
40
+ },
41
+ template: `<div>
42
+ <farm-caption
43
+ v-for="t in tags"
44
+ :tag="t"
45
+ :key="t"
46
+ :type="1"
47
+ variation="regular"
48
+ >
49
+ Caption with {{ t }} tag
50
+ </farm-caption>
51
+
52
+ </div>`,
53
+ });
@@ -11,7 +11,6 @@
11
11
  </template>
12
12
  <script lang="ts">
13
13
  import Vue, { computed, ref, watch, toRefs, PropType } from 'vue';
14
- import Typography from '../Typography.vue';
15
14
 
16
15
  import { Keys } from './configurations';
17
16
 
@@ -41,7 +40,6 @@ export default Vue.extend({
41
40
 
42
41
  return { weight, size, key, variation };
43
42
  },
44
- components: { 'farm-typography': Typography },
45
43
  });
46
44
  </script>
47
45
  <style lang="scss" scoped>
@@ -1,4 +1,4 @@
1
- import Heading from './Heading.vue';
1
+ import Heading from './Heading';
2
2
 
3
3
  export default {
4
4
  title: 'Typography/Heading',
@@ -16,15 +16,16 @@ export default {
16
16
  };
17
17
 
18
18
  export const Primary = () => ({
19
- components: { 'farm-heading': Heading },
20
19
  data() {
21
20
  return {
22
- type: 1,
21
+ types: [1, 2, 3, 4, 5, 6],
23
22
  };
24
23
  },
25
- template: `<farm-heading :type="type">
26
- farm heading
27
- </farm-heading>`,
24
+ template: `<div>
25
+ <farm-heading v-for="type in types" :key="type" :type="type">
26
+ Heading {{ type }}
27
+ </farm-heading>
28
+ </div>`,
28
29
  });
29
30
 
30
31
  Primary.storyName = 'Basic';
@@ -11,7 +11,6 @@
11
11
  </template>
12
12
  <script lang="ts">
13
13
  import Vue, { computed, ref, watch, toRefs, PropType } from 'vue';
14
- import Typography from '../Typography.vue';
15
14
 
16
15
  import { Keys } from './configurations';
17
16
 
@@ -42,7 +41,6 @@ export default Vue.extend({
42
41
 
43
42
  return { weight, size, tag, config, key };
44
43
  },
45
- components: { 'farm-typography': Typography },
46
44
  });
47
45
  </script>
48
46
  <style lang="scss" scoped>
@@ -16,7 +16,6 @@ export default {
16
16
  };
17
17
 
18
18
  export const Primary = () => ({
19
- components: { 'farm-overlaytext': OverlayText },
20
19
  template: `<farm-overlaytext>
21
20
  FARM OVERLAYTEXT
22
21
  </farm-overlaytext>`,
@@ -10,12 +10,10 @@
10
10
  </template>
11
11
  <script lang="ts">
12
12
  import Vue from 'vue';
13
- import Typography from '../Typography.vue';
14
13
 
15
14
  export default Vue.extend({
16
15
  inheritAttrs: true,
17
16
  name: 'farm-overlaytext',
18
- components: { 'farm-typography': Typography },
19
17
  });
20
18
  </script>
21
19
  <style lang="scss" scoped>
@@ -1,4 +1,4 @@
1
- import Subtitle from './Subtitle.vue';
1
+ import Subtitle from './Subtitle';
2
2
 
3
3
  export default {
4
4
  title: 'Typography/Subtitle',
@@ -19,12 +19,40 @@ export const Primary = () => ({
19
19
  components: { 'farm-subtitle': Subtitle },
20
20
  data() {
21
21
  return {
22
- type: 1,
22
+ types: [1, 2],
23
+ variations: ['regular', 'medium'],
23
24
  };
24
25
  },
25
- template: `<farm-subtitle :type="1" :variation="'regular'" tag="span">
26
- farm subtitle
27
- </farm-subtitle>`,
26
+ template: `<div>
27
+ <template v-for="type in types" :key="type">
28
+ <farm-subtitle
29
+ v-for="variation in variations"
30
+ :key="variation"
31
+ :type="type"
32
+ :variation="variation">
33
+ Subtitle {{ type }} {{ variation }}
34
+ </farm-subtitle>
35
+ </template>
36
+ </div>`,
28
37
  });
29
38
 
30
- Primary.storyName = 'Basic';
39
+ export const CustomTag = () => ({
40
+ components: { 'farm-subtitle': Subtitle },
41
+ data() {
42
+ return {
43
+ tags: ['p', 'span', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'legend', 'label', 'li'],
44
+ };
45
+ },
46
+ template: `<div>
47
+ <farm-subtitle
48
+ v-for="t in tags"
49
+ :tag="t"
50
+ :key="t"
51
+ :type="1"
52
+ variation="regular"
53
+ >
54
+ Subtitle with {{ t }} tag
55
+ </farm-subtitle>
56
+
57
+ </div>`,
58
+ });
@@ -11,7 +11,6 @@
11
11
  </template>
12
12
  <script lang="ts">
13
13
  import Vue, { computed, ref, watch, toRefs, PropType } from 'vue';
14
- import Typography from '../Typography.vue';
15
14
 
16
15
  import { Keys } from './configurations';
17
16
 
@@ -45,7 +44,6 @@ export default Vue.extend({
45
44
 
46
45
  return { weight, size, key, type, variation };
47
46
  },
48
- components: { 'farm-typography': Typography },
49
47
  });
50
48
  </script>
51
49
  <style lang="scss" scoped>
@@ -0,0 +1,8 @@
1
+ @import './theme-colors';
2
+
3
+ :export {
4
+ @each $name,
5
+ $color in $theme-colors {
6
+ #{$name}: themeColor($name);
7
+ }
8
+ }
@@ -0,0 +1,9 @@
1
+ @import './theme-colors';
2
+
3
+ :export {
4
+ @each $name,
5
+ $color in $theme-colors {
6
+ #{$name + "-lighten"}: themeColor($name, "lighten");
7
+ #{$name + "-darken"}: themeColor($name, "darken");
8
+ }
9
+ }
@@ -0,0 +1,28 @@
1
+ import baseThemeColors from '../configurations/_theme-colors-base.scss';
2
+ import variationThemeColors from '../configurations/_theme-colors-variations.scss';
3
+ import('./Colors.stories.scss');
4
+
5
+ export default {
6
+ title: 'Colors/Pallete',
7
+ };
8
+
9
+ export const NamesAndValues = () => ({
10
+ data() {
11
+ return {
12
+ baseThemeColors: { ...baseThemeColors },
13
+ keys: Object.keys(baseThemeColors),
14
+ variationThemeColors: { ...variationThemeColors },
15
+ };
16
+ },
17
+ template: `<div class="palette-container">
18
+ <div
19
+ v-for="key in keys"
20
+ :key="key"
21
+ >
22
+ <farm-heading :type="5">{{ key }}</farm-heading>
23
+ <span :style="{ backgroundColor: baseThemeColors[key] }">Base {{ baseThemeColors[key] }}</span>
24
+ <span :style="{ backgroundColor: variationThemeColors[key + '-lighten'] }">Lighten: {{ variationThemeColors[key + '-lighten'] }}</span>
25
+ <span :style="{ backgroundColor: variationThemeColors[key + '-darken'], color: 'white' }">Darken: {{ variationThemeColors[key + '-darken'] }}</span>
26
+ </div>
27
+ </div>`,
28
+ });
@@ -0,0 +1,15 @@
1
+ .palette-container {
2
+ display: flex;
3
+ flex-direction: row;
4
+
5
+ >div {
6
+ display: flex;
7
+ flex-direction: column;
8
+ width: calc(25% - 32px);
9
+ margin: auto 16px;
10
+
11
+ span {
12
+ padding: 4px 8px;
13
+ }
14
+ }
15
+ }
@@ -1,8 +1,7 @@
1
1
  import { withDesign } from 'storybook-addon-designs';
2
- import { ConfirmButton } from '../main';
3
2
 
4
3
  export default {
5
- title: 'Examples/ConfirmDialog',
4
+ title: 'Display/Dialog/Confirm',
6
5
  decorators: [withDesign],
7
6
  parameters: {
8
7
  viewMode: 'docs',
@@ -15,9 +14,6 @@ export default {
15
14
  };
16
15
 
17
16
  export const ConfirmDialog = () => ({
18
- components: {
19
- ConfirmButton,
20
- },
21
17
  methods: {
22
18
  openDialog() {
23
19
  this.$dialog.confirm({
@@ -45,7 +41,3 @@ export const ConfirmDialog = () => ({
45
41
  </ConfirmButton>
46
42
  </div>`,
47
43
  });
48
-
49
- ConfirmDialog.story = {
50
- name: 'ConfirmDialog',
51
- };
@@ -1,11 +1,9 @@
1
- import { Container, ContainerFooter, StepperHeader } from '../../main.ts';
2
-
3
1
  export default {
4
- title: 'Examples/Container',
2
+ title: 'Layout/Container/Examples',
5
3
  parameters: {
6
4
  docs: {
7
5
  description: {
8
- component: `Container<br />selector: <em>farm-container</em>`,
6
+ component: `Full Container`,
9
7
  },
10
8
  },
11
9
  viewMode: 'docs',
@@ -13,12 +11,10 @@ export default {
13
11
  };
14
12
 
15
13
  export const Primary = () => ({
16
- components: { 'farm-container': Container },
17
14
  template: '<farm-container>content</farm-container>',
18
15
  });
19
16
 
20
17
  export const Secondary = () => ({
21
- components: { 'farm-container': Container, 'farm-container-footer': ContainerFooter },
22
18
  template: `
23
19
  <farm-container>
24
20
  Content
@@ -30,10 +26,6 @@ export const Secondary = () => ({
30
26
  });
31
27
 
32
28
  export const Tertiary = () => ({
33
- components: {
34
- 'farm-container': Container,
35
- 'farm-stepper-header': StepperHeader,
36
- },
37
29
  data() {
38
30
  return {
39
31
  steps: [
@@ -51,9 +43,3 @@ export const Tertiary = () => ({
51
43
  </farm-container>
52
44
  `,
53
45
  });
54
-
55
- Primary.storyName = 'Básico';
56
-
57
- Secondary.storyName = 'Footer';
58
-
59
- Tertiary.storyName = 'Stepper';
@@ -1,12 +1,8 @@
1
- import { Label, TextField } from '../../main.ts';
2
-
3
1
  export default {
4
- title: 'Examples/Form/Full',
5
- component: Label,
2
+ title: 'Form/Examples',
6
3
  };
7
4
 
8
5
  export const Primary = () => ({
9
- components: { 'farm-label': Label, 'farm-textfield': TextField },
10
6
  data() {
11
7
  return {
12
8
  form: {
@@ -52,8 +48,6 @@ export const Primary = () => ({
52
48
  `,
53
49
  });
54
50
 
55
- Primary.storyName = 'Basic';
56
-
57
51
  const emailValidator = value => {
58
52
  if (!value) {
59
53
  return false;
@@ -2,7 +2,7 @@ import { withDesign } from 'storybook-addon-designs';
2
2
  import { DialogHeader, DialogFooter } from '../main';
3
3
 
4
4
  export default {
5
- title: 'Examples/Modal',
5
+ title: 'Display/Dialog/Examples',
6
6
  decorators: [withDesign],
7
7
  component: Modal,
8
8
  };
@@ -11,10 +11,6 @@ export const Modal = () => ({
11
11
  /*
12
12
  * How to create the default modal following FARM's Design System guideline
13
13
  */
14
- components: {
15
- DialogHeader,
16
- DialogFooter,
17
- },
18
14
  data() {
19
15
  return {
20
16
  inputVal: false,
@@ -35,10 +31,6 @@ export const Modal = () => ({
35
31
  });
36
32
 
37
33
  export const ModalSmall = () => ({
38
- components: {
39
- DialogHeader,
40
- DialogFooter,
41
- },
42
34
  data() {
43
35
  return {
44
36
  showModalSmall: false,
@@ -59,10 +51,6 @@ export const ModalSmall = () => ({
59
51
  });
60
52
 
61
53
  export const ModalExtremeSmall = () => ({
62
- components: {
63
- DialogHeader,
64
- DialogFooter,
65
- },
66
54
  data() {
67
55
  return {
68
56
  showModalSmall: false,
@@ -83,10 +71,6 @@ export const ModalExtremeSmall = () => ({
83
71
  });
84
72
 
85
73
  export const ModalMedium = () => ({
86
- components: {
87
- DialogHeader,
88
- DialogFooter,
89
- },
90
74
  data() {
91
75
  return {
92
76
  showModalSmall: false,
@@ -107,10 +91,6 @@ export const ModalMedium = () => ({
107
91
  });
108
92
 
109
93
  export const ModalScrollVertical = () => ({
110
- components: {
111
- DialogHeader,
112
- DialogFooter,
113
- },
114
94
  data() {
115
95
  return {
116
96
  showModalSmall: false,
@@ -133,10 +113,6 @@ export const ModalScrollVertical = () => ({
133
113
  });
134
114
 
135
115
  export const ModalScrollHorizontal = () => ({
136
- components: {
137
- DialogHeader,
138
- DialogFooter,
139
- },
140
116
  data() {
141
117
  return {
142
118
  open: false,
@@ -204,33 +180,3 @@ export const ModalScrollHorizontal = () => ({
204
180
  </v-btn>
205
181
  </div>`,
206
182
  });
207
-
208
- Modal.story = {
209
- name: 'Básico',
210
- parameters: {
211
- design: {
212
- type: 'figma',
213
- url:
214
- 'https://www.figma.com/file/rkkAsX4IP0tzv1udIDXlqe/%E2%9C%8D---Onboarding---PJ?node-id=2867%3A10594',
215
- },
216
- },
217
- };
218
-
219
- ModalSmall.story = {
220
- name: 'Pequeno',
221
- parameters: {
222
- design: {
223
- type: 'figma',
224
- url:
225
- 'https://www.figma.com/file/rkkAsX4IP0tzv1udIDXlqe/%E2%9C%8D---Onboarding---PJ?node-id=5336%3A32496',
226
- },
227
- },
228
- };
229
-
230
- ModalScrollVertical.storyName = 'Rolagem vertical';
231
-
232
- ModalScrollHorizontal.storyName = 'Rolagem horizontal';
233
-
234
- ModalExtremeSmall.storyName = 'Extra pequeno';
235
-
236
- ModalMedium.storyName = 'Médio';