@rolster/react-components 18.24.5 → 18.24.6

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.
@@ -276,7 +276,7 @@
276
276
  --pvt-classic-font-color: var(--rls-app-color-400);
277
277
  --pvt-classic-border: none;
278
278
  --pvt-raised-background: var(--rls-theme-color-200);
279
- --pvt-raised-font-color: var(--rls-theme-color-400);
279
+ --pvt-raised-font-color: var(--rls-theme-color-050);
280
280
  --pvt-raised-border: none;
281
281
  --pvt-flat-background: var(--rls-theme-color-100);
282
282
  --pvt-flat-font-color: var(--rls-theme-color-300);
@@ -1930,6 +1930,61 @@
1930
1930
  align-items: center;
1931
1931
  } /*# sourceMappingURL=Toolbar.css.map */
1932
1932
 
1933
+ .rls-bottom-sheet {
1934
+ --pvt-component-transform: translateY(150px) scale(0.6);
1935
+ --pvt-component-height: 0rem;
1936
+ --pvt-component-opacity: 0;
1937
+ --pvt-component-visibility: hidden;
1938
+ --pvt-backdrop-opacity: 0;
1939
+ --pvt-backdrop-bottom: initial;
1940
+ position: fixed;
1941
+ top: 0rem;
1942
+ left: 0rem;
1943
+ width: 100%;
1944
+ height: 100%;
1945
+ z-index: var(--rls-z-index-24);
1946
+ visibility: hidden;
1947
+ }
1948
+ .rls-bottom-sheet--visible {
1949
+ --pvt-component-visibility: visible;
1950
+ --pvt-component-height: auto;
1951
+ --pvt-component-opacity: 1;
1952
+ --pvt-component-transform: translateY(0) scale(1);
1953
+ --pvt-backdrop-bottom: 0rem;
1954
+ --pvt-backdrop-opacity: 1;
1955
+ visibility: visible;
1956
+ }
1957
+ .rls-bottom-sheet__component {
1958
+ position: absolute;
1959
+ bottom: 0px;
1960
+ width: 100%;
1961
+ max-width: 240rem;
1962
+ max-height: 75%;
1963
+ opacity: var(--pvt-component-opacity);
1964
+ visibility: var(--pvt-component-visibility);
1965
+ z-index: var(--rls-z-index-2);
1966
+ border-radius: var(--rls-sizing-x4) var(--rls-sizing-x4) 0rem 0rem;
1967
+ background: var(--rlc-bottom-sheet-background, var(--rls-app-color-050));
1968
+ transform: var(--pvt-component-transform);
1969
+ transition: opacity 125ms 0ms var(--rls-deceleration-curve),
1970
+ transform 125ms 0ms var(--rls-deceleration-curve),
1971
+ visibility 125ms 0ms var(--rls-deceleration-curve);
1972
+ }
1973
+ .rls-bottom-sheet__backdrop {
1974
+ position: absolute;
1975
+ display: block;
1976
+ top: 0rem;
1977
+ left: 0rem;
1978
+ right: 0rem;
1979
+ bottom: var(--pvt-backdrop-bottom);
1980
+ opacity: var(--pvt-backdrop-opacity);
1981
+ z-index: 1;
1982
+ background: var(--rls-theme-backdrop-900);
1983
+ backdrop-filter: blur(2px);
1984
+ transition: opacity 120ms 0ms var(--rls-deceleration-curve),
1985
+ bottom 120ms 0ms var(--rls-deceleration-curve);
1986
+ } /*# sourceMappingURL=BottomSheet.css.map */
1987
+
1933
1988
  .rls-card {
1934
1989
  --rlc-divider-background: var(--rls-app-color-300);
1935
1990
  --pvt-background: var(--rls-app-color-100);
@@ -2189,9 +2244,6 @@
2189
2244
  align-items: center;
2190
2245
  justify-content: center;
2191
2246
  }
2192
- .rls-modal--overflow {
2193
- --pvt-component-overflow: initial;
2194
- }
2195
2247
  .rls-modal--visible {
2196
2248
  --pvt-component-visibility: visible;
2197
2249
  --pvt-component-height: auto;
package/dist/es/index.js CHANGED
@@ -2391,6 +2391,13 @@ function RlsToolbar({ actions, children, subtitle }) {
2391
2391
  return (jsxRuntimeExports.jsxs("div", { className: "rls-toolbar", children: [jsxRuntimeExports.jsxs("div", { className: "rls-toolbar__description", children: [children && jsxRuntimeExports.jsx("label", { className: "rls-toolbar__title", children: children }), subtitle && (jsxRuntimeExports.jsx("label", { className: "rls-toolbar__subtitle smalltext-semibold", children: subtitle }))] }), actions && (jsxRuntimeExports.jsx("div", { className: "rls-toolbar__actions", children: actions.map((action, index) => (jsxRuntimeExports.jsx("div", { children: action }, index))) }))] }));
2392
2392
  }
2393
2393
 
2394
+ function RlsBottonSheet({ children, className, visible, rlsTheme }) {
2395
+ const classNameSheet = useMemo(() => {
2396
+ return renderClassStatus('rls-bottom-sheet', { visible }, className);
2397
+ }, [className, visible]);
2398
+ return ReactDOM.createPortal(jsxRuntimeExports.jsxs("div", { className: classNameSheet, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-bottom-sheet__component", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-bottom-sheet__backdrop" })] }), document.body);
2399
+ }
2400
+
2394
2401
  function RlsCard({ children, outline, rlsTheme }) {
2395
2402
  const className = useMemo(() => {
2396
2403
  return renderClassStatus('rls-card', { outline });
@@ -2831,10 +2838,10 @@ function RlsFieldAutocomplete(props) {
2831
2838
  return jsxRuntimeExports.jsx(RlsFieldAutocompleteTemplate, { ...props, render: render });
2832
2839
  }
2833
2840
 
2834
- function RlsModal({ children, className, overflow, visible, rlsTheme }) {
2841
+ function RlsModal({ children, className, visible, rlsTheme }) {
2835
2842
  const classNameModal = useMemo(() => {
2836
- return renderClassStatus('rls-modal', { overflow, visible }, className);
2837
- }, [className, overflow, visible]);
2843
+ return renderClassStatus('rls-modal', { visible }, className);
2844
+ }, [className, visible]);
2838
2845
  return ReactDOM.createPortal(jsxRuntimeExports.jsxs("div", { className: classNameModal, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-modal__component", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-modal__backdrop" })] }), document.body);
2839
2846
  }
2840
2847
 
@@ -3771,5 +3778,5 @@ function useDatatable() {
3771
3778
  return { scrolleable, tableRef };
3772
3779
  }
3773
3780
 
3774
- export { ConfirmationResult, RlsAlert, RlsAmount, RlsApplication, RlsAvatar, RlsBadge, RlsBallot, RlsBreadcrumb, RlsButton, RlsButtonAction, RlsButtonProgress, RlsButtonToggle, RlsCard, RlsCheckBox, RlsCheckBoxControl, RlsConfirmation, RlsContent, RlsContext, RlsDatatable, RlsDatatableCell, RlsDatatableData, RlsDatatableFloating, RlsDatatableHeader, RlsDatatableRecord, RlsDatatableSubheader, RlsDatatableTitle, RlsDatatableTotals, RlsFieldAutocomplete, RlsFieldAutocompleteTemplate, RlsFieldDate, RlsFieldDateRange, RlsFieldMoney, RlsFieldNumber, RlsFieldPassword, RlsFieldPercentage, RlsFieldReadonly, RlsFieldSelect, RlsFieldSelectTemplate, RlsFieldText, RlsFormNavigation, RlsIcon, RlsImage, RlsImageChooser, RlsImageEditor, RlsInput, RlsInputMoney, RlsInputNumber, RlsInputPassword, RlsInputPercentage, RlsInputSearch, RlsInputText, RlsLabel, RlsLabelCheckBox, RlsLabelRadioButton, RlsLabelSwitch, RlsMessageFormError, RlsMessageIcon, RlsModal, RlsNavbar, RlsPagination, RlsPickerDate, RlsPickerDateRange, RlsPickerDay, RlsPickerDayRange, RlsPickerMonth, RlsPickerSelectorTitle, RlsPickerYear, RlsPoster, RlsProgressBar, RlsProgressCircular, RlsRadioButton, RlsSkeleton, RlsSkeletonText, RlsSlider, RlsSnackbar, RlsSwitch, RlsSwitchControl, RlsTabularText, RlsToolbar, calculateImgDimension, rangeFormatTemplate, renderClassStatus, setErrorsI18n, useConfirmation, useDatatable, useFieldAutocomplete, useFieldSelect, useImageEditorController, useListController, useRelocationOnComponent, useResize, useSnackbar };
3781
+ export { ConfirmationResult, RlsAlert, RlsAmount, RlsApplication, RlsAvatar, RlsBadge, RlsBallot, RlsBottonSheet, RlsBreadcrumb, RlsButton, RlsButtonAction, RlsButtonProgress, RlsButtonToggle, RlsCard, RlsCheckBox, RlsCheckBoxControl, RlsConfirmation, RlsContent, RlsContext, RlsDatatable, RlsDatatableCell, RlsDatatableData, RlsDatatableFloating, RlsDatatableHeader, RlsDatatableRecord, RlsDatatableSubheader, RlsDatatableTitle, RlsDatatableTotals, RlsFieldAutocomplete, RlsFieldAutocompleteTemplate, RlsFieldDate, RlsFieldDateRange, RlsFieldMoney, RlsFieldNumber, RlsFieldPassword, RlsFieldPercentage, RlsFieldReadonly, RlsFieldSelect, RlsFieldSelectTemplate, RlsFieldText, RlsFormNavigation, RlsIcon, RlsImage, RlsImageChooser, RlsImageEditor, RlsInput, RlsInputMoney, RlsInputNumber, RlsInputPassword, RlsInputPercentage, RlsInputSearch, RlsInputText, RlsLabel, RlsLabelCheckBox, RlsLabelRadioButton, RlsLabelSwitch, RlsMessageFormError, RlsMessageIcon, RlsModal, RlsNavbar, RlsPagination, RlsPickerDate, RlsPickerDateRange, RlsPickerDay, RlsPickerDayRange, RlsPickerMonth, RlsPickerSelectorTitle, RlsPickerYear, RlsPoster, RlsProgressBar, RlsProgressCircular, RlsRadioButton, RlsSkeleton, RlsSkeletonText, RlsSlider, RlsSnackbar, RlsSwitch, RlsSwitchControl, RlsTabularText, RlsToolbar, calculateImgDimension, rangeFormatTemplate, renderClassStatus, setErrorsI18n, useConfirmation, useDatatable, useFieldAutocomplete, useFieldSelect, useImageEditorController, useListController, useRelocationOnComponent, useResize, useSnackbar };
3775
3782
  //# sourceMappingURL=index.js.map