@ctlyst.id/internal-ui 2.1.1 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,9 +4,9 @@ import React__default, { createElement, forwardRef as forwardRef$2, useMemo, use
4
4
  import { createContext } from '@chakra-ui/react-context';
5
5
  import { CheckCircle, Info, AlertTriangle, Close, EyeOff, Eye, Rating as Rating$1, Check } from '@ctlyst.id/internal-icon';
6
6
  import { cx as cx$1 } from '@chakra-ui/utils';
7
- import { forwardRef as forwardRef$1, useStyleConfig, Box, Button as Button$2, Badge as Badge$2, useToken, Text, useColorModeValue, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Card, Checkbox as Checkbox$1, FormControl, FormLabel as FormLabel$1, FormHelperText, FormErrorMessage, CheckboxGroup, Stack, Flex, Spinner, Table, Thead, Tr, Th, Tbody, Td, defineStyle, InputGroup, Input as Input$1, InputRightAddon, InputRightElement, InputLeftAddon, Textarea as Textarea$1, Image, useDisclosure, Popover as Popover$1, HStack, VStack, PopoverTrigger, Avatar, PopoverContent, PopoverArrow, PopoverBody, useColorMode as useColorMode$1, ModalBody as ModalBody$1, ModalCloseButton as ModalCloseButton$1, ModalFooter as ModalFooter$1, ModalHeader as ModalHeader$1, createIcon, Icon, Portal, Link, VisuallyHidden, Select as Select$1, Radio as Radio$1, RadioGroup, Grid, useMultiStyleConfig as useMultiStyleConfig$1, omitThemingProps as omitThemingProps$1, useCheckbox, chakra as chakra$1, useTab, TabList as TabList$1, TabPanel as TabPanel$1, Heading, createMultiStyleConfigHelpers as createMultiStyleConfigHelpers$1, defineStyleConfig as defineStyleConfig$1, extendTheme } from '@chakra-ui/react';
7
+ import { forwardRef as forwardRef$1, useStyleConfig, Box, Button as Button$2, Badge as Badge$2, useToken, theme as theme$1, Text, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Card, Checkbox as Checkbox$1, FormControl, FormLabel as FormLabel$1, FormHelperText, FormErrorMessage, CheckboxGroup, Stack, Flex, Spinner, Table, Thead, Tr, useColorModeValue, Th, Tbody, Td, defineStyle, InputGroup, Input as Input$1, InputRightAddon, InputRightElement, InputLeftAddon, Textarea as Textarea$1, Image, useDisclosure, Popover as Popover$1, HStack, VStack, PopoverTrigger, Avatar, PopoverContent, PopoverArrow, PopoverBody, useColorMode as useColorMode$1, ModalBody as ModalBody$1, ModalCloseButton as ModalCloseButton$1, ModalFooter as ModalFooter$1, ModalHeader as ModalHeader$1, createIcon, Icon, Portal, Link, VisuallyHidden, Select as Select$1, Radio as Radio$1, RadioGroup, Grid, useMultiStyleConfig as useMultiStyleConfig$1, omitThemingProps as omitThemingProps$1, useCheckbox, chakra as chakra$1, useTab, TabList as TabList$1, TabPanel as TabPanel$1, Heading, createMultiStyleConfigHelpers as createMultiStyleConfigHelpers$1, defineStyleConfig as defineStyleConfig$1, extendTheme } from '@chakra-ui/react';
8
8
  export { AlertDialog, ModalBody as AlertDialogBody, ModalCloseButton as AlertDialogCloseButton, AlertDialogContent, ModalFooter as AlertDialogFooter, ModalHeader as AlertDialogHeader, ModalOverlay as AlertDialogOverlay, Box, ButtonGroup, Center, ChakraProvider, Table as ChakraTable, CloseButton, Code, Collapse, ColorModeScript, Container, Divider, Drawer, ModalBody as DrawerBody, ModalCloseButton as DrawerCloseButton, DrawerContent, ModalFooter as DrawerFooter, ModalHeader as DrawerHeader, ModalOverlay as DrawerOverlay, Flex, FormControl, FormErrorMessage, FormHelperText, FormLabel, Grid, GridItem, HStack, Heading, Icon, IconButton, Image, InputLeftElement as InputElementLeft, InputRightElement as InputElementRight, InputGroup, InputLeftAddon, InputLeftElement, InputRightAddon, InputRightElement, Link, List, ListIcon, ListItem, Modal, ModalContent, ModalContextProvider, ModalFocusScope, ModalOverlay, OrderedList, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, Portal, RequiredIndicator, ScaleFade, SimpleGrid, Skeleton, Spacer, Stack, TabIndicator, TabPanels, Tabs, TabsDescendantsProvider, TabsProvider, Tbody, Td, Text, Th, Thead, Tooltip, Tr, UnorderedList, VStack, Wrap, WrapItem, extendTheme, forwardRef, useBoolean, useColorMode, useColorModeValue, useDisclosure, useDrawerContext, useModal, useModalContext, useModalStyles, useTab, useTabIndicator, useTabList, useTabPanel, useTabPanels, useTabs, useTabsContext, useTabsDescendant, useTabsDescendants, useTabsDescendantsContext, useTabsStyles, useToken } from '@chakra-ui/react';
9
- import { FiChevronsRight, FiHome, FiCalendar, FiX, FiPower, FiMoon, FiSun, FiShoppingBag, FiShoppingCart, FiRepeat, FiBox, FiLayers, FiDollarSign, FiUsers, FiRotateCcw, FiSettings, FiLayout, FiGift, FiChevronDown } from 'react-icons/fi';
9
+ import { FiChevronLeft, FiChevronsRight, FiHome, FiCalendar, FiX, FiPower, FiMoon, FiSun, FiShoppingBag, FiShoppingCart, FiRepeat, FiBox, FiLayers, FiDollarSign, FiUsers, FiRotateCcw, FiSettings, FiLayout, FiGift, FiChevronDown } from 'react-icons/fi';
10
10
  import { ChevronUpIcon, ChevronDownIcon, UpDownIcon, ArrowLeftIcon, ChevronLeftIcon, ChevronRightIcon, ArrowRightIcon } from '@chakra-ui/icons';
11
11
  import { css, Global, keyframes } from '@emotion/react';
12
12
  import { useReactTable, getCoreRowModel, getSortedRowModel, flexRender } from '@tanstack/react-table';
@@ -20,7 +20,7 @@ import ReactSelectCreatable from 'react-select/creatable';
20
20
  import { useDropzone } from 'react-dropzone';
21
21
  import { alertAnatomy, checkboxAnatomy, inputAnatomy, popoverAnatomy, radioAnatomy, switchAnatomy, tableAnatomy } from '@chakra-ui/anatomy';
22
22
  import { createMultiStyleConfigHelpers, cssVar, defineStyleConfig, defineStyle as defineStyle$1 } from '@chakra-ui/styled-system';
23
- import { transparentize, mode, calc, cssVar as cssVar$1 } from '@chakra-ui/theme-tools';
23
+ import { mode, calc, cssVar as cssVar$1 } from '@chakra-ui/theme-tools';
24
24
  import axios from 'axios';
25
25
 
26
26
  /* eslint-disable react/require-default-props */
@@ -69,6 +69,10 @@ const STATUSES = {
69
69
  error: {
70
70
  icon: WarningIcon,
71
71
  colorScheme: 'danger'
72
+ },
73
+ neutral: {
74
+ icon: InfoIcon,
75
+ colorScheme: 'neutral'
72
76
  }
73
77
  };
74
78
  function getStatusColorScheme(status) {
@@ -168,10 +172,9 @@ function AlertAction({
168
172
  const css = styles.action;
169
173
  return /*#__PURE__*/React__default.createElement(Button, {
170
174
  "data-test-id": "alert-action",
171
- className: cx$1('chakra-alert__close', className),
175
+ className: cx$1('chakra-alert__action', className),
172
176
  variant: "link",
173
- color: "inherit",
174
- fontWeight: "700",
177
+ fontWeight: "semibold",
175
178
  __css: css
176
179
  }, children);
177
180
  }
@@ -259,10 +262,10 @@ const Badge = props => {
259
262
  ...rest
260
263
  } = props;
261
264
  return /*#__PURE__*/React__default.createElement(Badge$2, Object.assign({
262
- borderRadius: pill ? 10 : 4,
265
+ borderRadius: pill ? 'xl' : 'sm',
263
266
  variant: "primary-solid",
264
- padding: "0 8px",
265
- height: "18px",
267
+ px: "2",
268
+ h: "4.5",
266
269
  display: "inline-flex",
267
270
  alignItems: "center",
268
271
  justifyContent: "space-between",
@@ -281,9 +284,10 @@ const BreadCrumb = props => {
281
284
  parents,
282
285
  className,
283
286
  disableHome,
284
- spacing = 2
287
+ spacing = 2,
288
+ backButton
285
289
  } = props;
286
- const [neutral6, dark5] = useToken('colors', ['neutral.600', 'dark.500']);
290
+ const [neutral600, primary500] = useToken('colors', ['neutral.600', 'primary.500']);
287
291
  return /*#__PURE__*/createElement(Box, {
288
292
  "data-test-id": "CT_component_breadcrumb_breadcrumb",
289
293
  className: className,
@@ -294,22 +298,29 @@ const BreadCrumb = props => {
294
298
  }, /*#__PURE__*/createElement(Box, {
295
299
  display: "flex",
296
300
  alignItems: "center"
297
- }, /*#__PURE__*/createElement(Text, {
298
- pr: 2,
299
- fontWeight: 600,
300
- textStyle: "heading.4",
301
- color: useColorModeValue('neutral.700', 'white')
301
+ }, backButton && /*#__PURE__*/createElement(Button, {
302
+ variant: "icon",
303
+ "data-test-id": "button",
304
+ size: "md",
305
+ mr: "2",
306
+ onClick: backButton
307
+ }, /*#__PURE__*/createElement(FiChevronLeft, {
308
+ size: theme$1.sizes[5]
309
+ })), /*#__PURE__*/createElement(Text, {
310
+ pr: "2",
311
+ textStyle: "heading.6",
312
+ color: "neutral.700"
302
313
  }, title), /*#__PURE__*/createElement(Box, {
303
- h: "22px",
314
+ h: "5.5",
304
315
  borderLeft: "1px solid",
305
- borderColor: useColorModeValue(neutral6, 'white')
316
+ borderColor: neutral600
306
317
  }), /*#__PURE__*/createElement(Breadcrumb, {
307
318
  separator: /*#__PURE__*/createElement(FiChevronsRight, {
308
- color: useColorModeValue(neutral6, dark5),
309
- size: 14
319
+ color: neutral600,
320
+ size: theme$1.sizes['3.5']
310
321
  }),
311
- pl: 2.5,
312
- pr: 4,
322
+ pl: "2",
323
+ pr: "4",
313
324
  spacing: spacing,
314
325
  sx: {
315
326
  ol: {
@@ -329,8 +340,8 @@ const BreadCrumb = props => {
329
340
  }
330
341
  }, /*#__PURE__*/createElement(FiHome, {
331
342
  className: "align-top",
332
- size: 16,
333
- color: useColorModeValue('#12784A', '#ffffff')
343
+ size: theme$1.sizes['3.5'],
344
+ color: primary500
334
345
  }))), parents === null || parents === void 0 ? void 0 : parents.map(val => /*#__PURE__*/createElement(BreadcrumbItem, {
335
346
  key: val.name
336
347
  }, /*#__PURE__*/createElement(BreadcrumbLink, {
@@ -346,18 +357,16 @@ const BreadCrumb = props => {
346
357
  textDecoration: 'none'
347
358
  }
348
359
  }, /*#__PURE__*/createElement(Text, {
349
- color: val.disable ? 'dark.600' : useColorModeValue('primary.500', 'white'),
350
- fontSize: "text.sm",
351
- fontWeight: 400
360
+ color: val.disable ? neutral600 : primary500,
361
+ textStyle: "text.sm"
352
362
  }, val.name)))), /*#__PURE__*/createElement(BreadcrumbItem, null, /*#__PURE__*/createElement(BreadcrumbLink, {
353
363
  _hover: {
354
364
  textDecor: 'none',
355
365
  cursor: 'default'
356
366
  }
357
367
  }, /*#__PURE__*/createElement(Text, {
358
- color: useColorModeValue(neutral6, 'white'),
359
- fontSize: "text.sm",
360
- fontWeight: 400
368
+ color: "neutral.600",
369
+ textStyle: "text.sm"
361
370
  }, title))))), children && /*#__PURE__*/createElement(Box, null, children));
362
371
  };
363
372
  BreadCrumb.defaultProps = {
@@ -365,7 +374,8 @@ BreadCrumb.defaultProps = {
365
374
  parents: undefined,
366
375
  className: undefined,
367
376
  disableHome: undefined,
368
- spacing: 2
377
+ spacing: 2,
378
+ backButton: undefined
369
379
  };
370
380
 
371
381
  const CardCustom = /*#__PURE__*/forwardRef$2(({
@@ -1937,17 +1947,38 @@ TextareaField.defaultProps = {
1937
1947
  isLoading: undefined
1938
1948
  };
1939
1949
 
1940
- const XMSLogo = () => /*#__PURE__*/React__default.createElement(Image, {
1941
- height: 8,
1942
- src: useColorModeValue('https://assets.voila.id/xms/logo-xms.jpg', 'https://assets.voila.id/xms/logo-xms-dark.png')
1943
- });
1944
- const VoilaLogo = () => /*#__PURE__*/React__default.createElement(Image, {
1945
- src: "https://assets.voila.id/xms/logo-voila-black.png?v=1",
1946
- filter: useColorModeValue('none', 'invert(1)'),
1947
- maxW: 24
1948
- });
1950
+ const Logo = ({
1951
+ url,
1952
+ imageUrl,
1953
+ height
1954
+ }) => {
1955
+ if (url) return /*#__PURE__*/React__default.createElement(Box, {
1956
+ as: "a",
1957
+ href: url,
1958
+ cursor: "pointer",
1959
+ target: "_self"
1960
+ }, /*#__PURE__*/React__default.createElement(Image, {
1961
+ w: "100%",
1962
+ h: height !== null && height !== void 0 ? height : 9,
1963
+ maxH: height !== null && height !== void 0 ? height : 9,
1964
+ src: imageUrl,
1965
+ alt: imageUrl
1966
+ }));
1967
+ return /*#__PURE__*/React__default.createElement(Image, {
1968
+ w: "100%",
1969
+ h: height !== null && height !== void 0 ? height : 9,
1970
+ maxH: height !== null && height !== void 0 ? height : 9,
1971
+ src: imageUrl,
1972
+ alt: imageUrl
1973
+ });
1974
+ };
1975
+ Logo.defaultProps = {
1976
+ url: undefined,
1977
+ height: undefined
1978
+ };
1949
1979
 
1950
1980
  const Profile = ({
1981
+ brandColor,
1951
1982
  data,
1952
1983
  onLogout
1953
1984
  }) => {
@@ -1973,27 +2004,31 @@ const Profile = ({
1973
2004
  onClick: onToggle
1974
2005
  }, /*#__PURE__*/createElement(HStack, null, /*#__PURE__*/createElement(VStack, {
1975
2006
  alignItems: "flex-end",
1976
- spacing: -0.5,
1977
- ml: "2"
2007
+ spacing: 0,
2008
+ ml: "2",
2009
+ color: "primary.500"
1978
2010
  }, /*#__PURE__*/createElement(Text, {
1979
- fontSize: "text.xs",
2011
+ textStyle: "text.xs",
1980
2012
  mb: 1,
1981
- fontWeight: 400,
1982
- lineHeight: "14px",
1983
- color: useColorModeValue('neutral.800', 'white')
1984
- }, data === null || data === void 0 ? void 0 : data.email), /*#__PURE__*/createElement(Text, {
1985
- fontSize: "text.xs",
1986
- fontWeight: 400,
1987
- lineHeight: "14px",
1988
- color: useColorModeValue('primary.500', 'success.400')
1989
- }, (data === null || data === void 0 ? void 0 : data.office) && /*#__PURE__*/createElement(Text, {
1990
- color: "neutral.700",
1991
- display: "inline-block",
1992
- mr: 0.5,
1993
- as: "span"
1994
- }, data.office, " |", ' '), data === null || data === void 0 ? void 0 : data.userRole)), /*#__PURE__*/createElement(PopoverTrigger, null, /*#__PURE__*/createElement(Avatar, {
1995
- size: 'sm',
1996
- bg: "primary.500",
2013
+ color: "neutral.800"
2014
+ }, data === null || data === void 0 ? void 0 : data.email), /*#__PURE__*/createElement(Flex, null, (data === null || data === void 0 ? void 0 : data.userRole) && /*#__PURE__*/createElement(Text, {
2015
+ textStyle: "text.xs"
2016
+ }, (data === null || data === void 0 ? void 0 : data.userRole) || 'user'), /*#__PURE__*/createElement(Box, {
2017
+ h: "3",
2018
+ mx: "1",
2019
+ borderLeft: "1px solid",
2020
+ borderColor: "neutral.400"
2021
+ }), typeof (data === null || data === void 0 ? void 0 : data.office) === 'object' ? /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/createElement(Text, {
2022
+ textStyle: "text.xs"
2023
+ }, data.office[0]), data.office.length > 1 && /*#__PURE__*/createElement(Badge, {
2024
+ ml: "1",
2025
+ pill: true,
2026
+ variant: "neutral-light"
2027
+ }, data.office.length - 1, "+")) : /*#__PURE__*/createElement(Text, {
2028
+ textStyle: "text.xs"
2029
+ }, (data === null || data === void 0 ? void 0 : data.office) || 'office'))), /*#__PURE__*/createElement(PopoverTrigger, null, /*#__PURE__*/createElement(Avatar, {
2030
+ size: "sm",
2031
+ bg: brandColor,
1997
2032
  color: "white",
1998
2033
  name: (_data$name = data === null || data === void 0 ? void 0 : data.name) !== null && _data$name !== void 0 ? _data$name : data === null || data === void 0 ? void 0 : data.email
1999
2034
  })))), /*#__PURE__*/createElement(PopoverContent, {
@@ -2015,12 +2050,13 @@ const Profile = ({
2015
2050
  color: 'white'
2016
2051
  },
2017
2052
  onClick: onLogout,
2018
- fontSize: "text.xs"
2053
+ textStyle: "text.xs"
2019
2054
  }, /*#__PURE__*/createElement(FiPower, null), /*#__PURE__*/createElement(Text, {
2020
2055
  ml: 2
2021
2056
  }, "Logout")))));
2022
2057
  };
2023
2058
  Profile.defaultProps = {
2059
+ brandColor: 'primary.500',
2024
2060
  data: undefined,
2025
2061
  onLogout: undefined
2026
2062
  };
@@ -2056,22 +2092,22 @@ function environmentName(env) {
2056
2092
 
2057
2093
  /* eslint-disable react-hooks/rules-of-hooks */
2058
2094
  const Version = ({
2095
+ hideEnv,
2059
2096
  version,
2060
2097
  environment,
2061
2098
  onOpenModalRelease
2062
2099
  }) => /*#__PURE__*/createElement(Fragment, null, version && /*#__PURE__*/createElement(Badge$2, {
2063
2100
  "data-test-id": "dzl3esjhCphobaaIXpiUE",
2064
- bg: useColorModeValue('primary.500', 'rgba(124, 124, 124, 0.12)'),
2065
- color: useColorModeValue('white', 'secondary.400'),
2066
- fontSize: "text.xs",
2101
+ variant: "neutral-light",
2102
+ textStyle: "text.xs",
2067
2103
  py: 1,
2068
2104
  px: 2.5,
2069
- fontWeight: "bold",
2105
+ fontWeight: "semibold",
2070
2106
  textTransform: "lowercase",
2071
2107
  borderRadius: "md",
2072
2108
  onClick: onOpenModalRelease,
2073
2109
  cursor: onOpenModalRelease ? 'pointer' : 'auto'
2074
- }, version), environmentName(environment) !== null && version && /*#__PURE__*/createElement(Box, {
2110
+ }, version), !hideEnv && environmentName(environment) !== null && version && /*#__PURE__*/createElement(Box, {
2075
2111
  background: "primary.50",
2076
2112
  color: "primary.500",
2077
2113
  fontSize: "text.xs",
@@ -2081,45 +2117,78 @@ const Version = ({
2081
2117
  borderRadius: "md"
2082
2118
  }, environmentName(environment)));
2083
2119
  Version.defaultProps = {
2120
+ hideEnv: false,
2084
2121
  environment: undefined,
2085
2122
  version: undefined,
2086
2123
  onOpenModalRelease: undefined
2087
2124
  };
2088
2125
 
2089
2126
  const Header = ({
2127
+ brandColor,
2090
2128
  data,
2091
2129
  onLogout,
2092
2130
  onOpenModalRelease,
2093
2131
  hideSwitchMode,
2132
+ mainLogo = 'https://assets.voila.id/xms/logo-xms.jpg',
2133
+ centerLogo = 'https://assets.voila.id/xms/logo-voila-black.png?v=1',
2134
+ mainLogoSize,
2135
+ centerLogoSize = 4,
2136
+ hideEnv = false,
2137
+ urlLogo,
2138
+ children,
2094
2139
  ...props
2095
2140
  }) => /*#__PURE__*/createElement(Box, Object.assign({
2096
- minH: 14,
2097
- bg: useColorModeValue('white', 'ebony-clay.800'),
2098
- boxShadow: "0 4px 20px 0 rgb(0 0 0 / 5%)",
2099
- px: 4,
2100
- py: 1
2141
+ minH: 15,
2142
+ bg: "white",
2143
+ shadow: "raised",
2144
+ px: 6,
2145
+ py: 3
2101
2146
  }, props), /*#__PURE__*/createElement(Flex, {
2102
- h: 14,
2147
+ w: "full",
2103
2148
  alignItems: "center",
2104
- justifyContent: "space-between"
2105
- }, /*#__PURE__*/createElement(XMSLogo, null), /*#__PURE__*/createElement(HStack, {
2106
- spacing: 2,
2149
+ justifyContent: "space-between",
2150
+ pos: "relative"
2151
+ }, /*#__PURE__*/createElement(Flex, {
2107
2152
  alignItems: "center"
2108
- }, /*#__PURE__*/createElement(VoilaLogo, null), /*#__PURE__*/createElement(Version, {
2153
+ }, /*#__PURE__*/createElement(Logo, {
2154
+ url: urlLogo,
2155
+ imageUrl: mainLogo,
2156
+ height: mainLogoSize
2157
+ }), children && children), /*#__PURE__*/createElement(HStack, {
2158
+ w: "fit-content",
2159
+ spacing: 2,
2160
+ alignItems: "center",
2161
+ pos: "absolute",
2162
+ left: "50%",
2163
+ transform: "translate(-50%,0)"
2164
+ }, /*#__PURE__*/createElement(Logo, {
2165
+ url: urlLogo,
2166
+ imageUrl: centerLogo,
2167
+ height: centerLogoSize
2168
+ }), /*#__PURE__*/createElement(Version, {
2169
+ hideEnv: hideEnv,
2109
2170
  version: data === null || data === void 0 ? void 0 : data.version,
2110
2171
  environment: data === null || data === void 0 ? void 0 : data.environment,
2111
2172
  onOpenModalRelease: onOpenModalRelease
2112
2173
  })), /*#__PURE__*/createElement(Flex, {
2113
2174
  alignItems: "center"
2114
2175
  }, !hideSwitchMode && /*#__PURE__*/createElement(SwitchMode, null), /*#__PURE__*/createElement(Profile, {
2176
+ brandColor: brandColor,
2115
2177
  data: data,
2116
2178
  onLogout: onLogout
2117
2179
  }))));
2118
2180
  Header.defaultProps = {
2181
+ brandColor: undefined,
2119
2182
  data: undefined,
2120
2183
  onLogout: undefined,
2121
2184
  onOpenModalRelease: undefined,
2122
- hideSwitchMode: false
2185
+ hideSwitchMode: true,
2186
+ mainLogo: undefined,
2187
+ mainLogoSize: undefined,
2188
+ centerLogo: undefined,
2189
+ centerLogoSize: undefined,
2190
+ hideEnv: false,
2191
+ urlLogo: undefined
2123
2192
  };
2124
2193
 
2125
2194
  const ModalBody = /*#__PURE__*/React__default.forwardRef(({
@@ -2160,8 +2229,8 @@ const ModalHeader = /*#__PURE__*/forwardRef$2(({
2160
2229
  return /*#__PURE__*/React__default.createElement(ModalHeader$1, Object.assign({
2161
2230
  ref: ref,
2162
2231
  background: useColorModeValue('neutral.200', 'mirage.900'),
2163
- borderTopRadius: 'md',
2164
- fontSize: 'lg'
2232
+ borderTopRadius: "md",
2233
+ textStyle: "text-lg"
2165
2234
  }, rest), children);
2166
2235
  });
2167
2236
 
@@ -2320,8 +2389,8 @@ const PaginationButton = /*#__PURE__*/forwardRef$1(({
2320
2389
  ref: ref,
2321
2390
  className: className,
2322
2391
  style: style,
2323
- borderRadius: 50,
2324
- fontWeight: 700,
2392
+ borderRadius: "full",
2393
+ fontWeight: "semibold",
2325
2394
  m: 0,
2326
2395
  px: 3,
2327
2396
  py: 2,
@@ -2417,8 +2486,8 @@ const Pagination = ({
2417
2486
  width: 2
2418
2487
  })
2419
2488
  })), /*#__PURE__*/createElement(Box, {
2420
- backgroundColor: useColorModeValue('neutral.300', 'mirage.900'),
2421
- borderRadius: 50
2489
+ bg: "neutral.300",
2490
+ borderRadius: "full"
2422
2491
  }, /*#__PURE__*/createElement(PaginationButtonTrigger, {
2423
2492
  "data-test-id": "Pagination-Button",
2424
2493
  color: previousButtonColor,
@@ -3093,19 +3162,34 @@ const Tab = /*#__PURE__*/forwardRef$1((props, ref) => {
3093
3162
  const isSelected = !!tabProps['aria-selected'];
3094
3163
  const styles = useMultiStyleConfig$1('Tabs', tabProps);
3095
3164
  return /*#__PURE__*/createElement(Button$2, Object.assign({
3096
- p: 3,
3165
+ "data-test-id": props['data-test-id'],
3166
+ p: 4,
3097
3167
  fontSize: "text.md",
3098
3168
  _selected: {
3099
- borderColor: useColorModeValue('primary.400', 'primary.300'),
3100
- color: useColorModeValue('primary.500', 'primary.300'),
3101
- transform: 'translateY(-2px)'
3169
+ borderColor: 'primary.400',
3170
+ color: 'primary.500',
3171
+ transform: 'translateY(-2px)',
3172
+ _hover: {
3173
+ '& .chakra-badge': {
3174
+ bg: 'primary.500'
3175
+ },
3176
+ color: 'primary.500'
3177
+ }
3102
3178
  },
3103
- color: useColorModeValue('black.high', 'primary.300'),
3179
+ color: "black.medium",
3104
3180
  _focus: {
3105
3181
  bg: 'none'
3106
3182
  },
3183
+ _hover: {
3184
+ '& .chakra-badge': {
3185
+ bg: 'primary.400'
3186
+ },
3187
+ color: 'primary.400'
3188
+ },
3107
3189
  __css: styles.tab
3108
- }, tabProps), /*#__PURE__*/createElement(Flex, null, (_props$leftAddon = props.leftAddon) === null || _props$leftAddon === void 0 ? void 0 : _props$leftAddon.call(props, {
3190
+ }, tabProps), /*#__PURE__*/createElement(Flex, {
3191
+ alignItems: "center"
3192
+ }, (_props$leftAddon = props.leftAddon) === null || _props$leftAddon === void 0 ? void 0 : _props$leftAddon.call(props, {
3109
3193
  isSelected
3110
3194
  }), tabProps.children, (_props$rightAddon = props.rightAddon) === null || _props$rightAddon === void 0 ? void 0 : _props$rightAddon.call(props, {
3111
3195
  isSelected
@@ -3220,6 +3304,7 @@ const {
3220
3304
  defineMultiStyleConfig
3221
3305
  } = /*#__PURE__*/createMultiStyleConfigHelpers(alertAnatomy.keys);
3222
3306
  const $fg = /*#__PURE__*/cssVar('alert-fg');
3307
+ const $ac = /*#__PURE__*/cssVar('alert-ac');
3223
3308
  const $bg = /*#__PURE__*/cssVar('alert-bg');
3224
3309
  const baseStyle = /*#__PURE__*/definePartsStyle({
3225
3310
  container: {
@@ -3229,8 +3314,8 @@ const baseStyle = /*#__PURE__*/definePartsStyle({
3229
3314
  borderRadius: 'md'
3230
3315
  },
3231
3316
  title: {
3232
- fontWeight: '400',
3233
- lineHeight: '18px',
3317
+ fontWeight: 'regular',
3318
+ textStyle: 'text.sm',
3234
3319
  marginEnd: '2'
3235
3320
  },
3236
3321
  description: {
@@ -3244,6 +3329,7 @@ const baseStyle = /*#__PURE__*/definePartsStyle({
3244
3329
  h: '4'
3245
3330
  },
3246
3331
  action: {
3332
+ color: $ac.reference,
3247
3333
  '& +.chakra-alert__close': {
3248
3334
  ml: '3'
3249
3335
  }
@@ -3263,16 +3349,13 @@ const baseStyle = /*#__PURE__*/definePartsStyle({
3263
3349
  });
3264
3350
  function getBg(props) {
3265
3351
  const {
3266
- theme,
3267
3352
  colorScheme: c
3268
3353
  } = props;
3269
- const darkBg = transparentize(`${c}.200`, 0.16)(theme);
3270
3354
  return {
3271
- light: `colors.${c}.50`,
3272
- dark: darkBg
3355
+ light: c === 'neutral' ? `colors.${c}.300` : `colors.${c}.50`
3273
3356
  };
3274
3357
  }
3275
- const variantSubtle = /*#__PURE__*/definePartsStyle(props => {
3358
+ const variantLight = /*#__PURE__*/definePartsStyle(props => {
3276
3359
  const {
3277
3360
  colorScheme: c
3278
3361
  } = props;
@@ -3281,10 +3364,6 @@ const variantSubtle = /*#__PURE__*/definePartsStyle(props => {
3281
3364
  container: {
3282
3365
  [$fg.variable]: `colors.${c}.700`,
3283
3366
  [$bg.variable]: bg.light,
3284
- _dark: {
3285
- [$fg.variable]: `colors.${c}.200`,
3286
- [$bg.variable]: bg.dark
3287
- },
3288
3367
  color: $fg.reference
3289
3368
  }
3290
3369
  };
@@ -3296,24 +3375,19 @@ const variantSolid = /*#__PURE__*/definePartsStyle(props => {
3296
3375
  return {
3297
3376
  container: {
3298
3377
  [$fg.variable]: `colors.white.high`,
3299
- [$bg.variable]: `colors.${c}.500`,
3300
- _dark: {
3301
- [$fg.variable]: `colors.gray.900`,
3302
- [$bg.variable]: `colors.${c}.200`
3303
- },
3304
- color: $fg.reference
3378
+ [$bg.variable]: c === 'neutral' ? `colors.${c}.700` : `colors.${c}.500`
3305
3379
  }
3306
3380
  };
3307
3381
  });
3308
3382
  const variants = {
3309
- subtle: variantSubtle,
3383
+ light: variantLight,
3310
3384
  solid: variantSolid
3311
3385
  };
3312
3386
  const alertTheme = /*#__PURE__*/defineMultiStyleConfig({
3313
3387
  baseStyle,
3314
3388
  variants,
3315
3389
  defaultProps: {
3316
- variant: 'subtle',
3390
+ variant: 'light',
3317
3391
  colorScheme: 'info'
3318
3392
  }
3319
3393
  });
@@ -3321,9 +3395,9 @@ const alertTheme = /*#__PURE__*/defineMultiStyleConfig({
3321
3395
  const Badge$1 = {
3322
3396
  baseStyle: {
3323
3397
  display: 'inline-block',
3324
- fontSize: 10,
3325
- fontWeight: 600,
3326
- lineHeight: '1.25',
3398
+ fontSize: 'text.xs',
3399
+ fontWeight: 'semibold',
3400
+ lineHeight: '14',
3327
3401
  textTransform: 'none',
3328
3402
  px: 2,
3329
3403
  py: '0.5'
@@ -3675,19 +3749,18 @@ const {
3675
3749
  } = /*#__PURE__*/createMultiStyleConfigHelpers$1(checkboxAnatomy.keys);
3676
3750
  const baseStyle$1 = /*#__PURE__*/definePartsStyle$1({
3677
3751
  control: {
3678
- borderRadius: '4px',
3679
- width: '16px',
3680
- height: '16px',
3752
+ borderRadius: 'sm',
3753
+ w: 4,
3754
+ h: 4,
3681
3755
  border: '1px solid'
3682
3756
  },
3683
3757
  icon: {
3684
3758
  color: 'neutral.50'
3685
3759
  },
3686
3760
  label: {
3687
- fontWeight: '400',
3688
- lineHeight: '18px',
3761
+ textStyle: 'text.sm',
3689
3762
  color: 'black.high',
3690
- ml: '8px'
3763
+ ml: 2
3691
3764
  },
3692
3765
  _disabled: {
3693
3766
  background: 'neutral.200',
@@ -3713,10 +3786,10 @@ const errors = /*#__PURE__*/definePartsStyle$1({
3713
3786
  }
3714
3787
  },
3715
3788
  label: {
3716
- fontSize: '12px'
3789
+ textStyle: 'text.xs'
3717
3790
  },
3718
3791
  icon: {
3719
- fontSize: '7px'
3792
+ fontSize: '8px'
3720
3793
  }
3721
3794
  });
3722
3795
  const unstyled = /*#__PURE__*/definePartsStyle$1({
@@ -3750,13 +3823,13 @@ const unstyled = /*#__PURE__*/definePartsStyle$1({
3750
3823
  }
3751
3824
  },
3752
3825
  label: {
3753
- fontSize: '12px',
3826
+ textStyle: 'text.xs',
3754
3827
  _disabled: {
3755
3828
  opacity: 1
3756
3829
  }
3757
3830
  },
3758
3831
  icon: {
3759
- fontSize: '7px'
3832
+ fontSize: '8px'
3760
3833
  }
3761
3834
  });
3762
3835
  const variants$1 = {
@@ -3779,14 +3852,17 @@ const Chips$1 = /*#__PURE__*/defineStyleConfig({
3779
3852
  } = props;
3780
3853
  const defaultProps = {
3781
3854
  color: 'primary.500',
3782
- fontSize: 'text.small',
3783
- borderRadius: '24px',
3855
+ textStyle: 'text.sm',
3856
+ borderRadius: '2xl',
3784
3857
  borderWidth: '1px',
3785
3858
  borderColor: 'primary.500',
3786
3859
  bg: 'white.high',
3787
- paddingX: 3,
3788
- paddingY: 1,
3789
- cursor: 'default'
3860
+ px: 3,
3861
+ py: 1,
3862
+ cursor: 'default',
3863
+ _hover: {
3864
+ bg: 'primary.50'
3865
+ }
3790
3866
  };
3791
3867
  let chipsProps = {
3792
3868
  ...defaultProps
@@ -3794,7 +3870,10 @@ const Chips$1 = /*#__PURE__*/defineStyleConfig({
3794
3870
  if (isActive) {
3795
3871
  const isActiveProps = {
3796
3872
  bg: 'primary.500',
3797
- color: 'white.high'
3873
+ color: 'white.high',
3874
+ _hover: {
3875
+ bg: 'primary.500'
3876
+ }
3798
3877
  };
3799
3878
  chipsProps = {
3800
3879
  ...chipsProps,
@@ -3819,13 +3898,11 @@ const Chips$1 = /*#__PURE__*/defineStyleConfig({
3819
3898
  },
3820
3899
  sizes: {
3821
3900
  sm: {
3822
- fontSize: '12px',
3823
- lineHeight: 4
3901
+ textStyle: 'text.sm'
3824
3902
  },
3825
3903
  md: {
3826
- fontSize: '14px',
3827
- paddingY: 2,
3828
- lineHeight: 5
3904
+ textStyle: 'text.md',
3905
+ py: 2
3829
3906
  }
3830
3907
  },
3831
3908
  defaultProps: {