@farm-investimentos/front-mfe-components 14.2.2 → 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 (140) hide show
  1. package/dist/front-mfe-components.common.js +1232 -1133
  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 +1232 -1133
  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 +35 -9
  12. package/src/components/Buttons/DefaultButton/DefaultButton.stories.js +4 -4
  13. package/src/components/Buttons/DefaultButton/DefaultButton.vue +2 -0
  14. package/src/components/Card/Card.scss +1 -1
  15. package/src/components/Card/CardComposition.stories.ts +8 -2
  16. package/src/components/Card/CardContent/CardContent.scss +11 -0
  17. package/src/components/Card/CardContent/CardContent.stories.js +11 -0
  18. package/src/components/Card/CardContent/CardContent.vue +9 -1
  19. package/src/components/CardContext/__tests__/CardContext.spec.js +5 -2
  20. package/src/components/Checkbox/Checkbox.scss +2 -2
  21. package/src/components/Checkbox/Checkbox.vue +2 -1
  22. package/src/components/Chip/Chip.scss +15 -15
  23. package/src/components/Chip/Chip.stories.js +13 -13
  24. package/src/components/Chip/Chip.stories.scss +1 -16
  25. package/src/components/Chip/Chip.vue +25 -3
  26. package/src/components/Collapsible/Collapsible.scss +8 -3
  27. package/src/components/Collapsible/Collapsible.stories.js +68 -1
  28. package/src/components/Collapsible/Collapsible.vue +68 -8
  29. package/src/components/ContextMenu/ContextMenu.scss +1 -1
  30. package/src/components/ContextMenu/ContextMenu.stories.js +3 -3
  31. package/src/components/ContextMenu/ContextMenu.vue +14 -2
  32. package/src/components/CopyToClipboard/CopyToClipboard.stories.js +7 -1
  33. package/src/components/CopyToClipboard/CopyToClipboard.vue +15 -3
  34. package/src/components/DataTableEmptyWrapper/DataTableEmptyWrapper.scss +6 -9
  35. package/src/components/DataTableEmptyWrapper/DataTableEmptyWrapper.stories.js +4 -0
  36. package/src/components/DataTableEmptyWrapper/DataTableEmptyWrapper.vue +21 -5
  37. package/src/components/{TextField/__tests__/TextField.spec.js → DataTableEmptyWrapper/__tests__/DataTableEmptyWrapper.spec.js} +3 -3
  38. package/src/components/DataTableHeader/DataTableHeader.scss +10 -12
  39. package/src/components/DataTableHeader/DataTableHeader.vue +5 -4
  40. package/src/components/DataTablePaginator/DataTablePaginator.scss +71 -69
  41. package/src/components/DatePicker/DatePicker.scss +5 -5
  42. package/src/components/DatePicker/vDatePicker.scss +214 -0
  43. package/src/components/DialogFooter/DialogFooter.scss +1 -1
  44. package/src/components/DialogFooter/DialogFooter.stories.js +2 -2
  45. package/src/components/DialogFooter/DialogFooter.vue +1 -1
  46. package/src/components/DialogHeader/DialogHeader.scss +2 -3
  47. package/src/components/DialogHeader/DialogHeader.vue +4 -4
  48. package/src/components/Form/Form.stories.js +1 -1
  49. package/src/components/Icon/Icon.scss +6 -0
  50. package/src/components/Icon/Icon.stories.js +19 -1
  51. package/src/components/Icon/Icon.vue +8 -2
  52. package/src/components/IconBox/IconBox.stories.js +16 -0
  53. package/src/components/IconBox/IconBox.vue +17 -7
  54. package/src/components/IdCaption/IdCaption.vue +27 -13
  55. package/src/components/Label/Label.scss +17 -5
  56. package/src/components/Label/Label.stories.js +0 -1
  57. package/src/components/ListItem/ListItem.scss +5 -3
  58. package/src/components/ListItem/ListItem.vue +2 -0
  59. package/src/components/Logger/LoggerItem/LoggerItem.scss +9 -1
  60. package/src/components/Logger/LoggerItem/LoggerItem.vue +25 -8
  61. package/src/components/Logger/LoggerItem/__tests__/LoggerItem.spec.js +1 -1
  62. package/src/components/MainFilter/MainFilter.stories.js +4 -4
  63. package/src/components/Modal/Modal.scss +3 -3
  64. package/src/components/ModalPromptUser/ModalPromptUser.stories.js +26 -0
  65. package/src/components/ModalPromptUser/ModalPromptUser.vue +10 -0
  66. package/src/components/MultipleFilePicker/MultipleFilePicker.scss +19 -12
  67. package/src/components/MultipleFilePicker/MultipleFilePicker.stories.js +12 -0
  68. package/src/components/MultipleFilePicker/MultipleFilePicker.vue +18 -11
  69. package/src/components/MultipleFilePicker/__tests__/MultipleFilePicker.spec.js +9 -0
  70. package/src/components/ProgressBar/ProgressBar.vue +4 -0
  71. package/src/components/Radio/Radio.scss +18 -4
  72. package/src/components/Radio/Radio.stories.js +2 -1
  73. package/src/components/Radio/Radio.vue +3 -1
  74. package/src/components/ResourceMetaInfo/ResourceMetaInfo.vue +8 -8
  75. package/src/components/Select/Select.scss +4 -0
  76. package/src/components/Select/Select.vue +4 -0
  77. package/src/components/Stepper/StepperHeader/StepperHeader.scss +7 -7
  78. package/src/components/Switcher/Switcher.scss +24 -8
  79. package/src/components/Switcher/Switcher.stories.js +33 -0
  80. package/src/components/Switcher/Switcher.vue +24 -3
  81. package/src/components/TableContextMenu/TableContextMenu.scss +4 -9
  82. package/src/components/TableContextMenu/TableContextMenu.stories.js +2 -0
  83. package/src/components/TableContextMenu/TableContextMenu.vue +3 -3
  84. package/src/components/Tabs/Tabs.scss +21 -10
  85. package/src/components/Tabs/Tabs.vue +45 -24
  86. package/src/components/TextArea/TextArea.scss +7 -3
  87. package/src/components/TextArea/TextArea.vue +1 -0
  88. package/src/components/TextFieldV2/TextFieldV2.scss +8 -4
  89. package/src/components/TextFieldV2/TextFieldV2.vue +1 -0
  90. package/src/components/Tooltip/Tooltip.scss +8 -10
  91. package/src/components/Tooltip/Tooltip.vue +4 -2
  92. package/src/components/Typography/BodyText/BodyText.scss +7 -7
  93. package/src/components/Typography/Caption/Caption.scss +7 -7
  94. package/src/components/Typography/Caption/Caption.stories.js +1 -1
  95. package/src/components/Typography/Caption/Caption.vue +4 -1
  96. package/src/components/Typography/Caption/configurations.ts +3 -2
  97. package/src/components/Typography/Heading/Heading.scss +19 -19
  98. package/src/components/Typography/Heading/configurations.ts +5 -5
  99. package/src/components/Typography/Small/Small.scss +3 -0
  100. package/src/components/Typography/Small/Small.stories.js +34 -0
  101. package/src/components/Typography/Small/Small.vue +47 -0
  102. package/src/components/Typography/Small/__tests__/Small.spec.js +31 -0
  103. package/src/components/Typography/Small/configurations.ts +7 -0
  104. package/src/components/Typography/Subtitle/Subtitle.scss +7 -7
  105. package/src/components/Typography/Typography.scss +10 -0
  106. package/src/components/Typography/Typography.stories.js +15 -2
  107. package/src/components/Typography/Typography.vue +6 -2
  108. package/src/components/Typography/index.ts +2 -1
  109. package/src/components/ValueCaption/ValueCaption.vue +2 -0
  110. package/src/components/layout/Line/Line.scss +15 -0
  111. package/src/components/layout/Line/Line.stories.js +28 -5
  112. package/src/components/layout/Line/Line.vue +37 -3
  113. package/src/configurations/_mixins.scss +1 -1
  114. package/src/configurations/_theme-colors-background.scss +10 -0
  115. package/src/configurations/_theme-colors-bw.scss +10 -0
  116. package/src/configurations/_theme-colors.scss +79 -48
  117. package/src/configurations/_variables.scss +2 -0
  118. package/src/examples/Colors.stories.js +39 -1
  119. package/src/examples/Colors.stories.scss +1 -1
  120. package/src/helpers/index.ts +2 -1
  121. package/src/helpers/isChildOfFixedElement.js +16 -0
  122. package/src/main.ts +0 -3
  123. package/src/scss/Sticky-table.scss +8 -6
  124. package/src/scss/VuejsDialog.scss +58 -51
  125. package/src/scss/cssVariablesGenerator.scss +17 -14
  126. package/src/scss/utils.scss +17 -251
  127. package/src/components/FilePicker/FilePicker.scss +0 -53
  128. package/src/components/FilePicker/FilePicker.stories.js +0 -14
  129. package/src/components/FilePicker/FilePicker.vue +0 -109
  130. package/src/components/FilePicker/__tests__/FilePicker.spec.js +0 -77
  131. package/src/components/FilePicker/index.ts +0 -3
  132. package/src/components/TextField/TextField.scss +0 -43
  133. package/src/components/TextField/TextField.stories.js +0 -104
  134. package/src/components/TextField/TextField.vue +0 -18
  135. package/src/components/TextField/index.ts +0 -4
  136. package/src/scss/ButtonOverrides.scss +0 -73
  137. package/src/scss/DefaultModal.scss +0 -89
  138. package/src/scss/DialogOverrides.scss +0 -94
  139. package/src/scss/FormOverrides.scss +0 -264
  140. package/src/scss/Status-Chip.scss +0 -34
@@ -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 {
@@ -1,10 +1,15 @@
1
1
  <template>
2
- <div :class="{
3
- 'farm-icon-box': true,
4
- [cssColorClass]: true,
5
- 'farm-icon-box--inverted': inverted,
6
- }" :size="size">
7
- <farm-icon :color="inverted ? 'white' : color" :size="size">{{ iconParsed }}</farm-icon>
2
+ <div
3
+ :class="{
4
+ 'farm-icon-box': true,
5
+ [cssColorClass]: true,
6
+ 'farm-icon-box--inverted': inverted,
7
+ }"
8
+ :size="size"
9
+ >
10
+ <farm-icon :color="inverted ? 'white' : color" :variation="variation" :size="size">
11
+ {{ iconParsed }}
12
+ </farm-icon>
8
13
  </div>
9
14
  </template>
10
15
 
@@ -28,18 +33,23 @@ export default Vue.extend({
28
33
  type: String as PropType<
29
34
  | 'primary'
30
35
  | 'secondary'
36
+ | 'secondary-green'
37
+ | 'secondary-golden'
31
38
  | 'neutral'
32
39
  | 'info'
33
40
  | 'success'
34
41
  | 'error'
35
42
  | 'warning'
36
- | 'success'
37
43
  | 'extra-1'
38
44
  | 'extra-2'
39
45
  | 'gray'
40
46
  >,
41
47
  default: 'primary',
42
48
  },
49
+ variation: {
50
+ type: String as PropType<'base' | 'darken'>,
51
+ default: 'base',
52
+ },
43
53
  size: {
44
54
  type: String as PropType<'xs' | 'sm' | 'md' | 'lg' | 'xl'>,
45
55
  default: 'md',
@@ -1,15 +1,26 @@
1
1
  <template>
2
- <div :class="{
3
- idcaption: true,
4
- 'farm-idcaption': true,
5
- 'farm-idcaption--noicon': !icon,
6
- 'farm-idcaption--noheight': noHeight }"
2
+ <div
3
+ :class="{
4
+ idcaption: true,
5
+ 'farm-idcaption': true,
6
+ 'farm-idcaption--noicon': !icon,
7
+ 'farm-idcaption--noheight': noHeight,
8
+ }"
7
9
  >
8
- <farm-icon-box v-if="icon" :icon="icon" :color="iconBoxColor" size="md" />
10
+ <farm-icon-box
11
+ v-if="icon"
12
+ :icon="icon"
13
+ :color="iconBoxColor"
14
+ variation="darken"
15
+ size="md"
16
+ />
9
17
  <div
10
- :class="{ idcaption__body: true, 'idcaption__body--single': !hasTitle || !hasSubtitle }"
18
+ :class="{
19
+ idcaption__body: true,
20
+ 'idcaption__body--single': !hasTitle || !hasSubtitle,
21
+ }"
11
22
  >
12
- <farm-caption variation="medium" v-if="hasTitle">
23
+ <farm-caption variation="semiBold" v-if="hasTitle">
13
24
  <span>
14
25
  <slot name="title"></slot>
15
26
  </span>
@@ -20,16 +31,17 @@
20
31
  class="farm-btn--clickable"
21
32
  @click="$emit('onLinkClick')"
22
33
  >
23
- <farm-icon size="xs">open-in-new</farm-icon>
34
+ <farm-icon size="16px">open-in-new</farm-icon>
24
35
  </farm-btn>
25
36
  </farm-caption>
26
37
 
27
- <farm-caption variation="regular" color="gray" v-if="hasSubtitle">
38
+ <farm-caption variation="regular" color="black" colorVariation="50" v-if="hasSubtitle">
28
39
  <span>
29
40
  <slot name="subtitle"></slot>
30
41
  </span>
31
42
  <farm-copytoclipboard
32
43
  v-if="copyText"
44
+ sizeIcon="16px"
33
45
  :toCopy="copyText"
34
46
  :successMessage="successMessage"
35
47
  :tooltipColor="tooltipColor"
@@ -57,18 +69,19 @@ export default Vue.extend({
57
69
  iconBoxColor: {
58
70
  type: String as PropType<
59
71
  | 'primary'
72
+ | 'secondary-green'
73
+ | 'secondary-golden'
60
74
  | 'secondary'
61
75
  | 'neutral'
62
76
  | 'info'
63
77
  | 'success'
64
78
  | 'error'
65
79
  | 'warning'
66
- | 'success'
67
80
  | 'extra-1'
68
81
  | 'extra-2'
69
82
  | 'gray'
70
83
  >,
71
- default: 'primary',
84
+ default: 'secondary-golden',
72
85
  },
73
86
  /**
74
87
  * Text to be copied to clipboard
@@ -98,12 +111,13 @@ export default Vue.extend({
98
111
  type: String as PropType<
99
112
  | 'primary'
100
113
  | 'secondary'
114
+ | 'secondary-green'
115
+ | 'secondary-golden'
101
116
  | 'neutral'
102
117
  | 'info'
103
118
  | 'success'
104
119
  | 'error'
105
120
  | 'warning'
106
- | 'success'
107
121
  | 'extra-1'
108
122
  | 'extra-2'
109
123
  >,
@@ -4,11 +4,23 @@
4
4
  font-size: 12px;
5
5
  margin-bottom: 8px;
6
6
  line-height: 24px;
7
- color: var(--farm-text-primary);
7
+ color: var(--farm-bw-black-50);
8
+ font-weight: 600;
8
9
 
9
- &.farm-label--required::after {
10
- content: '*';
11
- margin-left: 2px;
12
- color: var(--farm-error-base);
10
+ &.farm-label--required:not(:has(.farm-tooltip)) {
11
+ &::after {
12
+ content: '*';
13
+ margin-left: 2px;
14
+ color: var(--farm-error-base);
15
+ }
16
+ }
17
+
18
+ &:has(.farm-tooltip) {
19
+ .farm-tooltip::before {
20
+ content: '*';
21
+ margin-left: 1px;
22
+ margin-right: 2px;
23
+ color: var(--farm-error-base);
24
+ }
13
25
  }
14
26
  }
@@ -27,7 +27,6 @@ export const Primary = () => ({
27
27
 
28
28
  export const Required = () => ({
29
29
  template: `<div>
30
- <farm-label :required="true">Label</farm-label>
31
30
  <farm-label required>Label</farm-label>
32
31
  </div>`,
33
32
  });
@@ -18,18 +18,20 @@
18
18
 
19
19
  &:hover {
20
20
 
21
+ border-radius: 5px;
22
+
21
23
  @each $color in $theme-colors-list {
22
24
 
23
25
  &#{'.farm-listitem--' + $color + '-base'} {
24
- background-color: themeColor($color);
26
+ background-color: rgba(themeColor($color), 0.27);
25
27
  }
26
28
 
27
29
  &#{'.farm-listitem--' + $color + '-lighten'} {
28
- background-color: themeColor($color, 'lighten');
30
+ background-color: rgba(themeColor($color, 'lighten'), 0.27);
29
31
  }
30
32
 
31
33
  &#{'.farm-listitem--' + $color + '-darken'} {
32
- background-color: themeColor($color, 'darken');
34
+ background-color: rgba(themeColor($color, 'darken'), 0.27);
33
35
  }
34
36
  }
35
37
  }
@@ -32,6 +32,8 @@ export default Vue.extend({
32
32
  type: [String, null] as PropType<
33
33
  | 'primary'
34
34
  | 'secondary'
35
+ | 'secondary-green'
36
+ | 'secondary-golden'
35
37
  | 'neutral'
36
38
  | 'error'
37
39
  | 'warning'
@@ -12,7 +12,7 @@
12
12
  .logger__item {
13
13
  display: flex;
14
14
  flex-direction: row;
15
- height: 64px;
15
+ height: 74px;
16
16
  align-items: center;
17
17
 
18
18
  > div {
@@ -52,3 +52,11 @@
52
52
  color: white;
53
53
  }
54
54
  }
55
+
56
+ .logger__item > .farm-btn.logger__item--button {
57
+ margin-left: 8px;
58
+ }
59
+
60
+ .logger__item > div .logger__item--spacing-bottom {
61
+ margin-bottom: 8px;
62
+ }