@paygreen/pgui 2.9.0 → 2.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.
@@ -40,4 +40,4 @@ export type PaginationProps = StackProps & {
40
40
  totalItems?: number;
41
41
  isLoadingPage?: boolean;
42
42
  };
43
- export declare const Pagination: ({ setPage, page, pageSize, totalItems, isLoadingPage, ...rest }: PaginationProps) => JSX.Element;
43
+ export declare const Pagination: ({ setPage, page, pageSize, totalItems, isLoadingPage, children, ...rest }: PaginationProps) => JSX.Element;
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import React__default, { useState, useRef, useEffect, useContext, Component, forwardRef as forwardRef$2, useCallback, useMemo, createContext as createContext$1, useLayoutEffect, createElement, Fragment, Children } from 'react';
2
+ import React__default, { useState, useRef, useEffect, useContext, Component, forwardRef as forwardRef$2, useCallback, useMemo, createContext as createContext$1, Children, Fragment, useLayoutEffect } from 'react';
3
3
  import { forwardRef as forwardRef$1, IconButton, Card as Card$1, createStylesContext, chakra as chakra$1, useMultiStyleConfig, useMenuItem, MenuIcon, MenuCommand, useMenuState, Flex as Flex$1, Icon as Icon$1, Text, useBreakpointValue, AccordionItem, AccordionButton, AccordionIcon, AccordionPanel, Box, Accordion, InputGroup, InputLeftElement, Input as Input$4, useTheme as useTheme$1, VStack, Stack, Button, HStack, FormControl, FormLabel, FormHelperText, FormErrorMessage, SlideFade, useDisclosure, Popover, PopoverTrigger, InputRightElement, PopoverContent, PopoverArrow, useOutsideClick, List, ListItem, Wrap, WrapItem, Drawer, DrawerOverlay, DrawerContent, DrawerCloseButton, Modal, ModalOverlay, ModalContent, ModalCloseButton, useControllableState, useMergeRefs, useColorModeValue, useStyleConfig as useStyleConfig$1, useToken, useBreakpoint, extendTheme } from '@chakra-ui/react';
4
4
 
5
5
  /******************************************************************************
@@ -174,7 +174,7 @@ var ActionsButton = forwardRef$1(function (_a, ref) {
174
174
  });
175
175
  ActionsButton.displayName = 'ActionsButton';
176
176
 
177
- var Card = function (props) { return (React__default.createElement(Card$1, __assign$1({ p: 6, background: "white", h: "fit-content", w: "full" }, props))); };
177
+ var Card = function (props) { return (React__default.createElement(Card$1, __assign$1({ p: 6, backgroundColor: "white", h: "fit-content", w: "full" }, props))); };
178
178
 
179
179
  var _a$1 = createStylesContext('Menu'), StylesProvider = _a$1[0], useStyles = _a$1[1];
180
180
  var StyledMenuItem = forwardRef$1(function (props, ref) {
@@ -49690,6 +49690,7 @@ var RULESET = 'rule';
49690
49690
  var DECLARATION = 'decl';
49691
49691
  var IMPORT = '@import';
49692
49692
  var KEYFRAMES = '@keyframes';
49693
+ var LAYER = '@layer';
49693
49694
 
49694
49695
  /**
49695
49696
  * @param {number}
@@ -50104,7 +50105,7 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
50104
50105
  // \0 }
50105
50106
  case 0: case 125: scanning = 0;
50106
50107
  // ;
50107
- case 59 + offset:
50108
+ case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '');
50108
50109
  if (property > 0 && (strlen(characters) - length))
50109
50110
  append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
50110
50111
  break
@@ -50119,8 +50120,8 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
50119
50120
  parse(characters, root, reference, reference, props, rulesets, length, points, children);
50120
50121
  else
50121
50122
  switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
50122
- // d m s
50123
- case 100: case 109: case 115:
50123
+ // d l m s
50124
+ case 100: case 108: case 109: case 115:
50124
50125
  parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
50125
50126
  break
50126
50127
  default:
@@ -50239,6 +50240,7 @@ function serialize (children, callback) {
50239
50240
  */
50240
50241
  function stringify (element, index, children, callback) {
50241
50242
  switch (element.type) {
50243
+ case LAYER: if (element.children.length) break
50242
50244
  case IMPORT: case DECLARATION: return element.return = element.return || element.value
50243
50245
  case COMMENT: return ''
50244
50246
  case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
@@ -50436,7 +50438,7 @@ var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {
50436
50438
  var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
50437
50439
 
50438
50440
  if (unsafePseudoClasses) {
50439
- var isNested = element.parent === children[0]; // in nested rules comments become children of the "auto-inserted" rule
50441
+ var isNested = !!element.parent; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent`
50440
50442
  //
50441
50443
  // considering this input:
50442
50444
  // .a {
@@ -50452,7 +50454,7 @@ var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {
50452
50454
  // .b {}
50453
50455
  // }
50454
50456
 
50455
- var commentContainer = isNested ? children[0].children : // global rule at the root level
50457
+ var commentContainer = isNested ? element.parent.children : // global rule at the root level
50456
50458
  children;
50457
50459
 
50458
50460
  for (var i = commentContainer.length - 1; i >= 0; i--) {
@@ -51085,6 +51087,7 @@ function murmur2(str) {
51085
51087
 
51086
51088
  var unitlessKeys = {
51087
51089
  animationIterationCount: 1,
51090
+ aspectRatio: 1,
51088
51091
  borderImageOutset: 1,
51089
51092
  borderImageSlice: 1,
51090
51093
  borderImageWidth: 1,
@@ -51451,12 +51454,12 @@ var syncFallback = function syncFallback(create) {
51451
51454
 
51452
51455
  var useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;
51453
51456
  var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$3 ? syncFallback : useInsertionEffect || syncFallback;
51454
- var useInsertionEffectWithLayoutFallback = useInsertionEffect || useLayoutEffect;
51457
+ var useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect;
51455
51458
 
51456
51459
  var isBrowser$2 = typeof document !== 'undefined';
51457
51460
  var hasOwnProperty = {}.hasOwnProperty;
51458
51461
 
51459
- var EmotionCacheContext = /* #__PURE__ */createContext$1( // we're doing this to avoid preconstruct's dead code elimination in this one case
51462
+ var EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
51460
51463
  // because this module is primarily intended for the browser and node
51461
51464
  // but it's also required in react native and similar environments sometimes
51462
51465
  // and we could have a special build just for that
@@ -51495,7 +51498,7 @@ if (!isBrowser$2) {
51495
51498
  cache = createCache({
51496
51499
  key: 'css'
51497
51500
  });
51498
- return /*#__PURE__*/createElement(EmotionCacheContext.Provider, {
51501
+ return /*#__PURE__*/React.createElement(EmotionCacheContext.Provider, {
51499
51502
  value: cache
51500
51503
  }, func(props, cache));
51501
51504
  } else {
@@ -51505,7 +51508,7 @@ if (!isBrowser$2) {
51505
51508
  };
51506
51509
  }
51507
51510
 
51508
- var ThemeContext = /* #__PURE__ */createContext$1({});
51511
+ var ThemeContext = /* #__PURE__ */React.createContext({});
51509
51512
 
51510
51513
  if (process.env.NODE_ENV !== 'production') {
51511
51514
  ThemeContext.displayName = 'EmotionThemeContext';
@@ -51601,7 +51604,7 @@ var Insertion$2 = function Insertion(_ref) {
51601
51604
  next = next.next;
51602
51605
  }
51603
51606
 
51604
- return /*#__PURE__*/createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
51607
+ return /*#__PURE__*/React.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
51605
51608
  __html: rules
51606
51609
  }, _ref2.nonce = cache.sheet.nonce, _ref2));
51607
51610
  }
@@ -51628,7 +51631,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
51628
51631
  className = props.className + " ";
51629
51632
  }
51630
51633
 
51631
- var serialized = serializeStyles(registeredStyles, undefined, useContext(ThemeContext));
51634
+ var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));
51632
51635
 
51633
51636
  if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
51634
51637
  var labelFromStack = props[labelPropName];
@@ -51649,20 +51652,22 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
51649
51652
 
51650
51653
  newProps.ref = ref;
51651
51654
  newProps.className = className;
51652
- return /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/createElement(Insertion$2, {
51655
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion$2, {
51653
51656
  cache: cache,
51654
51657
  serialized: serialized,
51655
51658
  isStringTag: typeof WrappedComponent === 'string'
51656
- }), /*#__PURE__*/createElement(WrappedComponent, newProps));
51659
+ }), /*#__PURE__*/React.createElement(WrappedComponent, newProps));
51657
51660
  });
51658
51661
 
51659
51662
  if (process.env.NODE_ENV !== 'production') {
51660
51663
  Emotion.displayName = 'EmotionCssPropInternal';
51661
51664
  }
51662
51665
 
51666
+ var Emotion$1 = Emotion;
51667
+
51663
51668
  var pkg = {
51664
51669
  name: "@emotion/react",
51665
- version: "11.10.5",
51670
+ version: "11.11.1",
51666
51671
  main: "dist/emotion-react.cjs.js",
51667
51672
  module: "dist/emotion-react.esm.js",
51668
51673
  browser: {
@@ -51675,6 +51680,7 @@ var pkg = {
51675
51680
  browser: "./dist/emotion-react.browser.esm.js",
51676
51681
  "default": "./dist/emotion-react.esm.js"
51677
51682
  },
51683
+ "import": "./dist/emotion-react.cjs.mjs",
51678
51684
  "default": "./dist/emotion-react.cjs.js"
51679
51685
  },
51680
51686
  "./jsx-runtime": {
@@ -51683,6 +51689,7 @@ var pkg = {
51683
51689
  browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",
51684
51690
  "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"
51685
51691
  },
51692
+ "import": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",
51686
51693
  "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"
51687
51694
  },
51688
51695
  "./_isolated-hnrs": {
@@ -51691,6 +51698,7 @@ var pkg = {
51691
51698
  browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",
51692
51699
  "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"
51693
51700
  },
51701
+ "import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",
51694
51702
  "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"
51695
51703
  },
51696
51704
  "./jsx-dev-runtime": {
@@ -51699,11 +51707,18 @@ var pkg = {
51699
51707
  browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",
51700
51708
  "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"
51701
51709
  },
51710
+ "import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",
51702
51711
  "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"
51703
51712
  },
51704
51713
  "./package.json": "./package.json",
51705
51714
  "./types/css-prop": "./types/css-prop.d.ts",
51706
- "./macro": "./macro.js"
51715
+ "./macro": {
51716
+ types: {
51717
+ "import": "./macro.d.mts",
51718
+ "default": "./macro.d.ts"
51719
+ },
51720
+ "default": "./macro.js"
51721
+ }
51707
51722
  },
51708
51723
  types: "types/index.d.ts",
51709
51724
  files: [
@@ -51713,9 +51728,7 @@ var pkg = {
51713
51728
  "jsx-dev-runtime",
51714
51729
  "_isolated-hnrs",
51715
51730
  "types/*.d.ts",
51716
- "macro.js",
51717
- "macro.d.ts",
51718
- "macro.js.flow"
51731
+ "macro.*"
51719
51732
  ],
51720
51733
  sideEffects: false,
51721
51734
  author: "Emotion Contributors",
@@ -51725,33 +51738,28 @@ var pkg = {
51725
51738
  },
51726
51739
  dependencies: {
51727
51740
  "@babel/runtime": "^7.18.3",
51728
- "@emotion/babel-plugin": "^11.10.5",
51729
- "@emotion/cache": "^11.10.5",
51730
- "@emotion/serialize": "^1.1.1",
51731
- "@emotion/use-insertion-effect-with-fallbacks": "^1.0.0",
51732
- "@emotion/utils": "^1.2.0",
51733
- "@emotion/weak-memoize": "^0.3.0",
51741
+ "@emotion/babel-plugin": "^11.11.0",
51742
+ "@emotion/cache": "^11.11.0",
51743
+ "@emotion/serialize": "^1.1.2",
51744
+ "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
51745
+ "@emotion/utils": "^1.2.1",
51746
+ "@emotion/weak-memoize": "^0.3.1",
51734
51747
  "hoist-non-react-statics": "^3.3.1"
51735
51748
  },
51736
51749
  peerDependencies: {
51737
- "@babel/core": "^7.0.0",
51738
51750
  react: ">=16.8.0"
51739
51751
  },
51740
51752
  peerDependenciesMeta: {
51741
- "@babel/core": {
51742
- optional: true
51743
- },
51744
51753
  "@types/react": {
51745
51754
  optional: true
51746
51755
  }
51747
51756
  },
51748
51757
  devDependencies: {
51749
- "@babel/core": "^7.18.5",
51750
51758
  "@definitelytyped/dtslint": "0.0.112",
51751
- "@emotion/css": "11.10.5",
51752
- "@emotion/css-prettifier": "1.1.1",
51753
- "@emotion/server": "11.10.0",
51754
- "@emotion/styled": "11.10.5",
51759
+ "@emotion/css": "11.11.0",
51760
+ "@emotion/css-prettifier": "1.1.3",
51761
+ "@emotion/server": "11.11.0",
51762
+ "@emotion/styled": "11.11.0",
51755
51763
  "html-tag-names": "^1.1.2",
51756
51764
  react: "16.14.0",
51757
51765
  "svg-tag-names": "^1.1.1",
@@ -51777,7 +51785,13 @@ var pkg = {
51777
51785
  ],
51778
51786
  extra: {
51779
51787
  "./types/css-prop": "./types/css-prop.d.ts",
51780
- "./macro": "./macro.js"
51788
+ "./macro": {
51789
+ types: {
51790
+ "import": "./macro.d.mts",
51791
+ "default": "./macro.d.ts"
51792
+ },
51793
+ "default": "./macro.js"
51794
+ }
51781
51795
  }
51782
51796
  }
51783
51797
  }
@@ -51788,12 +51802,12 @@ var jsx = function jsx(type, props) {
51788
51802
 
51789
51803
  if (props == null || !hasOwnProperty.call(props, 'css')) {
51790
51804
  // $FlowFixMe
51791
- return createElement.apply(undefined, args);
51805
+ return React.createElement.apply(undefined, args);
51792
51806
  }
51793
51807
 
51794
51808
  var argsLength = args.length;
51795
51809
  var createElementArgArray = new Array(argsLength);
51796
- createElementArgArray[0] = Emotion;
51810
+ createElementArgArray[0] = Emotion$1;
51797
51811
  createElementArgArray[1] = createEmotionProps(type, props);
51798
51812
 
51799
51813
  for (var i = 2; i < argsLength; i++) {
@@ -51801,7 +51815,7 @@ var jsx = function jsx(type, props) {
51801
51815
  } // $FlowFixMe
51802
51816
 
51803
51817
 
51804
- return createElement.apply(null, createElementArgArray);
51818
+ return React.createElement.apply(null, createElementArgArray);
51805
51819
  };
51806
51820
 
51807
51821
  var warnedAboutCssPropForGlobal = false; // maintain place over rerenders.
@@ -51819,7 +51833,7 @@ var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
51819
51833
  }
51820
51834
 
51821
51835
  var styles = props.styles;
51822
- var serialized = serializeStyles([styles], undefined, useContext(ThemeContext));
51836
+ var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext));
51823
51837
 
51824
51838
  if (!isBrowser$2) {
51825
51839
  var _ref;
@@ -51844,7 +51858,7 @@ var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
51844
51858
  return null;
51845
51859
  }
51846
51860
 
51847
- return /*#__PURE__*/createElement("style", (_ref = {}, _ref["data-emotion"] = cache.key + "-global " + serializedNames, _ref.dangerouslySetInnerHTML = {
51861
+ return /*#__PURE__*/React.createElement("style", (_ref = {}, _ref["data-emotion"] = cache.key + "-global " + serializedNames, _ref.dangerouslySetInnerHTML = {
51848
51862
  __html: rules
51849
51863
  }, _ref.nonce = cache.sheet.nonce, _ref));
51850
51864
  } // yes, i know these hooks are used conditionally
@@ -51853,7 +51867,7 @@ var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
51853
51867
  // so it's not actually breaking anything
51854
51868
 
51855
51869
 
51856
- var sheetRef = useRef();
51870
+ var sheetRef = React.useRef();
51857
51871
  useInsertionEffectWithLayoutFallback(function () {
51858
51872
  var key = cache.key + "-global"; // use case of https://github.com/emotion-js/emotion/issues/2675
51859
51873
 
@@ -52020,7 +52034,7 @@ var Insertion$1 = function Insertion(_ref) {
52020
52034
  if (!isBrowser$2 && rules.length !== 0) {
52021
52035
  var _ref2;
52022
52036
 
52023
- return /*#__PURE__*/createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedArr.map(function (serialized) {
52037
+ return /*#__PURE__*/React.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedArr.map(function (serialized) {
52024
52038
  return serialized.name;
52025
52039
  }).join(' '), _ref2.dangerouslySetInnerHTML = {
52026
52040
  __html: rules
@@ -52065,11 +52079,11 @@ var ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {
52065
52079
  var content = {
52066
52080
  css: css,
52067
52081
  cx: cx,
52068
- theme: useContext(ThemeContext)
52082
+ theme: React.useContext(ThemeContext)
52069
52083
  };
52070
52084
  var ele = props.children(content);
52071
52085
  hasRendered = true;
52072
- return /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/createElement(Insertion$1, {
52086
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion$1, {
52073
52087
  cache: cache,
52074
52088
  serializedArr: serializedArr
52075
52089
  }), ele);
@@ -52264,7 +52278,7 @@ var Insertion = function Insertion(_ref) {
52264
52278
  next = next.next;
52265
52279
  }
52266
52280
 
52267
- return /*#__PURE__*/createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
52281
+ return /*#__PURE__*/React.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
52268
52282
  __html: rules
52269
52283
  }, _ref2.nonce = cache.sheet.nonce, _ref2));
52270
52284
  }
@@ -52334,7 +52348,7 @@ var createStyled = function createStyled(tag, options) {
52334
52348
  mergedProps[key] = props[key];
52335
52349
  }
52336
52350
 
52337
- mergedProps.theme = useContext(ThemeContext);
52351
+ mergedProps.theme = React.useContext(ThemeContext);
52338
52352
  }
52339
52353
 
52340
52354
  if (typeof props.className === 'string') {
@@ -52364,11 +52378,11 @@ var createStyled = function createStyled(tag, options) {
52364
52378
 
52365
52379
  newProps.className = className;
52366
52380
  newProps.ref = ref;
52367
- return /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/createElement(Insertion, {
52381
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {
52368
52382
  cache: cache,
52369
52383
  serialized: serialized,
52370
52384
  isStringTag: typeof FinalTag === 'string'
52371
- }), /*#__PURE__*/createElement(FinalTag, newProps));
52385
+ }), /*#__PURE__*/React.createElement(FinalTag, newProps));
52372
52386
  });
52373
52387
  Styled.displayName = identifierName !== undefined ? identifierName : "Styled(" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + ")";
52374
52388
  Styled.defaultProps = tag.defaultProps;
@@ -56447,10 +56461,16 @@ var PaginationInfo = function (_a) {
56447
56461
  return (React__default.createElement(HStack, __assign$1({ spacing: "1", align: "center", textAlign: "center", justify: "center" }, rest), !isLoadingPage && React__default.createElement(Text, null, "".concat(page, " / ").concat(lastPage))));
56448
56462
  };
56449
56463
  var Pagination = function (_a) {
56450
- var setPage = _a.setPage, _b = _a.page, page = _b === void 0 ? 1 : _b, _c = _a.pageSize, pageSize = _c === void 0 ? 10 : _c, _d = _a.totalItems, totalItems = _d === void 0 ? 0 : _d, _e = _a.isLoadingPage, isLoadingPage = _e === void 0 ? false : _e, rest = __rest$1(_a, ["setPage", "page", "pageSize", "totalItems", "isLoadingPage"]);
56464
+ var setPage = _a.setPage, _b = _a.page, page = _b === void 0 ? 1 : _b, _c = _a.pageSize, pageSize = _c === void 0 ? 10 : _c, _d = _a.totalItems, totalItems = _d === void 0 ? 0 : _d, _e = _a.isLoadingPage, isLoadingPage = _e === void 0 ? false : _e, children = _a.children, rest = __rest$1(_a, ["setPage", "page", "pageSize", "totalItems", "isLoadingPage", "children"]);
56451
56465
  var pagination = getPaginationInfo({ page: page, pageSize: pageSize, totalItems: totalItems });
56452
56466
  return (React__default.createElement(PaginationContext.Provider, { value: __assign$1({ setPage: setPage, page: page, pageSize: pageSize, totalItems: totalItems, isLoadingPage: isLoadingPage }, pagination) },
56453
- React__default.createElement(HStack, __assign$1({ w: "full" }, rest))));
56467
+ !!children && (React__default.createElement(HStack, __assign$1({ w: "full" }, rest), children)),
56468
+ !children && (React__default.createElement(HStack, __assign$1({ w: "full" }, rest),
56469
+ React__default.createElement(PaginationButtonFirstPage, null),
56470
+ React__default.createElement(PaginationButtonPrevPage, null),
56471
+ React__default.createElement(PaginationInfo, { flex: "1" }),
56472
+ React__default.createElement(PaginationButtonNextPage, null),
56473
+ React__default.createElement(PaginationButtonLastPage, null)))));
56454
56474
  };
56455
56475
 
56456
56476
  var SearchInput = forwardRef$1(function (_a, ref) {
@@ -56580,9 +56600,7 @@ function _iterableToArrayLimit(arr, i) {
56580
56600
  if (_x = (_i = _i.call(arr)).next, 0 === i) {
56581
56601
  if (Object(_i) !== _i) return;
56582
56602
  _n = !1;
56583
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
56584
- ;
56585
- }
56603
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
56586
56604
  } catch (err) {
56587
56605
  _d = !0, _e = err;
56588
56606
  } finally {
@@ -56598,9 +56616,7 @@ function _iterableToArrayLimit(arr, i) {
56598
56616
 
56599
56617
  function _arrayLikeToArray(arr, len) {
56600
56618
  if (len == null || len > arr.length) len = arr.length;
56601
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
56602
- arr2[i] = arr[i];
56603
- }
56619
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
56604
56620
  return arr2;
56605
56621
  }
56606
56622