@paygreen/pgui 2.13.1 → 2.13.3

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.
@@ -2,7 +2,6 @@ declare const _default: {
2
2
  baseStyle: {
3
3
  borderRadius: string;
4
4
  fontWeight: string;
5
- lineHeight: string;
6
5
  };
7
6
  variants: {
8
7
  '@primary': (props: any) => {
package/dist/esm/index.js CHANGED
@@ -55917,12 +55917,12 @@ var SideNav = function (_a) {
55917
55917
  }
55918
55918
  var flexBgGradient = useColorModeValue(theme.colors.gradients.primary, 'linear(to-l, gray.900, gray.900)');
55919
55919
  var color = useColorModeValue('white', 'gray.50');
55920
- return (React__default.createElement(Flex$1, __assign$g({ w: "20rem", h: "100vh", flexDir: "column", bgGradient: flexBgGradient, color: color, pt: 6, px: 6, overflow: "auto", position: "fixed", top: "0", left: "0", sx: customScrollBar }, props), children));
55920
+ return (React__default.createElement(Flex$1, __assign$g({ w: "18rem", h: "100vh", flexDir: "column", bgGradient: flexBgGradient, color: color, pt: 6, px: 6, overflow: "auto", position: "fixed", top: "0", left: "0", sx: customScrollBar }, props), children));
55921
55921
  };
55922
55922
  var SideNavContainer = function (props) { return (React__default.createElement(VStack, __assign$g({ spacing: 6, alignItems: "inherit", minH: "100%" }, props))); };
55923
55923
  var SideNavHeader = function (_a) {
55924
55924
  var children = _a.children, rest = __rest$c(_a, ["children"]);
55925
- return (React__default.createElement(Flex$1, __assign$g({ h: "3.2rem", alignItems: "center" }, rest), children));
55925
+ return (React__default.createElement(Flex$1, __assign$g({ alignItems: "center" }, rest), children));
55926
55926
  };
55927
55927
  var SideNavBody = function (_a) {
55928
55928
  var children = _a.children, rest = __rest$c(_a, ["children"]);
@@ -55940,7 +55940,7 @@ var SideNavMenu = function (_a) {
55940
55940
  };
55941
55941
  var color = useColorModeValue('white', 'gray.100');
55942
55942
  return (React__default.createElement(VStack, __assign$g({ spacing: 1, alignItems: "inherit", h: "full", w: "full" }, rest),
55943
- React__default.createElement(Text, __assign$g({ fontSize: "lg", fontWeight: "bold", color: color, textTransform: "uppercase" }, textProps), title),
55943
+ React__default.createElement(Text, __assign$g({ fontWeight: "bold", color: color, textTransform: "uppercase" }, textProps), title),
55944
55944
  children));
55945
55945
  };
55946
55946
  var SideNavMenuItem = function (_a) {
@@ -55952,10 +55952,10 @@ var SideNavMenuItem = function (_a) {
55952
55952
  if (isActive) {
55953
55953
  var bg = useColorModeValue('white', 'gray.800');
55954
55954
  var color = useColorModeValue('brand.600', 'gray.200');
55955
- return (React__default.createElement(Button, __assign$g({ w: "full", justifyContent: "flex-start", background: bg, color: color, fontSize: 'lg' }, rest), children));
55955
+ return (React__default.createElement(Button, __assign$g({ w: "full", justifyContent: "flex-start", background: bg, color: color }, rest), children));
55956
55956
  }
55957
55957
  var btnColor = useColorModeValue('brand.50', 'gray.200');
55958
- return (React__default.createElement(Button, __assign$g({ w: "full", justifyContent: "flex-start", background: "transparent", color: btnColor, fontSize: 'lg', _hover: { background: 'whiteAlpha.200' }, _focus: { background: 'whiteAlpha.200' }, _active: { background: 'whiteAlpha.200' } }, rest), children));
55958
+ return (React__default.createElement(Button, __assign$g({ w: "full", justifyContent: "flex-start", background: "transparent", color: btnColor, _hover: { background: 'whiteAlpha.200' }, _focus: { background: 'whiteAlpha.200' }, _active: { background: 'whiteAlpha.200' } }, rest), children));
55959
55959
  };
55960
55960
 
55961
55961
  var TopBar = function (props) { return (React__default.createElement(Stack, __assign$g({ minH: "4.6875rem", bg: useColorModeValue('white', 'gray.900'), boxShadow: "layout", w: "full", borderRadius: "0", justifyContent: "space-between", spacing: 2, alignItems: { base: 'inherit', xl: 'center' }, direction: { base: 'column', xl: 'row' }, py: { base: 4, xl: 0 } }, props))); };
@@ -56208,8 +56208,7 @@ var customVariant = function (_a) {
56208
56208
  var button = {
56209
56209
  baseStyle: {
56210
56210
  borderRadius: 'md',
56211
- fontWeight: 'semibold',
56212
- lineHeight: '0px'
56211
+ fontWeight: 'semibold'
56213
56212
  },
56214
56213
  variants: {
56215
56214
  '@primary': function (props) {
@@ -56652,7 +56651,7 @@ var largeSizes = {
56652
56651
  '3xs': '14rem',
56653
56652
  '2xs': '16rem',
56654
56653
  xs: '20rem',
56655
- nav: '20rem',
56654
+ nav: '18rem',
56656
56655
  sm: '24rem',
56657
56656
  md: '28rem',
56658
56657
  lg: '32rem',
@@ -56940,7 +56939,10 @@ var externalsStyles = function (props) {
56940
56939
  return Object.values(rawStyle).reduce(function (acc, cur) { return (__assign$g(__assign$g({}, acc), (typeof cur === 'function' ? cur(props) : cur))); }, {});
56941
56940
  };
56942
56941
  var styles = {
56943
- global: function (props) { return (__assign$g({ '#chakra-toast-portal > *': {
56942
+ global: function (props) { return (__assign$g({ body: {
56943
+ fontFamily: 'body',
56944
+ fontSize: 'md'
56945
+ }, '#chakra-toast-portal > *': {
56944
56946
  pt: 'safe-top',
56945
56947
  pl: 'safe-left',
56946
56948
  pr: 'safe-right',