vueless 1.2.15-beta.1 → 1.2.15-beta.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/bin/commands/copy.js +1 -1
- package/composables/tests/useUI.test.ts +1 -1
- package/composables/useBreakpoint.ts +1 -1
- package/composables/useUI.ts +1 -5
- package/constants.d.ts +1 -1
- package/constants.js +1 -1
- package/index.d.ts +3 -3
- package/index.ts +3 -3
- package/package.json +1 -1
- package/types.ts +2 -2
- package/ui.boilerplate/UBoilerplate.vue +1 -1
- package/ui.button/UButton.vue +1 -1
- package/ui.button-link/ULink.vue +1 -1
- package/ui.button-toggle/UToggle.vue +1 -1
- package/ui.container-accordion/UAccordion.vue +1 -1
- package/ui.container-accordion-item/UAccordionItem.vue +1 -1
- package/ui.container-card/UCard.vue +1 -1
- package/ui.container-col/UCol.vue +1 -1
- package/ui.container-divider/UDivider.vue +1 -1
- package/ui.container-drawer/UDrawer.vue +1 -1
- package/ui.container-group/UGroup.vue +1 -1
- package/ui.container-groups/UGroups.vue +1 -1
- package/ui.container-modal/UModal.vue +1 -1
- package/ui.container-modal-confirm/UModalConfirm.vue +1 -1
- package/ui.container-page/UPage.vue +1 -1
- package/ui.container-page/config.ts +3 -3
- package/ui.container-row/URow.vue +1 -1
- package/ui.data-list/UDataList.vue +1 -1
- package/ui.data-list/config.ts +1 -1
- package/ui.data-table/UTable.vue +1 -1
- package/ui.data-table/UTableRow.vue +1 -1
- package/ui.dropdown-badge/UDropdownBadge.vue +1 -1
- package/ui.dropdown-button/UDropdownButton.vue +1 -1
- package/ui.dropdown-link/UDropdownLink.vue +1 -1
- package/ui.form-calendar/UCalendar.vue +1 -1
- package/ui.form-calendar/UCalendarDayView.vue +1 -1
- package/ui.form-calendar/UCalendarMonthView.vue +1 -1
- package/ui.form-calendar/UCalendarYearView.vue +1 -1
- package/ui.form-checkbox/UCheckbox.vue +1 -1
- package/ui.form-checkbox-group/UCheckboxGroup.vue +1 -1
- package/ui.form-checkbox-multi-state/UCheckboxMultiState.vue +1 -1
- package/{ui.form-color-picker/UColorPicker.vue → ui.form-color-toggle/UColorToggle.vue} +1 -1
- package/{ui.form-color-picker → ui.form-color-toggle}/constants.ts +1 -1
- package/{ui.form-color-picker → ui.form-color-toggle}/storybook/stories.ts +14 -14
- package/{ui.form-color-picker/tests/UColorPicker.test.ts → ui.form-color-toggle/tests/UColorToggle.test.ts} +8 -8
- package/ui.form-date-picker/UDatePicker.vue +1 -1
- package/ui.form-date-picker-range/UDatePickerRange.vue +1 -1
- package/ui.form-input/UInput.vue +1 -1
- package/ui.form-input-counter/UInputCounter.vue +1 -1
- package/ui.form-input-file/UInputFile.vue +1 -1
- package/ui.form-input-number/UInputNumber.vue +1 -1
- package/ui.form-input-password/UInputPassword.vue +1 -1
- package/ui.form-input-rating/UInputRating.vue +1 -1
- package/ui.form-input-search/UInputSearch.vue +1 -1
- package/ui.form-label/ULabel.vue +1 -1
- package/ui.form-listbox/UListbox.vue +1 -1
- package/ui.form-radio/URadio.vue +1 -1
- package/ui.form-radio-group/URadioGroup.vue +1 -1
- package/ui.form-select/USelect.vue +1 -1
- package/ui.form-switch/USwitch.vue +1 -1
- package/ui.form-textarea/UTextarea.vue +1 -1
- package/ui.image-avatar/UAvatar.vue +1 -1
- package/ui.image-icon/UIcon.vue +1 -1
- package/ui.loader/ULoader.vue +1 -1
- package/ui.loader-overlay/ULoaderOverlay.vue +1 -1
- package/ui.loader-progress/ULoaderProgress.vue +1 -1
- package/ui.navigation-breadcrumbs/UBreadcrumbs.vue +1 -1
- package/ui.navigation-pagination/UPagination.vue +1 -1
- package/ui.navigation-progress/UProgress.vue +1 -1
- package/ui.navigation-progress/UStepperProgress.vue +1 -1
- package/ui.navigation-tab/UTab.vue +1 -1
- package/ui.navigation-tabs/UTabs.vue +1 -1
- package/ui.other-chip/UChip.vue +1 -1
- package/ui.other-dot/UDot.vue +1 -1
- package/ui.other-theme-color-toggle/UThemeColorToggle.vue +4 -4
- package/ui.other-theme-color-toggle/config.ts +2 -2
- package/ui.other-theme-color-toggle/tests/UThemeColorToggle.test.ts +10 -10
- package/ui.skeleton/USkeleton.vue +1 -1
- package/ui.skeleton-choice/USkeletonChoice.vue +1 -1
- package/ui.skeleton-input/USkeletonInput.vue +1 -1
- package/ui.skeleton-text/USkeletonText.vue +1 -1
- package/ui.text-alert/UAlert.vue +1 -1
- package/ui.text-badge/UBadge.vue +1 -1
- package/ui.text-block/UText.vue +1 -1
- package/ui.text-block/config.ts +5 -4
- package/ui.text-empty/UEmpty.vue +1 -1
- package/ui.text-file/UFile.vue +1 -1
- package/ui.text-files/UFiles.vue +1 -1
- package/ui.text-header/UHeader.vue +1 -1
- package/ui.text-notify/UNotify.vue +1 -1
- package/ui.text-number/UNumber.vue +1 -1
- /package/{ui.form-color-picker → ui.form-color-toggle}/config.ts +0 -0
- /package/{ui.form-color-picker → ui.form-color-toggle}/storybook/docs.mdx +0 -0
- /package/{ui.form-color-picker → ui.form-color-toggle}/types.ts +0 -0
|
@@ -3,7 +3,7 @@ import { computed, watch, ref, nextTick, provide, useId, useTemplateRef, watchEf
|
|
|
3
3
|
|
|
4
4
|
import { merge } from "lodash-es";
|
|
5
5
|
|
|
6
|
-
import useUI from "../composables/useUI";
|
|
6
|
+
import { useUI } from "../composables/useUI";
|
|
7
7
|
import { getDefaults } from "../utils/ui";
|
|
8
8
|
|
|
9
9
|
import UIcon from "../ui.image-icon/UIcon.vue";
|
package/ui.form-input/UInput.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, onMounted, useSlots, useId, useTemplateRef, watch } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults } from "../utils/ui";
|
|
6
6
|
import { hasSlotContent } from "../utils/helper";
|
|
7
7
|
import { useMutationObserver } from "../composables/useMutationObserver";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { ref, computed, useTemplateRef, watch } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults } from "../utils/ui";
|
|
6
6
|
|
|
7
7
|
import UIcon from "../ui.image-icon/UIcon.vue";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
useTemplateRef,
|
|
11
11
|
} from "vue";
|
|
12
12
|
|
|
13
|
-
import useUI from "../composables/useUI";
|
|
13
|
+
import { useUI } from "../composables/useUI";
|
|
14
14
|
import { getDefaults } from "../utils/ui";
|
|
15
15
|
import { hasSlotContent } from "../utils/helper";
|
|
16
16
|
import { getFileMbSize } from "./utilFileForm";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, watch, onMounted, useId, useTemplateRef } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults } from "../utils/ui";
|
|
6
6
|
|
|
7
7
|
import UInput from "../ui.form-input/UInput.vue";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, ref, useTemplateRef } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { hasSlotContent } from "../utils/helper";
|
|
6
6
|
import { getDefaults } from "../utils/ui";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { useId, ref, computed, watchEffect, useTemplateRef } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults } from "../utils/ui";
|
|
6
6
|
import { createDebounce } from "../utils/helper";
|
|
7
7
|
|
package/ui.form-label/ULabel.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, useTemplateRef, useSlots } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults } from "../utils/ui";
|
|
6
6
|
import { hasSlotContent } from "../utils/helper";
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { watch, computed, useId, ref, useTemplateRef, nextTick } from "vue";
|
|
3
3
|
import { isEqual } from "lodash-es";
|
|
4
4
|
|
|
5
|
-
import useUI from "../composables/useUI";
|
|
5
|
+
import { useUI } from "../composables/useUI";
|
|
6
6
|
import { getDefaults } from "../utils/ui";
|
|
7
7
|
import { isMac } from "../utils/platform";
|
|
8
8
|
import { filterOptions, filterGroups } from "./utilListbox";
|
package/ui.form-radio/URadio.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, inject, onMounted, ref, watchEffect, toValue, useId } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults } from "../utils/ui";
|
|
6
6
|
|
|
7
7
|
import ULabel from "../ui.form-label/ULabel.vue";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, provide, useTemplateRef } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults } from "../utils/ui";
|
|
6
6
|
|
|
7
7
|
import ULabel from "../ui.form-label/ULabel.vue";
|
|
@@ -7,7 +7,7 @@ import UListbox from "../ui.form-listbox/UListbox.vue";
|
|
|
7
7
|
import UBadge from "../ui.text-badge/UBadge.vue";
|
|
8
8
|
import ULink from "../ui.button-link/ULink.vue";
|
|
9
9
|
|
|
10
|
-
import useUI from "../composables/useUI";
|
|
10
|
+
import { useUI } from "../composables/useUI";
|
|
11
11
|
import { hasSlotContent } from "../utils/helper";
|
|
12
12
|
import { getDefaults } from "../utils/ui";
|
|
13
13
|
import { isMac } from "../utils/platform";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, useId, useTemplateRef } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults } from "../utils/ui";
|
|
6
6
|
import { useComponentLocaleMessages } from "../composables/useComponentLocaleMassages";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, nextTick, onMounted, ref, watch, useSlots, useId, useTemplateRef } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults } from "../utils/ui";
|
|
6
6
|
import { hasSlotContent } from "../utils/helper";
|
|
7
7
|
|
package/ui.image-icon/UIcon.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { computed, defineAsyncComponent, useTemplateRef } from "vue";
|
|
3
3
|
import { cachedIcons } from "virtual:vueless/icons";
|
|
4
4
|
|
|
5
|
-
import useUI from "../composables/useUI";
|
|
5
|
+
import { useUI } from "../composables/useUI";
|
|
6
6
|
import { getDefaults } from "../utils/ui";
|
|
7
7
|
import { ICONS_CACHED_DIR, INTERNAL_ICONS_LIBRARY, STORYBOOK_ICONS_LIBRARY } from "../constants";
|
|
8
8
|
|
package/ui.loader/ULoader.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { useTemplateRef } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults } from "../utils/ui";
|
|
6
6
|
|
|
7
7
|
import { COMPONENT_NAME, ELLIPSES_AMOUNT } from "./constants";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, onMounted, onUnmounted, useTemplateRef } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults } from "../utils/ui";
|
|
6
6
|
|
|
7
7
|
import ULoader from "../ui.loader/ULoader.vue";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, watch, ref, useTemplateRef, onBeforeMount, onBeforeUnmount } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults } from "../utils/ui";
|
|
6
6
|
import { getRequestWithoutQuery } from "../utils/requestQueue";
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { computed, useTemplateRef } from "vue";
|
|
3
3
|
import { range } from "lodash-es";
|
|
4
4
|
|
|
5
|
-
import useUI from "../composables/useUI";
|
|
5
|
+
import { useUI } from "../composables/useUI";
|
|
6
6
|
import { getDefaults } from "../utils/ui";
|
|
7
7
|
|
|
8
8
|
import UButton from "../ui.button/UButton.vue";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, inject, toValue, useTemplateRef } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults } from "../utils/ui";
|
|
6
6
|
import UButton from "../ui.button/UButton.vue";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { ref, computed, provide, onMounted, onUnmounted, useTemplateRef } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults } from "../utils/ui";
|
|
6
6
|
|
|
7
7
|
import UTab from "../ui.navigation-tab/UTab.vue";
|
package/ui.other-chip/UChip.vue
CHANGED
package/ui.other-dot/UDot.vue
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { ref, computed, useId, useTemplateRef } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults } from "../utils/ui";
|
|
6
6
|
import { setTheme } from "../utils/theme";
|
|
7
7
|
|
|
8
8
|
import UDivider from "../ui.container-divider/UDivider.vue";
|
|
9
|
-
import
|
|
9
|
+
import UColorToggle from "../ui.form-color-toggle/UColorToggle.vue";
|
|
10
10
|
|
|
11
11
|
import { COMPONENT_NAME } from "./constants";
|
|
12
12
|
import defaultConfig from "./config";
|
|
@@ -86,7 +86,7 @@ const {
|
|
|
86
86
|
|
|
87
87
|
<template>
|
|
88
88
|
<div :id="elementId" ref="list" v-bind="listAttrs" :data-test="getDataTest()">
|
|
89
|
-
<
|
|
89
|
+
<UColorToggle
|
|
90
90
|
v-model="selectedPrimaryColor"
|
|
91
91
|
:size="size"
|
|
92
92
|
:colors="primaryColors"
|
|
@@ -100,7 +100,7 @@ const {
|
|
|
100
100
|
v-bind="colorDividerAttrs"
|
|
101
101
|
/>
|
|
102
102
|
|
|
103
|
-
<
|
|
103
|
+
<UColorToggle
|
|
104
104
|
v-model="selectedNeutralColor"
|
|
105
105
|
:size="size"
|
|
106
106
|
:colors="neutralColors"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
2
|
list: "flex flex-wrap gap-0.5",
|
|
3
|
-
primaryColorPicker: "{
|
|
4
|
-
grayColorPicker: "{
|
|
3
|
+
primaryColorPicker: "{UColorToggle}",
|
|
4
|
+
grayColorPicker: "{UColorToggle}",
|
|
5
5
|
colorDivider: "{UDivider} py-2",
|
|
6
6
|
defaults: {
|
|
7
7
|
size: "md",
|
|
@@ -2,7 +2,7 @@ import { mount } from "@vue/test-utils";
|
|
|
2
2
|
import { describe, it, expect, vi } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UThemeColorToggle from "../UThemeColorToggle.vue";
|
|
5
|
-
import
|
|
5
|
+
import UColorToggle from "../../ui.form-color-toggle/UColorToggle.vue";
|
|
6
6
|
import UDivider from "../../ui.container-divider/UDivider.vue";
|
|
7
7
|
|
|
8
8
|
import type { Props } from "../types";
|
|
@@ -29,7 +29,7 @@ describe("UThemeColorToggle.vue", () => {
|
|
|
29
29
|
},
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
-
const colorPickers = component.findAllComponents(
|
|
32
|
+
const colorPickers = component.findAllComponents(UColorToggle);
|
|
33
33
|
|
|
34
34
|
expect(colorPickers.length).toBe(2);
|
|
35
35
|
|
|
@@ -50,7 +50,7 @@ describe("UThemeColorToggle.vue", () => {
|
|
|
50
50
|
},
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
const primaryColorPicker = component.findAllComponents(
|
|
53
|
+
const primaryColorPicker = component.findAllComponents(UColorToggle)[0];
|
|
54
54
|
|
|
55
55
|
expect(primaryColorPicker.props("modelValue")).toBe(primary);
|
|
56
56
|
});
|
|
@@ -66,7 +66,7 @@ describe("UThemeColorToggle.vue", () => {
|
|
|
66
66
|
},
|
|
67
67
|
});
|
|
68
68
|
|
|
69
|
-
const neutralColorPicker = component.findAllComponents(
|
|
69
|
+
const neutralColorPicker = component.findAllComponents(UColorToggle)[1];
|
|
70
70
|
|
|
71
71
|
expect(neutralColorPicker.props("modelValue")).toBe(neutral);
|
|
72
72
|
});
|
|
@@ -81,7 +81,7 @@ describe("UThemeColorToggle.vue", () => {
|
|
|
81
81
|
},
|
|
82
82
|
});
|
|
83
83
|
|
|
84
|
-
const primaryColorPicker = component.findAllComponents(
|
|
84
|
+
const primaryColorPicker = component.findAllComponents(UColorToggle)[0];
|
|
85
85
|
|
|
86
86
|
expect(primaryColorPicker.props("colors")).toEqual(primaryColors);
|
|
87
87
|
});
|
|
@@ -96,7 +96,7 @@ describe("UThemeColorToggle.vue", () => {
|
|
|
96
96
|
},
|
|
97
97
|
});
|
|
98
98
|
|
|
99
|
-
const neutralColorPicker = component.findAllComponents(
|
|
99
|
+
const neutralColorPicker = component.findAllComponents(UColorToggle)[1];
|
|
100
100
|
|
|
101
101
|
expect(neutralColorPicker.props("colors")).toEqual(neutralColors);
|
|
102
102
|
});
|
|
@@ -112,7 +112,7 @@ describe("UThemeColorToggle.vue", () => {
|
|
|
112
112
|
},
|
|
113
113
|
});
|
|
114
114
|
|
|
115
|
-
const primaryColorPicker = component.findAllComponents(
|
|
115
|
+
const primaryColorPicker = component.findAllComponents(UColorToggle)[0];
|
|
116
116
|
|
|
117
117
|
expect(primaryColorPicker.props("labels")).toEqual(primaryLabels);
|
|
118
118
|
});
|
|
@@ -128,7 +128,7 @@ describe("UThemeColorToggle.vue", () => {
|
|
|
128
128
|
},
|
|
129
129
|
});
|
|
130
130
|
|
|
131
|
-
const neutralColorPicker = component.findAllComponents(
|
|
131
|
+
const neutralColorPicker = component.findAllComponents(UColorToggle)[1];
|
|
132
132
|
|
|
133
133
|
expect(neutralColorPicker.props("labels")).toEqual(neutralLabels);
|
|
134
134
|
});
|
|
@@ -207,7 +207,7 @@ describe("UThemeColorToggle.vue", () => {
|
|
|
207
207
|
},
|
|
208
208
|
});
|
|
209
209
|
|
|
210
|
-
const primaryColorPicker = component.findAllComponents(
|
|
210
|
+
const primaryColorPicker = component.findAllComponents(UColorToggle)[0];
|
|
211
211
|
|
|
212
212
|
primaryColorPicker.vm.$emit("update:modelValue", newColor);
|
|
213
213
|
|
|
@@ -226,7 +226,7 @@ describe("UThemeColorToggle.vue", () => {
|
|
|
226
226
|
},
|
|
227
227
|
});
|
|
228
228
|
|
|
229
|
-
const neutralColorPicker = component.findAllComponents(
|
|
229
|
+
const neutralColorPicker = component.findAllComponents(UColorToggle)[1];
|
|
230
230
|
|
|
231
231
|
neutralColorPicker.vm.$emit("update:modelValue", newColor);
|
|
232
232
|
|
package/ui.text-alert/UAlert.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { onMounted, ref, computed, useTemplateRef } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults } from "../utils/ui";
|
|
6
6
|
import { hasSlotContent } from "../utils/helper";
|
|
7
7
|
|
package/ui.text-badge/UBadge.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { useTemplateRef, computed, useId, useSlots } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { hasSlotContent } from "../utils/helper";
|
|
6
6
|
import { getDefaults } from "../utils/ui";
|
|
7
7
|
|
package/ui.text-block/UText.vue
CHANGED
package/ui.text-block/config.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
2
|
wrapper: {
|
|
3
3
|
base: `
|
|
4
|
+
flex flex-col
|
|
4
5
|
font-normal leading-normal
|
|
5
6
|
[&_b]:font-bold [&_i]:italic [&_p]:font-normal
|
|
6
7
|
[&_a:not([class])]:underline [&_a:not([class])]:underline-offset-4
|
|
@@ -22,10 +23,10 @@ export default /*tw*/ {
|
|
|
22
23
|
inherit: "text-inherit",
|
|
23
24
|
},
|
|
24
25
|
size: {
|
|
25
|
-
xs: "text-tiny
|
|
26
|
-
sm: "text-small
|
|
27
|
-
md: "text-medium
|
|
28
|
-
lg: "text-large
|
|
26
|
+
xs: "text-tiny gap-1",
|
|
27
|
+
sm: "text-small gap-2",
|
|
28
|
+
md: "text-medium gap-3",
|
|
29
|
+
lg: "text-large gap-4",
|
|
29
30
|
},
|
|
30
31
|
align: {
|
|
31
32
|
left: "text-left",
|
package/ui.text-empty/UEmpty.vue
CHANGED
package/ui.text-file/UFile.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { ref, computed, useId, useTemplateRef } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults } from "../utils/ui";
|
|
6
6
|
|
|
7
7
|
import ULink from "../ui.button-link/ULink.vue";
|
package/ui.text-files/UFiles.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { onBeforeUnmount, onMounted, ref, useTemplateRef } from "vue";
|
|
3
3
|
|
|
4
|
-
import useUI from "../composables/useUI";
|
|
4
|
+
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults, vuelessConfig } from "../utils/ui";
|
|
6
6
|
import { useComponentLocaleMessages } from "../composables/useComponentLocaleMassages";
|
|
7
7
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|