@smurfox/proxy-ui 0.1.35 → 0.2.1

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.
Files changed (34) hide show
  1. package/README.md +253 -0
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +3 -2
  4. package/dist/runtime/components/Avatar.d.vue.ts +1 -1
  5. package/dist/runtime/components/Avatar.vue +18 -13
  6. package/dist/runtime/components/Avatar.vue.d.ts +1 -1
  7. package/dist/runtime/components/Button.d.vue.ts +1 -1
  8. package/dist/runtime/components/Button.vue +30 -12
  9. package/dist/runtime/components/Button.vue.d.ts +1 -1
  10. package/dist/runtime/components/Card.d.vue.ts +1 -1
  11. package/dist/runtime/components/Card.vue.d.ts +1 -1
  12. package/dist/runtime/components/Chip.d.vue.ts +1 -1
  13. package/dist/runtime/components/Chip.vue +25 -13
  14. package/dist/runtime/components/Chip.vue.d.ts +1 -1
  15. package/dist/runtime/components/Dropdown.d.vue.ts +12 -0
  16. package/dist/runtime/components/Dropdown.vue +51 -0
  17. package/dist/runtime/components/Dropdown.vue.d.ts +12 -0
  18. package/dist/runtime/components/Input.d.vue.ts +2 -2
  19. package/dist/runtime/components/Input.vue +25 -13
  20. package/dist/runtime/components/Input.vue.d.ts +2 -2
  21. package/dist/runtime/components/Select.d.vue.ts +2 -2
  22. package/dist/runtime/components/Select.vue +104 -86
  23. package/dist/runtime/components/Select.vue.d.ts +2 -2
  24. package/dist/runtime/components/Table.d.vue.ts +98 -0
  25. package/dist/runtime/components/Table.vue +196 -0
  26. package/dist/runtime/components/Table.vue.d.ts +98 -0
  27. package/dist/runtime/components/Tabs.d.vue.ts +2 -2
  28. package/dist/runtime/components/Tabs.vue +8 -8
  29. package/dist/runtime/components/Tabs.vue.d.ts +2 -2
  30. package/dist/runtime/components/TextArea.d.vue.ts +1 -1
  31. package/dist/runtime/components/TextArea.vue +51 -51
  32. package/dist/runtime/components/TextArea.vue.d.ts +1 -1
  33. package/dist/runtime/types/index.d.ts +15 -14
  34. package/package.json +1 -1
@@ -0,0 +1,98 @@
1
+ declare const roundedClasses: {
2
+ readonly none: "rounded-none";
3
+ readonly xs: "rounded-xs";
4
+ readonly sm: "rounded-sm";
5
+ readonly md: "rounded-md";
6
+ readonly lg: "rounded-lg";
7
+ readonly xl: "rounded-xl";
8
+ readonly '2xl': "rounded-2xl";
9
+ readonly '3xl': "rounded-3xl";
10
+ readonly full: "rounded-full";
11
+ };
12
+ declare const sizes: {
13
+ readonly sm: "py-2";
14
+ readonly md: "py-4";
15
+ readonly lg: "py-6";
16
+ };
17
+ type __VLS_Props = {
18
+ items?: Array<{
19
+ id: string | number;
20
+ [key: string]: unknown;
21
+ }>;
22
+ columns?: {
23
+ name: string;
24
+ id: string;
25
+ width?: string;
26
+ }[];
27
+ rounded?: keyof typeof roundedClasses;
28
+ isBordered?: boolean;
29
+ isSelectable?: boolean;
30
+ headerColor?: string;
31
+ bodyColor?: string;
32
+ itemsSize?: keyof typeof sizes;
33
+ };
34
+ declare var __VLS_10: `cell-${string}`, __VLS_11: {
35
+ item: {
36
+ [key: string]: unknown;
37
+ id: string | number;
38
+ };
39
+ value: unknown;
40
+ }, __VLS_21: {
41
+ item: {
42
+ [key: string]: unknown;
43
+ id: string | number;
44
+ };
45
+ columns: {
46
+ name: string;
47
+ id: string;
48
+ width?: string;
49
+ }[];
50
+ }, __VLS_24: `cell-${string}`, __VLS_25: {
51
+ item: {
52
+ [key: string]: unknown;
53
+ id: string | number;
54
+ };
55
+ value: unknown;
56
+ };
57
+ type __VLS_Slots = {} & {
58
+ [K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
59
+ } & {
60
+ [K in NonNullable<typeof __VLS_24>]?: (props: typeof __VLS_25) => any;
61
+ } & {
62
+ 'mobile-card'?: (props: typeof __VLS_21) => any;
63
+ };
64
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
65
+ "row-click": (item: {
66
+ [key: string]: unknown;
67
+ id: string | number;
68
+ }) => any;
69
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
70
+ "onRow-click"?: ((item: {
71
+ [key: string]: unknown;
72
+ id: string | number;
73
+ }) => any) | undefined;
74
+ }>, {
75
+ rounded: keyof typeof roundedClasses;
76
+ columns: {
77
+ name: string;
78
+ id: string;
79
+ width?: string;
80
+ }[];
81
+ isBordered: boolean;
82
+ items: Array<{
83
+ id: string | number;
84
+ [key: string]: unknown;
85
+ }>;
86
+ isSelectable: boolean;
87
+ headerColor: string;
88
+ bodyColor: string;
89
+ itemsSize: keyof typeof sizes;
90
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
91
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
92
+ declare const _default: typeof __VLS_export;
93
+ export default _default;
94
+ type __VLS_WithSlots<T, S> = T & {
95
+ new (): {
96
+ $slots: S;
97
+ };
98
+ };
@@ -1,10 +1,10 @@
1
- import type { TabsRounded, TabsProps } from "../types/index.js";
1
+ import type { TabsProps } from '../types/index.js';
2
2
  declare const __VLS_export: import("vue").DefineComponent<TabsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
3
  "update:modelValue": (value: string) => any;
4
4
  }, string, import("vue").PublicProps, Readonly<TabsProps> & Readonly<{
5
5
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
6
6
  }>, {
7
- rounded: TabsRounded;
7
+ rounded: import("../types/index.js").TabsRounded;
8
8
  iconSize: number;
9
9
  modelValue: string;
10
10
  bgColor: string;
@@ -42,16 +42,16 @@
42
42
  <script setup>
43
43
  import { motion } from "motion-v";
44
44
  const roundedClasses = {
45
- none: "rounded-none",
46
- xs: "rounded-xs",
47
- sm: "rounded-sm",
48
- md: "rounded-md",
49
- lg: "rounded-lg",
50
- xl: "rounded-xl",
45
+ "none": "rounded-none",
46
+ "xs": "rounded-xs",
47
+ "sm": "rounded-sm",
48
+ "md": "rounded-md",
49
+ "lg": "rounded-lg",
50
+ "xl": "rounded-xl",
51
51
  "2xl": "rounded-2xl",
52
- full: "rounded-full"
52
+ "full": "rounded-full"
53
53
  };
54
- const props = defineProps({
54
+ defineProps({
55
55
  modelValue: { type: String, required: true, default: "" },
56
56
  tabs: { type: Array, required: true },
57
57
  iconSize: { type: Number, required: false, default: 15 },
@@ -1,10 +1,10 @@
1
- import type { TabsRounded, TabsProps } from "../types/index.js";
1
+ import type { TabsProps } from '../types/index.js';
2
2
  declare const __VLS_export: import("vue").DefineComponent<TabsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
3
  "update:modelValue": (value: string) => any;
4
4
  }, string, import("vue").PublicProps, Readonly<TabsProps> & Readonly<{
5
5
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
6
6
  }>, {
7
- rounded: TabsRounded;
7
+ rounded: import("../types/index.js").TabsRounded;
8
8
  iconSize: number;
9
9
  modelValue: string;
10
10
  bgColor: string;
@@ -29,9 +29,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
29
29
  resize: TextAreaResize;
30
30
  variant: InputVariant;
31
31
  disabled: boolean;
32
- labelClass: string;
33
32
  required: boolean;
34
33
  rows: number | string;
34
+ labelClass: string;
35
35
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
36
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
37
37
  declare const _default: typeof __VLS_export;
@@ -1,30 +1,30 @@
1
1
  <template>
2
- <div class="flex flex-col gap-1">
3
- <div
4
- v-if="label"
5
- class="flex items-start gap-1"
6
- >
7
- <label
8
- class="dark:text-white"
9
- :class="[labelClass]"
10
- >{{ label }} </label>
11
- <span
12
- v-if="props.required"
13
- class="text-danger"
14
- >*</span>
15
- </div>
16
- <div class="relative w-full">
17
- <div
18
- v-if="$slots.startContent"
19
- class="absolute left-3 top-3 flex items-center pointer-events-none"
20
- :class="props.error ? 'text-danger' : ''"
21
- >
22
- <slot name="startContent" />
23
- </div>
24
- <textarea
25
- :placeholder="placeholder"
26
- :rows="rows"
27
- class="w-full p-3 text-sm transition-colors"
2
+ <div class="flex flex-col gap-1">
3
+ <div
4
+ v-if="label"
5
+ class="flex items-start gap-1"
6
+ >
7
+ <label
8
+ class="dark:text-white"
9
+ :class="[labelClass]"
10
+ >{{ label }} </label>
11
+ <span
12
+ v-if="props.required"
13
+ class="text-danger"
14
+ >*</span>
15
+ </div>
16
+ <div class="relative w-full">
17
+ <div
18
+ v-if="$slots.startContent"
19
+ class="absolute left-3 top-3 flex items-center pointer-events-none"
20
+ :class="props.error ? 'text-danger' : ''"
21
+ >
22
+ <slot name="startContent" />
23
+ </div>
24
+ <textarea
25
+ :placeholder="placeholder"
26
+ :rows="rows"
27
+ class="w-full p-3 text-sm transition-colors"
28
28
  :class="[
29
29
  $slots.startContent ? 'pl-9' : '',
30
30
  $slots.endContent ? 'pr-9' : '',
@@ -32,36 +32,36 @@
32
32
  roundedVariants[props.rounded],
33
33
  props.error ? errorVariants[props.variant] : variants[props.variant],
34
34
  props.disabled ? 'opacity-70' : ''
35
- ]"
36
- :value="modelValue"
37
- :disabled="props.disabled"
35
+ ]"
36
+ :value="modelValue"
37
+ :disabled="props.disabled"
38
38
  @input="
39
39
  emit(
40
40
  'update:modelValue',
41
41
  $event.target.value
42
42
  )
43
- "
44
- />
45
- <div
46
- v-if="$slots.endContent"
47
- class="absolute right-3 top-3 flex items-center"
48
- >
49
- <slot name="endContent" />
50
- </div>
51
- </div>
52
- <p
53
- v-if="description && !props.error"
54
- class="text-gray-600 dark:text-white/60 text-xs"
55
- >
56
- {{ description }}
57
- </p>
58
- <p
59
- v-if="props.error"
60
- class="text-danger text-xs mt-1"
61
- >
62
- {{ props.error }}
63
- </p>
64
- </div>
43
+ "
44
+ />
45
+ <div
46
+ v-if="$slots.endContent"
47
+ class="absolute right-3 top-3 flex items-center"
48
+ >
49
+ <slot name="endContent" />
50
+ </div>
51
+ </div>
52
+ <p
53
+ v-if="description && !props.error"
54
+ class="text-gray-600 dark:text-white/60 text-xs"
55
+ >
56
+ {{ description }}
57
+ </p>
58
+ <p
59
+ v-if="props.error"
60
+ class="text-danger text-xs mt-1"
61
+ >
62
+ {{ props.error }}
63
+ </p>
64
+ </div>
65
65
  </template>
66
66
 
67
67
  <script setup>
@@ -29,9 +29,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
29
29
  resize: TextAreaResize;
30
30
  variant: InputVariant;
31
31
  disabled: boolean;
32
- labelClass: string;
33
32
  required: boolean;
34
33
  rows: number | string;
34
+ labelClass: string;
35
35
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
36
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
37
37
  declare const _default: typeof __VLS_export;
@@ -1,7 +1,8 @@
1
- export type ButtonSize = "sm" | "md" | "lg";
2
- export type ButtonVariant = "default" | "secondary" | "outline" | "ghost" | "flat";
3
- export type ButtonColor = "default" | "ios" | "primary" | "danger" | "success" | "warning" | "custom";
4
- export type ButtonRounded = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "full";
1
+ export type GlobalRounded = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
2
+ export type ButtonSize = 'sm' | 'md' | 'lg';
3
+ export type ButtonVariant = 'default' | 'secondary' | 'outline' | 'ghost' | 'flat';
4
+ export type ButtonColor = 'default' | 'ios' | 'primary' | 'danger' | 'success' | 'warning' | 'custom';
5
+ export type ButtonRounded = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
5
6
  export interface ButtonProps {
6
7
  label?: string;
7
8
  size?: ButtonSize;
@@ -16,10 +17,10 @@ export interface ButtonProps {
16
17
  endIcon?: string;
17
18
  customClass?: string;
18
19
  }
19
- export type ChipSize = "sm" | "md" | "lg";
20
- export type ChipVariant = "default" | "secondary" | "outline" | "flat";
21
- export type ChipColor = "default" | "ios" | "primary" | "danger" | "success" | "warning" | "custom";
22
- export type ChipRounded = "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "full";
20
+ export type ChipSize = 'sm' | 'md' | 'lg';
21
+ export type ChipVariant = 'default' | 'secondary' | 'outline' | 'flat';
22
+ export type ChipColor = 'default' | 'ios' | 'primary' | 'danger' | 'success' | 'warning' | 'custom';
23
+ export type ChipRounded = 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
23
24
  export interface ChipProps {
24
25
  label?: string;
25
26
  size?: ChipSize;
@@ -30,16 +31,16 @@ export interface ChipProps {
30
31
  endIcon?: string;
31
32
  customClass?: string;
32
33
  }
33
- export type CardVariant = "default" | "liquidGlass";
34
+ export type CardVariant = 'default' | 'liquidGlass';
34
35
  export interface CardProps {
35
36
  variant?: CardVariant;
36
37
  customClass?: string;
37
38
  isBordered?: boolean;
38
39
  }
39
- export type AvatarSize = "sm" | "md" | "lg" | "full";
40
- export type AvatarRounded = "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "full";
41
- export type InputVariant = "default" | "secondary";
42
- export type InputRounded = "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "full";
40
+ export type AvatarSize = 'sm' | 'md' | 'lg' | 'full';
41
+ export type AvatarRounded = 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
42
+ export type InputVariant = 'default' | 'secondary';
43
+ export type InputRounded = 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
43
44
  export interface InputProps {
44
45
  type?: string;
45
46
  label?: string;
@@ -52,7 +53,7 @@ export interface InputProps {
52
53
  error?: string;
53
54
  disabled?: boolean;
54
55
  }
55
- export type TabsRounded = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "full";
56
+ export type TabsRounded = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
56
57
  export interface TabItem {
57
58
  label: string;
58
59
  value: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smurfox/proxy-ui",
3
- "version": "0.1.35",
3
+ "version": "0.2.1",
4
4
  "description": "A UI component library built for Nuxt 4",
5
5
  "repository": {
6
6
  "type": "git",