@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.
package/dist/cjs/index.js CHANGED
@@ -55943,12 +55943,12 @@ var SideNav = function (_a) {
55943
55943
  }
55944
55944
  var flexBgGradient = useColorModeValue(theme.colors.gradients.primary, 'linear(to-l, gray.900, gray.900)');
55945
55945
  var color = useColorModeValue('white', 'gray.50');
55946
- return (React__default["default"].createElement(react.Flex, __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));
55946
+ return (React__default["default"].createElement(react.Flex, __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));
55947
55947
  };
55948
55948
  var SideNavContainer = function (props) { return (React__default["default"].createElement(react.VStack, __assign$g({ spacing: 6, alignItems: "inherit", minH: "100%" }, props))); };
55949
55949
  var SideNavHeader = function (_a) {
55950
55950
  var children = _a.children, rest = __rest$c(_a, ["children"]);
55951
- return (React__default["default"].createElement(react.Flex, __assign$g({ h: "3.2rem", alignItems: "center" }, rest), children));
55951
+ return (React__default["default"].createElement(react.Flex, __assign$g({ alignItems: "center" }, rest), children));
55952
55952
  };
55953
55953
  var SideNavBody = function (_a) {
55954
55954
  var children = _a.children, rest = __rest$c(_a, ["children"]);
@@ -55966,7 +55966,7 @@ var SideNavMenu = function (_a) {
55966
55966
  };
55967
55967
  var color = useColorModeValue('white', 'gray.100');
55968
55968
  return (React__default["default"].createElement(react.VStack, __assign$g({ spacing: 1, alignItems: "inherit", h: "full", w: "full" }, rest),
55969
- React__default["default"].createElement(react.Text, __assign$g({ fontSize: "lg", fontWeight: "bold", color: color, textTransform: "uppercase" }, textProps), title),
55969
+ React__default["default"].createElement(react.Text, __assign$g({ fontWeight: "bold", color: color, textTransform: "uppercase" }, textProps), title),
55970
55970
  children));
55971
55971
  };
55972
55972
  var SideNavMenuItem = function (_a) {
@@ -55978,10 +55978,10 @@ var SideNavMenuItem = function (_a) {
55978
55978
  if (isActive) {
55979
55979
  var bg = useColorModeValue('white', 'gray.800');
55980
55980
  var color = useColorModeValue('brand.600', 'gray.200');
55981
- return (React__default["default"].createElement(react.Button, __assign$g({ w: "full", justifyContent: "flex-start", background: bg, color: color, fontSize: 'lg' }, rest), children));
55981
+ return (React__default["default"].createElement(react.Button, __assign$g({ w: "full", justifyContent: "flex-start", background: bg, color: color }, rest), children));
55982
55982
  }
55983
55983
  var btnColor = useColorModeValue('brand.50', 'gray.200');
55984
- return (React__default["default"].createElement(react.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));
55984
+ return (React__default["default"].createElement(react.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));
55985
55985
  };
55986
55986
 
55987
55987
  var TopBar = function (props) { return (React__default["default"].createElement(react.Stack, __assign$g({ minH: "4.6875rem", bg: react.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))); };
@@ -56234,8 +56234,7 @@ var customVariant = function (_a) {
56234
56234
  var button = {
56235
56235
  baseStyle: {
56236
56236
  borderRadius: 'md',
56237
- fontWeight: 'semibold',
56238
- lineHeight: '0px'
56237
+ fontWeight: 'semibold'
56239
56238
  },
56240
56239
  variants: {
56241
56240
  '@primary': function (props) {
@@ -56678,7 +56677,7 @@ var largeSizes = {
56678
56677
  '3xs': '14rem',
56679
56678
  '2xs': '16rem',
56680
56679
  xs: '20rem',
56681
- nav: '20rem',
56680
+ nav: '18rem',
56682
56681
  sm: '24rem',
56683
56682
  md: '28rem',
56684
56683
  lg: '32rem',
@@ -56966,7 +56965,10 @@ var externalsStyles = function (props) {
56966
56965
  return Object.values(rawStyle).reduce(function (acc, cur) { return (__assign$g(__assign$g({}, acc), (typeof cur === 'function' ? cur(props) : cur))); }, {});
56967
56966
  };
56968
56967
  var styles = {
56969
- global: function (props) { return (__assign$g({ '#chakra-toast-portal > *': {
56968
+ global: function (props) { return (__assign$g({ body: {
56969
+ fontFamily: 'body',
56970
+ fontSize: 'md'
56971
+ }, '#chakra-toast-portal > *': {
56970
56972
  pt: 'safe-top',
56971
56973
  pl: 'safe-left',
56972
56974
  pr: 'safe-right',