@spothero/ui 25.15.0-beta.1 → 25.16.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -4,11 +4,11 @@ var react = require('@chakra-ui/react');
4
4
  var React = require('react');
5
5
  var framerMotion = require('framer-motion');
6
6
  var merge = require('lodash/merge');
7
- var PropTypes = require('prop-types');
8
7
  var cn = require('classnames');
9
8
  var react$1 = require('@emotion/react');
10
9
  var anatomy = require('@chakra-ui/anatomy');
11
10
  var template = require('lodash/template');
11
+ var PropTypes = require('prop-types');
12
12
  var AsyncSelect = require('react-select/async');
13
13
  var Select$2 = require('react-select');
14
14
  var Creatable = require('react-select/creatable');
@@ -35,9 +35,9 @@ function _interopNamespace(e) {
35
35
 
36
36
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
37
37
  var merge__default = /*#__PURE__*/_interopDefault(merge);
38
- var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
39
38
  var cn__default = /*#__PURE__*/_interopDefault(cn);
40
39
  var template__default = /*#__PURE__*/_interopDefault(template);
40
+ var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
41
41
  var AsyncSelect__default = /*#__PURE__*/_interopDefault(AsyncSelect);
42
42
  var Select__default = /*#__PURE__*/_interopDefault(Select$2);
43
43
  var Creatable__default = /*#__PURE__*/_interopDefault(Creatable);
@@ -2208,29 +2208,16 @@ const Drawer = ({ header, drawerCloseButton, children, headerProps, ...props })
2208
2208
  return (jsxRuntimeExports.jsxs(react.Drawer, { placement: "right", ...props, children: [jsxRuntimeExports.jsx(react.DrawerOverlay, {}), jsxRuntimeExports.jsxs(react.DrawerContent, { children: [jsxRuntimeExports.jsxs(react.DrawerHeader, { ...headerProps, children: [header, drawerCloseButton || jsxRuntimeExports.jsx(react.DrawerCloseButton, {})] }), children] })] }));
2209
2209
  };
2210
2210
 
2211
- const AccordionActionButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
2212
- let {
2213
- children,
2214
- onClick
2215
- } = _ref;
2216
- const handleOnClick = e => {
2217
- if (onClick) {
2218
- e.preventDefault();
2219
- }
2220
- onClick === null || onClick === void 0 || onClick();
2221
- };
2222
- return /*#__PURE__*/React__namespace.default.createElement(react.Box, {
2223
- ref: ref,
2224
- fontSize: "sm",
2225
- role: "button",
2226
- onClick: handleOnClick,
2227
- color: "primary.default"
2228
- }, children);
2211
+ const AccordionActionButton = React.forwardRef(({ children, onClick }, ref) => {
2212
+ const handleOnClick = (e) => {
2213
+ if (onClick) {
2214
+ e.preventDefault();
2215
+ }
2216
+ onClick?.();
2217
+ };
2218
+ return (jsxRuntimeExports.jsx(react.Box, { ref: ref, fontSize: "sm", role: "button", onClick: handleOnClick, color: "primary.default", children: children }));
2229
2219
  });
2230
- AccordionActionButton.propTypes = {
2231
- onClick: PropTypes__default.default.func,
2232
- children: PropTypes__default.default.node.isRequired
2233
- };
2220
+ AccordionActionButton.displayName = 'AccordionActionButton';
2234
2221
 
2235
2222
  var _path$5;
2236
2223
  function _extends$6() {
@@ -2361,213 +2348,108 @@ const Alert = React.forwardRef(({ status = 'neutral', title = null, buttonProps
2361
2348
  });
2362
2349
  Alert.displayName = 'Alert';
2363
2350
 
2364
- function _defineProperty(e, r, t) {
2365
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
2366
- value: t,
2367
- enumerable: !0,
2368
- configurable: !0,
2369
- writable: !0
2370
- }) : e[r] = t, e;
2371
- }
2372
- function _extends$2() {
2373
- return _extends$2 = Object.assign ? Object.assign.bind() : function (n) {
2374
- for (var e = 1; e < arguments.length; e++) {
2375
- var t = arguments[e];
2376
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2377
- }
2378
- return n;
2379
- }, _extends$2.apply(null, arguments);
2380
- }
2381
- function ownKeys(e, r) {
2382
- var t = Object.keys(e);
2383
- if (Object.getOwnPropertySymbols) {
2384
- var o = Object.getOwnPropertySymbols(e);
2385
- r && (o = o.filter(function (r) {
2386
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
2387
- })), t.push.apply(t, o);
2388
- }
2389
- return t;
2390
- }
2391
- function _objectSpread2(e) {
2392
- for (var r = 1; r < arguments.length; r++) {
2393
- var t = null != arguments[r] ? arguments[r] : {};
2394
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
2395
- _defineProperty(e, r, t[r]);
2396
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
2397
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
2398
- });
2399
- }
2400
- return e;
2401
- }
2402
- function _objectWithoutProperties(e, t) {
2403
- if (null == e) return {};
2404
- var o,
2405
- r,
2406
- i = _objectWithoutPropertiesLoose(e, t);
2407
- if (Object.getOwnPropertySymbols) {
2408
- var n = Object.getOwnPropertySymbols(e);
2409
- for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2410
- }
2411
- return i;
2412
- }
2413
- function _objectWithoutPropertiesLoose(r, e) {
2414
- if (null == r) return {};
2415
- var t = {};
2416
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
2417
- if (-1 !== e.indexOf(n)) continue;
2418
- t[n] = r[n];
2419
- }
2420
- return t;
2421
- }
2422
- function _toPrimitive(t, r) {
2423
- if ("object" != typeof t || !t) return t;
2424
- var e = t[Symbol.toPrimitive];
2425
- if (void 0 !== e) {
2426
- var i = e.call(t, r || "default");
2427
- if ("object" != typeof i) return i;
2428
- throw new TypeError("@@toPrimitive must return a primitive value.");
2429
- }
2430
- return ("string" === r ? String : Number)(t);
2431
- }
2432
- function _toPropertyKey(t) {
2433
- var i = _toPrimitive(t, "string");
2434
- return "symbol" == typeof i ? i : i + "";
2435
- }
2436
-
2437
2351
  const variants$b = {
2438
- line: {
2439
- tablist: {
2440
- borderBottom: '2px solid',
2441
- borderColor: 'inherit'
2442
- },
2443
- tab: {
2444
- color: 'gray.600',
2445
- borderBottom: '2px solid',
2446
- borderColor: 'transparent',
2447
- marginBottom: '-2px',
2448
- _selected: {
2449
- color: 'primary.default',
2450
- borderColor: 'primary.default',
2451
- fontWeight: 'semibold'
2452
- },
2453
- _active: {
2454
- color: 'black',
2455
- bg: 'transparent'
2456
- },
2457
- _disabled: {
2458
- opacity: 0.4,
2459
- cursor: 'not-allowed'
2460
- },
2461
- _hover: {
2462
- color: 'black'
2463
- }
2464
- }
2465
- },
2466
- enclosed: {
2467
- tablist: {
2468
- backgroundColor: 'white',
2469
- borderRadius: '8px',
2470
- borederColor: 'gray.200',
2471
- borderWidth: '1px',
2472
- paddingY: 1
2352
+ line: {
2353
+ tablist: {
2354
+ borderBottom: '2px solid',
2355
+ borderColor: 'inherit',
2356
+ },
2357
+ tab: {
2358
+ color: 'gray.600',
2359
+ borderBottom: '2px solid',
2360
+ borderColor: 'transparent',
2361
+ marginBottom: '-2px',
2362
+ _selected: {
2363
+ color: 'primary.default',
2364
+ borderColor: 'primary.default',
2365
+ fontWeight: 'semibold',
2366
+ },
2367
+ _active: {
2368
+ color: 'black',
2369
+ bg: 'transparent',
2370
+ },
2371
+ _disabled: {
2372
+ opacity: 0.4,
2373
+ cursor: 'not-allowed',
2374
+ },
2375
+ _hover: {
2376
+ color: 'black',
2377
+ },
2378
+ },
2379
+ },
2380
+ enclosed: {
2381
+ tablist: {
2382
+ backgroundColor: 'white',
2383
+ borderRadius: '8px',
2384
+ borderColor: 'gray.200',
2385
+ borderWidth: '1px',
2386
+ paddingY: 1,
2387
+ },
2388
+ tab: {
2389
+ borderRadius: '6px',
2390
+ marginX: 1,
2391
+ _selected: {
2392
+ fontWeight: 'semibold',
2393
+ color: 'white',
2394
+ backgroundColor: 'primary.default',
2395
+ _hover: {
2396
+ backgroundColor: 'primary.600',
2397
+ },
2398
+ },
2399
+ _active: {
2400
+ backgroundColor: 'gray.200',
2401
+ },
2402
+ _disabled: {
2403
+ opacity: 0.4,
2404
+ cursor: 'not-allowed',
2405
+ },
2406
+ },
2473
2407
  },
2474
- tab: {
2475
- borderRadius: '6px',
2476
- marginX: 1,
2477
- _selected: {
2478
- fontWeight: 'semibold',
2479
- color: 'white',
2480
- backgroundColor: 'primary.default',
2481
- _hover: {
2482
- backgroundColor: 'primary.600'
2483
- }
2484
- },
2485
- _active: {
2486
- backgroundColor: 'gray.200'
2487
- },
2488
- _disabled: {
2489
- opacity: 0.4,
2490
- cursor: 'not-allowed'
2491
- }
2492
- }
2493
- }
2494
2408
  };
2495
- var styles$2 = merge__default.default(react.theme.components.Tabs, {
2496
- variants: variants$b
2409
+ const tabsStyle = merge__default.default(react.theme.components.Tabs, {
2410
+ variants: variants$b,
2497
2411
  });
2498
2412
 
2499
2413
  const SIZE_SMALL = 'small';
2500
2414
  const SIZE_BODY = 'body';
2501
2415
  const SIZE_HEADING = 'heading';
2502
-
2503
- /**
2504
- * ### `combineSizeWithVariant`
2505
- * A function that takes in the `size` value, and the
2506
- * `variant` value. The default-like styling for the `size` prop is merged with the styling from the
2507
- * `variant` and a combined styleProp object is returned.
2508
- *
2509
- * @function combineSizeWithVariant
2510
- * @param {string} args.size - The size of Tabs component
2511
- * @param {string} args.variant - The style variant for the Text component
2512
- * @returns {Object} An object containing the merged styleProps from the `variant` and the `size` props
2513
- */
2514
-
2515
- const combineSizeWithVariant = _ref => {
2516
- let {
2517
- size,
2518
- variant = 'line'
2519
- } = _ref;
2520
- const fontSizeMapping = {
2521
- [SIZE_SMALL]: fontSizes.xs,
2522
- [SIZE_BODY]: fontSizes.base,
2523
- [SIZE_HEADING]: fontSizes.lg
2524
- };
2525
- const styleProps = styles$2.variants["".concat(variant)];
2526
- styleProps.tab.fontSize = fontSizeMapping[size];
2527
- return styleProps;
2416
+ const combineSizeWithVariant = ({ size, variant = 'line', }) => {
2417
+ const fontSizeMapping = {
2418
+ [SIZE_SMALL]: fontSizes.xs,
2419
+ [SIZE_BODY]: fontSizes.base,
2420
+ [SIZE_HEADING]: fontSizes.lg,
2421
+ };
2422
+ const styleProps = variants$b[variant];
2423
+ return {
2424
+ ...styleProps,
2425
+ tab: {
2426
+ ...styleProps.tab,
2427
+ fontSize: fontSizeMapping[size],
2428
+ },
2429
+ };
2528
2430
  };
2529
2431
 
2530
- const _excluded$7 = ["size"];
2531
2432
  const sizeMapping = {
2532
- [SIZE_SMALL]: 'sm',
2533
- [SIZE_BODY]: 'md',
2534
- [SIZE_HEADING]: 'lg'
2433
+ [SIZE_SMALL]: 'sm',
2434
+ [SIZE_BODY]: 'md',
2435
+ [SIZE_HEADING]: 'lg',
2535
2436
  };
2536
- const Tabs = react.forwardRef((_ref, ref) => {
2537
- let {
2538
- size
2539
- } = _ref,
2540
- props = _objectWithoutProperties(_ref, _excluded$7);
2541
- return /*#__PURE__*/React__namespace.default.createElement(react.Tabs, _extends$2({
2542
- size: sizeMapping[size]
2543
- }, props, combineSizeWithVariant({
2544
- size
2545
- }), {
2546
- ref: ref
2547
- }));
2437
+ const Tabs = React__namespace.default.forwardRef(({ size = SIZE_BODY, ...props }, ref) => {
2438
+ return (jsxRuntimeExports.jsx(react.Tabs, { size: sizeMapping[size], ...props, ...combineSizeWithVariant({ size }), ref: ref }));
2548
2439
  });
2549
- Tabs.defaultProps = {
2550
- size: SIZE_BODY
2551
- };
2552
- Tabs.propTypes = {
2553
- /** The React node that will render inside the element */
2554
- children: PropTypes__default.default.node,
2555
- /** Controls the size of Tabs */
2556
- size: PropTypes__default.default.oneOf([SIZE_SMALL, SIZE_BODY, SIZE_HEADING])
2557
- };
2558
2440
 
2559
2441
  var _path$1;
2560
- function _extends$1() {
2561
- return _extends$1 = Object.assign ? Object.assign.bind() : function (n) {
2442
+ function _extends$2() {
2443
+ return _extends$2 = Object.assign ? Object.assign.bind() : function (n) {
2562
2444
  for (var e = 1; e < arguments.length; e++) {
2563
2445
  var t = arguments[e];
2564
2446
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2565
2447
  }
2566
2448
  return n;
2567
- }, _extends$1.apply(null, arguments);
2449
+ }, _extends$2.apply(null, arguments);
2568
2450
  }
2569
2451
  var SvgChevronDown = function SvgChevronDown(props, ref) {
2570
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({}, props, {
2452
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({}, props, {
2571
2453
  xmlns: "http://www.w3.org/2000/svg",
2572
2454
  fill: "currentColor",
2573
2455
  viewBox: "0 0 24 24",
@@ -3021,61 +2903,62 @@ var Heading_styles = {
3021
2903
 
3022
2904
  const parts$2 = ['table', 'thead', 'tbody', 'tr', 'th', 'td', 'caption'];
3023
2905
  const baseStyle$b = {
3024
- table: {
3025
- borderCollapse: 'collapse',
3026
- color: 'text.primary.light',
3027
- width: '100%'
3028
- },
3029
- thead: {
3030
- borderBottom: '1px',
3031
- borderColor: 'gray.medium'
3032
- },
3033
- th: {
3034
- fontFamily: 'heading',
3035
- fontSize: variants$9.h4.fontSize,
3036
- fontWeight: 'semibold',
3037
- letterSpacing: 'unset',
3038
- padding: 4,
3039
- textAlign: 'start',
3040
- textTransform: 'none'
3041
- },
3042
- tr: {
3043
- borderBottom: '1px',
3044
- borderColor: 'gray.medium',
3045
- _last: {
3046
- border: 'none'
3047
- }
3048
- },
3049
- td: {
3050
- padding: 4,
3051
- textAlign: 'start'
3052
- }
2906
+ table: {
2907
+ borderCollapse: 'collapse',
2908
+ color: 'text.primary.light',
2909
+ width: '100%',
2910
+ },
2911
+ thead: {
2912
+ borderBottom: '1px',
2913
+ borderColor: 'gray.medium',
2914
+ },
2915
+ th: {
2916
+ fontFamily: 'heading',
2917
+ fontSize: variants$9.h4.fontSize,
2918
+ fontWeight: 'semibold',
2919
+ letterSpacing: 'unset',
2920
+ padding: 4,
2921
+ textAlign: 'start',
2922
+ textTransform: 'none',
2923
+ },
2924
+ tr: {
2925
+ borderBottom: '1px',
2926
+ borderColor: 'gray.medium',
2927
+ _last: {
2928
+ border: 'none',
2929
+ },
2930
+ },
2931
+ td: {
2932
+ padding: 4,
2933
+ textAlign: 'start',
2934
+ },
3053
2935
  };
3054
2936
  const roundedWhiteVariant = {
3055
- table: {
3056
- backgroundColor: 'background.white',
3057
- borderRadius: 6,
3058
- boxShadow: 'md',
3059
- marginBottom: 1
3060
- }
2937
+ table: {
2938
+ backgroundColor: 'background.white',
2939
+ borderRadius: 6,
2940
+ boxShadow: 'md',
2941
+ marginBottom: 1,
2942
+ },
3061
2943
  };
3062
2944
  const roundedGrayVariant = {
3063
- table: _objectSpread2(_objectSpread2({}, roundedWhiteVariant.table), {}, {
3064
- backgroundColor: 'background.gray'
3065
- })
2945
+ table: {
2946
+ ...roundedWhiteVariant.table,
2947
+ backgroundColor: 'background.gray',
2948
+ },
3066
2949
  };
3067
2950
  const variants$8 = {
3068
- rounded: roundedWhiteVariant,
3069
- roundedGray: roundedGrayVariant
2951
+ rounded: roundedWhiteVariant,
2952
+ roundedGray: roundedGrayVariant,
3070
2953
  };
3071
2954
  const defaultProps$6 = {
3072
- variant: 'rounded'
2955
+ variant: 'rounded',
3073
2956
  };
3074
2957
  var Table_styles = {
3075
- parts: parts$2,
3076
- variants: variants$8,
3077
- baseStyle: baseStyle$b,
3078
- defaultProps: defaultProps$6
2958
+ parts: parts$2,
2959
+ variants: variants$8,
2960
+ baseStyle: baseStyle$b,
2961
+ defaultProps: defaultProps$6,
3079
2962
  };
3080
2963
 
3081
2964
  const chakraLinkStyle = react.theme.components.Link;
@@ -3542,6 +3425,79 @@ const inputStyle = merge__default.default(react.theme.components.Input, {
3542
3425
  variants: variants$5,
3543
3426
  });
3544
3427
 
3428
+ function _defineProperty(e, r, t) {
3429
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
3430
+ value: t,
3431
+ enumerable: !0,
3432
+ configurable: !0,
3433
+ writable: !0
3434
+ }) : e[r] = t, e;
3435
+ }
3436
+ function _extends$1() {
3437
+ return _extends$1 = Object.assign ? Object.assign.bind() : function (n) {
3438
+ for (var e = 1; e < arguments.length; e++) {
3439
+ var t = arguments[e];
3440
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
3441
+ }
3442
+ return n;
3443
+ }, _extends$1.apply(null, arguments);
3444
+ }
3445
+ function ownKeys(e, r) {
3446
+ var t = Object.keys(e);
3447
+ if (Object.getOwnPropertySymbols) {
3448
+ var o = Object.getOwnPropertySymbols(e);
3449
+ r && (o = o.filter(function (r) {
3450
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
3451
+ })), t.push.apply(t, o);
3452
+ }
3453
+ return t;
3454
+ }
3455
+ function _objectSpread2(e) {
3456
+ for (var r = 1; r < arguments.length; r++) {
3457
+ var t = null != arguments[r] ? arguments[r] : {};
3458
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
3459
+ _defineProperty(e, r, t[r]);
3460
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
3461
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
3462
+ });
3463
+ }
3464
+ return e;
3465
+ }
3466
+ function _objectWithoutProperties(e, t) {
3467
+ if (null == e) return {};
3468
+ var o,
3469
+ r,
3470
+ i = _objectWithoutPropertiesLoose(e, t);
3471
+ if (Object.getOwnPropertySymbols) {
3472
+ var n = Object.getOwnPropertySymbols(e);
3473
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
3474
+ }
3475
+ return i;
3476
+ }
3477
+ function _objectWithoutPropertiesLoose(r, e) {
3478
+ if (null == r) return {};
3479
+ var t = {};
3480
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
3481
+ if (-1 !== e.indexOf(n)) continue;
3482
+ t[n] = r[n];
3483
+ }
3484
+ return t;
3485
+ }
3486
+ function _toPrimitive(t, r) {
3487
+ if ("object" != typeof t || !t) return t;
3488
+ var e = t[Symbol.toPrimitive];
3489
+ if (void 0 !== e) {
3490
+ var i = e.call(t, r || "default");
3491
+ if ("object" != typeof i) return i;
3492
+ throw new TypeError("@@toPrimitive must return a primitive value.");
3493
+ }
3494
+ return ("string" === r ? String : Number)(t);
3495
+ }
3496
+ function _toPropertyKey(t) {
3497
+ var i = _toPrimitive(t, "string");
3498
+ return "symbol" == typeof i ? i : i + "";
3499
+ }
3500
+
3545
3501
  //Below isn't being used in build for some reason
3546
3502
  const variants$4 = {
3547
3503
  refreshed: {
@@ -3659,6 +3615,7 @@ const footer$1 = {
3659
3615
  padding: 4,
3660
3616
  gap: 4,
3661
3617
  justifyContent: 'flex-start',
3618
+ alignItems: 'normal',
3662
3619
  flexDirection: { base: 'column', desktop: 'row-reverse' },
3663
3620
  };
3664
3621
 
@@ -4039,168 +3996,168 @@ const progressStyle = {
4039
3996
  };
4040
3997
 
4041
3998
  const baseStyle = {
4042
- button: {
4043
- px: 8,
4044
- py: 3,
4045
- fontSize: 'base',
4046
- fontFamily: 'body',
4047
- lineHeight: 0.875,
4048
- fontWeight: 'semibold',
4049
- borderWidth: '1px',
4050
- borderStyle: 'solid',
4051
- borderRadius: 'base',
4052
- textTransform: 'capitalize',
4053
- transition: 'all normal ease',
4054
- _hover: {
4055
- bg: 'gray.50',
4056
- borderColor: 'gray.200'
4057
- },
4058
- _disabled: {
4059
- cursor: 'not-allowed',
4060
- opacity: 1,
4061
- bg: 'gray.200',
4062
- borderColor: 'gray.200',
4063
- color: 'gray.600'
4064
- },
4065
- _focus: {
4066
- zIndex: 1,
4067
- boxShadow: 'outline'
4068
- }
4069
- },
4070
- list: {
4071
- bg: 'white',
4072
- boxShadow: 'base',
4073
- padding: 6,
4074
- zIndex: 'layer1',
4075
- width: 64
4076
- },
4077
- item: {
4078
- paddingX: 2,
4079
- paddingY: 1.5,
4080
- _focus: {
4081
- zIndex: 1,
4082
- boxShadow: 'outline'
4083
- }
4084
- },
4085
- groupTitle: {
4086
- fontWeight: 'semibold',
4087
- color: 'gray.600',
4088
- padding: 2
4089
- },
4090
- command: {
4091
- // this will style the text defined by the command
4092
- // prop in the MenuItem and MenuItemOption components
4093
- opacity: '0.8',
4094
- fontFamily: 'mono',
4095
- fontSize: 'sm',
4096
- letterSpacing: 'tighter',
4097
- paddingL: 4
4098
- },
4099
- divider: {
4100
- marginY: 2,
4101
- borderColor: 'gray.200'
4102
- }
4103
- };
4104
- const variants = {
4105
- basic: {
4106
3999
  button: {
4107
- bg: 'primary.default',
4108
- borderColor: 'primary.default',
4109
- color: 'white',
4110
- _hover: {
4111
- bg: 'primary.600',
4112
- borderColor: 'primary.600',
4113
- color: 'white',
4000
+ px: 8,
4001
+ py: 3,
4002
+ fontSize: 'base',
4003
+ fontFamily: 'body',
4004
+ lineHeight: 0.875,
4005
+ fontWeight: 'semibold',
4006
+ borderWidth: '1px',
4007
+ borderStyle: 'solid',
4008
+ borderRadius: 'base',
4009
+ textTransform: 'capitalize',
4010
+ transition: 'all normal ease',
4011
+ _hover: {
4012
+ bg: 'gray.50',
4013
+ borderColor: 'gray.200',
4014
+ },
4114
4015
  _disabled: {
4115
- bg: 'gray.200',
4116
- borderColor: 'gray.200',
4117
- color: 'gray.600'
4118
- }
4119
- }
4016
+ cursor: 'not-allowed',
4017
+ opacity: 1,
4018
+ bg: 'gray.200',
4019
+ borderColor: 'gray.200',
4020
+ color: 'gray.600',
4021
+ },
4022
+ _focus: {
4023
+ zIndex: 1,
4024
+ boxShadow: 'outline',
4025
+ },
4120
4026
  },
4121
4027
  list: {
4122
- bg: 'white',
4123
- boxShadow: 'base',
4124
- zIndex: 'layer1',
4125
- borderColor: 'gray.100',
4126
- borderWidth: '1px',
4127
- borderStyle: 'solid',
4128
- borderRadius: 'base',
4129
- padding: 4,
4130
- width: 64
4028
+ bg: 'white',
4029
+ boxShadow: 'base',
4030
+ padding: 6,
4031
+ zIndex: 'layer1',
4032
+ width: 64,
4033
+ },
4034
+ item: {
4035
+ paddingX: 2,
4036
+ paddingY: 1.5,
4037
+ _focus: {
4038
+ zIndex: 1,
4039
+ boxShadow: 'outline',
4040
+ },
4131
4041
  },
4132
4042
  groupTitle: {
4133
- fontWeight: 'semibold',
4134
- fontSize: 'md',
4135
- color: 'gray.600',
4136
- padding: 2
4043
+ fontWeight: 'semibold',
4044
+ color: 'gray.600',
4045
+ padding: 2,
4137
4046
  },
4138
- item: {
4139
- fontWeight: 'semibold',
4140
- _hover: {
4141
- color: 'gray.600'
4142
- }
4143
- }
4144
- },
4145
- full: {
4146
- button: {
4147
- height: 8,
4148
- fontSize: 'sm',
4149
- fontWeight: 'semibold',
4150
- color: 'black',
4151
- borderColor: 'white',
4152
- backgroundColor: 'white',
4153
- borderRadius: 'base',
4154
- paddingX: 3,
4155
- paddingY: 'auto',
4156
- _hover: {
4157
- color: 'black',
4158
- backgroundColor: 'gray.50',
4159
- borderColor: 'gray.50'
4160
- },
4161
- _active: {
4162
- color: 'primary.default',
4163
- backgroundColor: 'gray.50',
4164
- borderColor: 'gray.50',
4165
- _hover: {
4166
- color: 'primary.600',
4167
- backgroundColor: 'gray.50',
4168
- borderColor: 'gray.50'
4169
- }
4170
- }
4047
+ command: {
4048
+ // this will style the text defined by the command
4049
+ // prop in the MenuItem and MenuItemOption components
4050
+ opacity: '0.8',
4051
+ fontFamily: 'mono',
4052
+ fontSize: 'sm',
4053
+ letterSpacing: 'tighter',
4054
+ paddingLeft: 4,
4171
4055
  },
4172
- list: {
4173
- height: '30rem',
4174
- width: '100vw',
4175
- padding: 8,
4176
- backgroundColor: 'white'
4056
+ divider: {
4057
+ marginY: 2,
4058
+ borderColor: 'gray.200',
4177
4059
  },
4178
- groupTitle: {
4179
- fontSize: 'sm',
4180
- weight: 'normal',
4181
- color: 'gray.600'
4060
+ };
4061
+ const variants = {
4062
+ basic: {
4063
+ button: {
4064
+ bg: 'primary.default',
4065
+ borderColor: 'primary.default',
4066
+ color: 'white',
4067
+ _hover: {
4068
+ bg: 'primary.600',
4069
+ borderColor: 'primary.600',
4070
+ color: 'white',
4071
+ _disabled: {
4072
+ bg: 'gray.200',
4073
+ borderColor: 'gray.200',
4074
+ color: 'gray.600',
4075
+ },
4076
+ },
4077
+ },
4078
+ list: {
4079
+ bg: 'white',
4080
+ boxShadow: 'base',
4081
+ zIndex: 'layer1',
4082
+ borderColor: 'gray.100',
4083
+ borderWidth: '1px',
4084
+ borderStyle: 'solid',
4085
+ borderRadius: 'base',
4086
+ padding: 4,
4087
+ width: 64,
4088
+ },
4089
+ groupTitle: {
4090
+ fontWeight: 'semibold',
4091
+ fontSize: 'md',
4092
+ color: 'gray.600',
4093
+ padding: 2,
4094
+ },
4095
+ item: {
4096
+ fontWeight: 'semibold',
4097
+ _hover: {
4098
+ color: 'gray.600',
4099
+ },
4100
+ },
4101
+ },
4102
+ full: {
4103
+ button: {
4104
+ height: 8,
4105
+ fontSize: 'sm',
4106
+ fontWeight: 'semibold',
4107
+ color: 'black',
4108
+ borderColor: 'white',
4109
+ backgroundColor: 'white',
4110
+ borderRadius: 'base',
4111
+ paddingX: 3,
4112
+ paddingY: 'auto',
4113
+ _hover: {
4114
+ color: 'black',
4115
+ backgroundColor: 'gray.50',
4116
+ borderColor: 'gray.50',
4117
+ },
4118
+ _active: {
4119
+ color: 'primary.default',
4120
+ backgroundColor: 'gray.50',
4121
+ borderColor: 'gray.50',
4122
+ _hover: {
4123
+ color: 'primary.600',
4124
+ backgroundColor: 'gray.50',
4125
+ borderColor: 'gray.50',
4126
+ },
4127
+ },
4128
+ },
4129
+ list: {
4130
+ height: '30rem',
4131
+ width: '100vw',
4132
+ padding: 8,
4133
+ backgroundColor: 'white',
4134
+ },
4135
+ groupTitle: {
4136
+ fontSize: 'sm',
4137
+ weight: 'normal',
4138
+ color: 'gray.600',
4139
+ },
4140
+ item: {
4141
+ display: 'block',
4142
+ paddingX: 3.5,
4143
+ paddingY: 2.5,
4144
+ marginBottom: 2,
4145
+ _last: {
4146
+ marginBottom: 0,
4147
+ },
4148
+ _hover: {
4149
+ backgroundColor: 'gray.50',
4150
+ },
4151
+ _focus: {
4152
+ boxShadow: 'none',
4153
+ backgroundColor: 'gray.50',
4154
+ },
4155
+ },
4182
4156
  },
4183
- item: {
4184
- display: 'block',
4185
- paddingX: 3.5,
4186
- paddingY: 2.5,
4187
- marginBottom: 2,
4188
- _last: {
4189
- marginBottom: 0
4190
- },
4191
- _hover: {
4192
- backgroundColor: 'gray.50'
4193
- },
4194
- _focus: {
4195
- boxShadow: 'none',
4196
- backgroundColor: 'gray.50'
4197
- }
4198
- }
4199
- }
4200
4157
  };
4201
- var Menu_styles = merge__default.default(react.theme.components.Menu, {
4202
- baseStyle,
4203
- variants
4158
+ const menuStyle = merge__default.default(react.theme.components.Menu, {
4159
+ baseStyle,
4160
+ variants,
4204
4161
  });
4205
4162
 
4206
4163
  var components = /*#__PURE__*/Object.freeze({
@@ -4218,7 +4175,7 @@ var components = /*#__PURE__*/Object.freeze({
4218
4175
  InputRefreshed: index$1,
4219
4176
  Link: linkStyle,
4220
4177
  List: listStyle,
4221
- Menu: Menu_styles,
4178
+ Menu: menuStyle,
4222
4179
  Modal: modalStyle,
4223
4180
  Popover: popoverStyle,
4224
4181
  Progress: progressStyle,
@@ -4229,7 +4186,7 @@ var components = /*#__PURE__*/Object.freeze({
4229
4186
  Spinner: Spinner_styles,
4230
4187
  Switch: switchStyle,
4231
4188
  Table: Table_styles,
4232
- Tabs: styles$2,
4189
+ Tabs: tabsStyle,
4233
4190
  Text: textStyle
4234
4191
  });
4235
4192
 
@@ -4354,7 +4311,7 @@ const Input$1 = React.forwardRef(({ label, helperText, errorMessage, isInvalid,
4354
4311
  });
4355
4312
  Input$1.displayName = 'Input';
4356
4313
 
4357
- const _excluded$6 = ["label", "helperText", "errorMessage", "id", "children", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles"];
4314
+ const _excluded$5 = ["label", "helperText", "errorMessage", "id", "children", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles"];
4358
4315
 
4359
4316
  // No clue how to move these into the style file so just co-located to keep from slowing down
4360
4317
  // Chakra V2 will heavily impact this component
@@ -4477,10 +4434,10 @@ const FormControl = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4477
4434
  rightElementStyles,
4478
4435
  leftElementStyles
4479
4436
  } = _ref,
4480
- props = _objectWithoutProperties(_ref, _excluded$6);
4481
- return /*#__PURE__*/React__namespace.default.createElement(react.FormControl, _extends$2({}, props, {
4437
+ props = _objectWithoutProperties(_ref, _excluded$5);
4438
+ return /*#__PURE__*/React__namespace.default.createElement(react.FormControl, _extends$1({}, props, {
4482
4439
  ref: ref
4483
- }, controlStyles), /*#__PURE__*/React__namespace.default.createElement(react.InputGroup, null, leftElement && /*#__PURE__*/React__namespace.default.createElement(react.InputLeftElement, _extends$2({
4440
+ }, controlStyles), /*#__PURE__*/React__namespace.default.createElement(react.InputGroup, null, leftElement && /*#__PURE__*/React__namespace.default.createElement(react.InputLeftElement, _extends$1({
4484
4441
  pointerEvents: "none",
4485
4442
  top: "52%",
4486
4443
  left: "1.3rem",
@@ -4491,7 +4448,7 @@ const FormControl = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4491
4448
  position: "relative"
4492
4449
  }, children, label && /*#__PURE__*/React__namespace.default.createElement(react.FormLabel, {
4493
4450
  htmlFor: id
4494
- }, label)), rightElement && /*#__PURE__*/React__namespace.default.createElement(react.InputRightElement, _extends$2({
4451
+ }, label)), rightElement && /*#__PURE__*/React__namespace.default.createElement(react.InputRightElement, _extends$1({
4495
4452
  top: "50%",
4496
4453
  right: "-1rem",
4497
4454
  transform: "translate(-50%,-50%)"
@@ -4519,7 +4476,7 @@ FormControl.propTypes = {
4519
4476
  isInvalid: PropTypes__default.default.bool
4520
4477
  };
4521
4478
 
4522
- const _excluded$5 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles", "placeholder"];
4479
+ const _excluded$4 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles", "placeholder"];
4523
4480
 
4524
4481
  /**
4525
4482
  * A component used in the homepage/midfunnel refresh of 2024
@@ -4540,7 +4497,7 @@ const Input = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4540
4497
  leftElementStyles,
4541
4498
  placeholder = ' '
4542
4499
  } = _ref,
4543
- props = _objectWithoutProperties(_ref, _excluded$5);
4500
+ props = _objectWithoutProperties(_ref, _excluded$4);
4544
4501
  const classes = cn__default.default({
4545
4502
  'FormElement-contains-error': isInvalid
4546
4503
  }); //Historic carry over
@@ -4558,7 +4515,7 @@ const Input = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4558
4515
  rightElementStyles: rightElementStyles,
4559
4516
  leftElementStyles: leftElementStyles,
4560
4517
  variant: "refreshed"
4561
- }, /*#__PURE__*/React__namespace.default.createElement(react.Input, _extends$2({
4518
+ }, /*#__PURE__*/React__namespace.default.createElement(react.Input, _extends$1({
4562
4519
  placeholder: placeholder,
4563
4520
  ref: ref,
4564
4521
  className: classes,
@@ -4583,7 +4540,7 @@ Input.propTypes = {
4583
4540
  leftElementStyles: PropTypes__default.default.object
4584
4541
  };
4585
4542
 
4586
- const _excluded$4 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isOptional", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles", "formControlStyles"];
4543
+ const _excluded$3 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isOptional", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles", "formControlStyles"];
4587
4544
 
4588
4545
  //For select left is static arrow,
4589
4546
  /**
@@ -4607,7 +4564,7 @@ const Select = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4607
4564
  leftElementStyles,
4608
4565
  formControlStyles
4609
4566
  } = _ref,
4610
- props = _objectWithoutProperties(_ref, _excluded$4);
4567
+ props = _objectWithoutProperties(_ref, _excluded$3);
4611
4568
  const classes = cn__default.default({
4612
4569
  'FormElement-contains-error': isInvalid
4613
4570
  });
@@ -4624,7 +4581,7 @@ const Select = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4624
4581
  rightElementStyles: rightElementStyles,
4625
4582
  leftElementStyles: leftElementStyles,
4626
4583
  sx: formControlStyles
4627
- }, /*#__PURE__*/React__namespace.default.createElement(react.Select, _extends$2({
4584
+ }, /*#__PURE__*/React__namespace.default.createElement(react.Select, _extends$1({
4628
4585
  icon: /*#__PURE__*/React__namespace.default.createElement(react.Icon, {
4629
4586
  as: ForwardRef$1
4630
4587
  }),
@@ -4648,7 +4605,7 @@ Select.propTypes = {
4648
4605
  rightElementStyles: PropTypes__default.default.object
4649
4606
  };
4650
4607
 
4651
- const _excluded$3 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isHighlighted", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles", "buttonValue"];
4608
+ const _excluded$2 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isHighlighted", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles", "buttonValue"];
4652
4609
 
4653
4610
  /**
4654
4611
  * A component used in the homepage/midfunnel refresh of 2024
@@ -4672,7 +4629,7 @@ const Button = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4672
4629
  leftElementStyles,
4673
4630
  buttonValue
4674
4631
  } = _ref,
4675
- props = _objectWithoutProperties(_ref, _excluded$3);
4632
+ props = _objectWithoutProperties(_ref, _excluded$2);
4676
4633
  const classes = cn__default.default({
4677
4634
  'FormElement-contains-error': isInvalid
4678
4635
  }); //Historic carry over
@@ -4690,7 +4647,7 @@ const Button = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4690
4647
  rightElementStyles: rightElementStyles,
4691
4648
  leftElementStyles: leftElementStyles,
4692
4649
  variant: "refreshed"
4693
- }, /*#__PURE__*/React__namespace.default.createElement(react.Button, _extends$2({
4650
+ }, /*#__PURE__*/React__namespace.default.createElement(react.Button, _extends$1({
4694
4651
  ref: ref,
4695
4652
  className: classes,
4696
4653
  variant: "refreshed",
@@ -4843,7 +4800,7 @@ const AutoSuggestSelect$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4843
4800
  innerRef,
4844
4801
  innerProps
4845
4802
  } = _ref2;
4846
- return /*#__PURE__*/React__namespace.default.createElement("div", _extends$2({
4803
+ return /*#__PURE__*/React__namespace.default.createElement("div", _extends$1({
4847
4804
  style: clearIndicatorStyles,
4848
4805
  ref: innerRef
4849
4806
  }, innerProps), /*#__PURE__*/React__namespace.default.createElement(ForwardRef, null));
@@ -4927,104 +4884,31 @@ const RadioGroup = React.forwardRef(({ label, errorMessage, defaultValue, isDisa
4927
4884
  });
4928
4885
  RadioGroup.displayName = 'RadioGroup';
4929
4886
 
4930
- const _excluded$2 = ["isChecked", "isDisabled", "value", "helperText", "expandableChildren", "defaultChecked", "isRadio", "label", "isExpandable", "size", "expandableChildrenStyles", "topChild", "expandableContentKey"];
4931
- const SelectionCard = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4932
- let {
4933
- isChecked,
4934
- isDisabled,
4935
- value,
4936
- helperText,
4937
- expandableChildren,
4938
- defaultChecked,
4939
- isRadio,
4940
- label,
4941
- isExpandable,
4942
- size = 'md',
4943
- expandableChildrenStyles = {},
4944
- topChild,
4945
- expandableContentKey = 'selection-card-content'
4946
- } = _ref,
4947
- props = _objectWithoutProperties(_ref, _excluded$2);
4948
- const Component = isRadio ? Radio : Checkbox;
4949
- const expandableTextSize = size === 'sm' || size === 'md' ? 'xs' : 'sm';
4950
- const hasExpandableContent = isExpandable && isChecked && expandableChildren;
4951
- const prefersReducedMotion = react.usePrefersReducedMotion();
4952
-
4953
- // Create a unique key based on the content to force re-animation
4954
- const contentKey = React__namespace.default.useMemo(() => {
4955
- if (typeof expandableChildren === 'string') {
4956
- return expandableChildren;
4957
- }
4958
- return expandableContentKey || JSON.stringify(expandableChildren === null || expandableChildren === void 0 ? void 0 : expandableChildren.props) || Math.random();
4959
- }, [expandableChildren, expandableContentKey]);
4960
- return /*#__PURE__*/React__namespace.default.createElement(react.Box, {
4961
- borderRadius: "lg",
4962
- borderColor: isChecked ? 'primary.default' : 'gray.medium',
4963
- borderWidth: "1px",
4964
- _hover: {
4965
- borderColor: isDisabled ? 'gray.medium' : 'primary.default'
4966
- },
4967
- overflow: topChild ? 'hidden' : 'auto'
4968
- }, topChild, /*#__PURE__*/React__namespace.default.createElement(react.Box, {
4969
- borderColor: "gray.medium",
4970
- borderBottomWidth: hasExpandableContent ? '1px' : 0
4971
- }, /*#__PURE__*/React__namespace.default.createElement(Component, _extends$2({
4972
- ref: ref,
4973
- isChecked: isChecked,
4974
- isDisabled: isDisabled,
4975
- isFocusable: !isDisabled,
4976
- value: value,
4977
- defaultChecked: defaultChecked,
4978
- helperText: helperText,
4979
- size: size,
4980
- width: "100%",
4981
- paddingX: 4,
4982
- paddingY: 3
4983
- }, props), label)), /*#__PURE__*/React__namespace.default.createElement(framerMotion.AnimatePresence, {
4984
- mode: "wait"
4985
- }, hasExpandableContent && /*#__PURE__*/React__namespace.default.createElement(react.Box, {
4986
- as: framerMotion.motion.div,
4987
- key: contentKey,
4988
- initial: {
4989
- height: 0,
4990
- opacity: 0
4991
- },
4992
- animate: {
4993
- height: 'auto',
4994
- opacity: 1
4995
- },
4996
- exit: {
4997
- height: 0,
4998
- opacity: 0
4999
- },
5000
- transition: {
5001
- duration: prefersReducedMotion ? 0 : 0.15,
5002
- ease: 'easeOut'
5003
- },
5004
- overflow: "hidden"
5005
- }, /*#__PURE__*/React__namespace.default.createElement(react.Box, _extends$2({
5006
- color: "gray.600",
5007
- fontSize: expandableTextSize,
5008
- paddingTop: 3,
5009
- paddingX: 4,
5010
- paddingBottom: 3
5011
- }, expandableChildrenStyles), expandableChildren))));
5012
- });
5013
- SelectionCard.propTypes = {
5014
- label: PropTypes__default.default.oneOfType([PropTypes__default.default.string, PropTypes__default.default.element]).isRequired,
5015
- expandableChildren: PropTypes__default.default.oneOfType([PropTypes__default.default.string, PropTypes__default.default.element]),
5016
- defaultChecked: PropTypes__default.default.bool,
5017
- isChecked: PropTypes__default.default.bool,
5018
- isDisabled: PropTypes__default.default.bool,
5019
- value: PropTypes__default.default.string.isRequired,
5020
- helperText: PropTypes__default.default.string,
5021
- isRadio: PropTypes__default.default.bool,
5022
- isExpandable: PropTypes__default.default.bool,
5023
- expandableChildrenStyles: PropTypes__default.default.object,
5024
- size: PropTypes__default.default.oneOf(['sm', 'md', 'lg']),
5025
- topChild: PropTypes__default.default.element,
5026
- expandableContentKey: PropTypes__default.default.string
5027
- };
4887
+ const MotionBox = framerMotion.motion(react.Box);
4888
+ const SelectionCard = React.forwardRef(({ isChecked, isDisabled, value, helperText, expandableChildren, defaultChecked, isRadio, label, isExpandable, size = 'md', expandableChildrenStyles = {}, topChild, expandableContentKey = 'selection-card-content', ...props }, ref) => {
4889
+ const Component = isRadio ? Radio : Checkbox;
4890
+ const expandableTextSize = size === 'sm' || size === 'md' ? 'xs' : 'sm';
4891
+ const hasExpandableContent = isExpandable && isChecked && expandableChildren;
4892
+ const prefersReducedMotion = react.usePrefersReducedMotion();
4893
+ // Create a unique key based on the content to force re-animation
4894
+ const contentKey = React__namespace.default.useMemo(() => {
4895
+ if (typeof expandableChildren === 'string') {
4896
+ return expandableChildren;
4897
+ }
4898
+ return (expandableContentKey ||
4899
+ (React__namespace.default.isValidElement(expandableChildren)
4900
+ ? JSON.stringify(expandableChildren.props)
4901
+ : undefined) ||
4902
+ Math.random());
4903
+ }, [expandableChildren, expandableContentKey]);
4904
+ return (jsxRuntimeExports.jsxs(react.Box, { borderRadius: "lg", borderColor: isChecked ? 'primary.default' : 'gray.medium', borderWidth: "1px", _hover: {
4905
+ borderColor: isDisabled ? 'gray.medium' : 'primary.default',
4906
+ }, overflow: topChild ? 'hidden' : 'auto', children: [topChild, jsxRuntimeExports.jsx(react.Box, { borderColor: "gray.medium", borderBottomWidth: hasExpandableContent ? '1px' : 0, children: jsxRuntimeExports.jsx(Component, { ref: ref, isChecked: isChecked, isDisabled: isDisabled, isFocusable: !isDisabled, value: value, defaultChecked: defaultChecked, helperText: helperText, size: size, width: "100%", paddingX: 4, paddingY: 3, ...props, children: label }) }), jsxRuntimeExports.jsx(framerMotion.AnimatePresence, { mode: "wait", children: hasExpandableContent && (jsxRuntimeExports.jsx(MotionBox, { initial: { height: 0, opacity: 0 }, animate: { height: 'auto', opacity: 1 }, exit: { height: 0, opacity: 0 }, transition: {
4907
+ duration: prefersReducedMotion ? 0 : 0.15,
4908
+ ease: 'easeOut',
4909
+ }, overflow: "hidden", children: jsxRuntimeExports.jsx(react.Box, { color: "gray.600", fontSize: expandableTextSize, paddingTop: 3, paddingX: 4, paddingBottom: 3, ...expandableChildrenStyles, children: expandableChildren }) }, contentKey)) })] }));
4910
+ });
4911
+ SelectionCard.displayName = 'SelectionCard';
5028
4912
 
5029
4913
  const Divider = React.forwardRef(({ variant = 'solid', colorScheme: borderColor = 'medium', ...props }, ref) => {
5030
4914
  return (jsxRuntimeExports.jsx(react.Divider, { ...colorScheme[borderColor], variant: variant, ...props, ref: ref }));
@@ -5184,7 +5068,7 @@ const AutoSuggestSelect = /*#__PURE__*/React.forwardRef((_ref, ref) => {
5184
5068
  innerRef,
5185
5069
  innerProps
5186
5070
  } = _ref2;
5187
- return /*#__PURE__*/React__namespace.default.createElement("div", _extends$2({
5071
+ return /*#__PURE__*/React__namespace.default.createElement("div", _extends$1({
5188
5072
  style: clearIndicatorStyles,
5189
5073
  ref: innerRef
5190
5074
  }, innerProps), /*#__PURE__*/React__namespace.default.createElement(ForwardRef, null));
@@ -5353,7 +5237,7 @@ const FilterSelectNode = _ref => {
5353
5237
  label: label,
5354
5238
  inputId: id,
5355
5239
  isInvalid: isInvalid
5356
- }, /*#__PURE__*/React__namespace.default.createElement(Select__default.default, _extends$2({
5240
+ }, /*#__PURE__*/React__namespace.default.createElement(Select__default.default, _extends$1({
5357
5241
  ref: innerRef,
5358
5242
  classNamePrefix: "fe-ui-filter-select",
5359
5243
  closeMenuOnSelect: true,
@@ -5372,7 +5256,7 @@ const FilterSelectNode = _ref => {
5372
5256
  noOptionsMessage: () => noOptionsMessage
5373
5257
  }, props)));
5374
5258
  };
5375
- const FilterSelect = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React__namespace.default.createElement(FilterSelectNode, _extends$2({
5259
+ const FilterSelect = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React__namespace.default.createElement(FilterSelectNode, _extends$1({
5376
5260
  innerRef: ref
5377
5261
  }, props)));
5378
5262
  FilterSelect.propTypes = {
@@ -5433,45 +5317,33 @@ FilterSelectNode.propTypes = {
5433
5317
  };
5434
5318
 
5435
5319
  const defaultStyles = {
5436
- border: 0,
5437
- borderRadius: '4px',
5438
- fontWeight: 'normal',
5439
- paddingX: 4,
5440
- paddingY: 1,
5441
- _hover: {
5442
- boxShadow: '0 0 0 2px rgba(158, 202, 237, 1)'
5443
- },
5444
- _focus: {
5445
- boxShadow: '0 0 0 2px rgba(158, 202, 237, 1)'
5446
- }
5320
+ border: 0,
5321
+ borderRadius: '4px',
5322
+ fontWeight: 'normal',
5323
+ paddingX: 4,
5324
+ paddingY: 1,
5325
+ _hover: { boxShadow: '0 0 0 2px rgba(158, 202, 237, 1)' },
5326
+ _focus: { boxShadow: '0 0 0 2px rgba(158, 202, 237, 1)' },
5447
5327
  };
5448
5328
  const inactiveStyles = {
5449
- color: 'black',
5450
- borderColor: 'gray.100',
5451
- bg: 'gray.100',
5452
- _hover: {
5453
- bg: 'gray.100'
5454
- },
5455
- _active: {
5456
- bg: 'gray.100'
5457
- }
5329
+ color: 'black',
5330
+ borderColor: 'gray.100',
5331
+ bg: 'gray.100',
5332
+ _hover: { bg: 'gray.100' },
5333
+ _active: { bg: 'gray.100' },
5458
5334
  };
5459
5335
  const activeStyles = {
5460
- color: 'black',
5461
- fontWeight: 'semibold',
5462
- boxShadow: 'sm',
5463
- bg: 'white',
5464
- _hover: {
5465
- bg: 'white'
5466
- },
5467
- _active: {
5468
- bg: 'white'
5469
- }
5336
+ color: 'black',
5337
+ fontWeight: 'semibold',
5338
+ boxShadow: 'sm',
5339
+ bg: 'white',
5340
+ _hover: { bg: 'white' },
5341
+ _active: { bg: 'white' },
5470
5342
  };
5471
5343
  const buttonGroupStyles = {
5472
- borderRadius: '4px',
5473
- backgroundColor: 'gray.100',
5474
- padding: 1
5344
+ borderRadius: '4px',
5345
+ backgroundColor: 'gray.100',
5346
+ padding: 1,
5475
5347
  };
5476
5348
 
5477
5349
  /**
@@ -5484,40 +5356,32 @@ const buttonGroupStyles = {
5484
5356
  * @note
5485
5357
  * must have multiple child elements
5486
5358
  */
5487
- const ToggleButtonGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
5488
- const {
5489
- onChange,
5490
- value,
5491
- children,
5492
- groupProps,
5493
- buttonGroupStyles: _buttonGroupStyles = {},
5494
- childrenStyles = {}
5495
- } = props;
5496
- if (!children) throw new Error('Children required');
5497
-
5498
- // iterate over array of child nodes to apply extended props
5499
- return /*#__PURE__*/React__namespace.default.createElement(react.ButtonGroup, _extends$2({
5500
- ref: ref,
5501
- sx: _objectSpread2(_objectSpread2({}, buttonGroupStyles), _buttonGroupStyles)
5502
- }, groupProps), React__namespace.default.Children.map(children, CHILD => {
5503
- var _CHILD$props3;
5504
- return /*#__PURE__*/React__namespace.default.cloneElement(CHILD, _objectSpread2({
5505
- onClick: () => {
5506
- var _CHILD$props, _CHILD$props2;
5507
- if (value === (CHILD === null || CHILD === void 0 || (_CHILD$props = CHILD.props) === null || _CHILD$props === void 0 ? void 0 : _CHILD$props.value)) return;
5508
- onChange(CHILD === null || CHILD === void 0 || (_CHILD$props2 = CHILD.props) === null || _CHILD$props2 === void 0 ? void 0 : _CHILD$props2.value);
5509
- }
5510
- }, {
5511
- sx: _objectSpread2(_objectSpread2(_objectSpread2({}, defaultStyles), value !== (CHILD === null || CHILD === void 0 || (_CHILD$props3 = CHILD.props) === null || _CHILD$props3 === void 0 ? void 0 : _CHILD$props3.value) ? inactiveStyles : activeStyles), childrenStyles)
5512
- }));
5513
- }));
5359
+ const ToggleButtonGroup = React.forwardRef((props, ref) => {
5360
+ const { onChange, value, children, groupProps, buttonGroupStyles: _buttonGroupStyles = {}, childrenStyles = {}, } = props;
5361
+ if (!children)
5362
+ throw new Error('Children required');
5363
+ // iterate over array of child nodes to apply extended props
5364
+ return (jsxRuntimeExports.jsx(react.ButtonGroup, { ref: ref, sx: { ...buttonGroupStyles, ..._buttonGroupStyles }, ...groupProps, children: React__namespace.default.Children.map(children, child => {
5365
+ const CHILD = child;
5366
+ return React__namespace.default.cloneElement(CHILD, {
5367
+ onClick: () => {
5368
+ if (value === CHILD?.props?.value)
5369
+ return;
5370
+ onChange(CHILD?.props?.value);
5371
+ },
5372
+ ...{
5373
+ sx: {
5374
+ ...defaultStyles,
5375
+ ...(value !== CHILD?.props?.value
5376
+ ? inactiveStyles
5377
+ : activeStyles),
5378
+ ...childrenStyles,
5379
+ },
5380
+ },
5381
+ });
5382
+ }) }));
5514
5383
  });
5515
- ToggleButtonGroup.propTypes = {
5516
- onChange: PropTypes__default.default.func.isRequired,
5517
- value: PropTypes__default.default.string.isRequired,
5518
- children: PropTypes__default.default.node.isRequired,
5519
- groupProps: PropTypes__default.default.object
5520
- };
5384
+ ToggleButtonGroup.displayName = 'ToggleButtonGroup';
5521
5385
 
5522
5386
  const _excluded = ["id", "label", "isInvalid", "isLoading", "isRequired", "options", "placeholder", "errorMessage", "helperText", "innerRef"],
5523
5387
  _excluded2 = ["id", "label", "isInvalid", "isLoading", "isRequired", "options", "placeholder", "errorMessage", "helperText"];
@@ -5584,7 +5448,7 @@ const CreatableSelectNode = _ref => {
5584
5448
  helperText: helperText,
5585
5449
  label: label,
5586
5450
  inputId: id
5587
- }, /*#__PURE__*/React__namespace.default.createElement(Creatable__default.default, _extends$2({
5451
+ }, /*#__PURE__*/React__namespace.default.createElement(Creatable__default.default, _extends$1({
5588
5452
  id: id,
5589
5453
  components: {
5590
5454
  DropdownIndicator
@@ -5608,7 +5472,7 @@ const CreatableSelect = /*#__PURE__*/React.forwardRef((props, ref) => {
5608
5472
  helperText
5609
5473
  } = props,
5610
5474
  additionalProps = _objectWithoutProperties(props, _excluded2);
5611
- return /*#__PURE__*/React__namespace.default.createElement(CreatableSelectNode, _extends$2({
5475
+ return /*#__PURE__*/React__namespace.default.createElement(CreatableSelectNode, _extends$1({
5612
5476
  id: id,
5613
5477
  innerRef: ref,
5614
5478
  label: label,
@@ -5646,19 +5510,14 @@ CreatableSelectNode.propTypes = {
5646
5510
  current: PropTypes__default.default.instanceOf(Creatable__default.default)
5647
5511
  })
5648
5512
  };
5649
- var CreatableSelect$1 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React__namespace.default.createElement(CreatableSelectNode, _extends$2({
5513
+ var CreatableSelect$1 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React__namespace.default.createElement(CreatableSelectNode, _extends$1({
5650
5514
  ref: ref
5651
5515
  }, props)));
5652
5516
 
5653
- const Menu = react.forwardRef((props, ref) => {
5654
- return /*#__PURE__*/React__namespace.default.createElement(react.Menu, _extends$2({}, props, {
5655
- ref: ref
5656
- }));
5517
+ const ChakraMenuWithRef = react.Menu;
5518
+ const Menu = React__namespace.default.forwardRef((props, ref) => {
5519
+ return jsxRuntimeExports.jsx(ChakraMenuWithRef, { ...props, ref: ref });
5657
5520
  });
5658
- Menu.propTypes = {
5659
- /** The React node that will render inside the element */
5660
- children: PropTypes__default.default.node
5661
- };
5662
5521
 
5663
5522
  Object.defineProperty(exports, "Accordion", {
5664
5523
  enumerable: true,