@rolster/react-components 18.18.2 → 18.19.0

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/cjs/index.js CHANGED
@@ -27,8 +27,8 @@ var hasRequiredReactJsxRuntime_production_min;
27
27
  function requireReactJsxRuntime_production_min () {
28
28
  if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
29
29
  hasRequiredReactJsxRuntime_production_min = 1;
30
- var f=require$$0,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
31
- function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
30
+ var f=require$$0,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:true,ref:true,__self:true,__source:true};
31
+ function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a) void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
32
32
  return reactJsxRuntime_production_min;
33
33
  }
34
34
 
@@ -758,11 +758,6 @@ function requireReactJsxRuntime_development () {
758
758
  };
759
759
  var specialPropKeyWarningShown;
760
760
  var specialPropRefWarningShown;
761
- var didWarnAboutStringRefs;
762
-
763
- {
764
- didWarnAboutStringRefs = {};
765
- }
766
761
 
767
762
  function hasValidRef(config) {
768
763
  {
@@ -794,15 +789,7 @@ function requireReactJsxRuntime_development () {
794
789
 
795
790
  function warnIfStringRefCannotBeAutoConverted(config, self) {
796
791
  {
797
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
798
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
799
-
800
- if (!didWarnAboutStringRefs[componentName]) {
801
- error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
802
-
803
- didWarnAboutStringRefs[componentName] = true;
804
- }
805
- }
792
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && self) ;
806
793
  }
807
794
  }
808
795
 
@@ -2088,12 +2075,12 @@ function useDatatable() {
2088
2075
  }
2089
2076
 
2090
2077
  function useListController(props) {
2091
- const { suggestions, automatic, formControl, value } = props;
2078
+ const { suggestions, automatic, formControl, reference } = props;
2092
2079
  const listIsOpen = require$$0.useRef(false);
2093
2080
  const contentRef = require$$0.useRef(null);
2094
2081
  const listRef = require$$0.useRef(null);
2095
2082
  const inputRef = require$$0.useRef(null);
2096
- const [state, setState] = require$$0.useState({
2083
+ const [state, refreshState] = require$$0.useState({
2097
2084
  focused: false,
2098
2085
  higher: false,
2099
2086
  value: '',
@@ -2101,11 +2088,12 @@ function useListController(props) {
2101
2088
  });
2102
2089
  const collection = require$$0.useRef(new components.ListCollection([]));
2103
2090
  const position = require$$0.useRef(0);
2104
- const _protected = require$$0.useRef();
2091
+ const valueProtected = require$$0.useRef();
2092
+ const changeValueInternal = require$$0.useRef(false);
2105
2093
  require$$0.useEffect(() => {
2106
2094
  function onCloseSuggestions({ target }) {
2107
2095
  !contentRef?.current?.contains(target) &&
2108
- setState((state) => ({ ...state, modalIsVisible: false }));
2096
+ refreshState((state) => ({ ...state, modalIsVisible: false }));
2109
2097
  }
2110
2098
  document.addEventListener('click', onCloseSuggestions);
2111
2099
  return () => {
@@ -2119,67 +2107,74 @@ function useListController(props) {
2119
2107
  if (listIsOpen.current && !state.modalIsVisible) {
2120
2108
  formControl?.touch();
2121
2109
  }
2122
- setState((state) => ({
2110
+ refreshState((state) => ({
2123
2111
  ...state,
2124
2112
  higher: components.locationListCanTop(contentRef.current, listRef.current)
2125
2113
  }));
2126
2114
  }, [state.modalIsVisible]);
2127
2115
  require$$0.useEffect(() => {
2128
- collection.current = new components.ListCollection(suggestions);
2129
- refresh(collection.current, formControl?.value, automatic);
2130
- }, [suggestions]);
2131
- require$$0.useEffect(() => {
2132
- refresh(collection.current, formControl?.value);
2133
- }, [formControl?.value]);
2134
- function refresh(collection, state, automatic) {
2135
- if (!state) {
2136
- !refreshWithProtected(collection, automatic) &&
2137
- refreshState({ value: '' });
2138
- return undefined;
2139
- }
2140
- const element = collection.find(state);
2141
- if (element) {
2142
- _protected.current = undefined;
2143
- return refreshState({ value: element.description });
2116
+ collection.current = new components.ListCollection(suggestions, reference);
2117
+ if (formControl?.value) {
2118
+ const element = collection.current.find(formControl.value);
2119
+ if (!element) {
2120
+ valueProtected.current = formControl.value;
2121
+ automatic
2122
+ ? setFormValue(collection.current.value[0], true)
2123
+ : setFormValue(undefined);
2124
+ }
2144
2125
  }
2145
- if (!refreshWithProtected(collection, automatic)) {
2146
- _protected.current = state;
2147
- setFormValue(value);
2148
- refreshState({ value: '' });
2126
+ else if (valueProtected.current) {
2127
+ const element = collection.current.find(valueProtected.current);
2128
+ element && setFormValue(element);
2149
2129
  }
2150
- }
2151
- function refreshWithProtected(collection, automatic) {
2152
- if (automatic && collection.value[0]) {
2153
- formControl?.setInitialValue(collection.value[0].value);
2154
- return true;
2130
+ else {
2131
+ automatic && setFormValue(collection.current.value[0], true);
2155
2132
  }
2156
- if (_protected.current) {
2157
- const element = collection.find(_protected.current);
2158
- if (element) {
2159
- formControl?.setValue(_protected.current);
2160
- _protected.current = undefined;
2161
- return true;
2133
+ }, [suggestions]);
2134
+ require$$0.useEffect(() => {
2135
+ if (!changeValueInternal.current) {
2136
+ if (formControl?.value) {
2137
+ const element = collection.current.find(formControl.value);
2138
+ if (!element) {
2139
+ valueProtected.current = formControl.value;
2140
+ automatic
2141
+ ? setFormValue(collection.current.value[0], true)
2142
+ : setFormValue(undefined);
2143
+ }
2144
+ else {
2145
+ setFormValue(element);
2146
+ }
2147
+ }
2148
+ else {
2149
+ automatic && setFormValue(collection.current.value[0], true);
2162
2150
  }
2163
2151
  }
2164
- return false;
2165
- }
2166
- function refreshState(state) {
2167
- setState((currentState) => ({ ...currentState, ...state }));
2168
- }
2169
- const setFormValue = require$$0.useCallback((value) => {
2170
- formControl?.setValue(value);
2152
+ changeValueInternal.current = false;
2153
+ }, [formControl?.value]);
2154
+ const setState = require$$0.useCallback((state) => {
2155
+ refreshState((_state) => ({ ..._state, ...state }));
2156
+ }, []);
2157
+ const setFormValue = require$$0.useCallback((element, initialValue = false) => {
2158
+ refreshState((_state) => ({
2159
+ ..._state,
2160
+ value: element?.description ?? ''
2161
+ }));
2162
+ changeValueInternal.current = true;
2163
+ initialValue
2164
+ ? formControl?.setInitialValue(element?.value)
2165
+ : formControl?.setValue(element?.value);
2171
2166
  }, [formControl]);
2172
- function navigationInput(event) {
2167
+ const navigationInput = require$$0.useCallback((event) => {
2173
2168
  if (state.modalIsVisible) {
2174
- const newPosition = components.navigationListFromInput({
2169
+ const _position = components.navigationListFromInput({
2175
2170
  content: contentRef.current,
2176
2171
  event: event,
2177
2172
  list: listRef.current
2178
2173
  });
2179
- position.current = newPosition ?? 0;
2174
+ position.current = _position ?? 0;
2180
2175
  }
2181
- }
2182
- function navigationElement(event) {
2176
+ }, [state.modalIsVisible]);
2177
+ const navigationElement = require$$0.useCallback((event) => {
2183
2178
  position.current = components.navigationListFromElement({
2184
2179
  content: contentRef.current,
2185
2180
  event: event,
@@ -2187,7 +2182,7 @@ function useListController(props) {
2187
2182
  list: listRef.current,
2188
2183
  position: position.current
2189
2184
  });
2190
- }
2185
+ }, [state.modalIsVisible]);
2191
2186
  return {
2192
2187
  ...state,
2193
2188
  contentRef,
@@ -2196,7 +2191,7 @@ function useListController(props) {
2196
2191
  navigationElement,
2197
2192
  navigationInput,
2198
2193
  setFormValue,
2199
- setState: refreshState
2194
+ setState
2200
2195
  };
2201
2196
  }
2202
2197
 
@@ -2242,8 +2237,8 @@ function useFieldAutocomplete(props) {
2242
2237
  }
2243
2238
  function onClickAction() {
2244
2239
  if (controller.value) {
2245
- controller.setState({ modalIsVisible: false, value: '' });
2246
- controller.setFormValue(props.value);
2240
+ controller.setState({ modalIsVisible: false });
2241
+ controller.setFormValue(undefined);
2247
2242
  props.onValue && props.onValue(props.value);
2248
2243
  }
2249
2244
  else {
@@ -2265,17 +2260,17 @@ function useFieldAutocomplete(props) {
2265
2260
  : controller.navigationElement(event);
2266
2261
  };
2267
2262
  }
2268
- function onChange({ description, value }) {
2263
+ function onChange(element) {
2269
2264
  const { onSelect, onValue } = props;
2270
2265
  if (onSelect) {
2271
2266
  controller.setState({ modalIsVisible: false });
2272
- value && onSelect(value);
2267
+ element.value && onSelect(element.value);
2273
2268
  }
2274
2269
  else {
2275
- controller.setState({ modalIsVisible: false, value: description });
2276
- controller.setFormValue(value);
2270
+ controller.setState({ modalIsVisible: false });
2271
+ controller.setFormValue(element);
2277
2272
  }
2278
- onValue && onValue(value);
2273
+ onValue && onValue(element.value);
2279
2274
  }
2280
2275
  function refreshCoincidences(pattern, reboot = false) {
2281
2276
  const { collection, store } = components.createAutocompleteStore({
@@ -2288,8 +2283,8 @@ function useFieldAutocomplete(props) {
2288
2283
  setCoincidences(collection.slice(0, MAX_ELEMENTS));
2289
2284
  }
2290
2285
  return {
2286
+ ...controller,
2291
2287
  coincidences,
2292
- controller,
2293
2288
  onBlurInput,
2294
2289
  onClickAction,
2295
2290
  onClickBackdrop,
@@ -2305,20 +2300,19 @@ function useFieldAutocomplete(props) {
2305
2300
 
2306
2301
  function RlsFieldAutocompleteTemplate(props) {
2307
2302
  const autocomplete = useFieldAutocomplete(props);
2308
- const { controller } = autocomplete;
2309
2303
  const { render, children, formControl, msgErrorDisabled, onSearch, placeholder, rlsTheme, searching } = props;
2310
2304
  const _disabled = formControl?.disabled || props.disabled;
2311
2305
  const className = renderClassStatus('rls-field-box', {
2312
- focused: controller.focused && !_disabled,
2306
+ focused: autocomplete.focused && !_disabled,
2313
2307
  error: formControl?.wrong,
2314
2308
  disabled: _disabled,
2315
- selected: !!controller.value
2309
+ selected: !!autocomplete.value
2316
2310
  }, 'rls-field-list rls-field-autocomplete');
2317
- return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref: controller.contentRef, className: className, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("label", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { className: "rls-field-list__control", readOnly: true, disabled: _disabled, placeholder: placeholder, value: controller.value, onClick: autocomplete.onClickControl }), jsxRuntimeExports.jsx("button", { className: "rls-field-list__action", disabled: _disabled, onClick: autocomplete.onClickAction, children: jsxRuntimeExports.jsx(RlsIcon, { value: controller.value ? 'trash-2' : 'arrow-ios-down' }) })] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl })), jsxRuntimeExports.jsxs("div", { className: renderClassStatus('rls-field-list__suggestions', {
2318
- visible: controller.modalIsVisible,
2319
- higher: controller.higher,
2320
- hide: !controller.modalIsVisible
2321
- }), children: [jsxRuntimeExports.jsx("div", { className: "rls-field-list__suggestions__body", children: jsxRuntimeExports.jsxs("ul", { ref: controller.listRef, className: "rls-field-list__ul", children: [jsxRuntimeExports.jsxs("div", { className: "rls-field-list__ul__search", children: [jsxRuntimeExports.jsx("input", { ref: controller.inputRef, className: "rls-field-list__ul__control", type: "text", placeholder: reactI18n('listInputPlaceholder'), value: autocomplete.pattern, onChange: (event) => {
2311
+ return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref: autocomplete.contentRef, className: className, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("label", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { className: "rls-field-list__control", readOnly: true, disabled: _disabled, placeholder: placeholder, value: autocomplete.value, onClick: autocomplete.onClickControl }), jsxRuntimeExports.jsx("button", { className: "rls-field-list__action", disabled: _disabled, onClick: autocomplete.onClickAction, children: jsxRuntimeExports.jsx(RlsIcon, { value: autocomplete.value ? 'trash-2' : 'arrow-ios-down' }) })] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl })), jsxRuntimeExports.jsxs("div", { className: renderClassStatus('rls-field-list__suggestions', {
2312
+ visible: autocomplete.modalIsVisible,
2313
+ higher: autocomplete.higher,
2314
+ hide: !autocomplete.modalIsVisible
2315
+ }), children: [jsxRuntimeExports.jsx("div", { className: "rls-field-list__suggestions__body", children: jsxRuntimeExports.jsxs("ul", { ref: autocomplete.listRef, className: "rls-field-list__ul", children: [jsxRuntimeExports.jsxs("div", { className: "rls-field-list__ul__search", children: [jsxRuntimeExports.jsx("input", { ref: autocomplete.inputRef, className: "rls-field-list__ul__control", type: "text", placeholder: reactI18n('listInputPlaceholder'), value: autocomplete.pattern, onChange: (event) => {
2322
2316
  autocomplete.setPattern(event.target.value);
2323
2317
  }, disabled: _disabled || searching, onFocus: autocomplete.onFocusInput, onBlur: autocomplete.onBlurInput, onKeyDown: autocomplete.onKeydownInput }), onSearch && (jsxRuntimeExports.jsx("button", { disabled: _disabled || searching, onClick: () => {
2324
2318
  onSearch(autocomplete.pattern);
@@ -2544,8 +2538,8 @@ function useFieldSelect(props) {
2544
2538
  function onClickAction() {
2545
2539
  const removable = !props.unremovable && !!controller.value;
2546
2540
  if (removable) {
2547
- controller.setState({ modalIsVisible: false, value: '' });
2548
- controller.setFormValue(props.value);
2541
+ controller.setState({ modalIsVisible: false });
2542
+ controller.setFormValue(undefined);
2549
2543
  props.onValue && props.onValue(props.value);
2550
2544
  }
2551
2545
  else {
@@ -2569,21 +2563,21 @@ function useFieldSelect(props) {
2569
2563
  : controller.navigationElement(event);
2570
2564
  };
2571
2565
  }
2572
- function onChange({ description, value }) {
2566
+ function onChange(element) {
2573
2567
  const { onSelect, onValue } = props;
2574
2568
  controller.inputRef?.current?.focus();
2575
2569
  if (onSelect) {
2576
2570
  controller.setState({ modalIsVisible: false });
2577
- value && onSelect(value);
2571
+ element.value && onSelect(element.value);
2578
2572
  }
2579
2573
  else {
2580
- controller.setFormValue(value);
2581
- controller.setState({ modalIsVisible: false, value: description });
2574
+ controller.setFormValue(element);
2575
+ controller.setState({ modalIsVisible: false });
2582
2576
  }
2583
- onValue && onValue(value);
2577
+ onValue && onValue(element.value);
2584
2578
  }
2585
2579
  return {
2586
- controller,
2580
+ ...controller,
2587
2581
  onBlurInput,
2588
2582
  onClickAction,
2589
2583
  onClickBackdrop,
@@ -2597,23 +2591,18 @@ function useFieldSelect(props) {
2597
2591
 
2598
2592
  function RlsFieldSelectTemplate(props) {
2599
2593
  const select = useFieldSelect(props);
2600
- const { controller } = select;
2601
2594
  const { render, suggestions, children, formControl, msgErrorDisabled, placeholder, rlsTheme, unremovable } = props;
2602
2595
  const _disabled = formControl?.disabled || props.disabled;
2603
2596
  const className = renderClassStatus('rls-field-box', {
2604
- focused: controller.focused && !_disabled,
2597
+ focused: select.focused && !_disabled,
2605
2598
  error: formControl?.wrong,
2606
2599
  disabled: _disabled
2607
2600
  }, 'rls-field-list rls-field-select');
2608
- return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref: controller.contentRef, className: className, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("label", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { ref: controller.inputRef, className: "rls-field-list__control", readOnly: true, disabled: _disabled, placeholder: placeholder, value: controller.value, onFocus: select.onFocusInput, onBlur: select.onBlurInput, onClick: select.onClickInput, onKeyDown: select.onKeydownInput }), jsxRuntimeExports.jsx("button", { className: renderClassStatus('rls-field-list__action', {
2609
- visible: controller.modalIsVisible
2610
- }), disabled: _disabled, onClick: select.onClickAction, children: jsxRuntimeExports.jsx(RlsIcon, { value: !unremovable && !!controller.value
2611
- ? 'trash-2'
2612
- : 'arrow-ios-down' }) })] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl })), jsxRuntimeExports.jsxs("div", { className: renderClassStatus('rls-field-list__suggestions', {
2613
- visible: controller.modalIsVisible,
2614
- higher: controller.higher,
2615
- hide: !controller.modalIsVisible
2616
- }), children: [jsxRuntimeExports.jsx("div", { className: "rls-field-list__suggestions__body", children: jsxRuntimeExports.jsxs("ul", { ref: controller.listRef, className: "rls-field-list__ul", children: [suggestions.map((element, index) => (jsxRuntimeExports.jsx("li", { className: "rls-field-list__element", tabIndex: -1, onClick: select.onClickElement(element), onKeyDown: select.onKeydownElement(element), children: render(element) }, index))), !suggestions.length && (jsxRuntimeExports.jsx("li", { className: "rls-field-list__empty", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-list__empty__description", children: [jsxRuntimeExports.jsx("label", { className: "rls-label-bold truncate", children: reactI18n('listEmptyTitle') }), jsxRuntimeExports.jsx("p", { className: "rls-caption-regular", children: reactI18n('listEmptyDescription') })] }) }))] }) }), jsxRuntimeExports.jsx("div", { className: "rls-field-list__backdrop", onClick: select.onClickBackdrop })] })] }));
2601
+ return (jsxRuntimeExports.jsxs("div", { id: props.identifier, ref: select.contentRef, className: className, "rls-theme": rlsTheme, children: [children && jsxRuntimeExports.jsx("label", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { ref: select.inputRef, className: "rls-field-list__control", readOnly: true, disabled: _disabled, placeholder: placeholder, value: select.value, onFocus: select.onFocusInput, onBlur: select.onBlurInput, onClick: select.onClickInput, onKeyDown: select.onKeydownInput }), jsxRuntimeExports.jsx("button", { className: renderClassStatus('rls-field-list__action'), disabled: _disabled, onClick: select.onClickAction, children: jsxRuntimeExports.jsx(RlsIcon, { value: !unremovable && !!select.value ? 'close' : 'arrow-ios-down' }) })] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl })), jsxRuntimeExports.jsxs("div", { className: renderClassStatus('rls-field-list__suggestions', {
2602
+ visible: select.modalIsVisible,
2603
+ higher: select.higher,
2604
+ hide: !select.modalIsVisible
2605
+ }), children: [jsxRuntimeExports.jsx("div", { className: "rls-field-list__suggestions__body", children: jsxRuntimeExports.jsxs("ul", { ref: select.listRef, className: "rls-field-list__ul", children: [suggestions.map((element, index) => (jsxRuntimeExports.jsx("li", { className: "rls-field-list__element", tabIndex: -1, onClick: select.onClickElement(element), onKeyDown: select.onKeydownElement(element), children: render(element) }, index))), !suggestions.length && (jsxRuntimeExports.jsx("li", { className: "rls-field-list__empty", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-list__empty__description", children: [jsxRuntimeExports.jsx("label", { className: "rls-label-bold truncate", children: reactI18n('listEmptyTitle') }), jsxRuntimeExports.jsx("p", { className: "rls-caption-regular", children: reactI18n('listEmptyDescription') })] }) }))] }) }), jsxRuntimeExports.jsx("div", { className: "rls-field-list__backdrop", onClick: select.onClickBackdrop })] })] }));
2617
2606
  }
2618
2607
  function RlsFieldSelect(props) {
2619
2608
  return (jsxRuntimeExports.jsx(RlsFieldSelectTemplate, { ...props, render: (element) => (jsxRuntimeExports.jsx(RlsBallot, { subtitle: element.subtitle, img: element.img, initials: element.initials, children: jsxRuntimeExports.jsx("span", { children: element.title }) })) }));