@daeryun/dr_components 0.0.10 → 0.0.11

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.
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -21,8 +10,8 @@ var __rest = (this && this.__rest) || function (s, e) {
21
10
  return t;
22
11
  };
23
12
  import { jsx as _jsx } from "react/jsx-runtime";
24
- var Button = function (props) {
25
- var isRound = props.isRound, borderColor = props.borderColor, textColor = props.textColor, bgColor = props.bgColor, className = props.className, ref = props.ref, children = props.children, others = __rest(props, ["isRound", "borderColor", "textColor", "bgColor", "className", "ref", "children"]);
26
- return (_jsx("button", __assign({}, others, { ref: ref, className: className + ' flex items-center justify-center', style: __assign(__assign(__assign(__assign({}, (borderColor && { border: '1px solid ' + borderColor })), (bgColor && { backgroundColor: bgColor })), (textColor && { color: textColor })), (isRound && { borderRadius: '9999px' })), children: children })));
13
+ const Button = (props) => {
14
+ const { isRound, borderColor, textColor, bgColor, className, ref, children } = props, others = __rest(props, ["isRound", "borderColor", "textColor", "bgColor", "className", "ref", "children"]);
15
+ return (_jsx("button", Object.assign({}, others, { ref: ref, className: className + ' flex items-center justify-center', style: Object.assign(Object.assign(Object.assign(Object.assign({}, (borderColor && { border: '1px solid ' + borderColor })), (bgColor && { backgroundColor: bgColor })), (textColor && { color: textColor })), (isRound && { borderRadius: '9999px' })), children: children })));
27
16
  };
28
17
  export default Button;
package/next.config.js CHANGED
@@ -1,6 +1,22 @@
1
- /** @type {import('next').NextConfig} */
2
- const nextConfig = {
3
- reactStrictMode: true,
4
- }
1
+ // next.config.js
2
+ module.exports = {
3
+ webpack: (config, { isServer }) => {
4
+ // ES 모듈을 처리할 수 있도록 설정
5
+ if (!isServer) {
6
+ config.resolve.extensions.push('.js', '.jsx', '.ts', '.tsx');
7
+ config.module.rules.push({
8
+ test: /\.m?js$/,
9
+ exclude: /node_modules/,
10
+ use: {
11
+ loader: 'babel-loader',
12
+ options: {
13
+ presets: ['next/babel'],
14
+ plugins: ['@babel/plugin-transform-modules-commonjs']
15
+ },
16
+ },
17
+ });
18
+ }
5
19
 
6
- module.exports = nextConfig
20
+ return config;
21
+ },
22
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daeryun/dr_components",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "es5", // 컴파일된 JS 코드의 ECMAScript 버전
3
+ "target": "es6", // 컴파일된 JS 코드의 ECMAScript 버전
4
4
  "lib": ["dom", "dom.iterable", "esnext"], // 포함할 라이브러리 목록
5
5
  "allowJs": true, // JS 파일 컴파일 허용
6
6
  "noEmit": false, // 컴파일러가 출력 파일 생성