@mijn-ui/react-select 0.0.4 → 0.0.6
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 +11 -7
- package/dist/metafile-esm.json +1 -1
- package/package.json +8 -7
package/dist/index.js
CHANGED
|
@@ -7,7 +7,11 @@ import {
|
|
|
7
7
|
cn
|
|
8
8
|
} from "@mijn-ui/react-utilities/shared";
|
|
9
9
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
CheckIcon,
|
|
12
|
+
ChevronDownIcon,
|
|
13
|
+
ChevronUpIcon
|
|
14
|
+
} from "@mijn-ui/shared-icons";
|
|
11
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
16
|
var SelectGroup = SelectPrimitive.Group;
|
|
13
17
|
var SelectValue = SelectPrimitive.Value;
|
|
@@ -27,13 +31,13 @@ var SelectTrigger = ({
|
|
|
27
31
|
{
|
|
28
32
|
className: applyUnstyled(
|
|
29
33
|
isUnstyled,
|
|
30
|
-
"flex h-10 w-full items-center justify-between rounded-md border border-main-border bg-surface px-3 py-2 text-sm placeholder:text-
|
|
34
|
+
"flex h-10 w-full items-center justify-between rounded-md border border-main-border bg-surface px-3 py-2 text-sm placeholder:text-muted-text focus:border-input-border focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 hover:bg-accent",
|
|
31
35
|
className
|
|
32
36
|
),
|
|
33
37
|
...props,
|
|
34
38
|
children: [
|
|
35
39
|
children,
|
|
36
|
-
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
40
|
+
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4 opacity-50" }) })
|
|
37
41
|
]
|
|
38
42
|
}
|
|
39
43
|
);
|
|
@@ -54,7 +58,7 @@ var SelectScrollUpButton = ({
|
|
|
54
58
|
className
|
|
55
59
|
),
|
|
56
60
|
...props,
|
|
57
|
-
children: /* @__PURE__ */ jsx(
|
|
61
|
+
children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-4" })
|
|
58
62
|
}
|
|
59
63
|
);
|
|
60
64
|
};
|
|
@@ -74,7 +78,7 @@ var SelectScrollDownButton = ({
|
|
|
74
78
|
className
|
|
75
79
|
),
|
|
76
80
|
...props,
|
|
77
|
-
children: /* @__PURE__ */ jsx(
|
|
81
|
+
children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" })
|
|
78
82
|
}
|
|
79
83
|
);
|
|
80
84
|
};
|
|
@@ -158,7 +162,7 @@ var SelectItem = ({
|
|
|
158
162
|
isUnstyled,
|
|
159
163
|
"absolute right-2 flex h-3.5 w-3.5 items-center justify-center"
|
|
160
164
|
),
|
|
161
|
-
children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(
|
|
165
|
+
children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) })
|
|
162
166
|
}
|
|
163
167
|
)
|
|
164
168
|
]
|
|
@@ -177,7 +181,7 @@ var SelectSeparator = ({
|
|
|
177
181
|
{
|
|
178
182
|
className: applyUnstyled(
|
|
179
183
|
isUnstyled,
|
|
180
|
-
"-mx-1 my-1 h-px bg-
|
|
184
|
+
"-mx-1 my-1 h-px bg-muted",
|
|
181
185
|
className
|
|
182
186
|
),
|
|
183
187
|
...props
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/select.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"src/select.tsx":{"bytes":8941,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@mijn-ui/react-utilities/context","kind":"import-statement","external":true},{"path":"@mijn-ui/react-utilities/shared","kind":"import-statement","external":true},{"path":"@radix-ui/react-select","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":25,"imports":[{"path":"src/select.tsx","kind":"import-statement","original":"./select"}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"@mijn-ui/react-utilities/context","kind":"import-statement","external":true},{"path":"@mijn-ui/react-utilities/shared","kind":"import-statement","external":true},{"path":"@radix-ui/react-select","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Select","SelectContent","SelectGroup","SelectItem","SelectLabel","SelectScrollDownButton","SelectScrollUpButton","SelectSeparator","SelectTrigger","SelectValue"],"entryPoint":"src/index.ts","inputs":{"src/select.tsx":{"bytesInOutput":5963},"src/index.ts":{"bytesInOutput":0}},"bytes":6164}}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mijn-ui/react-select",
|
|
3
3
|
"author": "Htet Aung Lin<htetaunglin.coder@gmail.com>",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6",
|
|
5
5
|
"homepage": "https://mijn-ui.vercel.app",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
14
|
"url": "git+https://github.com/mijn-ui/mijn-ui-react.git",
|
|
15
|
-
"directory": "packages/components/
|
|
15
|
+
"directory": "packages/components/select"
|
|
16
16
|
},
|
|
17
17
|
"bugs": {
|
|
18
18
|
"url": "https://github.com/mijn-ui/mijn-ui-react/issues"
|
|
@@ -24,18 +24,19 @@
|
|
|
24
24
|
"@types/react": "^18.3.12",
|
|
25
25
|
"@types/react-dom": "^18.3.1",
|
|
26
26
|
"eslint-config-custom": "0.0.1",
|
|
27
|
-
"tsconfig": "0.0.0"
|
|
27
|
+
"tsconfig": "0.0.0",
|
|
28
|
+
"tsup-config": "0.0.0"
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
30
31
|
"react": "19.0.0-rc-b01722d5-20241114",
|
|
31
32
|
"react-dom": "19.0.0-rc-b01722d5-20241114",
|
|
32
|
-
"react-icons": "^5.3.0",
|
|
33
33
|
"@radix-ui/react-select": "^2.1.2",
|
|
34
|
-
"@mijn-ui/react-utilities": "0.0.
|
|
34
|
+
"@mijn-ui/react-utilities": "0.0.5",
|
|
35
|
+
"@mijn-ui/shared-icons": "0.0.1"
|
|
35
36
|
},
|
|
36
37
|
"peerDependencies": {
|
|
37
|
-
"react": "19.0
|
|
38
|
-
"react-dom": "19.0
|
|
38
|
+
"react": "^19.0",
|
|
39
|
+
"react-dom": "^19.0"
|
|
39
40
|
},
|
|
40
41
|
"publishConfig": {
|
|
41
42
|
"access": "public"
|