@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/cjs/index.js CHANGED
@@ -2393,6 +2393,13 @@ function RlsToolbar({ actions, children, subtitle }) {
2393
2393
  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))) }))] }));
2394
2394
  }
2395
2395
 
2396
+ function RlsBottonSheet({ children, className, visible, rlsTheme }) {
2397
+ const classNameSheet = require$$0.useMemo(() => {
2398
+ return renderClassStatus('rls-bottom-sheet', { visible }, className);
2399
+ }, [className, visible]);
2400
+ 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);
2401
+ }
2402
+
2396
2403
  function RlsCard({ children, outline, rlsTheme }) {
2397
2404
  const className = require$$0.useMemo(() => {
2398
2405
  return renderClassStatus('rls-card', { outline });
@@ -2833,10 +2840,10 @@ function RlsFieldAutocomplete(props) {
2833
2840
  return jsxRuntimeExports.jsx(RlsFieldAutocompleteTemplate, { ...props, render: render });
2834
2841
  }
2835
2842
 
2836
- function RlsModal({ children, className, overflow, visible, rlsTheme }) {
2843
+ function RlsModal({ children, className, visible, rlsTheme }) {
2837
2844
  const classNameModal = require$$0.useMemo(() => {
2838
- return renderClassStatus('rls-modal', { overflow, visible }, className);
2839
- }, [className, overflow, visible]);
2845
+ return renderClassStatus('rls-modal', { visible }, className);
2846
+ }, [className, visible]);
2840
2847
  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);
2841
2848
  }
2842
2849
 
@@ -3780,6 +3787,7 @@ exports.RlsApplication = RlsApplication;
3780
3787
  exports.RlsAvatar = RlsAvatar;
3781
3788
  exports.RlsBadge = RlsBadge;
3782
3789
  exports.RlsBallot = RlsBallot;
3790
+ exports.RlsBottonSheet = RlsBottonSheet;
3783
3791
  exports.RlsBreadcrumb = RlsBreadcrumb;
3784
3792
  exports.RlsButton = RlsButton;
3785
3793
  exports.RlsButtonAction = RlsButtonAction;