vueless 0.0.612 → 0.0.614
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/composables/useUI.ts +2 -2
- package/package.json +1 -1
- package/ui.button-link/ULink.vue +2 -2
- package/ui.button-link/constants.ts +1 -1
- package/ui.button-toggle/UToggle.vue +4 -5
- package/ui.button-toggle/config.ts +11 -12
- package/ui.button-toggle/constants.ts +1 -1
- package/ui.button-toggle/storybook/stories.ts +7 -14
- package/ui.button-toggle/types.ts +3 -7
- package/ui.button-toggle-item/UToggleItem.vue +20 -22
- package/ui.button-toggle-item/config.ts +9 -26
- package/ui.button-toggle-item/constants.ts +1 -1
- package/ui.container-accordion/UAccordion.vue +2 -2
- package/ui.container-accordion/constants.ts +1 -1
- package/ui.container-card/UCard.vue +2 -2
- package/ui.container-card/constants.ts +1 -1
- package/ui.container-col/UCol.vue +2 -2
- package/ui.container-col/constants.ts +1 -1
- package/ui.container-divider/UDivider.vue +2 -2
- package/ui.container-divider/constants.ts +1 -1
- package/ui.container-group/UGroup.vue +2 -2
- package/ui.container-group/constants.ts +1 -1
- package/ui.container-groups/UGroups.vue +2 -2
- package/ui.container-groups/constants.ts +1 -1
- package/ui.container-modal/UModal.vue +2 -2
- package/ui.container-modal/constants.ts +1 -1
- package/ui.container-modal-confirm/UModalConfirm.vue +3 -3
- package/ui.container-modal-confirm/constants.ts +1 -1
- package/ui.container-page/UPage.vue +2 -2
- package/ui.container-page/constants.ts +1 -1
- package/ui.container-row/URow.vue +2 -2
- package/ui.container-row/constants.ts +1 -1
- package/ui.data-list/UDataList.vue +3 -3
- package/ui.data-list/constants.ts +1 -1
- package/ui.data-table/UTable.vue +3 -3
- package/ui.data-table/constants.ts +1 -1
- package/ui.dropdown-badge/UDropdownBadge.vue +2 -2
- package/ui.dropdown-badge/constants.ts +1 -1
- package/ui.dropdown-button/UDropdownButton.vue +2 -2
- package/ui.dropdown-button/constants.ts +1 -1
- package/ui.dropdown-link/UDropdownLink.vue +2 -2
- package/ui.dropdown-link/constants.ts +1 -1
- package/ui.dropdown-list/UDropdownList.vue +3 -3
- package/ui.dropdown-list/constants.ts +1 -1
- package/ui.form-calendar/UCalendar.vue +3 -3
- package/ui.form-calendar/constants.ts +1 -1
- package/ui.form-calendar/storybook/stories.ts +4 -4
- package/ui.form-checkbox/UCheckbox.vue +2 -2
- package/ui.form-checkbox/constants.ts +1 -1
- package/ui.form-checkbox-group/UCheckboxGroup.vue +2 -2
- package/ui.form-checkbox-group/constants.ts +1 -1
- package/ui.form-checkbox-multi-state/UCheckboxMultiState.vue +2 -2
- package/ui.form-checkbox-multi-state/constants.ts +1 -1
- package/ui.form-color-picker/UColorPicker.vue +3 -3
- package/ui.form-color-picker/constants.ts +1 -1
- package/ui.form-date-picker/UDatePicker.vue +3 -3
- package/ui.form-date-picker/constants.ts +1 -1
- package/ui.form-date-picker/storybook/stories.ts +4 -4
- package/ui.form-date-picker-range/UDatePickerRange.vue +2 -2
- package/ui.form-date-picker-range/constants.ts +1 -1
- package/ui.form-date-picker-range/storybook/stories.ts +4 -4
- package/ui.form-date-picker-range/useLocale.ts +2 -2
- package/ui.form-input/UInput.vue +2 -2
- package/ui.form-input/constants.ts +1 -1
- package/ui.form-input-file/UInputFile.vue +3 -3
- package/ui.form-input-file/constants.ts +1 -1
- package/ui.form-input-money/UInputMoney.vue +2 -2
- package/ui.form-input-money/constants.ts +1 -1
- package/ui.form-input-number/UInputNumber.vue +2 -2
- package/ui.form-input-number/constants.ts +1 -1
- package/ui.form-input-rating/UInputRating.vue +2 -2
- package/ui.form-input-rating/constants.ts +1 -1
- package/ui.form-input-search/UInputSearch.vue +2 -2
- package/ui.form-input-search/constants.ts +1 -1
- package/ui.form-label/ULabel.vue +2 -2
- package/ui.form-label/constants.ts +1 -1
- package/ui.form-radio/URadio.vue +2 -2
- package/ui.form-radio/constants.ts +1 -1
- package/ui.form-radio-group/URadioGroup.vue +2 -2
- package/ui.form-radio-group/constants.ts +1 -1
- package/ui.form-select/USelect.vue +3 -3
- package/ui.form-select/constants.ts +1 -1
- package/ui.form-switch/USwitch.vue +3 -3
- package/ui.form-switch/constants.ts +1 -1
- package/ui.form-textarea/UTextarea.vue +2 -2
- package/ui.form-textarea/constants.ts +1 -1
- package/ui.image-avatar/UAvatar.vue +2 -2
- package/ui.image-avatar/constants.ts +1 -1
- package/ui.image-icon/UIcon.vue +2 -2
- package/ui.image-icon/constants.ts +1 -1
- package/ui.loader/ULoader.vue +2 -2
- package/ui.loader/constants.ts +1 -1
- package/ui.loader-overlay/ULoaderOverlay.vue +2 -2
- package/ui.loader-overlay/constants.ts +1 -1
- package/ui.loader-progress/ULoaderProgress.vue +2 -2
- package/ui.loader-progress/constants.ts +1 -1
- package/ui.navigation-pagination/UPagination.vue +2 -2
- package/ui.navigation-pagination/constants.ts +1 -1
- package/ui.navigation-progress/UProgress.vue +2 -2
- package/ui.navigation-progress/constants.ts +1 -1
- package/ui.navigation-tab/UTab.vue +3 -3
- package/ui.navigation-tab/constants.ts +1 -1
- package/ui.navigation-tabs/UTabs.vue +2 -2
- package/ui.navigation-tabs/constants.ts +1 -1
- package/ui.other-dot/UDot.vue +2 -2
- package/ui.other-dot/constants.ts +1 -1
- package/ui.text-alert/UAlert.vue +2 -2
- package/ui.text-alert/constants.ts +1 -1
- package/ui.text-badge/UBadge.vue +2 -2
- package/ui.text-badge/constants.ts +1 -1
- package/ui.text-block/UText.vue +2 -2
- package/ui.text-block/constants.ts +1 -1
- package/ui.text-empty/UEmpty.vue +2 -2
- package/ui.text-empty/constants.ts +1 -1
- package/ui.text-file/UFile.vue +2 -2
- package/ui.text-file/constants.ts +1 -1
- package/ui.text-files/UFiles.vue +2 -2
- package/ui.text-files/constants.ts +1 -1
- package/ui.text-header/UHeader.vue +2 -2
- package/ui.text-header/constants.ts +1 -1
- package/ui.text-money/UMoney.vue +2 -2
- package/ui.text-money/constants.ts +1 -1
- package/ui.text-notify/UNotify.vue +3 -3
- package/ui.text-notify/constants.ts +1 -1
- package/utils/ui.ts +2 -2
- package/web-types.json +3 -18
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import useUI from "../composables/useUI.ts";
|
|
3
3
|
import { getDefaults } from "../utils/ui.ts";
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { COMPONENT_NAME } from "./constants.ts";
|
|
6
6
|
import defaultConfig from "./config.ts";
|
|
7
7
|
|
|
8
8
|
import type { Props, Config } from "./types.ts";
|
|
@@ -10,7 +10,7 @@ import type { Props, Config } from "./types.ts";
|
|
|
10
10
|
defineOptions({ inheritAttrs: false });
|
|
11
11
|
|
|
12
12
|
withDefaults(defineProps<Props>(), {
|
|
13
|
-
...getDefaults<Props, Config>(defaultConfig,
|
|
13
|
+
...getDefaults<Props, Config>(defaultConfig, COMPONENT_NAME),
|
|
14
14
|
label: "",
|
|
15
15
|
});
|
|
16
16
|
|
package/ui.text-money/UMoney.vue
CHANGED
|
@@ -5,7 +5,7 @@ import useUI from "../composables/useUI.ts";
|
|
|
5
5
|
import { getDefaults } from "../utils/ui.ts";
|
|
6
6
|
import { hasSlotContent } from "../utils/helper.ts";
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { COMPONENT_NAME } from "./constants.ts";
|
|
9
9
|
import defaultConfig from "./config.ts";
|
|
10
10
|
import { separatedMoney, MONEY_SIGN_TYPE } from "./utilMoney.ts";
|
|
11
11
|
|
|
@@ -14,7 +14,7 @@ import type { Props, Config } from "./types.ts";
|
|
|
14
14
|
defineOptions({ inheritAttrs: false });
|
|
15
15
|
|
|
16
16
|
const props = withDefaults(defineProps<Props>(), {
|
|
17
|
-
...getDefaults<Props, Config>(defaultConfig,
|
|
17
|
+
...getDefaults<Props, Config>(defaultConfig, COMPONENT_NAME),
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
const currencySymbolPosition = computed(() => {
|
|
@@ -7,7 +7,7 @@ import { getDefaults, vuelessConfig } from "../utils/ui.ts";
|
|
|
7
7
|
import { useLocale } from "../composables/useLocale.ts";
|
|
8
8
|
|
|
9
9
|
import defaultConfig from "./config.ts";
|
|
10
|
-
import {
|
|
10
|
+
import { COMPONENT_NAME, NotificationType, NotificationPosition } from "./constants.ts";
|
|
11
11
|
|
|
12
12
|
import UIcon from "../ui.image-icon/UIcon.vue";
|
|
13
13
|
|
|
@@ -16,7 +16,7 @@ import type { Props, Config, NotifyEvent, Notification, NotificationsWrapperRef
|
|
|
16
16
|
defineOptions({ inheritAttrs: false });
|
|
17
17
|
|
|
18
18
|
const props = withDefaults(defineProps<Props>(), {
|
|
19
|
-
...getDefaults<Props, Config>(defaultConfig,
|
|
19
|
+
...getDefaults<Props, Config>(defaultConfig, COMPONENT_NAME),
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
const { tm } = useLocale();
|
|
@@ -26,7 +26,7 @@ const notifyPositionStyles = ref({});
|
|
|
26
26
|
|
|
27
27
|
const notificationsWrapperRef = ref<NotificationsWrapperRef | null>(null);
|
|
28
28
|
|
|
29
|
-
const i18nGlobal = tm(
|
|
29
|
+
const i18nGlobal = tm(COMPONENT_NAME);
|
|
30
30
|
const currentLocale = computed(() => merge({}, defaultConfig.i18n, i18nGlobal, props.config.i18n));
|
|
31
31
|
|
|
32
32
|
onMounted(() => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
This const is needed to prevent the issue in script setup:
|
|
3
3
|
`defineProps` is referencing locally declared variables. (vue/valid-define-props)
|
|
4
4
|
*/
|
|
5
|
-
export const
|
|
5
|
+
export const COMPONENT_NAME = "UNotify";
|
|
6
6
|
export const LOCAL_STORAGE_ID = "vueless:notify";
|
|
7
7
|
export const DELAY_BETWEEN_CLONES = 1000;
|
|
8
8
|
|
package/utils/ui.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { defineConfig } from "cva";
|
|
|
3
3
|
import { extendTailwindMerge } from "tailwind-merge";
|
|
4
4
|
import { isCSR, isSSR } from "./helper.ts";
|
|
5
5
|
import { createGetMergedConfig } from "./node/mergeConfigs.js";
|
|
6
|
-
import {
|
|
6
|
+
import { COMPONENT_NAME as U_ICON } from "../ui.image-icon/constants.ts";
|
|
7
7
|
import {
|
|
8
8
|
BRAND_COLOR,
|
|
9
9
|
GRAYSCALE_COLOR,
|
|
@@ -111,7 +111,7 @@ export function getDefaults<Props, Config>(defaultConfig: Config, name: Componen
|
|
|
111
111
|
/* Remove non a props defaults. */
|
|
112
112
|
for (const key in defaults) {
|
|
113
113
|
const isNonPropIcon = /Icon/.test(key) && !/(leftIcon|rightIcon)/.test(key);
|
|
114
|
-
const isNonPropIconDefaults = ICON_NON_PROPS_DEFAULTS.includes(key) && name ===
|
|
114
|
+
const isNonPropIconDefaults = ICON_NON_PROPS_DEFAULTS.includes(key) && name === U_ICON;
|
|
115
115
|
|
|
116
116
|
if (isNonPropIcon || isNonPropIconDefaults) {
|
|
117
117
|
delete defaults[key];
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "vue",
|
|
3
3
|
"name": "vueless",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.614",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -11566,21 +11566,6 @@
|
|
|
11566
11566
|
},
|
|
11567
11567
|
"default": "() => []"
|
|
11568
11568
|
},
|
|
11569
|
-
{
|
|
11570
|
-
"name": "variant",
|
|
11571
|
-
"required": false,
|
|
11572
|
-
"description": "Toggle variant.",
|
|
11573
|
-
"enum": [
|
|
11574
|
-
"primary",
|
|
11575
|
-
"secondary",
|
|
11576
|
-
"thirdary"
|
|
11577
|
-
],
|
|
11578
|
-
"value": {
|
|
11579
|
-
"kind": "expression",
|
|
11580
|
-
"type": "union"
|
|
11581
|
-
},
|
|
11582
|
-
"default": "primary"
|
|
11583
|
-
},
|
|
11584
11569
|
{
|
|
11585
11570
|
"name": "size",
|
|
11586
11571
|
"required": false,
|
|
@@ -11654,9 +11639,9 @@
|
|
|
11654
11639
|
"default": "false"
|
|
11655
11640
|
},
|
|
11656
11641
|
{
|
|
11657
|
-
"name": "
|
|
11642
|
+
"name": "split",
|
|
11658
11643
|
"required": false,
|
|
11659
|
-
"description": "
|
|
11644
|
+
"description": "Show items without a grouping border.",
|
|
11660
11645
|
"value": {
|
|
11661
11646
|
"kind": "expression",
|
|
11662
11647
|
"type": "boolean"
|