@farm-investimentos/front-mfe-components 15.6.1 → 15.6.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farm-investimentos/front-mfe-components",
3
- "version": "15.6.1",
3
+ "version": "15.6.2",
4
4
  "author": "farm investimentos",
5
5
  "private": false,
6
6
  "main": "./dist/front-mfe-components.common.js",
@@ -12,6 +12,11 @@
12
12
  position: relative;
13
13
  cursor: pointer;
14
14
  }
15
+
16
+ &--plain {
17
+ cursor: default;
18
+ pointer-events: none;
19
+ }
15
20
  }
16
21
 
17
22
  &__content-title {
@@ -39,10 +39,10 @@ export const ColorIcons = () => ({
39
39
  <farm-row>
40
40
  <farm-col cols="12" md="4" v-for="color in colors" :key="'color_' + color">
41
41
  <h4 style="margin:15px">{{ color }}</h4>
42
- <farm-collapsible
42
+ <farm-collapsible
43
43
  style="margin-top:15px"
44
- icon="clipboard"
45
- title="color icon"
44
+ icon="clipboard"
45
+ title="color icon"
46
46
  :colorIcon="color"
47
47
  >
48
48
  </farm-collapsible>
@@ -101,14 +101,14 @@ export const ColorsChips = () => ({
101
101
  <farm-row>
102
102
  <farm-col cols="12" md="4" v-for="color in colors" :key="'color_' + color">
103
103
  <h4 style="margin:15px">{{ color }}</h4>
104
- <farm-collapsible
104
+ <farm-collapsible
105
105
  style="margin-top:15px"
106
106
  v-for="variation in variations"
107
- icon="plus"
107
+ icon="plus"
108
108
  textChip="chip"
109
- title="color chip"
109
+ title="color chip"
110
110
  :key="color + '_' + variation"
111
- :showChip="true"
111
+ :showChip="true"
112
112
  :colorChip="color"
113
113
  :variation="variation"
114
114
  >
@@ -128,12 +128,12 @@ export const ColorsOutlinedChips = () => ({
128
128
  <farm-row>
129
129
  <farm-col cols="12" md="4" v-for="color in colors" :key="'color_' + color">
130
130
  <h4 style="margin:15px">{{ color }}</h4>
131
- <farm-collapsible
131
+ <farm-collapsible
132
132
  style="margin-top:15px"
133
133
  v-for="variation in variations"
134
- icon="plus"
134
+ icon="plus"
135
135
  textChip="chip"
136
- title="color chip"
136
+ title="color chip"
137
137
  :key="color + '_' + variation"
138
138
  :showChip="true"
139
139
  :outlined="true"
@@ -161,14 +161,14 @@ export const Custom = () => ({
161
161
  <farm-col md="6" justify="end"
162
162
  align="end">
163
163
  <farm-btn
164
-
164
+
165
165
  >
166
166
  custom
167
167
  </farm-btn>
168
168
  </farm-col>
169
169
  </farm-row>
170
170
  </template>
171
- collapsible content
171
+ collapsible content
172
172
  </farm-collapsible>
173
173
  `,
174
174
  });
@@ -212,7 +212,7 @@ export const CustomHeaderContent = () => ({
212
212
  </farm-col>
213
213
  </farm-row>
214
214
  </template>
215
-
215
+
216
216
  <farm-bodytext >collapsible content</farm-bodytext>
217
217
  </farm-collapsible>
218
218
  `,
@@ -295,7 +295,7 @@ export const CustomHeaderAndBodyContent = () => ({
295
295
  </farm-row>
296
296
  </div>
297
297
  </template>
298
-
298
+
299
299
  <farm-row extraDecrease style="background-color:#f5f5f5;" class="mt-5 px-2">
300
300
  <farm-col class="collapsible-stories-class-with-line">
301
301
  <farm-caption variation="semiBold"
@@ -328,6 +328,51 @@ export const CustomHeaderAndBodyContent = () => ({
328
328
  `,
329
329
  });
330
330
 
331
+ export const Plain = () => ({
332
+ template: `
333
+ <farm-collapsible title="" custom-header plain>
334
+ <template #header-content>
335
+ <farm-row>
336
+ <farm-col md="12">
337
+ <farm-bodytext color="success">initial text</farm-bodytext>
338
+ </farm-col>
339
+ </farm-row>
340
+
341
+ <farm-row class="pt-4">
342
+ <farm-col class="collapsible-stories-class-with-line">
343
+ <farm-caption variation="semiBold"
344
+ >text here</farm-caption
345
+ >
346
+ 123455
347
+ </farm-col>
348
+ <farm-col class="collapsible-stories-class-with-line">
349
+ <farm-caption variation="semiBold"
350
+ >label here</farm-caption
351
+ >
352
+
353
+ <farm-caption variation="medium" class="my-1">R$ 1000</farm-caption>
354
+ </farm-col>
355
+
356
+ <farm-col class="collapsible-stories-class-with-line">
357
+ <farm-caption variation="semiBold">LABEL HERE</farm-caption>
358
+
359
+ <farm-caption variation="medium" class="my-1">R$ 1000</farm-caption>
360
+ </farm-col>
361
+
362
+ <farm-col>
363
+ <farm-caption variation="semiBold"
364
+ >Label here (text here)</farm-caption
365
+ >
366
+ <farm-caption variation="medium" class="my-1">value here</farm-caption>
367
+ </farm-col>
368
+ </farm-row>
369
+ </template>
370
+
371
+ <farm-bodytext >collapsible content</farm-bodytext>
372
+ </farm-collapsible>
373
+ `,
374
+ });
375
+
331
376
  Primary.storyName = 'Basic';
332
377
  Title.storyName = 'Title';
333
378
  Icon.storyName = 'Icon';
@@ -54,10 +54,11 @@
54
54
  <div
55
55
  v-if="customHeader"
56
56
  class="collapsible__header--custom"
57
+ :class="plain ? 'collapsible__header--plain' : ''"
57
58
  @click="onToggleCollapsible(status)"
58
59
  >
59
60
  <slot name="header-content"></slot>
60
- <div class="collapsible__content-right--custom">
61
+ <div v-if="!plain" class="collapsible__content-right--custom">
61
62
  <div class="collapsible__icon collapsible__icon--arrow">
62
63
  <farm-icon size="md" color="primary">
63
64
  {{ arrowIcon }}
@@ -125,12 +126,19 @@ export default defineComponent({
125
126
  default: '',
126
127
  },
127
128
  /**
128
- * has butotn
129
+ * has button
129
130
  */
130
131
  hasButton: {
131
132
  type: Boolean,
132
133
  default: false,
133
134
  },
135
+ /**
136
+ * plain layout
137
+ */
138
+ plain: {
139
+ type: Boolean,
140
+ default: false,
141
+ },
134
142
  /**
135
143
  * export button disabled toggle
136
144
  */