@vuer-ai/vuer-uikit 0.0.25 → 0.0.27

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 (139) hide show
  1. package/dist/chunk-2TBYBUF4.js +2 -0
  2. package/dist/chunk-2TXGBB33.js +21 -0
  3. package/dist/chunk-2WJW572X.mjs +74 -0
  4. package/dist/chunk-35CM7HPZ.mjs +149 -0
  5. package/dist/chunk-4F3R5V3E.mjs +269 -0
  6. package/dist/chunk-5F36YBKG.js +116 -0
  7. package/dist/chunk-66FC5NST.mjs +87 -0
  8. package/dist/chunk-6SBHQBFL.mjs +110 -0
  9. package/dist/chunk-6SRDWLQJ.js +132 -0
  10. package/dist/chunk-6YJ6IBWC.mjs +861 -0
  11. package/dist/chunk-AAIXMQCG.mjs +114 -0
  12. package/dist/chunk-ALTUOIWV.mjs +15 -0
  13. package/dist/chunk-AQXAGOYO.js +107 -0
  14. package/dist/chunk-DD7FIYSP.mjs +259 -0
  15. package/dist/chunk-DYT2FBW5.mjs +79 -0
  16. package/dist/chunk-EOFYA6CS.js +53 -0
  17. package/dist/{chunk-I55IRAYH.mjs → chunk-FEYQ2OWB.mjs} +1 -1
  18. package/dist/chunk-FV2TIL2G.js +93 -0
  19. package/dist/chunk-GGMVWSL5.js +202 -0
  20. package/dist/chunk-H2VZHFP6.mjs +85 -0
  21. package/dist/chunk-HT37IGEB.mjs +15 -0
  22. package/dist/chunk-JOTWPUPW.mjs +91 -0
  23. package/dist/chunk-JSMQMGST.js +110 -0
  24. package/dist/chunk-KJV7RR25.js +135 -0
  25. package/dist/chunk-L3LDQABD.mjs +1 -0
  26. package/dist/chunk-LEPXSM36.mjs +46 -0
  27. package/dist/chunk-LKAGJL2E.mjs +15 -0
  28. package/dist/chunk-N3VYENST.js +143 -0
  29. package/dist/chunk-NP6VNT23.js +118 -0
  30. package/dist/chunk-NQRO3NQX.js +300 -0
  31. package/dist/{chunk-QSW45JZH.js → chunk-OO7LYJQL.js} +1 -1
  32. package/dist/chunk-PIJM7ZII.js +21 -0
  33. package/dist/chunk-PVRQNCSJ.js +49 -0
  34. package/dist/chunk-Q42CNAC4.js +863 -0
  35. package/dist/chunk-Q5KEB4UK.mjs +51 -0
  36. package/dist/chunk-QPQFG2DZ.mjs +107 -0
  37. package/dist/chunk-RTURVQIP.js +41 -0
  38. package/dist/chunk-S3TZN6HZ.js +375 -0
  39. package/dist/chunk-SAM2YZFC.js +97 -0
  40. package/dist/chunk-TOXM5BPM.js +261 -0
  41. package/dist/chunk-U5U7B7ZI.mjs +105 -0
  42. package/dist/chunk-VKGXNTK2.mjs +339 -0
  43. package/dist/chunk-W7D57QE6.js +21 -0
  44. package/dist/chunk-XADXCP5Z.mjs +196 -0
  45. package/dist/chunk-XPPJVYYS.js +424 -0
  46. package/dist/chunk-XUKMVPUD.js +93 -0
  47. package/dist/chunk-YGIU2WQY.mjs +402 -0
  48. package/dist/chunk-YLYNNT5Q.js +180 -0
  49. package/dist/chunk-ZRJ5JCVG.mjs +39 -0
  50. package/dist/chunk-ZT6G7STM.mjs +115 -0
  51. package/dist/highlight-cursor/enhanced-components.js +10 -10
  52. package/dist/highlight-cursor/enhanced-components.mjs +5 -5
  53. package/dist/highlight-cursor/index.js +10 -10
  54. package/dist/highlight-cursor/index.mjs +5 -5
  55. package/dist/index.css +2 -2
  56. package/dist/index.d.mts +1 -2
  57. package/dist/index.d.ts +1 -2
  58. package/dist/index.js +231 -190
  59. package/dist/index.mjs +24 -23
  60. package/dist/styles/toast.css +1 -1
  61. package/dist/ui/avatar.js +5 -5
  62. package/dist/ui/avatar.mjs +1 -1
  63. package/dist/ui/badge.d.mts +2 -2
  64. package/dist/ui/badge.d.ts +2 -2
  65. package/dist/ui/button.js +2 -2
  66. package/dist/ui/button.mjs +1 -1
  67. package/dist/ui/card.js +8 -8
  68. package/dist/ui/card.mjs +1 -1
  69. package/dist/ui/drawer.js +49 -0
  70. package/dist/ui/drawer.mjs +4 -0
  71. package/dist/ui/dropdown.js +16 -16
  72. package/dist/ui/dropdown.mjs +1 -1
  73. package/dist/ui/index.d.mts +1 -2
  74. package/dist/ui/index.d.ts +1 -2
  75. package/dist/ui/index.js +217 -176
  76. package/dist/ui/index.mjs +23 -22
  77. package/dist/ui/input-numbers.js +3 -3
  78. package/dist/ui/input-numbers.mjs +2 -2
  79. package/dist/ui/input.d.mts +1 -1
  80. package/dist/ui/input.d.ts +1 -1
  81. package/dist/ui/input.js +3 -3
  82. package/dist/ui/input.mjs +1 -1
  83. package/dist/ui/modal.js +11 -11
  84. package/dist/ui/modal.mjs +1 -1
  85. package/dist/ui/select.d.mts +1 -1
  86. package/dist/ui/select.d.ts +1 -1
  87. package/dist/ui/select.js +11 -11
  88. package/dist/ui/select.mjs +1 -1
  89. package/dist/ui/sheet.js +9 -9
  90. package/dist/ui/sheet.mjs +1 -1
  91. package/dist/ui/tabs.js +5 -5
  92. package/dist/ui/tabs.mjs +1 -1
  93. package/dist/ui/theme-context.d.mts +17 -0
  94. package/dist/ui/theme-context.d.ts +17 -0
  95. package/dist/ui/theme-context.js +17 -0
  96. package/dist/ui/theme-context.mjs +4 -0
  97. package/dist/ui/timeline.js +4 -4
  98. package/dist/ui/timeline.mjs +3 -3
  99. package/dist/ui/toggle-group.js +4 -4
  100. package/dist/ui/toggle-group.mjs +2 -2
  101. package/dist/ui/toggle.js +3 -3
  102. package/dist/ui/toggle.mjs +1 -1
  103. package/dist/ui/tooltip.js +5 -5
  104. package/dist/ui/tooltip.mjs +1 -1
  105. package/dist/ui/tree-view-v2.js +3 -3
  106. package/dist/ui/tree-view-v2.mjs +2 -2
  107. package/dist/ui/tree-view.js +4 -2
  108. package/dist/ui/tree-view.mjs +3 -1
  109. package/dist/ui/version-badge.js +2 -2
  110. package/dist/ui/version-badge.mjs +1 -1
  111. package/package.json +3 -2
  112. package/src/styles/toast.css +1 -1
  113. package/src/ui/avatar.tsx +12 -15
  114. package/src/ui/button.tsx +6 -7
  115. package/src/ui/card.tsx +0 -1
  116. package/src/ui/drawer.tsx +119 -0
  117. package/src/ui/dropdown.tsx +2 -4
  118. package/src/ui/index.ts +1 -0
  119. package/src/ui/input-numbers.tsx +1 -1
  120. package/src/ui/input.tsx +3 -3
  121. package/src/ui/modal.tsx +1 -0
  122. package/src/ui/select.tsx +4 -5
  123. package/src/ui/sheet.tsx +4 -4
  124. package/src/ui/tabs.tsx +2 -1
  125. package/src/ui/theme-context/theme-context.tsx +2 -2
  126. package/src/ui/timeline.tsx +534 -199
  127. package/src/ui/toggle-group.tsx +0 -2
  128. package/src/ui/toggle.tsx +2 -2
  129. package/src/ui/tooltip.tsx +1 -1
  130. package/src/ui/tree-view-v2.tsx +4 -4
  131. package/src/ui/tree-view.tsx +84 -115
  132. package/dist/ui/theme-context/index.d.mts +0 -4
  133. package/dist/ui/theme-context/index.d.ts +0 -4
  134. package/dist/ui/theme-context/theme-context.d.mts +0 -8
  135. package/dist/ui/theme-context/theme-context.d.ts +0 -8
  136. package/dist/ui/theme-context/theme-script.d.mts +0 -13
  137. package/dist/ui/theme-context/theme-script.d.ts +0 -13
  138. package/dist/ui/theme-context/theme-types.d.mts +0 -47
  139. package/dist/ui/theme-context/theme-types.d.ts +0 -47
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ var chunk5OUTEHVX_js = require('./chunk-5OUTEHVX.js');
4
+ var chunkNQRO3NQX_js = require('./chunk-NQRO3NQX.js');
5
+ var chunk6SRDWLQJ_js = require('./chunk-6SRDWLQJ.js');
6
+ var chunkNP6VNT23_js = require('./chunk-NP6VNT23.js');
7
+ var chunkUFHMEEGL_js = require('./chunk-UFHMEEGL.js');
8
+ var chunkXUKMVPUD_js = require('./chunk-XUKMVPUD.js');
9
+
10
+ // src/highlight-cursor/enhanced-components.tsx
11
+ var CursorButton = chunkUFHMEEGL_js.withCursor(chunkXUKMVPUD_js.Button);
12
+ var CursorTabs = chunkUFHMEEGL_js.withCursor(chunk6SRDWLQJ_js.Tabs);
13
+ var CursorInputRoot = chunkUFHMEEGL_js.withCursor(chunkNP6VNT23_js.InputRoot);
14
+ var CursorSelectTrigger = chunkUFHMEEGL_js.withCursor(chunkNQRO3NQX_js.SelectTrigger);
15
+ var CursorTextarea = chunkUFHMEEGL_js.withCursor(chunk5OUTEHVX_js.Textarea);
16
+
17
+ exports.CursorButton = CursorButton;
18
+ exports.CursorInputRoot = CursorInputRoot;
19
+ exports.CursorSelectTrigger = CursorSelectTrigger;
20
+ exports.CursorTabs = CursorTabs;
21
+ exports.CursorTextarea = CursorTextarea;
@@ -0,0 +1,74 @@
1
+ import { toggleVariants } from './chunk-66FC5NST.mjs';
2
+ import { cn } from './chunk-KTNZSZ5Y.mjs';
3
+ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
4
+ import { createContext, useContext } from 'react';
5
+ import { jsx } from 'react/jsx-runtime';
6
+
7
+ var ToggleGroupContext = createContext({
8
+ size: "base",
9
+ variant: "primary"
10
+ });
11
+ function ToggleGroup({
12
+ className,
13
+ variant,
14
+ size,
15
+ children,
16
+ ...props
17
+ }) {
18
+ return /* @__PURE__ */ jsx(
19
+ ToggleGroupPrimitive.Root,
20
+ {
21
+ "data-slot": "toggle-group",
22
+ "data-variant": variant,
23
+ "data-size": size,
24
+ className: cn(
25
+ "group/toggle-group",
26
+ "flex",
27
+ "w-fit",
28
+ "items-center",
29
+ "rounded-uk-md",
30
+ className
31
+ ),
32
+ ...props,
33
+ children: /* @__PURE__ */ jsx(ToggleGroupContext.Provider, { value: { variant, size }, children })
34
+ }
35
+ );
36
+ }
37
+ function ToggleGroupItem({
38
+ className,
39
+ children,
40
+ variant,
41
+ size,
42
+ ...props
43
+ }) {
44
+ const context = useContext(ToggleGroupContext);
45
+ return /* @__PURE__ */ jsx(
46
+ ToggleGroupPrimitive.Item,
47
+ {
48
+ "data-slot": "toggle-group-item",
49
+ "data-variant": context.variant || variant,
50
+ "data-size": context.size || size,
51
+ className: cn(
52
+ toggleVariants({
53
+ variant: context.variant || variant,
54
+ size: context.size || size
55
+ }),
56
+ "min-w-0",
57
+ "flex-1",
58
+ "shrink-0",
59
+ "rounded-none",
60
+ "first:rounded-l-md",
61
+ "last:rounded-r-md",
62
+ "focus:z-10",
63
+ "focus-visible:z-10",
64
+ "data-[variant=outline]:border-l-0",
65
+ "data-[variant=outline]:first:border-l",
66
+ className
67
+ ),
68
+ ...props,
69
+ children
70
+ }
71
+ );
72
+ }
73
+
74
+ export { ToggleGroup, ToggleGroupItem };
@@ -0,0 +1,149 @@
1
+ import { cn } from './chunk-KTNZSZ5Y.mjs';
2
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
3
+ import { cva } from 'class-variance-authority';
4
+ import { XIcon } from 'lucide-react';
5
+ import { jsx, jsxs } from 'react/jsx-runtime';
6
+
7
+ function Modal({ ...props }) {
8
+ return /* @__PURE__ */ jsx(DialogPrimitive.Root, { "data-slot": "modal", ...props });
9
+ }
10
+ function ModalTrigger({ ...props }) {
11
+ return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { "data-slot": "modal-trigger", ...props });
12
+ }
13
+ function ModalPortal({ ...props }) {
14
+ return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { "data-slot": "modal-portal", ...props });
15
+ }
16
+ function ModalClose({ ...props }) {
17
+ return /* @__PURE__ */ jsx(DialogPrimitive.Close, { "data-slot": "modal-close", ...props });
18
+ }
19
+ var modalOverlayVariants = cva([
20
+ "fixed",
21
+ "inset-0",
22
+ "z-100",
23
+ "bg-bg-mask",
24
+ "transition-all",
25
+ "duration-200"
26
+ ]);
27
+ function ModalOverlay({ className, ...props }) {
28
+ return /* @__PURE__ */ jsx(
29
+ DialogPrimitive.Overlay,
30
+ {
31
+ "data-slot": "modal-overlay",
32
+ className: cn(modalOverlayVariants(), className),
33
+ ...props
34
+ }
35
+ );
36
+ }
37
+ var modalContentVariants = cva([
38
+ "pb-xl",
39
+ "px-xl",
40
+ "bg-bg-primary",
41
+ "rounded-uk-xl",
42
+ "shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
43
+ "min-w-[280px]",
44
+ "max-w-[360px]",
45
+ "duration-200",
46
+ "transition-all",
47
+ "fixed",
48
+ "translate-x-[-50%]",
49
+ "translate-y-[-50%]",
50
+ "z-101",
51
+ "left-1/2",
52
+ "top-1/2",
53
+ "data-[state=open]:animate-in",
54
+ "data-[state=closed]:animate-out",
55
+ "data-[state=closed]:fade-out-0",
56
+ "data-[state=open]:fade-in-0",
57
+ "data-[state=closed]:zoom-out-95",
58
+ "data-[state=open]:zoom-in-95",
59
+ "liquid:liquid-bg"
60
+ ]);
61
+ function ModalContent({
62
+ className,
63
+ children,
64
+ showCloseButton = true,
65
+ ...props
66
+ }) {
67
+ return /* @__PURE__ */ jsxs(ModalPortal, { children: [
68
+ /* @__PURE__ */ jsx(ModalOverlay, {}),
69
+ /* @__PURE__ */ jsxs(
70
+ DialogPrimitive.Content,
71
+ {
72
+ "data-slot": "modal-content",
73
+ className: cn(modalContentVariants(), className),
74
+ ...props,
75
+ children: [
76
+ children,
77
+ showCloseButton && /* @__PURE__ */ jsxs(
78
+ DialogPrimitive.Close,
79
+ {
80
+ "data-slot": "modal-close",
81
+ className: cn(
82
+ "absolute",
83
+ "right-[16px]",
84
+ "top-[16px]",
85
+ "w-[16px]",
86
+ "h-[16px]",
87
+ "rounded-uk-sm",
88
+ "cursor-pointer",
89
+ "hover:text-icon-highlight",
90
+ "text-icon-primary",
91
+ "flex",
92
+ "items-center",
93
+ "justify-center"
94
+ ),
95
+ children: [
96
+ /* @__PURE__ */ jsx(XIcon, {}),
97
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
98
+ ]
99
+ }
100
+ )
101
+ ]
102
+ }
103
+ )
104
+ ] });
105
+ }
106
+ function ModalHeader({ className, ...props }) {
107
+ return /* @__PURE__ */ jsx("div", { "data-slot": "modal-header", className: cn("flex flex-col", className), ...props });
108
+ }
109
+ function ModalTitle({ className, ...props }) {
110
+ return /* @__PURE__ */ jsx(
111
+ DialogPrimitive.Title,
112
+ {
113
+ "data-slot": "modal-title",
114
+ className: cn(
115
+ "text-text-highlight",
116
+ "text-uk-lg",
117
+ "leading-uk-lg",
118
+ "font-medium",
119
+ "py-lg",
120
+ "px-xl",
121
+ "text-center",
122
+ className
123
+ ),
124
+ ...props
125
+ }
126
+ );
127
+ }
128
+ function ModalDescription({ className, ...props }) {
129
+ return /* @__PURE__ */ jsx(
130
+ DialogPrimitive.Description,
131
+ {
132
+ "data-slot": "modal-description",
133
+ className: cn("text-text-primary", "text-uk-md", "leading-uk-md", "text-start", className),
134
+ ...props
135
+ }
136
+ );
137
+ }
138
+ function ModalFooter({ className, ...props }) {
139
+ return /* @__PURE__ */ jsx(
140
+ "div",
141
+ {
142
+ "data-slot": "modal-footer",
143
+ className: cn("w-full", "flex", "justify-end", "gap-xs", className),
144
+ ...props
145
+ }
146
+ );
147
+ }
148
+
149
+ export { Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger };
@@ -0,0 +1,269 @@
1
+ import { cn } from './chunk-KTNZSZ5Y.mjs';
2
+ import * as SelectPrimitive from '@radix-ui/react-select';
3
+ import { cva } from 'class-variance-authority';
4
+ import { ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
5
+ import { jsx, jsxs } from 'react/jsx-runtime';
6
+
7
+ function Select({ ...props }) {
8
+ return /* @__PURE__ */ jsx(SelectPrimitive.Root, { "data-slot": "select", ...props });
9
+ }
10
+ function SelectGroup({ className, ...props }) {
11
+ return /* @__PURE__ */ jsx(
12
+ SelectPrimitive.Group,
13
+ {
14
+ "data-slot": "select-group",
15
+ className: cn("space-y-xs", className),
16
+ ...props
17
+ }
18
+ );
19
+ }
20
+ function SelectValue({ ...props }) {
21
+ return /* @__PURE__ */ jsx(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
22
+ }
23
+ var selectTriggerVariants = cva(
24
+ [
25
+ "flex",
26
+ "items-center",
27
+ "justify-between",
28
+ "gap-2",
29
+ "rounded-uk-sm",
30
+ "bg-bg-secondary",
31
+ "whitespace-nowrap",
32
+ "shadow-xs",
33
+ "transition-[color,box-shadow]",
34
+ "outline-none",
35
+ "*:data-[slot=select-value]:line-clamp-1",
36
+ "*:data-[slot=select-value]:flex",
37
+ "*:data-[slot=select-value]:items-center",
38
+ "*:data-[slot=select-value]:gap-2",
39
+ "[&_svg]:shrink-0",
40
+ "[&_svg]:pointer-events-none",
41
+ "[&_svg:not([class*='text-'])]:text-muted-foreground"
42
+ ],
43
+ {
44
+ variants: {
45
+ state: {
46
+ default: ["hover:bg-bg-tertiary", "has-[input:focus]:bg-bg-quaternary"],
47
+ disabled: ["disabled:cursor-not-allowed", "bg-bg-tertiary", "text-text-tertiary"],
48
+ error: ["hover:bg-danger-primary/10", "bg-danger-primary/20"]
49
+ },
50
+ size: {
51
+ sm: "px-sm py-xs text-uk-sm h-6 [&_svg:not([class*='size-'])]:size-3",
52
+ base: "px-md py-sm text-uk-md h-8 [&_svg:not([class*='size-'])]:size-4",
53
+ lg: "px-lg py-sm text-uk-lg h-9 [&_svg:not([class*='size-'])]:size-5"
54
+ }
55
+ },
56
+ defaultVariants: {
57
+ state: "default",
58
+ size: "base"
59
+ }
60
+ }
61
+ );
62
+ function SelectTrigger({
63
+ className,
64
+ size,
65
+ children,
66
+ disabled,
67
+ state,
68
+ ...props
69
+ }) {
70
+ return /* @__PURE__ */ jsxs(
71
+ SelectPrimitive.Trigger,
72
+ {
73
+ "data-slot": "select-trigger",
74
+ "data-size": size,
75
+ className: cn(
76
+ selectTriggerVariants({ size, className, state: disabled ? "disabled" : state })
77
+ ),
78
+ disabled,
79
+ ...props,
80
+ children: [
81
+ children,
82
+ /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "opacity-50" }) })
83
+ ]
84
+ }
85
+ );
86
+ }
87
+ function SelectContent({
88
+ className,
89
+ children,
90
+ position = "item-aligned",
91
+ ...props
92
+ }) {
93
+ return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
94
+ SelectPrimitive.Content,
95
+ {
96
+ "data-slot": "select-content",
97
+ className: cn(
98
+ [
99
+ "bg-bg-primary",
100
+ "data-[state=open]:animate-in",
101
+ "data-[state=closed]:animate-out",
102
+ "data-[state=closed]:fade-out-0",
103
+ "data-[state=open]:fade-in-0",
104
+ "data-[state=closed]:zoom-out-95",
105
+ "data-[state=open]:zoom-in-95",
106
+ "data-[side=bottom]:slide-in-from-top-2",
107
+ "data-[side=left]:slide-in-from-right-2",
108
+ "data-[side=right]:slide-in-from-left-2",
109
+ "data-[side=top]:slide-in-from-bottom-2",
110
+ "relative",
111
+ "z-50",
112
+ "max-h-(--radix-select-content-available-height)",
113
+ "min-w-[8rem]",
114
+ "origin-(--radix-select-content-transform-origin)",
115
+ "overflow-x-hidden",
116
+ "overflow-y-auto",
117
+ "rounded-uk-md",
118
+ "shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
119
+ "liquid:liquid-bg"
120
+ ],
121
+ {
122
+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1": position === "popper"
123
+ },
124
+ className
125
+ ),
126
+ position,
127
+ ...props,
128
+ children: [
129
+ /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
130
+ /* @__PURE__ */ jsx(
131
+ SelectPrimitive.Viewport,
132
+ {
133
+ className: cn("p-md", {
134
+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1": position === "popper"
135
+ }),
136
+ children
137
+ }
138
+ ),
139
+ /* @__PURE__ */ jsx(SelectScrollDownButton, {})
140
+ ]
141
+ }
142
+ ) });
143
+ }
144
+ function SelectLabel({ className, ...props }) {
145
+ return /* @__PURE__ */ jsx(
146
+ SelectPrimitive.Label,
147
+ {
148
+ "data-slot": "select-label",
149
+ className: cn("text-text-secondary text-uk-xs px-2 py-1.5", className),
150
+ ...props
151
+ }
152
+ );
153
+ }
154
+ function SelectItem({ className, children, prefix, suffix, disabled, ...props }) {
155
+ return /* @__PURE__ */ jsxs(
156
+ SelectPrimitive.Item,
157
+ {
158
+ "data-slot": "select-item",
159
+ disabled,
160
+ className: cn(
161
+ [
162
+ "group/select-item",
163
+ "w-full",
164
+ "flex",
165
+ "gap-md",
166
+ "items-center",
167
+ "px-md",
168
+ "py-xs",
169
+ "relative",
170
+ "cursor-default",
171
+ "rounded-uk-xs",
172
+ "text-uk-xs",
173
+ "outline-hidden",
174
+ "select-none",
175
+ "focus:bg-bg-secondary",
176
+ "data-[state=checked]:bg-brand-primary",
177
+ "data-[disabled]:pointer-events-none",
178
+ "data-[disabled]:text-bg-quaternary",
179
+ "[&_svg]:pointer-events-none",
180
+ "[&_svg]:shrink-0",
181
+ "[&_svg:not([class*='size-'])]:size-4",
182
+ "[&_svg:not([class*='text-'])]:text-muted-foreground",
183
+ "*:[span]:last:flex",
184
+ "*:[span]:last:items-center",
185
+ "*:[span]:last:gap-2"
186
+ ],
187
+ className
188
+ ),
189
+ ...props,
190
+ children: [
191
+ /* @__PURE__ */ jsx(
192
+ "p",
193
+ {
194
+ "data-disabled": disabled,
195
+ className: cn([
196
+ "text-text-tertiary",
197
+ "flex",
198
+ "shrink-0",
199
+ "gap-0.5",
200
+ "data-[disabled=true]:text-bg-quaternary",
201
+ "group-data-[state=checked]/select-item:text-text-withbg"
202
+ ]),
203
+ children: prefix
204
+ }
205
+ ),
206
+ /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children }),
207
+ /* @__PURE__ */ jsx(
208
+ "p",
209
+ {
210
+ "data-disabled": disabled,
211
+ className: cn(
212
+ "text-text-tertiary",
213
+ "ml-auto",
214
+ "flex",
215
+ "shrink-0",
216
+ "gap-0.5",
217
+ "data-[disabled=true]:text-bg-quaternary",
218
+ "group-data-[state=checked]/select-item:text-text-withbg"
219
+ ),
220
+ children: suffix
221
+ }
222
+ )
223
+ ]
224
+ }
225
+ );
226
+ }
227
+ function SelectSeparator({
228
+ className,
229
+ ...props
230
+ }) {
231
+ return /* @__PURE__ */ jsx(
232
+ SelectPrimitive.Separator,
233
+ {
234
+ "data-slot": "select-separator",
235
+ className: cn("bg-line-primary my-lg pointer-events-none -mx-1 h-px", className),
236
+ ...props
237
+ }
238
+ );
239
+ }
240
+ function SelectScrollUpButton({
241
+ className,
242
+ ...props
243
+ }) {
244
+ return /* @__PURE__ */ jsx(
245
+ SelectPrimitive.ScrollUpButton,
246
+ {
247
+ "data-slot": "select-scroll-up-button",
248
+ className: cn("flex cursor-default items-center justify-center py-1", className),
249
+ ...props,
250
+ children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-4" })
251
+ }
252
+ );
253
+ }
254
+ function SelectScrollDownButton({
255
+ className,
256
+ ...props
257
+ }) {
258
+ return /* @__PURE__ */ jsx(
259
+ SelectPrimitive.ScrollDownButton,
260
+ {
261
+ "data-slot": "select-scroll-down-button",
262
+ className: cn("flex cursor-default items-center justify-center py-1", className),
263
+ ...props,
264
+ children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" })
265
+ }
266
+ );
267
+ }
268
+
269
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
@@ -0,0 +1,116 @@
1
+ 'use strict';
2
+
3
+ var chunkXXWQ4RVP_js = require('./chunk-XXWQ4RVP.js');
4
+ var vaul = require('vaul');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ function Drawer({ ...props }) {
8
+ return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Root, { "data-slot": "drawer", ...props });
9
+ }
10
+ function DrawerTrigger({ ...props }) {
11
+ return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Trigger, { "data-slot": "drawer-trigger", ...props });
12
+ }
13
+ function DrawerPortal({ ...props }) {
14
+ return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Portal, { "data-slot": "drawer-portal", ...props });
15
+ }
16
+ function DrawerClose({ ...props }) {
17
+ return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Close, { "data-slot": "drawer-close", ...props });
18
+ }
19
+ function DrawerOverlay({
20
+ className,
21
+ ...props
22
+ }) {
23
+ return /* @__PURE__ */ jsxRuntime.jsx(
24
+ vaul.Drawer.Overlay,
25
+ {
26
+ "data-slot": "drawer-overlay",
27
+ className: chunkXXWQ4RVP_js.cn(
28
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-bg-mask fixed inset-0 z-50",
29
+ className
30
+ ),
31
+ ...props
32
+ }
33
+ );
34
+ }
35
+ function DrawerContent({
36
+ className,
37
+ children,
38
+ ...props
39
+ }) {
40
+ return /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [
41
+ /* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
42
+ /* @__PURE__ */ jsxRuntime.jsxs(
43
+ vaul.Drawer.Content,
44
+ {
45
+ "data-slot": "drawer-content",
46
+ className: chunkXXWQ4RVP_js.cn(
47
+ "group/drawer-content bg-bg-primary liquid:liquid-bg p-xl fixed z-50 flex h-auto flex-col shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
48
+ "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh]",
49
+ "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:pt-0",
50
+ "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-[340px]",
51
+ "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-[340px]",
52
+ className
53
+ ),
54
+ ...props,
55
+ children: [
56
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-bg-quaternary rounded-uk-md mx-auto mt-[8px] hidden h-[4px] w-[80px] shrink-0 group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
57
+ children
58
+ ]
59
+ }
60
+ )
61
+ ] });
62
+ }
63
+ function DrawerHeader({ className, ...props }) {
64
+ return /* @__PURE__ */ jsxRuntime.jsx(
65
+ "div",
66
+ {
67
+ "data-slot": "drawer-header",
68
+ className: chunkXXWQ4RVP_js.cn("gap-md pb-xl flex flex-col", className),
69
+ ...props
70
+ }
71
+ );
72
+ }
73
+ function DrawerFooter({ className, ...props }) {
74
+ return /* @__PURE__ */ jsxRuntime.jsx(
75
+ "div",
76
+ {
77
+ "data-slot": "drawer-footer",
78
+ className: chunkXXWQ4RVP_js.cn("gap-lg pt-xl mt-auto flex flex-col", className),
79
+ ...props
80
+ }
81
+ );
82
+ }
83
+ function DrawerTitle({ className, ...props }) {
84
+ return /* @__PURE__ */ jsxRuntime.jsx(
85
+ vaul.Drawer.Title,
86
+ {
87
+ "data-slot": "drawer-title",
88
+ className: chunkXXWQ4RVP_js.cn("text-text-highlight text-uk-xl leading-uk-xl font-medium", className),
89
+ ...props
90
+ }
91
+ );
92
+ }
93
+ function DrawerDescription({
94
+ className,
95
+ ...props
96
+ }) {
97
+ return /* @__PURE__ */ jsxRuntime.jsx(
98
+ vaul.Drawer.Description,
99
+ {
100
+ "data-slot": "drawer-description",
101
+ className: chunkXXWQ4RVP_js.cn("text-text-secondary text-uk-md leading-uk-md", className),
102
+ ...props
103
+ }
104
+ );
105
+ }
106
+
107
+ exports.Drawer = Drawer;
108
+ exports.DrawerClose = DrawerClose;
109
+ exports.DrawerContent = DrawerContent;
110
+ exports.DrawerDescription = DrawerDescription;
111
+ exports.DrawerFooter = DrawerFooter;
112
+ exports.DrawerHeader = DrawerHeader;
113
+ exports.DrawerOverlay = DrawerOverlay;
114
+ exports.DrawerPortal = DrawerPortal;
115
+ exports.DrawerTitle = DrawerTitle;
116
+ exports.DrawerTrigger = DrawerTrigger;