@deepnoid/ui 0.1.82 → 0.1.85
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/.turbo/turbo-build.log +185 -170
- package/dist/{chunk-UE5Z7QUS.mjs → chunk-5IKVOP4M.mjs} +4 -4
- package/dist/{chunk-KAKSKYMD.mjs → chunk-D6OJWEZM.mjs} +1 -1
- package/dist/chunk-EKLA6ZR4.mjs +77 -0
- package/dist/{chunk-6PI7MYEV.mjs → chunk-FB6LBMGN.mjs} +1 -1
- package/dist/chunk-FKHKYVZH.mjs +212 -0
- package/dist/chunk-NMSDSEBD.mjs +1 -0
- package/dist/{chunk-SDRGT5I7.mjs → chunk-Q3JMHIW5.mjs} +1 -1
- package/dist/{chunk-PKUJTOVJ.mjs → chunk-V5OCV42N.mjs} +32 -5
- package/dist/components/accordion/accordion.d.mts +98 -0
- package/dist/components/accordion/accordion.d.ts +98 -0
- package/dist/components/accordion/accordion.js +433 -0
- package/dist/components/accordion/accordion.mjs +10 -0
- package/dist/components/accordion/accordionItem.d.mts +207 -0
- package/dist/components/accordion/accordionItem.d.ts +207 -0
- package/dist/components/accordion/accordionItem.js +5201 -0
- package/dist/components/accordion/accordionItem.mjs +13 -0
- package/dist/components/accordion/index.d.mts +8 -0
- package/dist/components/accordion/index.d.ts +8 -0
- package/dist/components/accordion/index.js +5277 -0
- package/dist/components/accordion/index.mjs +18 -0
- package/dist/components/breadcrumb/breadcrumb.mjs +3 -3
- package/dist/components/breadcrumb/index.mjs +3 -3
- package/dist/components/button/button.d.mts +4 -2
- package/dist/components/button/button.d.ts +4 -2
- package/dist/components/button/button.js +26 -5
- package/dist/components/button/button.mjs +1 -1
- package/dist/components/button/index.js +26 -5
- package/dist/components/button/index.mjs +4 -4
- package/dist/components/charts/index.mjs +3 -3
- package/dist/components/dateTimePicker/dateTimePicker.mjs +5 -5
- package/dist/components/dateTimePicker/index.mjs +5 -5
- package/dist/components/dateTimePicker/timePicker.mjs +3 -3
- package/dist/components/fileUpload/fileUpload.js +26 -5
- package/dist/components/fileUpload/fileUpload.mjs +3 -3
- package/dist/components/fileUpload/index.js +26 -5
- package/dist/components/fileUpload/index.mjs +3 -3
- package/dist/components/list/index.mjs +2 -2
- package/dist/components/list/listItem.mjs +2 -2
- package/dist/components/modal/index.js +26 -5
- package/dist/components/modal/index.mjs +3 -3
- package/dist/components/modal/modal.js +26 -5
- package/dist/components/modal/modal.mjs +3 -3
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2504 -2213
- package/dist/index.mjs +56 -47
- package/package.json +1 -1
- package/dist/{chunk-JW2TIJVH.mjs → chunk-I3ORSDFO.mjs} +3 -3
- package/dist/{chunk-BOFOJQMD.mjs → chunk-RE2WH26E.mjs} +3 -3
|
@@ -5007,7 +5007,7 @@ var Icon = ({ name, size = "md", fill = false, className, onClick, ...props }) =
|
|
|
5007
5007
|
var Icon_default = Icon;
|
|
5008
5008
|
|
|
5009
5009
|
// src/components/button/button.tsx
|
|
5010
|
-
var import_react2 =
|
|
5010
|
+
var import_react2 = require("react");
|
|
5011
5011
|
|
|
5012
5012
|
// src/components/ripple/ripple.tsx
|
|
5013
5013
|
var import_framer_motion = require("framer-motion");
|
|
@@ -5079,7 +5079,7 @@ function useRipple(props = {}) {
|
|
|
5079
5079
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
5080
5080
|
var Button = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
5081
5081
|
const [props, variantProps] = mapPropsVariants(originalProps, buttonStyle.variantKeys);
|
|
5082
|
-
const { classNames, startContent, endContent, disableRipple, children, ...buttonProps } = props;
|
|
5082
|
+
const { classNames, startContent, endContent, disableRipple, asChild, children, ...buttonProps } = props;
|
|
5083
5083
|
const slots = (0, import_react2.useMemo)(() => buttonStyle({ ...variantProps }), [variantProps]);
|
|
5084
5084
|
const { onPress: onRipplePressHandler, onClear: onClearRipple, ripples } = useRipple();
|
|
5085
5085
|
const handlePress = (0, import_react2.useCallback)(
|
|
@@ -5121,25 +5121,46 @@ var Button = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
|
5121
5121
|
[slots, classNames, originalProps.size]
|
|
5122
5122
|
);
|
|
5123
5123
|
const renderContent = (content) => {
|
|
5124
|
-
if (import_react2.
|
|
5124
|
+
if ((0, import_react2.isValidElement)(content)) {
|
|
5125
5125
|
const _content = content;
|
|
5126
5126
|
const existingProps = _content.props;
|
|
5127
5127
|
const mergedProps = {
|
|
5128
5128
|
...getContentProps(),
|
|
5129
5129
|
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
5130
5130
|
};
|
|
5131
|
-
return import_react2.
|
|
5131
|
+
return (0, import_react2.cloneElement)(content, mergedProps);
|
|
5132
5132
|
} else {
|
|
5133
5133
|
const contentProps = getContentProps();
|
|
5134
5134
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ...contentProps, children: content });
|
|
5135
5135
|
}
|
|
5136
5136
|
};
|
|
5137
|
-
|
|
5137
|
+
const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: originalProps.isLoading ? renderContent(/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "loading", className: "animate-spin" })) : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
5138
5138
|
startContent && renderContent(startContent),
|
|
5139
5139
|
children,
|
|
5140
5140
|
endContent && renderContent(endContent),
|
|
5141
5141
|
!disableRipple && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ripple_default, { ...getRippleProps() })
|
|
5142
5142
|
] }) });
|
|
5143
|
+
if (asChild && (0, import_react2.isValidElement)(children)) {
|
|
5144
|
+
const childElement = children;
|
|
5145
|
+
const baseProps = getBaseProps();
|
|
5146
|
+
const mergedProps = {
|
|
5147
|
+
...childElement.props,
|
|
5148
|
+
...baseProps,
|
|
5149
|
+
className: `${baseProps.className || ""} ${childElement.props.className || ""}`.trim(),
|
|
5150
|
+
onClick: (e) => {
|
|
5151
|
+
var _a, _b, _c;
|
|
5152
|
+
(_b = (_a = childElement.props).onClick) == null ? void 0 : _b.call(_a, e);
|
|
5153
|
+
(_c = baseProps.onClick) == null ? void 0 : _c.call(baseProps, e);
|
|
5154
|
+
},
|
|
5155
|
+
onMouseDown: (e) => {
|
|
5156
|
+
var _a, _b, _c;
|
|
5157
|
+
(_b = (_a = childElement.props).onMouseDown) == null ? void 0 : _b.call(_a, e);
|
|
5158
|
+
(_c = baseProps.onMouseDown) == null ? void 0 : _c.call(baseProps, e);
|
|
5159
|
+
}
|
|
5160
|
+
};
|
|
5161
|
+
return (0, import_react2.cloneElement)(childElement, mergedProps);
|
|
5162
|
+
}
|
|
5163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { ...getBaseProps(), children: buttonContent });
|
|
5143
5164
|
});
|
|
5144
5165
|
Button.displayName = "Button";
|
|
5145
5166
|
var button_default = Button;
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import "../../chunk-DJOG6Z35.mjs";
|
|
3
3
|
import {
|
|
4
4
|
modal_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-D6OJWEZM.mjs";
|
|
6
6
|
import "../../chunk-SE5TU755.mjs";
|
|
7
7
|
import "../../chunk-AF4I7ZQS.mjs";
|
|
8
8
|
import "../../chunk-MY5U63QO.mjs";
|
|
9
|
+
import "../../chunk-JBSV7GCL.mjs";
|
|
9
10
|
import "../../chunk-ITWKPTSD.mjs";
|
|
10
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-V5OCV42N.mjs";
|
|
11
12
|
import "../../chunk-P6CRHHI3.mjs";
|
|
12
13
|
import "../../chunk-6WSACUIB.mjs";
|
|
13
14
|
import "../../chunk-LXHUO6VM.mjs";
|
|
14
15
|
import "../../chunk-6PNKRBUT.mjs";
|
|
15
16
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
16
17
|
import "../../chunk-JP4TEWP7.mjs";
|
|
17
|
-
import "../../chunk-JBSV7GCL.mjs";
|
|
18
18
|
import "../../chunk-E3G5QXSH.mjs";
|
|
19
19
|
import "../../chunk-RRONV7YA.mjs";
|
|
20
20
|
import "../../chunk-CDXBML6O.mjs";
|
|
@@ -5005,7 +5005,7 @@ var Icon = ({ name, size = "md", fill = false, className, onClick, ...props }) =
|
|
|
5005
5005
|
var Icon_default = Icon;
|
|
5006
5006
|
|
|
5007
5007
|
// src/components/button/button.tsx
|
|
5008
|
-
var import_react2 =
|
|
5008
|
+
var import_react2 = require("react");
|
|
5009
5009
|
|
|
5010
5010
|
// src/components/ripple/ripple.tsx
|
|
5011
5011
|
var import_framer_motion = require("framer-motion");
|
|
@@ -5077,7 +5077,7 @@ function useRipple(props = {}) {
|
|
|
5077
5077
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
5078
5078
|
var Button = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
5079
5079
|
const [props, variantProps] = mapPropsVariants(originalProps, buttonStyle.variantKeys);
|
|
5080
|
-
const { classNames, startContent, endContent, disableRipple, children, ...buttonProps } = props;
|
|
5080
|
+
const { classNames, startContent, endContent, disableRipple, asChild, children, ...buttonProps } = props;
|
|
5081
5081
|
const slots = (0, import_react2.useMemo)(() => buttonStyle({ ...variantProps }), [variantProps]);
|
|
5082
5082
|
const { onPress: onRipplePressHandler, onClear: onClearRipple, ripples } = useRipple();
|
|
5083
5083
|
const handlePress = (0, import_react2.useCallback)(
|
|
@@ -5119,25 +5119,46 @@ var Button = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
|
5119
5119
|
[slots, classNames, originalProps.size]
|
|
5120
5120
|
);
|
|
5121
5121
|
const renderContent = (content) => {
|
|
5122
|
-
if (import_react2.
|
|
5122
|
+
if ((0, import_react2.isValidElement)(content)) {
|
|
5123
5123
|
const _content = content;
|
|
5124
5124
|
const existingProps = _content.props;
|
|
5125
5125
|
const mergedProps = {
|
|
5126
5126
|
...getContentProps(),
|
|
5127
5127
|
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
5128
5128
|
};
|
|
5129
|
-
return import_react2.
|
|
5129
|
+
return (0, import_react2.cloneElement)(content, mergedProps);
|
|
5130
5130
|
} else {
|
|
5131
5131
|
const contentProps = getContentProps();
|
|
5132
5132
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ...contentProps, children: content });
|
|
5133
5133
|
}
|
|
5134
5134
|
};
|
|
5135
|
-
|
|
5135
|
+
const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: originalProps.isLoading ? renderContent(/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "loading", className: "animate-spin" })) : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
5136
5136
|
startContent && renderContent(startContent),
|
|
5137
5137
|
children,
|
|
5138
5138
|
endContent && renderContent(endContent),
|
|
5139
5139
|
!disableRipple && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ripple_default, { ...getRippleProps() })
|
|
5140
5140
|
] }) });
|
|
5141
|
+
if (asChild && (0, import_react2.isValidElement)(children)) {
|
|
5142
|
+
const childElement = children;
|
|
5143
|
+
const baseProps = getBaseProps();
|
|
5144
|
+
const mergedProps = {
|
|
5145
|
+
...childElement.props,
|
|
5146
|
+
...baseProps,
|
|
5147
|
+
className: `${baseProps.className || ""} ${childElement.props.className || ""}`.trim(),
|
|
5148
|
+
onClick: (e) => {
|
|
5149
|
+
var _a, _b, _c;
|
|
5150
|
+
(_b = (_a = childElement.props).onClick) == null ? void 0 : _b.call(_a, e);
|
|
5151
|
+
(_c = baseProps.onClick) == null ? void 0 : _c.call(baseProps, e);
|
|
5152
|
+
},
|
|
5153
|
+
onMouseDown: (e) => {
|
|
5154
|
+
var _a, _b, _c;
|
|
5155
|
+
(_b = (_a = childElement.props).onMouseDown) == null ? void 0 : _b.call(_a, e);
|
|
5156
|
+
(_c = baseProps.onMouseDown) == null ? void 0 : _c.call(baseProps, e);
|
|
5157
|
+
}
|
|
5158
|
+
};
|
|
5159
|
+
return (0, import_react2.cloneElement)(childElement, mergedProps);
|
|
5160
|
+
}
|
|
5161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { ...getBaseProps(), children: buttonContent });
|
|
5141
5162
|
});
|
|
5142
5163
|
Button.displayName = "Button";
|
|
5143
5164
|
var button_default = Button;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
modal_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-D6OJWEZM.mjs";
|
|
5
5
|
import "../../chunk-SE5TU755.mjs";
|
|
6
6
|
import "../../chunk-AF4I7ZQS.mjs";
|
|
7
7
|
import "../../chunk-MY5U63QO.mjs";
|
|
8
|
+
import "../../chunk-JBSV7GCL.mjs";
|
|
8
9
|
import "../../chunk-ITWKPTSD.mjs";
|
|
9
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-V5OCV42N.mjs";
|
|
10
11
|
import "../../chunk-P6CRHHI3.mjs";
|
|
11
12
|
import "../../chunk-6WSACUIB.mjs";
|
|
12
13
|
import "../../chunk-LXHUO6VM.mjs";
|
|
13
14
|
import "../../chunk-6PNKRBUT.mjs";
|
|
14
15
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
15
16
|
import "../../chunk-JP4TEWP7.mjs";
|
|
16
|
-
import "../../chunk-JBSV7GCL.mjs";
|
|
17
17
|
import "../../chunk-E3G5QXSH.mjs";
|
|
18
18
|
import "../../chunk-RRONV7YA.mjs";
|
|
19
19
|
import "../../chunk-CDXBML6O.mjs";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { default as Accordion, AccordionProps } from './components/accordion/accordion.mjs';
|
|
2
|
+
export { default as AccordionItem, AccordionItemProps } from './components/accordion/accordionItem.mjs';
|
|
1
3
|
export { default as Avatar } from './components/avatar/avatar.mjs';
|
|
2
4
|
export { default as Backdrop } from './components/backdrop/backdrop.mjs';
|
|
3
5
|
export { default as Breadcrumb } from './components/breadcrumb/breadcrumb.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { default as Accordion, AccordionProps } from './components/accordion/accordion.js';
|
|
2
|
+
export { default as AccordionItem, AccordionItemProps } from './components/accordion/accordionItem.js';
|
|
1
3
|
export { default as Avatar } from './components/avatar/avatar.js';
|
|
2
4
|
export { default as Backdrop } from './components/backdrop/backdrop.js';
|
|
3
5
|
export { default as Breadcrumb } from './components/breadcrumb/breadcrumb.js';
|