vueless 0.0.538 → 0.0.540

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/constants.js CHANGED
@@ -124,6 +124,7 @@ export const COMPONENTS = {
124
124
  UCol: "ui.container-col",
125
125
  URow: "ui.container-row",
126
126
  UGroup: "ui.container-group",
127
+ UGroups: "ui.container-groups",
127
128
  UAccordion: "ui.container-accordion",
128
129
  UCard: "ui.container-card",
129
130
  UModal: "ui.container-modal",
@@ -8,7 +8,7 @@ import type {
8
8
  ClickOutsideTargetElement,
9
9
  DirectiveBindingCallback,
10
10
  DirectiveBindingOptions,
11
- } from "./types";
11
+ } from "./types.ts";
12
12
 
13
13
  function clickOutside(
14
14
  target: MaybeRef<HTMLElement | null>,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.538",
3
+ "version": "0.0.540",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
package/types.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { hasSlotContent } from "./composables/useUI.ts";
2
2
 
3
- // TODO: Import all components here
4
3
  import UTextDefaultConfig from "./ui.text-block/config.ts";
5
4
  import UAlertDefaultConfig from "./ui.text-alert/config.ts";
6
5
  import UEmptyDefaultConfig from "./ui.text-empty/config.ts";
@@ -57,30 +56,6 @@ export enum ColorMode {
57
56
  Auto = "auto",
58
57
  }
59
58
 
60
- export enum Color {
61
- Brand = "brand",
62
- Grayscale = "grayscale",
63
- Gray = "gray",
64
- Red = "red",
65
- Orange = "orange",
66
- Amber = "amber",
67
- Yellow = "yellow",
68
- Lime = "lime",
69
- Green = "green",
70
- Emerald = "emerald",
71
- Teal = "teal",
72
- Cyan = "cyan",
73
- Sky = "sky",
74
- Blue = "blue",
75
- Indigo = "indigo",
76
- Violet = "violet",
77
- Purple = "purple",
78
- Fuchsia = "fuchsia",
79
- Pink = "pink",
80
- Rose = "rose",
81
- White = "white",
82
- }
83
-
84
59
  export interface ExtendedKeyClasses {
85
60
  [key: string]: Ref<string>;
86
61
  }
@@ -1,7 +1,5 @@
1
1
  import defaultConfig from "./config.ts";
2
2
 
3
- import type { Color } from "../types.ts";
4
-
5
3
  export type Config = Partial<typeof defaultConfig>;
6
4
 
7
5
  export interface UButtonProps {
@@ -13,7 +11,28 @@ export interface UButtonProps {
13
11
  /**
14
12
  * Button color.
15
13
  */
16
- color?: `${Color}`;
14
+ color?:
15
+ | "grayscale"
16
+ | "red"
17
+ | "orange"
18
+ | "amber"
19
+ | "yellow"
20
+ | "lime"
21
+ | "green"
22
+ | "emerald"
23
+ | "teal"
24
+ | "cyan"
25
+ | "sky"
26
+ | "blue"
27
+ | "indigo"
28
+ | "violet"
29
+ | "purple"
30
+ | "fuchsia"
31
+ | "pink"
32
+ | "rose"
33
+ | "gray"
34
+ | "white"
35
+ | "brand";
17
36
 
18
37
  /**
19
38
  * Button size.
@@ -1,7 +1,6 @@
1
1
  import defaultConfig from "./config.ts";
2
2
 
3
3
  import type { RouteLocationRaw } from "vue-router";
4
- import type { Color } from "src/types.ts";
5
4
 
6
5
  export type Config = Partial<typeof defaultConfig>;
7
6
 
@@ -29,7 +28,28 @@ export interface ULinkProps {
29
28
  /**
30
29
  * Link color.
31
30
  */
32
- color?: `${Color}`;
31
+ color?:
32
+ | "grayscale"
33
+ | "red"
34
+ | "orange"
35
+ | "amber"
36
+ | "yellow"
37
+ | "lime"
38
+ | "green"
39
+ | "emerald"
40
+ | "teal"
41
+ | "cyan"
42
+ | "sky"
43
+ | "blue"
44
+ | "indigo"
45
+ | "violet"
46
+ | "purple"
47
+ | "fuchsia"
48
+ | "pink"
49
+ | "rose"
50
+ | "gray"
51
+ | "white"
52
+ | "brand";
33
53
 
34
54
  /**
35
55
  * Link open type behaviour.
@@ -1,8 +1,6 @@
1
1
  import defaultConfig from "./config.ts";
2
2
 
3
- import type { Option } from "../ui.dropdown-list/types";
4
- import type { Direction } from "../composables/useAutoPosition";
5
- import type { Color } from "../types";
3
+ import type { Option } from "../ui.dropdown-list/types.ts";
6
4
 
7
5
  export type Config = Partial<typeof defaultConfig>;
8
6
 
@@ -30,7 +28,28 @@ export interface UDropdownBadgeProps {
30
28
  /**
31
29
  * Badge color.
32
30
  */
33
- color?: `${Color}`;
31
+ color?:
32
+ | "grayscale"
33
+ | "red"
34
+ | "orange"
35
+ | "amber"
36
+ | "yellow"
37
+ | "lime"
38
+ | "green"
39
+ | "emerald"
40
+ | "teal"
41
+ | "cyan"
42
+ | "sky"
43
+ | "blue"
44
+ | "indigo"
45
+ | "violet"
46
+ | "purple"
47
+ | "fuchsia"
48
+ | "pink"
49
+ | "rose"
50
+ | "gray"
51
+ | "white"
52
+ | "brand";
34
53
 
35
54
  /**
36
55
  * Badge size.
@@ -48,14 +67,14 @@ export interface UDropdownBadgeProps {
48
67
  noIcon?: boolean;
49
68
 
50
69
  /**
51
- * The position of dropdown list on the y-axis.
70
+ * The position of dropdown list on the x-axis.
52
71
  */
53
- yPosition?: Direction.Top | Direction.Bottom;
72
+ xPosition?: "left" | "right";
54
73
 
55
74
  /**
56
- * The position of dropdown list on the x-axis.
75
+ * The position of dropdown list on the y-axis.
57
76
  */
58
- xPosition?: Direction.Left | Direction.Right;
77
+ yPosition?: "top" | "bottom";
59
78
 
60
79
  /**
61
80
  * Unique element id.
@@ -5,7 +5,7 @@ import defaultConfig from "./config.ts";
5
5
 
6
6
  import type { Ref } from "vue";
7
7
  import type { Config, UDropdownBadgeProps } from "./types.ts";
8
- import type { UseAttrs } from "src/types.ts";
8
+ import type { UseAttrs } from "../types.ts";
9
9
 
10
10
  interface DropdownBadgeState {
11
11
  isShownOptions: Ref<boolean>;
@@ -1,8 +1,6 @@
1
1
  import defaultConfig from "./config.ts";
2
2
 
3
- import type { Option } from "../ui.dropdown-list/types";
4
- import type { Direction } from "../composables/useAutoPosition";
5
- import type { Color } from "../types";
3
+ import type { Option } from "../ui.dropdown-list/types.ts";
6
4
 
7
5
  export type Config = Partial<typeof defaultConfig>;
8
6
 
@@ -35,7 +33,28 @@ export interface UDropdownButtonProps {
35
33
  /**
36
34
  * Button color.
37
35
  */
38
- color?: `${Color}`;
36
+ color?:
37
+ | "grayscale"
38
+ | "red"
39
+ | "orange"
40
+ | "amber"
41
+ | "yellow"
42
+ | "lime"
43
+ | "green"
44
+ | "emerald"
45
+ | "teal"
46
+ | "cyan"
47
+ | "sky"
48
+ | "blue"
49
+ | "indigo"
50
+ | "violet"
51
+ | "purple"
52
+ | "fuchsia"
53
+ | "pink"
54
+ | "rose"
55
+ | "gray"
56
+ | "white"
57
+ | "brand";
39
58
 
40
59
  /**
41
60
  * Button size.
@@ -63,14 +82,14 @@ export interface UDropdownButtonProps {
63
82
  noIcon?: boolean;
64
83
 
65
84
  /**
66
- * The position of dropdown list on the y-axis.
85
+ * The position of dropdown list on the x-axis.
67
86
  */
68
- yPosition?: Direction.Top | Direction.Bottom;
87
+ xPosition?: "left" | "right";
69
88
 
70
89
  /**
71
- * The position of dropdown list on the x-axis.
90
+ * The position of dropdown list on the y-axis.
72
91
  */
73
- xPosition?: Direction.Left | Direction.Right;
92
+ yPosition?: "top" | "bottom";
74
93
 
75
94
  /**
76
95
  * Unique element id.
@@ -5,7 +5,7 @@ import defaultConfig from "./config.ts";
5
5
 
6
6
  import type { Ref } from "vue";
7
7
  import type { Config, UDropdownButtonProps } from "./types.ts";
8
- import type { UseAttrs } from "src/types.ts";
8
+ import type { UseAttrs } from "../types.ts";
9
9
 
10
10
  interface DropdownButtonState {
11
11
  isShownOptions: Ref<boolean>;
@@ -1,8 +1,6 @@
1
1
  import defaultConfig from "./config.ts";
2
2
 
3
- import type { Option } from "../ui.dropdown-list/types";
4
- import type { Direction } from "../composables/useAutoPosition";
5
- import type { Color } from "../types";
3
+ import type { Option } from "../ui.dropdown-list/types.ts";
6
4
 
7
5
  export type Config = Partial<typeof defaultConfig>;
8
6
 
@@ -25,7 +23,28 @@ export interface UDropdownLinkProps {
25
23
  /**
26
24
  * Link color.
27
25
  */
28
- color?: `${Color}`;
26
+ color?:
27
+ | "grayscale"
28
+ | "red"
29
+ | "orange"
30
+ | "amber"
31
+ | "yellow"
32
+ | "lime"
33
+ | "green"
34
+ | "emerald"
35
+ | "teal"
36
+ | "cyan"
37
+ | "sky"
38
+ | "blue"
39
+ | "indigo"
40
+ | "violet"
41
+ | "purple"
42
+ | "fuchsia"
43
+ | "pink"
44
+ | "rose"
45
+ | "gray"
46
+ | "white"
47
+ | "brand";
29
48
 
30
49
  /**
31
50
  * Link size.
@@ -58,14 +77,14 @@ export interface UDropdownLinkProps {
58
77
  noIcon?: boolean;
59
78
 
60
79
  /**
61
- * The position of dropdown list on the y-axis.
80
+ * The position of dropdown list on the x-axis.
62
81
  */
63
- yPosition?: Direction.Top | Direction.Bottom;
82
+ xPosition?: "left" | "right";
64
83
 
65
84
  /**
66
- * The position of dropdown list on the x-axis.
85
+ * The position of dropdown list on the y-axis.
67
86
  */
68
- xPosition?: Direction.Left | Direction.Right;
87
+ yPosition?: "top" | "bottom";
69
88
 
70
89
  /**
71
90
  * Unique element id.
@@ -16,7 +16,7 @@ import defaultConfig from "./config.ts";
16
16
  import { UDropdownList } from "./constants.ts";
17
17
 
18
18
  import type { Option, UDropdownListProps } from "./types.ts";
19
- import type { UnknownObject } from "src/types.ts";
19
+ import type { UnknownObject } from "../types.ts";
20
20
 
21
21
  defineOptions({ inheritAttrs: false });
22
22
 
@@ -9,7 +9,7 @@ import UInput from "../ui.form-input/UInput.vue";
9
9
  import { InputRangeType, INPUT_RANGE_FORMAT } from "./constants.ts";
10
10
 
11
11
  import type { UDatePickerRangeInputsProps } from "./types.ts";
12
- import type { RangeDate } from "src/ui.form-calendar/types.ts";
12
+ import type { RangeDate } from "../ui.form-calendar/types.ts";
13
13
 
14
14
  type UInputRef = InstanceType<typeof UInput>;
15
15
 
@@ -1,7 +1,5 @@
1
1
  import defaultConfig from "./config.ts";
2
2
 
3
- import type { Color } from "../types.ts";
4
-
5
3
  export type Config = Partial<typeof defaultConfig>;
6
4
 
7
5
  export interface UAvatarProps {
@@ -28,7 +26,28 @@ export interface UAvatarProps {
28
26
  /**
29
27
  * Avatar color.
30
28
  */
31
- color?: `${Color}`;
29
+ color?:
30
+ | "grayscale"
31
+ | "red"
32
+ | "orange"
33
+ | "amber"
34
+ | "yellow"
35
+ | "lime"
36
+ | "green"
37
+ | "emerald"
38
+ | "teal"
39
+ | "cyan"
40
+ | "sky"
41
+ | "blue"
42
+ | "indigo"
43
+ | "violet"
44
+ | "purple"
45
+ | "fuchsia"
46
+ | "pink"
47
+ | "rose"
48
+ | "gray"
49
+ | "white"
50
+ | "brand";
32
51
 
33
52
  /**
34
53
  * Avatar corner rounding.
@@ -1,6 +1,5 @@
1
1
  import defaultConfig from "./config.ts";
2
2
 
3
- import type { Color } from "../types.ts";
4
3
  export type Config = Partial<typeof defaultConfig>;
5
4
 
6
5
  export interface UIconProps {
@@ -17,7 +16,29 @@ export interface UIconProps {
17
16
  /**
18
17
  * Icon color.
19
18
  */
20
- color?: `${Color}` | "black";
19
+ color?:
20
+ | "grayscale"
21
+ | "red"
22
+ | "orange"
23
+ | "amber"
24
+ | "yellow"
25
+ | "lime"
26
+ | "green"
27
+ | "emerald"
28
+ | "teal"
29
+ | "cyan"
30
+ | "sky"
31
+ | "blue"
32
+ | "indigo"
33
+ | "violet"
34
+ | "purple"
35
+ | "fuchsia"
36
+ | "pink"
37
+ | "rose"
38
+ | "gray"
39
+ | "black"
40
+ | "white"
41
+ | "brand";
21
42
 
22
43
  /**
23
44
  * Icon size.
@@ -1,7 +1,5 @@
1
1
  import defaultConfig from "./config.ts";
2
2
 
3
- import type { Color } from "../types.ts";
4
-
5
3
  export type Config = Partial<typeof defaultConfig>;
6
4
 
7
5
  export interface ULoaderProps {
@@ -13,7 +11,29 @@ export interface ULoaderProps {
13
11
  /**
14
12
  * Loader color.
15
13
  */
16
- color?: `${Color}` | "black";
14
+ color?:
15
+ | "grayscale"
16
+ | "red"
17
+ | "orange"
18
+ | "amber"
19
+ | "yellow"
20
+ | "lime"
21
+ | "green"
22
+ | "emerald"
23
+ | "teal"
24
+ | "cyan"
25
+ | "sky"
26
+ | "blue"
27
+ | "indigo"
28
+ | "violet"
29
+ | "purple"
30
+ | "fuchsia"
31
+ | "pink"
32
+ | "rose"
33
+ | "gray"
34
+ | "black"
35
+ | "white"
36
+ | "brand";
17
37
 
18
38
  /**
19
39
  * Loader size.
@@ -1,7 +1,5 @@
1
1
  import defaultConfig from "./config.ts";
2
2
 
3
- import type { Color } from "../types.ts";
4
-
5
3
  export type Config = Partial<typeof defaultConfig>;
6
4
 
7
5
  export interface ULoaderOverlayProps {
@@ -13,7 +11,29 @@ export interface ULoaderOverlayProps {
13
11
  /**
14
12
  * Loader color.
15
13
  */
16
- color?: `${Color}` | "black";
14
+ color?:
15
+ | "grayscale"
16
+ | "red"
17
+ | "orange"
18
+ | "amber"
19
+ | "yellow"
20
+ | "lime"
21
+ | "green"
22
+ | "emerald"
23
+ | "teal"
24
+ | "cyan"
25
+ | "sky"
26
+ | "blue"
27
+ | "indigo"
28
+ | "violet"
29
+ | "purple"
30
+ | "fuchsia"
31
+ | "pink"
32
+ | "rose"
33
+ | "gray"
34
+ | "black"
35
+ | "white"
36
+ | "brand";
17
37
 
18
38
  /**
19
39
  * Component config object.
@@ -1,14 +1,33 @@
1
1
  import defaultConfig from "./config.ts";
2
2
 
3
- import type { Color } from "../types.ts";
4
-
5
3
  export type Config = Partial<typeof defaultConfig>;
6
4
 
7
5
  export interface ULoaderProgressProps {
8
6
  /**
9
7
  * Loader stripe color.
10
8
  */
11
- color?: `${Color}`;
9
+ color?:
10
+ | "grayscale"
11
+ | "red"
12
+ | "orange"
13
+ | "amber"
14
+ | "yellow"
15
+ | "lime"
16
+ | "green"
17
+ | "emerald"
18
+ | "teal"
19
+ | "cyan"
20
+ | "sky"
21
+ | "blue"
22
+ | "indigo"
23
+ | "violet"
24
+ | "purple"
25
+ | "fuchsia"
26
+ | "pink"
27
+ | "rose"
28
+ | "gray"
29
+ | "white"
30
+ | "brand";
12
31
 
13
32
  /**
14
33
  * API resource names (endpoint URIs).
@@ -1,7 +1,5 @@
1
1
  import defaultConfig from "./config.ts";
2
2
 
3
- import type { Color } from "../types.ts";
4
-
5
3
  export type Config = Partial<typeof defaultConfig>;
6
4
 
7
5
  export interface UProgressProps {
@@ -23,7 +21,28 @@ export interface UProgressProps {
23
21
  /**
24
22
  * Progress color.
25
23
  */
26
- color?: `${Color}`;
24
+ color?:
25
+ | "grayscale"
26
+ | "red"
27
+ | "orange"
28
+ | "amber"
29
+ | "yellow"
30
+ | "lime"
31
+ | "green"
32
+ | "emerald"
33
+ | "teal"
34
+ | "cyan"
35
+ | "sky"
36
+ | "blue"
37
+ | "indigo"
38
+ | "violet"
39
+ | "purple"
40
+ | "fuchsia"
41
+ | "pink"
42
+ | "rose"
43
+ | "gray"
44
+ | "white"
45
+ | "brand";
27
46
 
28
47
  /**
29
48
  * Progress variant.
@@ -1,14 +1,33 @@
1
1
  import defaultConfig from "./config.ts";
2
2
 
3
- import type { Color } from "../types.ts";
4
-
5
3
  export type Config = Partial<typeof defaultConfig>;
6
4
 
7
5
  export interface UDotProps {
8
6
  /**
9
7
  * Dot color.
10
8
  */
11
- color?: `${Color}`;
9
+ color?:
10
+ | "grayscale"
11
+ | "red"
12
+ | "orange"
13
+ | "amber"
14
+ | "yellow"
15
+ | "lime"
16
+ | "green"
17
+ | "emerald"
18
+ | "teal"
19
+ | "cyan"
20
+ | "sky"
21
+ | "blue"
22
+ | "indigo"
23
+ | "violet"
24
+ | "purple"
25
+ | "fuchsia"
26
+ | "pink"
27
+ | "rose"
28
+ | "gray"
29
+ | "white"
30
+ | "brand";
12
31
 
13
32
  /**
14
33
  * Dot size.
@@ -1,7 +1,5 @@
1
1
  import defaultConfig from "./config.ts";
2
2
 
3
- import type { Color } from "../types.ts";
4
-
5
3
  export type Config = Partial<typeof defaultConfig>;
6
4
 
7
5
  export interface UAlertProps {
@@ -33,7 +31,28 @@ export interface UAlertProps {
33
31
  /**
34
32
  * Alert color.
35
33
  */
36
- color?: `${Color}`;
34
+ color?:
35
+ | "grayscale"
36
+ | "red"
37
+ | "orange"
38
+ | "amber"
39
+ | "yellow"
40
+ | "lime"
41
+ | "green"
42
+ | "emerald"
43
+ | "teal"
44
+ | "cyan"
45
+ | "sky"
46
+ | "blue"
47
+ | "indigo"
48
+ | "violet"
49
+ | "purple"
50
+ | "fuchsia"
51
+ | "pink"
52
+ | "rose"
53
+ | "gray"
54
+ | "white"
55
+ | "brand";
37
56
 
38
57
  /**
39
58
  * Alert timeout.