@ctlyst.id/internal-ui 2.1.5 → 2.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: {
@@ -4135,6 +4197,9 @@ const rotate = /*#__PURE__*/react$1.keyframes({
4135
4197
  }
4136
4198
  });
4137
4199
  const getLoaderColor = color => {
4200
+ if (!color) {
4201
+ return 'var(--chakra-colors-white-high)';
4202
+ }
4138
4203
  const colorValue = color.split('.');
4139
4204
  let backgroundColor;
4140
4205
  switch (colorValue.length) {
@@ -4237,10 +4302,10 @@ const LoaderStyle = /*#__PURE__*/styledSystem.defineStyleConfig({
4237
4302
  });
4238
4303
 
4239
4304
  const {
4240
- definePartsStyle: definePartsStyle$3
4305
+ definePartsStyle: definePartsStyle$4
4241
4306
  } = /*#__PURE__*/styledSystem.createMultiStyleConfigHelpers(anatomy.popoverAnatomy.keys);
4242
4307
  const Popover = {
4243
- baseStyle: props => definePartsStyle$3({
4308
+ baseStyle: props => definePartsStyle$4({
4244
4309
  popper: {
4245
4310
  background: themeTools.mode('white', 'inherit')(props)
4246
4311
  }
@@ -4248,10 +4313,10 @@ const Popover = {
4248
4313
  };
4249
4314
 
4250
4315
  const {
4251
- definePartsStyle: definePartsStyle$4,
4252
- defineMultiStyleConfig: defineMultiStyleConfig$3
4316
+ definePartsStyle: definePartsStyle$5,
4317
+ defineMultiStyleConfig: defineMultiStyleConfig$4
4253
4318
  } = /*#__PURE__*/react.createMultiStyleConfigHelpers(anatomy.radioAnatomy.keys);
4254
- const baseStyle$4 = /*#__PURE__*/definePartsStyle$4({
4319
+ const baseStyle$5 = /*#__PURE__*/definePartsStyle$5({
4255
4320
  control: {
4256
4321
  border: '1px solid',
4257
4322
  width: '16px',
@@ -4267,7 +4332,7 @@ const baseStyle$4 = /*#__PURE__*/definePartsStyle$4({
4267
4332
  }
4268
4333
  }
4269
4334
  });
4270
- const errors$1 = /*#__PURE__*/definePartsStyle$4({
4335
+ const errors$1 = /*#__PURE__*/definePartsStyle$5({
4271
4336
  control: {
4272
4337
  borderColor: 'danger.500',
4273
4338
  _checked: {
@@ -4302,7 +4367,7 @@ const errors$1 = /*#__PURE__*/definePartsStyle$4({
4302
4367
  fontSize: '12px'
4303
4368
  }
4304
4369
  });
4305
- const unstyled$2 = /*#__PURE__*/definePartsStyle$4({
4370
+ const unstyled$2 = /*#__PURE__*/definePartsStyle$5({
4306
4371
  control: {
4307
4372
  borderColor: 'neutral.600',
4308
4373
  _checked: {
@@ -4341,8 +4406,8 @@ const variants$3 = {
4341
4406
  errors: errors$1,
4342
4407
  unstyled: unstyled$2
4343
4408
  };
4344
- const Radio = /*#__PURE__*/defineMultiStyleConfig$3({
4345
- baseStyle: baseStyle$4,
4409
+ const Radio = /*#__PURE__*/defineMultiStyleConfig$4({
4410
+ baseStyle: baseStyle$5,
4346
4411
  variants: variants$3,
4347
4412
  defaultProps: {
4348
4413
  variant: 'unstyled'
@@ -4350,8 +4415,8 @@ const Radio = /*#__PURE__*/defineMultiStyleConfig$3({
4350
4415
  });
4351
4416
 
4352
4417
  const {
4353
- defineMultiStyleConfig: defineMultiStyleConfig$4,
4354
- definePartsStyle: definePartsStyle$5
4418
+ defineMultiStyleConfig: defineMultiStyleConfig$5,
4419
+ definePartsStyle: definePartsStyle$6
4355
4420
  } = /*#__PURE__*/styledSystem.createMultiStyleConfigHelpers(anatomy.switchAnatomy.keys);
4356
4421
  const $width = /*#__PURE__*/themeTools.cssVar('switch-track-width');
4357
4422
  const $height = /*#__PURE__*/themeTools.cssVar('switch-track-height');
@@ -4369,7 +4434,7 @@ const baseStyleThumb = /*#__PURE__*/styledSystem.defineStyle({
4369
4434
  transform: `translateX(${$translateX.reference})`
4370
4435
  }
4371
4436
  });
4372
- const baseStyle$5 = /*#__PURE__*/definePartsStyle$5(() => ({
4437
+ const baseStyle$6 = /*#__PURE__*/definePartsStyle$6(() => ({
4373
4438
  container: {
4374
4439
  [$diff.variable]: diffValue,
4375
4440
  [$translateX.variable]: $diff.reference,
@@ -4394,27 +4459,39 @@ const baseStyle$5 = /*#__PURE__*/definePartsStyle$5(() => ({
4394
4459
  thumb: baseStyleThumb
4395
4460
  }));
4396
4461
  const sizes$1 = {
4397
- sm: /*#__PURE__*/definePartsStyle$5({
4462
+ sm: /*#__PURE__*/definePartsStyle$6({
4398
4463
  container: {
4399
- [$width.variable]: '2.125rem',
4400
- [$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'
4401
4470
  }
4402
4471
  }),
4403
- md: /*#__PURE__*/definePartsStyle$5({
4472
+ md: /*#__PURE__*/definePartsStyle$6({
4404
4473
  container: {
4405
- [$width.variable]: '2.875rem',
4406
- [$height.variable]: '1.5rem'
4474
+ [$width.variable]: '2.375rem',
4475
+ [$height.variable]: '1rem'
4476
+ },
4477
+ thumb: {
4478
+ [$width.variable]: '1rem',
4479
+ [$height.variable]: '1rem'
4407
4480
  }
4408
4481
  }),
4409
- lg: /*#__PURE__*/definePartsStyle$5({
4482
+ lg: /*#__PURE__*/definePartsStyle$6({
4410
4483
  container: {
4411
- [$width.variable]: '3.625rem',
4412
- [$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'
4413
4490
  }
4414
4491
  })
4415
4492
  };
4416
- const Switch$1 = /*#__PURE__*/defineMultiStyleConfig$4({
4417
- baseStyle: baseStyle$5,
4493
+ const Switch$1 = /*#__PURE__*/defineMultiStyleConfig$5({
4494
+ baseStyle: baseStyle$6,
4418
4495
  sizes: sizes$1,
4419
4496
  defaultProps: {
4420
4497
  size: 'md'
@@ -4422,10 +4499,10 @@ const Switch$1 = /*#__PURE__*/defineMultiStyleConfig$4({
4422
4499
  });
4423
4500
 
4424
4501
  const {
4425
- defineMultiStyleConfig: defineMultiStyleConfig$5,
4426
- definePartsStyle: definePartsStyle$6
4502
+ defineMultiStyleConfig: defineMultiStyleConfig$6,
4503
+ definePartsStyle: definePartsStyle$7
4427
4504
  } = /*#__PURE__*/styledSystem.createMultiStyleConfigHelpers(anatomy.tableAnatomy.keys);
4428
- const baseStyle$6 = /*#__PURE__*/definePartsStyle$6({
4505
+ const baseStyle$7 = /*#__PURE__*/definePartsStyle$7({
4429
4506
  table: {
4430
4507
  fontVariantNumeric: 'lining-nums tabular-nums',
4431
4508
  borderCollapse: 'collapse',
@@ -4458,7 +4535,7 @@ const numericStyles = /*#__PURE__*/styledSystem.defineStyle({
4458
4535
  textAlign: 'end'
4459
4536
  }
4460
4537
  });
4461
- const variantSimple = /*#__PURE__*/definePartsStyle$6(props => {
4538
+ const variantSimple = /*#__PURE__*/definePartsStyle$7(props => {
4462
4539
  const {
4463
4540
  colorScheme: c
4464
4541
  } = props;
@@ -4488,7 +4565,7 @@ const variantSimple = /*#__PURE__*/definePartsStyle$6(props => {
4488
4565
  }
4489
4566
  };
4490
4567
  });
4491
- const variantStripe = /*#__PURE__*/definePartsStyle$6(props => {
4568
+ const variantStripe = /*#__PURE__*/definePartsStyle$7(props => {
4492
4569
  const {
4493
4570
  colorScheme: c
4494
4571
  } = props;
@@ -4537,7 +4614,7 @@ const variants$4 = {
4537
4614
  unstyled: /*#__PURE__*/styledSystem.defineStyle({})
4538
4615
  };
4539
4616
  const sizes$2 = {
4540
- sm: /*#__PURE__*/definePartsStyle$6({
4617
+ sm: /*#__PURE__*/definePartsStyle$7({
4541
4618
  th: {
4542
4619
  px: '4',
4543
4620
  py: '1',
@@ -4556,7 +4633,7 @@ const sizes$2 = {
4556
4633
  fontSize: 'xs'
4557
4634
  }
4558
4635
  }),
4559
- md: /*#__PURE__*/definePartsStyle$6({
4636
+ md: /*#__PURE__*/definePartsStyle$7({
4560
4637
  th: {
4561
4638
  px: '2',
4562
4639
  py: '4',
@@ -4586,7 +4663,7 @@ const sizes$2 = {
4586
4663
  fontSize: 'sm'
4587
4664
  }
4588
4665
  }),
4589
- lg: /*#__PURE__*/definePartsStyle$6({
4666
+ lg: /*#__PURE__*/definePartsStyle$7({
4590
4667
  th: {
4591
4668
  px: '8',
4592
4669
  py: '4',
@@ -4605,8 +4682,8 @@ const sizes$2 = {
4605
4682
  }
4606
4683
  })
4607
4684
  };
4608
- const tableTheme = /*#__PURE__*/defineMultiStyleConfig$5({
4609
- baseStyle: baseStyle$6,
4685
+ const tableTheme = /*#__PURE__*/defineMultiStyleConfig$6({
4686
+ baseStyle: baseStyle$7,
4610
4687
  variants: variants$4,
4611
4688
  sizes: sizes$2,
4612
4689
  defaultProps: {
@@ -4699,6 +4776,7 @@ const Textarea = /*#__PURE__*/react.defineStyleConfig({
4699
4776
 
4700
4777
  var components = {
4701
4778
  __proto__: null,
4779
+ Accordion: accordionTheme,
4702
4780
  Alert: alertTheme,
4703
4781
  Badge: Badge$1,
4704
4782
  Button: Button$1,
@@ -4727,8 +4805,17 @@ const getTheme = foundations => {
4727
4805
  },
4728
4806
  styles: {
4729
4807
  global: {
4730
- '*::-webkit-scrollbar-thumb': {
4731
- 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'
4732
4819
  },
4733
4820
  body: {
4734
4821
  fontSize: 'text.sm',
@@ -4788,7 +4875,7 @@ const Provider = ({
4788
4875
  }), []);
4789
4876
  return /*#__PURE__*/React__default.createElement(ProviderContext.Provider, {
4790
4877
  value: provider
4791
- }, children);
4878
+ }, /*#__PURE__*/React__default.createElement(reactToastify.ToastContainer, null), children);
4792
4879
  };
4793
4880
  Provider.displayName = 'Provider';
4794
4881