adata-ui 4.0.21 → 4.0.23

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/dist/module.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
7
  "failOnWarn": false,
8
- "version": "4.0.21",
8
+ "version": "4.0.23",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
11
  "unbuild": "3.5.0"
@@ -0,0 +1,22 @@
1
+ <script setup>
2
+ import { twMerge } from "tailwind-merge";
3
+ const props = defineProps({
4
+ value: { type: String, required: false },
5
+ labelClasses: { type: String, required: false }
6
+ });
7
+ const combinedClasses = twMerge(`
8
+ pointer-events-none absolute
9
+ left-8 top-0 text-[10px] ps-1.5
10
+ transition-all
11
+ peer-focus:top-0 peer-focus:pt-0 peer-focus:text-[10px]
12
+ peer-placeholder-shown:text-sm peer-placeholder-shown:top-1.5 peer-placeholder-shown:pt-0.5
13
+ `, props.labelClasses);
14
+ </script>
15
+
16
+ <template>
17
+ <label :class="combinedClasses">
18
+ <slot>
19
+ <span class="text-gray-500 leading-4">{{ value }}</span>
20
+ </slot>
21
+ </label>
22
+ </template>
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ value?: string;
3
+ labelClasses?: string;
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -1,11 +1,13 @@
1
1
  <script setup>
2
2
  import ADigitBadge from "../DigitBadge.vue";
3
3
  import AButton from "../button/Button.vue";
4
+ import { ref, onMounted } from "#imports";
5
+ import { useI18n } from "#i18n";
4
6
  defineOptions({ name: "APillTabs" });
5
7
  const emit = defineEmits(["selectOption", "prevent"]);
6
8
  const props = defineProps({
7
9
  options: { type: Array, required: true },
8
- view: { type: String, required: true, default: "main" },
10
+ view: { type: String, required: false, default: "main" },
9
11
  size: { type: String, required: false, default: "sm" },
10
12
  badgeSize: { type: String, required: false, default: "lg" },
11
13
  align: { type: String, required: false, default: "center" },
@@ -1,7 +1,7 @@
1
1
  import type { Tab } from './types.js';
2
2
  interface Props {
3
3
  options: Tab[];
4
- view: 'transparent' | 'main' | 'gray' | 'blue' | 'mobile';
4
+ view?: 'transparent' | 'main' | 'gray' | 'blue' | 'mobile';
5
5
  size?: 'lg' | 'sm' | 'xs';
6
6
  badgeSize?: 'sm' | 'md' | 'lg';
7
7
  align?: 'left' | 'center';
@@ -1 +1,2 @@
1
+ import { useState } from "#imports";
1
2
  export const useContacts = () => useState("contacts", () => []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "4.0.21",
3
+ "version": "4.0.23",
4
4
  "description": "Adata UI",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",