@gobolt/genesis 0.9.1 → 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 +48 -4
- package/dist/index.js +48 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -87577,14 +87577,15 @@ const getGenesisDrawerClass = ({ borderRadius: borderRadius2, sizing: sizing2 },
|
|
|
87577
87577
|
return `
|
|
87578
87578
|
.ant-drawer-content-wrapper {
|
|
87579
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
|
+
` : ""}
|
|
87580
87585
|
}
|
|
87581
87586
|
|
|
87582
87587
|
.ant-drawer-content {
|
|
87583
|
-
position: relative !important;
|
|
87584
87588
|
box-shadow: none !important;
|
|
87585
|
-
${edge}: ${offset2}px !important;
|
|
87586
|
-
top: ${offset2}px !important;
|
|
87587
|
-
height: ${isFloat ? `calc(100% - ${offset2 * 2}px)` : "100%"} !important;
|
|
87588
87589
|
border-radius: ${isFloat ? borderRadius2.BorderRadiusMd : 0}px !important;
|
|
87589
87590
|
}
|
|
87590
87591
|
|
|
@@ -87615,6 +87616,20 @@ const ScrollableContent = styled.div`
|
|
|
87615
87616
|
flex: 1;
|
|
87616
87617
|
display: flex;
|
|
87617
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
|
+
}
|
|
87618
87633
|
`;
|
|
87619
87634
|
const getGenesisStickyHeaderClass = ({ colors: colors2 }) => `
|
|
87620
87635
|
position: sticky;
|
|
@@ -87658,6 +87673,34 @@ const SidePanel = ({
|
|
|
87658
87673
|
};
|
|
87659
87674
|
const borderColor = theme?.colors?.surface?.active?.borderColor || "#DFDFDF";
|
|
87660
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;
|
|
87661
87704
|
const handleClose = () => {
|
|
87662
87705
|
onClose();
|
|
87663
87706
|
};
|
|
@@ -87800,6 +87843,7 @@ const SidePanel = ({
|
|
|
87800
87843
|
open,
|
|
87801
87844
|
$type: type4,
|
|
87802
87845
|
placement,
|
|
87846
|
+
styles: drawerStyles,
|
|
87803
87847
|
children: [
|
|
87804
87848
|
/* @__PURE__ */ jsxRuntime.jsx(StickyHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(SidePanelHeader, {}) }),
|
|
87805
87849
|
/* @__PURE__ */ jsxRuntime.jsx(ScrollableContent, { children: children2 })
|
package/dist/index.js
CHANGED
|
@@ -87559,14 +87559,15 @@ const getGenesisDrawerClass = ({ borderRadius: borderRadius2, sizing: sizing2 },
|
|
|
87559
87559
|
return `
|
|
87560
87560
|
.ant-drawer-content-wrapper {
|
|
87561
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
|
+
` : ""}
|
|
87562
87567
|
}
|
|
87563
87568
|
|
|
87564
87569
|
.ant-drawer-content {
|
|
87565
|
-
position: relative !important;
|
|
87566
87570
|
box-shadow: none !important;
|
|
87567
|
-
${edge}: ${offset2}px !important;
|
|
87568
|
-
top: ${offset2}px !important;
|
|
87569
|
-
height: ${isFloat ? `calc(100% - ${offset2 * 2}px)` : "100%"} !important;
|
|
87570
87571
|
border-radius: ${isFloat ? borderRadius2.BorderRadiusMd : 0}px !important;
|
|
87571
87572
|
}
|
|
87572
87573
|
|
|
@@ -87597,6 +87598,20 @@ const ScrollableContent = styled.div`
|
|
|
87597
87598
|
flex: 1;
|
|
87598
87599
|
display: flex;
|
|
87599
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
|
+
}
|
|
87600
87615
|
`;
|
|
87601
87616
|
const getGenesisStickyHeaderClass = ({ colors: colors2 }) => `
|
|
87602
87617
|
position: sticky;
|
|
@@ -87640,6 +87655,34 @@ const SidePanel = ({
|
|
|
87640
87655
|
};
|
|
87641
87656
|
const borderColor = theme?.colors?.surface?.active?.borderColor || "#DFDFDF";
|
|
87642
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;
|
|
87643
87686
|
const handleClose = () => {
|
|
87644
87687
|
onClose();
|
|
87645
87688
|
};
|
|
@@ -87782,6 +87825,7 @@ const SidePanel = ({
|
|
|
87782
87825
|
open,
|
|
87783
87826
|
$type: type4,
|
|
87784
87827
|
placement,
|
|
87828
|
+
styles: drawerStyles,
|
|
87785
87829
|
children: [
|
|
87786
87830
|
/* @__PURE__ */ jsx(StickyHeader, { children: /* @__PURE__ */ jsx(SidePanelHeader, {}) }),
|
|
87787
87831
|
/* @__PURE__ */ jsx(ScrollableContent, { children: children2 })
|