@rolster/react-components 18.25.2 → 18.25.4

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.
@@ -2340,6 +2340,7 @@
2340
2340
  display: flex;
2341
2341
  max-width: var(--rlc-modal-max-width, calc(100% - var(--rls-sizing-x8)));
2342
2342
  height: var(--pvt-component-height);
2343
+ max-height: calc(100% - var(--rls-sizing-x12));
2343
2344
  flex-direction: column;
2344
2345
  opacity: var(--pvt-component-opacity);
2345
2346
  visibility: var(--pvt-component-visibility);
@@ -2850,14 +2851,13 @@
2850
2851
 
2851
2852
  .rls-modal-sheet {
2852
2853
  --pvt-component-transform: translateY(150px) scale(0.6);
2853
- --pvt-component-transform-visible: translateY(0) scale(1);
2854
2854
  --pvt-component-bottom: initial;
2855
2855
  --pvt-component-max-width: var(
2856
2856
  --rlc-modal-sheet-max-width,
2857
2857
  calc(100% - var(--rls-sizing-x8))
2858
2858
  );
2859
2859
  --pvt-component-height: 0rem;
2860
- --pvt-component-max-height: initial;
2860
+ --pvt-component-max-height: calc(100% - var(--rls-sizing-x12));
2861
2861
  --pvt-component-border-radius: var(--rls-sizing-x4);
2862
2862
  --pvt-component-opacity: 0;
2863
2863
  --pvt-component-visibility: hidden;
@@ -2878,7 +2878,7 @@
2878
2878
  --pvt-component-visibility: visible;
2879
2879
  --pvt-component-height: auto;
2880
2880
  --pvt-component-opacity: 1;
2881
- --pvt-component-transform: var(--pvt-component-transform-visible);
2881
+ --pvt-component-transform: translateY(0) scale(1);
2882
2882
  --pvt-backdrop-bottom: 0rem;
2883
2883
  --pvt-backdrop-opacity: 1;
2884
2884
  visibility: visible;
@@ -2915,25 +2915,9 @@
2915
2915
  transition: opacity 120ms 0ms var(--rls-deceleration-curve),
2916
2916
  bottom 120ms 0ms var(--rls-deceleration-curve);
2917
2917
  }
2918
- @media screen and (max-width: 640px) and (max-height: 960px) {
2919
- .rls-modal-sheet {
2920
- --pvt-component-max-height: calc(100% - 32rem);
2921
- }
2922
- }
2923
- @media screen and (max-width: 640px) and (max-height: 720px) {
2924
- .rls-modal-sheet {
2925
- --pvt-component-max-height: calc(100% - 24rem);
2926
- }
2927
- }
2928
- @media screen and (max-width: 640px) and (max-height: 560px) {
2929
- .rls-modal-sheet {
2930
- --pvt-component-max-height: calc(100% - 16rem);
2931
- }
2932
- }
2933
2918
  @media screen and (max-width: 640px) {
2934
2919
  .rls-modal-sheet {
2935
2920
  --pvt-component-transform: translateY(100%);
2936
- --pvt-component-transform-visible: translateY(0);
2937
2921
  --pvt-component-bottom: 0px;
2938
2922
  --pvt-component-max-width: 240rem;
2939
2923
  --pvt-component-max-height: 75%;
@@ -2941,6 +2925,9 @@
2941
2925
  0rem 0rem;
2942
2926
  align-items: initial;
2943
2927
  }
2928
+ .rls-modal-sheet--visible {
2929
+ --pvt-component-transform: translateY(0);
2930
+ }
2944
2931
  .rls-modal-sheet__component::before {
2945
2932
  display: block;
2946
2933
  content: '';
@@ -2950,6 +2937,21 @@
2950
2937
  background: var(--rls-app-color-300);
2951
2938
  margin: var(--rls-sizing-x3) auto;
2952
2939
  }
2940
+ }
2941
+ @media screen and (max-width: 640px) and (max-height: 960px) {
2942
+ .rls-modal-sheet {
2943
+ --pvt-component-max-height: calc(100% - 32rem);
2944
+ }
2945
+ }
2946
+ @media screen and (max-width: 640px) and (max-height: 720px) {
2947
+ .rls-modal-sheet {
2948
+ --pvt-component-max-height: calc(100% - 24rem);
2949
+ }
2950
+ }
2951
+ @media screen and (max-width: 640px) and (max-height: 560px) {
2952
+ .rls-modal-sheet {
2953
+ --pvt-component-max-height: calc(100% - 16rem);
2954
+ }
2953
2955
  } /*# sourceMappingURL=ModalSheet.css.map */
2954
2956
 
2955
2957
  .rls-snackbar {
package/dist/cjs/index.js CHANGED
@@ -2443,7 +2443,7 @@ function RlsToolbar({ actions, children, subtitle }) {
2443
2443
  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))) }))] }));
2444
2444
  }
2445
2445
 
2446
- function RlsBottonSheet({ children, className, onAutoClose, visible, rlsTheme }) {
2446
+ function RlsBottomSheet({ children, className, onAutoClose, visible, rlsTheme }) {
2447
2447
  const classNameSheet = require$$0.useMemo(() => {
2448
2448
  return renderClassStatus('rls-bottom-sheet', { visible }, className);
2449
2449
  }, [className, visible]);
@@ -3870,7 +3870,7 @@ exports.RlsApplication = RlsApplication;
3870
3870
  exports.RlsAvatar = RlsAvatar;
3871
3871
  exports.RlsBadge = RlsBadge;
3872
3872
  exports.RlsBallot = RlsBallot;
3873
- exports.RlsBottonSheet = RlsBottonSheet;
3873
+ exports.RlsBottomSheet = RlsBottomSheet;
3874
3874
  exports.RlsBreadcrumb = RlsBreadcrumb;
3875
3875
  exports.RlsButton = RlsButton;
3876
3876
  exports.RlsButtonAction = RlsButtonAction;