@nurimedia/react-ui 0.1.1 → 0.1.2
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/AlertDialog/index.cjs +4 -181
- package/dist/AlertDialog/index.cjs.map +1 -1
- package/dist/AlertDialog/index.js +4 -145
- package/dist/AlertDialog/index.js.map +1 -1
- package/dist/Button/index.cjs +4 -132
- package/dist/Button/index.cjs.map +1 -1
- package/dist/Button/index.js +4 -106
- package/dist/Button/index.js.map +1 -1
- package/dist/Checkbox/index.cjs +4 -79
- package/dist/Checkbox/index.cjs.map +1 -1
- package/dist/Checkbox/index.js +4 -43
- package/dist/Checkbox/index.js.map +1 -1
- package/dist/Input/index.cjs +4 -99
- package/dist/Input/index.cjs.map +1 -1
- package/dist/Input/index.js +4 -73
- package/dist/Input/index.js.map +1 -1
- package/dist/Modal/index.cjs +4 -116
- package/dist/Modal/index.cjs.map +1 -1
- package/dist/Modal/index.js +4 -80
- package/dist/Modal/index.js.map +1 -1
- package/dist/Radio/index.cjs +6 -82
- package/dist/Radio/index.cjs.map +1 -1
- package/dist/Radio/index.js +5 -44
- package/dist/Radio/index.js.map +1 -1
- package/dist/Select/index.cjs +4 -112
- package/dist/Select/index.cjs.map +1 -1
- package/dist/Select/index.js +4 -76
- package/dist/Select/index.js.map +1 -1
- package/dist/Switch/index.cjs +4 -67
- package/dist/Switch/index.cjs.map +1 -1
- package/dist/Switch/index.js +4 -31
- package/dist/Switch/index.js.map +1 -1
- package/dist/Textarea/index.cjs +4 -123
- package/dist/Textarea/index.cjs.map +1 -1
- package/dist/Textarea/index.js +4 -97
- package/dist/Textarea/index.js.map +1 -1
- package/dist/Toast/index.cjs +4 -178
- package/dist/Toast/index.cjs.map +1 -1
- package/dist/Toast/index.js +5 -142
- package/dist/Toast/index.js.map +1 -1
- package/dist/Tooltip/index.cjs +6 -101
- package/dist/Tooltip/index.cjs.map +1 -1
- package/dist/Tooltip/index.js +5 -63
- package/dist/Tooltip/index.js.map +1 -1
- package/dist/chunk-2LFW4MM6.cjs +47 -0
- package/dist/chunk-2LFW4MM6.cjs.map +1 -0
- package/dist/chunk-2WKLA5RC.cjs +82 -0
- package/dist/chunk-2WKLA5RC.cjs.map +1 -0
- package/dist/chunk-2YGYLCCA.js +66 -0
- package/dist/chunk-2YGYLCCA.js.map +1 -0
- package/dist/chunk-323VGYMK.cjs +147 -0
- package/dist/chunk-323VGYMK.cjs.map +1 -0
- package/dist/chunk-3H47QMKS.js +47 -0
- package/dist/chunk-3H47QMKS.js.map +1 -0
- package/dist/chunk-3QSLHLC2.cjs +45 -0
- package/dist/chunk-3QSLHLC2.cjs.map +1 -0
- package/dist/chunk-4N5JIGIU.js +82 -0
- package/dist/chunk-4N5JIGIU.js.map +1 -0
- package/dist/chunk-DTGPVOJK.js +99 -0
- package/dist/chunk-DTGPVOJK.js.map +1 -0
- package/dist/chunk-DTQE42F7.js +33 -0
- package/dist/chunk-DTQE42F7.js.map +1 -0
- package/dist/chunk-DYO4PIBB.js +75 -0
- package/dist/chunk-DYO4PIBB.js.map +1 -0
- package/dist/chunk-GBMYANHH.js +149 -0
- package/dist/chunk-GBMYANHH.js.map +1 -0
- package/dist/chunk-I7KJ7WTN.cjs +149 -0
- package/dist/chunk-I7KJ7WTN.cjs.map +1 -0
- package/dist/chunk-JM4HDCLU.cjs +110 -0
- package/dist/chunk-JM4HDCLU.cjs.map +1 -0
- package/dist/chunk-JXJ6G634.cjs +75 -0
- package/dist/chunk-JXJ6G634.cjs.map +1 -0
- package/dist/chunk-LAPTEQ5N.js +45 -0
- package/dist/chunk-LAPTEQ5N.js.map +1 -0
- package/dist/chunk-LRATCHCB.cjs +66 -0
- package/dist/chunk-LRATCHCB.cjs.map +1 -0
- package/dist/chunk-OM4QMC4F.js +110 -0
- package/dist/chunk-OM4QMC4F.js.map +1 -0
- package/dist/chunk-PAXRFQUJ.cjs +33 -0
- package/dist/chunk-PAXRFQUJ.cjs.map +1 -0
- package/dist/chunk-PC3B67B4.cjs +78 -0
- package/dist/chunk-PC3B67B4.cjs.map +1 -0
- package/dist/chunk-PS6QXS5Z.js +11 -0
- package/dist/chunk-PS6QXS5Z.js.map +1 -0
- package/dist/chunk-Q26BJSLP.cjs +99 -0
- package/dist/chunk-Q26BJSLP.cjs.map +1 -0
- package/dist/chunk-R4E4BIPC.cjs +11 -0
- package/dist/chunk-R4E4BIPC.cjs.map +1 -0
- package/dist/chunk-R757N7RU.js +78 -0
- package/dist/chunk-R757N7RU.js.map +1 -0
- package/dist/chunk-RC773ZEY.js +147 -0
- package/dist/chunk-RC773ZEY.js.map +1 -0
- package/dist/index.cjs +54 -900
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +37 -834
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/Modal/index.cjs
CHANGED
|
@@ -1,121 +1,9 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
"use strict";
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});'use client';
|
|
30
2
|
|
|
31
|
-
// src/Modal/index.ts
|
|
32
|
-
var Modal_exports = {};
|
|
33
|
-
__export(Modal_exports, {
|
|
34
|
-
Modal: () => Modal
|
|
35
|
-
});
|
|
36
|
-
module.exports = __toCommonJS(Modal_exports);
|
|
37
3
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
var Dialog = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
41
|
-
var import_react = require("react");
|
|
4
|
+
var _chunk2WKLA5RCcjs = require('../chunk-2WKLA5RC.cjs');
|
|
5
|
+
require('../chunk-R4E4BIPC.cjs');
|
|
42
6
|
|
|
43
|
-
// src/utils/cx.ts
|
|
44
|
-
function cx(...classes) {
|
|
45
|
-
return classes.filter(Boolean).join(" ");
|
|
46
|
-
}
|
|
47
7
|
|
|
48
|
-
|
|
49
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
|
-
var Root2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Dialog.Root, { ...props });
|
|
51
|
-
Root2.displayName = "Modal";
|
|
52
|
-
var Trigger2 = Dialog.Trigger;
|
|
53
|
-
var Content2 = (0, import_react.forwardRef)(
|
|
54
|
-
function ModalContent({ placement = "center", size = "md", overlay = true, container, className, children, ...rest }, ref) {
|
|
55
|
-
const classes = cx("nuri-modal", `nuri-modal--${placement}`, `nuri-modal--${size}`, className);
|
|
56
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Dialog.Portal, { container, children: [
|
|
57
|
-
overlay && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Dialog.Overlay, { className: "nuri-modal__overlay" }),
|
|
58
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Dialog.Content, { ref, className: classes, ...rest, children })
|
|
59
|
-
] });
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
var Header = (0, import_react.forwardRef)(function ModalHeader({ className, ...rest }, ref) {
|
|
63
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref, className: cx("nuri-modal__header", className), ...rest });
|
|
64
|
-
});
|
|
65
|
-
var Title2 = (0, import_react.forwardRef)(function ModalTitle({ visuallyHidden = false, className, ...rest }, ref) {
|
|
66
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
67
|
-
Dialog.Title,
|
|
68
|
-
{
|
|
69
|
-
ref,
|
|
70
|
-
className: cx("nuri-modal__title", visuallyHidden && "nuri-sr-only", className),
|
|
71
|
-
...rest
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
});
|
|
75
|
-
var Description2 = (0, import_react.forwardRef)(function ModalDescription({ className, ...rest }, ref) {
|
|
76
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Dialog.Description, { ref, className: cx("nuri-modal__description", className), ...rest });
|
|
77
|
-
});
|
|
78
|
-
var Body = (0, import_react.forwardRef)(function ModalBody({ className, ...rest }, ref) {
|
|
79
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref, className: cx("nuri-modal__body", className), ...rest });
|
|
80
|
-
});
|
|
81
|
-
var Footer = (0, import_react.forwardRef)(function ModalFooter({ align = "end", className, ...rest }, ref) {
|
|
82
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
83
|
-
"div",
|
|
84
|
-
{
|
|
85
|
-
ref,
|
|
86
|
-
className: cx("nuri-modal__footer", `nuri-modal__footer--${align}`, className),
|
|
87
|
-
...rest
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
});
|
|
91
|
-
var Close2 = Dialog.Close;
|
|
92
|
-
var CloseIcon = () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M5 5l10 10M15 5L5 15", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) });
|
|
93
|
-
var CloseButton = (0, import_react.forwardRef)(function ModalCloseButton({ className, "aria-label": ariaLabel = "\uB2EB\uAE30", children, ...rest }, ref) {
|
|
94
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
95
|
-
"button",
|
|
96
|
-
{
|
|
97
|
-
ref,
|
|
98
|
-
type: "button",
|
|
99
|
-
"aria-label": ariaLabel,
|
|
100
|
-
className: cx("nuri-modal__close", className),
|
|
101
|
-
...rest,
|
|
102
|
-
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CloseIcon, {})
|
|
103
|
-
}
|
|
104
|
-
) });
|
|
105
|
-
});
|
|
106
|
-
var Modal = Object.assign(Root2, {
|
|
107
|
-
Trigger: Trigger2,
|
|
108
|
-
Content: Content2,
|
|
109
|
-
Header,
|
|
110
|
-
Title: Title2,
|
|
111
|
-
Description: Description2,
|
|
112
|
-
Body,
|
|
113
|
-
Footer,
|
|
114
|
-
Close: Close2,
|
|
115
|
-
CloseButton
|
|
116
|
-
});
|
|
117
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
118
|
-
0 && (module.exports = {
|
|
119
|
-
Modal
|
|
120
|
-
});
|
|
8
|
+
exports.Modal = _chunk2WKLA5RCcjs.Modal;
|
|
121
9
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Modal/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["/Users/summerhoony/Desktop/projects/nuri-ui/dist/Modal/index.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACF,wCAAC","file":"/Users/summerhoony/Desktop/projects/nuri-ui/dist/Modal/index.cjs"}
|
package/dist/Modal/index.js
CHANGED
|
@@ -1,84 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import { forwardRef } from "react";
|
|
7
|
-
|
|
8
|
-
// src/utils/cx.ts
|
|
9
|
-
function cx(...classes) {
|
|
10
|
-
return classes.filter(Boolean).join(" ");
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// src/Modal/Modal.tsx
|
|
14
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
var Root2 = (props) => /* @__PURE__ */ jsx(Dialog.Root, { ...props });
|
|
16
|
-
Root2.displayName = "Modal";
|
|
17
|
-
var Trigger2 = Dialog.Trigger;
|
|
18
|
-
var Content2 = forwardRef(
|
|
19
|
-
function ModalContent({ placement = "center", size = "md", overlay = true, container, className, children, ...rest }, ref) {
|
|
20
|
-
const classes = cx("nuri-modal", `nuri-modal--${placement}`, `nuri-modal--${size}`, className);
|
|
21
|
-
return /* @__PURE__ */ jsxs(Dialog.Portal, { container, children: [
|
|
22
|
-
overlay && /* @__PURE__ */ jsx(Dialog.Overlay, { className: "nuri-modal__overlay" }),
|
|
23
|
-
/* @__PURE__ */ jsx(Dialog.Content, { ref, className: classes, ...rest, children })
|
|
24
|
-
] });
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
var Header = forwardRef(function ModalHeader({ className, ...rest }, ref) {
|
|
28
|
-
return /* @__PURE__ */ jsx("div", { ref, className: cx("nuri-modal__header", className), ...rest });
|
|
29
|
-
});
|
|
30
|
-
var Title2 = forwardRef(function ModalTitle({ visuallyHidden = false, className, ...rest }, ref) {
|
|
31
|
-
return /* @__PURE__ */ jsx(
|
|
32
|
-
Dialog.Title,
|
|
33
|
-
{
|
|
34
|
-
ref,
|
|
35
|
-
className: cx("nuri-modal__title", visuallyHidden && "nuri-sr-only", className),
|
|
36
|
-
...rest
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
});
|
|
40
|
-
var Description2 = forwardRef(function ModalDescription({ className, ...rest }, ref) {
|
|
41
|
-
return /* @__PURE__ */ jsx(Dialog.Description, { ref, className: cx("nuri-modal__description", className), ...rest });
|
|
42
|
-
});
|
|
43
|
-
var Body = forwardRef(function ModalBody({ className, ...rest }, ref) {
|
|
44
|
-
return /* @__PURE__ */ jsx("div", { ref, className: cx("nuri-modal__body", className), ...rest });
|
|
45
|
-
});
|
|
46
|
-
var Footer = forwardRef(function ModalFooter({ align = "end", className, ...rest }, ref) {
|
|
47
|
-
return /* @__PURE__ */ jsx(
|
|
48
|
-
"div",
|
|
49
|
-
{
|
|
50
|
-
ref,
|
|
51
|
-
className: cx("nuri-modal__footer", `nuri-modal__footer--${align}`, className),
|
|
52
|
-
...rest
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
});
|
|
56
|
-
var Close2 = Dialog.Close;
|
|
57
|
-
var CloseIcon = () => /* @__PURE__ */ jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M5 5l10 10M15 5L5 15", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) });
|
|
58
|
-
var CloseButton = forwardRef(function ModalCloseButton({ className, "aria-label": ariaLabel = "\uB2EB\uAE30", children, ...rest }, ref) {
|
|
59
|
-
return /* @__PURE__ */ jsx(Dialog.Close, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
60
|
-
"button",
|
|
61
|
-
{
|
|
62
|
-
ref,
|
|
63
|
-
type: "button",
|
|
64
|
-
"aria-label": ariaLabel,
|
|
65
|
-
className: cx("nuri-modal__close", className),
|
|
66
|
-
...rest,
|
|
67
|
-
children: children ?? /* @__PURE__ */ jsx(CloseIcon, {})
|
|
68
|
-
}
|
|
69
|
-
) });
|
|
70
|
-
});
|
|
71
|
-
var Modal = Object.assign(Root2, {
|
|
72
|
-
Trigger: Trigger2,
|
|
73
|
-
Content: Content2,
|
|
74
|
-
Header,
|
|
75
|
-
Title: Title2,
|
|
76
|
-
Description: Description2,
|
|
77
|
-
Body,
|
|
78
|
-
Footer,
|
|
79
|
-
Close: Close2,
|
|
80
|
-
CloseButton
|
|
81
|
-
});
|
|
2
|
+
import {
|
|
3
|
+
Modal
|
|
4
|
+
} from "../chunk-4N5JIGIU.js";
|
|
5
|
+
import "../chunk-PS6QXS5Z.js";
|
|
82
6
|
export {
|
|
83
7
|
Modal
|
|
84
8
|
};
|
package/dist/Modal/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/Radio/index.cjs
CHANGED
|
@@ -1,87 +1,11 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
"use strict";
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});'use client';
|
|
30
2
|
|
|
31
|
-
// src/Radio/index.ts
|
|
32
|
-
var Radio_exports = {};
|
|
33
|
-
__export(Radio_exports, {
|
|
34
|
-
Radio: () => Radio,
|
|
35
|
-
RadioGroup: () => RadioGroup
|
|
36
|
-
});
|
|
37
|
-
module.exports = __toCommonJS(Radio_exports);
|
|
38
3
|
|
|
39
|
-
// src/Radio/Radio.tsx
|
|
40
|
-
var import_styles = require("./styles.css");
|
|
41
|
-
var RadixRadioGroup = __toESM(require("@radix-ui/react-radio-group"), 1);
|
|
42
|
-
var import_react = require("react");
|
|
43
4
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
return classes.filter(Boolean).join(" ");
|
|
47
|
-
}
|
|
5
|
+
var _chunk2LFW4MM6cjs = require('../chunk-2LFW4MM6.cjs');
|
|
6
|
+
require('../chunk-R4E4BIPC.cjs');
|
|
48
7
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
53
|
-
RadixRadioGroup.Root,
|
|
54
|
-
{
|
|
55
|
-
ref,
|
|
56
|
-
orientation,
|
|
57
|
-
className: cx("nuri-radio-group", `nuri-radio-group--${orientation}`, className),
|
|
58
|
-
...rest,
|
|
59
|
-
children
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
});
|
|
63
|
-
var Radio = (0, import_react.forwardRef)(function Radio2({ value, label, disabled = false, id: idProp, className, ...rest }, ref) {
|
|
64
|
-
const reactId = (0, import_react.useId)();
|
|
65
|
-
const id = idProp ?? `nuri-radio-${reactId}`;
|
|
66
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: cx("nuri-radio", className), children: [
|
|
67
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
68
|
-
RadixRadioGroup.Item,
|
|
69
|
-
{
|
|
70
|
-
ref,
|
|
71
|
-
id,
|
|
72
|
-
value,
|
|
73
|
-
disabled,
|
|
74
|
-
className: "nuri-radio__control",
|
|
75
|
-
...rest,
|
|
76
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RadixRadioGroup.Indicator, { className: "nuri-radio__indicator" })
|
|
77
|
-
}
|
|
78
|
-
),
|
|
79
|
-
label != null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", { htmlFor: id, className: "nuri-radio__label", children: label })
|
|
80
|
-
] });
|
|
81
|
-
});
|
|
82
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
83
|
-
0 && (module.exports = {
|
|
84
|
-
Radio,
|
|
85
|
-
RadioGroup
|
|
86
|
-
});
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.Radio = _chunk2LFW4MM6cjs.Radio; exports.RadioGroup = _chunk2LFW4MM6cjs.RadioGroup;
|
|
87
11
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Radio/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["/Users/summerhoony/Desktop/projects/nuri-ui/dist/Radio/index.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,2FAAC","file":"/Users/summerhoony/Desktop/projects/nuri-ui/dist/Radio/index.cjs"}
|
package/dist/Radio/index.js
CHANGED
|
@@ -1,48 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
// src/utils/cx.ts
|
|
9
|
-
function cx(...classes) {
|
|
10
|
-
return classes.filter(Boolean).join(" ");
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// src/Radio/Radio.tsx
|
|
14
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
var RadioGroup = forwardRef(function RadioGroup2({ children, orientation = "vertical", className, ...rest }, ref) {
|
|
16
|
-
return /* @__PURE__ */ jsx(
|
|
17
|
-
RadixRadioGroup.Root,
|
|
18
|
-
{
|
|
19
|
-
ref,
|
|
20
|
-
orientation,
|
|
21
|
-
className: cx("nuri-radio-group", `nuri-radio-group--${orientation}`, className),
|
|
22
|
-
...rest,
|
|
23
|
-
children
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
});
|
|
27
|
-
var Radio = forwardRef(function Radio2({ value, label, disabled = false, id: idProp, className, ...rest }, ref) {
|
|
28
|
-
const reactId = useId();
|
|
29
|
-
const id = idProp ?? `nuri-radio-${reactId}`;
|
|
30
|
-
return /* @__PURE__ */ jsxs("div", { className: cx("nuri-radio", className), children: [
|
|
31
|
-
/* @__PURE__ */ jsx(
|
|
32
|
-
RadixRadioGroup.Item,
|
|
33
|
-
{
|
|
34
|
-
ref,
|
|
35
|
-
id,
|
|
36
|
-
value,
|
|
37
|
-
disabled,
|
|
38
|
-
className: "nuri-radio__control",
|
|
39
|
-
...rest,
|
|
40
|
-
children: /* @__PURE__ */ jsx(RadixRadioGroup.Indicator, { className: "nuri-radio__indicator" })
|
|
41
|
-
}
|
|
42
|
-
),
|
|
43
|
-
label != null && /* @__PURE__ */ jsx("label", { htmlFor: id, className: "nuri-radio__label", children: label })
|
|
44
|
-
] });
|
|
45
|
-
});
|
|
2
|
+
import {
|
|
3
|
+
Radio,
|
|
4
|
+
RadioGroup
|
|
5
|
+
} from "../chunk-3H47QMKS.js";
|
|
6
|
+
import "../chunk-PS6QXS5Z.js";
|
|
46
7
|
export {
|
|
47
8
|
Radio,
|
|
48
9
|
RadioGroup
|
package/dist/Radio/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/Select/index.cjs
CHANGED
|
@@ -1,117 +1,9 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
"use strict";
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});'use client';
|
|
30
2
|
|
|
31
|
-
// src/Select/index.ts
|
|
32
|
-
var Select_exports = {};
|
|
33
|
-
__export(Select_exports, {
|
|
34
|
-
Select: () => Select
|
|
35
|
-
});
|
|
36
|
-
module.exports = __toCommonJS(Select_exports);
|
|
37
3
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
var RadixSelect = __toESM(require("@radix-ui/react-select"), 1);
|
|
41
|
-
var import_react = require("react");
|
|
4
|
+
var _chunkPC3B67B4cjs = require('../chunk-PC3B67B4.cjs');
|
|
5
|
+
require('../chunk-R4E4BIPC.cjs');
|
|
42
6
|
|
|
43
|
-
// src/utils/cx.ts
|
|
44
|
-
function cx(...classes) {
|
|
45
|
-
return classes.filter(Boolean).join(" ");
|
|
46
|
-
}
|
|
47
7
|
|
|
48
|
-
|
|
49
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
|
-
var CaretIcon = () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M1.1 2.5h5.8L4 5.9z", fill: "currentColor" }) });
|
|
51
|
-
var Select = (0, import_react.forwardRef)(function Select2({
|
|
52
|
-
options,
|
|
53
|
-
size = "md",
|
|
54
|
-
placeholder,
|
|
55
|
-
value,
|
|
56
|
-
defaultValue,
|
|
57
|
-
onValueChange,
|
|
58
|
-
open,
|
|
59
|
-
defaultOpen,
|
|
60
|
-
onOpenChange,
|
|
61
|
-
disabled = false,
|
|
62
|
-
block = false,
|
|
63
|
-
name,
|
|
64
|
-
required,
|
|
65
|
-
container,
|
|
66
|
-
className,
|
|
67
|
-
"aria-label": ariaLabel
|
|
68
|
-
}, ref) {
|
|
69
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
70
|
-
RadixSelect.Root,
|
|
71
|
-
{
|
|
72
|
-
value,
|
|
73
|
-
defaultValue,
|
|
74
|
-
onValueChange,
|
|
75
|
-
open,
|
|
76
|
-
defaultOpen,
|
|
77
|
-
onOpenChange,
|
|
78
|
-
disabled,
|
|
79
|
-
name,
|
|
80
|
-
required,
|
|
81
|
-
children: [
|
|
82
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
83
|
-
RadixSelect.Trigger,
|
|
84
|
-
{
|
|
85
|
-
ref,
|
|
86
|
-
"aria-label": ariaLabel,
|
|
87
|
-
className: cx(
|
|
88
|
-
"nuri-select__trigger",
|
|
89
|
-
`nuri-select__trigger--${size}`,
|
|
90
|
-
block && "nuri-select__trigger--block",
|
|
91
|
-
className
|
|
92
|
-
),
|
|
93
|
-
children: [
|
|
94
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "nuri-select__value", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RadixSelect.Value, { placeholder }) }),
|
|
95
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RadixSelect.Icon, { className: "nuri-select__caret", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CaretIcon, {}) })
|
|
96
|
-
]
|
|
97
|
-
}
|
|
98
|
-
),
|
|
99
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RadixSelect.Portal, { container, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RadixSelect.Content, { className: "nuri-select__content", position: "popper", sideOffset: 6, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RadixSelect.Viewport, { className: "nuri-select__viewport", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
100
|
-
RadixSelect.Item,
|
|
101
|
-
{
|
|
102
|
-
value: option.value,
|
|
103
|
-
disabled: option.disabled,
|
|
104
|
-
className: "nuri-select__item",
|
|
105
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RadixSelect.ItemText, { children: option.label })
|
|
106
|
-
},
|
|
107
|
-
option.value
|
|
108
|
-
)) }) }) })
|
|
109
|
-
]
|
|
110
|
-
}
|
|
111
|
-
);
|
|
112
|
-
});
|
|
113
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
114
|
-
0 && (module.exports = {
|
|
115
|
-
Select
|
|
116
|
-
});
|
|
8
|
+
exports.Select = _chunkPC3B67B4cjs.Select;
|
|
117
9
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["/Users/summerhoony/Desktop/projects/nuri-ui/dist/Select/index.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACF,0CAAC","file":"/Users/summerhoony/Desktop/projects/nuri-ui/dist/Select/index.cjs"}
|