@eturnity/eturnity_reusable_components 7.51.16-EPDM-13568.2 → 7.51.16-EPDM-13568.3

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": "@eturnity/eturnity_reusable_components",
3
- "version": "7.51.16-EPDM-13568.2",
3
+ "version": "7.51.16-EPDM-13568.3",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -25,18 +25,19 @@
25
25
  item.type === 'template')
26
26
  "
27
27
  />
28
- <TemplateButton
28
+ <MainButton
29
29
  v-if="
30
30
  item.type &&
31
31
  item.type === 'template' &&
32
32
  (item.value === '' || item.value === '-')
33
33
  "
34
34
  :key="index + '_button'"
35
- :show-archived="showArchived"
35
+ button-size="small"
36
+ :text="$gettext('Use template...')"
37
+ :type="primary"
38
+ :variant="showArchived ? 'cancel' : 'main'"
36
39
  @click.stop="onTemplateClick(item.row)"
37
- >
38
- {{ $gettext('Use template...') }}
39
- </TemplateButton>
40
+ />
40
41
  <TemplateLink
41
42
  v-else-if="
42
43
  item.type && item.type === 'template' && item.value !== ''
@@ -137,12 +138,13 @@
137
138
  <span v-if="option !== 'template'">
138
139
  {{ !!item[option] ? item[option] : '-' }}
139
140
  </span>
140
- <TemplateButton
141
+ <MainButton
141
142
  v-else-if="option === 'template' && item.has_template"
143
+ button-size="small"
144
+ :text="$gettext('Use template...')"
145
+ :type="primary"
142
146
  @click.stop="onTemplateClick(item)"
143
- >
144
- {{ $gettext('Use template...') }}
145
- </TemplateButton>
147
+ />
146
148
  <NoTemplate
147
149
  v-else-if="option === 'template' && !item.has_template"
148
150
  >
@@ -196,6 +198,7 @@
196
198
  import Icon from '../icon'
197
199
  import theme from '@/assets/theme.js'
198
200
  import InfoText from '../infoText'
201
+ import MainButton from '../buttons/mainButton'
199
202
 
200
203
  const rowAttrs = { disabled: Boolean, isOpen: Boolean }
201
204
  const DropdownRow = styled('div', rowAttrs)`
@@ -354,17 +357,6 @@
354
357
  `
355
358
 
356
359
  const templateAttrs = { showArchived: Boolean }
357
- const TemplateButton = styled('div', templateAttrs)`
358
- cursor: pointer;
359
- background-color: #263238;
360
- color: ${(props) =>
361
- props.showArchived ? props.theme.colors.red : props.theme.colors.white};
362
- padding: 4px 10px;
363
- display: inline-block;
364
- border-radius: 4px;
365
- text-align: center;
366
- margin-left: 15px;
367
- `
368
360
 
369
361
  const NoTemplate = styled('div', templateAttrs)`
370
362
  color: ${(props) =>
@@ -458,7 +450,7 @@
458
450
  OptionsWrapper,
459
451
  OptionsItem,
460
452
  SearchContainer,
461
- TemplateButton,
453
+ MainButton,
462
454
  NoTemplate,
463
455
  TemplateLink,
464
456
  InputText,