@mijn-ui/react-select 0.3.0 → 0.4.0

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 CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  // src/select.tsx
4
4
  import {
5
+ cn,
5
6
  createContext,
6
7
  useTVUnstyled
7
8
  } from "@mijn-ui/react-core";
@@ -11,7 +12,7 @@ import {
11
12
  ChevronUpIcon
12
13
  } from "@mijn-ui/shared-icons";
13
14
  import * as SelectPrimitive from "@radix-ui/react-select";
14
- import { cnBase, tv } from "tailwind-variants";
15
+ import { tv } from "tailwind-variants";
15
16
  import { jsx, jsxs } from "react/jsx-runtime";
16
17
  var selectStyles = tv({
17
18
  slots: {
@@ -89,7 +90,7 @@ var SelectTrigger = ({
89
90
  SelectPrimitive.Trigger,
90
91
  {
91
92
  className: trigger({
92
- className: cnBase(classNames?.trigger, className)
93
+ className: cn(classNames?.trigger, className)
93
94
  }),
94
95
  ...props,
95
96
  children: [
@@ -109,7 +110,7 @@ var SelectScrollUpButton = ({
109
110
  SelectPrimitive.ScrollUpButton,
110
111
  {
111
112
  className: scrollUpBtn({
112
- className: cnBase(classNames?.scrollUpBtn, className)
113
+ className: cn(classNames?.scrollUpBtn, className)
113
114
  }),
114
115
  ...props,
115
116
  children: /* @__PURE__ */ jsx(ChevronUpIcon, {})
@@ -126,7 +127,7 @@ var SelectScrollDownButton = ({
126
127
  SelectPrimitive.ScrollDownButton,
127
128
  {
128
129
  className: scrollDownBtn({
129
- className: cnBase(classNames?.scrollDownBtn, className)
130
+ className: cn(classNames?.scrollDownBtn, className)
130
131
  }),
131
132
  ...props,
132
133
  children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" })
@@ -145,7 +146,7 @@ var SelectContent = ({
145
146
  SelectPrimitive.Content,
146
147
  {
147
148
  className: content({
148
- className: cnBase(classNames?.content, className),
149
+ className: cn(classNames?.content, className),
149
150
  position
150
151
  }),
151
152
  position,
@@ -173,7 +174,7 @@ var SelectLabel = ({ unstyled, className, ...props }) => {
173
174
  SelectPrimitive.Label,
174
175
  {
175
176
  className: label({
176
- className: cnBase(classNames?.label, className)
177
+ className: cn(classNames?.label, className)
177
178
  }),
178
179
  ...props
179
180
  }
@@ -190,7 +191,7 @@ var SelectItem = ({
190
191
  SelectPrimitive.Item,
191
192
  {
192
193
  className: item({
193
- className: cnBase(classNames?.item, className)
194
+ className: cn(classNames?.item, className)
194
195
  }),
195
196
  ...props,
196
197
  children: [
@@ -218,7 +219,7 @@ var SelectSeparator = ({
218
219
  SelectPrimitive.Separator,
219
220
  {
220
221
  className: separator({
221
- className: cnBase(classNames?.separator, className)
222
+ className: cn(classNames?.separator, className)
222
223
  }),
223
224
  ...props
224
225
  }
@@ -1 +1 @@
1
- {"inputs":{"src/select.tsx":{"bytes":10786,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@mijn-ui/react-core","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"@radix-ui/react-select","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":25,"imports":[{"path":"src/select.tsx","kind":"import-statement","original":"./select"}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"@mijn-ui/react-core","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"@radix-ui/react-select","kind":"import-statement","external":true},{"path":"tailwind-variants","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","selectStyles","useSelectStyles"],"entryPoint":"src/index.ts","inputs":{"src/select.tsx":{"bytesInOutput":6843},"src/index.ts":{"bytesInOutput":0}},"bytes":7094}}}
1
+ {"inputs":{"src/select.tsx":{"bytes":10756,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@mijn-ui/react-core","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"@radix-ui/react-select","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":25,"imports":[{"path":"src/select.tsx","kind":"import-statement","original":"./select"}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"@mijn-ui/react-core","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"@radix-ui/react-select","kind":"import-statement","external":true},{"path":"tailwind-variants","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","selectStyles","useSelectStyles"],"entryPoint":"src/index.ts","inputs":{"src/select.tsx":{"bytesInOutput":6813},"src/index.ts":{"bytesInOutput":0}},"bytes":7064}}}
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.3.0",
4
+ "version": "0.4.0",
5
5
  "homepage": "https://mijn-ui.vercel.app",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -25,7 +25,7 @@
25
25
  "@next/eslint-plugin-next": "^15.0.3",
26
26
  "@types/react": "^19.0.0",
27
27
  "@types/react-dom": "^19.0.0",
28
- "@mijn-ui/react-core": "0.3.0",
28
+ "@mijn-ui/react-core": "0.4.0",
29
29
  "eslint-config-custom": "0.0.1",
30
30
  "tsconfig": "0.0.0",
31
31
  "tsup-config": "0.0.0"
@@ -37,7 +37,7 @@
37
37
  "peerDependencies": {
38
38
  "react": "^19.0",
39
39
  "react-dom": "^19.0",
40
- "@mijn-ui/react-core": "^0.3.0",
40
+ "@mijn-ui/react-core": "^0.4.0",
41
41
  "tailwind-merge": "^3.0.0",
42
42
  "tailwind-variants": "^3.0.0"
43
43
  },