@farm-investimentos/front-mfe-components 14.2.1 → 15.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 (148) hide show
  1. package/dist/front-mfe-components.common.js +4146 -5381
  2. package/dist/front-mfe-components.common.js.map +1 -1
  3. package/dist/front-mfe-components.css +2 -2
  4. package/dist/front-mfe-components.umd.js +4146 -5381
  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/AlertBox/AlertBox.scss +3 -2
  10. package/src/components/AlertBox/AlertBox.vue +2 -0
  11. package/src/components/Buttons/DefaultButton/DefaultButton.scss +57 -18
  12. package/src/components/Buttons/DefaultButton/DefaultButton.stories.js +49 -16
  13. package/src/components/Buttons/DefaultButton/DefaultButton.vue +3 -1
  14. package/src/components/Buttons/ExportButton/ExportButton.vue +2 -1
  15. package/src/components/Card/Card.scss +1 -1
  16. package/src/components/Card/CardComposition.stories.ts +8 -2
  17. package/src/components/Card/CardContent/CardContent.scss +11 -0
  18. package/src/components/Card/CardContent/CardContent.stories.js +11 -0
  19. package/src/components/Card/CardContent/CardContent.vue +9 -1
  20. package/src/components/CardContext/__tests__/CardContext.spec.js +5 -2
  21. package/src/components/Checkbox/Checkbox.scss +2 -2
  22. package/src/components/Checkbox/Checkbox.vue +2 -1
  23. package/src/components/Chip/Chip.scss +15 -15
  24. package/src/components/Chip/Chip.stories.js +13 -13
  25. package/src/components/Chip/Chip.stories.scss +1 -16
  26. package/src/components/Chip/Chip.vue +25 -3
  27. package/src/components/Collapsible/Collapsible.scss +8 -3
  28. package/src/components/Collapsible/Collapsible.stories.js +68 -1
  29. package/src/components/Collapsible/Collapsible.vue +68 -8
  30. package/src/components/ContextMenu/ContextMenu.scss +1 -1
  31. package/src/components/ContextMenu/ContextMenu.stories.js +42 -29
  32. package/src/components/ContextMenu/ContextMenu.vue +20 -1
  33. package/src/components/CopyToClipboard/CopyToClipboard.stories.js +7 -1
  34. package/src/components/CopyToClipboard/CopyToClipboard.vue +15 -3
  35. package/src/components/DataTableEmptyWrapper/DataTableEmptyWrapper.scss +6 -9
  36. package/src/components/DataTableEmptyWrapper/DataTableEmptyWrapper.stories.js +4 -0
  37. package/src/components/DataTableEmptyWrapper/DataTableEmptyWrapper.vue +21 -5
  38. package/src/components/{TextField/__tests__/TextField.spec.js → DataTableEmptyWrapper/__tests__/DataTableEmptyWrapper.spec.js} +3 -3
  39. package/src/components/DataTableHeader/DataTableHeader.scss +10 -12
  40. package/src/components/DataTableHeader/DataTableHeader.vue +5 -4
  41. package/src/components/DataTablePaginator/DataTablePaginator.scss +71 -69
  42. package/src/components/DatePicker/DatePicker.scss +5 -5
  43. package/src/components/DatePicker/DatePicker.vue +2 -3
  44. package/src/components/DatePicker/__tests__/DatePicker.spec.js +1 -1
  45. package/src/components/DatePicker/vDatePicker.scss +214 -0
  46. package/src/components/DialogFooter/DialogFooter.scss +1 -1
  47. package/src/components/DialogFooter/DialogFooter.stories.js +2 -2
  48. package/src/components/DialogFooter/DialogFooter.vue +1 -1
  49. package/src/components/DialogHeader/DialogHeader.scss +2 -3
  50. package/src/components/DialogHeader/DialogHeader.vue +4 -4
  51. package/src/components/Form/Form.stories.js +1 -1
  52. package/src/components/Icon/Icon.scss +6 -0
  53. package/src/components/Icon/Icon.stories.js +19 -1
  54. package/src/components/Icon/Icon.vue +8 -2
  55. package/src/components/IconBox/IconBox.stories.js +16 -0
  56. package/src/components/IconBox/IconBox.vue +17 -7
  57. package/src/components/IdCaption/IdCaption.vue +27 -13
  58. package/src/components/Label/Label.scss +17 -5
  59. package/src/components/Label/Label.stories.js +0 -1
  60. package/src/components/ListItem/ListItem.scss +5 -3
  61. package/src/components/ListItem/ListItem.vue +2 -0
  62. package/src/components/Logger/LoggerItem/LoggerItem.scss +9 -1
  63. package/src/components/Logger/LoggerItem/LoggerItem.vue +25 -8
  64. package/src/components/Logger/LoggerItem/__tests__/LoggerItem.spec.js +1 -1
  65. package/src/components/MainFilter/MainFilter.stories.js +4 -4
  66. package/src/components/Modal/Modal.scss +3 -3
  67. package/src/components/ModalPromptUser/ModalPromptUser.stories.js +26 -0
  68. package/src/components/ModalPromptUser/ModalPromptUser.vue +10 -0
  69. package/src/components/MultipleFilePicker/MultipleFilePicker.scss +19 -12
  70. package/src/components/MultipleFilePicker/MultipleFilePicker.stories.js +12 -0
  71. package/src/components/MultipleFilePicker/MultipleFilePicker.vue +18 -11
  72. package/src/components/MultipleFilePicker/__tests__/MultipleFilePicker.spec.js +9 -0
  73. package/src/components/ProgressBar/ProgressBar.vue +4 -0
  74. package/src/components/Radio/Radio.scss +18 -4
  75. package/src/components/Radio/Radio.stories.js +2 -1
  76. package/src/components/Radio/Radio.vue +3 -1
  77. package/src/components/RangeDatePicker/RangeDatePicker.vue +0 -2
  78. package/src/components/ResourceMetaInfo/ResourceMetaInfo.vue +8 -8
  79. package/src/components/Select/Select.scss +4 -0
  80. package/src/components/Select/Select.vue +9 -1
  81. package/src/components/Stepper/StepperHeader/StepperHeader.scss +7 -7
  82. package/src/components/Stepper/StepperHeader/StepperHeader.vue +35 -36
  83. package/src/components/Switcher/Switcher.scss +24 -8
  84. package/src/components/Switcher/Switcher.stories.js +33 -0
  85. package/src/components/Switcher/Switcher.vue +24 -3
  86. package/src/components/TableContextMenu/TableContextMenu.scss +4 -9
  87. package/src/components/TableContextMenu/TableContextMenu.stories.js +2 -0
  88. package/src/components/TableContextMenu/TableContextMenu.vue +5 -4
  89. package/src/components/Tabs/Tabs.scss +69 -0
  90. package/src/components/Tabs/Tabs.stories.js +51 -4
  91. package/src/components/Tabs/Tabs.vue +59 -32
  92. package/src/components/Tabs/__tests__/Tabs.spec.js +54 -54
  93. package/src/components/Tabs/index.ts +1 -0
  94. package/src/components/TextArea/TextArea.scss +7 -3
  95. package/src/components/TextArea/TextArea.vue +1 -0
  96. package/src/components/TextFieldV2/TextFieldV2.scss +8 -4
  97. package/src/components/TextFieldV2/TextFieldV2.vue +1 -0
  98. package/src/components/Tooltip/Tooltip.scss +8 -10
  99. package/src/components/Tooltip/Tooltip.vue +4 -2
  100. package/src/components/Typography/BodyText/BodyText.scss +7 -7
  101. package/src/components/Typography/Caption/Caption.scss +7 -7
  102. package/src/components/Typography/Caption/Caption.stories.js +1 -1
  103. package/src/components/Typography/Caption/Caption.vue +4 -1
  104. package/src/components/Typography/Caption/configurations.ts +3 -2
  105. package/src/components/Typography/Heading/Heading.scss +19 -19
  106. package/src/components/Typography/Heading/configurations.ts +5 -5
  107. package/src/components/Typography/Small/Small.scss +3 -0
  108. package/src/components/Typography/Small/Small.stories.js +34 -0
  109. package/src/components/Typography/Small/Small.vue +47 -0
  110. package/src/components/Typography/Small/__tests__/Small.spec.js +31 -0
  111. package/src/components/Typography/Small/configurations.ts +7 -0
  112. package/src/components/Typography/Subtitle/Subtitle.scss +7 -7
  113. package/src/components/Typography/Typography.scss +10 -0
  114. package/src/components/Typography/Typography.stories.js +15 -2
  115. package/src/components/Typography/Typography.vue +6 -2
  116. package/src/components/Typography/index.ts +2 -1
  117. package/src/components/ValueCaption/ValueCaption.vue +2 -0
  118. package/src/components/layout/Line/Line.scss +15 -0
  119. package/src/components/layout/Line/Line.stories.js +28 -5
  120. package/src/components/layout/Line/Line.vue +37 -3
  121. package/src/configurations/_mixins.scss +1 -1
  122. package/src/configurations/_theme-colors-background.scss +10 -0
  123. package/src/configurations/_theme-colors-bw.scss +10 -0
  124. package/src/configurations/_theme-colors.scss +79 -48
  125. package/src/configurations/_variables.scss +2 -0
  126. package/src/examples/Colors.stories.js +39 -1
  127. package/src/examples/Colors.stories.scss +1 -1
  128. package/src/helpers/index.ts +2 -1
  129. package/src/helpers/isChildOfFixedElement.js +16 -0
  130. package/src/main.ts +1 -5
  131. package/src/scss/Sticky-table.scss +13 -7
  132. package/src/scss/VuejsDialog.scss +58 -51
  133. package/src/scss/cssVariablesGenerator.scss +17 -14
  134. package/src/scss/utils.scss +17 -251
  135. package/src/components/FilePicker/FilePicker.scss +0 -53
  136. package/src/components/FilePicker/FilePicker.stories.js +0 -14
  137. package/src/components/FilePicker/FilePicker.vue +0 -109
  138. package/src/components/FilePicker/__tests__/FilePicker.spec.js +0 -77
  139. package/src/components/FilePicker/index.ts +0 -3
  140. package/src/components/TextField/TextField.scss +0 -43
  141. package/src/components/TextField/TextField.stories.js +0 -104
  142. package/src/components/TextField/TextField.vue +0 -18
  143. package/src/components/TextField/index.ts +0 -4
  144. package/src/scss/ButtonOverrides.scss +0 -73
  145. package/src/scss/DefaultModal.scss +0 -89
  146. package/src/scss/DialogOverrides.scss +0 -94
  147. package/src/scss/FormOverrides.scss +0 -264
  148. package/src/scss/Status-Chip.scss +0 -34
@@ -8,7 +8,7 @@
8
8
  item.sortable ? 'sortable' : '',
9
9
  sortClick[$index].clicked ? 'active' : '',
10
10
  item.sortable ? (sortClick[$index].descending === 'DESC' ? 'DESC' : 'ASC') : '',
11
- showCheckbox && $index == 0 ? 'checkbox-container' : ''
11
+ showCheckbox && $index == 0 ? 'checkbox-container' : '',
12
12
  ]"
13
13
  v-bind:style="{
14
14
  textAlign: item.align ? item.align : '',
@@ -28,10 +28,11 @@
28
28
  sortClick[$index][item.value] ? 'farm-icon--desc' : 'farm-icon--asc',
29
29
  ]"
30
30
  class="ml-2"
31
- size="12px"
32
- color="gray"
31
+ size="16px"
32
+ color="black"
33
+ variation="30"
33
34
  >
34
- sort-descending
35
+ sort-reverse-variant
35
36
  </farm-icon>
36
37
  </span>
37
38
 
@@ -1,88 +1,90 @@
1
+ @import '../../configurations/theme-colors';
1
2
  ul.farm-paginator {
2
- display: flex;
3
- flex-direction: row;
4
- list-style-type: none;
5
- align-items: flex-start;
3
+ display: flex;
4
+ flex-direction: row;
5
+ list-style-type: none;
6
+ align-items: flex-start;
6
7
 
7
- &--disabled {
8
- opacity: 0.7;
9
- }
8
+ &--disabled {
9
+ opacity: 0.7;
10
+ }
10
11
 
11
- >li {
12
- align-items: center;
13
- display: flex;
12
+ > li {
13
+ align-items: center;
14
+ display: flex;
14
15
 
15
- button {
16
- border: 1px solid var(--farm-stroke-base);
17
- border-right: 0;
18
- height: 36px;
19
- min-width: 36px;
20
- display: inline-flex;
21
- justify-content: center;
22
- align-items: center;
23
- font-size: 12px;
24
- transition: all ease 0.5s;
25
- padding: 4px 12px;
16
+ button {
17
+ border: 1px solid var(--farm-bw-black-10);
18
+ border-right: 0;
19
+ height: 36px;
20
+ min-width: 36px;
21
+ display: inline-flex;
22
+ justify-content: center;
23
+ align-items: center;
24
+ font-size: 12px;
25
+ font-weight: 400;
26
+ transition: all ease 0.5s;
27
+ padding: 4px 12px;
26
28
 
27
- p {
28
- color: var(--farm-neutral-darken);
29
- margin: 0;
30
- }
31
-
32
- .farm-icon {
33
- color: var(--farm-text-primary);
34
- }
35
-
36
- &:disabled {
37
- .farm-icon {
38
- color: var(--farm-neutral-base);
39
- }
40
- }
41
- }
29
+ p {
30
+ color: var(--farm-neutral-darken);
31
+ margin: 0;
32
+ }
42
33
 
43
- &:first-child button {
44
- border-radius: 4px 0 0 4px;
45
- }
34
+ .farm-icon {
35
+ color: var(--farm-bw-black-80);
36
+ }
46
37
 
47
- &:last-child button {
48
- border-right: 1px solid var(--farm-stroke-base);
49
- border-radius: 0 4px 4px 0;
50
- }
38
+ &:disabled {
39
+ background-color: var(--farm-bw-black-5);
40
+ .farm-icon {
41
+ color: var(--farm-bw-black-10);
42
+ }
43
+ }
44
+ }
51
45
 
52
- &.farm-paginator__item--selected {
53
- button {
54
- background-color: var(--farm-primary-base);
46
+ &:first-child button {
47
+ border-radius: 4px 0 0 4px;
48
+ }
55
49
 
56
- p{
57
- color: #FFFFFF;
58
- }
59
-
60
- }
61
- }
50
+ &:last-child button {
51
+ border-right: 1px solid var(--farm-stroke-base);
52
+ border-radius: 0 4px 4px 0;
53
+ }
62
54
 
63
- &:hover {
64
- button:not([disabled="disabled"]) {
65
- background-color: var(--farm-primary-lighten);
66
- }
67
- }
68
- }
55
+ &.farm-paginator__item--selected {
56
+ button {
57
+ background-color: var(--farm-primary-base);
58
+
59
+ p {
60
+ color: #ffffff;
61
+ }
62
+ }
63
+ }
64
+
65
+ &:hover {
66
+ button:not([disabled='disabled']) {
67
+ background-color: transparentize(themeColor('primary', 'lighten'), 0.86);
68
+ }
69
+ }
70
+ }
69
71
  }
70
72
 
71
- .farm-paginator-footer{
72
- display: flex;
73
- flex-direction: row;
74
- justify-content: space-between;
75
- margin: 0;
73
+ .farm-paginator-footer {
74
+ display: flex;
75
+ flex-direction: row;
76
+ justify-content: space-between;
77
+ margin: 0;
76
78
 
77
- &.hidden-perpageoptions {
78
- justify-content: flex-end;
79
- }
79
+ &.hidden-perpageoptions {
80
+ justify-content: flex-end;
81
+ }
80
82
  }
81
83
 
82
84
  .farm-paginator--gutter {
83
- margin: 16px 24px 0;
85
+ margin: 16px 24px 0;
84
86
  }
85
87
 
86
88
  .farm-typography.button {
87
- font-size: 14px;
88
- }
89
+ font-size: 14px;
90
+ }
@@ -1,13 +1,9 @@
1
- .datepicker :deep(.v-picker__actions) {
2
- padding: 0;
3
- margin: 0 16px 16px;
4
- }
5
1
  .datepicker :deep(.v-btn--active) {
6
2
  background: var(--farm-primary-base);
7
3
  }
8
4
 
9
5
  .datepicker :deep(.v-picker__body) {
10
- width: 341px !important;
6
+ width: 304px !important;
11
7
  }
12
8
 
13
9
  .btn-cancel {
@@ -17,3 +13,7 @@
17
13
  .farm-contextmenu {
18
14
  width: 100%;
19
15
  }
16
+
17
+ .v-picker ::v-deep {
18
+ @import './vDatePicker.scss';
19
+ }
@@ -46,8 +46,6 @@
46
46
  :id="inputId"
47
47
  :rules="[checkMax, checkMin, checkRequire]"
48
48
  @keyup="keyUpInput"
49
- @click="openDatepicker"
50
- @onClickIcon="openDatepicker"
51
49
  />
52
50
  </template>
53
51
  </farm-contextmenu>
@@ -192,8 +190,9 @@ export default Vue.extend({
192
190
  const arr = onlyDMY.split('/');
193
191
  return new Date(arr[2], arr[1] - 1, arr[0]);
194
192
  },
195
- openDatepicker() {
193
+ openDatepicker(event: MouseEvent) {
196
194
  this.menuField = true;
195
+ event.stopPropagation();
197
196
  },
198
197
  closeDatepicker() {
199
198
  this.menuField = false;
@@ -77,7 +77,7 @@ describe('DatePicker component', () => {
77
77
 
78
78
  describe('methods', () => {
79
79
  it('openDatepicker', () => {
80
- component.openDatepicker();
80
+ component.openDatepicker({ stopPropagation: jest.fn() });
81
81
  expect(component.menuField).toBeTruthy();
82
82
  });
83
83
 
@@ -0,0 +1,214 @@
1
+ .v-picker__actions {
2
+ padding: 16px 8px 0;
3
+ border-top: 1px solid var(--farm-stroke-base);
4
+ margin-bottom: 16px;
5
+ margin-left: -4px;
6
+ margin-right: -4px;
7
+ }
8
+
9
+ .v-date-picker-header__value {
10
+ text-align: left;
11
+
12
+ button:first-letter {
13
+ text-transform: capitalize;
14
+ }
15
+
16
+ button:hover:after {
17
+ border-top-color: var(--v-secondary-base);
18
+ }
19
+
20
+ button:after {
21
+ position: absolute;
22
+ content: '';
23
+ width: 0px;
24
+ height: 0px;
25
+ border-top: 0.25rem solid var(--v-primary-base);
26
+ border-right: 0.25rem solid transparent;
27
+ border-bottom: 0.25rem solid transparent;
28
+ border-left: 0.25rem solid transparent;
29
+ margin-left: 0.5rem;
30
+ margin-top: 0.5rem;
31
+ }
32
+ }
33
+
34
+ .v-date-picker-header {
35
+ display: grid;
36
+ grid-template-columns: 1fr 60px 36px;
37
+ grid-template-areas: ' a b c ';
38
+
39
+ .v-btn:nth-child(1) {
40
+ grid-area: b;
41
+ }
42
+
43
+ >div {
44
+ grid-area: a;
45
+ }
46
+
47
+ .v-btn:nth-child(3) {
48
+ grid-area: c;
49
+ }
50
+ }
51
+
52
+ .v-date-picker-table__current.v-btn--active {
53
+ color: white;
54
+ }
55
+
56
+ .v-date-picker-header {
57
+ padding: 0;
58
+ margin-top: 16px;
59
+ margin-bottom: 16px;
60
+ margin-left: 16px;
61
+
62
+ .mdi-chevron-left::before,
63
+ .mdi-chevron-right::before {
64
+ color: var(--farm-neutral-darken);
65
+ font-size: 20px;
66
+ font-weight: 900;
67
+ }
68
+ }
69
+
70
+ .v-picker__body:has(div > .v-date-picker-years) {
71
+ li {
72
+ color: var(--farm-neutral-darken);
73
+ font-size: 12px;
74
+ font-weight: 500;
75
+ width: 70px;
76
+ margin: 0 auto;
77
+ border-radius: 5px;
78
+
79
+ &.active {
80
+ color: #fff;
81
+ background-color: var(--farm-primary-base);
82
+ border: 1px solid var(--farm-primary-base);
83
+ }
84
+
85
+ &:hover:not(.active) {
86
+ background-color: var(--farm-primary-lighten);
87
+ }
88
+ }
89
+ }
90
+
91
+ .v-date-picker-header__value {
92
+ button {
93
+ padding-left: 0;
94
+ }
95
+ }
96
+
97
+ .v-date-picker-table {
98
+ padding: 0 40px;
99
+ margin-bottom: 24px;
100
+ height: auto;
101
+
102
+ table {
103
+ height: 100%;
104
+ border-spacing:0;
105
+ border-collapse: collapse;
106
+
107
+ td {
108
+ height: 32px;
109
+ width: 32px;
110
+ overflow: hidden;
111
+ padding: 0;
112
+ display: table-cell;
113
+ }
114
+ }
115
+
116
+ table thead th {
117
+ color: var(--farm-neutral-darken);
118
+ font-size: 16px;
119
+ font-weight: 700;
120
+ }
121
+
122
+ table tbody td .v-btn {
123
+ color: var(--farm-neutral-darken);
124
+ font-size: 12px;
125
+ font-weight: 500;
126
+ }
127
+
128
+ table tbody td .v-btn.v-btn--disabled {
129
+ color: var(--farm-gray-lighten);
130
+ }
131
+
132
+ table tbody td .v-btn.v-date-picker-table__current,
133
+ .v-btn.v-btn--active {
134
+ border-radius: 5px;
135
+ border-color: var(--farm-primary-base);
136
+ border-width: 2px;
137
+ }
138
+
139
+ table tbody td .v-btn.v-date-picker-table__current {
140
+ color: var(--farm-primary-base);
141
+ }
142
+
143
+ table tbody td .v-btn.v-btn--active {
144
+ color: white;
145
+ }
146
+
147
+ table tbody td .v-btn--rounded {
148
+ border-radius: 5px;
149
+ }
150
+
151
+ table tbody td .v-btn {
152
+ &:not(.v-btn--active):hover::before {
153
+ background-color: var(--farm-primary-lighten);
154
+ opacity: 1;
155
+ }
156
+
157
+ &::before {
158
+ background-color: transparent;
159
+ }
160
+ }
161
+
162
+ }
163
+
164
+ &.rangedatepicker .v-date-picker-table {
165
+ table tbody td .v-btn.v-btn--active {
166
+ &:not(.v-date-picker--first-in-range, .v-date-picker--last-in-range) {
167
+ background: var(--farm-primary-lighten);
168
+ color: var(--farm-primary-base);
169
+ border-radius: 0;
170
+ //width: 37px;
171
+ }
172
+
173
+ &.v-date-picker--first-in-range,
174
+ &.v-date-picker--last-in-range {
175
+ //width: 37px;
176
+ }
177
+
178
+ &.v-date-picker--first-in-range {
179
+ border-top-right-radius: 0;
180
+ border-bottom-right-radius: 0;
181
+ border-top-left-radius: 5px;
182
+ border-bottom-left-radius: 5px;
183
+ }
184
+
185
+ &.v-date-picker--last-in-range {
186
+ border-top-right-radius: 5px;
187
+ border-bottom-right-radius: 5px;
188
+ border-top-left-radius: 0;
189
+ border-bottom-left-radius: 0;
190
+ }
191
+
192
+ &.v-date-picker--last-in-range.v-date-picker--first-in-range {
193
+ border-radius: 5px;
194
+ }
195
+ }
196
+ }
197
+
198
+ &.rangedatepicker.invert-date .v-date-picker-table {
199
+ table tbody td .v-btn.v-btn--active {
200
+ &.v-date-picker--first-in-range {
201
+ border-top-left-radius: 0;
202
+ border-bottom-left-radius: 0;
203
+ border-top-right-radius: 5px;
204
+ border-bottom-right-radius: 5px;
205
+ }
206
+
207
+ &.v-date-picker--last-in-range {
208
+ border-top-left-radius: 5px;
209
+ border-bottom-left-radius: 5px;
210
+ border-top-right-radius: 0;
211
+ border-bottom-right-radius: 0;
212
+ }
213
+ }
214
+ }
@@ -2,7 +2,7 @@
2
2
  @import '../../configurations/mixins';
3
3
 
4
4
  .farm-dialog__footer {
5
- border-top: 1px solid var(--farm-stroke-base);
5
+ border-top: 1px solid var(--farm-gray-lighten);
6
6
  padding: gutter('md');
7
7
  display: flex;
8
8
  flex-direction: row;
@@ -30,8 +30,8 @@ export const ExtraButton = () => ({
30
30
  export const ConfirmIcon = () => ({
31
31
  template: `<div>
32
32
  <farm-dialog-footer confirmIcon="check" />
33
- <farm-dialog-footer confirmIcon="check" confirmColor="yellow" />
34
- <farm-dialog-footer confirmIcon="check" confirmColor="accent" />
33
+ <farm-dialog-footer confirmIcon="check" confirmColor="warning" />
34
+ <farm-dialog-footer confirmIcon="check" confirmColor="extra-1" />
35
35
  </div>
36
36
  `,
37
37
  });
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="farm-dialog__footer">
3
- <farm-btn v-if="hasCancel" color="primary" outlined @click="$emit('onClose')">
3
+ <farm-btn v-if="hasCancel" color="primary" plain @click="$emit('onClose')">
4
4
  {{ closeLabel }}
5
5
  </farm-btn>
6
6
 
@@ -3,10 +3,9 @@
3
3
  .farm-dialog-header__close {
4
4
  position: absolute;
5
5
  margin-top: 0;
6
+ margin-right: -8px;
6
7
  font-size: 16px;
7
-
8
8
  transition: all 0.4s;
9
-
10
9
  &:hover {
11
10
  opacity: 0.8;
12
11
  }
@@ -18,7 +17,6 @@ header {
18
17
  background-color: #fff;
19
18
  font-weight: 700;
20
19
  color: var(--farm-primary-base);
21
- border-bottom: 1px solid var(--farm-stroke-divider);
22
20
  display: flex;
23
21
  justify-content: flex-start;
24
22
  align-items: center;
@@ -28,6 +26,7 @@ header {
28
26
  align-items: center;
29
27
  width: 100%;
30
28
  margin-bottom: 0;
29
+ color: var(--farm-bw-black-80);
31
30
  @include ellipsis;
32
31
  }
33
32
  }
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <header>
3
- <farm-icon v-if="iconTitle" size="16px" color="primary">{{ iconTitle }}</farm-icon>
4
- <farm-caption v-if="title" variation="regular" color="primary" bold>
3
+ <farm-icon v-if="iconTitle" size="16px" color="primary" class="mr-2">{{ iconTitle }}</farm-icon>
4
+ <farm-caption v-if="title" variation="semiBold">
5
5
  {{ title }}
6
6
  </farm-caption>
7
7
 
@@ -10,12 +10,12 @@
10
10
  <farm-btn
11
11
  v-if="hasCloseIcon"
12
12
  icon
13
- color="secondary"
13
+ color="primary"
14
14
  class="farm-dialog-header__close"
15
15
  title="Fechar"
16
16
  @click="onClose"
17
17
  >
18
- <farm-icon role="button" size="md"> window-close </farm-icon>
18
+ <farm-icon role="button" size="24px"> window-close </farm-icon>
19
19
  </farm-btn>
20
20
  </header>
21
21
  </template>
@@ -125,7 +125,7 @@ export const Secondary = () => ({
125
125
  <section>
126
126
  <div>
127
127
  <farm-label>not</farm-label>
128
- <farm-textfield v-model="form.not" />
128
+ <farm-textfield-v2 v-model="form.not" />
129
129
  </div>
130
130
  </section>
131
131
 
@@ -34,6 +34,12 @@
34
34
  font-size: $value;
35
35
  }
36
36
  }
37
+
38
+ @each $v in $bwVariations {
39
+ &.farm-icon--black-#{$v} {
40
+ color: var(--farm-bw-black-#{$v});
41
+ }
42
+ }
37
43
  }
38
44
 
39
45
  @each $color in $theme-colors-list {
@@ -2,6 +2,7 @@ import { withDesign } from 'storybook-addon-designs';
2
2
  import Icon from './Icon.vue';
3
3
  import sizes from '../../configurations/sizes';
4
4
  import baseThemeColors from '../../configurations/_theme-colors-base.scss';
5
+ import bwThemeColors from '../../configurations/_theme-colors-bw.scss';
5
6
  import iconsList from './icons_list';
6
7
  const colors = Object.keys(baseThemeColors);
7
8
 
@@ -70,6 +71,23 @@ export const ColorsDarken = () => ({
70
71
  </div>`,
71
72
  });
72
73
 
74
+ export const ColorsBlack = () => ({
75
+ data() {
76
+ return {
77
+ bwColors: Object.keys(bwThemeColors),
78
+ };
79
+ },
80
+ template: `<div class="icons-container">
81
+ <farm-icon
82
+ v-for="bw in bwColors"
83
+ :key="color"
84
+ :color="bw.split('-')[0]"
85
+ :variation="bw.split('-')[1]">
86
+ book
87
+ </farm-icon>
88
+ </div>`,
89
+ });
90
+
73
91
  export const Sizes = () => ({
74
92
  data() {
75
93
  return {
@@ -125,7 +143,7 @@ export const ListOfIcons = () => ({
125
143
  },
126
144
  },
127
145
  template: `<div>
128
- <farm-textfield v-model="filterKey" style="margin: 0 auto; width: 240px;" />
146
+ <farm-textfield-v2 v-model="filterKey" style="margin: 0 auto; width: 240px;" />
129
147
  <div class="icons-container__list">
130
148
  <div v-for="icon of iconsList" :key="'icon_' + icon">
131
149
  <farm-icon>
@@ -18,15 +18,18 @@ export default Vue.extend({
18
18
  type: String as PropType<
19
19
  | 'primary'
20
20
  | 'secondary'
21
+ | 'secondary-green'
22
+ | 'secondary-golden'
21
23
  | 'neutral'
22
24
  | 'info'
23
25
  | 'success'
24
26
  | 'error'
25
27
  | 'warning'
26
- | 'success'
27
28
  | 'extra-1'
28
29
  | 'extra-2'
29
30
  | 'gray'
31
+ | 'black'
32
+ | 'white'
30
33
  >,
31
34
  default: 'primary',
32
35
  },
@@ -37,7 +40,9 @@ export default Vue.extend({
37
40
  default: 'default',
38
41
  },
39
42
  variation: {
40
- type: String as PropType<'lighten' | 'base' | 'darken'>,
43
+ type: String as PropType<
44
+ 'lighten' | 'base' | 'darken' | '80' | '50' | '40' | '30' | '10' | '5'
45
+ >,
41
46
  default: 'base',
42
47
  },
43
48
  },
@@ -58,6 +63,7 @@ export default Vue.extend({
58
63
  ['mdi-' + this.icon]: true,
59
64
  'farm-icon--lighten': this.variation === 'lighten',
60
65
  'farm-icon--darken': this.variation === 'darken',
66
+ ['farm-icon--black-' + this.variation]: this.color === 'black',
61
67
  ...obj,
62
68
  };
63
69
  },
@@ -43,6 +43,22 @@ export const Colors = () => ({
43
43
  </div>`,
44
44
  });
45
45
 
46
+ export const ColorsDarken = () => ({
47
+ data() {
48
+ return {
49
+ colors,
50
+ };
51
+ },
52
+ template: `<div class="icons-container">
53
+ <farm-icon-box
54
+ v-for="color of colors"
55
+ :key="color"
56
+ :color="color"
57
+ variation="darken"
58
+ icon="book" />
59
+ </div>`,
60
+ });
61
+
46
62
  export const Sizes = () => ({
47
63
  data() {
48
64
  return {