@ctlyst.id/internal-ui 2.1.4 → 2.1.6

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.
@@ -28,6 +28,8 @@ var anatomy = require('@chakra-ui/anatomy');
28
28
  var styledSystem = require('@chakra-ui/styled-system');
29
29
  var themeTools = require('@chakra-ui/theme-tools');
30
30
  var axios = _interopDefault(require('axios'));
31
+ require('react-toastify/dist/ReactToastify.css');
32
+ var reactToastify = require('react-toastify');
31
33
 
32
34
  /* eslint-disable react/require-default-props */
33
35
  function CheckIcon() {
@@ -141,6 +143,9 @@ const Loader = /*#__PURE__*/react.forwardRef((props, ref) => {
141
143
  __css: styles
142
144
  });
143
145
  });
146
+ Loader.defaultProps = {
147
+ size: 'md'
148
+ };
144
149
 
145
150
  const Button = /*#__PURE__*/react.forwardRef((props, ref) => {
146
151
  const {
@@ -269,9 +274,6 @@ const Badge = props => {
269
274
  } = props;
270
275
  return /*#__PURE__*/React__default.createElement(react.Badge, Object.assign({
271
276
  borderRadius: pill ? 'xl' : 'sm',
272
- variant: "primary-solid",
273
- px: "2",
274
- h: "4.5",
275
277
  display: "inline-flex",
276
278
  alignItems: "center",
277
279
  justifyContent: "space-between",
@@ -1984,6 +1986,7 @@ Logo.defaultProps = {
1984
1986
  };
1985
1987
 
1986
1988
  const Profile = ({
1989
+ color,
1987
1990
  brandColor,
1988
1991
  data,
1989
1992
  onLogout
@@ -2007,17 +2010,19 @@ const Profile = ({
2007
2010
  textDecor: 'none'
2008
2011
  },
2009
2012
  m: 0,
2010
- onClick: onToggle
2013
+ onClick: onToggle,
2014
+ color: color
2011
2015
  }, /*#__PURE__*/React.createElement(react.HStack, null, /*#__PURE__*/React.createElement(react.VStack, {
2012
2016
  alignItems: "flex-end",
2013
2017
  spacing: 0,
2014
2018
  ml: "2",
2015
- color: "primary.500"
2019
+ color: color
2016
2020
  }, /*#__PURE__*/React.createElement(react.Text, {
2017
2021
  textStyle: "text.xs",
2018
- mb: 1,
2019
- color: "neutral.800"
2020
- }, data === null || data === void 0 ? void 0 : data.email), /*#__PURE__*/React.createElement(react.Flex, null, (data === null || data === void 0 ? void 0 : data.userRole) && /*#__PURE__*/React.createElement(react.Text, {
2022
+ mb: 1
2023
+ }, data === null || data === void 0 ? void 0 : data.email), /*#__PURE__*/React.createElement(react.Flex, {
2024
+ alignItems: "center"
2025
+ }, (data === null || data === void 0 ? void 0 : data.userRole) && /*#__PURE__*/React.createElement(react.Text, {
2021
2026
  textStyle: "text.xs"
2022
2027
  }, (data === null || data === void 0 ? void 0 : data.userRole) || 'user'), /*#__PURE__*/React.createElement(react.Box, {
2023
2028
  h: "3",
@@ -2064,7 +2069,8 @@ const Profile = ({
2064
2069
  Profile.defaultProps = {
2065
2070
  brandColor: 'primary.500',
2066
2071
  data: undefined,
2067
- onLogout: undefined
2072
+ onLogout: undefined,
2073
+ color: undefined
2068
2074
  };
2069
2075
 
2070
2076
  const SwitchMode = () => {
@@ -2102,15 +2108,9 @@ const Version = ({
2102
2108
  version,
2103
2109
  environment,
2104
2110
  onOpenModalRelease
2105
- }) => /*#__PURE__*/React.createElement(React.Fragment, null, version && /*#__PURE__*/React.createElement(react.Badge, {
2111
+ }) => /*#__PURE__*/React.createElement(React.Fragment, null, version && /*#__PURE__*/React.createElement(Badge, {
2106
2112
  "data-test-id": "dzl3esjhCphobaaIXpiUE",
2107
2113
  variant: "neutral-light",
2108
- textStyle: "text.xs",
2109
- py: 1,
2110
- px: 2.5,
2111
- fontWeight: "semibold",
2112
- textTransform: "lowercase",
2113
- borderRadius: "md",
2114
2114
  onClick: onOpenModalRelease,
2115
2115
  cursor: onOpenModalRelease ? 'pointer' : 'auto'
2116
2116
  }, version), !hideEnv && environmentName(environment) !== null && version && /*#__PURE__*/React.createElement(react.Box, {
@@ -2135,32 +2135,36 @@ const Header = ({
2135
2135
  onLogout,
2136
2136
  onOpenModalRelease,
2137
2137
  hideSwitchMode,
2138
- mainLogo = 'https://assets.voila.id/xms/logo-xms.jpg',
2139
- centerLogo = 'https://assets.voila.id/xms/logo-voila-black.png?v=1',
2138
+ mainLogo,
2139
+ centerLogo,
2140
2140
  mainLogoSize,
2141
2141
  centerLogoSize = 4,
2142
2142
  hideEnv = false,
2143
2143
  urlLogo,
2144
2144
  children,
2145
+ profile,
2145
2146
  ...props
2146
- }) => /*#__PURE__*/React.createElement(react.Box, Object.assign({
2147
+ }) => /*#__PURE__*/React.createElement(react.Flex, Object.assign({
2147
2148
  minH: 15,
2148
- bg: "white",
2149
+ bg: props.bg,
2150
+ bgColor: props.bgColor,
2149
2151
  shadow: "raised",
2150
2152
  px: 6,
2151
- py: 3
2153
+ py: 3,
2154
+ alignItems: "center"
2152
2155
  }, props), /*#__PURE__*/React.createElement(react.Flex, {
2156
+ h: "auto",
2153
2157
  w: "full",
2154
2158
  alignItems: "center",
2155
- justifyContent: "space-between",
2159
+ justifyContent: profile ? 'flex-end' : 'space-between',
2156
2160
  pos: "relative"
2157
- }, /*#__PURE__*/React.createElement(react.Flex, {
2161
+ }, mainLogo && /*#__PURE__*/React.createElement(react.Flex, {
2158
2162
  alignItems: "center"
2159
2163
  }, /*#__PURE__*/React.createElement(Logo, {
2160
2164
  url: urlLogo,
2161
2165
  imageUrl: mainLogo,
2162
2166
  height: mainLogoSize
2163
- }), children && children), /*#__PURE__*/React.createElement(react.HStack, {
2167
+ }), children && children), centerLogo && /*#__PURE__*/React.createElement(react.HStack, {
2164
2168
  w: "fit-content",
2165
2169
  spacing: 2,
2166
2170
  alignItems: "center",
@@ -2176,9 +2180,10 @@ const Header = ({
2176
2180
  version: data === null || data === void 0 ? void 0 : data.version,
2177
2181
  environment: data === null || data === void 0 ? void 0 : data.environment,
2178
2182
  onOpenModalRelease: onOpenModalRelease
2179
- })), /*#__PURE__*/React.createElement(react.Flex, {
2183
+ })), profile || /*#__PURE__*/React.createElement(react.Flex, {
2180
2184
  alignItems: "center"
2181
2185
  }, !hideSwitchMode && /*#__PURE__*/React.createElement(SwitchMode, null), /*#__PURE__*/React.createElement(Profile, {
2186
+ color: props.color,
2182
2187
  brandColor: brandColor,
2183
2188
  data: data,
2184
2189
  onLogout: onLogout
@@ -2194,7 +2199,8 @@ Header.defaultProps = {
2194
2199
  centerLogo: undefined,
2195
2200
  centerLogoSize: undefined,
2196
2201
  hideEnv: false,
2197
- urlLogo: undefined
2202
+ urlLogo: undefined,
2203
+ profile: undefined
2198
2204
  };
2199
2205
 
2200
2206
  const ModalBody = /*#__PURE__*/React__default.forwardRef(({
@@ -3267,7 +3273,7 @@ const Tab = /*#__PURE__*/react.forwardRef((props, ref) => {
3267
3273
  p: 4,
3268
3274
  fontSize: "text.md",
3269
3275
  _selected: {
3270
- borderColor: 'primary.400',
3276
+ borderColor: 'primary.500',
3271
3277
  color: 'primary.500',
3272
3278
  transform: 'translateY(-2px)',
3273
3279
  _hover: {
@@ -3403,50 +3409,97 @@ Uploader.defaultProps = {
3403
3409
  const {
3404
3410
  definePartsStyle,
3405
3411
  defineMultiStyleConfig
3406
- } = /*#__PURE__*/styledSystem.createMultiStyleConfigHelpers(anatomy.alertAnatomy.keys);
3407
- const $fg = /*#__PURE__*/styledSystem.cssVar('alert-fg');
3408
- const $ac = /*#__PURE__*/styledSystem.cssVar('alert-ac');
3409
- const $bg = /*#__PURE__*/styledSystem.cssVar('alert-bg');
3410
- const baseStyle = /*#__PURE__*/definePartsStyle({
3411
- container: {
3412
- bg: $bg.reference,
3413
- px: '4',
3414
- py: '2',
3415
- borderRadius: 'sm'
3416
- },
3417
- title: {
3418
- fontWeight: 'regular',
3419
- textStyle: 'text.sm',
3420
- marginEnd: '2'
3412
+ } = /*#__PURE__*/styledSystem.createMultiStyleConfigHelpers(anatomy.accordionAnatomy.keys);
3413
+ const baseStyleContainer = /*#__PURE__*/styledSystem.defineStyle({
3414
+ border: 'none'
3415
+ });
3416
+ const baseStyleButton = /*#__PURE__*/styledSystem.defineStyle({
3417
+ height: 14,
3418
+ transitionProperty: 'common',
3419
+ transitionDuration: 'normal',
3420
+ gap: 4,
3421
+ fontSize: 'text.md',
3422
+ bg: 'neutral.50',
3423
+ _focusVisible: {
3424
+ bg: 'neutral.100'
3421
3425
  },
3422
- description: {
3423
- lineHeight: '6'
3426
+ _hover: {
3427
+ bg: 'neutral.100'
3424
3428
  },
3425
- icon: {
3426
- color: $fg.reference,
3427
- flexShrink: 0,
3428
- marginEnd: '3',
3429
- w: '4',
3430
- h: '4'
3429
+ _disabled: {
3430
+ opacity: 0.4,
3431
+ cursor: 'not-allowed'
3431
3432
  },
3432
- action: {
3433
- color: $ac.reference,
3434
- '& +.chakra-alert__close': {
3435
- ml: '3'
3433
+ py: 2,
3434
+ px: 4,
3435
+ position: 'relative'
3436
+ });
3437
+ const baseStylePanel = /*#__PURE__*/styledSystem.defineStyle({
3438
+ pt: '2',
3439
+ px: '4',
3440
+ pb: '5'
3441
+ });
3442
+ const baseStyleIcon = /*#__PURE__*/styledSystem.defineStyle({
3443
+ fontSize: '1.25em'
3444
+ });
3445
+ const baseStyle = /*#__PURE__*/definePartsStyle({
3446
+ container: baseStyleContainer,
3447
+ button: baseStyleButton,
3448
+ panel: baseStylePanel,
3449
+ icon: baseStyleIcon
3450
+ });
3451
+ const accordionTheme = /*#__PURE__*/defineMultiStyleConfig({
3452
+ baseStyle
3453
+ });
3454
+
3455
+ const {
3456
+ definePartsStyle: definePartsStyle$1,
3457
+ defineMultiStyleConfig: defineMultiStyleConfig$1
3458
+ } = /*#__PURE__*/styledSystem.createMultiStyleConfigHelpers(anatomy.alertAnatomy.keys);
3459
+ const $fg = /*#__PURE__*/styledSystem.cssVar('alert-fg');
3460
+ const $bg = /*#__PURE__*/styledSystem.cssVar('alert-bg');
3461
+ const baseStyle$1 = /*#__PURE__*/definePartsStyle$1(props => {
3462
+ return {
3463
+ container: {
3464
+ bg: $bg.reference,
3465
+ px: '4',
3466
+ py: '2',
3467
+ borderRadius: 'sm'
3468
+ },
3469
+ title: {
3470
+ fontWeight: 'regular',
3471
+ textStyle: 'text.sm',
3472
+ marginEnd: '2'
3473
+ },
3474
+ description: {
3475
+ lineHeight: '6'
3476
+ },
3477
+ icon: {
3478
+ color: $fg.reference,
3479
+ flexShrink: 0,
3480
+ marginEnd: '3',
3481
+ w: '4',
3482
+ h: '4'
3483
+ },
3484
+ action: {
3485
+ color: props.colorScheme === 'neutral' && props.variant === 'light' ? 'primary.500' : 'inherit',
3486
+ '& +.chakra-alert__close': {
3487
+ ml: '3'
3488
+ }
3489
+ },
3490
+ close: {
3491
+ color: $fg.reference,
3492
+ w: '4',
3493
+ h: '4'
3494
+ },
3495
+ spinner: {
3496
+ color: $fg.reference,
3497
+ flexShrink: 0,
3498
+ marginEnd: '3',
3499
+ w: '5',
3500
+ h: '5'
3436
3501
  }
3437
- },
3438
- close: {
3439
- color: $fg.reference,
3440
- w: '4',
3441
- h: '4'
3442
- },
3443
- spinner: {
3444
- color: $fg.reference,
3445
- flexShrink: 0,
3446
- marginEnd: '3',
3447
- w: '5',
3448
- h: '5'
3449
- }
3502
+ };
3450
3503
  });
3451
3504
  function getBg(props) {
3452
3505
  const {
@@ -3456,7 +3509,7 @@ function getBg(props) {
3456
3509
  light: c === 'neutral' ? `colors.${c}.300` : `colors.${c}.50`
3457
3510
  };
3458
3511
  }
3459
- const variantLight = /*#__PURE__*/definePartsStyle(props => {
3512
+ const variantLight = /*#__PURE__*/definePartsStyle$1(props => {
3460
3513
  const {
3461
3514
  colorScheme: c
3462
3515
  } = props;
@@ -3469,7 +3522,7 @@ const variantLight = /*#__PURE__*/definePartsStyle(props => {
3469
3522
  }
3470
3523
  };
3471
3524
  });
3472
- const variantSolid = /*#__PURE__*/definePartsStyle(props => {
3525
+ const variantSolid = /*#__PURE__*/definePartsStyle$1(props => {
3473
3526
  const {
3474
3527
  colorScheme: c
3475
3528
  } = props;
@@ -3484,8 +3537,8 @@ const variants = {
3484
3537
  light: variantLight,
3485
3538
  solid: variantSolid
3486
3539
  };
3487
- const alertTheme = /*#__PURE__*/defineMultiStyleConfig({
3488
- baseStyle,
3540
+ const alertTheme = /*#__PURE__*/defineMultiStyleConfig$1({
3541
+ baseStyle: baseStyle$1,
3489
3542
  variants,
3490
3543
  defaultProps: {
3491
3544
  variant: 'light',
@@ -3688,6 +3741,12 @@ const Button$1 = /*#__PURE__*/styledSystem.defineStyleConfig({
3688
3741
  },
3689
3742
  _disabled: {
3690
3743
  border: 0
3744
+ },
3745
+ '.chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)': {
3746
+ marginEnd: '-1px'
3747
+ },
3748
+ '.chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)': {
3749
+ marginBottom: '-1px'
3691
3750
  }
3692
3751
  };
3693
3752
  const disabledLoading = {
@@ -3845,10 +3904,10 @@ const CardStyle = /*#__PURE__*/styledSystem.defineStyleConfig({
3845
3904
  });
3846
3905
 
3847
3906
  const {
3848
- definePartsStyle: definePartsStyle$1,
3849
- defineMultiStyleConfig: defineMultiStyleConfig$1
3907
+ definePartsStyle: definePartsStyle$2,
3908
+ defineMultiStyleConfig: defineMultiStyleConfig$2
3850
3909
  } = /*#__PURE__*/react.createMultiStyleConfigHelpers(anatomy.checkboxAnatomy.keys);
3851
- const baseStyle$1 = /*#__PURE__*/definePartsStyle$1({
3910
+ const baseStyle$2 = /*#__PURE__*/definePartsStyle$2({
3852
3911
  control: {
3853
3912
  borderRadius: 'sm',
3854
3913
  w: 4,
@@ -3870,7 +3929,7 @@ const baseStyle$1 = /*#__PURE__*/definePartsStyle$1({
3870
3929
  cursor: 'not-allowed'
3871
3930
  }
3872
3931
  });
3873
- const errors = /*#__PURE__*/definePartsStyle$1({
3932
+ const errors = /*#__PURE__*/definePartsStyle$2({
3874
3933
  control: {
3875
3934
  borderColor: 'danger.500',
3876
3935
  _checked: {
@@ -3893,7 +3952,7 @@ const errors = /*#__PURE__*/definePartsStyle$1({
3893
3952
  fontSize: '8px'
3894
3953
  }
3895
3954
  });
3896
- const unstyled = /*#__PURE__*/definePartsStyle$1({
3955
+ const unstyled = /*#__PURE__*/definePartsStyle$2({
3897
3956
  control: {
3898
3957
  borderColor: 'neutral.600',
3899
3958
  _checked: {
@@ -3937,8 +3996,8 @@ const variants$1 = {
3937
3996
  errors,
3938
3997
  unstyled
3939
3998
  };
3940
- const Checkbox = /*#__PURE__*/defineMultiStyleConfig$1({
3941
- baseStyle: baseStyle$1,
3999
+ const Checkbox = /*#__PURE__*/defineMultiStyleConfig$2({
4000
+ baseStyle: baseStyle$2,
3942
4001
  variants: variants$1,
3943
4002
  defaultProps: {
3944
4003
  variant: 'unstyled'
@@ -3986,7 +4045,10 @@ const Chips$1 = /*#__PURE__*/styledSystem.defineStyleConfig({
3986
4045
  bg: 'neutral.200',
3987
4046
  color: 'black.low',
3988
4047
  borderColor: 'neutral.200',
3989
- cursor: 'not-allowed'
4048
+ cursor: 'not-allowed',
4049
+ _hover: {
4050
+ bg: 'neutral.200'
4051
+ }
3990
4052
  };
3991
4053
  chipsProps = {
3992
4054
  ...chipsProps,
@@ -4011,21 +4073,21 @@ const Chips$1 = /*#__PURE__*/styledSystem.defineStyleConfig({
4011
4073
  }
4012
4074
  });
4013
4075
 
4014
- const baseStyle$2 = /*#__PURE__*/styledSystem.defineStyle({
4076
+ const baseStyle$3 = /*#__PURE__*/styledSystem.defineStyle({
4015
4077
  fontSize: 'field.sm',
4016
4078
  fontWeight: 'normal',
4017
4079
  marginEnd: 1,
4018
4080
  mb: 1
4019
4081
  });
4020
4082
  const FormLabel = /*#__PURE__*/styledSystem.defineStyleConfig({
4021
- baseStyle: baseStyle$2
4083
+ baseStyle: baseStyle$3
4022
4084
  });
4023
4085
 
4024
4086
  const {
4025
- definePartsStyle: definePartsStyle$2,
4026
- defineMultiStyleConfig: defineMultiStyleConfig$2
4087
+ definePartsStyle: definePartsStyle$3,
4088
+ defineMultiStyleConfig: defineMultiStyleConfig$3
4027
4089
  } = /*#__PURE__*/styledSystem.createMultiStyleConfigHelpers(anatomy.inputAnatomy.keys);
4028
- const baseStyle$3 = /*#__PURE__*/definePartsStyle$2({
4090
+ const baseStyle$4 = /*#__PURE__*/definePartsStyle$3({
4029
4091
  field: {
4030
4092
  width: '100%',
4031
4093
  minWidth: 0,
@@ -4068,20 +4130,20 @@ const size = {
4068
4130
  })
4069
4131
  };
4070
4132
  const sizes = {
4071
- lg: /*#__PURE__*/definePartsStyle$2({
4133
+ lg: /*#__PURE__*/definePartsStyle$3({
4072
4134
  field: size.lg,
4073
4135
  addon: size.lg
4074
4136
  }),
4075
- md: /*#__PURE__*/definePartsStyle$2({
4137
+ md: /*#__PURE__*/definePartsStyle$3({
4076
4138
  field: size.md,
4077
4139
  addon: size.md
4078
4140
  }),
4079
- sm: /*#__PURE__*/definePartsStyle$2({
4141
+ sm: /*#__PURE__*/definePartsStyle$3({
4080
4142
  field: size.sm,
4081
4143
  addon: size.sm
4082
4144
  })
4083
4145
  };
4084
- const outline = /*#__PURE__*/definePartsStyle$2(props => {
4146
+ const outline = /*#__PURE__*/definePartsStyle$3(props => {
4085
4147
  const field = {
4086
4148
  border: 0,
4087
4149
  outline: 0,
@@ -4099,7 +4161,7 @@ const outline = /*#__PURE__*/definePartsStyle$2(props => {
4099
4161
  field
4100
4162
  };
4101
4163
  });
4102
- const unstyled$1 = /*#__PURE__*/definePartsStyle$2({
4164
+ const unstyled$1 = /*#__PURE__*/definePartsStyle$3({
4103
4165
  field: {
4104
4166
  bg: 'transparent',
4105
4167
  px: '0',
@@ -4115,8 +4177,8 @@ const variants$2 = {
4115
4177
  outline,
4116
4178
  unstyled: unstyled$1
4117
4179
  };
4118
- const Input = /*#__PURE__*/defineMultiStyleConfig$2({
4119
- baseStyle: baseStyle$3,
4180
+ const Input = /*#__PURE__*/defineMultiStyleConfig$3({
4181
+ baseStyle: baseStyle$4,
4120
4182
  sizes,
4121
4183
  variants: variants$2,
4122
4184
  defaultProps: {
@@ -4125,6 +4187,7 @@ const Input = /*#__PURE__*/defineMultiStyleConfig$2({
4125
4187
  }
4126
4188
  });
4127
4189
 
4190
+ /* eslint-disable prefer-destructuring */
4128
4191
  const rotate = /*#__PURE__*/react$1.keyframes({
4129
4192
  '0%': {
4130
4193
  transform: 'rotate(0deg)'
@@ -4134,10 +4197,26 @@ const rotate = /*#__PURE__*/react$1.keyframes({
4134
4197
  }
4135
4198
  });
4136
4199
  const getLoaderColor = color => {
4137
- if (color === 'primary') return '--chakra-colors-primary-600';
4138
- if (color === 'danger') return '--chakra-colors-danger-500';
4139
- if (color === 'warning') return '--chakra-colors-warning-700';
4140
- return '--chakra-colors-white-high';
4200
+ if (!color) {
4201
+ return 'var(--chakra-colors-white-high)';
4202
+ }
4203
+ const colorValue = color.split('.');
4204
+ let backgroundColor;
4205
+ switch (colorValue.length) {
4206
+ case 1:
4207
+ backgroundColor = colorValue[0];
4208
+ break;
4209
+ case 2:
4210
+ backgroundColor = `var(--chakra-colors-${colorValue[0]}-${colorValue[1]})`;
4211
+ break;
4212
+ default:
4213
+ backgroundColor = 'var(--chakra-colors-white-high)';
4214
+ break;
4215
+ }
4216
+ if (color === 'primary') return 'var(--chakra-colors-primary-600)';
4217
+ if (color === 'danger') return 'var(--chakra-colors-danger-500)';
4218
+ if (color === 'warning') return 'var(--chakra-colors-warning-700)';
4219
+ return backgroundColor;
4141
4220
  };
4142
4221
  const LoaderStyle = /*#__PURE__*/styledSystem.defineStyleConfig({
4143
4222
  baseStyle: props => {
@@ -4148,7 +4227,7 @@ const LoaderStyle = /*#__PURE__*/styledSystem.defineStyleConfig({
4148
4227
  justifyContent: 'center',
4149
4228
  alignItems: 'center',
4150
4229
  animation: `${rotate} 1s linear infinite`,
4151
- background: `conic-gradient(from 180deg at 50% 50%, var(${colors}) 0deg, rgba(217, 217, 217, 0) 360deg);`,
4230
+ background: `conic-gradient(from 180deg at 50% 50%, ${colors} 0deg, rgba(217, 217, 217, 0) 360deg);`,
4152
4231
  ':before': {
4153
4232
  content: `''`,
4154
4233
  display: 'block',
@@ -4223,10 +4302,10 @@ const LoaderStyle = /*#__PURE__*/styledSystem.defineStyleConfig({
4223
4302
  });
4224
4303
 
4225
4304
  const {
4226
- definePartsStyle: definePartsStyle$3
4305
+ definePartsStyle: definePartsStyle$4
4227
4306
  } = /*#__PURE__*/styledSystem.createMultiStyleConfigHelpers(anatomy.popoverAnatomy.keys);
4228
4307
  const Popover = {
4229
- baseStyle: props => definePartsStyle$3({
4308
+ baseStyle: props => definePartsStyle$4({
4230
4309
  popper: {
4231
4310
  background: themeTools.mode('white', 'inherit')(props)
4232
4311
  }
@@ -4234,10 +4313,10 @@ const Popover = {
4234
4313
  };
4235
4314
 
4236
4315
  const {
4237
- definePartsStyle: definePartsStyle$4,
4238
- defineMultiStyleConfig: defineMultiStyleConfig$3
4316
+ definePartsStyle: definePartsStyle$5,
4317
+ defineMultiStyleConfig: defineMultiStyleConfig$4
4239
4318
  } = /*#__PURE__*/react.createMultiStyleConfigHelpers(anatomy.radioAnatomy.keys);
4240
- const baseStyle$4 = /*#__PURE__*/definePartsStyle$4({
4319
+ const baseStyle$5 = /*#__PURE__*/definePartsStyle$5({
4241
4320
  control: {
4242
4321
  border: '1px solid',
4243
4322
  width: '16px',
@@ -4253,7 +4332,7 @@ const baseStyle$4 = /*#__PURE__*/definePartsStyle$4({
4253
4332
  }
4254
4333
  }
4255
4334
  });
4256
- const errors$1 = /*#__PURE__*/definePartsStyle$4({
4335
+ const errors$1 = /*#__PURE__*/definePartsStyle$5({
4257
4336
  control: {
4258
4337
  borderColor: 'danger.500',
4259
4338
  _checked: {
@@ -4288,7 +4367,7 @@ const errors$1 = /*#__PURE__*/definePartsStyle$4({
4288
4367
  fontSize: '12px'
4289
4368
  }
4290
4369
  });
4291
- const unstyled$2 = /*#__PURE__*/definePartsStyle$4({
4370
+ const unstyled$2 = /*#__PURE__*/definePartsStyle$5({
4292
4371
  control: {
4293
4372
  borderColor: 'neutral.600',
4294
4373
  _checked: {
@@ -4327,8 +4406,8 @@ const variants$3 = {
4327
4406
  errors: errors$1,
4328
4407
  unstyled: unstyled$2
4329
4408
  };
4330
- const Radio = /*#__PURE__*/defineMultiStyleConfig$3({
4331
- baseStyle: baseStyle$4,
4409
+ const Radio = /*#__PURE__*/defineMultiStyleConfig$4({
4410
+ baseStyle: baseStyle$5,
4332
4411
  variants: variants$3,
4333
4412
  defaultProps: {
4334
4413
  variant: 'unstyled'
@@ -4336,8 +4415,8 @@ const Radio = /*#__PURE__*/defineMultiStyleConfig$3({
4336
4415
  });
4337
4416
 
4338
4417
  const {
4339
- defineMultiStyleConfig: defineMultiStyleConfig$4,
4340
- definePartsStyle: definePartsStyle$5
4418
+ defineMultiStyleConfig: defineMultiStyleConfig$5,
4419
+ definePartsStyle: definePartsStyle$6
4341
4420
  } = /*#__PURE__*/styledSystem.createMultiStyleConfigHelpers(anatomy.switchAnatomy.keys);
4342
4421
  const $width = /*#__PURE__*/themeTools.cssVar('switch-track-width');
4343
4422
  const $height = /*#__PURE__*/themeTools.cssVar('switch-track-height');
@@ -4355,7 +4434,7 @@ const baseStyleThumb = /*#__PURE__*/styledSystem.defineStyle({
4355
4434
  transform: `translateX(${$translateX.reference})`
4356
4435
  }
4357
4436
  });
4358
- const baseStyle$5 = /*#__PURE__*/definePartsStyle$5(() => ({
4437
+ const baseStyle$6 = /*#__PURE__*/definePartsStyle$6(() => ({
4359
4438
  container: {
4360
4439
  [$diff.variable]: diffValue,
4361
4440
  [$translateX.variable]: $diff.reference,
@@ -4380,27 +4459,39 @@ const baseStyle$5 = /*#__PURE__*/definePartsStyle$5(() => ({
4380
4459
  thumb: baseStyleThumb
4381
4460
  }));
4382
4461
  const sizes$1 = {
4383
- sm: /*#__PURE__*/definePartsStyle$5({
4462
+ sm: /*#__PURE__*/definePartsStyle$6({
4384
4463
  container: {
4385
- [$width.variable]: '2.125rem',
4386
- [$height.variable]: '1.063rem'
4464
+ [$width.variable]: '1.875rem',
4465
+ [$height.variable]: '0.75rem'
4466
+ },
4467
+ thumb: {
4468
+ [$width.variable]: '0.75rem',
4469
+ [$height.variable]: '0.75rem'
4387
4470
  }
4388
4471
  }),
4389
- md: /*#__PURE__*/definePartsStyle$5({
4472
+ md: /*#__PURE__*/definePartsStyle$6({
4390
4473
  container: {
4391
- [$width.variable]: '2.875rem',
4392
- [$height.variable]: '1.5rem'
4474
+ [$width.variable]: '2.375rem',
4475
+ [$height.variable]: '1rem'
4476
+ },
4477
+ thumb: {
4478
+ [$width.variable]: '1rem',
4479
+ [$height.variable]: '1rem'
4393
4480
  }
4394
4481
  }),
4395
- lg: /*#__PURE__*/definePartsStyle$5({
4482
+ lg: /*#__PURE__*/definePartsStyle$6({
4396
4483
  container: {
4397
- [$width.variable]: '3.625rem',
4398
- [$height.variable]: '1.813rem'
4484
+ [$width.variable]: '3.25rem',
4485
+ [$height.variable]: '1.375rem'
4486
+ },
4487
+ thumb: {
4488
+ [$width.variable]: '1.375rem',
4489
+ [$height.variable]: '1.375rem'
4399
4490
  }
4400
4491
  })
4401
4492
  };
4402
- const Switch$1 = /*#__PURE__*/defineMultiStyleConfig$4({
4403
- baseStyle: baseStyle$5,
4493
+ const Switch$1 = /*#__PURE__*/defineMultiStyleConfig$5({
4494
+ baseStyle: baseStyle$6,
4404
4495
  sizes: sizes$1,
4405
4496
  defaultProps: {
4406
4497
  size: 'md'
@@ -4408,10 +4499,10 @@ const Switch$1 = /*#__PURE__*/defineMultiStyleConfig$4({
4408
4499
  });
4409
4500
 
4410
4501
  const {
4411
- defineMultiStyleConfig: defineMultiStyleConfig$5,
4412
- definePartsStyle: definePartsStyle$6
4502
+ defineMultiStyleConfig: defineMultiStyleConfig$6,
4503
+ definePartsStyle: definePartsStyle$7
4413
4504
  } = /*#__PURE__*/styledSystem.createMultiStyleConfigHelpers(anatomy.tableAnatomy.keys);
4414
- const baseStyle$6 = /*#__PURE__*/definePartsStyle$6({
4505
+ const baseStyle$7 = /*#__PURE__*/definePartsStyle$7({
4415
4506
  table: {
4416
4507
  fontVariantNumeric: 'lining-nums tabular-nums',
4417
4508
  borderCollapse: 'collapse',
@@ -4444,7 +4535,7 @@ const numericStyles = /*#__PURE__*/styledSystem.defineStyle({
4444
4535
  textAlign: 'end'
4445
4536
  }
4446
4537
  });
4447
- const variantSimple = /*#__PURE__*/definePartsStyle$6(props => {
4538
+ const variantSimple = /*#__PURE__*/definePartsStyle$7(props => {
4448
4539
  const {
4449
4540
  colorScheme: c
4450
4541
  } = props;
@@ -4474,7 +4565,7 @@ const variantSimple = /*#__PURE__*/definePartsStyle$6(props => {
4474
4565
  }
4475
4566
  };
4476
4567
  });
4477
- const variantStripe = /*#__PURE__*/definePartsStyle$6(props => {
4568
+ const variantStripe = /*#__PURE__*/definePartsStyle$7(props => {
4478
4569
  const {
4479
4570
  colorScheme: c
4480
4571
  } = props;
@@ -4523,7 +4614,7 @@ const variants$4 = {
4523
4614
  unstyled: /*#__PURE__*/styledSystem.defineStyle({})
4524
4615
  };
4525
4616
  const sizes$2 = {
4526
- sm: /*#__PURE__*/definePartsStyle$6({
4617
+ sm: /*#__PURE__*/definePartsStyle$7({
4527
4618
  th: {
4528
4619
  px: '4',
4529
4620
  py: '1',
@@ -4542,7 +4633,7 @@ const sizes$2 = {
4542
4633
  fontSize: 'xs'
4543
4634
  }
4544
4635
  }),
4545
- md: /*#__PURE__*/definePartsStyle$6({
4636
+ md: /*#__PURE__*/definePartsStyle$7({
4546
4637
  th: {
4547
4638
  px: '2',
4548
4639
  py: '4',
@@ -4572,7 +4663,7 @@ const sizes$2 = {
4572
4663
  fontSize: 'sm'
4573
4664
  }
4574
4665
  }),
4575
- lg: /*#__PURE__*/definePartsStyle$6({
4666
+ lg: /*#__PURE__*/definePartsStyle$7({
4576
4667
  th: {
4577
4668
  px: '8',
4578
4669
  py: '4',
@@ -4591,8 +4682,8 @@ const sizes$2 = {
4591
4682
  }
4592
4683
  })
4593
4684
  };
4594
- const tableTheme = /*#__PURE__*/defineMultiStyleConfig$5({
4595
- baseStyle: baseStyle$6,
4685
+ const tableTheme = /*#__PURE__*/defineMultiStyleConfig$6({
4686
+ baseStyle: baseStyle$7,
4596
4687
  variants: variants$4,
4597
4688
  sizes: sizes$2,
4598
4689
  defaultProps: {
@@ -4685,6 +4776,7 @@ const Textarea = /*#__PURE__*/react.defineStyleConfig({
4685
4776
 
4686
4777
  var components = {
4687
4778
  __proto__: null,
4779
+ Accordion: accordionTheme,
4688
4780
  Alert: alertTheme,
4689
4781
  Badge: Badge$1,
4690
4782
  Button: Button$1,
@@ -4713,8 +4805,17 @@ const getTheme = foundations => {
4713
4805
  },
4714
4806
  styles: {
4715
4807
  global: {
4716
- '*::-webkit-scrollbar-thumb': {
4717
- background: 'neutral.400'
4808
+ '&::-webkit-scrollbar': {
4809
+ width: '10px',
4810
+ height: '10px'
4811
+ },
4812
+ '&::-webkit-scrollbar-track': {
4813
+ background: 'white'
4814
+ },
4815
+ '&::-webkit-scrollbar-thumb': {
4816
+ background: 'neutral.400',
4817
+ borderRadius: '24px',
4818
+ border: '2px solid white'
4718
4819
  },
4719
4820
  body: {
4720
4821
  fontSize: 'text.sm',
@@ -4774,7 +4875,7 @@ const Provider = ({
4774
4875
  }), []);
4775
4876
  return /*#__PURE__*/React__default.createElement(ProviderContext.Provider, {
4776
4877
  value: provider
4777
- }, children);
4878
+ }, /*#__PURE__*/React__default.createElement(reactToastify.ToastContainer, null), children);
4778
4879
  };
4779
4880
  Provider.displayName = 'Provider';
4780
4881