@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/components/Accordion/AccordionActionButton.d.ts +6 -2
- package/dist/components/Menu/Menu.d.ts +6 -0
- package/dist/components/Menu/Menu.styles.d.ts +4 -258
- package/dist/components/Menu/index.d.ts +2 -0
- package/dist/components/Modal/styles/footer.d.ts +1 -0
- package/dist/components/SelectionCard/SelectionCard.d.ts +20 -0
- package/dist/components/SelectionCard/index.d.ts +1 -0
- package/dist/components/Table/Table.d.ts +1 -0
- package/dist/components/Table/Table.styles.d.ts +73 -65
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -0
- package/dist/components/Tabs/combineSizeWithVariant.d.ts +120 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/styles/index.d.ts +52 -298
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +27 -0
- package/dist/components/ToggleButtonGroup/index.d.ts +1 -0
- package/dist/components/ToggleButtonGroup/styles/index.d.ts +5 -0
- package/dist/index.cjs.js +459 -600
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +68 -18
- package/dist/index.esm.js +458 -599
- package/dist/index.esm.js.map +1 -1
- package/package.json +6 -4
package/dist/index.esm.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ModalOverlay, ModalContent, Box, ModalCloseButton, Modal as Modal$1, keyframes, theme as theme$2, Button as Button$2, Drawer as Drawer$1, DrawerOverlay, DrawerContent, DrawerHeader, DrawerCloseButton, Alert as Alert$1, Icon, AlertTitle, AlertDescription,
|
|
1
|
+
import { ModalOverlay, ModalContent, Box, ModalCloseButton, Modal as Modal$1, keyframes, theme as theme$2, Button as Button$2, Drawer as Drawer$1, DrawerOverlay, DrawerContent, DrawerHeader, DrawerCloseButton, Alert as Alert$1, Icon, AlertTitle, AlertDescription, Tabs as Tabs$1, FormControl as FormControl$2, FormLabel, Text as Text$1, FormHelperText, FormErrorMessage, Select as Select$2, Switch as Switch$1, Grid as Grid$1, GridItem as GridItem$1, List as List$1, Spinner as Spinner$1, Heading as Heading$1, Container as Container$1, createMultiStyleConfigHelpers, extendTheme, ChakraProvider, Img, Image as Image$1, CircularProgress, Progress as Progress$1, Checkbox as Checkbox$1, Input as Input$2, InputGroup, InputLeftElement, InputRightElement, useTheme, Radio as Radio$1, RadioGroup as RadioGroup$1, Stack, usePrefersReducedMotion, Divider as Divider$1, Textarea as Textarea$1, Popover as Popover$1, PopoverArrow as PopoverArrow$1, PopoverCloseButton as PopoverCloseButton$1, PopoverContent as PopoverContent$1, PopoverHeader, PopoverBody, ButtonGroup, Menu as Menu$1 } from '@chakra-ui/react';
|
|
2
2
|
export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AspectRatio, Badge, Input as BasicInput, Textarea as BasicTextarea, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, ButtonGroup, Center, CheckboxGroup, Circle, Code, Collapse, DrawerBody, DrawerCloseButton, Drawer as DrawerContainer, DrawerContent, DrawerFooter, DrawerHeader, DrawerOverlay, Fade, Flex, HStack, Icon, InputGroup, InputLeftAddon, InputLeftElement, InputRightAddon, InputRightElement, Kbd, Link, LinkBox, LinkOverlay, ListItem, MenuButton, MenuDivider, MenuGroup, MenuItem, MenuItemOption, MenuList, MenuOptionGroup, ModalBody, ModalFooter, ModalHeader, PopoverAnchor, PopoverTrigger, Portal, ScaleFade, SimpleGrid, Skeleton, SkeletonCircle, SkeletonText, Slide, SlideFade, Square, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, TableContainer, Tbody, Td, Tfoot, Th, Thead, Tooltip, Tr, VStack, createIcon, extendTheme, keyframes, useBreakpointValue, useClipboard, useControllableProp, useControllableState, useDisclosure, useMediaQuery, usePopper, usePrefersReducedMotion, useStyleConfig, useTheme, useToast, useToken } from '@chakra-ui/react';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { forwardRef, useState, useRef, useEffect, Children, isValidElement, cloneElement } from 'react';
|
|
5
5
|
import { motion, AnimatePresence } from 'framer-motion';
|
|
6
6
|
import merge from 'lodash/merge';
|
|
7
|
-
import PropTypes from 'prop-types';
|
|
8
7
|
import cn from 'classnames';
|
|
9
8
|
import { Global } from '@emotion/react';
|
|
10
9
|
import { accordionAnatomy, selectAnatomy } from '@chakra-ui/anatomy';
|
|
11
10
|
import template from 'lodash/template';
|
|
11
|
+
import PropTypes from 'prop-types';
|
|
12
12
|
import AsyncSelect from 'react-select/async';
|
|
13
13
|
import Select$3, { components as components$1 } from 'react-select';
|
|
14
14
|
import Creatable from 'react-select/creatable';
|
|
@@ -2179,29 +2179,16 @@ const Drawer = ({ header, drawerCloseButton, children, headerProps, ...props })
|
|
|
2179
2179
|
return (jsxRuntimeExports.jsxs(Drawer$1, { placement: "right", ...props, children: [jsxRuntimeExports.jsx(DrawerOverlay, {}), jsxRuntimeExports.jsxs(DrawerContent, { children: [jsxRuntimeExports.jsxs(DrawerHeader, { ...headerProps, children: [header, drawerCloseButton || jsxRuntimeExports.jsx(DrawerCloseButton, {})] }), children] })] }));
|
|
2180
2180
|
};
|
|
2181
2181
|
|
|
2182
|
-
const AccordionActionButton =
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
}
|
|
2191
|
-
onClick === null || onClick === void 0 || onClick();
|
|
2192
|
-
};
|
|
2193
|
-
return /*#__PURE__*/React__default.createElement(Box, {
|
|
2194
|
-
ref: ref,
|
|
2195
|
-
fontSize: "sm",
|
|
2196
|
-
role: "button",
|
|
2197
|
-
onClick: handleOnClick,
|
|
2198
|
-
color: "primary.default"
|
|
2199
|
-
}, children);
|
|
2182
|
+
const AccordionActionButton = forwardRef(({ children, onClick }, ref) => {
|
|
2183
|
+
const handleOnClick = (e) => {
|
|
2184
|
+
if (onClick) {
|
|
2185
|
+
e.preventDefault();
|
|
2186
|
+
}
|
|
2187
|
+
onClick?.();
|
|
2188
|
+
};
|
|
2189
|
+
return (jsxRuntimeExports.jsx(Box, { ref: ref, fontSize: "sm", role: "button", onClick: handleOnClick, color: "primary.default", children: children }));
|
|
2200
2190
|
});
|
|
2201
|
-
AccordionActionButton.
|
|
2202
|
-
onClick: PropTypes.func,
|
|
2203
|
-
children: PropTypes.node.isRequired
|
|
2204
|
-
};
|
|
2191
|
+
AccordionActionButton.displayName = 'AccordionActionButton';
|
|
2205
2192
|
|
|
2206
2193
|
var _path$5;
|
|
2207
2194
|
function _extends$6() {
|
|
@@ -2332,213 +2319,108 @@ const Alert = forwardRef(({ status = 'neutral', title = null, buttonProps = null
|
|
|
2332
2319
|
});
|
|
2333
2320
|
Alert.displayName = 'Alert';
|
|
2334
2321
|
|
|
2335
|
-
function _defineProperty(e, r, t) {
|
|
2336
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
2337
|
-
value: t,
|
|
2338
|
-
enumerable: !0,
|
|
2339
|
-
configurable: !0,
|
|
2340
|
-
writable: !0
|
|
2341
|
-
}) : e[r] = t, e;
|
|
2342
|
-
}
|
|
2343
|
-
function _extends$2() {
|
|
2344
|
-
return _extends$2 = Object.assign ? Object.assign.bind() : function (n) {
|
|
2345
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
2346
|
-
var t = arguments[e];
|
|
2347
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
2348
|
-
}
|
|
2349
|
-
return n;
|
|
2350
|
-
}, _extends$2.apply(null, arguments);
|
|
2351
|
-
}
|
|
2352
|
-
function ownKeys(e, r) {
|
|
2353
|
-
var t = Object.keys(e);
|
|
2354
|
-
if (Object.getOwnPropertySymbols) {
|
|
2355
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
2356
|
-
r && (o = o.filter(function (r) {
|
|
2357
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
2358
|
-
})), t.push.apply(t, o);
|
|
2359
|
-
}
|
|
2360
|
-
return t;
|
|
2361
|
-
}
|
|
2362
|
-
function _objectSpread2(e) {
|
|
2363
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
2364
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
2365
|
-
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
2366
|
-
_defineProperty(e, r, t[r]);
|
|
2367
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
2368
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
2369
|
-
});
|
|
2370
|
-
}
|
|
2371
|
-
return e;
|
|
2372
|
-
}
|
|
2373
|
-
function _objectWithoutProperties(e, t) {
|
|
2374
|
-
if (null == e) return {};
|
|
2375
|
-
var o,
|
|
2376
|
-
r,
|
|
2377
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
2378
|
-
if (Object.getOwnPropertySymbols) {
|
|
2379
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
2380
|
-
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
2381
|
-
}
|
|
2382
|
-
return i;
|
|
2383
|
-
}
|
|
2384
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
2385
|
-
if (null == r) return {};
|
|
2386
|
-
var t = {};
|
|
2387
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
2388
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
2389
|
-
t[n] = r[n];
|
|
2390
|
-
}
|
|
2391
|
-
return t;
|
|
2392
|
-
}
|
|
2393
|
-
function _toPrimitive(t, r) {
|
|
2394
|
-
if ("object" != typeof t || !t) return t;
|
|
2395
|
-
var e = t[Symbol.toPrimitive];
|
|
2396
|
-
if (void 0 !== e) {
|
|
2397
|
-
var i = e.call(t, r || "default");
|
|
2398
|
-
if ("object" != typeof i) return i;
|
|
2399
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2400
|
-
}
|
|
2401
|
-
return ("string" === r ? String : Number)(t);
|
|
2402
|
-
}
|
|
2403
|
-
function _toPropertyKey(t) {
|
|
2404
|
-
var i = _toPrimitive(t, "string");
|
|
2405
|
-
return "symbol" == typeof i ? i : i + "";
|
|
2406
|
-
}
|
|
2407
|
-
|
|
2408
2322
|
const variants$b = {
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2323
|
+
line: {
|
|
2324
|
+
tablist: {
|
|
2325
|
+
borderBottom: '2px solid',
|
|
2326
|
+
borderColor: 'inherit',
|
|
2327
|
+
},
|
|
2328
|
+
tab: {
|
|
2329
|
+
color: 'gray.600',
|
|
2330
|
+
borderBottom: '2px solid',
|
|
2331
|
+
borderColor: 'transparent',
|
|
2332
|
+
marginBottom: '-2px',
|
|
2333
|
+
_selected: {
|
|
2334
|
+
color: 'primary.default',
|
|
2335
|
+
borderColor: 'primary.default',
|
|
2336
|
+
fontWeight: 'semibold',
|
|
2337
|
+
},
|
|
2338
|
+
_active: {
|
|
2339
|
+
color: 'black',
|
|
2340
|
+
bg: 'transparent',
|
|
2341
|
+
},
|
|
2342
|
+
_disabled: {
|
|
2343
|
+
opacity: 0.4,
|
|
2344
|
+
cursor: 'not-allowed',
|
|
2345
|
+
},
|
|
2346
|
+
_hover: {
|
|
2347
|
+
color: 'black',
|
|
2348
|
+
},
|
|
2349
|
+
},
|
|
2350
|
+
},
|
|
2351
|
+
enclosed: {
|
|
2352
|
+
tablist: {
|
|
2353
|
+
backgroundColor: 'white',
|
|
2354
|
+
borderRadius: '8px',
|
|
2355
|
+
borderColor: 'gray.200',
|
|
2356
|
+
borderWidth: '1px',
|
|
2357
|
+
paddingY: 1,
|
|
2358
|
+
},
|
|
2359
|
+
tab: {
|
|
2360
|
+
borderRadius: '6px',
|
|
2361
|
+
marginX: 1,
|
|
2362
|
+
_selected: {
|
|
2363
|
+
fontWeight: 'semibold',
|
|
2364
|
+
color: 'white',
|
|
2365
|
+
backgroundColor: 'primary.default',
|
|
2366
|
+
_hover: {
|
|
2367
|
+
backgroundColor: 'primary.600',
|
|
2368
|
+
},
|
|
2369
|
+
},
|
|
2370
|
+
_active: {
|
|
2371
|
+
backgroundColor: 'gray.200',
|
|
2372
|
+
},
|
|
2373
|
+
_disabled: {
|
|
2374
|
+
opacity: 0.4,
|
|
2375
|
+
cursor: 'not-allowed',
|
|
2376
|
+
},
|
|
2377
|
+
},
|
|
2444
2378
|
},
|
|
2445
|
-
tab: {
|
|
2446
|
-
borderRadius: '6px',
|
|
2447
|
-
marginX: 1,
|
|
2448
|
-
_selected: {
|
|
2449
|
-
fontWeight: 'semibold',
|
|
2450
|
-
color: 'white',
|
|
2451
|
-
backgroundColor: 'primary.default',
|
|
2452
|
-
_hover: {
|
|
2453
|
-
backgroundColor: 'primary.600'
|
|
2454
|
-
}
|
|
2455
|
-
},
|
|
2456
|
-
_active: {
|
|
2457
|
-
backgroundColor: 'gray.200'
|
|
2458
|
-
},
|
|
2459
|
-
_disabled: {
|
|
2460
|
-
opacity: 0.4,
|
|
2461
|
-
cursor: 'not-allowed'
|
|
2462
|
-
}
|
|
2463
|
-
}
|
|
2464
|
-
}
|
|
2465
2379
|
};
|
|
2466
|
-
|
|
2467
|
-
|
|
2380
|
+
const tabsStyle = merge(theme$2.components.Tabs, {
|
|
2381
|
+
variants: variants$b,
|
|
2468
2382
|
});
|
|
2469
2383
|
|
|
2470
2384
|
const SIZE_SMALL = 'small';
|
|
2471
2385
|
const SIZE_BODY = 'body';
|
|
2472
2386
|
const SIZE_HEADING = 'heading';
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
let {
|
|
2488
|
-
size,
|
|
2489
|
-
variant = 'line'
|
|
2490
|
-
} = _ref;
|
|
2491
|
-
const fontSizeMapping = {
|
|
2492
|
-
[SIZE_SMALL]: fontSizes.xs,
|
|
2493
|
-
[SIZE_BODY]: fontSizes.base,
|
|
2494
|
-
[SIZE_HEADING]: fontSizes.lg
|
|
2495
|
-
};
|
|
2496
|
-
const styleProps = styles$2.variants["".concat(variant)];
|
|
2497
|
-
styleProps.tab.fontSize = fontSizeMapping[size];
|
|
2498
|
-
return styleProps;
|
|
2387
|
+
const combineSizeWithVariant = ({ size, variant = 'line', }) => {
|
|
2388
|
+
const fontSizeMapping = {
|
|
2389
|
+
[SIZE_SMALL]: fontSizes.xs,
|
|
2390
|
+
[SIZE_BODY]: fontSizes.base,
|
|
2391
|
+
[SIZE_HEADING]: fontSizes.lg,
|
|
2392
|
+
};
|
|
2393
|
+
const styleProps = variants$b[variant];
|
|
2394
|
+
return {
|
|
2395
|
+
...styleProps,
|
|
2396
|
+
tab: {
|
|
2397
|
+
...styleProps.tab,
|
|
2398
|
+
fontSize: fontSizeMapping[size],
|
|
2399
|
+
},
|
|
2400
|
+
};
|
|
2499
2401
|
};
|
|
2500
2402
|
|
|
2501
|
-
const _excluded$7 = ["size"];
|
|
2502
2403
|
const sizeMapping = {
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2404
|
+
[SIZE_SMALL]: 'sm',
|
|
2405
|
+
[SIZE_BODY]: 'md',
|
|
2406
|
+
[SIZE_HEADING]: 'lg',
|
|
2506
2407
|
};
|
|
2507
|
-
const Tabs = forwardRef
|
|
2508
|
-
|
|
2509
|
-
size
|
|
2510
|
-
} = _ref,
|
|
2511
|
-
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
2512
|
-
return /*#__PURE__*/React__default.createElement(Tabs$1, _extends$2({
|
|
2513
|
-
size: sizeMapping[size]
|
|
2514
|
-
}, props, combineSizeWithVariant({
|
|
2515
|
-
size
|
|
2516
|
-
}), {
|
|
2517
|
-
ref: ref
|
|
2518
|
-
}));
|
|
2408
|
+
const Tabs = React__default.forwardRef(({ size = SIZE_BODY, ...props }, ref) => {
|
|
2409
|
+
return (jsxRuntimeExports.jsx(Tabs$1, { size: sizeMapping[size], ...props, ...combineSizeWithVariant({ size }), ref: ref }));
|
|
2519
2410
|
});
|
|
2520
|
-
Tabs.defaultProps = {
|
|
2521
|
-
size: SIZE_BODY
|
|
2522
|
-
};
|
|
2523
|
-
Tabs.propTypes = {
|
|
2524
|
-
/** The React node that will render inside the element */
|
|
2525
|
-
children: PropTypes.node,
|
|
2526
|
-
/** Controls the size of Tabs */
|
|
2527
|
-
size: PropTypes.oneOf([SIZE_SMALL, SIZE_BODY, SIZE_HEADING])
|
|
2528
|
-
};
|
|
2529
2411
|
|
|
2530
2412
|
var _path$1;
|
|
2531
|
-
function _extends$
|
|
2532
|
-
return _extends$
|
|
2413
|
+
function _extends$2() {
|
|
2414
|
+
return _extends$2 = Object.assign ? Object.assign.bind() : function (n) {
|
|
2533
2415
|
for (var e = 1; e < arguments.length; e++) {
|
|
2534
2416
|
var t = arguments[e];
|
|
2535
2417
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
2536
2418
|
}
|
|
2537
2419
|
return n;
|
|
2538
|
-
}, _extends$
|
|
2420
|
+
}, _extends$2.apply(null, arguments);
|
|
2539
2421
|
}
|
|
2540
2422
|
var SvgChevronDown = function SvgChevronDown(props, ref) {
|
|
2541
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
2423
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2({}, props, {
|
|
2542
2424
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2543
2425
|
fill: "currentColor",
|
|
2544
2426
|
viewBox: "0 0 24 24",
|
|
@@ -2992,61 +2874,62 @@ var Heading_styles = {
|
|
|
2992
2874
|
|
|
2993
2875
|
const parts$2 = ['table', 'thead', 'tbody', 'tr', 'th', 'td', 'caption'];
|
|
2994
2876
|
const baseStyle$b = {
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
2877
|
+
table: {
|
|
2878
|
+
borderCollapse: 'collapse',
|
|
2879
|
+
color: 'text.primary.light',
|
|
2880
|
+
width: '100%',
|
|
2881
|
+
},
|
|
2882
|
+
thead: {
|
|
2883
|
+
borderBottom: '1px',
|
|
2884
|
+
borderColor: 'gray.medium',
|
|
2885
|
+
},
|
|
2886
|
+
th: {
|
|
2887
|
+
fontFamily: 'heading',
|
|
2888
|
+
fontSize: variants$9.h4.fontSize,
|
|
2889
|
+
fontWeight: 'semibold',
|
|
2890
|
+
letterSpacing: 'unset',
|
|
2891
|
+
padding: 4,
|
|
2892
|
+
textAlign: 'start',
|
|
2893
|
+
textTransform: 'none',
|
|
2894
|
+
},
|
|
2895
|
+
tr: {
|
|
2896
|
+
borderBottom: '1px',
|
|
2897
|
+
borderColor: 'gray.medium',
|
|
2898
|
+
_last: {
|
|
2899
|
+
border: 'none',
|
|
2900
|
+
},
|
|
2901
|
+
},
|
|
2902
|
+
td: {
|
|
2903
|
+
padding: 4,
|
|
2904
|
+
textAlign: 'start',
|
|
2905
|
+
},
|
|
3024
2906
|
};
|
|
3025
2907
|
const roundedWhiteVariant = {
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
2908
|
+
table: {
|
|
2909
|
+
backgroundColor: 'background.white',
|
|
2910
|
+
borderRadius: 6,
|
|
2911
|
+
boxShadow: 'md',
|
|
2912
|
+
marginBottom: 1,
|
|
2913
|
+
},
|
|
3032
2914
|
};
|
|
3033
2915
|
const roundedGrayVariant = {
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
2916
|
+
table: {
|
|
2917
|
+
...roundedWhiteVariant.table,
|
|
2918
|
+
backgroundColor: 'background.gray',
|
|
2919
|
+
},
|
|
3037
2920
|
};
|
|
3038
2921
|
const variants$8 = {
|
|
3039
|
-
|
|
3040
|
-
|
|
2922
|
+
rounded: roundedWhiteVariant,
|
|
2923
|
+
roundedGray: roundedGrayVariant,
|
|
3041
2924
|
};
|
|
3042
2925
|
const defaultProps$6 = {
|
|
3043
|
-
|
|
2926
|
+
variant: 'rounded',
|
|
3044
2927
|
};
|
|
3045
2928
|
var Table_styles = {
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
2929
|
+
parts: parts$2,
|
|
2930
|
+
variants: variants$8,
|
|
2931
|
+
baseStyle: baseStyle$b,
|
|
2932
|
+
defaultProps: defaultProps$6,
|
|
3050
2933
|
};
|
|
3051
2934
|
|
|
3052
2935
|
const chakraLinkStyle = theme$2.components.Link;
|
|
@@ -3513,6 +3396,79 @@ const inputStyle = merge(theme$2.components.Input, {
|
|
|
3513
3396
|
variants: variants$5,
|
|
3514
3397
|
});
|
|
3515
3398
|
|
|
3399
|
+
function _defineProperty(e, r, t) {
|
|
3400
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
3401
|
+
value: t,
|
|
3402
|
+
enumerable: !0,
|
|
3403
|
+
configurable: !0,
|
|
3404
|
+
writable: !0
|
|
3405
|
+
}) : e[r] = t, e;
|
|
3406
|
+
}
|
|
3407
|
+
function _extends$1() {
|
|
3408
|
+
return _extends$1 = Object.assign ? Object.assign.bind() : function (n) {
|
|
3409
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
3410
|
+
var t = arguments[e];
|
|
3411
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
3412
|
+
}
|
|
3413
|
+
return n;
|
|
3414
|
+
}, _extends$1.apply(null, arguments);
|
|
3415
|
+
}
|
|
3416
|
+
function ownKeys(e, r) {
|
|
3417
|
+
var t = Object.keys(e);
|
|
3418
|
+
if (Object.getOwnPropertySymbols) {
|
|
3419
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
3420
|
+
r && (o = o.filter(function (r) {
|
|
3421
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
3422
|
+
})), t.push.apply(t, o);
|
|
3423
|
+
}
|
|
3424
|
+
return t;
|
|
3425
|
+
}
|
|
3426
|
+
function _objectSpread2(e) {
|
|
3427
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
3428
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
3429
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
3430
|
+
_defineProperty(e, r, t[r]);
|
|
3431
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
3432
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
3433
|
+
});
|
|
3434
|
+
}
|
|
3435
|
+
return e;
|
|
3436
|
+
}
|
|
3437
|
+
function _objectWithoutProperties(e, t) {
|
|
3438
|
+
if (null == e) return {};
|
|
3439
|
+
var o,
|
|
3440
|
+
r,
|
|
3441
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
3442
|
+
if (Object.getOwnPropertySymbols) {
|
|
3443
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
3444
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
3445
|
+
}
|
|
3446
|
+
return i;
|
|
3447
|
+
}
|
|
3448
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
3449
|
+
if (null == r) return {};
|
|
3450
|
+
var t = {};
|
|
3451
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
3452
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
3453
|
+
t[n] = r[n];
|
|
3454
|
+
}
|
|
3455
|
+
return t;
|
|
3456
|
+
}
|
|
3457
|
+
function _toPrimitive(t, r) {
|
|
3458
|
+
if ("object" != typeof t || !t) return t;
|
|
3459
|
+
var e = t[Symbol.toPrimitive];
|
|
3460
|
+
if (void 0 !== e) {
|
|
3461
|
+
var i = e.call(t, r || "default");
|
|
3462
|
+
if ("object" != typeof i) return i;
|
|
3463
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3464
|
+
}
|
|
3465
|
+
return ("string" === r ? String : Number)(t);
|
|
3466
|
+
}
|
|
3467
|
+
function _toPropertyKey(t) {
|
|
3468
|
+
var i = _toPrimitive(t, "string");
|
|
3469
|
+
return "symbol" == typeof i ? i : i + "";
|
|
3470
|
+
}
|
|
3471
|
+
|
|
3516
3472
|
//Below isn't being used in build for some reason
|
|
3517
3473
|
const variants$4 = {
|
|
3518
3474
|
refreshed: {
|
|
@@ -3630,6 +3586,7 @@ const footer$1 = {
|
|
|
3630
3586
|
padding: 4,
|
|
3631
3587
|
gap: 4,
|
|
3632
3588
|
justifyContent: 'flex-start',
|
|
3589
|
+
alignItems: 'normal',
|
|
3633
3590
|
flexDirection: { base: 'column', desktop: 'row-reverse' },
|
|
3634
3591
|
};
|
|
3635
3592
|
|
|
@@ -4010,168 +3967,168 @@ const progressStyle = {
|
|
|
4010
3967
|
};
|
|
4011
3968
|
|
|
4012
3969
|
const baseStyle = {
|
|
4013
|
-
button: {
|
|
4014
|
-
px: 8,
|
|
4015
|
-
py: 3,
|
|
4016
|
-
fontSize: 'base',
|
|
4017
|
-
fontFamily: 'body',
|
|
4018
|
-
lineHeight: 0.875,
|
|
4019
|
-
fontWeight: 'semibold',
|
|
4020
|
-
borderWidth: '1px',
|
|
4021
|
-
borderStyle: 'solid',
|
|
4022
|
-
borderRadius: 'base',
|
|
4023
|
-
textTransform: 'capitalize',
|
|
4024
|
-
transition: 'all normal ease',
|
|
4025
|
-
_hover: {
|
|
4026
|
-
bg: 'gray.50',
|
|
4027
|
-
borderColor: 'gray.200'
|
|
4028
|
-
},
|
|
4029
|
-
_disabled: {
|
|
4030
|
-
cursor: 'not-allowed',
|
|
4031
|
-
opacity: 1,
|
|
4032
|
-
bg: 'gray.200',
|
|
4033
|
-
borderColor: 'gray.200',
|
|
4034
|
-
color: 'gray.600'
|
|
4035
|
-
},
|
|
4036
|
-
_focus: {
|
|
4037
|
-
zIndex: 1,
|
|
4038
|
-
boxShadow: 'outline'
|
|
4039
|
-
}
|
|
4040
|
-
},
|
|
4041
|
-
list: {
|
|
4042
|
-
bg: 'white',
|
|
4043
|
-
boxShadow: 'base',
|
|
4044
|
-
padding: 6,
|
|
4045
|
-
zIndex: 'layer1',
|
|
4046
|
-
width: 64
|
|
4047
|
-
},
|
|
4048
|
-
item: {
|
|
4049
|
-
paddingX: 2,
|
|
4050
|
-
paddingY: 1.5,
|
|
4051
|
-
_focus: {
|
|
4052
|
-
zIndex: 1,
|
|
4053
|
-
boxShadow: 'outline'
|
|
4054
|
-
}
|
|
4055
|
-
},
|
|
4056
|
-
groupTitle: {
|
|
4057
|
-
fontWeight: 'semibold',
|
|
4058
|
-
color: 'gray.600',
|
|
4059
|
-
padding: 2
|
|
4060
|
-
},
|
|
4061
|
-
command: {
|
|
4062
|
-
// this will style the text defined by the command
|
|
4063
|
-
// prop in the MenuItem and MenuItemOption components
|
|
4064
|
-
opacity: '0.8',
|
|
4065
|
-
fontFamily: 'mono',
|
|
4066
|
-
fontSize: 'sm',
|
|
4067
|
-
letterSpacing: 'tighter',
|
|
4068
|
-
paddingL: 4
|
|
4069
|
-
},
|
|
4070
|
-
divider: {
|
|
4071
|
-
marginY: 2,
|
|
4072
|
-
borderColor: 'gray.200'
|
|
4073
|
-
}
|
|
4074
|
-
};
|
|
4075
|
-
const variants = {
|
|
4076
|
-
basic: {
|
|
4077
3970
|
button: {
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
3971
|
+
px: 8,
|
|
3972
|
+
py: 3,
|
|
3973
|
+
fontSize: 'base',
|
|
3974
|
+
fontFamily: 'body',
|
|
3975
|
+
lineHeight: 0.875,
|
|
3976
|
+
fontWeight: 'semibold',
|
|
3977
|
+
borderWidth: '1px',
|
|
3978
|
+
borderStyle: 'solid',
|
|
3979
|
+
borderRadius: 'base',
|
|
3980
|
+
textTransform: 'capitalize',
|
|
3981
|
+
transition: 'all normal ease',
|
|
3982
|
+
_hover: {
|
|
3983
|
+
bg: 'gray.50',
|
|
3984
|
+
borderColor: 'gray.200',
|
|
3985
|
+
},
|
|
4085
3986
|
_disabled: {
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
3987
|
+
cursor: 'not-allowed',
|
|
3988
|
+
opacity: 1,
|
|
3989
|
+
bg: 'gray.200',
|
|
3990
|
+
borderColor: 'gray.200',
|
|
3991
|
+
color: 'gray.600',
|
|
3992
|
+
},
|
|
3993
|
+
_focus: {
|
|
3994
|
+
zIndex: 1,
|
|
3995
|
+
boxShadow: 'outline',
|
|
3996
|
+
},
|
|
4091
3997
|
},
|
|
4092
3998
|
list: {
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
3999
|
+
bg: 'white',
|
|
4000
|
+
boxShadow: 'base',
|
|
4001
|
+
padding: 6,
|
|
4002
|
+
zIndex: 'layer1',
|
|
4003
|
+
width: 64,
|
|
4004
|
+
},
|
|
4005
|
+
item: {
|
|
4006
|
+
paddingX: 2,
|
|
4007
|
+
paddingY: 1.5,
|
|
4008
|
+
_focus: {
|
|
4009
|
+
zIndex: 1,
|
|
4010
|
+
boxShadow: 'outline',
|
|
4011
|
+
},
|
|
4102
4012
|
},
|
|
4103
4013
|
groupTitle: {
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
padding: 2
|
|
4014
|
+
fontWeight: 'semibold',
|
|
4015
|
+
color: 'gray.600',
|
|
4016
|
+
padding: 2,
|
|
4108
4017
|
},
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
button: {
|
|
4118
|
-
height: 8,
|
|
4119
|
-
fontSize: 'sm',
|
|
4120
|
-
fontWeight: 'semibold',
|
|
4121
|
-
color: 'black',
|
|
4122
|
-
borderColor: 'white',
|
|
4123
|
-
backgroundColor: 'white',
|
|
4124
|
-
borderRadius: 'base',
|
|
4125
|
-
paddingX: 3,
|
|
4126
|
-
paddingY: 'auto',
|
|
4127
|
-
_hover: {
|
|
4128
|
-
color: 'black',
|
|
4129
|
-
backgroundColor: 'gray.50',
|
|
4130
|
-
borderColor: 'gray.50'
|
|
4131
|
-
},
|
|
4132
|
-
_active: {
|
|
4133
|
-
color: 'primary.default',
|
|
4134
|
-
backgroundColor: 'gray.50',
|
|
4135
|
-
borderColor: 'gray.50',
|
|
4136
|
-
_hover: {
|
|
4137
|
-
color: 'primary.600',
|
|
4138
|
-
backgroundColor: 'gray.50',
|
|
4139
|
-
borderColor: 'gray.50'
|
|
4140
|
-
}
|
|
4141
|
-
}
|
|
4018
|
+
command: {
|
|
4019
|
+
// this will style the text defined by the command
|
|
4020
|
+
// prop in the MenuItem and MenuItemOption components
|
|
4021
|
+
opacity: '0.8',
|
|
4022
|
+
fontFamily: 'mono',
|
|
4023
|
+
fontSize: 'sm',
|
|
4024
|
+
letterSpacing: 'tighter',
|
|
4025
|
+
paddingLeft: 4,
|
|
4142
4026
|
},
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
padding: 8,
|
|
4147
|
-
backgroundColor: 'white'
|
|
4027
|
+
divider: {
|
|
4028
|
+
marginY: 2,
|
|
4029
|
+
borderColor: 'gray.200',
|
|
4148
4030
|
},
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4031
|
+
};
|
|
4032
|
+
const variants = {
|
|
4033
|
+
basic: {
|
|
4034
|
+
button: {
|
|
4035
|
+
bg: 'primary.default',
|
|
4036
|
+
borderColor: 'primary.default',
|
|
4037
|
+
color: 'white',
|
|
4038
|
+
_hover: {
|
|
4039
|
+
bg: 'primary.600',
|
|
4040
|
+
borderColor: 'primary.600',
|
|
4041
|
+
color: 'white',
|
|
4042
|
+
_disabled: {
|
|
4043
|
+
bg: 'gray.200',
|
|
4044
|
+
borderColor: 'gray.200',
|
|
4045
|
+
color: 'gray.600',
|
|
4046
|
+
},
|
|
4047
|
+
},
|
|
4048
|
+
},
|
|
4049
|
+
list: {
|
|
4050
|
+
bg: 'white',
|
|
4051
|
+
boxShadow: 'base',
|
|
4052
|
+
zIndex: 'layer1',
|
|
4053
|
+
borderColor: 'gray.100',
|
|
4054
|
+
borderWidth: '1px',
|
|
4055
|
+
borderStyle: 'solid',
|
|
4056
|
+
borderRadius: 'base',
|
|
4057
|
+
padding: 4,
|
|
4058
|
+
width: 64,
|
|
4059
|
+
},
|
|
4060
|
+
groupTitle: {
|
|
4061
|
+
fontWeight: 'semibold',
|
|
4062
|
+
fontSize: 'md',
|
|
4063
|
+
color: 'gray.600',
|
|
4064
|
+
padding: 2,
|
|
4065
|
+
},
|
|
4066
|
+
item: {
|
|
4067
|
+
fontWeight: 'semibold',
|
|
4068
|
+
_hover: {
|
|
4069
|
+
color: 'gray.600',
|
|
4070
|
+
},
|
|
4071
|
+
},
|
|
4072
|
+
},
|
|
4073
|
+
full: {
|
|
4074
|
+
button: {
|
|
4075
|
+
height: 8,
|
|
4076
|
+
fontSize: 'sm',
|
|
4077
|
+
fontWeight: 'semibold',
|
|
4078
|
+
color: 'black',
|
|
4079
|
+
borderColor: 'white',
|
|
4080
|
+
backgroundColor: 'white',
|
|
4081
|
+
borderRadius: 'base',
|
|
4082
|
+
paddingX: 3,
|
|
4083
|
+
paddingY: 'auto',
|
|
4084
|
+
_hover: {
|
|
4085
|
+
color: 'black',
|
|
4086
|
+
backgroundColor: 'gray.50',
|
|
4087
|
+
borderColor: 'gray.50',
|
|
4088
|
+
},
|
|
4089
|
+
_active: {
|
|
4090
|
+
color: 'primary.default',
|
|
4091
|
+
backgroundColor: 'gray.50',
|
|
4092
|
+
borderColor: 'gray.50',
|
|
4093
|
+
_hover: {
|
|
4094
|
+
color: 'primary.600',
|
|
4095
|
+
backgroundColor: 'gray.50',
|
|
4096
|
+
borderColor: 'gray.50',
|
|
4097
|
+
},
|
|
4098
|
+
},
|
|
4099
|
+
},
|
|
4100
|
+
list: {
|
|
4101
|
+
height: '30rem',
|
|
4102
|
+
width: '100vw',
|
|
4103
|
+
padding: 8,
|
|
4104
|
+
backgroundColor: 'white',
|
|
4105
|
+
},
|
|
4106
|
+
groupTitle: {
|
|
4107
|
+
fontSize: 'sm',
|
|
4108
|
+
weight: 'normal',
|
|
4109
|
+
color: 'gray.600',
|
|
4110
|
+
},
|
|
4111
|
+
item: {
|
|
4112
|
+
display: 'block',
|
|
4113
|
+
paddingX: 3.5,
|
|
4114
|
+
paddingY: 2.5,
|
|
4115
|
+
marginBottom: 2,
|
|
4116
|
+
_last: {
|
|
4117
|
+
marginBottom: 0,
|
|
4118
|
+
},
|
|
4119
|
+
_hover: {
|
|
4120
|
+
backgroundColor: 'gray.50',
|
|
4121
|
+
},
|
|
4122
|
+
_focus: {
|
|
4123
|
+
boxShadow: 'none',
|
|
4124
|
+
backgroundColor: 'gray.50',
|
|
4125
|
+
},
|
|
4126
|
+
},
|
|
4153
4127
|
},
|
|
4154
|
-
item: {
|
|
4155
|
-
display: 'block',
|
|
4156
|
-
paddingX: 3.5,
|
|
4157
|
-
paddingY: 2.5,
|
|
4158
|
-
marginBottom: 2,
|
|
4159
|
-
_last: {
|
|
4160
|
-
marginBottom: 0
|
|
4161
|
-
},
|
|
4162
|
-
_hover: {
|
|
4163
|
-
backgroundColor: 'gray.50'
|
|
4164
|
-
},
|
|
4165
|
-
_focus: {
|
|
4166
|
-
boxShadow: 'none',
|
|
4167
|
-
backgroundColor: 'gray.50'
|
|
4168
|
-
}
|
|
4169
|
-
}
|
|
4170
|
-
}
|
|
4171
4128
|
};
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4129
|
+
const menuStyle = merge(theme$2.components.Menu, {
|
|
4130
|
+
baseStyle,
|
|
4131
|
+
variants,
|
|
4175
4132
|
});
|
|
4176
4133
|
|
|
4177
4134
|
var components = /*#__PURE__*/Object.freeze({
|
|
@@ -4189,7 +4146,7 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
4189
4146
|
InputRefreshed: index$1,
|
|
4190
4147
|
Link: linkStyle,
|
|
4191
4148
|
List: listStyle,
|
|
4192
|
-
Menu:
|
|
4149
|
+
Menu: menuStyle,
|
|
4193
4150
|
Modal: modalStyle,
|
|
4194
4151
|
Popover: popoverStyle,
|
|
4195
4152
|
Progress: progressStyle,
|
|
@@ -4200,7 +4157,7 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
4200
4157
|
Spinner: Spinner_styles,
|
|
4201
4158
|
Switch: switchStyle,
|
|
4202
4159
|
Table: Table_styles,
|
|
4203
|
-
Tabs:
|
|
4160
|
+
Tabs: tabsStyle,
|
|
4204
4161
|
Text: textStyle
|
|
4205
4162
|
});
|
|
4206
4163
|
|
|
@@ -4325,7 +4282,7 @@ const Input$1 = forwardRef(({ label, helperText, errorMessage, isInvalid, isDisa
|
|
|
4325
4282
|
});
|
|
4326
4283
|
Input$1.displayName = 'Input';
|
|
4327
4284
|
|
|
4328
|
-
const _excluded$
|
|
4285
|
+
const _excluded$5 = ["label", "helperText", "errorMessage", "id", "children", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles"];
|
|
4329
4286
|
|
|
4330
4287
|
// No clue how to move these into the style file so just co-located to keep from slowing down
|
|
4331
4288
|
// Chakra V2 will heavily impact this component
|
|
@@ -4448,10 +4405,10 @@ const FormControl = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
4448
4405
|
rightElementStyles,
|
|
4449
4406
|
leftElementStyles
|
|
4450
4407
|
} = _ref,
|
|
4451
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4452
|
-
return /*#__PURE__*/React__default.createElement(FormControl$2, _extends$
|
|
4408
|
+
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
4409
|
+
return /*#__PURE__*/React__default.createElement(FormControl$2, _extends$1({}, props, {
|
|
4453
4410
|
ref: ref
|
|
4454
|
-
}, controlStyles), /*#__PURE__*/React__default.createElement(InputGroup, null, leftElement && /*#__PURE__*/React__default.createElement(InputLeftElement, _extends$
|
|
4411
|
+
}, controlStyles), /*#__PURE__*/React__default.createElement(InputGroup, null, leftElement && /*#__PURE__*/React__default.createElement(InputLeftElement, _extends$1({
|
|
4455
4412
|
pointerEvents: "none",
|
|
4456
4413
|
top: "52%",
|
|
4457
4414
|
left: "1.3rem",
|
|
@@ -4462,7 +4419,7 @@ const FormControl = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
4462
4419
|
position: "relative"
|
|
4463
4420
|
}, children, label && /*#__PURE__*/React__default.createElement(FormLabel, {
|
|
4464
4421
|
htmlFor: id
|
|
4465
|
-
}, label)), rightElement && /*#__PURE__*/React__default.createElement(InputRightElement, _extends$
|
|
4422
|
+
}, label)), rightElement && /*#__PURE__*/React__default.createElement(InputRightElement, _extends$1({
|
|
4466
4423
|
top: "50%",
|
|
4467
4424
|
right: "-1rem",
|
|
4468
4425
|
transform: "translate(-50%,-50%)"
|
|
@@ -4490,7 +4447,7 @@ FormControl.propTypes = {
|
|
|
4490
4447
|
isInvalid: PropTypes.bool
|
|
4491
4448
|
};
|
|
4492
4449
|
|
|
4493
|
-
const _excluded$
|
|
4450
|
+
const _excluded$4 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles", "placeholder"];
|
|
4494
4451
|
|
|
4495
4452
|
/**
|
|
4496
4453
|
* A component used in the homepage/midfunnel refresh of 2024
|
|
@@ -4511,7 +4468,7 @@ const Input = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
4511
4468
|
leftElementStyles,
|
|
4512
4469
|
placeholder = ' '
|
|
4513
4470
|
} = _ref,
|
|
4514
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4471
|
+
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
4515
4472
|
const classes = cn({
|
|
4516
4473
|
'FormElement-contains-error': isInvalid
|
|
4517
4474
|
}); //Historic carry over
|
|
@@ -4529,7 +4486,7 @@ const Input = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
4529
4486
|
rightElementStyles: rightElementStyles,
|
|
4530
4487
|
leftElementStyles: leftElementStyles,
|
|
4531
4488
|
variant: "refreshed"
|
|
4532
|
-
}, /*#__PURE__*/React__default.createElement(Input$2, _extends$
|
|
4489
|
+
}, /*#__PURE__*/React__default.createElement(Input$2, _extends$1({
|
|
4533
4490
|
placeholder: placeholder,
|
|
4534
4491
|
ref: ref,
|
|
4535
4492
|
className: classes,
|
|
@@ -4554,7 +4511,7 @@ Input.propTypes = {
|
|
|
4554
4511
|
leftElementStyles: PropTypes.object
|
|
4555
4512
|
};
|
|
4556
4513
|
|
|
4557
|
-
const _excluded$
|
|
4514
|
+
const _excluded$3 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isOptional", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles", "formControlStyles"];
|
|
4558
4515
|
|
|
4559
4516
|
//For select left is static arrow,
|
|
4560
4517
|
/**
|
|
@@ -4578,7 +4535,7 @@ const Select = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
4578
4535
|
leftElementStyles,
|
|
4579
4536
|
formControlStyles
|
|
4580
4537
|
} = _ref,
|
|
4581
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4538
|
+
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
4582
4539
|
const classes = cn({
|
|
4583
4540
|
'FormElement-contains-error': isInvalid
|
|
4584
4541
|
});
|
|
@@ -4595,7 +4552,7 @@ const Select = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
4595
4552
|
rightElementStyles: rightElementStyles,
|
|
4596
4553
|
leftElementStyles: leftElementStyles,
|
|
4597
4554
|
sx: formControlStyles
|
|
4598
|
-
}, /*#__PURE__*/React__default.createElement(Select$2, _extends$
|
|
4555
|
+
}, /*#__PURE__*/React__default.createElement(Select$2, _extends$1({
|
|
4599
4556
|
icon: /*#__PURE__*/React__default.createElement(Icon, {
|
|
4600
4557
|
as: ForwardRef$1
|
|
4601
4558
|
}),
|
|
@@ -4619,7 +4576,7 @@ Select.propTypes = {
|
|
|
4619
4576
|
rightElementStyles: PropTypes.object
|
|
4620
4577
|
};
|
|
4621
4578
|
|
|
4622
|
-
const _excluded$
|
|
4579
|
+
const _excluded$2 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isHighlighted", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles", "buttonValue"];
|
|
4623
4580
|
|
|
4624
4581
|
/**
|
|
4625
4582
|
* A component used in the homepage/midfunnel refresh of 2024
|
|
@@ -4643,7 +4600,7 @@ const Button = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
4643
4600
|
leftElementStyles,
|
|
4644
4601
|
buttonValue
|
|
4645
4602
|
} = _ref,
|
|
4646
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4603
|
+
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
4647
4604
|
const classes = cn({
|
|
4648
4605
|
'FormElement-contains-error': isInvalid
|
|
4649
4606
|
}); //Historic carry over
|
|
@@ -4661,7 +4618,7 @@ const Button = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
4661
4618
|
rightElementStyles: rightElementStyles,
|
|
4662
4619
|
leftElementStyles: leftElementStyles,
|
|
4663
4620
|
variant: "refreshed"
|
|
4664
|
-
}, /*#__PURE__*/React__default.createElement(Button$2, _extends$
|
|
4621
|
+
}, /*#__PURE__*/React__default.createElement(Button$2, _extends$1({
|
|
4665
4622
|
ref: ref,
|
|
4666
4623
|
className: classes,
|
|
4667
4624
|
variant: "refreshed",
|
|
@@ -4814,7 +4771,7 @@ const AutoSuggestSelect$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
4814
4771
|
innerRef,
|
|
4815
4772
|
innerProps
|
|
4816
4773
|
} = _ref2;
|
|
4817
|
-
return /*#__PURE__*/React__default.createElement("div", _extends$
|
|
4774
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
4818
4775
|
style: clearIndicatorStyles,
|
|
4819
4776
|
ref: innerRef
|
|
4820
4777
|
}, innerProps), /*#__PURE__*/React__default.createElement(ForwardRef, null));
|
|
@@ -4898,104 +4855,31 @@ const RadioGroup = forwardRef(({ label, errorMessage, defaultValue, isDisabled,
|
|
|
4898
4855
|
});
|
|
4899
4856
|
RadioGroup.displayName = 'RadioGroup';
|
|
4900
4857
|
|
|
4901
|
-
const
|
|
4902
|
-
const SelectionCard =
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
}
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
// Create a unique key based on the content to force re-animation
|
|
4925
|
-
const contentKey = React__default.useMemo(() => {
|
|
4926
|
-
if (typeof expandableChildren === 'string') {
|
|
4927
|
-
return expandableChildren;
|
|
4928
|
-
}
|
|
4929
|
-
return expandableContentKey || JSON.stringify(expandableChildren === null || expandableChildren === void 0 ? void 0 : expandableChildren.props) || Math.random();
|
|
4930
|
-
}, [expandableChildren, expandableContentKey]);
|
|
4931
|
-
return /*#__PURE__*/React__default.createElement(Box, {
|
|
4932
|
-
borderRadius: "lg",
|
|
4933
|
-
borderColor: isChecked ? 'primary.default' : 'gray.medium',
|
|
4934
|
-
borderWidth: "1px",
|
|
4935
|
-
_hover: {
|
|
4936
|
-
borderColor: isDisabled ? 'gray.medium' : 'primary.default'
|
|
4937
|
-
},
|
|
4938
|
-
overflow: topChild ? 'hidden' : 'auto'
|
|
4939
|
-
}, topChild, /*#__PURE__*/React__default.createElement(Box, {
|
|
4940
|
-
borderColor: "gray.medium",
|
|
4941
|
-
borderBottomWidth: hasExpandableContent ? '1px' : 0
|
|
4942
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends$2({
|
|
4943
|
-
ref: ref,
|
|
4944
|
-
isChecked: isChecked,
|
|
4945
|
-
isDisabled: isDisabled,
|
|
4946
|
-
isFocusable: !isDisabled,
|
|
4947
|
-
value: value,
|
|
4948
|
-
defaultChecked: defaultChecked,
|
|
4949
|
-
helperText: helperText,
|
|
4950
|
-
size: size,
|
|
4951
|
-
width: "100%",
|
|
4952
|
-
paddingX: 4,
|
|
4953
|
-
paddingY: 3
|
|
4954
|
-
}, props), label)), /*#__PURE__*/React__default.createElement(AnimatePresence, {
|
|
4955
|
-
mode: "wait"
|
|
4956
|
-
}, hasExpandableContent && /*#__PURE__*/React__default.createElement(Box, {
|
|
4957
|
-
as: motion.div,
|
|
4958
|
-
key: contentKey,
|
|
4959
|
-
initial: {
|
|
4960
|
-
height: 0,
|
|
4961
|
-
opacity: 0
|
|
4962
|
-
},
|
|
4963
|
-
animate: {
|
|
4964
|
-
height: 'auto',
|
|
4965
|
-
opacity: 1
|
|
4966
|
-
},
|
|
4967
|
-
exit: {
|
|
4968
|
-
height: 0,
|
|
4969
|
-
opacity: 0
|
|
4970
|
-
},
|
|
4971
|
-
transition: {
|
|
4972
|
-
duration: prefersReducedMotion ? 0 : 0.15,
|
|
4973
|
-
ease: 'easeOut'
|
|
4974
|
-
},
|
|
4975
|
-
overflow: "hidden"
|
|
4976
|
-
}, /*#__PURE__*/React__default.createElement(Box, _extends$2({
|
|
4977
|
-
color: "gray.600",
|
|
4978
|
-
fontSize: expandableTextSize,
|
|
4979
|
-
paddingTop: 3,
|
|
4980
|
-
paddingX: 4,
|
|
4981
|
-
paddingBottom: 3
|
|
4982
|
-
}, expandableChildrenStyles), expandableChildren))));
|
|
4858
|
+
const MotionBox = motion(Box);
|
|
4859
|
+
const SelectionCard = forwardRef(({ isChecked, isDisabled, value, helperText, expandableChildren, defaultChecked, isRadio, label, isExpandable, size = 'md', expandableChildrenStyles = {}, topChild, expandableContentKey = 'selection-card-content', ...props }, ref) => {
|
|
4860
|
+
const Component = isRadio ? Radio : Checkbox;
|
|
4861
|
+
const expandableTextSize = size === 'sm' || size === 'md' ? 'xs' : 'sm';
|
|
4862
|
+
const hasExpandableContent = isExpandable && isChecked && expandableChildren;
|
|
4863
|
+
const prefersReducedMotion = usePrefersReducedMotion();
|
|
4864
|
+
// Create a unique key based on the content to force re-animation
|
|
4865
|
+
const contentKey = React__default.useMemo(() => {
|
|
4866
|
+
if (typeof expandableChildren === 'string') {
|
|
4867
|
+
return expandableChildren;
|
|
4868
|
+
}
|
|
4869
|
+
return (expandableContentKey ||
|
|
4870
|
+
(React__default.isValidElement(expandableChildren)
|
|
4871
|
+
? JSON.stringify(expandableChildren.props)
|
|
4872
|
+
: undefined) ||
|
|
4873
|
+
Math.random());
|
|
4874
|
+
}, [expandableChildren, expandableContentKey]);
|
|
4875
|
+
return (jsxRuntimeExports.jsxs(Box, { borderRadius: "lg", borderColor: isChecked ? 'primary.default' : 'gray.medium', borderWidth: "1px", _hover: {
|
|
4876
|
+
borderColor: isDisabled ? 'gray.medium' : 'primary.default',
|
|
4877
|
+
}, overflow: topChild ? 'hidden' : 'auto', children: [topChild, jsxRuntimeExports.jsx(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(AnimatePresence, { mode: "wait", children: hasExpandableContent && (jsxRuntimeExports.jsx(MotionBox, { initial: { height: 0, opacity: 0 }, animate: { height: 'auto', opacity: 1 }, exit: { height: 0, opacity: 0 }, transition: {
|
|
4878
|
+
duration: prefersReducedMotion ? 0 : 0.15,
|
|
4879
|
+
ease: 'easeOut',
|
|
4880
|
+
}, overflow: "hidden", children: jsxRuntimeExports.jsx(Box, { color: "gray.600", fontSize: expandableTextSize, paddingTop: 3, paddingX: 4, paddingBottom: 3, ...expandableChildrenStyles, children: expandableChildren }) }, contentKey)) })] }));
|
|
4983
4881
|
});
|
|
4984
|
-
SelectionCard.
|
|
4985
|
-
label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired,
|
|
4986
|
-
expandableChildren: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
4987
|
-
defaultChecked: PropTypes.bool,
|
|
4988
|
-
isChecked: PropTypes.bool,
|
|
4989
|
-
isDisabled: PropTypes.bool,
|
|
4990
|
-
value: PropTypes.string.isRequired,
|
|
4991
|
-
helperText: PropTypes.string,
|
|
4992
|
-
isRadio: PropTypes.bool,
|
|
4993
|
-
isExpandable: PropTypes.bool,
|
|
4994
|
-
expandableChildrenStyles: PropTypes.object,
|
|
4995
|
-
size: PropTypes.oneOf(['sm', 'md', 'lg']),
|
|
4996
|
-
topChild: PropTypes.element,
|
|
4997
|
-
expandableContentKey: PropTypes.string
|
|
4998
|
-
};
|
|
4882
|
+
SelectionCard.displayName = 'SelectionCard';
|
|
4999
4883
|
|
|
5000
4884
|
const Divider = forwardRef(({ variant = 'solid', colorScheme: borderColor = 'medium', ...props }, ref) => {
|
|
5001
4885
|
return (jsxRuntimeExports.jsx(Divider$1, { ...colorScheme[borderColor], variant: variant, ...props, ref: ref }));
|
|
@@ -5155,7 +5039,7 @@ const AutoSuggestSelect = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5155
5039
|
innerRef,
|
|
5156
5040
|
innerProps
|
|
5157
5041
|
} = _ref2;
|
|
5158
|
-
return /*#__PURE__*/React__default.createElement("div", _extends$
|
|
5042
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
5159
5043
|
style: clearIndicatorStyles,
|
|
5160
5044
|
ref: innerRef
|
|
5161
5045
|
}, innerProps), /*#__PURE__*/React__default.createElement(ForwardRef, null));
|
|
@@ -5324,7 +5208,7 @@ const FilterSelectNode = _ref => {
|
|
|
5324
5208
|
label: label,
|
|
5325
5209
|
inputId: id,
|
|
5326
5210
|
isInvalid: isInvalid
|
|
5327
|
-
}, /*#__PURE__*/React__default.createElement(Select$3, _extends$
|
|
5211
|
+
}, /*#__PURE__*/React__default.createElement(Select$3, _extends$1({
|
|
5328
5212
|
ref: innerRef,
|
|
5329
5213
|
classNamePrefix: "fe-ui-filter-select",
|
|
5330
5214
|
closeMenuOnSelect: true,
|
|
@@ -5343,7 +5227,7 @@ const FilterSelectNode = _ref => {
|
|
|
5343
5227
|
noOptionsMessage: () => noOptionsMessage
|
|
5344
5228
|
}, props)));
|
|
5345
5229
|
};
|
|
5346
|
-
const FilterSelect = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/React__default.createElement(FilterSelectNode, _extends$
|
|
5230
|
+
const FilterSelect = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/React__default.createElement(FilterSelectNode, _extends$1({
|
|
5347
5231
|
innerRef: ref
|
|
5348
5232
|
}, props)));
|
|
5349
5233
|
FilterSelect.propTypes = {
|
|
@@ -5404,45 +5288,33 @@ FilterSelectNode.propTypes = {
|
|
|
5404
5288
|
};
|
|
5405
5289
|
|
|
5406
5290
|
const defaultStyles = {
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
boxShadow: '0 0 0 2px rgba(158, 202, 237, 1)'
|
|
5414
|
-
},
|
|
5415
|
-
_focus: {
|
|
5416
|
-
boxShadow: '0 0 0 2px rgba(158, 202, 237, 1)'
|
|
5417
|
-
}
|
|
5291
|
+
border: 0,
|
|
5292
|
+
borderRadius: '4px',
|
|
5293
|
+
fontWeight: 'normal',
|
|
5294
|
+
paddingX: 4,
|
|
5295
|
+
paddingY: 1,
|
|
5296
|
+
_hover: { boxShadow: '0 0 0 2px rgba(158, 202, 237, 1)' },
|
|
5297
|
+
_focus: { boxShadow: '0 0 0 2px rgba(158, 202, 237, 1)' },
|
|
5418
5298
|
};
|
|
5419
5299
|
const inactiveStyles = {
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
bg: 'gray.100'
|
|
5425
|
-
},
|
|
5426
|
-
_active: {
|
|
5427
|
-
bg: 'gray.100'
|
|
5428
|
-
}
|
|
5300
|
+
color: 'black',
|
|
5301
|
+
borderColor: 'gray.100',
|
|
5302
|
+
bg: 'gray.100',
|
|
5303
|
+
_hover: { bg: 'gray.100' },
|
|
5304
|
+
_active: { bg: 'gray.100' },
|
|
5429
5305
|
};
|
|
5430
5306
|
const activeStyles = {
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
bg: 'white'
|
|
5437
|
-
},
|
|
5438
|
-
_active: {
|
|
5439
|
-
bg: 'white'
|
|
5440
|
-
}
|
|
5307
|
+
color: 'black',
|
|
5308
|
+
fontWeight: 'semibold',
|
|
5309
|
+
boxShadow: 'sm',
|
|
5310
|
+
bg: 'white',
|
|
5311
|
+
_hover: { bg: 'white' },
|
|
5312
|
+
_active: { bg: 'white' },
|
|
5441
5313
|
};
|
|
5442
5314
|
const buttonGroupStyles = {
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5315
|
+
borderRadius: '4px',
|
|
5316
|
+
backgroundColor: 'gray.100',
|
|
5317
|
+
padding: 1,
|
|
5446
5318
|
};
|
|
5447
5319
|
|
|
5448
5320
|
/**
|
|
@@ -5455,40 +5327,32 @@ const buttonGroupStyles = {
|
|
|
5455
5327
|
* @note
|
|
5456
5328
|
* must have multiple child elements
|
|
5457
5329
|
*/
|
|
5458
|
-
const ToggleButtonGroup =
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
groupProps,
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
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)
|
|
5483
|
-
}));
|
|
5484
|
-
}));
|
|
5330
|
+
const ToggleButtonGroup = forwardRef((props, ref) => {
|
|
5331
|
+
const { onChange, value, children, groupProps, buttonGroupStyles: _buttonGroupStyles = {}, childrenStyles = {}, } = props;
|
|
5332
|
+
if (!children)
|
|
5333
|
+
throw new Error('Children required');
|
|
5334
|
+
// iterate over array of child nodes to apply extended props
|
|
5335
|
+
return (jsxRuntimeExports.jsx(ButtonGroup, { ref: ref, sx: { ...buttonGroupStyles, ..._buttonGroupStyles }, ...groupProps, children: React__default.Children.map(children, child => {
|
|
5336
|
+
const CHILD = child;
|
|
5337
|
+
return React__default.cloneElement(CHILD, {
|
|
5338
|
+
onClick: () => {
|
|
5339
|
+
if (value === CHILD?.props?.value)
|
|
5340
|
+
return;
|
|
5341
|
+
onChange(CHILD?.props?.value);
|
|
5342
|
+
},
|
|
5343
|
+
...{
|
|
5344
|
+
sx: {
|
|
5345
|
+
...defaultStyles,
|
|
5346
|
+
...(value !== CHILD?.props?.value
|
|
5347
|
+
? inactiveStyles
|
|
5348
|
+
: activeStyles),
|
|
5349
|
+
...childrenStyles,
|
|
5350
|
+
},
|
|
5351
|
+
},
|
|
5352
|
+
});
|
|
5353
|
+
}) }));
|
|
5485
5354
|
});
|
|
5486
|
-
ToggleButtonGroup.
|
|
5487
|
-
onChange: PropTypes.func.isRequired,
|
|
5488
|
-
value: PropTypes.string.isRequired,
|
|
5489
|
-
children: PropTypes.node.isRequired,
|
|
5490
|
-
groupProps: PropTypes.object
|
|
5491
|
-
};
|
|
5355
|
+
ToggleButtonGroup.displayName = 'ToggleButtonGroup';
|
|
5492
5356
|
|
|
5493
5357
|
const _excluded = ["id", "label", "isInvalid", "isLoading", "isRequired", "options", "placeholder", "errorMessage", "helperText", "innerRef"],
|
|
5494
5358
|
_excluded2 = ["id", "label", "isInvalid", "isLoading", "isRequired", "options", "placeholder", "errorMessage", "helperText"];
|
|
@@ -5555,7 +5419,7 @@ const CreatableSelectNode = _ref => {
|
|
|
5555
5419
|
helperText: helperText,
|
|
5556
5420
|
label: label,
|
|
5557
5421
|
inputId: id
|
|
5558
|
-
}, /*#__PURE__*/React__default.createElement(Creatable, _extends$
|
|
5422
|
+
}, /*#__PURE__*/React__default.createElement(Creatable, _extends$1({
|
|
5559
5423
|
id: id,
|
|
5560
5424
|
components: {
|
|
5561
5425
|
DropdownIndicator
|
|
@@ -5579,7 +5443,7 @@ const CreatableSelect = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5579
5443
|
helperText
|
|
5580
5444
|
} = props,
|
|
5581
5445
|
additionalProps = _objectWithoutProperties(props, _excluded2);
|
|
5582
|
-
return /*#__PURE__*/React__default.createElement(CreatableSelectNode, _extends$
|
|
5446
|
+
return /*#__PURE__*/React__default.createElement(CreatableSelectNode, _extends$1({
|
|
5583
5447
|
id: id,
|
|
5584
5448
|
innerRef: ref,
|
|
5585
5449
|
label: label,
|
|
@@ -5617,19 +5481,14 @@ CreatableSelectNode.propTypes = {
|
|
|
5617
5481
|
current: PropTypes.instanceOf(Creatable)
|
|
5618
5482
|
})
|
|
5619
5483
|
};
|
|
5620
|
-
var CreatableSelect$1 = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/React__default.createElement(CreatableSelectNode, _extends$
|
|
5484
|
+
var CreatableSelect$1 = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/React__default.createElement(CreatableSelectNode, _extends$1({
|
|
5621
5485
|
ref: ref
|
|
5622
5486
|
}, props)));
|
|
5623
5487
|
|
|
5624
|
-
const
|
|
5625
|
-
|
|
5626
|
-
ref: ref
|
|
5627
|
-
}));
|
|
5488
|
+
const ChakraMenuWithRef = Menu$1;
|
|
5489
|
+
const Menu = React__default.forwardRef((props, ref) => {
|
|
5490
|
+
return jsxRuntimeExports.jsx(ChakraMenuWithRef, { ...props, ref: ref });
|
|
5628
5491
|
});
|
|
5629
|
-
Menu.propTypes = {
|
|
5630
|
-
/** The React node that will render inside the element */
|
|
5631
|
-
children: PropTypes.node
|
|
5632
|
-
};
|
|
5633
5492
|
|
|
5634
5493
|
export { ANIMATION_TOKENS, AccordionActionButton, Alert, AlwaysMountedModal, AutoSuggestSelect, Button$1 as Button, Card, Checkbox, Container, CreatableSelect$1 as CreatableSelect, Divider, Drawer, FilterSelect, Grid, GridItem, Heading, Image, Input$1 as Input, List, Loader, Menu, Modal, Popover, PopoverArrow, PopoverContent, Progress, Radio, RadioGroup, AutoSuggestSelect$1 as RefreshedAutoSuggestSelect, Button as RefreshedButtonInput, FormControl as RefreshedFormControl, Input as RefreshedInput, Select as RefreshedSelectInput, Select$1 as Select, SelectionCard, Spinner, Switch, Tabs, Text, Textarea, ThemeProvider, ToggleButtonGroup };
|
|
5635
5494
|
//# sourceMappingURL=index.esm.js.map
|