@vygruppen/spor-react 10.6.1 → 10.6.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@10.6.1 build
2
+ > @vygruppen/spor-react@10.6.2 build
3
3
  > tsup src/index.tsx --dts --treeshake --format cjs,esm
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -9,12 +9,12 @@
9
9
  CJS Build start
10
10
  ESM Build start
11
11
  DTS Build start
12
+ CJS dist/index.js 538.50 KB
13
+ CJS ⚡️ Build success in 2340ms
12
14
  ESM dist/index.mjs 2.16 KB
13
- ESM dist/CountryCodeSelect-SIB4RO26.mjs 1.22 KB
14
- ESM dist/chunk-RQ4CWVFZ.mjs 425.08 KB
15
- ESM ⚡️ Build success in 2278ms
16
- CJS dist/index.js 538.54 KB
17
- CJS ⚡️ Build success in 2279ms
18
- DTS ⚡️ Build success in 15683ms
19
- DTS dist/index.d.ts 339.80 KB
20
- DTS dist/index.d.mts 339.80 KB
15
+ ESM dist/CountryCodeSelect-ANPDQEJN.mjs 1.22 KB
16
+ ESM dist/chunk-CILVSJHM.mjs 425.04 KB
17
+ ESM ⚡️ Build success in 2341ms
18
+ DTS ⚡️ Build success in 16295ms
19
+ DTS dist/index.d.ts 339.85 KB
20
+ DTS dist/index.d.mts 339.85 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 10.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 297ab85: ServiceAlert: Fix bug with border
8
+
3
9
  ## 10.6.1
4
10
 
5
11
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-RQ4CWVFZ.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-CILVSJHM.mjs';
2
2
  import React from 'react';
3
3
  import { getSupportedCallingCodes } from 'awesome-phonenumber';
4
4
 
@@ -1841,7 +1841,7 @@ var texts4 = createTexts({
1841
1841
  sv: "Landskod"
1842
1842
  }
1843
1843
  });
1844
- var LazyCountryCodeSelect = React85__default.lazy(() => import('./CountryCodeSelect-SIB4RO26.mjs'));
1844
+ var LazyCountryCodeSelect = React85__default.lazy(() => import('./CountryCodeSelect-ANPDQEJN.mjs'));
1845
1845
  var Radio = forwardRef((props, ref) => {
1846
1846
  return /* @__PURE__ */ React85__default.createElement(Radio$1, { ...props, ref });
1847
1847
  });
@@ -2868,14 +2868,14 @@ var ServiceAlert = ({
2868
2868
  variant = "service";
2869
2869
  const { t: t2 } = useTranslation();
2870
2870
  const styles3 = useMultiStyleConfig("AlertService");
2871
- return /* @__PURE__ */ React85__default.createElement(Box, { flexDirection: "column", sx: styles3.box }, /* @__PURE__ */ React85__default.createElement(
2871
+ return /* @__PURE__ */ React85__default.createElement(
2872
2872
  BaseAlert,
2873
2873
  {
2874
2874
  variant,
2875
2875
  ...boxProps,
2876
2876
  paddingX: 0,
2877
2877
  paddingY: 0,
2878
- sx: styles3.box
2878
+ sx: styles3.outerBox
2879
2879
  },
2880
2880
  /* @__PURE__ */ React85__default.createElement(
2881
2881
  Accordion$1,
@@ -2883,7 +2883,9 @@ var ServiceAlert = ({
2883
2883
  onChange: (expandedIndex) => onToggle(expandedIndex === 0),
2884
2884
  defaultIndex: defaultOpen ? 0 : -1,
2885
2885
  allowToggle: true,
2886
- flexGrow: "1"
2886
+ flexGrow: 1,
2887
+ sx: { outline: "none" },
2888
+ variant
2887
2889
  },
2888
2890
  /* @__PURE__ */ React85__default.createElement(AccordionItem, null, /* @__PURE__ */ React85__default.createElement(AccordionButton, { sx: styles3.container }, /* @__PURE__ */ React85__default.createElement(
2889
2891
  Stack$1,
@@ -2891,14 +2893,14 @@ var ServiceAlert = ({
2891
2893
  flexDirection: "row",
2892
2894
  justifyContent: "center",
2893
2895
  width: "100%",
2894
- paddingX: "12px"
2896
+ paddingX: 2
2895
2897
  },
2896
2898
  /* @__PURE__ */ React85__default.createElement(
2897
2899
  Flex,
2898
2900
  {
2899
2901
  justifyContent: "space-between",
2900
2902
  alignItems: "center",
2901
- flexGrow: "1",
2903
+ flexGrow: 1,
2902
2904
  maxWidth: contentWidth
2903
2905
  },
2904
2906
  /* @__PURE__ */ React85__default.createElement(Flex, { as: headingLevel, alignItems: "center" }, /* @__PURE__ */ React85__default.createElement(AlertIcon, { variant }), /* @__PURE__ */ React85__default.createElement(
@@ -2919,11 +2921,11 @@ var ServiceAlert = ({
2919
2921
  /* @__PURE__ */ React85__default.createElement(Flex, { alignItems: "center" }, notification && /* @__PURE__ */ React85__default.createElement(Text, { sx: styles3.notificationText }, t2(texts12.notification(notification))), /* @__PURE__ */ React85__default.createElement(AccordionIcon, { color: "white" }))
2920
2922
  )
2921
2923
  )), /* @__PURE__ */ React85__default.createElement(AccordionPanel, { sx: styles3.serviceMessageContent }, /* @__PURE__ */ React85__default.createElement(Stack$1, { flexDirection: "row", justifyContent: "center", width: "100%" }, /* @__PURE__ */ React85__default.createElement(
2922
- Flex,
2924
+ Stack$1,
2923
2925
  {
2924
- justifyContent: "space-between",
2926
+ justifyContent: "center",
2925
2927
  alignItems: "center",
2926
- flexGrow: "1",
2928
+ flexGrow: 1,
2927
2929
  maxWidth: contentWidth,
2928
2930
  flexFlow: "column",
2929
2931
  gap: 2,
@@ -2940,7 +2942,7 @@ var ServiceAlert = ({
2940
2942
  children
2941
2943
  ))))
2942
2944
  )
2943
- ));
2945
+ );
2944
2946
  };
2945
2947
  var texts12 = createTexts({
2946
2948
  notification: (notification) => {
@@ -10869,7 +10871,7 @@ var alert_expandable_default = config4;
10869
10871
  // src/theme/components/alert-service.ts
10870
10872
  var parts3 = anatomy("alertService").parts(
10871
10873
  "container",
10872
- "box",
10874
+ "outerBox",
10873
10875
  "notificationText",
10874
10876
  "serviceMessageContent"
10875
10877
  );
@@ -10883,7 +10885,7 @@ var config5 = helpers4.defineMultiStyleConfig({
10883
10885
  transitionProperty: "outline, border-radius",
10884
10886
  transitionDuration: "fast",
10885
10887
  borderTopRadius: "none",
10886
- borderBottomRadius: "18px",
10888
+ borderBottomRadius: "md",
10887
10889
  _hover: {
10888
10890
  outline: "2px solid",
10889
10891
  outlineColor: "blueGreen"
@@ -10893,12 +10895,13 @@ var config5 = helpers4.defineMultiStyleConfig({
10893
10895
  outlineColor: "pine"
10894
10896
  }
10895
10897
  },
10896
- box: {
10898
+ outerBox: {
10897
10899
  outline: "1px solid",
10898
10900
  outlineColor: "blueGreen",
10899
10901
  backgroundColor: "darkTeal",
10900
- borderBottomRadius: "1.125rem",
10901
- borderTopRadius: "none"
10902
+ borderBottomRadius: "md",
10903
+ borderTopRadius: "none",
10904
+ width: "100%"
10902
10905
  },
10903
10906
  notificationText: {
10904
10907
  color: "white",
package/dist/index.d.mts CHANGED
@@ -2664,12 +2664,13 @@ declare const theme: {
2664
2664
  outlineColor: string;
2665
2665
  };
2666
2666
  };
2667
- box: {
2667
+ outerBox: {
2668
2668
  outline: string;
2669
2669
  outlineColor: string;
2670
2670
  backgroundColor: string;
2671
2671
  borderBottomRadius: string;
2672
2672
  borderTopRadius: string;
2673
+ width: string;
2673
2674
  };
2674
2675
  notificationText: {
2675
2676
  color: string;
@@ -2686,12 +2687,12 @@ declare const theme: {
2686
2687
  } | undefined;
2687
2688
  sizes?: {
2688
2689
  [key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
2689
- keys: ("container" | "box" | "serviceMessageContent" | "notificationText")[];
2690
+ keys: ("container" | "outerBox" | "serviceMessageContent" | "notificationText")[];
2690
2691
  }>;
2691
2692
  } | undefined;
2692
2693
  variants?: {
2693
2694
  [key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
2694
- keys: ("container" | "box" | "serviceMessageContent" | "notificationText")[];
2695
+ keys: ("container" | "outerBox" | "serviceMessageContent" | "notificationText")[];
2695
2696
  }>;
2696
2697
  } | undefined;
2697
2698
  defaultProps?: {
@@ -2699,7 +2700,7 @@ declare const theme: {
2699
2700
  variant?: string | number | undefined;
2700
2701
  colorScheme?: string | undefined;
2701
2702
  } | undefined;
2702
- parts: ("container" | "box" | "serviceMessageContent" | "notificationText")[];
2703
+ parts: ("container" | "outerBox" | "serviceMessageContent" | "notificationText")[];
2703
2704
  };
2704
2705
  Badge: {
2705
2706
  baseStyle?: (({ colorScheme }: _chakra_ui_styled_system.StyleFunctionProps) => {
package/dist/index.d.ts CHANGED
@@ -2664,12 +2664,13 @@ declare const theme: {
2664
2664
  outlineColor: string;
2665
2665
  };
2666
2666
  };
2667
- box: {
2667
+ outerBox: {
2668
2668
  outline: string;
2669
2669
  outlineColor: string;
2670
2670
  backgroundColor: string;
2671
2671
  borderBottomRadius: string;
2672
2672
  borderTopRadius: string;
2673
+ width: string;
2673
2674
  };
2674
2675
  notificationText: {
2675
2676
  color: string;
@@ -2686,12 +2687,12 @@ declare const theme: {
2686
2687
  } | undefined;
2687
2688
  sizes?: {
2688
2689
  [key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
2689
- keys: ("container" | "box" | "serviceMessageContent" | "notificationText")[];
2690
+ keys: ("container" | "outerBox" | "serviceMessageContent" | "notificationText")[];
2690
2691
  }>;
2691
2692
  } | undefined;
2692
2693
  variants?: {
2693
2694
  [key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
2694
- keys: ("container" | "box" | "serviceMessageContent" | "notificationText")[];
2695
+ keys: ("container" | "outerBox" | "serviceMessageContent" | "notificationText")[];
2695
2696
  }>;
2696
2697
  } | undefined;
2697
2698
  defaultProps?: {
@@ -2699,7 +2700,7 @@ declare const theme: {
2699
2700
  variant?: string | number | undefined;
2700
2701
  colorScheme?: string | undefined;
2701
2702
  } | undefined;
2702
- parts: ("container" | "box" | "serviceMessageContent" | "notificationText")[];
2703
+ parts: ("container" | "outerBox" | "serviceMessageContent" | "notificationText")[];
2703
2704
  };
2704
2705
  Badge: {
2705
2706
  baseStyle?: (({ colorScheme }: _chakra_ui_styled_system.StyleFunctionProps) => {
package/dist/index.js CHANGED
@@ -3390,14 +3390,14 @@ var init_ServiceAlert = __esm({
3390
3390
  variant = "service";
3391
3391
  const { t: t2 } = useTranslation();
3392
3392
  const styles3 = react.useMultiStyleConfig("AlertService");
3393
- return /* @__PURE__ */ React86__namespace.default.createElement(react.Box, { flexDirection: "column", sx: styles3.box }, /* @__PURE__ */ React86__namespace.default.createElement(
3393
+ return /* @__PURE__ */ React86__namespace.default.createElement(
3394
3394
  BaseAlert,
3395
3395
  {
3396
3396
  variant,
3397
3397
  ...boxProps,
3398
3398
  paddingX: 0,
3399
3399
  paddingY: 0,
3400
- sx: styles3.box
3400
+ sx: styles3.outerBox
3401
3401
  },
3402
3402
  /* @__PURE__ */ React86__namespace.default.createElement(
3403
3403
  react.Accordion,
@@ -3405,7 +3405,9 @@ var init_ServiceAlert = __esm({
3405
3405
  onChange: (expandedIndex) => onToggle(expandedIndex === 0),
3406
3406
  defaultIndex: defaultOpen ? 0 : -1,
3407
3407
  allowToggle: true,
3408
- flexGrow: "1"
3408
+ flexGrow: 1,
3409
+ sx: { outline: "none" },
3410
+ variant
3409
3411
  },
3410
3412
  /* @__PURE__ */ React86__namespace.default.createElement(react.AccordionItem, null, /* @__PURE__ */ React86__namespace.default.createElement(react.AccordionButton, { sx: styles3.container }, /* @__PURE__ */ React86__namespace.default.createElement(
3411
3413
  react.Stack,
@@ -3413,14 +3415,14 @@ var init_ServiceAlert = __esm({
3413
3415
  flexDirection: "row",
3414
3416
  justifyContent: "center",
3415
3417
  width: "100%",
3416
- paddingX: "12px"
3418
+ paddingX: 2
3417
3419
  },
3418
3420
  /* @__PURE__ */ React86__namespace.default.createElement(
3419
3421
  react.Flex,
3420
3422
  {
3421
3423
  justifyContent: "space-between",
3422
3424
  alignItems: "center",
3423
- flexGrow: "1",
3425
+ flexGrow: 1,
3424
3426
  maxWidth: contentWidth
3425
3427
  },
3426
3428
  /* @__PURE__ */ React86__namespace.default.createElement(react.Flex, { as: headingLevel, alignItems: "center" }, /* @__PURE__ */ React86__namespace.default.createElement(AlertIcon, { variant }), /* @__PURE__ */ React86__namespace.default.createElement(
@@ -3441,11 +3443,11 @@ var init_ServiceAlert = __esm({
3441
3443
  /* @__PURE__ */ React86__namespace.default.createElement(react.Flex, { alignItems: "center" }, notification && /* @__PURE__ */ React86__namespace.default.createElement(react.Text, { sx: styles3.notificationText }, t2(texts13.notification(notification))), /* @__PURE__ */ React86__namespace.default.createElement(react.AccordionIcon, { color: "white" }))
3442
3444
  )
3443
3445
  )), /* @__PURE__ */ React86__namespace.default.createElement(react.AccordionPanel, { sx: styles3.serviceMessageContent }, /* @__PURE__ */ React86__namespace.default.createElement(react.Stack, { flexDirection: "row", justifyContent: "center", width: "100%" }, /* @__PURE__ */ React86__namespace.default.createElement(
3444
- react.Flex,
3446
+ react.Stack,
3445
3447
  {
3446
- justifyContent: "space-between",
3448
+ justifyContent: "center",
3447
3449
  alignItems: "center",
3448
- flexGrow: "1",
3450
+ flexGrow: 1,
3449
3451
  maxWidth: contentWidth,
3450
3452
  flexFlow: "column",
3451
3453
  gap: 2,
@@ -3462,7 +3464,7 @@ var init_ServiceAlert = __esm({
3462
3464
  children
3463
3465
  ))))
3464
3466
  )
3465
- ));
3467
+ );
3466
3468
  };
3467
3469
  texts13 = createTexts({
3468
3470
  notification: (notification) => {
@@ -12258,7 +12260,7 @@ var init_alert_service = __esm({
12258
12260
  init_dist3();
12259
12261
  parts3 = anatomy("alertService").parts(
12260
12262
  "container",
12261
- "box",
12263
+ "outerBox",
12262
12264
  "notificationText",
12263
12265
  "serviceMessageContent"
12264
12266
  );
@@ -12272,7 +12274,7 @@ var init_alert_service = __esm({
12272
12274
  transitionProperty: "outline, border-radius",
12273
12275
  transitionDuration: "fast",
12274
12276
  borderTopRadius: "none",
12275
- borderBottomRadius: "18px",
12277
+ borderBottomRadius: "md",
12276
12278
  _hover: {
12277
12279
  outline: "2px solid",
12278
12280
  outlineColor: "blueGreen"
@@ -12282,12 +12284,13 @@ var init_alert_service = __esm({
12282
12284
  outlineColor: "pine"
12283
12285
  }
12284
12286
  },
12285
- box: {
12287
+ outerBox: {
12286
12288
  outline: "1px solid",
12287
12289
  outlineColor: "blueGreen",
12288
12290
  backgroundColor: "darkTeal",
12289
- borderBottomRadius: "1.125rem",
12290
- borderTopRadius: "none"
12291
+ borderBottomRadius: "md",
12292
+ borderTopRadius: "none",
12293
+ width: "100%"
12291
12294
  },
12292
12295
  notificationText: {
12293
12296
  color: "white",
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, CardSelect, CargonetLogo, Center, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, Collapse, ColorInlineLoader, ColorSpinner, Combobox, Container, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkMode, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, ModalHeader as DrawerHeader, DrawerOverlay, Expandable, ExpandableAlert, ExpandableItem, Fade, Flex, FloatingActionButton, FormControl, FormErrorMessage, FormHelperText, FormLabel, FullScreenDrawer, Grid, GridItem, HStack, Heading, IconButton, Image, Img, InfoSelect, InfoTag, Input, InputGroup, InputLeftElement, InputRightElement, Item, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightMode, LightSpinner, LineIcon, ListBox, ListItem, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, Nudge, NumericStepper, OrderedList, Pagination, PasswordInput, PhoneNumberInput, PlayPauseButton, Portal, PressableCard, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioCardGroupContext, RadioGroup, ScaleFade, SearchInput, Section, ServiceAlert, SimpleDrawer, SimpleGrid, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, StaticCard, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, Tooltip, Tr, TravelTag, UnorderedList, VStack, VyLogo, VyLogoPride, WizardNudge, Wrap, WrapItem, brandTheme, createTexts, defineStyleConfig, extendTheme, fontFaces, slugify, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useSize, useTheme, useToast, useToken, useTranslation } from './chunk-RQ4CWVFZ.mjs';
1
+ export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, CardSelect, CargonetLogo, Center, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, Collapse, ColorInlineLoader, ColorSpinner, Combobox, Container, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkMode, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, ModalHeader as DrawerHeader, DrawerOverlay, Expandable, ExpandableAlert, ExpandableItem, Fade, Flex, FloatingActionButton, FormControl, FormErrorMessage, FormHelperText, FormLabel, FullScreenDrawer, Grid, GridItem, HStack, Heading, IconButton, Image, Img, InfoSelect, InfoTag, Input, InputGroup, InputLeftElement, InputRightElement, Item, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightMode, LightSpinner, LineIcon, ListBox, ListItem, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, Nudge, NumericStepper, OrderedList, Pagination, PasswordInput, PhoneNumberInput, PlayPauseButton, Portal, PressableCard, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioCardGroupContext, RadioGroup, ScaleFade, SearchInput, Section, ServiceAlert, SimpleDrawer, SimpleGrid, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, StaticCard, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, Tooltip, Tr, TravelTag, UnorderedList, VStack, VyLogo, VyLogoPride, WizardNudge, Wrap, WrapItem, brandTheme, createTexts, defineStyleConfig, extendTheme, fontFaces, slugify, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useSize, useTheme, useToast, useToken, useTranslation } from './chunk-CILVSJHM.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "10.6.1",
3
+ "version": "10.6.2",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -60,92 +60,92 @@ export const ServiceAlert = ({
60
60
  const { t } = useTranslation();
61
61
  const styles = useMultiStyleConfig("AlertService");
62
62
  return (
63
- <Box flexDirection="column" sx={styles.box}>
64
- <BaseAlert
63
+ <BaseAlert
64
+ variant={variant}
65
+ {...boxProps}
66
+ paddingX={0}
67
+ paddingY={0}
68
+ sx={styles.outerBox}
69
+ >
70
+ <Accordion
71
+ onChange={(expandedIndex) => onToggle(expandedIndex === 0)}
72
+ defaultIndex={defaultOpen ? 0 : -1}
73
+ allowToggle
74
+ flexGrow={1}
75
+ sx={{ outline: "none" }}
65
76
  variant={variant}
66
- {...boxProps}
67
- paddingX={0}
68
- paddingY={0}
69
- sx={styles.box}
70
77
  >
71
- <Accordion
72
- onChange={(expandedIndex) => onToggle(expandedIndex === 0)}
73
- defaultIndex={defaultOpen ? 0 : -1}
74
- allowToggle
75
- flexGrow="1"
76
- >
77
- <AccordionItem>
78
- <AccordionButton sx={styles.container}>
79
- <Stack
80
- flexDirection="row"
81
- justifyContent="center"
82
- width="100%"
83
- paddingX="12px"
78
+ <AccordionItem>
79
+ <AccordionButton sx={styles.container}>
80
+ <Stack
81
+ flexDirection="row"
82
+ justifyContent="center"
83
+ width="100%"
84
+ paddingX={2}
85
+ >
86
+ <Flex
87
+ justifyContent="space-between"
88
+ alignItems="center"
89
+ flexGrow={1}
90
+ maxWidth={contentWidth}
84
91
  >
85
- <Flex
86
- justifyContent="space-between"
87
- alignItems="center"
88
- flexGrow="1"
89
- maxWidth={contentWidth}
90
- >
91
- <Flex as={headingLevel} alignItems="center">
92
- <AlertIcon variant={variant} />
92
+ <Flex as={headingLevel} alignItems="center">
93
+ <AlertIcon variant={variant} />
93
94
 
94
- <Box
95
- as="span"
96
- sx={{
97
- // Truncate the title to one line
98
- display: "-webkit-box",
99
- overflow: "hidden",
100
- WebkitLineClamp: "1",
101
- WebkitBoxOrient: "vertical",
102
- }}
103
- color="white"
104
- >
105
- {title}
106
- </Box>
107
- </Flex>
95
+ <Box
96
+ as="span"
97
+ sx={{
98
+ // Truncate the title to one line
99
+ display: "-webkit-box",
100
+ overflow: "hidden",
101
+ WebkitLineClamp: "1",
102
+ WebkitBoxOrient: "vertical",
103
+ }}
104
+ color="white"
105
+ >
106
+ {title}
107
+ </Box>
108
+ </Flex>
108
109
 
109
- <Flex alignItems="center">
110
- {notification && (
111
- <Text sx={styles.notificationText}>
112
- {t(texts.notification(notification))}
113
- </Text>
114
- )}
110
+ <Flex alignItems="center">
111
+ {notification && (
112
+ <Text sx={styles.notificationText}>
113
+ {t(texts.notification(notification))}
114
+ </Text>
115
+ )}
115
116
 
116
- <AccordionIcon color="white" />
117
- </Flex>
117
+ <AccordionIcon color="white" />
118
118
  </Flex>
119
- </Stack>
120
- </AccordionButton>
119
+ </Flex>
120
+ </Stack>
121
+ </AccordionButton>
121
122
 
122
- <AccordionPanel sx={styles.serviceMessageContent}>
123
- <Stack flexDirection="row" justifyContent="center" width="100%">
124
- <Flex
125
- justifyContent="space-between"
126
- alignItems="center"
127
- flexGrow="1"
128
- maxWidth={contentWidth}
129
- flexFlow="column"
130
- gap={2}
131
- sx={{
132
- p: {
133
- padding: "0.8rem 0",
134
- borderBottom: "0.08rem solid rgba(255, 255, 255, 0.4)",
135
- },
136
- "p:last-child": {
137
- borderBottom: "none",
138
- },
139
- }}
140
- >
141
- {children}
142
- </Flex>
123
+ <AccordionPanel sx={styles.serviceMessageContent}>
124
+ <Stack flexDirection="row" justifyContent="center" width="100%">
125
+ <Stack
126
+ justifyContent="center"
127
+ alignItems="center"
128
+ flexGrow={1}
129
+ maxWidth={contentWidth}
130
+ flexFlow="column"
131
+ gap={2}
132
+ sx={{
133
+ p: {
134
+ padding: "0.8rem 0",
135
+ borderBottom: "0.08rem solid rgba(255, 255, 255, 0.4)",
136
+ },
137
+ "p:last-child": {
138
+ borderBottom: "none",
139
+ },
140
+ }}
141
+ >
142
+ {children}
143
143
  </Stack>
144
- </AccordionPanel>
145
- </AccordionItem>
146
- </Accordion>
147
- </BaseAlert>
148
- </Box>
144
+ </Stack>
145
+ </AccordionPanel>
146
+ </AccordionItem>
147
+ </Accordion>
148
+ </BaseAlert>
149
149
  );
150
150
  };
151
151
 
@@ -3,7 +3,7 @@ import { createMultiStyleConfigHelpers } from "@chakra-ui/styled-system";
3
3
 
4
4
  const parts = anatomy("alertService").parts(
5
5
  "container",
6
- "box",
6
+ "outerBox",
7
7
  "notificationText",
8
8
  "serviceMessageContent",
9
9
  );
@@ -18,7 +18,7 @@ const config = helpers.defineMultiStyleConfig({
18
18
  transitionProperty: "outline, border-radius",
19
19
  transitionDuration: "fast",
20
20
  borderTopRadius: "none",
21
- borderBottomRadius: "18px",
21
+ borderBottomRadius: "md",
22
22
  _hover: {
23
23
  outline: "2px solid",
24
24
  outlineColor: "blueGreen",
@@ -28,12 +28,13 @@ const config = helpers.defineMultiStyleConfig({
28
28
  outlineColor: "pine",
29
29
  },
30
30
  },
31
- box: {
31
+ outerBox: {
32
32
  outline: "1px solid",
33
33
  outlineColor: "blueGreen",
34
34
  backgroundColor: "darkTeal",
35
- borderBottomRadius: "1.125rem",
35
+ borderBottomRadius: "md",
36
36
  borderTopRadius: "none",
37
+ width: "100%",
37
38
  },
38
39
  notificationText: {
39
40
  color: "white",