@mijn-ui/react-command 0.3.0 → 0.4.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.
- package/dist/index.js +12 -11
- package/dist/metafile-esm.json +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
// src/command.tsx
|
|
4
4
|
import {
|
|
5
|
+
cn,
|
|
5
6
|
createContext,
|
|
6
7
|
createTVUnstyledSlots,
|
|
7
8
|
useTVUnstyled
|
|
8
9
|
} from "@mijn-ui/react-core";
|
|
9
10
|
import { Dialog, DialogContent } from "@mijn-ui/react-dialog";
|
|
10
11
|
import { Command as CommandPrimitive } from "cmdk";
|
|
11
|
-
import {
|
|
12
|
+
import { tv } from "tailwind-variants";
|
|
12
13
|
import { jsx } from "react/jsx-runtime";
|
|
13
14
|
var commandStyles = tv({
|
|
14
15
|
slots: {
|
|
@@ -45,7 +46,7 @@ var Command = ({
|
|
|
45
46
|
return /* @__PURE__ */ jsx(CommandProvider, { value: { unstyled, styles, classNames }, children: /* @__PURE__ */ jsx(
|
|
46
47
|
CommandPrimitive,
|
|
47
48
|
{
|
|
48
|
-
className: base({ className:
|
|
49
|
+
className: base({ className: cn(classNames?.base, className) }),
|
|
49
50
|
...props
|
|
50
51
|
}
|
|
51
52
|
) });
|
|
@@ -69,13 +70,13 @@ var CommandDialog = ({
|
|
|
69
70
|
DialogContent,
|
|
70
71
|
{
|
|
71
72
|
className: dialogWrapper({
|
|
72
|
-
className:
|
|
73
|
+
className: cn(classNames?.dialogWrapper)
|
|
73
74
|
}),
|
|
74
75
|
children: /* @__PURE__ */ jsx(
|
|
75
76
|
Command,
|
|
76
77
|
{
|
|
77
78
|
className: dialog({
|
|
78
|
-
className:
|
|
79
|
+
className: cn(classNames?.dialog, className)
|
|
79
80
|
}),
|
|
80
81
|
children
|
|
81
82
|
}
|
|
@@ -89,7 +90,7 @@ var CommandInput = ({ className, unstyled, ...props }) => {
|
|
|
89
90
|
CommandPrimitive.Input,
|
|
90
91
|
{
|
|
91
92
|
className: input({
|
|
92
|
-
className:
|
|
93
|
+
className: cn(classNames?.input, className)
|
|
93
94
|
}),
|
|
94
95
|
...props
|
|
95
96
|
}
|
|
@@ -101,7 +102,7 @@ var CommandList = ({ className, unstyled, ...props }) => {
|
|
|
101
102
|
CommandPrimitive.List,
|
|
102
103
|
{
|
|
103
104
|
className: list({
|
|
104
|
-
className:
|
|
105
|
+
className: cn(classNames?.list, className)
|
|
105
106
|
}),
|
|
106
107
|
...props
|
|
107
108
|
}
|
|
@@ -113,7 +114,7 @@ var CommandEmpty = ({ unstyled, className, ...props }) => {
|
|
|
113
114
|
CommandPrimitive.Empty,
|
|
114
115
|
{
|
|
115
116
|
className: empty({
|
|
116
|
-
className:
|
|
117
|
+
className: cn(classNames?.empty, className)
|
|
117
118
|
}),
|
|
118
119
|
...props
|
|
119
120
|
}
|
|
@@ -125,7 +126,7 @@ var CommandGroup = ({ className, unstyled, ...props }) => {
|
|
|
125
126
|
CommandPrimitive.Group,
|
|
126
127
|
{
|
|
127
128
|
className: group({
|
|
128
|
-
className:
|
|
129
|
+
className: cn(classNames?.group, className)
|
|
129
130
|
}),
|
|
130
131
|
...props
|
|
131
132
|
}
|
|
@@ -141,7 +142,7 @@ var CommandSeparator = ({
|
|
|
141
142
|
CommandPrimitive.Separator,
|
|
142
143
|
{
|
|
143
144
|
className: separator({
|
|
144
|
-
className:
|
|
145
|
+
className: cn(classNames?.separator, className)
|
|
145
146
|
}),
|
|
146
147
|
...props
|
|
147
148
|
}
|
|
@@ -153,7 +154,7 @@ var CommandItem = ({ className, unstyled, ...props }) => {
|
|
|
153
154
|
CommandPrimitive.Item,
|
|
154
155
|
{
|
|
155
156
|
className: item({
|
|
156
|
-
className:
|
|
157
|
+
className: cn(classNames?.item, className)
|
|
157
158
|
}),
|
|
158
159
|
...props
|
|
159
160
|
}
|
|
@@ -169,7 +170,7 @@ var CommandShortcut = ({
|
|
|
169
170
|
"span",
|
|
170
171
|
{
|
|
171
172
|
className: shortcut({
|
|
172
|
-
className:
|
|
173
|
+
className: cn(classNames?.shortcut, className)
|
|
173
174
|
}),
|
|
174
175
|
...props
|
|
175
176
|
}
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/command.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"src/command.tsx":{"bytes":9637,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@mijn-ui/react-core","kind":"import-statement","external":true},{"path":"@mijn-ui/react-dialog","kind":"import-statement","external":true},{"path":"cmdk","kind":"import-statement","external":true},{"path":"tailwind-variants","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":26,"imports":[{"path":"src/command.tsx","kind":"import-statement","original":"./command"}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"@mijn-ui/react-core","kind":"import-statement","external":true},{"path":"@mijn-ui/react-dialog","kind":"import-statement","external":true},{"path":"cmdk","kind":"import-statement","external":true},{"path":"tailwind-variants","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Command","CommandDialog","CommandEmpty","CommandGroup","CommandInput","CommandItem","CommandList","CommandSeparator","CommandShortcut","commandStyles","useCommandStyles"],"entryPoint":"src/index.ts","inputs":{"src/command.tsx":{"bytesInOutput":5297},"src/index.ts":{"bytesInOutput":0}},"bytes":5524}}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mijn-ui/react-command",
|
|
3
3
|
"author": "Htet Aung Lin<htetaunglin.coder@gmail.com>",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"homepage": "https://mijn-ui.vercel.app",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
"lucide-react": "^0.479.0",
|
|
27
27
|
"react": "19.0.0",
|
|
28
28
|
"react-dom": "19.0.0",
|
|
29
|
-
"@mijn-ui/react-core": "0.
|
|
30
|
-
"@mijn-ui/react-input": "0.
|
|
29
|
+
"@mijn-ui/react-core": "0.5.0",
|
|
30
|
+
"@mijn-ui/react-input": "0.4.1",
|
|
31
31
|
"eslint-config-custom": "0.0.1",
|
|
32
32
|
"tsconfig": "0.0.0",
|
|
33
33
|
"tsup-config": "0.0.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"cmdk": "^1.0.4",
|
|
37
|
-
"@mijn-ui/react-dialog": "0.
|
|
37
|
+
"@mijn-ui/react-dialog": "0.4.1",
|
|
38
38
|
"@mijn-ui/shared-icons": "0.1.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@mijn-ui/react-core": "^0.
|
|
41
|
+
"@mijn-ui/react-core": "^0.5.0",
|
|
42
42
|
"tailwind-merge": "^3.0.0",
|
|
43
43
|
"tailwind-variants": "^3.0.0",
|
|
44
44
|
"react": "^19.0",
|