@webitel/ui-sdk 24.12.80 → 24.12.81

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": "@webitel/ui-sdk",
3
- "version": "24.12.80",
3
+ "version": "24.12.81",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -38,11 +38,11 @@
38
38
  />
39
39
  </template>
40
40
  <template #clear-icon>
41
- <wt-icon
42
- :class="{ 'wt-datepicker__open-arrow--opened': isOpened }"
41
+ <wt-icon-btn
42
+ v-if="clearable && value"
43
43
  :color="disabled ? 'disabled' : 'default'"
44
- class="wt-datepicker__open-arrow"
45
- icon="arrow-down"
44
+ icon="close"
45
+ @click.stop="emit('input', null)"
46
46
  />
47
47
  </template>
48
48
  <template #arrow-left>
@@ -132,6 +132,10 @@ const props = defineProps({
132
132
  type: Boolean,
133
133
  default: false,
134
134
  },
135
+ clearable: {
136
+ type: Boolean,
137
+ default: true,
138
+ },
135
139
  });
136
140
  const emit = defineEmits(['input']);
137
141
 
@@ -250,12 +254,4 @@ const requiredLabel = computed(() => {
250
254
  flex-grow: 1;
251
255
  }
252
256
  }
253
-
254
- .wt-datepicker__open-arrow {
255
- transition: var(--transition);
256
-
257
- &--opened {
258
- transform: rotate(180deg);
259
- }
260
- }
261
257
  </style>