@vygruppen/spor-react 10.6.0 → 10.6.1

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.0 build
2
+ > @vygruppen/spor-react@10.6.1 build
3
3
  > tsup src/index.tsx --dts --treeshake --format cjs,esm
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -10,11 +10,11 @@
10
10
  ESM Build start
11
11
  DTS Build start
12
12
  ESM dist/index.mjs 2.16 KB
13
- ESM dist/CountryCodeSelect-R27DZ2PB.mjs 1.22 KB
14
- ESM dist/chunk-WSGO53OP.mjs 424.74 KB
15
- ESM ⚡️ Build success in 2252ms
16
- CJS dist/index.js 538.15 KB
17
- CJS ⚡️ Build success in 2253ms
18
- DTS ⚡️ Build success in 15042ms
19
- DTS dist/index.d.ts 339.27 KB
20
- DTS dist/index.d.mts 339.27 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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 10.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 22459d4: Added outline color of ExpandableAlert like the design
8
+
3
9
  ## 10.6.0
4
10
 
5
11
  ### Minor Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-WSGO53OP.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-RQ4CWVFZ.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-R27DZ2PB.mjs'));
1844
+ var LazyCountryCodeSelect = React85__default.lazy(() => import('./CountryCodeSelect-SIB4RO26.mjs'));
1845
1845
  var Radio = forwardRef((props, ref) => {
1846
1846
  return /* @__PURE__ */ React85__default.createElement(Radio$1, { ...props, ref });
1847
1847
  });
@@ -2815,7 +2815,7 @@ var ExpandableAlert = ({
2815
2815
  allowToggle: true,
2816
2816
  flexGrow: "1"
2817
2817
  },
2818
- /* @__PURE__ */ React85__default.createElement(AccordionItem, null, /* @__PURE__ */ React85__default.createElement(AccordionButton, { sx: styles3.container }, /* @__PURE__ */ React85__default.createElement(
2818
+ /* @__PURE__ */ React85__default.createElement(AccordionItem, { sx: styles3.accordion }, /* @__PURE__ */ React85__default.createElement(AccordionButton, { sx: styles3.container }, /* @__PURE__ */ React85__default.createElement(
2819
2819
  Flex,
2820
2820
  {
2821
2821
  justifyContent: "space-between",
@@ -10765,7 +10765,7 @@ var config3 = helpers2.defineMultiStyleConfig({
10765
10765
  var alert_default = config3;
10766
10766
 
10767
10767
  // src/theme/components/alert-expandable.ts
10768
- var parts2 = anatomy("alertExpandable").parts("container");
10768
+ var parts2 = anatomy("alertExpandable").parts("container", "accordion");
10769
10769
  var helpers3 = createMultiStyleConfigHelpers(parts2.keys);
10770
10770
  var config4 = helpers3.defineMultiStyleConfig({
10771
10771
  baseStyle: {
@@ -10785,6 +10785,9 @@ var config4 = helpers3.defineMultiStyleConfig({
10785
10785
  },
10786
10786
  variants: {
10787
10787
  info: {
10788
+ accordion: {
10789
+ outlineColor: "cloudy"
10790
+ },
10788
10791
  container: {
10789
10792
  _hover: {
10790
10793
  outlineColor: "sky"
@@ -10795,6 +10798,9 @@ var config4 = helpers3.defineMultiStyleConfig({
10795
10798
  }
10796
10799
  },
10797
10800
  success: {
10801
+ accordion: {
10802
+ outlineColor: "coralGreen"
10803
+ },
10798
10804
  container: {
10799
10805
  _hover: {
10800
10806
  outlineColor: "blueGreen"
@@ -10805,6 +10811,9 @@ var config4 = helpers3.defineMultiStyleConfig({
10805
10811
  }
10806
10812
  },
10807
10813
  warning: {
10814
+ accordion: {
10815
+ outlineColor: "primrose"
10816
+ },
10808
10817
  container: {
10809
10818
  _hover: {
10810
10819
  outlineColor: "sunshine"
@@ -10815,6 +10824,9 @@ var config4 = helpers3.defineMultiStyleConfig({
10815
10824
  }
10816
10825
  },
10817
10826
  "alt-transport": {
10827
+ accordion: {
10828
+ outlineColor: "burntYellow"
10829
+ },
10818
10830
  container: {
10819
10831
  _hover: {
10820
10832
  outlineColor: "golden"
@@ -10825,6 +10837,9 @@ var config4 = helpers3.defineMultiStyleConfig({
10825
10837
  }
10826
10838
  },
10827
10839
  error: {
10840
+ accordion: {
10841
+ outlineColor: "salmon"
10842
+ },
10828
10843
  container: {
10829
10844
  _hover: {
10830
10845
  outlineColor: "apricot"
package/dist/index.d.mts CHANGED
@@ -2558,11 +2558,14 @@ declare const theme: {
2558
2558
  } | undefined;
2559
2559
  sizes?: {
2560
2560
  [key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
2561
- keys: "container"[];
2561
+ keys: ("container" | "accordion")[];
2562
2562
  }>;
2563
2563
  } | undefined;
2564
2564
  variants?: {
2565
2565
  info: {
2566
+ accordion: {
2567
+ outlineColor: string;
2568
+ };
2566
2569
  container: {
2567
2570
  _hover: {
2568
2571
  outlineColor: string;
@@ -2573,6 +2576,9 @@ declare const theme: {
2573
2576
  };
2574
2577
  };
2575
2578
  success: {
2579
+ accordion: {
2580
+ outlineColor: string;
2581
+ };
2576
2582
  container: {
2577
2583
  _hover: {
2578
2584
  outlineColor: string;
@@ -2583,6 +2589,9 @@ declare const theme: {
2583
2589
  };
2584
2590
  };
2585
2591
  warning: {
2592
+ accordion: {
2593
+ outlineColor: string;
2594
+ };
2586
2595
  container: {
2587
2596
  _hover: {
2588
2597
  outlineColor: string;
@@ -2593,6 +2602,9 @@ declare const theme: {
2593
2602
  };
2594
2603
  };
2595
2604
  "alt-transport": {
2605
+ accordion: {
2606
+ outlineColor: string;
2607
+ };
2596
2608
  container: {
2597
2609
  _hover: {
2598
2610
  outlineColor: string;
@@ -2603,6 +2615,9 @@ declare const theme: {
2603
2615
  };
2604
2616
  };
2605
2617
  error: {
2618
+ accordion: {
2619
+ outlineColor: string;
2620
+ };
2606
2621
  container: {
2607
2622
  _hover: {
2608
2623
  outlineColor: string;
@@ -2628,7 +2643,7 @@ declare const theme: {
2628
2643
  variant?: "error" | "info" | "success" | "warning" | "alt-transport" | "service" | undefined;
2629
2644
  colorScheme?: string | undefined;
2630
2645
  } | undefined;
2631
- parts: "container"[];
2646
+ parts: ("container" | "accordion")[];
2632
2647
  };
2633
2648
  AlertService: {
2634
2649
  baseStyle?: {
package/dist/index.d.ts CHANGED
@@ -2558,11 +2558,14 @@ declare const theme: {
2558
2558
  } | undefined;
2559
2559
  sizes?: {
2560
2560
  [key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
2561
- keys: "container"[];
2561
+ keys: ("container" | "accordion")[];
2562
2562
  }>;
2563
2563
  } | undefined;
2564
2564
  variants?: {
2565
2565
  info: {
2566
+ accordion: {
2567
+ outlineColor: string;
2568
+ };
2566
2569
  container: {
2567
2570
  _hover: {
2568
2571
  outlineColor: string;
@@ -2573,6 +2576,9 @@ declare const theme: {
2573
2576
  };
2574
2577
  };
2575
2578
  success: {
2579
+ accordion: {
2580
+ outlineColor: string;
2581
+ };
2576
2582
  container: {
2577
2583
  _hover: {
2578
2584
  outlineColor: string;
@@ -2583,6 +2589,9 @@ declare const theme: {
2583
2589
  };
2584
2590
  };
2585
2591
  warning: {
2592
+ accordion: {
2593
+ outlineColor: string;
2594
+ };
2586
2595
  container: {
2587
2596
  _hover: {
2588
2597
  outlineColor: string;
@@ -2593,6 +2602,9 @@ declare const theme: {
2593
2602
  };
2594
2603
  };
2595
2604
  "alt-transport": {
2605
+ accordion: {
2606
+ outlineColor: string;
2607
+ };
2596
2608
  container: {
2597
2609
  _hover: {
2598
2610
  outlineColor: string;
@@ -2603,6 +2615,9 @@ declare const theme: {
2603
2615
  };
2604
2616
  };
2605
2617
  error: {
2618
+ accordion: {
2619
+ outlineColor: string;
2620
+ };
2606
2621
  container: {
2607
2622
  _hover: {
2608
2623
  outlineColor: string;
@@ -2628,7 +2643,7 @@ declare const theme: {
2628
2643
  variant?: "error" | "info" | "success" | "warning" | "alt-transport" | "service" | undefined;
2629
2644
  colorScheme?: string | undefined;
2630
2645
  } | undefined;
2631
- parts: "container"[];
2646
+ parts: ("container" | "accordion")[];
2632
2647
  };
2633
2648
  AlertService: {
2634
2649
  baseStyle?: {
package/dist/index.js CHANGED
@@ -3322,7 +3322,7 @@ var init_ExpandableAlert = __esm({
3322
3322
  allowToggle: true,
3323
3323
  flexGrow: "1"
3324
3324
  },
3325
- /* @__PURE__ */ React86__namespace.default.createElement(react.AccordionItem, null, /* @__PURE__ */ React86__namespace.default.createElement(react.AccordionButton, { sx: styles3.container }, /* @__PURE__ */ React86__namespace.default.createElement(
3325
+ /* @__PURE__ */ React86__namespace.default.createElement(react.AccordionItem, { sx: styles3.accordion }, /* @__PURE__ */ React86__namespace.default.createElement(react.AccordionButton, { sx: styles3.container }, /* @__PURE__ */ React86__namespace.default.createElement(
3326
3326
  react.Flex,
3327
3327
  {
3328
3328
  justifyContent: "space-between",
@@ -12147,7 +12147,7 @@ var init_alert_expandable = __esm({
12147
12147
  "src/theme/components/alert-expandable.ts"() {
12148
12148
  init_dist4();
12149
12149
  init_dist3();
12150
- parts2 = anatomy("alertExpandable").parts("container");
12150
+ parts2 = anatomy("alertExpandable").parts("container", "accordion");
12151
12151
  helpers3 = createMultiStyleConfigHelpers(parts2.keys);
12152
12152
  config4 = helpers3.defineMultiStyleConfig({
12153
12153
  baseStyle: {
@@ -12167,6 +12167,9 @@ var init_alert_expandable = __esm({
12167
12167
  },
12168
12168
  variants: {
12169
12169
  info: {
12170
+ accordion: {
12171
+ outlineColor: "cloudy"
12172
+ },
12170
12173
  container: {
12171
12174
  _hover: {
12172
12175
  outlineColor: "sky"
@@ -12177,6 +12180,9 @@ var init_alert_expandable = __esm({
12177
12180
  }
12178
12181
  },
12179
12182
  success: {
12183
+ accordion: {
12184
+ outlineColor: "coralGreen"
12185
+ },
12180
12186
  container: {
12181
12187
  _hover: {
12182
12188
  outlineColor: "blueGreen"
@@ -12187,6 +12193,9 @@ var init_alert_expandable = __esm({
12187
12193
  }
12188
12194
  },
12189
12195
  warning: {
12196
+ accordion: {
12197
+ outlineColor: "primrose"
12198
+ },
12190
12199
  container: {
12191
12200
  _hover: {
12192
12201
  outlineColor: "sunshine"
@@ -12197,6 +12206,9 @@ var init_alert_expandable = __esm({
12197
12206
  }
12198
12207
  },
12199
12208
  "alt-transport": {
12209
+ accordion: {
12210
+ outlineColor: "burntYellow"
12211
+ },
12200
12212
  container: {
12201
12213
  _hover: {
12202
12214
  outlineColor: "golden"
@@ -12207,6 +12219,9 @@ var init_alert_expandable = __esm({
12207
12219
  }
12208
12220
  },
12209
12221
  error: {
12222
+ accordion: {
12223
+ outlineColor: "salmon"
12224
+ },
12210
12225
  container: {
12211
12226
  _hover: {
12212
12227
  outlineColor: "apricot"
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-WSGO53OP.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-RQ4CWVFZ.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "10.6.0",
3
+ "version": "10.6.1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -54,7 +54,7 @@ export const ExpandableAlert = ({
54
54
  allowToggle
55
55
  flexGrow="1"
56
56
  >
57
- <AccordionItem>
57
+ <AccordionItem sx={styles.accordion}>
58
58
  <AccordionButton sx={styles.container}>
59
59
  <Flex
60
60
  justifyContent="space-between"
@@ -1,7 +1,7 @@
1
1
  import { anatomy } from "@chakra-ui/anatomy";
2
2
  import { createMultiStyleConfigHelpers } from "@chakra-ui/styled-system";
3
3
 
4
- const parts = anatomy("alertExpandable").parts("container");
4
+ const parts = anatomy("alertExpandable").parts("container", "accordion");
5
5
  const helpers = createMultiStyleConfigHelpers(parts.keys);
6
6
 
7
7
  const config = helpers.defineMultiStyleConfig({
@@ -22,6 +22,9 @@ const config = helpers.defineMultiStyleConfig({
22
22
  },
23
23
  variants: {
24
24
  info: {
25
+ accordion: {
26
+ outlineColor: "cloudy",
27
+ },
25
28
  container: {
26
29
  _hover: {
27
30
  outlineColor: "sky",
@@ -32,6 +35,9 @@ const config = helpers.defineMultiStyleConfig({
32
35
  },
33
36
  },
34
37
  success: {
38
+ accordion: {
39
+ outlineColor: "coralGreen",
40
+ },
35
41
  container: {
36
42
  _hover: {
37
43
  outlineColor: "blueGreen",
@@ -42,6 +48,9 @@ const config = helpers.defineMultiStyleConfig({
42
48
  },
43
49
  },
44
50
  warning: {
51
+ accordion: {
52
+ outlineColor: "primrose",
53
+ },
45
54
  container: {
46
55
  _hover: {
47
56
  outlineColor: "sunshine",
@@ -52,6 +61,9 @@ const config = helpers.defineMultiStyleConfig({
52
61
  },
53
62
  },
54
63
  "alt-transport": {
64
+ accordion: {
65
+ outlineColor: "burntYellow",
66
+ },
55
67
  container: {
56
68
  _hover: {
57
69
  outlineColor: "golden",
@@ -62,6 +74,9 @@ const config = helpers.defineMultiStyleConfig({
62
74
  },
63
75
  },
64
76
  error: {
77
+ accordion: {
78
+ outlineColor: "salmon",
79
+ },
65
80
  container: {
66
81
  _hover: {
67
82
  outlineColor: "apricot",