@gobolt/genesis 0.9.0 → 0.9.2

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.cjs CHANGED
@@ -82204,7 +82204,7 @@ const ScrollableContent$1 = styled.div`
82204
82204
  `;
82205
82205
  const MODAL_WIDTHS = {
82206
82206
  sm: 400,
82207
- md: 492,
82207
+ md: 540,
82208
82208
  lg: 720
82209
82209
  };
82210
82210
  const Modal = ({
@@ -82260,7 +82260,15 @@ const Modal = ({
82260
82260
  ),
82261
82261
  description && /* @__PURE__ */ jsxRuntime.jsx(Typography, { fontSize: "16px", fontWeight: 400, color: textColor, children: description })
82262
82262
  ] }),
82263
- /* @__PURE__ */ jsxRuntime.jsx(UtilityButton, { icon: /* @__PURE__ */ jsxRuntime.jsx(HiX, {}), onClick: onClose })
82263
+ /* @__PURE__ */ jsxRuntime.jsx(
82264
+ Button$1,
82265
+ {
82266
+ icon: /* @__PURE__ */ jsxRuntime.jsx(HiX, { size: 24 }),
82267
+ themeType: "utility",
82268
+ onClick: onClose,
82269
+ style: { padding: "4px", height: "fit-content" }
82270
+ }
82271
+ )
82264
82272
  ]
82265
82273
  }
82266
82274
  )
@@ -87569,14 +87577,15 @@ const getGenesisDrawerClass = ({ borderRadius: borderRadius2, sizing: sizing2 },
87569
87577
  return `
87570
87578
  .ant-drawer-content-wrapper {
87571
87579
  box-shadow: none !important;
87580
+ ${isFloat ? `
87581
+ ${edge}: ${offset2}px !important;
87582
+ top: ${offset2}px !important;
87583
+ height: calc(100% - ${offset2 * 2}px) !important;
87584
+ ` : ""}
87572
87585
  }
87573
87586
 
87574
87587
  .ant-drawer-content {
87575
- position: relative !important;
87576
87588
  box-shadow: none !important;
87577
- ${edge}: ${offset2}px !important;
87578
- top: ${offset2}px !important;
87579
- height: ${isFloat ? `calc(100% - ${offset2 * 2}px)` : "100%"} !important;
87580
87589
  border-radius: ${isFloat ? borderRadius2.BorderRadiusMd : 0}px !important;
87581
87590
  }
87582
87591
 
@@ -87607,6 +87616,20 @@ const ScrollableContent = styled.div`
87607
87616
  flex: 1;
87608
87617
  display: flex;
87609
87618
  flex-direction: column;
87619
+
87620
+ &::-webkit-scrollbar {
87621
+ width: 6px;
87622
+ background: transparent;
87623
+ }
87624
+
87625
+ &::-webkit-scrollbar-thumb {
87626
+ background: rgba(0, 0, 0, 0.2);
87627
+ border-radius: 3px;
87628
+ }
87629
+
87630
+ &::-webkit-scrollbar-thumb:hover {
87631
+ background: rgba(0, 0, 0, 0.35);
87632
+ }
87610
87633
  `;
87611
87634
  const getGenesisStickyHeaderClass = ({ colors: colors2 }) => `
87612
87635
  position: sticky;
@@ -87650,6 +87673,34 @@ const SidePanel = ({
87650
87673
  };
87651
87674
  const borderColor = theme?.colors?.surface?.active?.borderColor || "#DFDFDF";
87652
87675
  const textColor = theme?.colors?.onsurface?.active?.textColor || "#3E3E3E";
87676
+ const isFloat = type4 === "float";
87677
+ const floatOffset = 24;
87678
+ const floatEdge = placement === "left" ? "left" : "right";
87679
+ const sharedStyles = {
87680
+ wrapper: { boxShadow: "none" },
87681
+ content: { boxShadow: "none" },
87682
+ body: {
87683
+ padding: 0,
87684
+ overflow: "hidden",
87685
+ display: "flex",
87686
+ flexDirection: "column",
87687
+ height: "100%"
87688
+ },
87689
+ footer: { padding: 0 }
87690
+ };
87691
+ const drawerStyles = isFloat ? {
87692
+ ...sharedStyles,
87693
+ wrapper: {
87694
+ boxShadow: "none",
87695
+ [floatEdge]: `${floatOffset}px`,
87696
+ top: `${floatOffset}px`,
87697
+ height: `calc(100% - ${floatOffset * 2}px)`
87698
+ },
87699
+ content: {
87700
+ borderRadius: "12px",
87701
+ boxShadow: "none"
87702
+ }
87703
+ } : sharedStyles;
87653
87704
  const handleClose = () => {
87654
87705
  onClose();
87655
87706
  };
@@ -87792,6 +87843,7 @@ const SidePanel = ({
87792
87843
  open,
87793
87844
  $type: type4,
87794
87845
  placement,
87846
+ styles: drawerStyles,
87795
87847
  children: [
87796
87848
  /* @__PURE__ */ jsxRuntime.jsx(StickyHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(SidePanelHeader, {}) }),
87797
87849
  /* @__PURE__ */ jsxRuntime.jsx(ScrollableContent, { children: children2 })
package/dist/index.js CHANGED
@@ -82186,7 +82186,7 @@ const ScrollableContent$1 = styled.div`
82186
82186
  `;
82187
82187
  const MODAL_WIDTHS = {
82188
82188
  sm: 400,
82189
- md: 492,
82189
+ md: 540,
82190
82190
  lg: 720
82191
82191
  };
82192
82192
  const Modal = ({
@@ -82242,7 +82242,15 @@ const Modal = ({
82242
82242
  ),
82243
82243
  description && /* @__PURE__ */ jsx(Typography, { fontSize: "16px", fontWeight: 400, color: textColor, children: description })
82244
82244
  ] }),
82245
- /* @__PURE__ */ jsx(UtilityButton, { icon: /* @__PURE__ */ jsx(HiX, {}), onClick: onClose })
82245
+ /* @__PURE__ */ jsx(
82246
+ Button$1,
82247
+ {
82248
+ icon: /* @__PURE__ */ jsx(HiX, { size: 24 }),
82249
+ themeType: "utility",
82250
+ onClick: onClose,
82251
+ style: { padding: "4px", height: "fit-content" }
82252
+ }
82253
+ )
82246
82254
  ]
82247
82255
  }
82248
82256
  )
@@ -87551,14 +87559,15 @@ const getGenesisDrawerClass = ({ borderRadius: borderRadius2, sizing: sizing2 },
87551
87559
  return `
87552
87560
  .ant-drawer-content-wrapper {
87553
87561
  box-shadow: none !important;
87562
+ ${isFloat ? `
87563
+ ${edge}: ${offset2}px !important;
87564
+ top: ${offset2}px !important;
87565
+ height: calc(100% - ${offset2 * 2}px) !important;
87566
+ ` : ""}
87554
87567
  }
87555
87568
 
87556
87569
  .ant-drawer-content {
87557
- position: relative !important;
87558
87570
  box-shadow: none !important;
87559
- ${edge}: ${offset2}px !important;
87560
- top: ${offset2}px !important;
87561
- height: ${isFloat ? `calc(100% - ${offset2 * 2}px)` : "100%"} !important;
87562
87571
  border-radius: ${isFloat ? borderRadius2.BorderRadiusMd : 0}px !important;
87563
87572
  }
87564
87573
 
@@ -87589,6 +87598,20 @@ const ScrollableContent = styled.div`
87589
87598
  flex: 1;
87590
87599
  display: flex;
87591
87600
  flex-direction: column;
87601
+
87602
+ &::-webkit-scrollbar {
87603
+ width: 6px;
87604
+ background: transparent;
87605
+ }
87606
+
87607
+ &::-webkit-scrollbar-thumb {
87608
+ background: rgba(0, 0, 0, 0.2);
87609
+ border-radius: 3px;
87610
+ }
87611
+
87612
+ &::-webkit-scrollbar-thumb:hover {
87613
+ background: rgba(0, 0, 0, 0.35);
87614
+ }
87592
87615
  `;
87593
87616
  const getGenesisStickyHeaderClass = ({ colors: colors2 }) => `
87594
87617
  position: sticky;
@@ -87632,6 +87655,34 @@ const SidePanel = ({
87632
87655
  };
87633
87656
  const borderColor = theme?.colors?.surface?.active?.borderColor || "#DFDFDF";
87634
87657
  const textColor = theme?.colors?.onsurface?.active?.textColor || "#3E3E3E";
87658
+ const isFloat = type4 === "float";
87659
+ const floatOffset = 24;
87660
+ const floatEdge = placement === "left" ? "left" : "right";
87661
+ const sharedStyles = {
87662
+ wrapper: { boxShadow: "none" },
87663
+ content: { boxShadow: "none" },
87664
+ body: {
87665
+ padding: 0,
87666
+ overflow: "hidden",
87667
+ display: "flex",
87668
+ flexDirection: "column",
87669
+ height: "100%"
87670
+ },
87671
+ footer: { padding: 0 }
87672
+ };
87673
+ const drawerStyles = isFloat ? {
87674
+ ...sharedStyles,
87675
+ wrapper: {
87676
+ boxShadow: "none",
87677
+ [floatEdge]: `${floatOffset}px`,
87678
+ top: `${floatOffset}px`,
87679
+ height: `calc(100% - ${floatOffset * 2}px)`
87680
+ },
87681
+ content: {
87682
+ borderRadius: "12px",
87683
+ boxShadow: "none"
87684
+ }
87685
+ } : sharedStyles;
87635
87686
  const handleClose = () => {
87636
87687
  onClose();
87637
87688
  };
@@ -87774,6 +87825,7 @@ const SidePanel = ({
87774
87825
  open,
87775
87826
  $type: type4,
87776
87827
  placement,
87828
+ styles: drawerStyles,
87777
87829
  children: [
87778
87830
  /* @__PURE__ */ jsx(StickyHeader, { children: /* @__PURE__ */ jsx(SidePanelHeader, {}) }),
87779
87831
  /* @__PURE__ */ jsx(ScrollableContent, { children: children2 })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobolt/genesis",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "genesis design system",
5
5
  "author": "gobolt",
6
6
  "license": "MIT",