@charcoal-ui/react-sandbox 3.0.0-beta.2 → 3.0.0-beta.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.
Files changed (72) hide show
  1. package/dist/_lib/compat.d.ts +1 -1
  2. package/dist/_lib/compat.d.ts.map +1 -1
  3. package/dist/components/Carousel/index.d.ts +1 -1
  4. package/dist/components/Carousel/index.d.ts.map +1 -1
  5. package/dist/components/Carousel/index.story.d.ts.map +1 -1
  6. package/dist/components/CarouselButton/index.d.ts.map +1 -1
  7. package/dist/components/CarouselButton/index.story.d.ts.map +1 -1
  8. package/dist/components/Filter/index.d.ts +1 -1
  9. package/dist/components/Filter/index.d.ts.map +1 -1
  10. package/dist/components/Filter/index.story.d.ts.map +1 -1
  11. package/dist/components/HintText/index.d.ts +1 -1
  12. package/dist/components/HintText/index.d.ts.map +1 -1
  13. package/dist/components/HintText/index.story.d.ts.map +1 -1
  14. package/dist/components/Layout/index.d.ts +1 -1
  15. package/dist/components/Layout/index.d.ts.map +1 -1
  16. package/dist/components/LeftMenu/index.d.ts.map +1 -1
  17. package/dist/components/MenuListItem/index.d.ts +1 -1
  18. package/dist/components/MenuListItem/index.d.ts.map +1 -1
  19. package/dist/components/MenuListItem/index.story.d.ts.map +1 -1
  20. package/dist/components/Pager/index.d.ts +1 -2
  21. package/dist/components/Pager/index.d.ts.map +1 -1
  22. package/dist/components/Pager/index.story.d.ts +1 -2
  23. package/dist/components/Pager/index.story.d.ts.map +1 -1
  24. package/dist/components/SwitchCheckbox/index.d.ts +1 -1
  25. package/dist/components/SwitchCheckbox/index.d.ts.map +1 -1
  26. package/dist/components/SwitchCheckbox/index.story.d.ts +1 -2
  27. package/dist/components/SwitchCheckbox/index.story.d.ts.map +1 -1
  28. package/dist/components/TextEllipsis/index.story.d.ts.map +1 -1
  29. package/dist/components/WithIcon/index.d.ts +1 -1
  30. package/dist/components/WithIcon/index.d.ts.map +1 -1
  31. package/dist/components/WithIcon/index.story.d.ts +1 -1
  32. package/dist/components/WithIcon/index.story.d.ts.map +1 -1
  33. package/dist/components/icons/Base.d.ts +1 -1
  34. package/dist/components/icons/Base.d.ts.map +1 -1
  35. package/dist/components/icons/DotsIcon.d.ts.map +1 -1
  36. package/dist/components/icons/InfoIcon.d.ts.map +1 -1
  37. package/dist/components/icons/NextIcon.d.ts.map +1 -1
  38. package/dist/components/icons/WedgeIcon.d.ts.map +1 -1
  39. package/dist/hooks/index.d.ts +2 -2
  40. package/dist/hooks/index.d.ts.map +1 -1
  41. package/dist/index.cjs.js +309 -247
  42. package/dist/index.cjs.js.map +1 -1
  43. package/dist/index.esm.js +249 -187
  44. package/dist/index.esm.js.map +1 -1
  45. package/dist/styled.d.ts +9 -9
  46. package/package.json +8 -8
  47. package/src/_lib/compat.ts +1 -1
  48. package/src/components/Carousel/index.story.tsx +0 -1
  49. package/src/components/Carousel/index.tsx +2 -1
  50. package/src/components/CarouselButton/index.story.tsx +0 -1
  51. package/src/components/CarouselButton/index.tsx +0 -1
  52. package/src/components/Filter/index.story.tsx +0 -1
  53. package/src/components/Filter/index.tsx +1 -1
  54. package/src/components/HintText/index.story.tsx +0 -1
  55. package/src/components/HintText/index.tsx +1 -1
  56. package/src/components/Layout/index.story.tsx +1 -1
  57. package/src/components/Layout/index.tsx +2 -1
  58. package/src/components/LeftMenu/index.tsx +0 -1
  59. package/src/components/MenuListItem/index.story.tsx +0 -1
  60. package/src/components/MenuListItem/index.tsx +2 -1
  61. package/src/components/Pager/index.story.tsx +1 -1
  62. package/src/components/Pager/index.tsx +2 -6
  63. package/src/components/SwitchCheckbox/index.story.tsx +0 -1
  64. package/src/components/SwitchCheckbox/index.tsx +1 -1
  65. package/src/components/TextEllipsis/index.story.tsx +0 -1
  66. package/src/components/WithIcon/index.story.tsx +1 -1
  67. package/src/components/WithIcon/index.tsx +2 -1
  68. package/src/components/icons/Base.tsx +1 -1
  69. package/src/components/icons/DotsIcon.tsx +0 -1
  70. package/src/components/icons/InfoIcon.tsx +0 -1
  71. package/src/components/icons/NextIcon.tsx +0 -1
  72. package/src/components/icons/WedgeIcon.tsx +0 -1
package/dist/index.cjs.js CHANGED
@@ -28,7 +28,7 @@ var src_exports = {};
28
28
  __export(src_exports, {
29
29
  CancelLayoutItemBodyPadding: () => CancelLayoutItemBodyPadding,
30
30
  Carousel: () => Carousel,
31
- ComponentAbstraction: () => import_react23.ComponentAbstraction,
31
+ ComponentAbstraction: () => import_react13.ComponentAbstraction,
32
32
  Filter: () => Filter_default,
33
33
  FilterButton: () => FilterButton,
34
34
  FilterIconButton: () => FilterIconButton,
@@ -58,7 +58,7 @@ __export(src_exports, {
58
58
  SwitchCheckbox: () => SwitchCheckbox_default,
59
59
  TextEllipsis: () => TextEllipsis,
60
60
  WithIcon: () => WithIcon_default,
61
- useComponentAbstraction: () => import_react23.useComponentAbstraction,
61
+ useComponentAbstraction: () => import_react13.useComponentAbstraction,
62
62
  useElementSize: () => useElementSize,
63
63
  useLayoutItemBodyPadding: () => useLayoutItemBodyPadding,
64
64
  useMedia: () => useMedia,
@@ -67,30 +67,31 @@ __export(src_exports, {
67
67
  module.exports = __toCommonJS(src_exports);
68
68
 
69
69
  // src/components/Filter/index.tsx
70
- var import_react = __toESM(require("react"));
70
+ var React = __toESM(require("react"));
71
71
  var import_styled_components = __toESM(require("styled-components"));
72
- var import_react2 = require("@charcoal-ui/react");
72
+ var import_react = require("@charcoal-ui/react");
73
73
  var import_utils = require("@charcoal-ui/utils");
74
- var FilterButton = import_react.default.forwardRef(function FilterButton2({
74
+ var import_jsx_runtime = require("react/jsx-runtime");
75
+ var FilterButton = React.forwardRef(function FilterButton2({
75
76
  onClick,
76
77
  children,
77
78
  active = false,
78
79
  hover,
79
80
  reactive = false
80
81
  }, ref) {
81
- return /* @__PURE__ */ import_react.default.createElement(
82
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
82
83
  ButtonLike,
83
84
  {
84
85
  active,
85
86
  reactive,
86
87
  hover,
87
88
  onClick: active && !reactive ? void 0 : onClick,
88
- ref
89
- },
90
- children
89
+ ref,
90
+ children
91
+ }
91
92
  );
92
93
  });
93
- var FilterIconButton = import_react.default.forwardRef(function FilterIconButton2({
94
+ var FilterIconButton = React.forwardRef(function FilterIconButton2({
94
95
  onClick,
95
96
  children,
96
97
  active = false,
@@ -99,7 +100,7 @@ var FilterIconButton = import_react.default.forwardRef(function FilterIconButton
99
100
  width,
100
101
  height
101
102
  }, ref) {
102
- return /* @__PURE__ */ import_react.default.createElement(
103
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
103
104
  StyledButtonLike,
104
105
  {
105
106
  active,
@@ -108,12 +109,12 @@ var FilterIconButton = import_react.default.forwardRef(function FilterIconButton
108
109
  onClick: active && !reactive ? void 0 : onClick,
109
110
  ref,
110
111
  buttonWidth: width,
111
- buttonHeight: height
112
- },
113
- children
112
+ buttonHeight: height,
113
+ children
114
+ }
114
115
  );
115
116
  });
116
- var FilterLink = import_react.default.forwardRef(function FilterLink2({
117
+ var FilterLink = React.forwardRef(function FilterLink2({
117
118
  onClick,
118
119
  children,
119
120
  active = false,
@@ -121,20 +122,20 @@ var FilterLink = import_react.default.forwardRef(function FilterLink2({
121
122
  reactive = false,
122
123
  ...props
123
124
  }, ref) {
124
- const { Link } = (0, import_react2.useComponentAbstraction)();
125
+ const { Link } = (0, import_react.useComponentAbstraction)();
125
126
  if (active && !reactive) {
126
- return /* @__PURE__ */ import_react.default.createElement(PlainElement, { active: true, hover, ref }, children);
127
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlainElement, { active: true, hover, ref, children });
127
128
  } else {
128
- return /* @__PURE__ */ import_react.default.createElement(Link, { ...props, onClick }, /* @__PURE__ */ import_react.default.createElement(
129
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, { ...props, onClick, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
129
130
  PlainElement,
130
131
  {
131
132
  active,
132
133
  reactive,
133
134
  hover,
134
- ref
135
- },
136
- children
137
- ));
135
+ ref,
136
+ children
137
+ }
138
+ ) });
138
139
  }
139
140
  });
140
141
  var buttonCss = import_styled_components.css`
@@ -197,7 +198,6 @@ var Filter = import_styled_components.default.div`
197
198
  var Filter_default = Filter;
198
199
 
199
200
  // src/components/HintText/index.tsx
200
- var import_react5 = __toESM(require("react"));
201
201
  var import_styled_components5 = __toESM(require("styled-components"));
202
202
 
203
203
  // src/styled.ts
@@ -206,12 +206,11 @@ var import_styled = require("@charcoal-ui/styled");
206
206
  var theme = (0, import_styled.createTheme)(import_styled_components2.default);
207
207
 
208
208
  // src/components/icons/InfoIcon.tsx
209
- var import_react4 = __toESM(require("react"));
210
209
  var import_styled_components4 = __toESM(require("styled-components"));
211
210
 
212
211
  // src/components/icons/Base.tsx
213
- var import_react3 = __toESM(require("react"));
214
212
  var import_styled_components3 = __toESM(require("styled-components"));
213
+ var import_jsx_runtime2 = require("react/jsx-runtime");
215
214
  function IconBase({
216
215
  size: size3 = 24,
217
216
  viewBoxSize,
@@ -221,22 +220,22 @@ function IconBase({
221
220
  fillRule,
222
221
  clipRule
223
222
  }) {
224
- return /* @__PURE__ */ import_react3.default.createElement(
223
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
225
224
  Icon,
226
225
  {
227
226
  viewBox: `0 0 ${viewBoxSize} ${viewBoxSize}`,
228
227
  size: size3,
229
- currentColor
230
- },
231
- /* @__PURE__ */ import_react3.default.createElement(
232
- IconBasePath,
233
- {
234
- path: path2,
235
- transform,
236
- fillRule,
237
- clipRule
238
- }
239
- )
228
+ currentColor,
229
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
230
+ IconBasePath,
231
+ {
232
+ path: path2,
233
+ transform,
234
+ fillRule,
235
+ clipRule
236
+ }
237
+ )
238
+ }
240
239
  );
241
240
  }
242
241
  var Icon = import_styled_components3.default.svg`
@@ -255,7 +254,7 @@ var IconBasePath = ({
255
254
  clipRule
256
255
  }) => {
257
256
  if (typeof path2 === "string") {
258
- return /* @__PURE__ */ import_react3.default.createElement(
257
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
259
258
  "path",
260
259
  {
261
260
  d: path2,
@@ -265,25 +264,29 @@ var IconBasePath = ({
265
264
  }
266
265
  );
267
266
  } else {
268
- return /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, path2);
267
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: path2 });
269
268
  }
270
269
  };
271
270
 
272
271
  // src/components/icons/InfoIcon.tsx
272
+ var import_jsx_runtime3 = require("react/jsx-runtime");
273
273
  var size = 16;
274
274
  function InfoIcon() {
275
- const path2 = /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, /* @__PURE__ */ import_react4.default.createElement(
276
- "path",
277
- {
278
- d: "M8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183\n 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16Z"
279
- }
280
- ), /* @__PURE__ */ import_react4.default.createElement(
281
- Path,
282
- {
283
- d: "M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629\n 4.68629 2 8 2C11.3137 2 14 4.68629 14 8ZM8 6.25C8.69036 6.25 9.25 5.69036\n 9.25 5C9.25 4.30964 8.69036 3.75 8 3.75C7.30964 3.75 6.75 4.30964 6.75\n 5C6.75 5.69036 7.30964 6.25 8 6.25ZM7 7.75V11.25C7 11.8023 7.44772 12.25\n 8 12.25C8.55228 12.25 9 11.8023 9 11.25V7.75C9 7.19772 8.55228 6.75 8\n 6.75C7.44772 6.75 7 7.19772 7 7.75Z"
284
- }
285
- ));
286
- return /* @__PURE__ */ import_react4.default.createElement(IconBase, { viewBoxSize: size, size, currentColor: true, path: path2 });
275
+ const path2 = /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
276
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
277
+ "path",
278
+ {
279
+ d: "M8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183\n 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16Z"
280
+ }
281
+ ),
282
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
283
+ Path,
284
+ {
285
+ d: "M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629\n 4.68629 2 8 2C11.3137 2 14 4.68629 14 8ZM8 6.25C8.69036 6.25 9.25 5.69036\n 9.25 5C9.25 4.30964 8.69036 3.75 8 3.75C7.30964 3.75 6.75 4.30964 6.75\n 5C6.75 5.69036 7.30964 6.25 8 6.25ZM7 7.75V11.25C7 11.8023 7.44772 12.25\n 8 12.25C8.55228 12.25 9 11.8023 9 11.25V7.75C9 7.19772 8.55228 6.75 8\n 6.75C7.44772 6.75 7 7.19772 7 7.75Z"
286
+ }
287
+ )
288
+ ] });
289
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(IconBase, { viewBoxSize: size, size, currentColor: true, path: path2 });
287
290
  }
288
291
  var Path = import_styled_components4.default.path`
289
292
  fill: ${({ theme: theme2 }) => theme2.color.surface1};
@@ -292,8 +295,12 @@ var Path = import_styled_components4.default.path`
292
295
 
293
296
  // src/components/HintText/index.tsx
294
297
  var import_utils2 = require("@charcoal-ui/utils");
298
+ var import_jsx_runtime4 = require("react/jsx-runtime");
295
299
  function HintText({ children, context, className }) {
296
- return /* @__PURE__ */ import_react5.default.createElement(Container, { className, context }, /* @__PURE__ */ import_react5.default.createElement(IconWrap, null, /* @__PURE__ */ import_react5.default.createElement(InfoIcon, null)), /* @__PURE__ */ import_react5.default.createElement(Text, null, children));
300
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(Container, { className, context, children: [
301
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(IconWrap, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(InfoIcon, {}) }),
302
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Text, { children })
303
+ ] });
297
304
  }
298
305
  var Container = import_styled_components5.default.div.attrs(
299
306
  styledProps
@@ -360,7 +367,8 @@ function contextToProps(context) {
360
367
  }
361
368
 
362
369
  // src/components/Layout/index.tsx
363
- var import_react7 = __toESM(require("react"));
370
+ var import_react3 = require("react");
371
+ var React2 = __toESM(require("react"));
364
372
  var import_styled_components7 = __toESM(require("styled-components"));
365
373
 
366
374
  // src/foundation/contants.ts
@@ -374,7 +382,7 @@ var RESPONSIVE_MAIN_MAX_WIDTH = (0, import_foundation.columnSystem)(
374
382
  );
375
383
 
376
384
  // src/foundation/hooks.ts
377
- var import_react6 = require("react");
385
+ var import_react2 = require("react");
378
386
  var import_react_dom = __toESM(require("react-dom"));
379
387
  var import_styled_components6 = require("styled-components");
380
388
  var import_utils3 = require("@charcoal-ui/utils");
@@ -382,7 +390,7 @@ function useMediaScreen1() {
382
390
  return useMedia((0, import_utils3.maxWidth)((0, import_styled_components6.useTheme)().breakpoint.screen1));
383
391
  }
384
392
  function useMedia(query) {
385
- const matcher = (0, import_react6.useMemo)(
393
+ const matcher = (0, import_react2.useMemo)(
386
394
  () => __TEST__ ? {
387
395
  matches: false,
388
396
  addListener: () => {
@@ -392,7 +400,7 @@ function useMedia(query) {
392
400
  } : matchMedia(query),
393
401
  [query]
394
402
  );
395
- const [matches, setMatches] = (0, import_react6.useState)(matcher.matches);
403
+ const [matches, setMatches] = (0, import_react2.useState)(matcher.matches);
396
404
  if (matcher.matches !== matches) {
397
405
  setMatches(matcher.matches);
398
406
  }
@@ -405,21 +413,21 @@ function useMedia(query) {
405
413
  setMatches(e.matches);
406
414
  }
407
415
  };
408
- (0, import_react6.useLayoutEffect)(() => {
416
+ (0, import_react2.useLayoutEffect)(() => {
409
417
  matcher.addListener(callback);
410
418
  setMatches(matcher.matches);
411
419
  return () => {
412
420
  matcher.removeListener(callback);
413
421
  };
414
422
  }, [matcher]);
415
- (0, import_react6.useDebugValue)(`${query}: ${matches.toString()}`);
423
+ (0, import_react2.useDebugValue)(`${query}: ${matches.toString()}`);
416
424
  return matches;
417
425
  }
418
426
  function measure(ref) {
419
427
  return ref !== null ? ref.getBoundingClientRect() : void 0;
420
428
  }
421
429
  function useElementSize(ref, deps = []) {
422
- const [size3, setSize] = (0, import_react6.useReducer)(
430
+ const [size3, setSize] = (0, import_react2.useReducer)(
423
431
  (state, next) => {
424
432
  if (state === void 0 || next === void 0) {
425
433
  return next;
@@ -431,8 +439,8 @@ function useElementSize(ref, deps = []) {
431
439
  },
432
440
  void 0
433
441
  );
434
- const [watch, setWatch] = (0, import_react6.useState)(null);
435
- (0, import_react6.useLayoutEffect)(() => {
442
+ const [watch, setWatch] = (0, import_react2.useState)(null);
443
+ (0, import_react2.useLayoutEffect)(() => {
436
444
  if (watch === null) {
437
445
  return;
438
446
  }
@@ -446,23 +454,23 @@ function useElementSize(ref, deps = []) {
446
454
  setSize(void 0);
447
455
  };
448
456
  }, [watch]);
449
- (0, import_react6.useLayoutEffect)(() => {
457
+ (0, import_react2.useLayoutEffect)(() => {
450
458
  if (ref.current !== watch) {
451
459
  setWatch(ref.current);
452
460
  }
453
461
  });
454
- (0, import_react6.useLayoutEffect)(() => {
462
+ (0, import_react2.useLayoutEffect)(() => {
455
463
  if (deps.length > 0) {
456
464
  setSize(measure(ref.current));
457
465
  }
458
466
  }, deps);
459
- (0, import_react6.useDebugValue)(size3);
467
+ (0, import_react2.useDebugValue)(size3);
460
468
  return size3;
461
469
  }
462
470
  function useDebounceAnimationState(defaultValue) {
463
- const [state, setState] = (0, import_react6.useState)(defaultValue);
464
- const timer = (0, import_react6.useRef)();
465
- const setDebounceState = (0, import_react6.useCallback)((value, force = false) => {
471
+ const [state, setState] = (0, import_react2.useState)(defaultValue);
472
+ const timer = (0, import_react2.useRef)();
473
+ const setDebounceState = (0, import_react2.useCallback)((value, force = false) => {
466
474
  if (force) {
467
475
  setState(value);
468
476
  return;
@@ -483,7 +491,8 @@ function useDebounceAnimationState(defaultValue) {
483
491
  // src/components/Layout/index.tsx
484
492
  var import_foundation2 = require("@charcoal-ui/foundation");
485
493
  var import_utils4 = require("@charcoal-ui/utils");
486
- var LayoutConfigContext = import_react7.default.createContext({
494
+ var import_jsx_runtime5 = require("react/jsx-runtime");
495
+ var LayoutConfigContext = React2.createContext({
487
496
  wide: false,
488
497
  center: false,
489
498
  withLeft: false
@@ -501,7 +510,17 @@ function Layout({
501
510
  wide: center ? true : wide ?? false,
502
511
  withLeft: menu != null && !isHeaderTopMenu
503
512
  };
504
- return /* @__PURE__ */ import_react7.default.createElement(LayoutRoot, null, /* @__PURE__ */ import_react7.default.createElement(LayoutConfigContext.Provider, { value: config }, config.withLeft && /* @__PURE__ */ import_react7.default.createElement(LeftArea, null, menu), /* @__PURE__ */ import_react7.default.createElement(MainArea, { center }, header != null && /* @__PURE__ */ import_react7.default.createElement(Header, null, header), isHeaderTopMenu && /* @__PURE__ */ import_react7.default.createElement(HeaderTopMenuContainer, null, menu), /* @__PURE__ */ import_react7.default.createElement(Grid, null, children))), /* @__PURE__ */ import_react7.default.createElement(GlobalStyle, null));
513
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(LayoutRoot, { children: [
514
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(LayoutConfigContext.Provider, { value: config, children: [
515
+ config.withLeft && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(LeftArea, { children: menu }),
516
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(MainArea, { center, children: [
517
+ header != null && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Header, { children: header }),
518
+ isHeaderTopMenu && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(HeaderTopMenuContainer, { children: menu }),
519
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Grid, { children })
520
+ ] })
521
+ ] }),
522
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(GlobalStyle, {})
523
+ ] });
505
524
  }
506
525
  var HeaderTopMenuContainer = import_styled_components7.default.div`
507
526
  margin-bottom: 40px;
@@ -585,10 +604,10 @@ var Grid = import_styled_components7.default.div`
585
604
  padding-bottom: 60px;
586
605
  }
587
606
  `;
588
- var LayoutItem = import_react7.default.forwardRef(
607
+ var LayoutItem = React2.forwardRef(
589
608
  function LayoutItem2({ span, children }, ref) {
590
- const { withLeft } = (0, import_react7.useContext)(LayoutConfigContext);
591
- return /* @__PURE__ */ import_react7.default.createElement(StyledLayoutItem, { span, withLeft, ref }, children);
609
+ const { withLeft } = (0, import_react3.useContext)(LayoutConfigContext);
610
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(StyledLayoutItem, { span, withLeft, ref, children });
592
611
  }
593
612
  );
594
613
  var StyledLayoutItem = import_styled_components7.default.div`
@@ -616,8 +635,8 @@ var StyledLayoutItem = import_styled_components7.default.div`
616
635
  }
617
636
  `;
618
637
  function LayoutItemHeader({ children }) {
619
- const { wide, center } = (0, import_react7.useContext)(LayoutConfigContext);
620
- return /* @__PURE__ */ import_react7.default.createElement(StyledLayoutItemHeader, { wide, center }, children);
638
+ const { wide, center } = (0, import_react3.useContext)(LayoutConfigContext);
639
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(StyledLayoutItemHeader, { wide, center, children });
621
640
  }
622
641
  var StyledLayoutItemHeader = import_styled_components7.default.div`
623
642
  padding: 0 ${(p) => p.wide ? 40 : 24}px;
@@ -675,8 +694,8 @@ function LayoutItemBody({
675
694
  horizontal = false,
676
695
  narrow = false
677
696
  }) {
678
- const { wide } = (0, import_react7.useContext)(LayoutConfigContext);
679
- return /* @__PURE__ */ import_react7.default.createElement(StyledLayoutItemBody, { wide, horizontal, narrow }, children);
697
+ const { wide } = (0, import_react3.useContext)(LayoutConfigContext);
698
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(StyledLayoutItemBody, { wide, horizontal, narrow, children });
680
699
  }
681
700
  var StyledLayoutItemBody = import_styled_components7.default.div`
682
701
  padding: ${(p) => p.narrow ? `${LAYOUT_ITEM_BODY_PADDING.narrow.yTop}px ${p.horizontal ? 0 : LAYOUT_ITEM_BODY_PADDING.narrow.x}px ${LAYOUT_ITEM_BODY_PADDING.narrow.yBottom}px` : p.wide ? `${p.horizontal ? 0 : LAYOUT_ITEM_BODY_PADDING.wide.y}px ${LAYOUT_ITEM_BODY_PADDING.wide.x}px` : `${p.horizontal ? 0 : LAYOUT_ITEM_BODY_PADDING.default.y}px ${LAYOUT_ITEM_BODY_PADDING.default.x}px`};
@@ -689,15 +708,15 @@ var StyledLayoutItemBody = import_styled_components7.default.div`
689
708
  box-sizing: border-box;
690
709
  `;
691
710
  function useLayoutItemBodyPadding() {
692
- const { wide } = (0, import_react7.useContext)(LayoutConfigContext);
711
+ const { wide } = (0, import_react3.useContext)(LayoutConfigContext);
693
712
  return useMediaScreen1() ? LAYOUT_ITEM_BODY_PADDING.column1 : wide ? LAYOUT_ITEM_BODY_PADDING.wide : LAYOUT_ITEM_BODY_PADDING.default;
694
713
  }
695
714
  function CancelLayoutItemBodyPadding({
696
715
  children,
697
716
  cancelTop
698
717
  }) {
699
- const { wide } = (0, import_react7.useContext)(LayoutConfigContext);
700
- return /* @__PURE__ */ import_react7.default.createElement(StyledCancelLayoutItemBodyPadding, { wide, cancelTop }, children);
718
+ const { wide } = (0, import_react3.useContext)(LayoutConfigContext);
719
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(StyledCancelLayoutItemBodyPadding, { wide, cancelTop, children });
701
720
  }
702
721
  var StyledCancelLayoutItemBodyPadding = import_styled_components7.default.div`
703
722
  margin: 0 -${(p) => p.wide ? LAYOUT_ITEM_BODY_PADDING.wide.x : LAYOUT_ITEM_BODY_PADDING.default.x}px;
@@ -710,19 +729,19 @@ var StyledCancelLayoutItemBodyPadding = import_styled_components7.default.div`
710
729
  `;
711
730
 
712
731
  // src/components/LeftMenu/index.tsx
713
- var import_react11 = __toESM(require("react"));
714
732
  var import_styled_components10 = __toESM(require("styled-components"));
715
733
 
716
734
  // src/components/MenuListItem/index.tsx
717
- var import_react9 = __toESM(require("react"));
735
+ var import_react5 = require("react");
736
+ var React3 = __toESM(require("react"));
718
737
  var import_styled_components9 = __toESM(require("styled-components"));
719
738
 
720
739
  // src/components/TextEllipsis/index.tsx
721
740
  var import_styled_components8 = __toESM(require("styled-components"));
722
741
 
723
742
  // src/components/TextEllipsis/helper.ts
724
- var import_react8 = require("react");
725
- var hasChildren = (element) => (0, import_react8.isValidElement)(element) && Boolean(element.props.children);
743
+ var import_react4 = require("react");
744
+ var hasChildren = (element) => (0, import_react4.isValidElement)(element) && Boolean(element.props.children);
726
745
  var childToString = (child) => {
727
746
  if (typeof child === "undefined" || child === null || typeof child === "boolean") {
728
747
  return "";
@@ -733,15 +752,15 @@ var childToString = (child) => {
733
752
  return child.toString();
734
753
  };
735
754
  var onlyText = (children) => {
736
- if (!Array.isArray(children) && !(0, import_react8.isValidElement)(children)) {
755
+ if (!Array.isArray(children) && !(0, import_react4.isValidElement)(children)) {
737
756
  return childToString(children);
738
757
  }
739
- return import_react8.Children.toArray(children).reduce(
758
+ return import_react4.Children.toArray(children).reduce(
740
759
  (text, child) => {
741
760
  let newText = "";
742
- if ((0, import_react8.isValidElement)(child) && hasChildren(child)) {
761
+ if ((0, import_react4.isValidElement)(child) && hasChildren(child)) {
743
762
  newText = onlyText(child.props.children);
744
- } else if ((0, import_react8.isValidElement)(child) && !hasChildren(child)) {
763
+ } else if ((0, import_react4.isValidElement)(child) && !hasChildren(child)) {
745
764
  newText = "";
746
765
  } else {
747
766
  newText = childToString(child);
@@ -776,9 +795,10 @@ var TextEllipsis = import_styled_components8.default.div.attrs(
776
795
  `;
777
796
 
778
797
  // src/components/MenuListItem/index.tsx
779
- var import_react10 = require("@charcoal-ui/react");
798
+ var import_react6 = require("@charcoal-ui/react");
780
799
  var import_utils5 = require("@charcoal-ui/utils");
781
- var MenuListItemContext = import_react9.default.createContext({ padding: 24 });
800
+ var import_jsx_runtime6 = require("react/jsx-runtime");
801
+ var MenuListItemContext = React3.createContext({ padding: 24 });
782
802
  function MenuListItem({
783
803
  primary,
784
804
  secondary,
@@ -788,8 +808,8 @@ function MenuListItem({
788
808
  gtmClass,
789
809
  children
790
810
  }) {
791
- const { padding } = (0, import_react9.useContext)(MenuListItemContext);
792
- return /* @__PURE__ */ import_react9.default.createElement(
811
+ const { padding } = (0, import_react5.useContext)(MenuListItemContext);
812
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
793
813
  Item,
794
814
  {
795
815
  hasSubLabel: secondary !== void 0,
@@ -799,10 +819,15 @@ function MenuListItem({
799
819
  noClick: onClick === void 0,
800
820
  "aria-disabled": disabled,
801
821
  role: onClick !== void 0 ? "button" : void 0,
802
- className: gtmClass !== void 0 ? `gtm-${gtmClass}` : void 0
803
- },
804
- /* @__PURE__ */ import_react9.default.createElement(Labels, null, /* @__PURE__ */ import_react9.default.createElement(PrimaryText, null, /* @__PURE__ */ import_react9.default.createElement(TextEllipsis, { lineHeight: 22, lineLimit: 1 }, primary)), secondary !== void 0 && /* @__PURE__ */ import_react9.default.createElement(SecondaryText, null, /* @__PURE__ */ import_react9.default.createElement(TextEllipsis, { lineHeight: 22, lineLimit: 1 }, secondary))),
805
- children
822
+ className: gtmClass !== void 0 ? `gtm-${gtmClass}` : void 0,
823
+ children: [
824
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Labels, { children: [
825
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PrimaryText, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TextEllipsis, { lineHeight: 22, lineLimit: 1, children: primary }) }),
826
+ secondary !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SecondaryText, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TextEllipsis, { lineHeight: 22, lineLimit: 1, children: secondary }) })
827
+ ] }),
828
+ children
829
+ ]
830
+ }
806
831
  );
807
832
  }
808
833
  var Item = import_styled_components9.default.div`
@@ -858,7 +883,7 @@ function MenuListLinkItem({
858
883
  children,
859
884
  ...linkProps
860
885
  }) {
861
- const { Link } = (0, import_react10.useComponentAbstraction)();
886
+ const { Link } = (0, import_react6.useComponentAbstraction)();
862
887
  const props = {
863
888
  disabled,
864
889
  primary,
@@ -867,7 +892,7 @@ function MenuListLinkItem({
867
892
  noHover,
868
893
  children
869
894
  };
870
- return disabled ? /* @__PURE__ */ import_react9.default.createElement("span", { onClick }, /* @__PURE__ */ import_react9.default.createElement(MenuListItem, { ...props })) : /* @__PURE__ */ import_react9.default.createElement(A, { as: Link, to: link, onClick, ...linkProps }, /* @__PURE__ */ import_react9.default.createElement(MenuListItem, { onClick: () => void 0, ...props }));
895
+ return disabled ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { onClick, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(MenuListItem, { ...props }) }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(A, { as: Link, to: link, onClick, ...linkProps, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(MenuListItem, { onClick: () => void 0, ...props }) });
871
896
  }
872
897
  var A = import_styled_components9.default.a`
873
898
  display: block;
@@ -877,16 +902,22 @@ function MenuListLinkItemWithIcon({
877
902
  primary: text,
878
903
  ...props
879
904
  }) {
880
- const primary = /* @__PURE__ */ import_react9.default.createElement(IconContainer, null, /* @__PURE__ */ import_react9.default.createElement(Icon2, null, icon), text);
881
- return /* @__PURE__ */ import_react9.default.createElement(MenuListLinkItem, { primary, ...props });
905
+ const primary = /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(IconContainer, { children: [
906
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon2, { children: icon }),
907
+ text
908
+ ] });
909
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(MenuListLinkItem, { primary, ...props });
882
910
  }
883
911
  function MenuListItemWithIcon({
884
912
  icon,
885
913
  primary: text,
886
914
  ...props
887
915
  }) {
888
- const primary = /* @__PURE__ */ import_react9.default.createElement(IconContainer, null, /* @__PURE__ */ import_react9.default.createElement(Icon2, null, icon), text);
889
- return /* @__PURE__ */ import_react9.default.createElement(MenuListItem, { primary, ...props });
916
+ const primary = /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(IconContainer, { children: [
917
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon2, { children: icon }),
918
+ text
919
+ ] });
920
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(MenuListItem, { primary, ...props });
890
921
  }
891
922
  var IconContainer = import_styled_components9.default.div`
892
923
  display: grid;
@@ -911,16 +942,17 @@ var MenuListLabel = import_styled_components9.default.div`
911
942
  `;
912
943
 
913
944
  // src/components/LeftMenu/index.tsx
914
- var import_react12 = require("@charcoal-ui/react");
945
+ var import_react7 = require("@charcoal-ui/react");
946
+ var import_jsx_runtime7 = require("react/jsx-runtime");
915
947
  function LeftMenu({
916
948
  links,
917
949
  active
918
950
  }) {
919
- const { Link } = (0, import_react12.useComponentAbstraction)();
920
- return /* @__PURE__ */ import_react11.default.createElement(Container2, null, links.map((link, index) => /* @__PURE__ */ import_react11.default.createElement(Link, { to: link.to, key: index }, /* @__PURE__ */ import_react11.default.createElement(LinkItem, { "aria-current": link.id === active || void 0 }, link.text))));
951
+ const { Link } = (0, import_react7.useComponentAbstraction)();
952
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Container2, { children: links.map((link, index) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Link, { to: link.to, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(LinkItem, { "aria-current": link.id === active || void 0, children: link.text }) }, index)) });
921
953
  }
922
954
  function LeftMenuContent({ links }) {
923
- return /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, links.map((link, index) => /* @__PURE__ */ import_react11.default.createElement(MenuListLinkItem, { link: link.to, key: index, primary: link.text })));
955
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: links.map((link, index) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(MenuListLinkItem, { link: link.to, primary: link.text }, index)) });
924
956
  }
925
957
  var Container2 = import_styled_components10.default.div`
926
958
  display: flex;
@@ -949,10 +981,11 @@ var LinkItem = import_styled_components10.default.div`
949
981
  `;
950
982
 
951
983
  // src/components/SwitchCheckbox/index.tsx
952
- var import_react13 = __toESM(require("react"));
984
+ var React4 = __toESM(require("react"));
953
985
  var import_styled_components11 = __toESM(require("styled-components"));
954
986
  var import_utils6 = require("@charcoal-ui/utils");
955
- var SwitchCheckbox_default = import_react13.default.forwardRef(function SwitchCheckbox({
987
+ var import_jsx_runtime8 = require("react/jsx-runtime");
988
+ var SwitchCheckbox_default = React4.forwardRef(function SwitchCheckbox({
956
989
  gtmClass,
957
990
  flex = false,
958
991
  rowReverse = false,
@@ -960,16 +993,21 @@ var SwitchCheckbox_default = import_react13.default.forwardRef(function SwitchCh
960
993
  disabled,
961
994
  ...props
962
995
  }, ref) {
963
- return /* @__PURE__ */ import_react13.default.createElement(
996
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
964
997
  Label,
965
998
  {
966
999
  className: gtmClass !== void 0 ? `gtm-${gtmClass}` : "",
967
1000
  flex,
968
1001
  rowReverse,
969
- "aria-disabled": disabled
970
- },
971
- /* @__PURE__ */ import_react13.default.createElement(SwitchOuter, null, /* @__PURE__ */ import_react13.default.createElement(SwitchInput, { ...props, disabled, ref }), /* @__PURE__ */ import_react13.default.createElement(SwitchInner, null, /* @__PURE__ */ import_react13.default.createElement(SwitchInnerKnob, null))),
972
- children != null && /* @__PURE__ */ import_react13.default.createElement(Children2, { rowReverse }, children)
1002
+ "aria-disabled": disabled,
1003
+ children: [
1004
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(SwitchOuter, { children: [
1005
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SwitchInput, { ...props, disabled, ref }),
1006
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SwitchInner, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SwitchInnerKnob, {}) })
1007
+ ] }),
1008
+ children != null && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Children2, { rowReverse, children })
1009
+ ]
1010
+ }
973
1011
  );
974
1012
  });
975
1013
  var Children2 = import_styled_components11.default.span`
@@ -1067,9 +1105,11 @@ var SwitchInput = import_styled_components11.default.input.attrs({
1067
1105
  `;
1068
1106
 
1069
1107
  // src/components/WithIcon/index.tsx
1070
- var import_react14 = __toESM(require("react"));
1108
+ var import_react8 = require("react");
1109
+ var React5 = __toESM(require("react"));
1071
1110
  var import_styled_components12 = __toESM(require("styled-components"));
1072
- var WithIcon_default = import_react14.default.memo(function WithIcon({
1111
+ var import_jsx_runtime9 = require("react/jsx-runtime");
1112
+ var WithIcon_default = React5.memo(function WithIcon({
1073
1113
  children,
1074
1114
  icon,
1075
1115
  show = true,
@@ -1078,8 +1118,12 @@ var WithIcon_default = import_react14.default.memo(function WithIcon({
1078
1118
  fit = false,
1079
1119
  fixed = false
1080
1120
  }) {
1081
- const node = fit ? width === void 0 ? /* @__PURE__ */ import_react14.default.createElement(AutoWidthIconAnchor, { show, pre }, icon) : /* @__PURE__ */ import_react14.default.createElement(IconAnchor, { width, show, pre }, /* @__PURE__ */ import_react14.default.createElement(Icon3, null, icon)) : /* @__PURE__ */ import_react14.default.createElement(IconAnchorNaive, { show, pre }, /* @__PURE__ */ import_react14.default.createElement(IconNaive, null, icon));
1082
- return /* @__PURE__ */ import_react14.default.createElement(Root, null, pre && node, /* @__PURE__ */ import_react14.default.createElement(Text2, { fixed }, children), !pre && node);
1121
+ const node = fit ? width === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AutoWidthIconAnchor, { show, pre, children: icon }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(IconAnchor, { width, show, pre, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon3, { children: icon }) }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(IconAnchorNaive, { show, pre, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(IconNaive, { children: icon }) });
1122
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Root, { children: [
1123
+ pre && node,
1124
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Text2, { fixed, children }),
1125
+ !pre && node
1126
+ ] });
1083
1127
  });
1084
1128
  var Root = import_styled_components12.default.div`
1085
1129
  display: flex;
@@ -1098,9 +1142,9 @@ function AutoWidthIconAnchor({
1098
1142
  show,
1099
1143
  pre
1100
1144
  }) {
1101
- const ref = (0, import_react14.useRef)(null);
1145
+ const ref = (0, import_react8.useRef)(null);
1102
1146
  const width = useElementSize(ref, [null])?.width ?? 0;
1103
- return /* @__PURE__ */ import_react14.default.createElement(IconAnchor, { width, show, pre }, /* @__PURE__ */ import_react14.default.createElement(Icon3, { ref }, children));
1147
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(IconAnchor, { width, show, pre, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon3, { ref, children }) });
1104
1148
  }
1105
1149
  var forceCenteringCss = import_styled_components12.css`
1106
1150
  > svg {
@@ -1149,10 +1193,10 @@ var Icon3 = import_styled_components12.default.div`
1149
1193
  `;
1150
1194
 
1151
1195
  // src/index.ts
1152
- var import_react23 = require("@charcoal-ui/react");
1196
+ var import_react13 = require("@charcoal-ui/react");
1153
1197
 
1154
1198
  // src/components/Carousel/index.tsx
1155
- var import_react18 = __toESM(require("react"));
1199
+ var import_react10 = require("react");
1156
1200
  var import_react_spring = require("react-spring");
1157
1201
  var import_styled_components14 = __toESM(require("styled-components"));
1158
1202
 
@@ -1180,11 +1224,10 @@ function passiveEvents() {
1180
1224
  var isEdge = () => navigator.userAgent.includes("Edge/");
1181
1225
 
1182
1226
  // src/hooks/index.ts
1183
- var import_react15 = require("react");
1184
- var useIsomorphicLayoutEffect = typeof window !== "undefined" ? import_react15.useLayoutEffect : import_react15.useEffect;
1227
+ var import_react9 = require("react");
1228
+ var useIsomorphicLayoutEffect = typeof window !== "undefined" ? import_react9.useLayoutEffect : import_react9.useEffect;
1185
1229
 
1186
1230
  // src/components/CarouselButton/index.tsx
1187
- var import_react17 = __toESM(require("react"));
1188
1231
  var import_styled_components13 = __toESM(require("styled-components"));
1189
1232
 
1190
1233
  // src/foundation/utils.ts
@@ -1195,12 +1238,12 @@ function unreachable(value) {
1195
1238
  }
1196
1239
 
1197
1240
  // src/components/icons/NextIcon.tsx
1198
- var import_react16 = __toESM(require("react"));
1241
+ var import_jsx_runtime10 = require("react/jsx-runtime");
1199
1242
  var path = `M8.08579 16.5858C7.30474 17.3668 7.30474 18.6332 8.08579 19.4142C8.86684 20.1953 10.1332 20.1953 10.9142 19.4142L18.3284 12L10.9142 4.58579C10.1332 3.80474 8.86684 3.80474 8.08579 4.58579C7.30474 5.36684 7.30474 6.63317 8.08579 7.41421L12.6716 12L8.08579 16.5858Z`;
1200
1243
  var size2 = 24;
1201
1244
  function NextIcon({ direction }) {
1202
1245
  const transform = directionToTransform(direction);
1203
- return /* @__PURE__ */ import_react16.default.createElement(
1246
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1204
1247
  IconBase,
1205
1248
  {
1206
1249
  viewBoxSize: size2,
@@ -1228,6 +1271,7 @@ function directionToTransform(direction) {
1228
1271
 
1229
1272
  // src/components/CarouselButton/index.tsx
1230
1273
  var import_utils9 = require("@charcoal-ui/utils");
1274
+ var import_jsx_runtime11 = require("react/jsx-runtime");
1231
1275
  function CarouselButton({
1232
1276
  direction,
1233
1277
  show,
@@ -1246,21 +1290,21 @@ function CarouselButton({
1246
1290
  paddingRight: Math.max(padding, 0),
1247
1291
  paddingBottom: bottom
1248
1292
  };
1249
- return /* @__PURE__ */ import_react17.default.createElement(
1293
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1250
1294
  Button,
1251
1295
  {
1252
1296
  type: "button",
1253
1297
  onClick,
1254
1298
  hide: !show,
1255
1299
  style: offsetStyle,
1256
- css: onlyNonTouchDevice
1257
- },
1258
- /* @__PURE__ */ import_react17.default.createElement(CarouselButtonIcon, null, /* @__PURE__ */ import_react17.default.createElement(
1259
- NextIcon,
1260
- {
1261
- direction: direction === "right" /* Right */ ? "right" /* Right */ : direction === "left" /* Left */ ? "left" /* Left */ : unreachable()
1262
- }
1263
- ))
1300
+ css: onlyNonTouchDevice,
1301
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(CarouselButtonIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1302
+ NextIcon,
1303
+ {
1304
+ direction: direction === "right" /* Right */ ? "right" /* Right */ : direction === "left" /* Left */ ? "left" /* Left */ : unreachable()
1305
+ }
1306
+ ) })
1307
+ }
1264
1308
  );
1265
1309
  }
1266
1310
  var CAROUSEL_BUTTON_SIZE = 40;
@@ -1328,6 +1372,7 @@ var onlyNonTouchDevice = import_styled_components13.css`
1328
1372
  `;
1329
1373
 
1330
1374
  // src/components/Carousel/index.tsx
1375
+ var import_jsx_runtime12 = require("react/jsx-runtime");
1331
1376
  var GRADIENT_WIDTH = 72;
1332
1377
  var SCROLL_AMOUNT_COEF = 0.75;
1333
1378
  function Carousel({
@@ -1344,15 +1389,15 @@ function Carousel({
1344
1389
  ...options
1345
1390
  }) {
1346
1391
  const [scrollLeft, setScrollLeft] = useDebounceAnimationState(0);
1347
- const animation = (0, import_react18.useRef)(false);
1348
- const [maxScrollLeft, setMaxScrollLeft] = (0, import_react18.useState)(0);
1349
- const [leftShow, setLeftShow] = (0, import_react18.useState)(false);
1350
- const [rightShow, setRightShow] = (0, import_react18.useState)(false);
1392
+ const animation = (0, import_react10.useRef)(false);
1393
+ const [maxScrollLeft, setMaxScrollLeft] = (0, import_react10.useState)(0);
1394
+ const [leftShow, setLeftShow] = (0, import_react10.useState)(false);
1395
+ const [rightShow, setRightShow] = (0, import_react10.useState)(false);
1351
1396
  const [styles, set] = (0, import_react_spring.useSpring)(() => ({ scroll: 0 }));
1352
- const ref = (0, import_react18.useRef)(null);
1353
- const visibleAreaRef = (0, import_react18.useRef)(null);
1354
- const innerRef = (0, import_react18.useRef)(null);
1355
- const handleRight = (0, import_react18.useCallback)(() => {
1397
+ const ref = (0, import_react10.useRef)(null);
1398
+ const visibleAreaRef = (0, import_react10.useRef)(null);
1399
+ const innerRef = (0, import_react10.useRef)(null);
1400
+ const handleRight = (0, import_react10.useCallback)(() => {
1356
1401
  if (visibleAreaRef.current === null) {
1357
1402
  return;
1358
1403
  }
@@ -1372,7 +1417,7 @@ function Carousel({
1372
1417
  scrollAmountCoef,
1373
1418
  setScrollLeft
1374
1419
  ]);
1375
- const handleLeft = (0, import_react18.useCallback)(() => {
1420
+ const handleLeft = (0, import_react10.useCallback)(() => {
1376
1421
  if (visibleAreaRef.current === null) {
1377
1422
  return;
1378
1423
  }
@@ -1382,7 +1427,7 @@ function Carousel({
1382
1427
  set({ scroll, from: { scroll: scrollLeft }, reset: !animation.current });
1383
1428
  animation.current = true;
1384
1429
  }, [animation, scrollLeft, set, scrollAmountCoef, setScrollLeft]);
1385
- (0, import_react18.useEffect)(() => {
1430
+ (0, import_react10.useEffect)(() => {
1386
1431
  const newleftShow = scrollLeft > 0;
1387
1432
  const newrightShow = scrollLeft < maxScrollLeft && maxScrollLeft > 0;
1388
1433
  if (newleftShow !== leftShow || newrightShow !== rightShow) {
@@ -1391,7 +1436,7 @@ function Carousel({
1391
1436
  onScrollStateChange?.(newleftShow || newrightShow);
1392
1437
  }
1393
1438
  }, [leftShow, maxScrollLeft, onScrollStateChange, rightShow, scrollLeft]);
1394
- const handleScroll = (0, import_react18.useCallback)(() => {
1439
+ const handleScroll = (0, import_react10.useCallback)(() => {
1395
1440
  if (ref.current === null) {
1396
1441
  return;
1397
1442
  }
@@ -1402,7 +1447,7 @@ function Carousel({
1402
1447
  const manualScrollLeft = ref.current.scrollLeft;
1403
1448
  setScrollLeft(manualScrollLeft);
1404
1449
  }, [animation, setScrollLeft, styles]);
1405
- const handleResize = (0, import_react18.useCallback)(() => {
1450
+ const handleResize = (0, import_react10.useCallback)(() => {
1406
1451
  if (ref.current === null) {
1407
1452
  return;
1408
1453
  }
@@ -1450,7 +1495,7 @@ function Carousel({
1450
1495
  }
1451
1496
  }
1452
1497
  }, [ref.current]);
1453
- const handleScrollMove = (0, import_react18.useCallback)(() => {
1498
+ const handleScrollMove = (0, import_react10.useCallback)(() => {
1454
1499
  if (ref.current === null) {
1455
1500
  return;
1456
1501
  }
@@ -1458,7 +1503,7 @@ function Carousel({
1458
1503
  onScroll(ref.current.scrollLeft);
1459
1504
  }
1460
1505
  }, [onScroll]);
1461
- const [disableGradient, setDisableGradient] = (0, import_react18.useState)(false);
1506
+ const [disableGradient, setDisableGradient] = (0, import_react10.useState)(false);
1462
1507
  useIsomorphicLayoutEffect(() => {
1463
1508
  if (isEdge()) {
1464
1509
  setDisableGradient(true);
@@ -1467,67 +1512,79 @@ function Carousel({
1467
1512
  if (!disableGradient && options.hasGradient === true) {
1468
1513
  const fadeInGradient = options.fadeInGradient ?? false;
1469
1514
  const overflowGradient = !fadeInGradient;
1470
- return /* @__PURE__ */ import_react18.default.createElement(Container3, { ref: visibleAreaRef }, /* @__PURE__ */ import_react18.default.createElement(GradientContainer, { fadeInGradient }, /* @__PURE__ */ import_react18.default.createElement(RightGradient, null, /* @__PURE__ */ import_react18.default.createElement(LeftGradient, { show: overflowGradient || scrollLeft > 0 }, /* @__PURE__ */ import_react18.default.createElement(
1515
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Container3, { ref: visibleAreaRef, children: [
1516
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(GradientContainer, { fadeInGradient, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(RightGradient, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(LeftGradient, { show: overflowGradient || scrollLeft > 0, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1517
+ ScrollArea,
1518
+ {
1519
+ ref,
1520
+ scrollLeft: styles.scroll,
1521
+ onScroll: handleScrollMove,
1522
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CarouselContainer, { ref: innerRef, centerItems, children })
1523
+ }
1524
+ ) }) }) }),
1525
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(ButtonsContainer, { children: [
1526
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1527
+ CarouselButton,
1528
+ {
1529
+ direction: "left" /* Left */,
1530
+ show: leftShow,
1531
+ offset: buttonOffset,
1532
+ bottomOffset,
1533
+ padding: buttonPadding,
1534
+ gradient: overflowGradient,
1535
+ onClick: handleLeft
1536
+ }
1537
+ ),
1538
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1539
+ CarouselButton,
1540
+ {
1541
+ direction: "right" /* Right */,
1542
+ show: rightShow,
1543
+ offset: buttonOffset,
1544
+ bottomOffset,
1545
+ padding: buttonPadding,
1546
+ gradient: true,
1547
+ onClick: handleRight
1548
+ }
1549
+ )
1550
+ ] })
1551
+ ] });
1552
+ }
1553
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Container3, { ref: visibleAreaRef, children: [
1554
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1471
1555
  ScrollArea,
1472
1556
  {
1473
1557
  ref,
1474
1558
  scrollLeft: styles.scroll,
1475
- onScroll: handleScrollMove
1476
- },
1477
- /* @__PURE__ */ import_react18.default.createElement(CarouselContainer, { ref: innerRef, centerItems }, children)
1478
- )))), /* @__PURE__ */ import_react18.default.createElement(ButtonsContainer, null, /* @__PURE__ */ import_react18.default.createElement(
1479
- CarouselButton,
1480
- {
1481
- direction: "left" /* Left */,
1482
- show: leftShow,
1483
- offset: buttonOffset,
1484
- bottomOffset,
1485
- padding: buttonPadding,
1486
- gradient: overflowGradient,
1487
- onClick: handleLeft
1488
- }
1489
- ), /* @__PURE__ */ import_react18.default.createElement(
1490
- CarouselButton,
1491
- {
1492
- direction: "right" /* Right */,
1493
- show: rightShow,
1494
- offset: buttonOffset,
1495
- bottomOffset,
1496
- padding: buttonPadding,
1497
- gradient: true,
1498
- onClick: handleRight
1559
+ onScroll: handleScrollMove,
1560
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CarouselContainer, { ref: innerRef, centerItems, children })
1499
1561
  }
1500
- )));
1501
- }
1502
- return /* @__PURE__ */ import_react18.default.createElement(Container3, { ref: visibleAreaRef }, /* @__PURE__ */ import_react18.default.createElement(
1503
- ScrollArea,
1504
- {
1505
- ref,
1506
- scrollLeft: styles.scroll,
1507
- onScroll: handleScrollMove
1508
- },
1509
- /* @__PURE__ */ import_react18.default.createElement(CarouselContainer, { ref: innerRef, centerItems }, children)
1510
- ), /* @__PURE__ */ import_react18.default.createElement(ButtonsContainer, null, /* @__PURE__ */ import_react18.default.createElement(
1511
- CarouselButton,
1512
- {
1513
- direction: "left" /* Left */,
1514
- show: leftShow,
1515
- offset: buttonOffset,
1516
- bottomOffset,
1517
- padding: buttonPadding,
1518
- onClick: handleLeft
1519
- }
1520
- ), /* @__PURE__ */ import_react18.default.createElement(
1521
- CarouselButton,
1522
- {
1523
- direction: "right" /* Right */,
1524
- show: rightShow,
1525
- offset: buttonOffset,
1526
- bottomOffset,
1527
- padding: buttonPadding,
1528
- onClick: handleRight
1529
- }
1530
- )));
1562
+ ),
1563
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(ButtonsContainer, { children: [
1564
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1565
+ CarouselButton,
1566
+ {
1567
+ direction: "left" /* Left */,
1568
+ show: leftShow,
1569
+ offset: buttonOffset,
1570
+ bottomOffset,
1571
+ padding: buttonPadding,
1572
+ onClick: handleLeft
1573
+ }
1574
+ ),
1575
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1576
+ CarouselButton,
1577
+ {
1578
+ direction: "right" /* Right */,
1579
+ show: rightShow,
1580
+ offset: buttonOffset,
1581
+ bottomOffset,
1582
+ padding: buttonPadding,
1583
+ onClick: handleRight
1584
+ }
1585
+ )
1586
+ ] })
1587
+ ] });
1531
1588
  }
1532
1589
  var CarouselContainer = import_styled_components14.default.ul`
1533
1590
  vertical-align: top;
@@ -1606,15 +1663,15 @@ var LeftGradient = import_styled_components14.default.div`
1606
1663
  `;
1607
1664
 
1608
1665
  // src/components/Pager/index.tsx
1609
- var import_react21 = __toESM(require("react"));
1666
+ var import_react11 = require("react");
1610
1667
  var import_styled_components17 = __toESM(require("styled-components"));
1611
1668
  var import_warning = __toESM(require("warning"));
1612
1669
 
1613
1670
  // src/components/icons/DotsIcon.tsx
1614
- var import_react19 = __toESM(require("react"));
1615
1671
  var import_styled_components15 = __toESM(require("styled-components"));
1672
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1616
1673
  function DotsIcon({ size: size3 }) {
1617
- return /* @__PURE__ */ import_react19.default.createElement(StyledSVG, { viewBox: "0 0 20 6", width: size3, height: size3 }, /* @__PURE__ */ import_react19.default.createElement(
1674
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(StyledSVG, { viewBox: "0 0 20 6", width: size3, height: size3, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1618
1675
  "path",
1619
1676
  {
1620
1677
  fillRule: "evenodd",
@@ -1626,7 +1683,7 @@ function DotsIcon({ size: size3 }) {
1626
1683
  C20.3807119,9.5 21.5,10.6192881 21.5,12 C21.5,13.3807119 20.3807119,14.5 19,14.5 Z`,
1627
1684
  transform: "translate(-2 -9)"
1628
1685
  }
1629
- ));
1686
+ ) });
1630
1687
  }
1631
1688
  DotsIcon.defaultProps = {
1632
1689
  size: 16
@@ -1636,17 +1693,17 @@ var StyledSVG = import_styled_components15.default.svg`
1636
1693
  `;
1637
1694
 
1638
1695
  // src/components/icons/WedgeIcon.tsx
1639
- var import_react20 = __toESM(require("react"));
1640
1696
  var import_styled_components16 = __toESM(require("styled-components"));
1697
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1641
1698
  function WedgeIcon({ size: size3, direction }) {
1642
- return /* @__PURE__ */ import_react20.default.createElement("svg", { viewBox: "0 0 10 8", width: size3, height: size3 }, /* @__PURE__ */ import_react20.default.createElement(
1699
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { viewBox: "0 0 10 8", width: size3, height: size3, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1643
1700
  StyledPolyline,
1644
1701
  {
1645
1702
  strokeWidth: "2",
1646
1703
  points: "1,2 5,6 9,2",
1647
1704
  transform: directionToTransform2(direction)
1648
1705
  }
1649
- ));
1706
+ ) });
1650
1707
  }
1651
1708
  WedgeIcon.defaultProps = {
1652
1709
  size: 16,
@@ -1675,7 +1732,8 @@ var StyledPolyline = import_styled_components16.default.polyline`
1675
1732
  `;
1676
1733
 
1677
1734
  // src/components/Pager/index.tsx
1678
- var import_react22 = require("@charcoal-ui/react");
1735
+ var import_react12 = require("@charcoal-ui/react");
1736
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1679
1737
  function usePagerWindow(page, pageCount, windowSize = 7) {
1680
1738
  if (process.env.NODE_ENV !== "production") {
1681
1739
  (0, import_warning.default)((page | 0) === page, `\`page\` must be interger (${page})`);
@@ -1684,7 +1742,7 @@ function usePagerWindow(page, pageCount, windowSize = 7) {
1684
1742
  `\`pageCount\` must be interger (${pageCount})`
1685
1743
  );
1686
1744
  }
1687
- const window2 = (0, import_react21.useMemo)(() => {
1745
+ const window2 = (0, import_react11.useMemo)(() => {
1688
1746
  const visibleFirstPage = 1;
1689
1747
  const visibleLastPage = Math.min(
1690
1748
  pageCount,
@@ -1707,16 +1765,12 @@ function usePagerWindow(page, pageCount, windowSize = 7) {
1707
1765
  ];
1708
1766
  }
1709
1767
  }, [page, pageCount, windowSize]);
1710
- (0, import_react21.useDebugValue)(window2);
1768
+ (0, import_react11.useDebugValue)(window2);
1711
1769
  return window2;
1712
1770
  }
1713
- var Pager_default = import_react21.default.memo(function Pager({
1714
- page,
1715
- pageCount,
1716
- onChange
1717
- }) {
1771
+ var Pager_default = (0, import_react11.memo)(function Pager({ page, pageCount, onChange }) {
1718
1772
  const window2 = usePagerWindow(page, pageCount);
1719
- const makeClickHandler = (0, import_react21.useCallback)(
1773
+ const makeClickHandler = (0, import_react11.useCallback)(
1720
1774
  (value) => () => {
1721
1775
  onChange(value);
1722
1776
  },
@@ -1724,38 +1778,46 @@ var Pager_default = import_react21.default.memo(function Pager({
1724
1778
  );
1725
1779
  const hasNext = page < pageCount;
1726
1780
  const hasPrev = page > 1;
1727
- return /* @__PURE__ */ import_react21.default.createElement(PagerContainer, null, /* @__PURE__ */ import_react21.default.createElement(
1728
- CircleButton,
1729
- {
1730
- type: "button",
1731
- hidden: !hasPrev,
1732
- disabled: !hasPrev,
1733
- onClick: makeClickHandler(Math.max(1, page - 1)),
1734
- noBackground: true
1735
- },
1736
- /* @__PURE__ */ import_react21.default.createElement(WedgeIcon, { size: 16, direction: "left" /* Left */ })
1737
- ), window2.map(
1738
- (p) => p === "..." ? /* @__PURE__ */ import_react21.default.createElement(Spacer, { key: p }, /* @__PURE__ */ import_react21.default.createElement(DotsIcon, { size: 20 })) : p === page ? /* @__PURE__ */ import_react21.default.createElement(CircleButton, { key: p, type: "button", "aria-current": true }, /* @__PURE__ */ import_react21.default.createElement(Text3, null, p)) : /* @__PURE__ */ import_react21.default.createElement(CircleButton, { key: p, type: "button", onClick: makeClickHandler(p) }, /* @__PURE__ */ import_react21.default.createElement(Text3, null, p))
1739
- ), /* @__PURE__ */ import_react21.default.createElement(
1740
- CircleButton,
1741
- {
1742
- type: "button",
1743
- hidden: !hasNext,
1744
- disabled: !hasNext,
1745
- onClick: makeClickHandler(Math.min(pageCount, page + 1)),
1746
- noBackground: true
1747
- },
1748
- /* @__PURE__ */ import_react21.default.createElement(WedgeIcon, { size: 16, direction: "right" /* Right */ })
1749
- ));
1781
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(PagerContainer, { children: [
1782
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1783
+ CircleButton,
1784
+ {
1785
+ type: "button",
1786
+ hidden: !hasPrev,
1787
+ disabled: !hasPrev,
1788
+ onClick: makeClickHandler(Math.max(1, page - 1)),
1789
+ noBackground: true,
1790
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(WedgeIcon, { size: 16, direction: "left" /* Left */ })
1791
+ }
1792
+ ),
1793
+ window2.map(
1794
+ (p) => p === "..." ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Spacer, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DotsIcon, { size: 20 }) }, p) : p === page ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CircleButton, { type: "button", "aria-current": true, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Text3, { children: p }) }, p) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CircleButton, { type: "button", onClick: makeClickHandler(p), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Text3, { children: p }) }, p)
1795
+ ),
1796
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1797
+ CircleButton,
1798
+ {
1799
+ type: "button",
1800
+ hidden: !hasNext,
1801
+ disabled: !hasNext,
1802
+ onClick: makeClickHandler(Math.min(pageCount, page + 1)),
1803
+ noBackground: true,
1804
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(WedgeIcon, { size: 16, direction: "right" /* Right */ })
1805
+ }
1806
+ )
1807
+ ] });
1750
1808
  });
1751
1809
  function LinkPager({ page, pageCount, makeUrl }) {
1752
- const { Link } = (0, import_react22.useComponentAbstraction)();
1810
+ const { Link } = (0, import_react12.useComponentAbstraction)();
1753
1811
  const window2 = usePagerWindow(page, pageCount);
1754
1812
  const hasNext = page < pageCount;
1755
1813
  const hasPrev = page > 1;
1756
- return /* @__PURE__ */ import_react21.default.createElement(PagerContainer, null, /* @__PURE__ */ import_react21.default.createElement(Link, { to: makeUrl(Math.max(1, page - 1)) }, /* @__PURE__ */ import_react21.default.createElement(CircleButton, { hidden: !hasPrev, "aria-disabled": !hasPrev, noBackground: true }, /* @__PURE__ */ import_react21.default.createElement(WedgeIcon, { size: 16, direction: "left" /* Left */ }))), window2.map(
1757
- (p) => p === "..." ? /* @__PURE__ */ import_react21.default.createElement(Spacer, { key: p }, /* @__PURE__ */ import_react21.default.createElement(DotsIcon, { size: 20, subLink: true })) : p === page ? /* @__PURE__ */ import_react21.default.createElement(CircleButton, { key: p, type: "button", "aria-current": true }, /* @__PURE__ */ import_react21.default.createElement(Text3, null, p)) : /* @__PURE__ */ import_react21.default.createElement(Link, { key: p, to: makeUrl(p) }, /* @__PURE__ */ import_react21.default.createElement(CircleButton, { type: "button" }, /* @__PURE__ */ import_react21.default.createElement(Text3, null, p)))
1758
- ), /* @__PURE__ */ import_react21.default.createElement(Link, { to: makeUrl(Math.min(pageCount, page + 1)) }, /* @__PURE__ */ import_react21.default.createElement(CircleButton, { hidden: !hasNext, "aria-disabled": !hasNext, noBackground: true }, /* @__PURE__ */ import_react21.default.createElement(WedgeIcon, { size: 16, direction: "right" /* Right */ }))));
1814
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(PagerContainer, { children: [
1815
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Link, { to: makeUrl(Math.max(1, page - 1)), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CircleButton, { hidden: !hasPrev, "aria-disabled": !hasPrev, noBackground: true, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(WedgeIcon, { size: 16, direction: "left" /* Left */ }) }) }),
1816
+ window2.map(
1817
+ (p) => p === "..." ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Spacer, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DotsIcon, { size: 20, subLink: true }) }, p) : p === page ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CircleButton, { type: "button", "aria-current": true, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Text3, { children: p }) }, p) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Link, { to: makeUrl(p), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CircleButton, { type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Text3, { children: p }) }) }, p)
1818
+ ),
1819
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Link, { to: makeUrl(Math.min(pageCount, page + 1)), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CircleButton, { hidden: !hasNext, "aria-disabled": !hasNext, noBackground: true, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(WedgeIcon, { size: 16, direction: "right" /* Right */ }) }) })
1820
+ ] });
1759
1821
  }
1760
1822
  var PagerContainer = import_styled_components17.default.nav`
1761
1823
  display: flex;