@deepnoid/ui 0.1.120 → 0.1.122
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 +157 -157
- package/dist/{chunk-IJS5AWD2.mjs → chunk-27K5BTEL.mjs} +1 -1
- package/dist/{chunk-EXUHHLSA.mjs → chunk-2IOTRPCS.mjs} +1 -1
- package/dist/{chunk-CMMVXFHD.mjs → chunk-3F6OF2QS.mjs} +1 -1
- package/dist/{chunk-YLHOBT6S.mjs → chunk-5MINOKNM.mjs} +1 -1
- package/dist/{chunk-NV5Z6ZUO.mjs → chunk-6JLHCQH7.mjs} +1 -1
- package/dist/{chunk-YUS5SELP.mjs → chunk-AT6GNVOQ.mjs} +1 -1
- package/dist/{chunk-CTWYY7Z2.mjs → chunk-BG4DIGKH.mjs} +14 -8
- package/dist/{chunk-3M6VYLOU.mjs → chunk-D6MHTE5L.mjs} +6 -6
- package/dist/{chunk-NMZFSNPE.mjs → chunk-DD6HAIW3.mjs} +1 -1
- package/dist/{chunk-OBMO6LRA.mjs → chunk-DLNGJVFS.mjs} +1 -1
- package/dist/{chunk-MHZ4BO5M.mjs → chunk-E2LGBO2H.mjs} +2 -2
- package/dist/{chunk-MIVGSJFF.mjs → chunk-GZEAMYAO.mjs} +190 -94
- package/dist/{chunk-BBQNVDIA.mjs → chunk-HX64P3XQ.mjs} +2 -2
- package/dist/{chunk-KCOS2KC6.mjs → chunk-LOYDOCOR.mjs} +2 -2
- package/dist/{chunk-Q5634WTM.mjs → chunk-RVFSQFWS.mjs} +3 -3
- package/dist/{chunk-27WK5334.mjs → chunk-VEBJS4SC.mjs} +2 -2
- package/dist/{chunk-RJPBLIEF.mjs → chunk-VOKDAIUY.mjs} +1 -1
- package/dist/{chunk-NITERGU5.mjs → chunk-WB7Z54CF.mjs} +4 -4
- package/dist/{chunk-SS6EG5JO.mjs → chunk-XOUAUSP4.mjs} +1 -1
- package/dist/{chunk-EM2NIGNZ.mjs → chunk-YZ57UYAS.mjs} +1 -1
- package/dist/components/avatar/avatar.js +14 -8
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.js +14 -8
- package/dist/components/avatar/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +14 -8
- package/dist/components/breadcrumb/breadcrumb.mjs +5 -5
- package/dist/components/breadcrumb/index.js +14 -8
- package/dist/components/breadcrumb/index.mjs +5 -5
- package/dist/components/button/button.js +14 -8
- package/dist/components/button/button.mjs +3 -3
- package/dist/components/button/icon-button.js +14 -8
- package/dist/components/button/icon-button.mjs +3 -3
- package/dist/components/button/index.js +14 -8
- package/dist/components/button/index.mjs +4 -4
- package/dist/components/chip/chip.js +14 -8
- package/dist/components/chip/chip.mjs +3 -3
- package/dist/components/chip/index.js +14 -8
- package/dist/components/chip/index.mjs +3 -3
- package/dist/components/fileUpload/fileUpload.js +14 -8
- package/dist/components/fileUpload/fileUpload.mjs +6 -6
- package/dist/components/fileUpload/index.js +14 -8
- package/dist/components/fileUpload/index.mjs +6 -6
- package/dist/components/icon/Icon.d.mts +1 -1
- package/dist/components/icon/Icon.d.ts +1 -1
- package/dist/components/icon/Icon.js +14 -8
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +14 -8
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +1 -1
- package/dist/components/icon/template.d.ts +1 -1
- package/dist/components/icon/template.js +14 -8
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +14 -8
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.js +14 -8
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/list/index.js +14 -8
- package/dist/components/list/index.mjs +4 -4
- package/dist/components/list/listItem.js +14 -8
- package/dist/components/list/listItem.mjs +4 -4
- package/dist/components/modal/index.js +14 -8
- package/dist/components/modal/index.mjs +5 -5
- package/dist/components/modal/modal.js +14 -8
- package/dist/components/modal/modal.mjs +5 -5
- package/dist/components/pagination/index.js +14 -8
- package/dist/components/pagination/index.mjs +4 -4
- package/dist/components/pagination/pagination.js +14 -8
- package/dist/components/pagination/pagination.mjs +4 -4
- package/dist/components/picker/datePicker.js +14 -8
- package/dist/components/picker/datePicker.mjs +6 -6
- package/dist/components/picker/index.js +203 -101
- package/dist/components/picker/index.mjs +8 -8
- package/dist/components/picker/timePicker.js +203 -101
- package/dist/components/picker/timePicker.mjs +4 -4
- package/dist/components/select/index.d.mts +3 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/index.js +203 -101
- package/dist/components/select/index.mjs +3 -3
- package/dist/components/select/select.d.mts +79 -9
- package/dist/components/select/select.d.ts +79 -9
- package/dist/components/select/select.js +203 -101
- package/dist/components/select/select.mjs +3 -3
- package/dist/components/table/definition-table.d.mts +2 -2
- package/dist/components/table/definition-table.d.ts +2 -2
- package/dist/components/table/definition-table.js +6 -6
- package/dist/components/table/definition-table.mjs +1 -1
- package/dist/components/table/index.js +20 -14
- package/dist/components/table/index.mjs +6 -6
- package/dist/components/table/table-body.js +14 -8
- package/dist/components/table/table-body.mjs +5 -5
- package/dist/components/table/table-head.js +14 -8
- package/dist/components/table/table-head.mjs +5 -5
- package/dist/components/table/table.js +14 -8
- package/dist/components/table/table.mjs +5 -5
- package/dist/components/toast/index.js +14 -8
- package/dist/components/toast/index.mjs +4 -4
- package/dist/components/toast/toast.js +14 -8
- package/dist/components/toast/toast.mjs +3 -3
- package/dist/components/toast/use-toast.js +14 -8
- package/dist/components/toast/use-toast.mjs +4 -4
- package/dist/components/tree/index.js +14 -8
- package/dist/components/tree/index.mjs +3 -3
- package/dist/components/tree/tree.js +14 -8
- package/dist/components/tree/tree.mjs +3 -3
- package/dist/index.js +209 -107
- package/dist/index.mjs +24 -24
- package/package.json +1 -1
|
@@ -1722,22 +1722,28 @@ var template = {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
);
|
|
1724
1724
|
},
|
|
1725
|
-
|
|
1726
|
-
// ** Status **
|
|
1727
|
-
check: ({ className, fill }) => {
|
|
1725
|
+
check: ({ className }) => {
|
|
1728
1726
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1729
1727
|
"svg",
|
|
1730
1728
|
{
|
|
1731
|
-
width: "24",
|
|
1732
|
-
height: "24",
|
|
1733
|
-
viewBox: "0 0 24 24",
|
|
1734
|
-
fill: "none",
|
|
1735
1729
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1730
|
+
width: "27",
|
|
1731
|
+
height: "28",
|
|
1732
|
+
viewBox: "0 0 27 28",
|
|
1733
|
+
fill: "none",
|
|
1736
1734
|
className,
|
|
1737
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1735
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1736
|
+
"path",
|
|
1737
|
+
{
|
|
1738
|
+
d: "M21.9264 5.20931C22.1812 5.39338 22.3846 5.59774 22.4858 5.90334C22.5588 6.45228 22.3415 6.78579 22.0286 7.20666C21.9576 7.30047 21.8864 7.39405 21.8151 7.48762C21.6895 7.65415 21.5677 7.8235 21.4454 7.99253C21.2259 8.29482 21.0028 8.59408 20.7773 8.89185C20.4766 9.2892 20.1815 9.69044 19.889 10.094C19.8125 10.1993 19.7358 10.3044 19.659 10.4094C19.4079 10.7529 19.1577 11.0971 18.91 11.4431C18.8896 11.4716 18.8692 11.5001 18.8482 11.5294C18.7754 11.6314 18.703 11.7337 18.6307 11.8361C18.6035 11.8747 18.6035 11.8747 18.5756 11.9141C18.2362 12.3955 17.9059 12.8824 17.5821 13.3746C17.5478 13.4267 17.5478 13.4267 17.5128 13.4798C16.951 14.3338 16.425 15.1996 15.9364 16.0988C15.8817 16.1993 15.8266 16.2995 15.7713 16.3996C14.803 18.183 14.0974 20.1792 13.8032 22.1948C13.7275 22.4843 13.5304 22.7004 13.2862 22.8603C12.8671 23.0504 12.4792 23.0344 12.0524 22.8851C11.7159 22.6982 11.4492 22.3832 11.1807 22.1105C11.1305 22.06 11.1305 22.06 11.0793 22.0085C11.0463 21.9751 11.0133 21.9417 10.9793 21.9072C10.9355 21.8629 10.9355 21.8629 10.8908 21.8177C10.812 21.7336 10.738 21.6487 10.664 21.5606C10.4051 21.26 10.1208 20.9832 9.84198 20.7018C9.77941 20.6385 9.71685 20.5753 9.65429 20.512C9.52361 20.3798 9.39285 20.2478 9.26203 20.1158C9.0951 19.9473 8.92837 19.7787 8.76169 19.61C8.63267 19.4794 8.50355 19.349 8.37439 19.2186C8.3129 19.1564 8.25145 19.0943 8.19002 19.0321C7.78034 18.6148 7.78034 18.6148 7.3481 18.2218C7.26354 18.1493 7.18628 18.0708 7.1093 17.9902C6.97131 17.8488 6.8284 17.7169 6.67944 17.5876C6.56805 17.4895 6.45958 17.3885 6.35088 17.2873C6.15574 17.1075 5.95513 16.937 5.74972 16.7694C5.52338 16.5822 5.30225 16.3888 5.08115 16.1954C5.02902 16.1502 4.97647 16.1055 4.92361 16.0611C4.88291 16.0268 4.88291 16.0268 4.84139 15.9918C4.81684 15.9713 4.79228 15.9509 4.76699 15.9298C4.5693 15.7391 4.51301 15.5207 4.5 15.2507C4.5151 14.872 4.65787 14.6052 4.92439 14.3431C5.23566 14.0858 5.58225 13.9705 5.98399 13.9889C6.39409 14.0467 6.67261 14.2696 6.97788 14.5368C7.04531 14.5941 7.11275 14.6513 7.18024 14.7085C7.27801 14.7916 7.37519 14.8755 7.47238 14.9593C7.54704 15.0235 7.62196 15.0874 7.69694 15.1513C8.02915 15.4353 8.34957 15.7298 8.66619 16.0314C8.78965 16.1489 8.91524 16.2635 9.04232 16.3769C9.24098 16.556 9.42848 16.745 9.61441 16.9374C9.73206 17.0583 9.85175 17.1731 9.97956 17.283C10.2352 17.5064 10.4711 17.7507 10.7095 17.9925C10.7917 18.0758 10.8741 18.1589 10.9566 18.2419C11.4347 18.7249 11.4347 18.7249 11.6464 18.9799C11.7218 19.0675 11.8025 19.1485 11.8843 19.2299C11.898 19.1896 11.9116 19.1493 11.9257 19.1078C12.2024 18.2927 12.4869 17.488 12.8481 16.7062C12.8687 16.6616 12.8892 16.617 12.9104 16.571C13.6549 14.9617 14.5337 13.4385 15.5204 11.9689C15.553 11.9203 15.553 11.9203 15.5863 11.8707C16.0931 11.1161 16.6136 10.3732 17.1508 9.6404C17.2538 9.49984 17.3564 9.35903 17.4591 9.2182C17.5357 9.11296 17.6125 9.00777 17.6892 8.90257C17.7905 8.76367 17.8916 8.62462 17.9924 8.48543C18.2637 8.11165 18.5381 7.74072 18.8169 7.37269C19.0086 7.11969 19.1989 6.86631 19.381 6.6062C19.4144 6.55854 19.4478 6.51089 19.4823 6.46179C19.5085 6.42434 19.5085 6.42434 19.5353 6.38614C19.6584 6.21085 19.782 6.03602 19.9066 5.86184C19.9313 5.8267 19.9559 5.79157 19.9813 5.75537C20.4573 5.09349 21.1643 4.75205 21.9264 5.20931Z",
|
|
1739
|
+
fill: "currentColor"
|
|
1740
|
+
}
|
|
1741
|
+
)
|
|
1738
1742
|
}
|
|
1739
1743
|
);
|
|
1740
1744
|
},
|
|
1745
|
+
// ----------------------------------- old ---------------------------------
|
|
1746
|
+
// ** Status **
|
|
1741
1747
|
"plus-circle": ({ className, fill }) => {
|
|
1742
1748
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1743
1749
|
"svg",
|
|
@@ -5090,6 +5096,9 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
5090
5096
|
defaultSelectedOptions,
|
|
5091
5097
|
onChange,
|
|
5092
5098
|
multiple,
|
|
5099
|
+
dropdownIconName = "brace-up",
|
|
5100
|
+
optionIconName,
|
|
5101
|
+
optionIconPlacement,
|
|
5093
5102
|
...inputProps
|
|
5094
5103
|
} = props;
|
|
5095
5104
|
const slots = (0, import_react.useMemo)(() => select({ ...variantProps }), [variantProps]);
|
|
@@ -5100,19 +5109,22 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
5100
5109
|
const [isOpen, setIsOpen] = (0, import_react.useState)(false);
|
|
5101
5110
|
const selectWrapperRef = (0, import_react.useRef)(null);
|
|
5102
5111
|
const optionWrapperRef = (0, import_react.useRef)(null);
|
|
5103
|
-
const
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
setTargetRect(rect);
|
|
5111
|
-
setIsVisible(true);
|
|
5112
|
-
requestAnimationFrame(() => setIsOpen(true));
|
|
5113
|
-
}
|
|
5112
|
+
const isControlled = originalProps.value !== void 0;
|
|
5113
|
+
const openSelect = () => {
|
|
5114
|
+
if (selectWrapperRef.current) {
|
|
5115
|
+
const rect = selectWrapperRef.current.getBoundingClientRect();
|
|
5116
|
+
setTargetRect(rect);
|
|
5117
|
+
setIsVisible(true);
|
|
5118
|
+
requestAnimationFrame(() => setIsOpen(true));
|
|
5114
5119
|
}
|
|
5115
5120
|
};
|
|
5121
|
+
const closeSelect = () => {
|
|
5122
|
+
setIsOpen(false);
|
|
5123
|
+
setTimeout(() => setIsVisible(false), 150);
|
|
5124
|
+
};
|
|
5125
|
+
const handleToggleSelect = () => {
|
|
5126
|
+
isOpen ? closeSelect() : openSelect();
|
|
5127
|
+
};
|
|
5116
5128
|
const calculatePositionWithScroll = (rect, height) => {
|
|
5117
5129
|
const scrollTop = window.scrollY;
|
|
5118
5130
|
const scrollLeft = window.scrollX;
|
|
@@ -5131,8 +5143,7 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
5131
5143
|
nextOptions = exists ? selectedOptions.filter((o) => o.value !== option.value) : [...selectedOptions, option];
|
|
5132
5144
|
} else {
|
|
5133
5145
|
nextOptions = [option];
|
|
5134
|
-
|
|
5135
|
-
setTimeout(() => setIsVisible(false), 150);
|
|
5146
|
+
closeSelect();
|
|
5136
5147
|
}
|
|
5137
5148
|
setSelectedOptions(nextOptions);
|
|
5138
5149
|
onChange == null ? void 0 : onChange(nextOptions);
|
|
@@ -5140,9 +5151,9 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
5140
5151
|
(0, import_react.useEffect)(() => {
|
|
5141
5152
|
const handleClickOutside = (e) => {
|
|
5142
5153
|
var _a2;
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5154
|
+
const target = e.target;
|
|
5155
|
+
if (optionWrapperRef.current && !optionWrapperRef.current.contains(target) && !((_a2 = selectWrapperRef.current) == null ? void 0 : _a2.contains(target))) {
|
|
5156
|
+
closeSelect();
|
|
5146
5157
|
}
|
|
5147
5158
|
};
|
|
5148
5159
|
window.addEventListener("mousedown", handleClickOutside);
|
|
@@ -5153,42 +5164,63 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
5153
5164
|
setOptionWrapperHeight(optionWrapperRef.current.getBoundingClientRect().height);
|
|
5154
5165
|
}
|
|
5155
5166
|
}, [targetRect]);
|
|
5156
|
-
const position = targetRect ? calculatePositionWithScroll(targetRect, optionWrapperHeight) : null;
|
|
5157
|
-
const displayValue = multiple ? selectedOptions.map((opt) => opt.label).join(", ") : ((_a = selectedOptions[0]) == null ? void 0 : _a.label) || "";
|
|
5158
|
-
const selectedValue = multiple ? selectedOptions.map((opt) => opt.value).join(", ") : ((_b = selectedOptions[0]) == null ? void 0 : _b.value) || "";
|
|
5159
|
-
const Option = ({
|
|
5160
|
-
option,
|
|
5161
|
-
isSelected,
|
|
5162
|
-
onClick
|
|
5163
|
-
}) => {
|
|
5164
|
-
const slot = select({ ...variantProps, isSelected });
|
|
5165
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
5166
|
-
"div",
|
|
5167
|
-
{
|
|
5168
|
-
role: "option",
|
|
5169
|
-
title: option.label,
|
|
5170
|
-
onClick,
|
|
5171
|
-
className: clsx(slot.option({ class: classNames == null ? void 0 : classNames.option })),
|
|
5172
|
-
children: [
|
|
5173
|
-
option.label,
|
|
5174
|
-
isSelected && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "check", size: originalProps.size })
|
|
5175
|
-
]
|
|
5176
|
-
}
|
|
5177
|
-
);
|
|
5178
|
-
};
|
|
5179
|
-
const isControlled = originalProps.value !== void 0;
|
|
5180
5167
|
(0, import_react.useEffect)(() => {
|
|
5181
5168
|
if (isControlled) {
|
|
5182
5169
|
const valueArray = Array.isArray(originalProps.value) ? originalProps.value : [originalProps.value];
|
|
5183
|
-
const
|
|
5184
|
-
setSelectedOptions(
|
|
5185
|
-
}
|
|
5186
|
-
}, [originalProps.value, options]);
|
|
5187
|
-
(0, import_react.useEffect)(() => {
|
|
5188
|
-
if (!isControlled && defaultSelectedOptions) {
|
|
5170
|
+
const matched = options.filter((opt) => valueArray.includes(opt.value));
|
|
5171
|
+
setSelectedOptions(matched);
|
|
5172
|
+
} else if (defaultSelectedOptions) {
|
|
5189
5173
|
setSelectedOptions(defaultSelectedOptions);
|
|
5190
5174
|
}
|
|
5191
|
-
}, [defaultSelectedOptions]);
|
|
5175
|
+
}, [originalProps.value, defaultSelectedOptions, options]);
|
|
5176
|
+
const position = targetRect ? calculatePositionWithScroll(targetRect, optionWrapperHeight) : null;
|
|
5177
|
+
const displayValue = multiple ? selectedOptions.map((opt) => opt.label).join(", ") : ((_a = selectedOptions[0]) == null ? void 0 : _a.label) || "";
|
|
5178
|
+
const selectedValue = multiple ? selectedOptions.map((opt) => opt.value).join(",") : ((_b = selectedOptions[0]) == null ? void 0 : _b.value) || "";
|
|
5179
|
+
const renderOptions = () => {
|
|
5180
|
+
if (!isVisible) return null;
|
|
5181
|
+
return (0, import_react_dom.createPortal)(
|
|
5182
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
5183
|
+
"div",
|
|
5184
|
+
{
|
|
5185
|
+
ref: optionWrapperRef,
|
|
5186
|
+
role: "listbox",
|
|
5187
|
+
className: slots.optionsWrapper({ class: classNames == null ? void 0 : classNames.optionsWrapper }),
|
|
5188
|
+
style: {
|
|
5189
|
+
position: "absolute",
|
|
5190
|
+
top: position == null ? void 0 : position.top,
|
|
5191
|
+
left: position == null ? void 0 : position.left,
|
|
5192
|
+
width: targetRect == null ? void 0 : targetRect.width,
|
|
5193
|
+
zIndex: 1e3,
|
|
5194
|
+
opacity: isOpen ? 1 : 0,
|
|
5195
|
+
transform: isOpen ? "translateY(0)" : "translateY(-0.25rem)",
|
|
5196
|
+
transition: "opacity 150ms ease-out, transform 150ms ease-out"
|
|
5197
|
+
},
|
|
5198
|
+
children: options.map((option) => {
|
|
5199
|
+
const isSelected = selectedOptions.some((o) => o.value === option.value);
|
|
5200
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
5201
|
+
"div",
|
|
5202
|
+
{
|
|
5203
|
+
role: "option",
|
|
5204
|
+
title: option.label,
|
|
5205
|
+
onClick: () => handleChangeOption(option),
|
|
5206
|
+
className: clsx(
|
|
5207
|
+
select({ ...variantProps, isSelected }).option({ class: classNames == null ? void 0 : classNames.option }),
|
|
5208
|
+
optionIconPlacement === "end" ? "justify-between" : ""
|
|
5209
|
+
),
|
|
5210
|
+
children: [
|
|
5211
|
+
optionIconName && optionIconPlacement === "start" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: optionIconName, size: originalProps.size }),
|
|
5212
|
+
option.label,
|
|
5213
|
+
optionIconName && optionIconPlacement === "end" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: optionIconName, size: originalProps.size })
|
|
5214
|
+
]
|
|
5215
|
+
},
|
|
5216
|
+
option.value
|
|
5217
|
+
);
|
|
5218
|
+
})
|
|
5219
|
+
}
|
|
5220
|
+
),
|
|
5221
|
+
document.body
|
|
5222
|
+
);
|
|
5223
|
+
};
|
|
5192
5224
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
|
|
5193
5225
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
5194
5226
|
"div",
|
|
@@ -5230,7 +5262,7 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
5230
5262
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
5231
5263
|
Icon_default,
|
|
5232
5264
|
{
|
|
5233
|
-
name:
|
|
5265
|
+
name: dropdownIconName,
|
|
5234
5266
|
size: originalProps.size,
|
|
5235
5267
|
className: `transition-transform duration-200 ${isOpen ? "rotate-0" : "rotate-180"}`
|
|
5236
5268
|
}
|
|
@@ -5244,39 +5276,7 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
5244
5276
|
]
|
|
5245
5277
|
}
|
|
5246
5278
|
),
|
|
5247
|
-
|
|
5248
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
5249
|
-
"div",
|
|
5250
|
-
{
|
|
5251
|
-
ref: optionWrapperRef,
|
|
5252
|
-
role: "listbox",
|
|
5253
|
-
className: slots.optionsWrapper({ class: classNames == null ? void 0 : classNames.optionsWrapper }),
|
|
5254
|
-
style: {
|
|
5255
|
-
position: "absolute",
|
|
5256
|
-
top: position == null ? void 0 : position.top,
|
|
5257
|
-
left: position == null ? void 0 : position.left,
|
|
5258
|
-
width: targetRect == null ? void 0 : targetRect.width,
|
|
5259
|
-
zIndex: 1e3,
|
|
5260
|
-
opacity: isOpen ? 1 : 0,
|
|
5261
|
-
transform: isOpen ? "translateY(0)" : "translateY(-0.25rem)",
|
|
5262
|
-
transition: "opacity 150ms ease-out, transform 150ms ease-out"
|
|
5263
|
-
},
|
|
5264
|
-
children: options.map((option) => {
|
|
5265
|
-
const isSelected = selectedOptions.some((o) => o.value === option.value);
|
|
5266
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
5267
|
-
Option,
|
|
5268
|
-
{
|
|
5269
|
-
option,
|
|
5270
|
-
isSelected,
|
|
5271
|
-
onClick: () => handleChangeOption(option)
|
|
5272
|
-
},
|
|
5273
|
-
option.value
|
|
5274
|
-
);
|
|
5275
|
-
})
|
|
5276
|
-
}
|
|
5277
|
-
),
|
|
5278
|
-
document.body
|
|
5279
|
-
)
|
|
5279
|
+
renderOptions()
|
|
5280
5280
|
] });
|
|
5281
5281
|
});
|
|
5282
5282
|
Select.displayName = "Select";
|
|
@@ -5292,9 +5292,9 @@ var select = tv({
|
|
|
5292
5292
|
"flex",
|
|
5293
5293
|
"items-center",
|
|
5294
5294
|
"justify-between",
|
|
5295
|
-
"border",
|
|
5296
5295
|
"cursor-pointer",
|
|
5297
5296
|
"text-neutral-main",
|
|
5297
|
+
"bg-body-background",
|
|
5298
5298
|
"hover:bg-trans-soft",
|
|
5299
5299
|
"group-has-[p.error]/select:border-danger-main",
|
|
5300
5300
|
"group-has-[p.error]/select:bg-danger-soft",
|
|
@@ -5310,22 +5310,59 @@ var select = tv({
|
|
|
5310
5310
|
"group-has-[p.error]/select:text-danger-main",
|
|
5311
5311
|
"group-has-[p.error]/select:placeholder:text-danger-main"
|
|
5312
5312
|
],
|
|
5313
|
-
optionsWrapper: ["
|
|
5314
|
-
option: [
|
|
5313
|
+
optionsWrapper: ["bg-body-background", "overflow-auto", "flex", "flex-col", "gap-[10px]"],
|
|
5314
|
+
option: [
|
|
5315
|
+
"flex",
|
|
5316
|
+
"items-center",
|
|
5317
|
+
"cursor-pointer",
|
|
5318
|
+
"text-neutral-dark",
|
|
5319
|
+
"hover:bg-trans-soft",
|
|
5320
|
+
"hover:text-neutral-strong"
|
|
5321
|
+
],
|
|
5315
5322
|
helperMessage: ["text-neutral-main"],
|
|
5316
5323
|
errorMessage: ["text-danger-main"],
|
|
5317
5324
|
readonly: ["pointer-events-none", "!bg-trans-soft"]
|
|
5318
5325
|
},
|
|
5319
5326
|
variants: {
|
|
5327
|
+
variant: {
|
|
5328
|
+
solid: {
|
|
5329
|
+
selectWrapper: ["border-transparent", "bg-trans-soft"],
|
|
5330
|
+
option: [],
|
|
5331
|
+
readonlyWrapper: ["!bg-trans-light"]
|
|
5332
|
+
},
|
|
5333
|
+
outline: {
|
|
5334
|
+
selectWrapper: [
|
|
5335
|
+
"border-neutral-light",
|
|
5336
|
+
"border",
|
|
5337
|
+
"group-has-[:hover]/select:bg-trans-soft",
|
|
5338
|
+
"group-has-[:focus]/select:bg-body-background",
|
|
5339
|
+
"group-has-[p.error]/select:border-danger-main"
|
|
5340
|
+
],
|
|
5341
|
+
option: [],
|
|
5342
|
+
readonlyWrapper: ["!bg-trans-soft"]
|
|
5343
|
+
},
|
|
5344
|
+
underline: {
|
|
5345
|
+
selectWrapper: [
|
|
5346
|
+
"bg-transparent",
|
|
5347
|
+
"border-neutral-light",
|
|
5348
|
+
"!rounded-none",
|
|
5349
|
+
"group-has-[:hover]/select:bg-trans-soft",
|
|
5350
|
+
"group-has-[:focus]/select:bg-body-background",
|
|
5351
|
+
"group-has-[p.error]/select:border-danger-main"
|
|
5352
|
+
],
|
|
5353
|
+
option: ["!rounded-none"],
|
|
5354
|
+
readonlyWrapper: ["!bg-trans-soft"]
|
|
5355
|
+
}
|
|
5356
|
+
},
|
|
5320
5357
|
color: {
|
|
5321
5358
|
primary: {
|
|
5322
5359
|
selectWrapper: ["text-primary-main"],
|
|
5323
|
-
option: [
|
|
5360
|
+
option: [],
|
|
5324
5361
|
helperMessage: ["text-primary-main"]
|
|
5325
5362
|
},
|
|
5326
5363
|
secondary: {
|
|
5327
5364
|
selectWrapper: ["text-secondary-main"],
|
|
5328
|
-
option: [
|
|
5365
|
+
option: [],
|
|
5329
5366
|
helperMessage: ["text-secondary-main"]
|
|
5330
5367
|
}
|
|
5331
5368
|
},
|
|
@@ -5336,7 +5373,8 @@ var select = tv({
|
|
|
5336
5373
|
wrapper: ["gap-[4px]"],
|
|
5337
5374
|
selectWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-[4px]"],
|
|
5338
5375
|
select: ["text-sm"],
|
|
5339
|
-
|
|
5376
|
+
optionsWrapper: ["shadow-drop-sm", "rounded-sm", "p-[4px]"],
|
|
5377
|
+
option: ["px-[4px]", "py-[3px]", "rounded-sm", "text-sm", "gap-[4px]"],
|
|
5340
5378
|
helperMessage: ["text-sm"],
|
|
5341
5379
|
errorMessage: ["text-sm"]
|
|
5342
5380
|
},
|
|
@@ -5346,7 +5384,8 @@ var select = tv({
|
|
|
5346
5384
|
wrapper: ["gap-[6px]"],
|
|
5347
5385
|
selectWrapper: ["w-[240px]", "h-[32px]", "rounded-md", "px-[6px]"],
|
|
5348
5386
|
select: ["text-md"],
|
|
5349
|
-
|
|
5387
|
+
optionsWrapper: ["shadow-drop-md", "rounded-md", "p-[6px]"],
|
|
5388
|
+
option: ["px-[6px]", "py-[5.5px]", "rounded-md", "text-md", "gap-[6px]"],
|
|
5350
5389
|
helperMessage: ["text-sm"],
|
|
5351
5390
|
errorMessage: ["text-sm"]
|
|
5352
5391
|
},
|
|
@@ -5356,7 +5395,8 @@ var select = tv({
|
|
|
5356
5395
|
wrapper: ["gap-[8px]"],
|
|
5357
5396
|
selectWrapper: ["w-[240px]", "h-[40px]", "rounded-lg", "px-[8px]"],
|
|
5358
5397
|
select: ["text-lg"],
|
|
5359
|
-
|
|
5398
|
+
optionsWrapper: ["shadow-drop-lg", "rounded-lg", "p-[8px]"],
|
|
5399
|
+
option: ["px-[8px]", "py-[8px]", "rounded-lg", "text-lg", "gap-[8px]"],
|
|
5360
5400
|
helperMessage: ["text-md"],
|
|
5361
5401
|
errorMessage: ["text-md"]
|
|
5362
5402
|
},
|
|
@@ -5364,9 +5404,10 @@ var select = tv({
|
|
|
5364
5404
|
base: ["text-xl", "gap-[10px]"],
|
|
5365
5405
|
label: ["text-xl"],
|
|
5366
5406
|
wrapper: ["gap-[10px]"],
|
|
5367
|
-
selectWrapper: ["w-[240px]", "h-[50px]", "rounded-
|
|
5407
|
+
selectWrapper: ["w-[240px]", "h-[50px]", "rounded-xl", "px-[10px]"],
|
|
5368
5408
|
select: ["text-xl"],
|
|
5369
|
-
|
|
5409
|
+
optionsWrapper: ["shadow-drop-xl", "rounded-xl", "p-[10px]"],
|
|
5410
|
+
option: ["px-[10px]", "py-[11.5px]", , "rounded-xl", "text-xl", "gap-[10px]"],
|
|
5370
5411
|
helperMessage: ["text-md"],
|
|
5371
5412
|
errorMessage: ["text-md"]
|
|
5372
5413
|
}
|
|
@@ -5408,22 +5449,83 @@ var select = tv({
|
|
|
5408
5449
|
}
|
|
5409
5450
|
},
|
|
5410
5451
|
compoundVariants: [
|
|
5452
|
+
{
|
|
5453
|
+
variant: "outline",
|
|
5454
|
+
size: "sm",
|
|
5455
|
+
class: {
|
|
5456
|
+
option: ["hover:shadow-[inset_0_0_0_1px_var(--dn-neutral-light)]"]
|
|
5457
|
+
}
|
|
5458
|
+
},
|
|
5459
|
+
{
|
|
5460
|
+
variant: "outline",
|
|
5461
|
+
size: "md",
|
|
5462
|
+
class: {
|
|
5463
|
+
option: ["hover:shadow-[inset_0_0_0_1.25px_var(--dn-neutral-light)]"]
|
|
5464
|
+
}
|
|
5465
|
+
},
|
|
5466
|
+
{
|
|
5467
|
+
variant: "outline",
|
|
5468
|
+
size: "lg",
|
|
5469
|
+
class: {
|
|
5470
|
+
option: ["hover:shadow-[inset_0_0_0_1.5px_var(--dn-neutral-light)]"]
|
|
5471
|
+
}
|
|
5472
|
+
},
|
|
5473
|
+
{
|
|
5474
|
+
variant: "outline",
|
|
5475
|
+
size: "xl",
|
|
5476
|
+
class: {
|
|
5477
|
+
option: ["hover:shadow-[inset_0_0_0_1.75px_var(--dn-neutral-light)]"]
|
|
5478
|
+
}
|
|
5479
|
+
},
|
|
5480
|
+
{
|
|
5481
|
+
variant: "underline",
|
|
5482
|
+
size: "sm",
|
|
5483
|
+
class: {
|
|
5484
|
+
selectWrapper: ["border-b-sm"],
|
|
5485
|
+
option: ["hover:shadow-[inset_0_-1px_0_0_var(--dn-neutral-light)]"]
|
|
5486
|
+
}
|
|
5487
|
+
},
|
|
5488
|
+
{
|
|
5489
|
+
variant: "underline",
|
|
5490
|
+
size: "md",
|
|
5491
|
+
class: {
|
|
5492
|
+
selectWrapper: ["border-b-md"],
|
|
5493
|
+
option: ["hover:shadow-[inset_0_-1.25px_0_0_var(--dn-neutral-light)]"]
|
|
5494
|
+
}
|
|
5495
|
+
},
|
|
5496
|
+
{
|
|
5497
|
+
variant: "underline",
|
|
5498
|
+
size: "lg",
|
|
5499
|
+
class: {
|
|
5500
|
+
selectWrapper: ["border-b-lg"],
|
|
5501
|
+
option: ["hover:shadow-[inset_0_-1.5px_0_0_var(--dn-neutral-light)]"]
|
|
5502
|
+
}
|
|
5503
|
+
},
|
|
5504
|
+
{
|
|
5505
|
+
variant: "underline",
|
|
5506
|
+
size: "xl",
|
|
5507
|
+
class: {
|
|
5508
|
+
selectWrapper: ["border-b-xl"],
|
|
5509
|
+
option: ["hover:shadow-[inset_0_-1.75px_0_0_var(--dn-neutral-light)]"]
|
|
5510
|
+
}
|
|
5511
|
+
},
|
|
5411
5512
|
{
|
|
5412
5513
|
color: "primary",
|
|
5413
5514
|
isSelected: true,
|
|
5414
5515
|
class: {
|
|
5415
|
-
option: "
|
|
5516
|
+
option: ["text-primary-main"]
|
|
5416
5517
|
}
|
|
5417
5518
|
},
|
|
5418
5519
|
{
|
|
5419
5520
|
color: "secondary",
|
|
5420
5521
|
isSelected: true,
|
|
5421
5522
|
class: {
|
|
5422
|
-
option: "
|
|
5523
|
+
option: ["text-secondary-main"]
|
|
5423
5524
|
}
|
|
5424
5525
|
}
|
|
5425
5526
|
],
|
|
5426
5527
|
defaultVariants: {
|
|
5528
|
+
variant: "solid",
|
|
5427
5529
|
color: "primary",
|
|
5428
5530
|
size: "md",
|
|
5429
5531
|
direction: "vertical",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
select_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-GZEAMYAO.mjs";
|
|
5
5
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-YZ57UYAS.mjs";
|
|
7
7
|
import "../../chunk-E3G5QXSH.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-BG4DIGKH.mjs";
|
|
9
9
|
import "../../chunk-CDXBML6O.mjs";
|
|
10
10
|
import "../../chunk-27Y6K5NK.mjs";
|
|
11
11
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -20,7 +20,7 @@ interface DefinitionTableProps {
|
|
|
20
20
|
footer?: ReactNode;
|
|
21
21
|
classNames?: SlotsToClasses<DefinitionTableSlots>;
|
|
22
22
|
}
|
|
23
|
-
declare const
|
|
23
|
+
declare const DefinitionTable: react.ForwardRefExoticComponent<DefinitionTableProps & react.RefAttributes<HTMLDivElement>>;
|
|
24
24
|
|
|
25
25
|
declare const DefinitionTableStyle: tailwind_variants.TVReturnType<{
|
|
26
26
|
[key: string]: {
|
|
@@ -55,4 +55,4 @@ declare const DefinitionTableStyle: tailwind_variants.TVReturnType<{
|
|
|
55
55
|
}, undefined, unknown, unknown, undefined>>;
|
|
56
56
|
type DefinitionTableSlots = keyof ReturnType<typeof DefinitionTableStyle>;
|
|
57
57
|
|
|
58
|
-
export { type DefinitionTableRow, type DefinitionTableRowCell,
|
|
58
|
+
export { type DefinitionTableRow, type DefinitionTableRowCell, DefinitionTable as default };
|
|
@@ -20,7 +20,7 @@ interface DefinitionTableProps {
|
|
|
20
20
|
footer?: ReactNode;
|
|
21
21
|
classNames?: SlotsToClasses<DefinitionTableSlots>;
|
|
22
22
|
}
|
|
23
|
-
declare const
|
|
23
|
+
declare const DefinitionTable: react.ForwardRefExoticComponent<DefinitionTableProps & react.RefAttributes<HTMLDivElement>>;
|
|
24
24
|
|
|
25
25
|
declare const DefinitionTableStyle: tailwind_variants.TVReturnType<{
|
|
26
26
|
[key: string]: {
|
|
@@ -55,4 +55,4 @@ declare const DefinitionTableStyle: tailwind_variants.TVReturnType<{
|
|
|
55
55
|
}, undefined, unknown, unknown, undefined>>;
|
|
56
56
|
type DefinitionTableSlots = keyof ReturnType<typeof DefinitionTableStyle>;
|
|
57
57
|
|
|
58
|
-
export { type DefinitionTableRow, type DefinitionTableRowCell,
|
|
58
|
+
export { type DefinitionTableRow, type DefinitionTableRowCell, DefinitionTable as default };
|
|
@@ -389,7 +389,7 @@ function toVal(mix) {
|
|
|
389
389
|
|
|
390
390
|
// src/components/table/definition-table.tsx
|
|
391
391
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
392
|
-
var DEFAULT_CELL_CLASSES = "px-[10px] py-[
|
|
392
|
+
var DEFAULT_CELL_CLASSES = "px-[10px] py-[8px] text-md border-r border-neutral-light h-[50px]";
|
|
393
393
|
var FIRST_CELL_WIDTH_CLASS = "w-[120px] font-bold text-md text-body-foreground";
|
|
394
394
|
var renderColGroup = (rows) => {
|
|
395
395
|
let maxCols = 0;
|
|
@@ -418,7 +418,7 @@ var renderColGroup = (rows) => {
|
|
|
418
418
|
}
|
|
419
419
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("colgroup", { children: cols });
|
|
420
420
|
};
|
|
421
|
-
var DefinitionTableRow = ({ cells, className }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tr", { className: `border-neutral-light
|
|
421
|
+
var DefinitionTableRow = ({ cells, className }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tr", { className: `border-neutral-light border-b ${className || ""}`, children: cells.map((cell, colIndex) => {
|
|
422
422
|
const isFirstCell = colIndex === 0;
|
|
423
423
|
const combinedClassName = [isFirstCell ? FIRST_CELL_WIDTH_CLASS : "", clsx(DEFAULT_CELL_CLASSES, cell.className)].filter(Boolean).join(" ");
|
|
424
424
|
let cellStyle;
|
|
@@ -435,13 +435,13 @@ var DefinitionTableRow = ({ cells, className }) => /* @__PURE__ */ (0, import_js
|
|
|
435
435
|
className: combinedClassName,
|
|
436
436
|
colSpan: cell.colSpan,
|
|
437
437
|
rowSpan: cell.rowSpan,
|
|
438
|
-
style: cellStyle,
|
|
438
|
+
style: { ...cellStyle, height: "50px" },
|
|
439
439
|
children: cell.content
|
|
440
440
|
},
|
|
441
441
|
colIndex
|
|
442
442
|
);
|
|
443
443
|
}) });
|
|
444
|
-
var
|
|
444
|
+
var DefinitionTable = (0, import_react.forwardRef)(({ rows = [], footer, classNames }, ref) => {
|
|
445
445
|
const slots = (0, import_react.useMemo)(() => DefinitionTableStyle(), []);
|
|
446
446
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
447
447
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: [
|
|
@@ -451,8 +451,8 @@ var DefinitionTable2 = (0, import_react.forwardRef)(({ rows = [], footer, classN
|
|
|
451
451
|
footer && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: footer })
|
|
452
452
|
] });
|
|
453
453
|
});
|
|
454
|
-
|
|
455
|
-
var definition_table_default =
|
|
454
|
+
DefinitionTable.displayName = "DefinitionTable";
|
|
455
|
+
var definition_table_default = DefinitionTable;
|
|
456
456
|
var DefinitionTableStyle = tv({
|
|
457
457
|
slots: {
|
|
458
458
|
base: ["flex", "flex-col", "gap-[30px]"],
|
|
@@ -2199,22 +2199,28 @@ var template = {
|
|
|
2199
2199
|
}
|
|
2200
2200
|
);
|
|
2201
2201
|
},
|
|
2202
|
-
|
|
2203
|
-
// ** Status **
|
|
2204
|
-
check: ({ className, fill }) => {
|
|
2202
|
+
check: ({ className }) => {
|
|
2205
2203
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2206
2204
|
"svg",
|
|
2207
2205
|
{
|
|
2208
|
-
width: "24",
|
|
2209
|
-
height: "24",
|
|
2210
|
-
viewBox: "0 0 24 24",
|
|
2211
|
-
fill: "none",
|
|
2212
2206
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2207
|
+
width: "27",
|
|
2208
|
+
height: "28",
|
|
2209
|
+
viewBox: "0 0 27 28",
|
|
2210
|
+
fill: "none",
|
|
2213
2211
|
className,
|
|
2214
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2212
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2213
|
+
"path",
|
|
2214
|
+
{
|
|
2215
|
+
d: "M21.9264 5.20931C22.1812 5.39338 22.3846 5.59774 22.4858 5.90334C22.5588 6.45228 22.3415 6.78579 22.0286 7.20666C21.9576 7.30047 21.8864 7.39405 21.8151 7.48762C21.6895 7.65415 21.5677 7.8235 21.4454 7.99253C21.2259 8.29482 21.0028 8.59408 20.7773 8.89185C20.4766 9.2892 20.1815 9.69044 19.889 10.094C19.8125 10.1993 19.7358 10.3044 19.659 10.4094C19.4079 10.7529 19.1577 11.0971 18.91 11.4431C18.8896 11.4716 18.8692 11.5001 18.8482 11.5294C18.7754 11.6314 18.703 11.7337 18.6307 11.8361C18.6035 11.8747 18.6035 11.8747 18.5756 11.9141C18.2362 12.3955 17.9059 12.8824 17.5821 13.3746C17.5478 13.4267 17.5478 13.4267 17.5128 13.4798C16.951 14.3338 16.425 15.1996 15.9364 16.0988C15.8817 16.1993 15.8266 16.2995 15.7713 16.3996C14.803 18.183 14.0974 20.1792 13.8032 22.1948C13.7275 22.4843 13.5304 22.7004 13.2862 22.8603C12.8671 23.0504 12.4792 23.0344 12.0524 22.8851C11.7159 22.6982 11.4492 22.3832 11.1807 22.1105C11.1305 22.06 11.1305 22.06 11.0793 22.0085C11.0463 21.9751 11.0133 21.9417 10.9793 21.9072C10.9355 21.8629 10.9355 21.8629 10.8908 21.8177C10.812 21.7336 10.738 21.6487 10.664 21.5606C10.4051 21.26 10.1208 20.9832 9.84198 20.7018C9.77941 20.6385 9.71685 20.5753 9.65429 20.512C9.52361 20.3798 9.39285 20.2478 9.26203 20.1158C9.0951 19.9473 8.92837 19.7787 8.76169 19.61C8.63267 19.4794 8.50355 19.349 8.37439 19.2186C8.3129 19.1564 8.25145 19.0943 8.19002 19.0321C7.78034 18.6148 7.78034 18.6148 7.3481 18.2218C7.26354 18.1493 7.18628 18.0708 7.1093 17.9902C6.97131 17.8488 6.8284 17.7169 6.67944 17.5876C6.56805 17.4895 6.45958 17.3885 6.35088 17.2873C6.15574 17.1075 5.95513 16.937 5.74972 16.7694C5.52338 16.5822 5.30225 16.3888 5.08115 16.1954C5.02902 16.1502 4.97647 16.1055 4.92361 16.0611C4.88291 16.0268 4.88291 16.0268 4.84139 15.9918C4.81684 15.9713 4.79228 15.9509 4.76699 15.9298C4.5693 15.7391 4.51301 15.5207 4.5 15.2507C4.5151 14.872 4.65787 14.6052 4.92439 14.3431C5.23566 14.0858 5.58225 13.9705 5.98399 13.9889C6.39409 14.0467 6.67261 14.2696 6.97788 14.5368C7.04531 14.5941 7.11275 14.6513 7.18024 14.7085C7.27801 14.7916 7.37519 14.8755 7.47238 14.9593C7.54704 15.0235 7.62196 15.0874 7.69694 15.1513C8.02915 15.4353 8.34957 15.7298 8.66619 16.0314C8.78965 16.1489 8.91524 16.2635 9.04232 16.3769C9.24098 16.556 9.42848 16.745 9.61441 16.9374C9.73206 17.0583 9.85175 17.1731 9.97956 17.283C10.2352 17.5064 10.4711 17.7507 10.7095 17.9925C10.7917 18.0758 10.8741 18.1589 10.9566 18.2419C11.4347 18.7249 11.4347 18.7249 11.6464 18.9799C11.7218 19.0675 11.8025 19.1485 11.8843 19.2299C11.898 19.1896 11.9116 19.1493 11.9257 19.1078C12.2024 18.2927 12.4869 17.488 12.8481 16.7062C12.8687 16.6616 12.8892 16.617 12.9104 16.571C13.6549 14.9617 14.5337 13.4385 15.5204 11.9689C15.553 11.9203 15.553 11.9203 15.5863 11.8707C16.0931 11.1161 16.6136 10.3732 17.1508 9.6404C17.2538 9.49984 17.3564 9.35903 17.4591 9.2182C17.5357 9.11296 17.6125 9.00777 17.6892 8.90257C17.7905 8.76367 17.8916 8.62462 17.9924 8.48543C18.2637 8.11165 18.5381 7.74072 18.8169 7.37269C19.0086 7.11969 19.1989 6.86631 19.381 6.6062C19.4144 6.55854 19.4478 6.51089 19.4823 6.46179C19.5085 6.42434 19.5085 6.42434 19.5353 6.38614C19.6584 6.21085 19.782 6.03602 19.9066 5.86184C19.9313 5.8267 19.9559 5.79157 19.9813 5.75537C20.4573 5.09349 21.1643 4.75205 21.9264 5.20931Z",
|
|
2216
|
+
fill: "currentColor"
|
|
2217
|
+
}
|
|
2218
|
+
)
|
|
2215
2219
|
}
|
|
2216
2220
|
);
|
|
2217
2221
|
},
|
|
2222
|
+
// ----------------------------------- old ---------------------------------
|
|
2223
|
+
// ** Status **
|
|
2218
2224
|
"plus-circle": ({ className, fill }) => {
|
|
2219
2225
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2220
2226
|
"svg",
|
|
@@ -6575,7 +6581,7 @@ var getCellStyle = (column) => {
|
|
|
6575
6581
|
// src/components/table/definition-table.tsx
|
|
6576
6582
|
var import_react6 = require("react");
|
|
6577
6583
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
6578
|
-
var DEFAULT_CELL_CLASSES = "px-[10px] py-[
|
|
6584
|
+
var DEFAULT_CELL_CLASSES = "px-[10px] py-[8px] text-md border-r border-neutral-light h-[50px]";
|
|
6579
6585
|
var FIRST_CELL_WIDTH_CLASS = "w-[120px] font-bold text-md text-body-foreground";
|
|
6580
6586
|
var renderColGroup = (rows) => {
|
|
6581
6587
|
let maxCols = 0;
|
|
@@ -6604,7 +6610,7 @@ var renderColGroup = (rows) => {
|
|
|
6604
6610
|
}
|
|
6605
6611
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("colgroup", { children: cols });
|
|
6606
6612
|
};
|
|
6607
|
-
var DefinitionTableRow = ({ cells, className }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("tr", { className: `border-neutral-light
|
|
6613
|
+
var DefinitionTableRow = ({ cells, className }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("tr", { className: `border-neutral-light border-b ${className || ""}`, children: cells.map((cell, colIndex) => {
|
|
6608
6614
|
const isFirstCell = colIndex === 0;
|
|
6609
6615
|
const combinedClassName = [isFirstCell ? FIRST_CELL_WIDTH_CLASS : "", clsx(DEFAULT_CELL_CLASSES, cell.className)].filter(Boolean).join(" ");
|
|
6610
6616
|
let cellStyle;
|
|
@@ -6621,13 +6627,13 @@ var DefinitionTableRow = ({ cells, className }) => /* @__PURE__ */ (0, import_js
|
|
|
6621
6627
|
className: combinedClassName,
|
|
6622
6628
|
colSpan: cell.colSpan,
|
|
6623
6629
|
rowSpan: cell.rowSpan,
|
|
6624
|
-
style: cellStyle,
|
|
6630
|
+
style: { ...cellStyle, height: "50px" },
|
|
6625
6631
|
children: cell.content
|
|
6626
6632
|
},
|
|
6627
6633
|
colIndex
|
|
6628
6634
|
);
|
|
6629
6635
|
}) });
|
|
6630
|
-
var
|
|
6636
|
+
var DefinitionTable = (0, import_react6.forwardRef)(({ rows = [], footer, classNames }, ref) => {
|
|
6631
6637
|
const slots = (0, import_react6.useMemo)(() => DefinitionTableStyle(), []);
|
|
6632
6638
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
6633
6639
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: [
|
|
@@ -6637,8 +6643,8 @@ var DefinitionTable2 = (0, import_react6.forwardRef)(({ rows = [], footer, class
|
|
|
6637
6643
|
footer && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { children: footer })
|
|
6638
6644
|
] });
|
|
6639
6645
|
});
|
|
6640
|
-
|
|
6641
|
-
var definition_table_default =
|
|
6646
|
+
DefinitionTable.displayName = "DefinitionTable";
|
|
6647
|
+
var definition_table_default = DefinitionTable;
|
|
6642
6648
|
var DefinitionTableStyle = tv({
|
|
6643
6649
|
slots: {
|
|
6644
6650
|
base: ["flex", "flex-col", "gap-[30px]"],
|