@shoplflow/base 0.32.33 → 0.32.35
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.cjs +3 -0
- package/dist/index.d.cts +2 -7
- package/dist/index.d.ts +2 -7
- package/dist/index.js +3 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -4040,6 +4040,7 @@ var Tooltip = (_a) => {
|
|
|
4040
4040
|
placement = "bottom-start",
|
|
4041
4041
|
offset: offset4 = 4,
|
|
4042
4042
|
triggerRef,
|
|
4043
|
+
triggerWidth,
|
|
4043
4044
|
portalRef
|
|
4044
4045
|
} = _b, popperProps = __objRest(_b, [
|
|
4045
4046
|
"open",
|
|
@@ -4049,6 +4050,7 @@ var Tooltip = (_a) => {
|
|
|
4049
4050
|
"placement",
|
|
4050
4051
|
"offset",
|
|
4051
4052
|
"triggerRef",
|
|
4053
|
+
"triggerWidth",
|
|
4052
4054
|
"portalRef"
|
|
4053
4055
|
]);
|
|
4054
4056
|
const [isOpen, setIsOpen] = React3.useState(false);
|
|
@@ -4076,6 +4078,7 @@ var Tooltip = (_a) => {
|
|
|
4076
4078
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4077
4079
|
exports.Popper.Trigger,
|
|
4078
4080
|
{
|
|
4081
|
+
width: triggerWidth,
|
|
4079
4082
|
ref: triggerRef,
|
|
4080
4083
|
isOpen: isOpen || open,
|
|
4081
4084
|
onMouseOver: showHandler,
|
package/dist/index.d.cts
CHANGED
|
@@ -1170,13 +1170,7 @@ declare const SelectInputButton: ({ disabled, isSelected, onMouseEnter, onMouseL
|
|
|
1170
1170
|
interface MinusBoxProps extends MinusBoxOptionProps, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'color'> {
|
|
1171
1171
|
}
|
|
1172
1172
|
interface MinusBoxOptionProps {
|
|
1173
|
-
/**
|
|
1174
|
-
* 요소 클릭시 실행되는 함수
|
|
1175
|
-
*/
|
|
1176
1173
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
1177
|
-
/**
|
|
1178
|
-
* 요소의 배경색
|
|
1179
|
-
*/
|
|
1180
1174
|
color?: ColorTokens;
|
|
1181
1175
|
}
|
|
1182
1176
|
|
|
@@ -1210,13 +1204,14 @@ interface TooltipOptionProps {
|
|
|
1210
1204
|
popper: React.ReactNode;
|
|
1211
1205
|
triggerRef?: Ref<HTMLDivElement>;
|
|
1212
1206
|
portalRef?: Ref<HTMLDivElement>;
|
|
1207
|
+
triggerWidth?: CSSProperties['width'];
|
|
1213
1208
|
}
|
|
1214
1209
|
interface TooltipContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
1215
1210
|
content: string;
|
|
1216
1211
|
}
|
|
1217
1212
|
|
|
1218
1213
|
declare const Tooltip: {
|
|
1219
|
-
({ open, onOpenChange, trigger, popper, placement, offset, triggerRef, portalRef, ...popperProps }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
1214
|
+
({ open, onOpenChange, trigger, popper, placement, offset, triggerRef, triggerWidth, portalRef, ...popperProps }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
1220
1215
|
Content: ({ content, ...args }: TooltipContentProps) => react_jsx_runtime.JSX.Element;
|
|
1221
1216
|
};
|
|
1222
1217
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1170,13 +1170,7 @@ declare const SelectInputButton: ({ disabled, isSelected, onMouseEnter, onMouseL
|
|
|
1170
1170
|
interface MinusBoxProps extends MinusBoxOptionProps, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'color'> {
|
|
1171
1171
|
}
|
|
1172
1172
|
interface MinusBoxOptionProps {
|
|
1173
|
-
/**
|
|
1174
|
-
* 요소 클릭시 실행되는 함수
|
|
1175
|
-
*/
|
|
1176
1173
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
1177
|
-
/**
|
|
1178
|
-
* 요소의 배경색
|
|
1179
|
-
*/
|
|
1180
1174
|
color?: ColorTokens;
|
|
1181
1175
|
}
|
|
1182
1176
|
|
|
@@ -1210,13 +1204,14 @@ interface TooltipOptionProps {
|
|
|
1210
1204
|
popper: React.ReactNode;
|
|
1211
1205
|
triggerRef?: Ref<HTMLDivElement>;
|
|
1212
1206
|
portalRef?: Ref<HTMLDivElement>;
|
|
1207
|
+
triggerWidth?: CSSProperties['width'];
|
|
1213
1208
|
}
|
|
1214
1209
|
interface TooltipContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
1215
1210
|
content: string;
|
|
1216
1211
|
}
|
|
1217
1212
|
|
|
1218
1213
|
declare const Tooltip: {
|
|
1219
|
-
({ open, onOpenChange, trigger, popper, placement, offset, triggerRef, portalRef, ...popperProps }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
1214
|
+
({ open, onOpenChange, trigger, popper, placement, offset, triggerRef, triggerWidth, portalRef, ...popperProps }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
1220
1215
|
Content: ({ content, ...args }: TooltipContentProps) => react_jsx_runtime.JSX.Element;
|
|
1221
1216
|
};
|
|
1222
1217
|
|
package/dist/index.js
CHANGED
|
@@ -4013,6 +4013,7 @@ var Tooltip = (_a) => {
|
|
|
4013
4013
|
placement = "bottom-start",
|
|
4014
4014
|
offset: offset4 = 4,
|
|
4015
4015
|
triggerRef,
|
|
4016
|
+
triggerWidth,
|
|
4016
4017
|
portalRef
|
|
4017
4018
|
} = _b, popperProps = __objRest(_b, [
|
|
4018
4019
|
"open",
|
|
@@ -4022,6 +4023,7 @@ var Tooltip = (_a) => {
|
|
|
4022
4023
|
"placement",
|
|
4023
4024
|
"offset",
|
|
4024
4025
|
"triggerRef",
|
|
4026
|
+
"triggerWidth",
|
|
4025
4027
|
"portalRef"
|
|
4026
4028
|
]);
|
|
4027
4029
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -4049,6 +4051,7 @@ var Tooltip = (_a) => {
|
|
|
4049
4051
|
/* @__PURE__ */ jsx(
|
|
4050
4052
|
Popper_default.Trigger,
|
|
4051
4053
|
{
|
|
4054
|
+
width: triggerWidth,
|
|
4052
4055
|
ref: triggerRef,
|
|
4053
4056
|
isOpen: isOpen || open,
|
|
4054
4057
|
onMouseOver: showHandler,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shoplflow/base",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.35",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"react-dom": "^18.2.0",
|
|
92
92
|
"simplebar-react": "^3.2.6",
|
|
93
93
|
"@shoplflow/hada-assets": "^0.1.3",
|
|
94
|
-
"@shoplflow/shopl-assets": "^0.11.
|
|
94
|
+
"@shoplflow/shopl-assets": "^0.11.1",
|
|
95
95
|
"@shoplflow/utils": "^0.6.5"
|
|
96
96
|
},
|
|
97
97
|
"scripts": {
|