react-better-html 1.1.204 → 1.1.206
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 +18 -8
- package/dist/index.d.ts +18 -8
- package/dist/index.js +212 -149
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +211 -149
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1817,6 +1817,7 @@ Image.profileImage = forwardRef3(function ProfileImage({ size = 40, letters, bac
|
|
|
1817
1817
|
width: size,
|
|
1818
1818
|
height: size,
|
|
1819
1819
|
backgroundColor: backgroundColor ?? theme2.colors.backgroundSecondary,
|
|
1820
|
+
border: `solid 1px ${theme2.colors.border}`,
|
|
1820
1821
|
borderRadius: 999,
|
|
1821
1822
|
alignItems: "center",
|
|
1822
1823
|
justifyContent: "center",
|
|
@@ -5655,6 +5656,12 @@ var decryptString = (text) => {
|
|
|
5655
5656
|
});
|
|
5656
5657
|
return decrypted.toString(CryptoJS.enc.Utf8);
|
|
5657
5658
|
};
|
|
5659
|
+
var getPluralWord = (word, count) => {
|
|
5660
|
+
if (count === 1) return word;
|
|
5661
|
+
const needChangeY = word.slice(-1) === "y" && !["a", "e", "o", "u", "i"].includes(word.slice(-2, -1));
|
|
5662
|
+
const pluralWord = needChangeY ? word.slice(0, -1) + "ies" : word.slice(-1) === "s" ? word + "es" : word + "s";
|
|
5663
|
+
return pluralWord;
|
|
5664
|
+
};
|
|
5658
5665
|
|
|
5659
5666
|
// src/components/Label.tsx
|
|
5660
5667
|
import { memo as memo15 } from "react";
|
|
@@ -5711,6 +5718,7 @@ var DropdownComponent = forwardRef10(function Dropdown({
|
|
|
5711
5718
|
onChangeSearch,
|
|
5712
5719
|
renderOption,
|
|
5713
5720
|
renderOptionDivider,
|
|
5721
|
+
withMultiselect,
|
|
5714
5722
|
id,
|
|
5715
5723
|
...props
|
|
5716
5724
|
}, ref) {
|
|
@@ -5745,8 +5753,10 @@ var DropdownComponent = forwardRef10(function Dropdown({
|
|
|
5745
5753
|
if (isOpen && filteredOptions.length > 0 && focusedOptionIndex !== void 0) {
|
|
5746
5754
|
const option = filteredOptions[focusedOptionIndex];
|
|
5747
5755
|
if (!option.disabled) {
|
|
5748
|
-
|
|
5749
|
-
|
|
5756
|
+
const clickedValue = option.value;
|
|
5757
|
+
const newValue = withMultiselect ? Array.isArray(internalValue) ? internalValue?.includes(clickedValue) ? internalValue.filter((value2) => value2 !== clickedValue) : [...internalValue, clickedValue] : [clickedValue] : clickedValue;
|
|
5758
|
+
if (controlledValue === void 0) setInternalValue(newValue);
|
|
5759
|
+
onChange?.(newValue);
|
|
5750
5760
|
setIsOpen.setFalse();
|
|
5751
5761
|
inputRef.current?.blur();
|
|
5752
5762
|
setSearchQuery("");
|
|
@@ -5775,20 +5785,32 @@ var DropdownComponent = forwardRef10(function Dropdown({
|
|
|
5775
5785
|
}
|
|
5776
5786
|
}
|
|
5777
5787
|
},
|
|
5778
|
-
[
|
|
5788
|
+
[
|
|
5789
|
+
disabled,
|
|
5790
|
+
withSearch,
|
|
5791
|
+
isOpen,
|
|
5792
|
+
filteredOptions,
|
|
5793
|
+
focusedOptionIndex,
|
|
5794
|
+
internalValue,
|
|
5795
|
+
controlledValue,
|
|
5796
|
+
onChange,
|
|
5797
|
+
withMultiselect
|
|
5798
|
+
]
|
|
5779
5799
|
);
|
|
5780
5800
|
const onClickOption = useCallback7(
|
|
5781
5801
|
(option) => {
|
|
5782
5802
|
if (!option.disabled) {
|
|
5783
|
-
|
|
5784
|
-
|
|
5803
|
+
const clickedValue = option.value;
|
|
5804
|
+
const newValue = withMultiselect ? Array.isArray(internalValue) ? internalValue?.includes(clickedValue) ? internalValue.filter((value2) => value2 !== clickedValue) : [...internalValue, clickedValue] : [clickedValue] : clickedValue;
|
|
5805
|
+
if (controlledValue === void 0) setInternalValue(newValue);
|
|
5806
|
+
onChange?.(newValue);
|
|
5785
5807
|
setIsOpen.setFalse();
|
|
5786
5808
|
inputRef.current?.blur();
|
|
5787
5809
|
setSearchQuery("");
|
|
5788
5810
|
setFocusedOptionIndex(void 0);
|
|
5789
5811
|
}
|
|
5790
5812
|
},
|
|
5791
|
-
[onChange, controlledValue]
|
|
5813
|
+
[onChange, internalValue, controlledValue, withMultiselect]
|
|
5792
5814
|
);
|
|
5793
5815
|
const onClickClearButton = useCallback7(
|
|
5794
5816
|
(event) => {
|
|
@@ -5810,12 +5832,15 @@ var DropdownComponent = forwardRef10(function Dropdown({
|
|
|
5810
5832
|
},
|
|
5811
5833
|
[withDebounce, onChangeSearch]
|
|
5812
5834
|
);
|
|
5813
|
-
const selectedOption = useMemo4(
|
|
5835
|
+
const selectedOption = useMemo4(
|
|
5836
|
+
() => withMultiselect ? options.filter((option) => Array.isArray(value) ? value.includes(option.value) : false) : options.find((option) => option.value === value),
|
|
5837
|
+
[options, value]
|
|
5838
|
+
);
|
|
5814
5839
|
const renderedOptions = useMemo4(
|
|
5815
5840
|
() => /* @__PURE__ */ jsxs11(Fragment4, { children: [
|
|
5816
5841
|
renderOptionDivider ? renderOptionDivider(void 0, filteredOptions[0], -1, 0) : void 0,
|
|
5817
5842
|
filteredOptions.map((option, index) => {
|
|
5818
|
-
const isSelected = option.value === value;
|
|
5843
|
+
const isSelected = withMultiselect ? Array.isArray(value) ? value.includes(option.value) : false : option.value === value;
|
|
5819
5844
|
const isDisabled = option.disabled;
|
|
5820
5845
|
const isFocused2 = index === focusedOptionIndex;
|
|
5821
5846
|
return /* @__PURE__ */ jsxs11(Fragment3, { children: [
|
|
@@ -5846,7 +5871,16 @@ var DropdownComponent = forwardRef10(function Dropdown({
|
|
|
5846
5871
|
] }, JSON.stringify(option));
|
|
5847
5872
|
})
|
|
5848
5873
|
] }),
|
|
5849
|
-
[
|
|
5874
|
+
[
|
|
5875
|
+
withMultiselect,
|
|
5876
|
+
filteredOptions,
|
|
5877
|
+
value,
|
|
5878
|
+
focusedOptionIndex,
|
|
5879
|
+
theme2.colors,
|
|
5880
|
+
onClickOption,
|
|
5881
|
+
renderOption,
|
|
5882
|
+
renderOptionDivider
|
|
5883
|
+
]
|
|
5850
5884
|
);
|
|
5851
5885
|
useEffect6(() => {
|
|
5852
5886
|
setInternalValue(controlledValue);
|
|
@@ -5884,34 +5918,50 @@ var DropdownComponent = forwardRef10(function Dropdown({
|
|
|
5884
5918
|
if (!withDebounce) return;
|
|
5885
5919
|
onChangeSearch?.(debouncedSearchQuery);
|
|
5886
5920
|
}, [withDebounce, onChangeSearch, debouncedSearchQuery]);
|
|
5887
|
-
const displayValue = withSearch && isFocused ? searchQuery : selectedOption?.label ?? "";
|
|
5888
|
-
const withClearButton = isOpen && selectedOption;
|
|
5889
|
-
const readyPlaceholder = placeholder ?? `Select an ${label?.toLowerCase() ?? "option"}`;
|
|
5890
|
-
return /* @__PURE__ */ jsx15(Div_default.column, { width: "100%", position: "relative", userSelect: "none", ...props, children: /* @__PURE__ */
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5921
|
+
const displayValue = (withSearch && isFocused && searchQuery.length > 0 ? searchQuery : !Array.isArray(selectedOption) ? selectedOption?.label : void 0) ?? "";
|
|
5922
|
+
const withClearButton = isOpen && (Array.isArray(selectedOption) ? selectedOption.length > 0 : selectedOption);
|
|
5923
|
+
const readyPlaceholder = placeholder ?? `Select ${!withMultiselect ? "an " : ""}${label?.toLowerCase() ?? getPluralWord("option", withMultiselect ? 2 : 1)}`;
|
|
5924
|
+
return /* @__PURE__ */ jsx15(Div_default.column, { width: "100%", position: "relative", userSelect: "none", ...props, children: /* @__PURE__ */ jsx15(
|
|
5925
|
+
InputField_default,
|
|
5926
|
+
{
|
|
5927
|
+
label,
|
|
5928
|
+
labelColor,
|
|
5929
|
+
errorText,
|
|
5930
|
+
infoText,
|
|
5931
|
+
required: withMultiselect ? (Array.isArray(value) ? value.length > 0 : value !== void 0) ? false : required : required,
|
|
5932
|
+
name,
|
|
5933
|
+
disabled,
|
|
5934
|
+
readOnly: !withSearch,
|
|
5935
|
+
value: displayValue,
|
|
5936
|
+
id,
|
|
5937
|
+
cursor: !withSearch ? "pointer" : void 0,
|
|
5938
|
+
placeholder: withSearch ? selectedOption && !Array.isArray(selectedOption) ? selectedOption.label : readyPlaceholder : readyPlaceholder,
|
|
5939
|
+
leftIcon,
|
|
5940
|
+
autoComplete: "off",
|
|
5941
|
+
className: `react-better-html-dropdown${Array.isArray(selectedOption) && selectedOption.length > 0 ? " react-better-html-dropdown-multiselect" : ""}${isOpen ? " react-better-html-dropdown-open" : ""}${isOpenLate ? " react-better-html-dropdown-open-late" : ""}${inputFieldClassName ? ` ${inputFieldClassName}` : ""}`,
|
|
5942
|
+
onClick: !disabled ? setIsOpen.toggle : void 0,
|
|
5943
|
+
onFocus: setIsFocused.setTrue,
|
|
5944
|
+
onBlur: setIsFocused.setFalse,
|
|
5945
|
+
onKeyDown: onKeyDownInputField,
|
|
5946
|
+
onChangeValue: withSearch ? onChangeValue : void 0,
|
|
5947
|
+
insideInputFieldBeforeComponent: Array.isArray(selectedOption) && selectedOption.length > 0 ? /* @__PURE__ */ jsx15(
|
|
5948
|
+
Div_default,
|
|
5949
|
+
{
|
|
5950
|
+
width: "100%",
|
|
5951
|
+
backgroundColor: theme2.colors.backgroundContent,
|
|
5952
|
+
border: `solid 1px ${theme2.colors.border}`,
|
|
5953
|
+
borderColor: isFocused ? theme2.colors.primary : void 0,
|
|
5954
|
+
borderBottom: "none",
|
|
5955
|
+
borderTopLeftRadius: theme2.styles.borderRadius,
|
|
5956
|
+
borderTopRightRadius: theme2.styles.borderRadius,
|
|
5957
|
+
paddingBlock: theme2.styles.gap,
|
|
5958
|
+
paddingInline: (theme2.styles.space + theme2.styles.gap) / 2,
|
|
5959
|
+
transition: theme2.styles.transition,
|
|
5960
|
+
children: /* @__PURE__ */ jsx15(Div_default.row, { width: "100%", flexWrap: "wrap", gap: theme2.styles.gap, children: selectedOption.map((option) => /* @__PURE__ */ jsx15(Chip_default, { text: option.label }, JSON.stringify(option))) })
|
|
5961
|
+
}
|
|
5962
|
+
) : void 0,
|
|
5963
|
+
insideInputFieldAfterComponent: /* @__PURE__ */ jsxs11(Fragment4, { children: [
|
|
5964
|
+
/* @__PURE__ */ jsx15(
|
|
5915
5965
|
Div_default,
|
|
5916
5966
|
{
|
|
5917
5967
|
position: "absolute",
|
|
@@ -5936,60 +5986,61 @@ var DropdownComponent = forwardRef10(function Dropdown({
|
|
|
5936
5986
|
children: isLoadingDebouncedSearchQuery || debounceIsLoading ? /* @__PURE__ */ jsx15(Div_default, { padding: `${theme2.styles.space / 2}px ${theme2.styles.space + theme2.styles.gap}px`, children: /* @__PURE__ */ jsx15(Loader_default.text, {}) }) : filteredOptions.length ? /* @__PURE__ */ jsx15(Fragment4, { children: (withoutRenderingOptionsWhenClosed ? isOpen || isOpenLate : true) ? renderedOptions : void 0 }) : /* @__PURE__ */ jsx15(Div_default, { padding: `${theme2.styles.space / 2}px ${theme2.styles.space + theme2.styles.gap}px`, children: /* @__PURE__ */ jsx15(Text_default.unknown, { textAlign: "left", children: debounceMinimumSymbolsRequired !== void 0 && searchQuery.length < debounceMinimumSymbolsRequired ? `Enter at least ${debounceMinimumSymbolsRequired} characters` : "No options" }) })
|
|
5937
5987
|
}
|
|
5938
5988
|
),
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5989
|
+
/* @__PURE__ */ jsxs11(
|
|
5990
|
+
Div_default.row,
|
|
5991
|
+
{
|
|
5992
|
+
position: "absolute",
|
|
5993
|
+
top: 46 / 2,
|
|
5994
|
+
right: theme2.styles.space + 1,
|
|
5995
|
+
alignItems: "center",
|
|
5996
|
+
gap: theme2.styles.gap,
|
|
5997
|
+
transform: "translateY(-50%)",
|
|
5998
|
+
pointerEvents: "none",
|
|
5999
|
+
filter: disabled ? "brightness(0.9)" : void 0,
|
|
6000
|
+
opacity: disabled ? 0.6 : void 0,
|
|
6001
|
+
zIndex: isOpen || isOpenLate ? 1001 : void 0,
|
|
6002
|
+
ref: buttonsRef,
|
|
6003
|
+
children: [
|
|
6004
|
+
!withoutClearButton && /* @__PURE__ */ jsx15(
|
|
6005
|
+
Button_default.icon,
|
|
6006
|
+
{
|
|
6007
|
+
icon: "XMark",
|
|
6008
|
+
position: "relative",
|
|
6009
|
+
size: 10,
|
|
6010
|
+
iconSize: 14,
|
|
6011
|
+
opacity: !withClearButton ? 0 : void 0,
|
|
6012
|
+
pointerEvents: withClearButton ? "all" : void 0,
|
|
6013
|
+
onClick: onClickClearButton,
|
|
6014
|
+
disabled: !withClearButton
|
|
6015
|
+
}
|
|
6016
|
+
),
|
|
6017
|
+
/* @__PURE__ */ jsx15(
|
|
6018
|
+
Icon_default,
|
|
6019
|
+
{
|
|
6020
|
+
name: "chevronDown",
|
|
6021
|
+
position: "relative",
|
|
6022
|
+
size: 16,
|
|
6023
|
+
color: theme2.colors.textSecondary,
|
|
6024
|
+
transform: `rotate(${isOpen ? 180 : 0}deg)`,
|
|
6025
|
+
transition: theme2.styles.transition,
|
|
6026
|
+
pointerEvents: "none",
|
|
6027
|
+
"aria-hidden": true
|
|
6028
|
+
}
|
|
6029
|
+
)
|
|
6030
|
+
]
|
|
6031
|
+
}
|
|
6032
|
+
)
|
|
6033
|
+
] }),
|
|
6034
|
+
role: "combobox",
|
|
6035
|
+
"aria-expanded": isOpen,
|
|
6036
|
+
"aria-controls": "dropdown-list",
|
|
6037
|
+
"aria-multiselectable": withMultiselect ? "true" : "false",
|
|
6038
|
+
"aria-haspopup": "listbox",
|
|
6039
|
+
"aria-label": label,
|
|
6040
|
+
holderRef: inputFieldHolderRef,
|
|
6041
|
+
ref: inputRef
|
|
6042
|
+
}
|
|
6043
|
+
) });
|
|
5993
6044
|
});
|
|
5994
6045
|
DropdownComponent.countries = forwardRef10(function Countries({ ...props }, ref) {
|
|
5995
6046
|
const theme2 = useTheme();
|
|
@@ -6344,6 +6395,12 @@ var InputElement = styled10.input.withConfig({
|
|
|
6344
6395
|
&.react-better-html-dropdown {
|
|
6345
6396
|
padding-right: ${(props) => props.theme.styles.space + 16 + props.theme.styles.space - 1}px;
|
|
6346
6397
|
|
|
6398
|
+
&.react-better-html-dropdown-multiselect {
|
|
6399
|
+
border-top: none;
|
|
6400
|
+
border-top-left-radius: 0px;
|
|
6401
|
+
border-top-right-radius: 0px;
|
|
6402
|
+
}
|
|
6403
|
+
|
|
6347
6404
|
&.react-better-html-dropdown-open {
|
|
6348
6405
|
border-bottom-left-radius: 0px;
|
|
6349
6406
|
border-bottom-right-radius: 0px;
|
|
@@ -6416,7 +6473,8 @@ var InputFieldComponent = forwardRef11(function InputField({
|
|
|
6416
6473
|
prefixBackgroundColor,
|
|
6417
6474
|
suffix,
|
|
6418
6475
|
suffixBackgroundColor,
|
|
6419
|
-
|
|
6476
|
+
insideInputFieldBeforeComponent,
|
|
6477
|
+
insideInputFieldAfterComponent,
|
|
6420
6478
|
withDebounce,
|
|
6421
6479
|
debounceDelay = 0.5,
|
|
6422
6480
|
onChange,
|
|
@@ -6482,59 +6540,62 @@ var InputFieldComponent = forwardRef11(function InputField({
|
|
|
6482
6540
|
}
|
|
6483
6541
|
),
|
|
6484
6542
|
/* @__PURE__ */ jsxs13(Div_default, { position: "relative", width: "100%", height: "fit-content", ref: holderRef, children: [
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
icon
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6543
|
+
insideInputFieldBeforeComponent,
|
|
6544
|
+
/* @__PURE__ */ jsxs13(Div_default, { position: "relative", width: "100%", height: "fit-content", children: [
|
|
6545
|
+
leftIcon && /* @__PURE__ */ jsx17(
|
|
6546
|
+
Icon_default,
|
|
6547
|
+
{
|
|
6548
|
+
name: leftIcon,
|
|
6549
|
+
position: "absolute",
|
|
6550
|
+
top: (props.type === "date" || props.type === "time" || props.type === "datetime-local" ? 48 : 46) / 2,
|
|
6551
|
+
left: theme2.styles.space + 1,
|
|
6552
|
+
transform: "translateY(-50%)",
|
|
6553
|
+
pointerEvents: "none",
|
|
6554
|
+
zIndex: leftIconZIndex
|
|
6555
|
+
}
|
|
6556
|
+
),
|
|
6557
|
+
/* @__PURE__ */ jsx17(
|
|
6558
|
+
InputElement,
|
|
6559
|
+
{
|
|
6560
|
+
theme: theme2,
|
|
6561
|
+
withLeftIcon: leftIcon !== void 0,
|
|
6562
|
+
withRightIcon: rightIcon !== void 0,
|
|
6563
|
+
withPrefix: prefix !== void 0,
|
|
6564
|
+
withSuffix: suffix !== void 0,
|
|
6565
|
+
required,
|
|
6566
|
+
placeholder: placeholder ?? label,
|
|
6567
|
+
id: readyId,
|
|
6568
|
+
onChange: onChangeElement,
|
|
6569
|
+
...styledComponentStylesWithoutExcluded,
|
|
6570
|
+
...dataProps,
|
|
6571
|
+
...ariaProps,
|
|
6572
|
+
...restProps,
|
|
6573
|
+
ref
|
|
6574
|
+
}
|
|
6575
|
+
),
|
|
6576
|
+
rightIcon ? onClickRightIcon ? /* @__PURE__ */ jsx17(
|
|
6577
|
+
Button_default.icon,
|
|
6578
|
+
{
|
|
6579
|
+
icon: rightIcon,
|
|
6580
|
+
position: "absolute",
|
|
6581
|
+
top: 46 / 2,
|
|
6582
|
+
right: theme2.styles.space + 1 - theme2.styles.space / 2,
|
|
6583
|
+
transform: "translateY(-50%)",
|
|
6584
|
+
onClick: onClickRightIcon
|
|
6585
|
+
}
|
|
6586
|
+
) : /* @__PURE__ */ jsx17(
|
|
6587
|
+
Icon_default,
|
|
6588
|
+
{
|
|
6589
|
+
name: rightIcon,
|
|
6590
|
+
position: "absolute",
|
|
6591
|
+
top: 46 / 2,
|
|
6592
|
+
right: theme2.styles.space + 1,
|
|
6593
|
+
transform: "translateY(-50%)",
|
|
6594
|
+
pointerEvents: "none"
|
|
6595
|
+
}
|
|
6596
|
+
) : void 0,
|
|
6597
|
+
insideInputFieldAfterComponent
|
|
6598
|
+
] })
|
|
6538
6599
|
] }),
|
|
6539
6600
|
suffix && /* @__PURE__ */ jsx17(
|
|
6540
6601
|
Div_default.row,
|
|
@@ -6850,7 +6911,7 @@ InputFieldComponent.date = forwardRef11(function Date2({ minDate, maxDate, ...pr
|
|
|
6850
6911
|
InputFieldComponent,
|
|
6851
6912
|
{
|
|
6852
6913
|
type: "date",
|
|
6853
|
-
|
|
6914
|
+
insideInputFieldAfterComponent: !isMobileIOS ? /* @__PURE__ */ jsx17(
|
|
6854
6915
|
Div_default,
|
|
6855
6916
|
{
|
|
6856
6917
|
position: "absolute",
|
|
@@ -6921,7 +6982,7 @@ InputFieldComponent.dateTime = forwardRef11(function DateTime({ minDate, maxDate
|
|
|
6921
6982
|
InputFieldComponent,
|
|
6922
6983
|
{
|
|
6923
6984
|
type: "datetime-local",
|
|
6924
|
-
|
|
6985
|
+
insideInputFieldAfterComponent: !isMobileIOS ? /* @__PURE__ */ jsx17(
|
|
6925
6986
|
Div_default,
|
|
6926
6987
|
{
|
|
6927
6988
|
position: "absolute",
|
|
@@ -7062,7 +7123,7 @@ InputFieldComponent.time = forwardRef11(function Time({ ...props }, ref) {
|
|
|
7062
7123
|
InputFieldComponent,
|
|
7063
7124
|
{
|
|
7064
7125
|
type: "time",
|
|
7065
|
-
|
|
7126
|
+
insideInputFieldAfterComponent: !isMobileIOS ? /* @__PURE__ */ jsx17(
|
|
7066
7127
|
Div_default,
|
|
7067
7128
|
{
|
|
7068
7129
|
position: "absolute",
|
|
@@ -7165,7 +7226,7 @@ InputFieldComponent.color = forwardRef11(function Color2({ value, onChangeValue,
|
|
|
7165
7226
|
InputFieldComponent,
|
|
7166
7227
|
{
|
|
7167
7228
|
type: "color",
|
|
7168
|
-
|
|
7229
|
+
insideInputFieldAfterComponent: /* @__PURE__ */ jsx17(
|
|
7169
7230
|
Div_default.row,
|
|
7170
7231
|
{
|
|
7171
7232
|
position: "absolute",
|
|
@@ -9964,6 +10025,7 @@ export {
|
|
|
9964
10025
|
generateRandomString,
|
|
9965
10026
|
getBrowser,
|
|
9966
10027
|
getFormErrorObject,
|
|
10028
|
+
getPluralWord,
|
|
9967
10029
|
isMobileDevice,
|
|
9968
10030
|
lightenColor,
|
|
9969
10031
|
loaderControls,
|