@itfin/components 1.3.22 → 1.3.24

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": "@itfin/components",
3
- "version": "1.3.22",
3
+ "version": "1.3.24",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -27,16 +27,10 @@
27
27
  right: 0;
28
28
  bottom: 0;
29
29
  z-index: -1;
30
- border-radius: var(--adp-cell-border-radius) var(--bs-border-radius-lg) var(--bs-border-radius-lg) var(--adp-cell-border-radius);
30
+ border-radius: var(--adp-cell-border-radius) 0 0 var(--adp-cell-border-radius);
31
31
  background: var(--adp-cell-background-color-selected);
32
32
  }
33
33
 
34
- &:after {
35
- left: 100%;
36
- right: -2rem;
37
- transform: translate(-1.4375rem) scaleY(.6) scaleX(.4) rotate(45deg);
38
- }
39
-
40
34
  &:before {
41
35
  right: 0.25rem;
42
36
  }
@@ -51,16 +45,10 @@
51
45
  right: 0;
52
46
  bottom: 0;
53
47
  z-index: -1;
54
- border-radius: var(--bs-border-radius-lg) var(--adp-cell-border-radius) var(--adp-cell-border-radius) var(--bs-border-radius-lg);
48
+ border-radius: 0 var(--adp-cell-border-radius) var(--adp-cell-border-radius) 0;
55
49
  background: var(--adp-cell-background-color-selected);
56
50
  }
57
51
 
58
- &:after {
59
- right: 100%;
60
- left: -2rem;
61
- transform: translate(1.4375rem) scaleY(.6) scaleX(.4) rotate(45deg);
62
- }
63
-
64
52
  &:before {
65
53
  left: 0.25rem;
66
54
  }
@@ -33,11 +33,11 @@ class itfDropdown extends Vue {
33
33
  render (createElement, context) {
34
34
  const { props, slots, data } = context;
35
35
  const modalId = `dropdownId${globalModalIndex++}`;
36
- const { buttonOptions, toggle, right, shadow, label, appendToBody } = props;
36
+ const { buttonOptions, toggle, text, right, shadow, label, appendToBody } = props;
37
37
  const { button, default: defaultSlot } = slots();
38
38
  let elements = [
39
39
  createElement(
40
- itfButton,
40
+ text ? 'div' : itfButton,
41
41
  {
42
42
  props: buttonOptions || {},
43
43
  class: { 'dropdown-toggle': toggle },
@@ -51,11 +51,9 @@ storiesOf('Common', module)
51
51
  <itf-icon name="filter" />
52
52
  </template>
53
53
 
54
- <ul class="dropdown-menu show" aria-labelledby="dropdownMenuOffset">
55
- <li><a class="dropdown-item" href="#">Action</a></li>
56
- <li><a class="dropdown-item" href="#">Another action</a></li>
57
- <li><a class="dropdown-item" href="#">Something else here</a></li>
58
- </ul>
54
+ <div><a class="dropdown-item" href="#">Action</a></div>
55
+ <div><a class="dropdown-item" href="#">Another action</a></div>
56
+ <div><a class="dropdown-item" href="#">Something else here</a></div>
59
57
  </itf-dropdown>
60
58
 
61
59
  </itf-app>