@rolster/react-components 19.0.3 → 19.1.1

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.
@@ -2154,7 +2154,7 @@
2154
2154
  .rls-tabs {
2155
2155
  --pvt-background: var(--rls-app-color-100);
2156
2156
  --pvt-border: var(--rls-app-border-1-200);
2157
- --pvt-children-font-color: var(--rls-app-color-700);
2157
+ --pvt-children-font-color: var(--rls-app-color-800);
2158
2158
  display: flex;
2159
2159
  background: var(--pvt-background);
2160
2160
  padding: var(--rls-sizing-x2);
@@ -2176,7 +2176,7 @@
2176
2176
  }
2177
2177
  .rls-tabs__children--active {
2178
2178
  color: var(--pvt-children-font-color);
2179
- font-weight: var(--rls-font-weight-semibold);
2179
+ font-weight: var(--rls-font-weight-bold);
2180
2180
  background: var(--rls-app-color-050);
2181
2181
  }
2182
2182
  .rls-tabs__children--disabled {
@@ -3095,6 +3095,10 @@
3095
3095
  } /*# sourceMappingURL=FieldSelect.css.map */
3096
3096
 
3097
3097
  .rls-form-navigation {
3098
+ --rlc-field-box-body-background: var(
3099
+ --rlc-form-navigation-field-box-background,
3100
+ var(--rls-app-color-050)
3101
+ );
3098
3102
  --pvt-component-transition: 160ms;
3099
3103
  position: fixed;
3100
3104
  display: flex;
package/dist/es/index.js CHANGED
@@ -1547,7 +1547,7 @@ function RlsTab({ onSelect, tab, value }) {
1547
1547
  active: tab.value === value,
1548
1548
  disabled: tab.disabled
1549
1549
  });
1550
- }, [value, tab.disabled]);
1550
+ }, [tab, value]);
1551
1551
  const onClick = useCallback(() => {
1552
1552
  !tab.disabled && onSelect(tab.value);
1553
1553
  }, [tab.disabled]);
@@ -1827,14 +1827,14 @@ function useListController(props) {
1827
1827
  : state;
1828
1828
  refreshState((state) => ({ ...state, ..._state }));
1829
1829
  }, [count]);
1830
- const setFormValue = useCallback((element, initialValue = false) => {
1830
+ const setFormValue = useCallback((element, valueIsDefault = false) => {
1831
1831
  refreshState((state) => ({
1832
1832
  ...state,
1833
1833
  value: element?.description || ''
1834
1834
  }));
1835
1835
  changeValueInternal.current = true;
1836
- initialValue
1837
- ? formControl?.setInitialValue(element?.value)
1836
+ valueIsDefault
1837
+ ? formControl?.setDefaultValue(element?.value)
1838
1838
  : formControl?.setValue(element?.value);
1839
1839
  }, [formControl]);
1840
1840
  const navigationInput = useCallback((event) => {
@@ -3246,15 +3246,15 @@ function RlsApplication({ children }) {
3246
3246
  const { RlsSnackbar, snackbar } = useSnackbar();
3247
3247
  const [navbarInApp, setNavbarInApp] = useState(false);
3248
3248
  const [navbarIsCondense, setNavbarIsCondense] = useState(false);
3249
- const [mobileApp, setIsMobile] = useState(false);
3249
+ const [appIsMobile, setIsMobile] = useState(false);
3250
3250
  const className = useMemo(() => {
3251
3251
  return renderClassStatus('rls-app__body', {
3252
- mobile: mobileApp,
3252
+ mobile: appIsMobile,
3253
3253
  'navbar-snackbar': navbarInApp,
3254
3254
  'navbar-condense': navbarIsCondense
3255
3255
  });
3256
- }, [mobileApp, navbarInApp, navbarIsCondense]);
3257
- return (jsxRuntimeExports.jsxs(RlsContext.Provider, { value: {
3256
+ }, [appIsMobile, navbarInApp, navbarIsCondense]);
3257
+ return (jsxRuntimeExports.jsxs(RlsContext, { value: {
3258
3258
  confirmation,
3259
3259
  snackbar,
3260
3260
  setIsMobile,