@ctlyst.id/internal-ui 3.1.21 → 3.1.23
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 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -359,7 +359,6 @@ var BreadCrumb = (props) => {
|
|
359
359
|
display: "flex",
|
360
360
|
justifyContent: "space-between",
|
361
361
|
alignItems: "center",
|
362
|
-
paddingY: 2,
|
363
362
|
children: [
|
364
363
|
/* @__PURE__ */ jsxs(Box4, { display: "flex", alignItems: "center", children: [
|
365
364
|
!hideTitle && /* @__PURE__ */ jsxs(Fragment, { children: [
|
@@ -3553,7 +3552,7 @@ var Rating = ({ value }) => {
|
|
3553
3552
|
var rating_default = Rating;
|
3554
3553
|
|
3555
3554
|
// src/components/select/components/select.tsx
|
3556
|
-
import { Badge as Badge2, Flex as Flex11 } from "@chakra-ui/react";
|
3555
|
+
import { Badge as Badge2, Center as Center2, Flex as Flex11 } from "@chakra-ui/react";
|
3557
3556
|
import { useColorMode as useColorMode3 } from "@chakra-ui/system";
|
3558
3557
|
import * as Icon7 from "@ctlyst.id/internal-icon";
|
3559
3558
|
import ReactSelect, { components as componentRS } from "react-select";
|
@@ -3945,6 +3944,9 @@ function MultiValue(props) {
|
|
3945
3944
|
function MultiValueRemove(props) {
|
3946
3945
|
return /* @__PURE__ */ jsx53(componentRS.MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx53(Flex11, { align: "center", justify: "center", children: /* @__PURE__ */ jsx53(Icon7.Close, { size: 2.5, color: "inherit" }) }) });
|
3947
3946
|
}
|
3947
|
+
function NoOptionsMessage(props) {
|
3948
|
+
return /* @__PURE__ */ jsx53(Center2, { textStyle: "text.xs", py: "1.5", color: "black.medium", children: (props == null ? void 0 : props.options.length) === 0 ? "Opsi tidak tersedia" : "Hasil tidak ditemukan" });
|
3949
|
+
}
|
3948
3950
|
function Select2({
|
3949
3951
|
styles,
|
3950
3952
|
isError = false,
|
@@ -3962,6 +3964,7 @@ function Select2({
|
|
3962
3964
|
ClearIndicator,
|
3963
3965
|
MultiValue,
|
3964
3966
|
MultiValueRemove,
|
3967
|
+
NoOptionsMessage,
|
3965
3968
|
...components
|
3966
3969
|
},
|
3967
3970
|
value,
|
@@ -3992,7 +3995,8 @@ function SelectAsync({
|
|
3992
3995
|
maxMenuHeight: 320,
|
3993
3996
|
components: {
|
3994
3997
|
DropdownIndicator,
|
3995
|
-
ClearIndicator
|
3998
|
+
ClearIndicator,
|
3999
|
+
NoOptionsMessage
|
3996
4000
|
},
|
3997
4001
|
...rest,
|
3998
4002
|
styles: { ...selectStyles(colorMode, isError), ...styles },
|
@@ -4015,7 +4019,8 @@ function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
|
4015
4019
|
maxMenuHeight: 320,
|
4016
4020
|
components: {
|
4017
4021
|
DropdownIndicator,
|
4018
|
-
ClearIndicator
|
4022
|
+
ClearIndicator,
|
4023
|
+
NoOptionsMessage
|
4019
4024
|
},
|
4020
4025
|
...rest,
|
4021
4026
|
styles: { ...selectStyles(colorMode, isError), ...styles },
|
@@ -4037,7 +4042,8 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
4037
4042
|
maxMenuHeight: 320,
|
4038
4043
|
components: {
|
4039
4044
|
DropdownIndicator,
|
4040
|
-
ClearIndicator
|
4045
|
+
ClearIndicator,
|
4046
|
+
NoOptionsMessage
|
4041
4047
|
},
|
4042
4048
|
...rest,
|
4043
4049
|
styles: { ...selectStyles(colorMode, isError), ...styles },
|
@@ -4172,6 +4178,7 @@ var SelectCheckbox = (props) => {
|
|
4172
4178
|
ClearIndicator,
|
4173
4179
|
MultiValue,
|
4174
4180
|
MultiValueRemove,
|
4181
|
+
NoOptionsMessage,
|
4175
4182
|
Option: (optionProps) => {
|
4176
4183
|
const { isSelected, data } = optionProps;
|
4177
4184
|
const optionLength = (options == null ? void 0 : options.length) ? options.length - 1 : 0;
|
@@ -6991,6 +6998,7 @@ export {
|
|
6991
6998
|
NavItem,
|
6992
6999
|
Navbar,
|
6993
7000
|
navigation_bar_default as NavigationBar,
|
7001
|
+
NoOptionsMessage,
|
6994
7002
|
OrderedList,
|
6995
7003
|
pagination_default as Pagination,
|
6996
7004
|
pagination_detail_default as PaginationDetail,
|