@yeverlibs/ds 1.1.1 → 1.1.2
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.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -736,9 +736,9 @@ type SelectProps = {
|
|
|
736
736
|
label?: string
|
|
737
737
|
placeholder?: string
|
|
738
738
|
options: SelectOption[]
|
|
739
|
-
onSelect: (option: SelectOption) => void
|
|
739
|
+
onSelect: (option: SelectOption | null) => void
|
|
740
740
|
className?: string
|
|
741
|
-
value?: SelectOption
|
|
741
|
+
value?: SelectOption | null
|
|
742
742
|
tooltip?: string
|
|
743
743
|
isClearable?: boolean
|
|
744
744
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -736,9 +736,9 @@ type SelectProps = {
|
|
|
736
736
|
label?: string
|
|
737
737
|
placeholder?: string
|
|
738
738
|
options: SelectOption[]
|
|
739
|
-
onSelect: (option: SelectOption) => void
|
|
739
|
+
onSelect: (option: SelectOption | null) => void
|
|
740
740
|
className?: string
|
|
741
|
-
value?: SelectOption
|
|
741
|
+
value?: SelectOption | null
|
|
742
742
|
tooltip?: string
|
|
743
743
|
isClearable?: boolean
|
|
744
744
|
}
|
package/dist/index.js
CHANGED
|
@@ -7047,9 +7047,7 @@ var CustomSelect = ({
|
|
|
7047
7047
|
isClearable = true
|
|
7048
7048
|
}) => {
|
|
7049
7049
|
const handleChange = (option) => {
|
|
7050
|
-
|
|
7051
|
-
onSelect(option);
|
|
7052
|
-
}
|
|
7050
|
+
onSelect(option);
|
|
7053
7051
|
};
|
|
7054
7052
|
const formatOptionLabel = (option) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center", children: [
|
|
7055
7053
|
option.icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative mr-2 flex h-[24px] max-h-[24px] w-[24px] max-w-[24px] items-center justify-center rounded border border-gray-300", children: /* @__PURE__ */ jsxRuntime.jsx(Image4__default.default, { src: option.icon, alt: option.label, fill: true, className: "p-1", quality: 100 }) }),
|