@farm-investimentos/front-mfe-components 10.1.4 → 11.0.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 (36) hide show
  1. package/dist/front-mfe-components.common.js +526 -526
  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 +526 -526
  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 +1 -1
  9. package/src/components/AlertReload/AlertReload.vue +1 -1
  10. package/src/components/ButtonToggle/ButtonToggle.vue +1 -1
  11. package/src/components/Buttons/ConfirmButton/ConfirmButton.vue +1 -1
  12. package/src/components/Buttons/DefaultButton/DefaultButton.scss +13 -12
  13. package/src/components/Buttons/DefaultButton/DefaultButton.stories.js +10 -9
  14. package/src/components/Buttons/DefaultButton/DefaultButton.vue +7 -7
  15. package/src/components/Buttons/ExportButton/ExportButton.vue +2 -0
  16. package/src/components/Buttons/ImportButton/ImportButton.scss +1 -2
  17. package/src/components/Buttons/ImportButton/ImportButton.vue +1 -1
  18. package/src/components/Buttons/MultiImportButton/MultiImportButton.vue +1 -0
  19. package/src/components/Buttons/ToggleButton/ToggleButton.vue +1 -1
  20. package/src/components/CardContext/CardContext.stories.js +9 -0
  21. package/src/components/CardContext/CardContext.vue +23 -3
  22. package/src/components/CopyToClipboard/CopyToClipboard.vue +1 -1
  23. package/src/components/DatePicker/DatePicker.vue +7 -11
  24. package/src/components/DialogFooter/DialogFooter.vue +2 -2
  25. package/src/components/Logger/Logger.scss +4 -4
  26. package/src/components/Logger/LoggerItem/LoggerItem.scss +5 -5
  27. package/src/components/Logger/LoggerItem/LoggerItem.vue +6 -5
  28. package/src/components/Logger/LoggerItem/__tests__/LoggerItem.spec.js +2 -2
  29. package/src/components/MainFilter/MainFilter.vue +0 -1
  30. package/src/components/ModalPromptUser/ModalPromptUser.vue +1 -1
  31. package/src/components/RangeDatePicker/RangeDatePicker.vue +3 -3
  32. package/src/components/TableContextMenu/TableContextMenu.scss +2 -1
  33. package/src/components/TableContextMenu/TableContextMenu.vue +1 -1
  34. package/src/components/layout/Box/Box.scss +0 -21
  35. package/src/components/layout/Box/Box.stories.js +0 -37
  36. package/src/components/layout/Box/Box.vue +0 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farm-investimentos/front-mfe-components",
3
- "version": "10.1.4",
3
+ "version": "11.0.1",
4
4
  "author": "farm investimentos",
5
5
  "private": false,
6
6
  "main": "./dist/front-mfe-components.common.js",
@@ -11,7 +11,7 @@
11
11
  {{ label }}
12
12
  </farm-typography>
13
13
  </div>
14
- <farm-btn color="secondary" alt="Recarregar" @click="$emit('onClick')">
14
+ <farm-btn alt="Recarregar" @click="$emit('onClick')">
15
15
  <farm-icon>refresh</farm-icon>
16
16
  Recarregar
17
17
  </farm-btn>
@@ -3,7 +3,7 @@
3
3
  <farm-btn
4
4
  v-for="(button, index) in buttons"
5
5
  :key="`button_toggle_` + index"
6
- :color="isSelected(index) ? 'secondary' : 'gray'"
6
+ :color="isSelected(index) ? 'primary' : 'secondary'"
7
7
  :outlined="!isSelected(index)"
8
8
  @click="setValue(index)"
9
9
  >
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <farm-btn v-bind="$attrs" v-on="$listeners" color="secondary">
2
+ <farm-btn v-bind="$attrs" v-on="$listeners">
3
3
  <i :class="{ mdi: true, [iconPath]: true, 'mr-3': true }" v-if="icon"></i>
4
4
  <slot></slot>
5
5
  </farm-btn>
@@ -1,5 +1,6 @@
1
1
  @import '../../../configurations/variables';
2
2
  @import '../../../configurations/mixins';
3
+ @import '../../../configurations/theme-colors';
3
4
 
4
5
  .farm-btn {
5
6
  font-size: 14px;
@@ -137,23 +138,23 @@
137
138
  height: 64px;
138
139
  }
139
140
 
140
- @each $color in $colors {
141
+ @each $color in $theme-colors-list {
141
142
  &#{'.farm-btn--' + $color}:not(.farm-btn--disabled) {
142
143
  &:hover {
143
- color: var(--v-#{$color}-base);
144
+ color: var(--farm-#{$color}-base);
144
145
  }
145
146
 
146
- i.mdi {
147
- color: var(--v-#{$color}-base);
147
+ ::v-deep .farm-btn__content i.mdi {
148
+ color: var(--farm-#{$color}-base);
148
149
  }
149
150
  }
150
151
  }
151
152
  }
152
153
 
153
- @each $color in $colors {
154
+ @each $color in $theme-colors-list {
154
155
  #{'.farm-btn--' + $color} {
155
- border: 1px solid var(--v-#{$color}-base);
156
- background-color: var(--v-#{$color}-base);
156
+ border: 1px solid var(--farm-#{$color}-base);
157
+ background-color: var(--farm-#{$color}-base);
157
158
  color: white;
158
159
 
159
160
  ::v-deep .farm-btn__content {
@@ -175,9 +176,9 @@
175
176
 
176
177
  :not(.farm-btn--disabled) {
177
178
  &.farm-btn--outlined#{'.farm-btn--' + $color} {
178
- border: 1px solid var(--v-#{$color}-base);
179
+ border: 1px solid var(--farm-#{$color}-base);
179
180
  background: white;
180
- color: var(--v-#{$color}-base);
181
+ color: var(--farm-#{$color}-base);
181
182
 
182
183
  &.farm-btn--extra,
183
184
  &.farm-btn--white {
@@ -186,14 +187,14 @@
186
187
  }
187
188
 
188
189
  .farm-btn__content i.mdi {
189
- color: var(--v-#{$color}-base);
190
+ color: var(--farm-#{$color}-base);
190
191
  }
191
192
  }
192
193
 
193
194
  &.farm-btn--plain#{'.farm-btn--' + $color} {
194
195
  border: none;
195
196
  background: white;
196
- color: var(--v-#{$color}-base);
197
+ color: var(--farm-#{$color}-base);
197
198
 
198
199
  &.farm-btn--extra,
199
200
  &.farm-btn--white {
@@ -205,7 +206,7 @@
205
206
  }
206
207
 
207
208
  .farm-btn__content i.mdi {
208
- color: var(--v-#{$color}-base);
209
+ color: var(--farm-#{$color}-base);
209
210
  }
210
211
  }
211
212
  }
@@ -1,13 +1,14 @@
1
1
  import DefaultButton from './DefaultButton.vue';
2
- // import { withDesign } from 'storybook-addon-designs';
3
- import colors from '../../../configurations/colors';
2
+ import { withDesign } from 'storybook-addon-designs';
3
+ import baseThemeColors from '../../../configurations/_theme-colors-base.scss';
4
+ const colors = Object.keys(baseThemeColors);
4
5
  import './Buttons.stories.scss';
5
6
 
6
7
  export default {
7
8
  title: 'Buttons/Default',
8
9
  component: DefaultButton,
9
10
 
10
- //decorators: [withDesign],
11
+ decorators: [withDesign],
11
12
  parameters: {
12
13
  docs: {
13
14
  description: {
@@ -198,31 +199,31 @@ export const Sizes = () => ({
198
199
  template: `<div>
199
200
  <h4>Default</h4>
200
201
  <div :style="styles">
201
- <farm-btn v-for="size of sizes" :style="styles.farmBtn" :key="'default_' + size" :size="size" color="secondary">
202
+ <farm-btn v-for="size of sizes" :style="styles.farmBtn" :key="'default_' + size" :size="size">
202
203
  {{ size }}
203
204
  </farm-btn>
204
205
  </div>
205
206
  <h4>Outlined</h4>
206
207
  <div :style="styles">
207
- <farm-btn v-for="size of sizes" :style="styles.farmBtn" :key="'outlined_' + size" :size="size" color="secondary" outlined>
208
+ <farm-btn v-for="size of sizes" :style="styles.farmBtn" :key="'outlined_' + size" :size="size" outlined>
208
209
  {{ size }}
209
210
  </farm-btn>
210
211
  </div>
211
212
  <h4>Plain</h4>
212
213
  <div :style="styles">
213
- <farm-btn v-for="size of sizes" :style="styles.farmBtn" :key="'plain_' + size" :size="size" color="secondary" plain>
214
+ <farm-btn v-for="size of sizes" :style="styles.farmBtn" :key="'plain_' + size" :size="size" plain>
214
215
  {{ size }}
215
216
  </farm-btn>
216
217
  </div>
217
218
  <h4>Rounded</h4>
218
219
  <div :style="styles">
219
- <farm-btn v-for="size of sizes" :style="styles.farmBtn" :key="'rouned_' + size" :size="size" color="secondary" rounded>
220
+ <farm-btn v-for="size of sizes" :style="styles.farmBtn" :key="'rouned_' + size" :size="size" rounded>
220
221
  {{ size }}
221
222
  </farm-btn>
222
223
  </div>
223
224
  <h4>Icon</h4>
224
225
  <div :style="styles">
225
- <farm-btn v-for="size of sizes" :style="styles.farmBtn" :key="'icon_' + size" color="secondary" :size="size" icon>
226
+ <farm-btn v-for="size of sizes" :style="styles.farmBtn" :key="'icon_' + size" :size="size" icon>
226
227
  <farm-icon :size="size">book</farm-icon>
227
228
  </farm-btn>
228
229
  </div>
@@ -231,4 +232,4 @@ export const Sizes = () => ({
231
232
 
232
233
  export const Elevated = () => ({
233
234
  template: '<farm-btn :elevated="true">Elevated</farm-btn>',
234
- });
235
+ });
@@ -33,14 +33,14 @@ export default Vue.extend({
33
33
  type: String as PropType<
34
34
  | 'primary'
35
35
  | 'secondary'
36
- | 'error'
37
- | 'extra'
38
- | 'accent'
36
+ | 'neutral'
39
37
  | 'info'
40
38
  | 'success'
41
- | 'gray'
42
- | 'yellow'
43
- | 'white'
39
+ | 'error'
40
+ | 'warning'
41
+ | 'success'
42
+ | 'extra-1'
43
+ | 'extra-2'
44
44
  >,
45
45
  default: 'primary',
46
46
  },
@@ -104,5 +104,5 @@ export default Vue.extend({
104
104
  });
105
105
  </script>
106
106
  <style lang="scss" scoped>
107
- @import 'DefaultButton.scss';
107
+ @import 'DefaultButton';
108
108
  </style>
@@ -6,6 +6,7 @@
6
6
  class="farm-btn--responsive"
7
7
  outlined
8
8
  title="Exportar"
9
+ color="secondary"
9
10
  :disabled="disabled"
10
11
  >
11
12
  <i :class="{ 'mr-2': true, 'mdi-file-export-outline': true, mdi: true }"></i>
@@ -26,6 +27,7 @@
26
27
  class="farm-btn--responsive"
27
28
  outlined
28
29
  title="Exportar"
30
+ color="secondary"
29
31
  @onClick="togglePopover = true"
30
32
  :disabled="disabled"
31
33
  >
@@ -1,6 +1,5 @@
1
1
  .farm-btn.farm-btn--import {
2
- background: var(--v-extra-lighten2);
3
- color: var(--v-gray-lighten5);
2
+
4
3
 
5
4
  .farm-btn__content .farm-icon {
6
5
  color: white;
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <farm-btn class="farm-btn--responsive farm-btn--import" title="Importar" @click="onClick">
2
+ <farm-btn class="farm-btn--responsive farm-btn--import" color="secondary" title="Importar" @click="onClick">
3
3
  <farm-icon>upload</farm-icon>
4
4
  {{ label }}
5
5
  </farm-btn>
@@ -7,6 +7,7 @@
7
7
  dense
8
8
  class="farm-btn--responsive farm-btn--import"
9
9
  outlined
10
+ color="secondary"
10
11
  title="Importar"
11
12
  @onClick="togglePopover = true"
12
13
  >
@@ -40,7 +40,7 @@ export default Vue.extend({
40
40
  */
41
41
  color: {
42
42
  type: String,
43
- default: 'secondary',
43
+ default: 'primary',
44
44
  },
45
45
  /**
46
46
  * Pressionado ou não
@@ -64,3 +64,12 @@ export const NoIcon = () => ({
64
64
  </farm-card-context>
65
65
  `,
66
66
  });
67
+
68
+ export const TooltipText = () => ({
69
+ template: `
70
+ <farm-card-context tooltipText="Lorem Ipsum is simply dummy text of the printing and typesetting industry" icon="mdi-currency-usd" title="Titulo do Card">
71
+ <p>Conteúdo do Card</p>
72
+ </farm-card-context>
73
+ `,
74
+ });
75
+
@@ -9,9 +9,22 @@
9
9
  <div class="card-context-header" v-if="isSuccess && title">
10
10
  <farm-icon-box v-if="icon" :icon="icon" />
11
11
  <div class="card-context-content">
12
- <p :class="{ 'card-context-title': true, 'card-context-content--bold': bold }">
13
- {{ title }}
14
- </p>
12
+ <div class="d-flex align-center">
13
+ <p :class="{
14
+ 'mr-2': true,
15
+ 'mb-1': true,
16
+ 'card-context-title': true,
17
+ 'card-context-content--bold': bold }"
18
+ >
19
+ {{ title }}
20
+ </p>
21
+ <farm-tooltip v-if="tooltipText !== null">
22
+ {{ tooltipText }}
23
+ <template v-slot:activator="{}">
24
+ <farm-icon size="sm" color="gray">help-circle</farm-icon>
25
+ </template>
26
+ </farm-tooltip>
27
+ </div>
15
28
  </div>
16
29
  </div>
17
30
  <div class="card-context-body" v-if="isSuccess">
@@ -93,6 +106,13 @@ export default Vue.extend({
93
106
  type: Boolean,
94
107
  default: false,
95
108
  },
109
+ /**
110
+ * Show Tooltip and help text
111
+ */
112
+ tooltipText: {
113
+ type: String,
114
+ default: null,
115
+ }
96
116
  },
97
117
  computed: {
98
118
  isSuccess() {
@@ -2,7 +2,7 @@
2
2
  <farm-tooltip v-model="show">
3
3
  {{ feedbackMessage }}
4
4
  <template v-slot:activator="{}">
5
- <farm-btn icon color="secondary" :disabled="disabled" @click="onClick">
5
+ <farm-btn icon :disabled="disabled" @click="onClick">
6
6
  <farm-icon size="xs">content-copy</farm-icon>
7
7
  </farm-btn>
8
8
  </template>
@@ -35,17 +35,11 @@
35
35
  :max="max"
36
36
  :min="min"
37
37
  >
38
- <farm-btn outlined color="primary" @click="menuField = false" title="Fechar">
38
+ <farm-btn outlined color="secondary" @click="menuField = false" title="Fechar">
39
39
  Fechar
40
40
  </farm-btn>
41
- <farm-btn outlined color="secondary" class="ml-2" @click="clear"> Limpar </farm-btn>
42
- <farm-btn
43
- color="secondary"
44
- class="ml-2"
45
- title="Confirmar"
46
- :disabled="!dateField.length"
47
- @click="save()"
48
- >
41
+ <farm-btn outlined class="ml-2" @click="clear"> Limpar </farm-btn>
42
+ <farm-btn class="ml-2" title="Confirmar" :disabled="!dateField.length" @click="save()">
49
43
  Confirmar
50
44
  </farm-btn>
51
45
  </v-date-picker>
@@ -136,7 +130,9 @@ export default Vue.extend({
136
130
  timeZone: 'America/Sao_Paulo',
137
131
  });
138
132
 
139
- return this.min && this.getUniversalDate(locatedSelectedDate) < this.getUniversalDate(locatedMinDate)
133
+ return this.min &&
134
+ this.getUniversalDate(locatedSelectedDate) <
135
+ this.getUniversalDate(locatedMinDate)
140
136
  ? 'A data está fora do período permitido'
141
137
  : true;
142
138
  },
@@ -177,7 +173,7 @@ export default Vue.extend({
177
173
  getUniversalDate(d) {
178
174
  const onlyDMY = d.split(' ')[0];
179
175
  const arr = onlyDMY.split('/');
180
- return new Date(arr[2], arr[1] -1, arr[0]);
176
+ return new Date(arr[2], arr[1] - 1, arr[0]);
181
177
  },
182
178
  },
183
179
  computed: {
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="farm-dialog__footer">
3
- <farm-btn v-if="hasCancel" color="secondary" outlined @click="$emit('onClose')">
3
+ <farm-btn v-if="hasCancel" color="primary" outlined @click="$emit('onClose')">
4
4
  {{ closeLabel }}
5
5
  </farm-btn>
6
6
  <farm-btn
@@ -74,7 +74,7 @@ export default Vue.extend({
74
74
  */
75
75
  confirmColor: {
76
76
  type: String,
77
- default: 'secondary',
77
+ default: 'primary',
78
78
  },
79
79
  /**
80
80
  * Ícone no botão Confirmar
@@ -8,18 +8,18 @@
8
8
  width: 1px;
9
9
 
10
10
  &.logger__divider--success {
11
- background: var(--v-secondary-base);
11
+ background: var(--farm-primary-base);
12
12
  }
13
13
 
14
14
  &.logger__divider--error {
15
- background: var(--v-error-base);
15
+ background: var(--farm-error-base);
16
16
  }
17
17
 
18
18
  &.logger__divider--error-to-success {
19
- background: linear-gradient(to bottom, var(--v-error-base), var(--v-secondary-base));
19
+ background: linear-gradient(to bottom, var(--farm-error-base), var(--farm-primary-base));
20
20
  }
21
21
 
22
22
  &.logger__divider--success-to-error {
23
- background: linear-gradient(to bottom, var(--v-secondary-base), var(--v-error-base));
23
+ background: linear-gradient(to bottom, var(--farm-primary-base), var(--farm-error-base));
24
24
  }
25
25
  }
@@ -22,18 +22,18 @@
22
22
  }
23
23
 
24
24
  &.logger__item--error {
25
- @include loggerMessage(var(--v-error-base));
25
+ @include loggerMessage(var(--farm-error-base));
26
26
  }
27
27
 
28
28
  &.logger__item--success {
29
- @include loggerMessage(var(--v-secondary-base));
29
+ @include loggerMessage(var(--farm-primary-base));
30
30
 
31
31
  }
32
32
  }
33
33
 
34
34
 
35
35
  .logger__item>i.mdi {
36
- border: 1px solid var(--v-gray-lighten2);
36
+ border: 1px solid var(--farm-stroke-base);
37
37
  border-radius: 50%;
38
38
  width: 32px;
39
39
  height: 32px;
@@ -43,8 +43,8 @@
43
43
  align-items: center;
44
44
  justify-content: center;
45
45
 
46
- border-color: var(--v-gray-lighten1);
47
- background-color: var(--v-gray-lighten1);
46
+ border-color: var(--farm-neutral-base);
47
+ background-color: var(--farm-neutral-base);
48
48
 
49
49
  &:before {
50
50
  font-size: 16px;
@@ -21,12 +21,13 @@
21
21
  </div>
22
22
  <farm-btn
23
23
  v-if="hasDetails"
24
- :color="buttonColor"
25
24
  plain
26
25
  title="Ver Detalhes"
26
+ :color="buttonColor"
27
27
  @click="callDetails"
28
- >Ver Detalhes</farm-btn
29
- >
28
+ >
29
+ Ver Detalhes
30
+ </farm-btn>
30
31
  </section>
31
32
  </template>
32
33
  <script lang="ts">
@@ -58,12 +59,12 @@ export default Vue.extend({
58
59
  },
59
60
  buttonColor(): string {
60
61
  if (this.item.status === 'success') {
61
- return 'secondary';
62
+ return 'primary';
62
63
  } else if (this.item.status === 'error') {
63
64
  return 'error';
64
65
  }
65
66
 
66
- return 'primary';
67
+ return 'secondary';
67
68
  },
68
69
  hasDetails(): boolean {
69
70
  return !!this.item.details;
@@ -55,7 +55,7 @@ describe('LoggerItem component', () => {
55
55
  status: 'success',
56
56
  },
57
57
  });
58
- expect(component.buttonColor).toEqual('secondary');
58
+ expect(component.buttonColor).toEqual('primary');
59
59
  });
60
60
 
61
61
  it('Should return error button color', async () => {
@@ -73,7 +73,7 @@ describe('LoggerItem component', () => {
73
73
  status: 'primary',
74
74
  },
75
75
  });
76
- expect(component.buttonColor).toEqual('primary');
76
+ expect(component.buttonColor).toEqual('secondary');
77
77
  });
78
78
 
79
79
  it('Should not have a detail button', async () => {
@@ -16,7 +16,6 @@
16
16
  </fieldset>
17
17
  <farm-btn
18
18
  v-if="hasExtraFilters"
19
- color="secondary"
20
19
  class="farm-btn--responsive mt-14 mt-sm-8"
21
20
  @click="onFilterClick"
22
21
  >
@@ -56,7 +56,7 @@ export default Vue.extend({
56
56
  */
57
57
  confirmColor: {
58
58
  type: String,
59
- default: 'secondary',
59
+ default: 'primary',
60
60
  },
61
61
  /**
62
62
  * Label do botão
@@ -33,11 +33,11 @@
33
33
  color="secondary"
34
34
  locale="pt-br"
35
35
  >
36
- <farm-btn outlined color="primary" @click="menuField = false" tutle="Fechar">
36
+ <farm-btn outlined color="secondary" @click="menuField = false" title="Fechar">
37
37
  Fechar
38
38
  </farm-btn>
39
- <farm-btn outlined color="secondary" class="ml-2" @click="clear()" title="Limpar"> Limpar</farm-btn>
40
- <farm-btn color="secondary" class="ml-2" :disabled="canConfirm" @click="save()" title="Confirmar">
39
+ <farm-btn outlined class="ml-2" @click="clear()" title="Limpar"> Limpar</farm-btn>
40
+ <farm-btn class="ml-2" :disabled="canConfirm" @click="save()" title="Confirmar">
41
41
  Confirmar
42
42
  </farm-btn>
43
43
  </v-date-picker>
@@ -1,6 +1,7 @@
1
1
  [role='menuitem'] {
2
- border-bottom: 1px solid var(--v-gray-lighten2);
2
+ border-bottom: 1px solid var(--farm-stoke-base);
3
3
  }
4
+
4
5
  .v-list-item__title {
5
6
  .farm-icon {
6
7
  vertical-align: sub;
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <v-menu>
3
3
  <template v-slot:activator="{ on, attrs }">
4
- <farm-btn icon v-bind="attrs" v-on="on" title="Abrir opções">
4
+ <farm-btn icon v-bind="attrs" v-on="on" title="Abrir opções" color="secondary">
5
5
  <farm-icon size="md">dots-horizontal</farm-icon>
6
6
  </farm-btn>
7
7
  </template>
@@ -12,25 +12,4 @@
12
12
  position: relative;
13
13
  }
14
14
 
15
- @each $k in $justifications {
16
- &#{'--justify-' + $k} {
17
- >div {
18
- justify-content: $k;
19
- }
20
- }
21
- }
22
-
23
- @each $k in $directions {
24
- &#{'--direction-' + $k} {
25
- >div {
26
- flex-direction: $k;
27
- }
28
- }
29
- }
30
-
31
- @each $k in map-keys($gutters) {
32
- &#{'[gutter=' + $k + ']'} {
33
- padding: map-get($gutters, $k);
34
- }
35
- }
36
15
  }
@@ -1,5 +1,4 @@
1
1
  import Box from './Box.vue';
2
- import { directions, justifications } from '../../../configurations/flexVariables';
3
2
  import gutters from '../../../configurations/gutters';
4
3
 
5
4
  export default {
@@ -30,42 +29,6 @@ export const Tag = () => ({
30
29
  </div>`,
31
30
  });
32
31
 
33
- export const Justify = () => ({
34
- data() {
35
- return {
36
- justifications,
37
- };
38
- },
39
- template: `<div>
40
- <farm-box :justify="k" v-for="k in justifications" :key="'justify-_' + k" style="border:1px solid var(--farm-stroke-base); margin-bottom: 16px;">
41
- <div>
42
- justify {{ k }}
43
- </div>
44
- <div>
45
- another div
46
- </div>
47
- </farm-box>
48
- </div>`,
49
- });
50
-
51
- export const Directions = () => ({
52
- data() {
53
- return {
54
- directions,
55
- };
56
- },
57
- template: `<div>
58
- <farm-box :direction="k" v-for="k in directions" :key="'direction-_' + k" style="border:1px solid var(--farm-stroke-base); margin-bottom: 16px;">
59
- <div>
60
- direction {{ k }}
61
- </div>
62
- <div>
63
- another div
64
- </div>
65
- </farm-box>
66
- </div>`,
67
- });
68
-
69
32
  export const Gutters = () => ({
70
33
  data() {
71
34
  return { gutters };
@@ -3,8 +3,6 @@
3
3
  :is="tag"
4
4
  :class="{
5
5
  'farm-box': true,
6
- [`farm-box--justify-${justify}`]: justify,
7
- [`farm-box--direction-${direction}`]: direction,
8
6
  }"
9
7
  :gutter="gutter"
10
8
  >
@@ -23,20 +21,6 @@ export default Vue.extend({
23
21
  * Html tag
24
22
  */
25
23
  tag: { type: String, default: 'div' },
26
- /**
27
- * Applies the flex-direction css property
28
- */
29
- direction: {
30
- type: String as PropType<'row' | 'row-reverse' | 'column' | 'column-reverse'>,
31
- default: 'row',
32
- },
33
- /**
34
- * Applies the justify-content css property
35
- */
36
- justify: {
37
- type: String as PropType<'start' | 'center' | 'end' | 'space-between' | 'space-around'>,
38
- default: '',
39
- },
40
24
  /**
41
25
  * Add gutter
42
26
  */