@byyuurin/ui 0.0.4 → 0.0.5

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 (94) hide show
  1. package/README.md +11 -22
  2. package/dist/index.d.ts +25 -2
  3. package/dist/index.mjs +25 -2
  4. package/dist/nuxt.d.mts +1 -1
  5. package/dist/nuxt.d.ts +1 -1
  6. package/dist/nuxt.mjs +14 -10
  7. package/dist/nuxt.mjs.map +1 -0
  8. package/dist/runtime/components/Accordion.vue +1 -1
  9. package/dist/runtime/components/Alert.vue +120 -0
  10. package/dist/runtime/components/Badge.vue +71 -0
  11. package/dist/runtime/components/Button.vue +3 -2
  12. package/dist/runtime/components/Card.vue +4 -4
  13. package/dist/runtime/components/Checkbox.vue +1 -1
  14. package/dist/runtime/components/Chip.vue +59 -0
  15. package/dist/runtime/components/Drawer.vue +2 -2
  16. package/dist/runtime/components/Input.vue +2 -1
  17. package/dist/runtime/components/Link.vue +1 -1
  18. package/dist/runtime/components/Modal.vue +2 -2
  19. package/dist/runtime/components/PinInput.vue +86 -0
  20. package/dist/runtime/components/Popover.vue +1 -1
  21. package/dist/runtime/components/RadioGroup.vue +1 -1
  22. package/dist/runtime/components/ScrollArea.vue +1 -1
  23. package/dist/runtime/components/Select.vue +2 -1
  24. package/dist/runtime/components/Slider.vue +97 -0
  25. package/dist/runtime/components/Switch.vue +1 -1
  26. package/dist/runtime/components/Tabs.vue +1 -1
  27. package/dist/runtime/components/Textarea.vue +2 -3
  28. package/dist/runtime/components/Toast.vue +1 -1
  29. package/dist/runtime/components/Toaster.vue +2 -1
  30. package/dist/runtime/components/Tooltip.vue +1 -1
  31. package/dist/runtime/theme/accordion.mjs +24 -21
  32. package/dist/runtime/theme/alert.d.ts +85 -0
  33. package/dist/runtime/theme/alert.mjs +47 -0
  34. package/dist/runtime/theme/app.mjs +1 -0
  35. package/dist/runtime/theme/badge.d.ts +79 -0
  36. package/dist/runtime/theme/badge.mjs +89 -0
  37. package/dist/runtime/theme/button.d.ts +4 -1
  38. package/dist/runtime/theme/button.mjs +131 -120
  39. package/dist/runtime/theme/card.d.ts +2 -2
  40. package/dist/runtime/theme/card.mjs +12 -9
  41. package/dist/runtime/theme/checkbox.mjs +45 -42
  42. package/dist/runtime/theme/chip.d.ts +56 -0
  43. package/dist/runtime/theme/chip.mjs +63 -0
  44. package/dist/runtime/theme/drawer.mjs +69 -66
  45. package/dist/runtime/theme/index.d.ts +5 -0
  46. package/dist/runtime/theme/index.mjs +5 -0
  47. package/dist/runtime/theme/input.d.ts +13 -5
  48. package/dist/runtime/theme/input.mjs +135 -122
  49. package/dist/runtime/theme/link.d.ts +1 -1
  50. package/dist/runtime/theme/link.mjs +23 -20
  51. package/dist/runtime/theme/modal.mjs +51 -48
  52. package/dist/runtime/theme/pinInput.d.ts +97 -0
  53. package/dist/runtime/theme/pinInput.mjs +108 -0
  54. package/dist/runtime/theme/popover.mjs +11 -8
  55. package/dist/runtime/theme/radioGroup.mjs +50 -47
  56. package/dist/runtime/theme/scrollArea.mjs +24 -21
  57. package/dist/runtime/theme/select.d.ts +5 -2
  58. package/dist/runtime/theme/select.mjs +156 -143
  59. package/dist/runtime/theme/slider.d.ts +73 -0
  60. package/dist/runtime/theme/slider.mjs +49 -0
  61. package/dist/runtime/theme/switch.mjs +66 -63
  62. package/dist/runtime/theme/tabs.d.ts +12 -2
  63. package/dist/runtime/theme/tabs.mjs +132 -113
  64. package/dist/runtime/theme/textarea.d.ts +5 -2
  65. package/dist/runtime/theme/textarea.mjs +103 -90
  66. package/dist/runtime/theme/toast.mjs +26 -23
  67. package/dist/runtime/theme/toaster.d.ts +2 -2
  68. package/dist/runtime/theme/toaster.mjs +84 -81
  69. package/dist/runtime/theme/tooltip.mjs +9 -6
  70. package/dist/runtime/types/components.d.ts +5 -0
  71. package/dist/runtime/types/index.d.ts +1 -3
  72. package/dist/runtime/utils/extend-theme.mjs +1 -1
  73. package/dist/runtime/utils/link.d.ts +1 -1
  74. package/dist/shared/ui.CzDyI29e.mjs +8 -0
  75. package/dist/shared/ui.CzDyI29e.mjs.map +1 -0
  76. package/dist/unocss-preset.mjs +44 -35
  77. package/dist/unocss-preset.mjs.map +1 -0
  78. package/dist/unplugin.d.mts +25 -0
  79. package/dist/unplugin.d.ts +25 -0
  80. package/dist/unplugin.mjs +64 -0
  81. package/dist/unplugin.mjs.map +1 -0
  82. package/dist/vite.d.mts +9 -0
  83. package/dist/vite.d.ts +9 -0
  84. package/dist/vite.mjs +14 -0
  85. package/dist/vite.mjs.map +1 -0
  86. package/package.json +17 -10
  87. package/dist/resolver.d.mts +0 -13
  88. package/dist/resolver.d.ts +0 -13
  89. package/dist/resolver.mjs +0 -21
  90. package/dist/runtime/components/index.d.ts +0 -20
  91. package/dist/runtime/components/index.mjs +0 -20
  92. package/dist/runtime/composables/index.d.ts +0 -5
  93. package/dist/runtime/composables/index.mjs +0 -5
  94. package/dist/shared/ui.Cmq14xN9.mjs +0 -25
@@ -1,132 +1,143 @@
1
1
  import { ct } from "@byyuurin/ui-kit";
2
- export default ct({
3
- slots: {
4
- base: [
5
- "inline-flex items-center rounded-ui-button leading-normal transition-colors",
6
- "disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:opacity-50"
7
- ],
8
- label: "color-inherit",
9
- prefixIcon: "shrink-0 size-1.5em",
10
- suffixIcon: "shrink-0 size-1.5em"
11
- },
12
- variants: {
13
- variant: {
14
- solid: {
15
- base: [
16
- "color-ui-c1 bg-ui-fill/90",
17
- "hover:bg-ui-fill/80 active:bg-ui-fill",
18
- "disabled:bg-ui-fill/90 aria-disabled:bg-ui-fill/90"
19
- ]
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ base: [
7
+ "inline-flex items-center rounded-ui-button leading-normal transition-colors",
8
+ "outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-cb/80",
9
+ "disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:opacity-50"
10
+ ],
11
+ label: "color-inherit",
12
+ prefixIcon: "shrink-0 size-1.5em not-only-child:ml-0.5",
13
+ suffixIcon: "shrink-0 size-1.5em not-only-child:mr-0.5"
14
+ },
15
+ variants: {
16
+ variant: {
17
+ "solid": {
18
+ base: [
19
+ "color-ui-c1 bg-ui-fill/90",
20
+ "hover:bg-ui-fill/80 active:bg-ui-fill",
21
+ "disabled:bg-ui-fill/90 aria-disabled:bg-ui-fill/90"
22
+ ]
23
+ },
24
+ "outline": {
25
+ base: [
26
+ "color-ui-fill bg-ui-c1 ring ring-inset ring-ui-fill",
27
+ "hover:bg-ui-fill/5 active:bg-ui-fill/10",
28
+ "disabled:bg-ui-c1 aria-disabled:bg-ui-c1"
29
+ ]
30
+ },
31
+ "soft": {
32
+ base: [
33
+ "color-ui-content/80 bg-ui-fill/10",
34
+ "hover:bg-ui-fill/15 hover:color-ui-content/80 active:bg-ui-fill/20 active:color-ui-content/90",
35
+ "disabled:bg-ui-fill/10 aria-disabled:bg-ui-fill/10 disabled:color-ui-content/80 aria-disabled:color-ui-content/80"
36
+ ]
37
+ },
38
+ "soft-outline": {
39
+ base: [
40
+ "color-ui-content/80 bg-ui-fill/10 ring ring-inset ring-ui-fill/40",
41
+ "hover:bg-ui-fill/15 hover:color-ui-content/80 active:bg-ui-fill/20 active:color-ui-content/90",
42
+ "disabled:bg-ui-fill/10 aria-disabled:bg-ui-fill/10 disabled:color-ui-content/80 aria-disabled:color-ui-content/80"
43
+ ]
44
+ },
45
+ "ghost": {
46
+ base: [
47
+ "color-ui-fill/80 bg-transparent",
48
+ "hover:bg-ui-fill/10 hover:color-ui-fill/80 active:bg-ui-fill/20 active:color-ui-fill/90",
49
+ "disabled:bg-transparent aria-disabled:bg-transparent disabled:color-ui-fill/80 aria-disabled:color-ui-fill/80"
50
+ ]
51
+ },
52
+ "link": {
53
+ base: [
54
+ "color-ui-fill/80 bg-transparent",
55
+ "hover:color-ui-fill/60 active:color-ui-fill",
56
+ "disabled:color-ui-fill aria-disabled:color-ui-fill"
57
+ ]
58
+ }
59
+ },
60
+ size: {
61
+ xs: {
62
+ base: "text-xs"
63
+ },
64
+ sm: {
65
+ base: "text-sm"
66
+ },
67
+ md: {
68
+ base: "text-base"
69
+ },
70
+ lg: {
71
+ base: "text-lg"
72
+ },
73
+ xl: {
74
+ base: "text-xl"
75
+ }
20
76
  },
21
- outline: {
22
- base: [
23
- "color-ui-fill bg-ui-c1 ring ring-inset ring-ui-fill",
24
- "hover:bg-ui-fill/10 active:bg-ui-fill/25",
25
- "disabled:bg-ui-c1 aria-disabled:bg-ui-c1"
26
- ]
77
+ active: {
78
+ true: ""
27
79
  },
28
- soft: {
29
- base: [
30
- "color-ui-content/80 bg-ui-fill/10",
31
- "hover:bg-ui-fill/15 hover:color-ui-content/80 active:bg-ui-fill/20 active:color-ui-content/90",
32
- "disabled:bg-ui-fill/10 aria-disabled:bg-ui-fill/10 disabled:color-ui-content/80 aria-disabled:color-ui-content/80"
33
- ]
80
+ prefix: {
81
+ true: ""
34
82
  },
35
- ghost: {
36
- base: [
37
- "color-ui-fill/80 bg-transparent",
38
- "hover:bg-ui-fill/10 hover:color-ui-fill/80 active:bg-ui-fill/20 active:color-ui-fill/90",
39
- "disabled:bg-transparent aria-disabled:bg-transparent disabled:color-ui-fill/80 aria-disabled:color-ui-fill/80"
40
- ]
83
+ suffix: {
84
+ true: ""
41
85
  },
42
- link: {
43
- base: [
44
- "color-ui-fill bg-transparent",
45
- "hover:color-ui-fill/80 active:color-ui-fill/90",
46
- "disabled:color-ui-fill aria-disabled:color-ui-fill"
47
- ]
86
+ loading: {
87
+ true: ""
48
88
  }
49
89
  },
50
- size: {
51
- xs: {
52
- base: "text-xs"
90
+ compoundVariants: [
91
+ {
92
+ size: ["xs", "sm", "md"],
93
+ class: {
94
+ base: "p-1.5",
95
+ label: "px-1"
96
+ }
53
97
  },
54
- sm: {
55
- base: "text-sm"
98
+ {
99
+ size: ["lg", "xl"],
100
+ class: {
101
+ base: "p-2.5",
102
+ label: "px-2"
103
+ }
56
104
  },
57
- md: {
58
- base: "text-base"
105
+ {
106
+ active: true,
107
+ variant: "solid",
108
+ class: { base: "bg-ui-fill hover:bg-ui-fill" }
59
109
  },
60
- lg: {
61
- base: "text-lg"
110
+ {
111
+ active: true,
112
+ variant: "outline",
113
+ class: { base: "bg-ui-fill/10 hover:bg-ui-fill/10" }
62
114
  },
63
- xl: {
64
- base: "text-xl"
65
- }
66
- },
67
- active: {
68
- true: ""
69
- },
70
- prefix: {
71
- true: ""
72
- },
73
- suffix: {
74
- true: ""
75
- },
76
- loading: {
77
- true: ""
78
- }
79
- },
80
- compoundVariants: [
81
- {
82
- size: ["xs", "sm", "md"],
83
- class: {
84
- base: "p-1.5",
85
- label: "px-1"
86
- }
87
- },
88
- {
89
- size: ["lg", "xl"],
90
- class: {
91
- base: "p-2.5",
92
- label: "px-2"
115
+ {
116
+ active: true,
117
+ variant: ["soft", "soft-outline"],
118
+ class: { base: "color-ui-content/90 bg-ui-fill/20 hover:color-ui-content/90 hover:bg-ui-fill/20" }
119
+ },
120
+ {
121
+ active: true,
122
+ variant: "ghost",
123
+ class: { base: "color-ui-fill/90 bg-ui-fill/20 hover:color-ui-fill/90 hover:bg-ui-fill/20" }
124
+ },
125
+ {
126
+ active: true,
127
+ variant: "link",
128
+ class: { base: "color-ui-fill/90 hover:color-ui-fill/90" }
129
+ },
130
+ {
131
+ loading: true,
132
+ prefix: true,
133
+ class: { prefixIcon: "animate-spin" }
134
+ },
135
+ {
136
+ loading: true,
137
+ prefix: false,
138
+ suffix: true,
139
+ class: { suffixIcon: "animate-spin" }
93
140
  }
94
- },
95
- {
96
- active: true,
97
- variant: "solid",
98
- class: { base: "bg-ui-fill hover:bg-ui-fill" }
99
- },
100
- {
101
- active: true,
102
- variant: "outline",
103
- class: { base: "bg-ui-fill/25 hover:bg-ui-fill/25" }
104
- },
105
- {
106
- active: true,
107
- variant: "soft",
108
- class: { base: "color-ui-content/90 bg-ui-fill/20 hover:color-ui-content/90 hover:bg-ui-fill/20" }
109
- },
110
- {
111
- active: true,
112
- variant: "ghost",
113
- class: { base: "color-ui-fill/90 bg-ui-fill/20 hover:color-ui-fill/90 hover:bg-ui-fill/20" }
114
- },
115
- {
116
- active: true,
117
- variant: "link",
118
- class: { base: "color-ui-fill/90 hover:color-ui-fill/90" }
119
- },
120
- {
121
- loading: true,
122
- prefix: true,
123
- class: { prefixIcon: "animate-spin" }
124
- },
125
- {
126
- loading: true,
127
- prefix: false,
128
- suffix: true,
129
- class: { suffixIcon: "animate-spin" }
130
- }
131
- ]
132
- });
141
+ ]
142
+ }
143
+ );
@@ -14,9 +14,9 @@ declare const _default: {
14
14
  root?: import("@byyuurin/ui-kit/index").ClassValue;
15
15
  header?: import("@byyuurin/ui-kit/index").ClassValue;
16
16
  body?: import("@byyuurin/ui-kit/index").ClassValue;
17
- footer?: import("@byyuurin/ui-kit/index").ClassValue;
18
17
  title?: import("@byyuurin/ui-kit/index").ClassValue;
19
18
  description?: import("@byyuurin/ui-kit/index").ClassValue;
19
+ footer?: import("@byyuurin/ui-kit/index").ClassValue;
20
20
  } | null;
21
21
  };
22
22
  };
@@ -26,9 +26,9 @@ declare const _default: {
26
26
  root?: import("@byyuurin/ui-kit/index").ClassValue;
27
27
  header?: import("@byyuurin/ui-kit/index").ClassValue;
28
28
  body?: import("@byyuurin/ui-kit/index").ClassValue;
29
- footer?: import("@byyuurin/ui-kit/index").ClassValue;
30
29
  title?: import("@byyuurin/ui-kit/index").ClassValue;
31
30
  description?: import("@byyuurin/ui-kit/index").ClassValue;
31
+ footer?: import("@byyuurin/ui-kit/index").ClassValue;
32
32
  } | null;
33
33
  };
34
34
  }, {
@@ -1,11 +1,14 @@
1
1
  import { ct } from "@byyuurin/ui-kit";
2
- export default ct({
3
- slots: {
4
- root: "color-ui-cb bg-ui-c1 ring ring-ui-cb/10 divide-y divide-ui-cb/10 rounded-ui-box shadow-sm shadow-ui-cb/10",
5
- header: "flex flex-wrap items-center gap-1 px-4 py-5 sm:px-6",
6
- body: "flex-1 overflow-y-auto p-4 sm:p-6 empty:hidden",
7
- footer: "flex items-center gap-1.5 p-4 sm:px-6",
8
- title: "flex-grow color-ui-cb text-xl font-semibold",
9
- description: "w-full color-ui-cb/80"
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ root: "color-ui-cb bg-ui-c1 ring ring-ui-cb/10 divide-y divide-ui-cb/10 rounded-ui-box shadow-sm shadow-ui-cb/10",
7
+ header: "flex flex-wrap items-center gap-1 px-4 py-5 sm:px-6",
8
+ body: "flex-1 overflow-y-auto p-4 sm:p-6 empty:hidden",
9
+ footer: "flex items-center gap-1.5 p-4 sm:px-6",
10
+ title: "flex-grow color-ui-cb text-xl font-semibold",
11
+ description: "w-full color-ui-cb/80"
12
+ }
10
13
  }
11
- });
14
+ );
@@ -1,48 +1,51 @@
1
1
  import { ct } from "@byyuurin/ui-kit";
2
- export default ct({
3
- slots: {
4
- root: "relative flex items-start",
5
- base: [
6
- "size-1.25em shrink-0 flex items-center justify-center rounded-ui-checkbox color-ui-c1 ring-2 ring-ui-content ring-inset bg-ui-content",
7
- "focus-visible:outline-ui-cb focus-visible:outline-2 focus-visible:outline-offset-2",
8
- "aria-[checked=false]:ring-1 aria-[checked=false]:ring-ui-cb aria-[checked=false]:bg-ui-c1"
9
- ],
10
- container: "flex items-center h-1.25em",
11
- wrapper: "text-inherit ms-2",
12
- icon: "color-ui-c1 shrink-0 size-1em transition data-[state=unchecked]:translate-y-full",
13
- label: "flex color-ui-cb after:content-empty",
14
- description: "color-ui-cb/60"
15
- },
16
- variants: {
17
- size: {
18
- xs: {
19
- root: "text-xs"
20
- },
21
- sm: {
22
- root: "text-sm"
23
- },
24
- md: {
25
- root: "text-base"
26
- },
27
- lg: {
28
- root: "text-lg"
29
- },
30
- xl: {
31
- root: "text-xl"
32
- }
33
- },
34
- required: {
35
- true: {
36
- label: `after:content-['*'] after:ms-0.5`
37
- }
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ root: "relative flex items-start",
7
+ base: [
8
+ "size-1.25em shrink-0 flex items-center justify-center rounded-ui-checkbox color-ui-c1 ring-2 ring-ui-content ring-inset bg-ui-content",
9
+ "outline-none focus-visible:outline-ui-cb/80 focus-visible:outline-2 focus-visible:outline-offset-2",
10
+ "aria-[checked=false]:ring-1 aria-[checked=false]:ring-ui-cb aria-[checked=false]:bg-ui-c1"
11
+ ],
12
+ container: "flex items-center h-1.25em",
13
+ wrapper: "text-inherit ms-2",
14
+ icon: "color-ui-c1 shrink-0 size-1em transition data-[state=unchecked]:translate-y-full",
15
+ label: "flex color-ui-cb after:content-empty",
16
+ description: "color-ui-cb/60"
38
17
  },
39
- disabled: {
40
- true: {
41
- root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
18
+ variants: {
19
+ size: {
20
+ xs: {
21
+ root: "text-xs"
22
+ },
23
+ sm: {
24
+ root: "text-sm"
25
+ },
26
+ md: {
27
+ root: "text-base"
28
+ },
29
+ lg: {
30
+ root: "text-lg"
31
+ },
32
+ xl: {
33
+ root: "text-xl"
34
+ }
35
+ },
36
+ required: {
37
+ true: {
38
+ label: `after:content-['*'] after:ms-0.5`
39
+ }
42
40
  },
43
- false: {
44
- label: "cursor-pointer"
41
+ disabled: {
42
+ true: {
43
+ root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
44
+ },
45
+ false: {
46
+ label: "cursor-pointer"
47
+ }
45
48
  }
46
49
  }
47
50
  }
48
- });
51
+ );
@@ -0,0 +1,56 @@
1
+ declare const _default: {
2
+ base: undefined;
3
+ slots: {
4
+ base: string;
5
+ label: string;
6
+ prefixIcon: string;
7
+ suffixIcon: string;
8
+ };
9
+ variants: {
10
+ variant: {
11
+ solid: {
12
+ base: string[];
13
+ };
14
+ outline: {
15
+ base: string;
16
+ };
17
+ soft: {
18
+ base: string;
19
+ };
20
+ 'soft-outline': {
21
+ base: string;
22
+ };
23
+ };
24
+ size: {
25
+ xs: {
26
+ base: string;
27
+ };
28
+ sm: {
29
+ base: string;
30
+ };
31
+ md: {
32
+ base: string;
33
+ };
34
+ lg: {
35
+ base: string;
36
+ };
37
+ xl: {
38
+ base: string;
39
+ };
40
+ };
41
+ };
42
+ compoundVariants: ({
43
+ size: ("xs" | "sm" | "md")[];
44
+ class: {
45
+ base: string;
46
+ label: string;
47
+ };
48
+ } | {
49
+ size: ("lg" | "xl")[];
50
+ class: {
51
+ base: string;
52
+ label: string;
53
+ };
54
+ })[];
55
+ };
56
+ export default _default;
@@ -0,0 +1,63 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ base: "inline-flex items-center rounded-ui-base leading-normal transition-colors",
7
+ label: "",
8
+ prefixIcon: "shrink-0 size-1.5em not-only-child:ml-1.5",
9
+ suffixIcon: "shrink-0 size-1.5em not-only-child:mr-1.5"
10
+ },
11
+ variants: {
12
+ variant: {
13
+ "solid": {
14
+ base: [
15
+ "color-ui-c1 bg-ui-fill/90"
16
+ ]
17
+ },
18
+ "outline": {
19
+ base: "color-ui-fill bg-ui-c1 ring ring-inset ring-ui-fill"
20
+ },
21
+ "soft": {
22
+ base: "color-ui-content/80 bg-ui-fill/10"
23
+ },
24
+ "soft-outline": {
25
+ base: "color-ui-content/80 bg-ui-fill/10 ring ring-inset ring-ui-fill/40"
26
+ }
27
+ },
28
+ size: {
29
+ xs: {
30
+ base: "text-xs"
31
+ },
32
+ sm: {
33
+ base: "text-sm"
34
+ },
35
+ md: {
36
+ base: "text-base"
37
+ },
38
+ lg: {
39
+ base: "text-lg"
40
+ },
41
+ xl: {
42
+ base: "text-xl"
43
+ }
44
+ }
45
+ },
46
+ compoundVariants: [
47
+ {
48
+ size: ["xs", "sm", "md"],
49
+ class: {
50
+ base: "p-0.5",
51
+ label: "px-1"
52
+ }
53
+ },
54
+ {
55
+ size: ["lg", "xl"],
56
+ class: {
57
+ base: "p-1",
58
+ label: "px-2"
59
+ }
60
+ }
61
+ ]
62
+ }
63
+ );
@@ -1,72 +1,75 @@
1
1
  import { ct } from "@byyuurin/ui-kit";
2
- export default ct({
3
- slots: {
4
- overlay: "fixed inset-0 bg-ui-c3/75",
5
- content: "fixed bg-ui-c1 ring ring-ui-cb/5 flex focus:outline-none",
6
- handle: "shrink-0 rounded-full bg-ui-cb/17.5",
7
- container: "w-full flex flex-col overflow-hidden overflow-y-auto",
8
- header: "p-4 sm:px-6 sibling:pt-0",
9
- title: "color-ui-cb text-xl font-semibold",
10
- description: "mt-1 color-ui-cb/80",
11
- body: "p-4 sm:px-6 flex-1 sibling:pt-0",
12
- footer: "p-4 sm:px-6 flex flex-col gap-1.5"
13
- },
14
- variants: {
15
- direction: {
16
- top: {
17
- content: "top-0 mb-24 flex-col-reverse rounded-b-ui-box",
18
- handle: "mb-4"
19
- },
20
- right: {
21
- content: "right-4 flex-row rounded-l-ui-box",
22
- handle: "ml-4"
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ overlay: "fixed inset-0 bg-ui-c3/75",
7
+ content: "fixed bg-ui-c1 ring ring-ui-cb/5 flex focus:outline-none",
8
+ handle: "shrink-0 rounded-full bg-ui-cb/17.5",
9
+ container: "w-full flex flex-col overflow-hidden overflow-y-auto",
10
+ header: "p-4 sm:px-6 sibling:pt-0",
11
+ title: "color-ui-cb text-xl font-semibold",
12
+ description: "mt-1 color-ui-cb/80",
13
+ body: "p-4 sm:px-6 flex-1 sibling:pt-0",
14
+ footer: "p-4 sm:px-6 flex flex-col gap-1.5"
15
+ },
16
+ variants: {
17
+ direction: {
18
+ top: {
19
+ content: "top-0 mb-24 flex-col-reverse rounded-b-ui-box",
20
+ handle: "mb-4"
21
+ },
22
+ right: {
23
+ content: "right-4 flex-row rounded-l-ui-box",
24
+ handle: "ml-4"
25
+ },
26
+ bottom: {
27
+ content: "bottom-0 mt-24 flex-col rounded-t-ui-box",
28
+ handle: "mt-4"
29
+ },
30
+ left: {
31
+ content: "left-4 flex-row-reverse rounded-r-ui-box",
32
+ handle: "mr-4"
33
+ }
23
34
  },
24
- bottom: {
25
- content: "bottom-0 mt-24 flex-col rounded-t-ui-box",
26
- handle: "mt-4"
35
+ blur: {
36
+ true: {
37
+ overlay: "backdrop-blur-sm"
38
+ }
27
39
  },
28
- left: {
29
- content: "left-4 flex-row-reverse rounded-r-ui-box",
30
- handle: "mr-4"
31
- }
32
- },
33
- blur: {
34
- true: {
35
- overlay: "backdrop-blur-sm"
40
+ full: {
41
+ true: ""
36
42
  }
37
43
  },
38
- full: {
39
- true: ""
40
- }
41
- },
42
- compoundVariants: [
43
- {
44
- direction: ["top", "bottom"],
45
- class: {
46
- content: "inset-x-0 h-auto max-h-[96%]",
47
- handle: "w-12 h-1.5 mx-auto"
48
- }
49
- },
50
- {
51
- direction: ["top", "bottom"],
52
- full: false,
53
- class: {
54
- content: "inset-x-4 my-4 rounded-ui-box after:hidden"
55
- }
56
- },
57
- {
58
- direction: ["right", "left"],
59
- class: {
60
- content: "inset-y-0 w-auto max-w-[calc(100%-2rem)]",
61
- handle: "h-12 w-1.5 my-auto"
62
- }
63
- },
64
- {
65
- direction: ["right", "left"],
66
- full: false,
67
- class: {
68
- content: "inset-y-4 rounded-ui-box after:hidden"
44
+ compoundVariants: [
45
+ {
46
+ direction: ["top", "bottom"],
47
+ class: {
48
+ content: "inset-x-0 h-auto max-h-[96%]",
49
+ handle: "w-12 h-1.5 mx-auto"
50
+ }
51
+ },
52
+ {
53
+ direction: ["top", "bottom"],
54
+ full: false,
55
+ class: {
56
+ content: "inset-x-4 my-4 rounded-ui-box after:hidden"
57
+ }
58
+ },
59
+ {
60
+ direction: ["right", "left"],
61
+ class: {
62
+ content: "inset-y-0 w-auto max-w-[calc(100%-2rem)]",
63
+ handle: "h-12 w-1.5 my-auto"
64
+ }
65
+ },
66
+ {
67
+ direction: ["right", "left"],
68
+ full: false,
69
+ class: {
70
+ content: "inset-y-4 rounded-ui-box after:hidden"
71
+ }
69
72
  }
70
- }
71
- ]
72
- });
73
+ ]
74
+ }
75
+ );