sag_components 2.0.0-beta165 → 2.0.0-beta166

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/index.d.ts CHANGED
@@ -1534,7 +1534,7 @@ declare function ItemManagerPanel({ width, height, disableSection, onSendForms,
1534
1534
  * @param {React.ReactNode} props.children - Drawer content
1535
1535
  * @param {number} [props.widthPercent=70] - Width of the drawer as a percentage of the viewport width
1536
1536
  */
1537
- declare function ModalDrawer({ open, onClose, children, widthPercent }: {
1537
+ declare function ModalDrawer({ open, height, onClose, children, widthPercent }: {
1538
1538
  open: boolean;
1539
1539
  onClose: Function;
1540
1540
  children: React.ReactNode;
package/dist/index.esm.js CHANGED
@@ -34705,15 +34705,16 @@ css`
34705
34705
  * • onApply(start,end) – callback, both numbers (inclusive)
34706
34706
  * • onCancel() – callback
34707
34707
  */
34708
- const WeeksCalendar = ({
34709
- year,
34710
- defaultStartWeek = null,
34711
- defaultEndWeek = null,
34712
- backgroundColor = "#066768",
34713
- hoverBackgroundColor = "#E6F0F0",
34714
- onApply,
34715
- onCancel
34716
- }) => {
34708
+ const WeeksCalendar = _ref => {
34709
+ let {
34710
+ year,
34711
+ defaultStartWeek = null,
34712
+ defaultEndWeek = null,
34713
+ backgroundColor = "#066768",
34714
+ hoverBackgroundColor = "#E6F0F0",
34715
+ onApply,
34716
+ onCancel
34717
+ } = _ref;
34717
34718
  // state -------------------------------------------------
34718
34719
  const [startWeek, setStartWeek] = useState(defaultStartWeek);
34719
34720
  const [endWeek, setEndWeek] = useState(defaultEndWeek);
@@ -35679,9 +35680,9 @@ const ToggleSlider = styled.span`
35679
35680
  }
35680
35681
  `;
35681
35682
 
35682
- /**
35683
- * ToggleSwitch component for on/off states.
35684
- * Supports small/large sizes and disabled state.
35683
+ /**
35684
+ * ToggleSwitch component for on/off states.
35685
+ * Supports small/large sizes and disabled state.
35685
35686
  */
35686
35687
  function ToggleSwitch(_ref) {
35687
35688
  let {
@@ -52801,7 +52802,8 @@ const Drawer = styled.div`
52801
52802
  top: 0;
52802
52803
  right: ${props => props.open ? '0' : `-${props.widthPercent || 70}%`};
52803
52804
  width: ${props => props.widthPercent ? `${props.widthPercent}%` : '70%'};
52804
- height: 100%;
52805
+ height: ${props => props.height ? props.height : '100%'};
52806
+
52805
52807
  background: #fff;
52806
52808
  z-index: 1001;
52807
52809
  transition: right 0.3s;
@@ -52837,6 +52839,7 @@ const CloseBtn = styled.button`
52837
52839
  function ModalDrawer(_ref) {
52838
52840
  let {
52839
52841
  open,
52842
+ height,
52840
52843
  onClose,
52841
52844
  children,
52842
52845
  widthPercent = 70
@@ -52845,6 +52848,7 @@ function ModalDrawer(_ref) {
52845
52848
  onClick: onClose,
52846
52849
  "data-testid": "overlay"
52847
52850
  }), /*#__PURE__*/React$1.createElement(Drawer, {
52851
+ height: height,
52848
52852
  open: open,
52849
52853
  widthPercent: widthPercent,
52850
52854
  "data-testid": "drawer"
@@ -52916,10 +52920,11 @@ const DropdownList = styled.ul`
52916
52920
  `}
52917
52921
  `;
52918
52922
  const SectionDiv = styled.div`
52919
- ${({
52920
- $showBorder,
52921
- margin
52922
- }) => {
52923
+ ${_ref => {
52924
+ let {
52925
+ $showBorder,
52926
+ margin
52927
+ } = _ref;
52923
52928
  switch ($showBorder) {
52924
52929
  case 'Template Offer':
52925
52930
  return css`border-top: 1px solid #e6e2e2ff;