@deepnoid/ui 0.1.119 → 0.1.121
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 +172 -172
- 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-MIVGSJFF.mjs → chunk-3YT4YJNJ.mjs} +189 -94
- 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-BBQNVDIA.mjs → chunk-HX64P3XQ.mjs} +2 -2
- package/dist/{chunk-KCOS2KC6.mjs → chunk-LOYDOCOR.mjs} +2 -2
- package/dist/{chunk-U33MTXQX.mjs → chunk-OGJONB7G.mjs} +2 -2
- package/dist/{chunk-Q5634WTM.mjs → chunk-RVFSQFWS.mjs} +3 -3
- package/dist/{chunk-MHZ4BO5M.mjs → chunk-UEJJBAHG.mjs} +2 -2
- 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/charts/barChart.js +2 -2
- package/dist/components/charts/barChart.mjs +1 -1
- package/dist/components/charts/index.js +2 -2
- package/dist/components/charts/index.mjs +1 -1
- 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 +202 -101
- package/dist/components/picker/index.mjs +8 -8
- package/dist/components/picker/timePicker.js +202 -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 +202 -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 +202 -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 +210 -109
- package/dist/index.mjs +30 -30
- package/package.json +1 -1
|
@@ -1723,22 +1723,28 @@ var template = {
|
|
|
1723
1723
|
}
|
|
1724
1724
|
);
|
|
1725
1725
|
},
|
|
1726
|
-
|
|
1727
|
-
// ** Status **
|
|
1728
|
-
check: ({ className, fill }) => {
|
|
1726
|
+
check: ({ className }) => {
|
|
1729
1727
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1730
1728
|
"svg",
|
|
1731
1729
|
{
|
|
1732
|
-
width: "24",
|
|
1733
|
-
height: "24",
|
|
1734
|
-
viewBox: "0 0 24 24",
|
|
1735
|
-
fill: "none",
|
|
1736
1730
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1731
|
+
width: "27",
|
|
1732
|
+
height: "28",
|
|
1733
|
+
viewBox: "0 0 27 28",
|
|
1734
|
+
fill: "none",
|
|
1737
1735
|
className,
|
|
1738
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1736
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1737
|
+
"path",
|
|
1738
|
+
{
|
|
1739
|
+
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",
|
|
1740
|
+
fill: "currentColor"
|
|
1741
|
+
}
|
|
1742
|
+
)
|
|
1739
1743
|
}
|
|
1740
1744
|
);
|
|
1741
1745
|
},
|
|
1746
|
+
// ----------------------------------- old ---------------------------------
|
|
1747
|
+
// ** Status **
|
|
1742
1748
|
"plus-circle": ({ className, fill }) => {
|
|
1743
1749
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1744
1750
|
"svg",
|
|
@@ -5095,6 +5101,9 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
5095
5101
|
defaultSelectedOptions,
|
|
5096
5102
|
onChange,
|
|
5097
5103
|
multiple,
|
|
5104
|
+
dropdownIconName = "brace-up",
|
|
5105
|
+
optionIconName,
|
|
5106
|
+
optionIconPlacement,
|
|
5098
5107
|
...inputProps
|
|
5099
5108
|
} = props;
|
|
5100
5109
|
const slots = (0, import_react.useMemo)(() => select({ ...variantProps }), [variantProps]);
|
|
@@ -5105,19 +5114,22 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
5105
5114
|
const [isOpen, setIsOpen] = (0, import_react.useState)(false);
|
|
5106
5115
|
const selectWrapperRef = (0, import_react.useRef)(null);
|
|
5107
5116
|
const optionWrapperRef = (0, import_react.useRef)(null);
|
|
5108
|
-
const
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
setTargetRect(rect);
|
|
5116
|
-
setIsVisible(true);
|
|
5117
|
-
requestAnimationFrame(() => setIsOpen(true));
|
|
5118
|
-
}
|
|
5117
|
+
const isControlled = originalProps.value !== void 0;
|
|
5118
|
+
const openSelect = () => {
|
|
5119
|
+
if (selectWrapperRef.current) {
|
|
5120
|
+
const rect = selectWrapperRef.current.getBoundingClientRect();
|
|
5121
|
+
setTargetRect(rect);
|
|
5122
|
+
setIsVisible(true);
|
|
5123
|
+
requestAnimationFrame(() => setIsOpen(true));
|
|
5119
5124
|
}
|
|
5120
5125
|
};
|
|
5126
|
+
const closeSelect = () => {
|
|
5127
|
+
setIsOpen(false);
|
|
5128
|
+
setTimeout(() => setIsVisible(false), 150);
|
|
5129
|
+
};
|
|
5130
|
+
const handleToggleSelect = () => {
|
|
5131
|
+
isOpen ? closeSelect() : openSelect();
|
|
5132
|
+
};
|
|
5121
5133
|
const calculatePositionWithScroll = (rect, height) => {
|
|
5122
5134
|
const scrollTop = window.scrollY;
|
|
5123
5135
|
const scrollLeft = window.scrollX;
|
|
@@ -5136,8 +5148,7 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
5136
5148
|
nextOptions = exists ? selectedOptions.filter((o) => o.value !== option.value) : [...selectedOptions, option];
|
|
5137
5149
|
} else {
|
|
5138
5150
|
nextOptions = [option];
|
|
5139
|
-
|
|
5140
|
-
setTimeout(() => setIsVisible(false), 150);
|
|
5151
|
+
closeSelect();
|
|
5141
5152
|
}
|
|
5142
5153
|
setSelectedOptions(nextOptions);
|
|
5143
5154
|
onChange == null ? void 0 : onChange(nextOptions);
|
|
@@ -5145,9 +5156,9 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
5145
5156
|
(0, import_react.useEffect)(() => {
|
|
5146
5157
|
const handleClickOutside = (e) => {
|
|
5147
5158
|
var _a2;
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5159
|
+
const target = e.target;
|
|
5160
|
+
if (optionWrapperRef.current && !optionWrapperRef.current.contains(target) && !((_a2 = selectWrapperRef.current) == null ? void 0 : _a2.contains(target))) {
|
|
5161
|
+
closeSelect();
|
|
5151
5162
|
}
|
|
5152
5163
|
};
|
|
5153
5164
|
window.addEventListener("mousedown", handleClickOutside);
|
|
@@ -5158,42 +5169,63 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
5158
5169
|
setOptionWrapperHeight(optionWrapperRef.current.getBoundingClientRect().height);
|
|
5159
5170
|
}
|
|
5160
5171
|
}, [targetRect]);
|
|
5161
|
-
const position = targetRect ? calculatePositionWithScroll(targetRect, optionWrapperHeight) : null;
|
|
5162
|
-
const displayValue = multiple ? selectedOptions.map((opt) => opt.label).join(", ") : ((_a = selectedOptions[0]) == null ? void 0 : _a.label) || "";
|
|
5163
|
-
const selectedValue = multiple ? selectedOptions.map((opt) => opt.value).join(", ") : ((_b = selectedOptions[0]) == null ? void 0 : _b.value) || "";
|
|
5164
|
-
const Option = ({
|
|
5165
|
-
option,
|
|
5166
|
-
isSelected,
|
|
5167
|
-
onClick
|
|
5168
|
-
}) => {
|
|
5169
|
-
const slot = select({ ...variantProps, isSelected });
|
|
5170
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
5171
|
-
"div",
|
|
5172
|
-
{
|
|
5173
|
-
role: "option",
|
|
5174
|
-
title: option.label,
|
|
5175
|
-
onClick,
|
|
5176
|
-
className: clsx(slot.option({ class: classNames == null ? void 0 : classNames.option })),
|
|
5177
|
-
children: [
|
|
5178
|
-
option.label,
|
|
5179
|
-
isSelected && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "check", size: originalProps.size })
|
|
5180
|
-
]
|
|
5181
|
-
}
|
|
5182
|
-
);
|
|
5183
|
-
};
|
|
5184
|
-
const isControlled = originalProps.value !== void 0;
|
|
5185
5172
|
(0, import_react.useEffect)(() => {
|
|
5186
5173
|
if (isControlled) {
|
|
5187
5174
|
const valueArray = Array.isArray(originalProps.value) ? originalProps.value : [originalProps.value];
|
|
5188
|
-
const
|
|
5189
|
-
setSelectedOptions(
|
|
5190
|
-
}
|
|
5191
|
-
}, [originalProps.value, options]);
|
|
5192
|
-
(0, import_react.useEffect)(() => {
|
|
5193
|
-
if (!isControlled && defaultSelectedOptions) {
|
|
5175
|
+
const matched = options.filter((opt) => valueArray.includes(opt.value));
|
|
5176
|
+
setSelectedOptions(matched);
|
|
5177
|
+
} else if (defaultSelectedOptions) {
|
|
5194
5178
|
setSelectedOptions(defaultSelectedOptions);
|
|
5195
5179
|
}
|
|
5196
|
-
}, [defaultSelectedOptions]);
|
|
5180
|
+
}, [originalProps.value, defaultSelectedOptions, options]);
|
|
5181
|
+
const position = targetRect ? calculatePositionWithScroll(targetRect, optionWrapperHeight) : null;
|
|
5182
|
+
const displayValue = multiple ? selectedOptions.map((opt) => opt.label).join(", ") : ((_a = selectedOptions[0]) == null ? void 0 : _a.label) || "";
|
|
5183
|
+
const selectedValue = multiple ? selectedOptions.map((opt) => opt.value).join(",") : ((_b = selectedOptions[0]) == null ? void 0 : _b.value) || "";
|
|
5184
|
+
const renderOptions = () => {
|
|
5185
|
+
if (!isVisible) return null;
|
|
5186
|
+
return (0, import_react_dom.createPortal)(
|
|
5187
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
5188
|
+
"div",
|
|
5189
|
+
{
|
|
5190
|
+
ref: optionWrapperRef,
|
|
5191
|
+
role: "listbox",
|
|
5192
|
+
className: slots.optionsWrapper({ class: classNames == null ? void 0 : classNames.optionsWrapper }),
|
|
5193
|
+
style: {
|
|
5194
|
+
position: "absolute",
|
|
5195
|
+
top: position == null ? void 0 : position.top,
|
|
5196
|
+
left: position == null ? void 0 : position.left,
|
|
5197
|
+
width: targetRect == null ? void 0 : targetRect.width,
|
|
5198
|
+
zIndex: 1e3,
|
|
5199
|
+
opacity: isOpen ? 1 : 0,
|
|
5200
|
+
transform: isOpen ? "translateY(0)" : "translateY(-0.25rem)",
|
|
5201
|
+
transition: "opacity 150ms ease-out, transform 150ms ease-out"
|
|
5202
|
+
},
|
|
5203
|
+
children: options.map((option) => {
|
|
5204
|
+
const isSelected = selectedOptions.some((o) => o.value === option.value);
|
|
5205
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
5206
|
+
"div",
|
|
5207
|
+
{
|
|
5208
|
+
role: "option",
|
|
5209
|
+
title: option.label,
|
|
5210
|
+
onClick: () => handleChangeOption(option),
|
|
5211
|
+
className: clsx(
|
|
5212
|
+
select({ ...variantProps, isSelected }).option({ class: classNames == null ? void 0 : classNames.option }),
|
|
5213
|
+
optionIconPlacement === "end" ? "justify-between" : ""
|
|
5214
|
+
),
|
|
5215
|
+
children: [
|
|
5216
|
+
optionIconName && optionIconPlacement === "start" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: optionIconName, size: originalProps.size }),
|
|
5217
|
+
option.label,
|
|
5218
|
+
optionIconName && optionIconPlacement === "end" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: optionIconName, size: originalProps.size })
|
|
5219
|
+
]
|
|
5220
|
+
},
|
|
5221
|
+
option.value
|
|
5222
|
+
);
|
|
5223
|
+
})
|
|
5224
|
+
}
|
|
5225
|
+
),
|
|
5226
|
+
document.body
|
|
5227
|
+
);
|
|
5228
|
+
};
|
|
5197
5229
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
|
|
5198
5230
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
5199
5231
|
"div",
|
|
@@ -5235,7 +5267,7 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
5235
5267
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
5236
5268
|
Icon_default,
|
|
5237
5269
|
{
|
|
5238
|
-
name:
|
|
5270
|
+
name: dropdownIconName,
|
|
5239
5271
|
size: originalProps.size,
|
|
5240
5272
|
className: `transition-transform duration-200 ${isOpen ? "rotate-0" : "rotate-180"}`
|
|
5241
5273
|
}
|
|
@@ -5249,39 +5281,7 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
5249
5281
|
]
|
|
5250
5282
|
}
|
|
5251
5283
|
),
|
|
5252
|
-
|
|
5253
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
5254
|
-
"div",
|
|
5255
|
-
{
|
|
5256
|
-
ref: optionWrapperRef,
|
|
5257
|
-
role: "listbox",
|
|
5258
|
-
className: slots.optionsWrapper({ class: classNames == null ? void 0 : classNames.optionsWrapper }),
|
|
5259
|
-
style: {
|
|
5260
|
-
position: "absolute",
|
|
5261
|
-
top: position == null ? void 0 : position.top,
|
|
5262
|
-
left: position == null ? void 0 : position.left,
|
|
5263
|
-
width: targetRect == null ? void 0 : targetRect.width,
|
|
5264
|
-
zIndex: 1e3,
|
|
5265
|
-
opacity: isOpen ? 1 : 0,
|
|
5266
|
-
transform: isOpen ? "translateY(0)" : "translateY(-0.25rem)",
|
|
5267
|
-
transition: "opacity 150ms ease-out, transform 150ms ease-out"
|
|
5268
|
-
},
|
|
5269
|
-
children: options.map((option) => {
|
|
5270
|
-
const isSelected = selectedOptions.some((o) => o.value === option.value);
|
|
5271
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
5272
|
-
Option,
|
|
5273
|
-
{
|
|
5274
|
-
option,
|
|
5275
|
-
isSelected,
|
|
5276
|
-
onClick: () => handleChangeOption(option)
|
|
5277
|
-
},
|
|
5278
|
-
option.value
|
|
5279
|
-
);
|
|
5280
|
-
})
|
|
5281
|
-
}
|
|
5282
|
-
),
|
|
5283
|
-
document.body
|
|
5284
|
-
)
|
|
5284
|
+
renderOptions()
|
|
5285
5285
|
] });
|
|
5286
5286
|
});
|
|
5287
5287
|
Select.displayName = "Select";
|
|
@@ -5297,7 +5297,6 @@ var select = tv({
|
|
|
5297
5297
|
"flex",
|
|
5298
5298
|
"items-center",
|
|
5299
5299
|
"justify-between",
|
|
5300
|
-
"border",
|
|
5301
5300
|
"cursor-pointer",
|
|
5302
5301
|
"text-neutral-main",
|
|
5303
5302
|
"hover:bg-trans-soft",
|
|
@@ -5315,22 +5314,59 @@ var select = tv({
|
|
|
5315
5314
|
"group-has-[p.error]/select:text-danger-main",
|
|
5316
5315
|
"group-has-[p.error]/select:placeholder:text-danger-main"
|
|
5317
5316
|
],
|
|
5318
|
-
optionsWrapper: ["
|
|
5319
|
-
option: [
|
|
5317
|
+
optionsWrapper: ["bg-body-background", "overflow-auto", "flex", "flex-col", "gap-[10px]"],
|
|
5318
|
+
option: [
|
|
5319
|
+
"flex",
|
|
5320
|
+
"items-center",
|
|
5321
|
+
"cursor-pointer",
|
|
5322
|
+
"text-neutral-dark",
|
|
5323
|
+
"hover:bg-trans-soft",
|
|
5324
|
+
"hover:text-neutral-strong"
|
|
5325
|
+
],
|
|
5320
5326
|
helperMessage: ["text-neutral-main"],
|
|
5321
5327
|
errorMessage: ["text-danger-main"],
|
|
5322
5328
|
readonly: ["pointer-events-none", "!bg-trans-soft"]
|
|
5323
5329
|
},
|
|
5324
5330
|
variants: {
|
|
5331
|
+
variant: {
|
|
5332
|
+
solid: {
|
|
5333
|
+
selectWrapper: ["border-transparent", "bg-trans-soft"],
|
|
5334
|
+
option: [],
|
|
5335
|
+
readonlyWrapper: ["!bg-trans-light"]
|
|
5336
|
+
},
|
|
5337
|
+
outline: {
|
|
5338
|
+
selectWrapper: [
|
|
5339
|
+
"border-neutral-light",
|
|
5340
|
+
"border",
|
|
5341
|
+
"group-has-[:hover]/select:bg-trans-soft",
|
|
5342
|
+
"group-has-[:focus]/select:bg-body-background",
|
|
5343
|
+
"group-has-[p.error]/select:border-danger-main"
|
|
5344
|
+
],
|
|
5345
|
+
option: [],
|
|
5346
|
+
readonlyWrapper: ["!bg-trans-soft"]
|
|
5347
|
+
},
|
|
5348
|
+
underline: {
|
|
5349
|
+
selectWrapper: [
|
|
5350
|
+
"bg-transparent",
|
|
5351
|
+
"border-neutral-light",
|
|
5352
|
+
"!rounded-none",
|
|
5353
|
+
"group-has-[:hover]/select:bg-trans-soft",
|
|
5354
|
+
"group-has-[:focus]/select:bg-body-background",
|
|
5355
|
+
"group-has-[p.error]/select:border-danger-main"
|
|
5356
|
+
],
|
|
5357
|
+
option: ["!rounded-none"],
|
|
5358
|
+
readonlyWrapper: ["!bg-trans-soft"]
|
|
5359
|
+
}
|
|
5360
|
+
},
|
|
5325
5361
|
color: {
|
|
5326
5362
|
primary: {
|
|
5327
5363
|
selectWrapper: ["text-primary-main"],
|
|
5328
|
-
option: [
|
|
5364
|
+
option: [],
|
|
5329
5365
|
helperMessage: ["text-primary-main"]
|
|
5330
5366
|
},
|
|
5331
5367
|
secondary: {
|
|
5332
5368
|
selectWrapper: ["text-secondary-main"],
|
|
5333
|
-
option: [
|
|
5369
|
+
option: [],
|
|
5334
5370
|
helperMessage: ["text-secondary-main"]
|
|
5335
5371
|
}
|
|
5336
5372
|
},
|
|
@@ -5341,7 +5377,8 @@ var select = tv({
|
|
|
5341
5377
|
wrapper: ["gap-[4px]"],
|
|
5342
5378
|
selectWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-[4px]"],
|
|
5343
5379
|
select: ["text-sm"],
|
|
5344
|
-
|
|
5380
|
+
optionsWrapper: ["shadow-drop-sm", "rounded-sm", "p-[4px]"],
|
|
5381
|
+
option: ["px-[4px]", "py-[3px]", "rounded-sm", "text-sm", "gap-[4px]"],
|
|
5345
5382
|
helperMessage: ["text-sm"],
|
|
5346
5383
|
errorMessage: ["text-sm"]
|
|
5347
5384
|
},
|
|
@@ -5351,7 +5388,8 @@ var select = tv({
|
|
|
5351
5388
|
wrapper: ["gap-[6px]"],
|
|
5352
5389
|
selectWrapper: ["w-[240px]", "h-[32px]", "rounded-md", "px-[6px]"],
|
|
5353
5390
|
select: ["text-md"],
|
|
5354
|
-
|
|
5391
|
+
optionsWrapper: ["shadow-drop-md", "rounded-md", "p-[6px]"],
|
|
5392
|
+
option: ["px-[6px]", "py-[5.5px]", "rounded-md", "text-md", "gap-[6px]"],
|
|
5355
5393
|
helperMessage: ["text-sm"],
|
|
5356
5394
|
errorMessage: ["text-sm"]
|
|
5357
5395
|
},
|
|
@@ -5361,7 +5399,8 @@ var select = tv({
|
|
|
5361
5399
|
wrapper: ["gap-[8px]"],
|
|
5362
5400
|
selectWrapper: ["w-[240px]", "h-[40px]", "rounded-lg", "px-[8px]"],
|
|
5363
5401
|
select: ["text-lg"],
|
|
5364
|
-
|
|
5402
|
+
optionsWrapper: ["shadow-drop-lg", "rounded-lg", "p-[8px]"],
|
|
5403
|
+
option: ["px-[8px]", "py-[8px]", "rounded-lg", "text-lg", "gap-[8px]"],
|
|
5365
5404
|
helperMessage: ["text-md"],
|
|
5366
5405
|
errorMessage: ["text-md"]
|
|
5367
5406
|
},
|
|
@@ -5369,9 +5408,10 @@ var select = tv({
|
|
|
5369
5408
|
base: ["text-xl", "gap-[10px]"],
|
|
5370
5409
|
label: ["text-xl"],
|
|
5371
5410
|
wrapper: ["gap-[10px]"],
|
|
5372
|
-
selectWrapper: ["w-[240px]", "h-[50px]", "rounded-
|
|
5411
|
+
selectWrapper: ["w-[240px]", "h-[50px]", "rounded-xl", "px-[10px]"],
|
|
5373
5412
|
select: ["text-xl"],
|
|
5374
|
-
|
|
5413
|
+
optionsWrapper: ["shadow-drop-xl", "rounded-xl", "p-[10px]"],
|
|
5414
|
+
option: ["px-[10px]", "py-[11.5px]", , "rounded-xl", "text-xl", "gap-[10px]"],
|
|
5375
5415
|
helperMessage: ["text-md"],
|
|
5376
5416
|
errorMessage: ["text-md"]
|
|
5377
5417
|
}
|
|
@@ -5413,22 +5453,83 @@ var select = tv({
|
|
|
5413
5453
|
}
|
|
5414
5454
|
},
|
|
5415
5455
|
compoundVariants: [
|
|
5456
|
+
{
|
|
5457
|
+
variant: "outline",
|
|
5458
|
+
size: "sm",
|
|
5459
|
+
class: {
|
|
5460
|
+
option: ["hover:shadow-[inset_0_0_0_1px_var(--dn-neutral-light)]"]
|
|
5461
|
+
}
|
|
5462
|
+
},
|
|
5463
|
+
{
|
|
5464
|
+
variant: "outline",
|
|
5465
|
+
size: "md",
|
|
5466
|
+
class: {
|
|
5467
|
+
option: ["hover:shadow-[inset_0_0_0_1.25px_var(--dn-neutral-light)]"]
|
|
5468
|
+
}
|
|
5469
|
+
},
|
|
5470
|
+
{
|
|
5471
|
+
variant: "outline",
|
|
5472
|
+
size: "lg",
|
|
5473
|
+
class: {
|
|
5474
|
+
option: ["hover:shadow-[inset_0_0_0_1.5px_var(--dn-neutral-light)]"]
|
|
5475
|
+
}
|
|
5476
|
+
},
|
|
5477
|
+
{
|
|
5478
|
+
variant: "outline",
|
|
5479
|
+
size: "xl",
|
|
5480
|
+
class: {
|
|
5481
|
+
option: ["hover:shadow-[inset_0_0_0_1.75px_var(--dn-neutral-light)]"]
|
|
5482
|
+
}
|
|
5483
|
+
},
|
|
5484
|
+
{
|
|
5485
|
+
variant: "underline",
|
|
5486
|
+
size: "sm",
|
|
5487
|
+
class: {
|
|
5488
|
+
selectWrapper: ["border-b-sm"],
|
|
5489
|
+
option: ["hover:shadow-[inset_0_-1px_0_0_var(--dn-neutral-light)]"]
|
|
5490
|
+
}
|
|
5491
|
+
},
|
|
5492
|
+
{
|
|
5493
|
+
variant: "underline",
|
|
5494
|
+
size: "md",
|
|
5495
|
+
class: {
|
|
5496
|
+
selectWrapper: ["border-b-md"],
|
|
5497
|
+
option: ["hover:shadow-[inset_0_-1.25px_0_0_var(--dn-neutral-light)]"]
|
|
5498
|
+
}
|
|
5499
|
+
},
|
|
5500
|
+
{
|
|
5501
|
+
variant: "underline",
|
|
5502
|
+
size: "lg",
|
|
5503
|
+
class: {
|
|
5504
|
+
selectWrapper: ["border-b-lg"],
|
|
5505
|
+
option: ["hover:shadow-[inset_0_-1.5px_0_0_var(--dn-neutral-light)]"]
|
|
5506
|
+
}
|
|
5507
|
+
},
|
|
5508
|
+
{
|
|
5509
|
+
variant: "underline",
|
|
5510
|
+
size: "xl",
|
|
5511
|
+
class: {
|
|
5512
|
+
selectWrapper: ["border-b-xl"],
|
|
5513
|
+
option: ["hover:shadow-[inset_0_-1.75px_0_0_var(--dn-neutral-light)]"]
|
|
5514
|
+
}
|
|
5515
|
+
},
|
|
5416
5516
|
{
|
|
5417
5517
|
color: "primary",
|
|
5418
5518
|
isSelected: true,
|
|
5419
5519
|
class: {
|
|
5420
|
-
option: "
|
|
5520
|
+
option: ["text-primary-main"]
|
|
5421
5521
|
}
|
|
5422
5522
|
},
|
|
5423
5523
|
{
|
|
5424
5524
|
color: "secondary",
|
|
5425
5525
|
isSelected: true,
|
|
5426
5526
|
class: {
|
|
5427
|
-
option: "
|
|
5527
|
+
option: ["text-secondary-main"]
|
|
5428
5528
|
}
|
|
5429
5529
|
}
|
|
5430
5530
|
],
|
|
5431
5531
|
defaultVariants: {
|
|
5532
|
+
variant: "solid",
|
|
5432
5533
|
color: "primary",
|
|
5433
5534
|
size: "md",
|
|
5434
5535
|
direction: "vertical",
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
timePickerStyle,
|
|
4
4
|
timePicker_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-UEJJBAHG.mjs";
|
|
6
6
|
import "../../chunk-QCEKPS7U.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-3YT4YJNJ.mjs";
|
|
8
8
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-YZ57UYAS.mjs";
|
|
10
10
|
import "../../chunk-E3G5QXSH.mjs";
|
|
11
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-BG4DIGKH.mjs";
|
|
12
12
|
import "../../chunk-CDXBML6O.mjs";
|
|
13
13
|
import "../../chunk-27Y6K5NK.mjs";
|
|
14
14
|
import "../../chunk-AC6TWLRT.mjs";
|