@vygruppen/spor-react 5.5.0 → 6.0.0

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@5.5.0 build
2
+ > @vygruppen/spor-react@6.0.0 build
3
3
  > tsup src/index.tsx --dts --treeshake --format cjs,esm
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -10,13 +10,13 @@
10
10
  ESM Build start
11
11
  "Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/index.js".
12
12
  DTS Build start
13
- "Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/chunk-2L6AHVGG.mjs".
14
- CJS dist/index.js 507.36 KB
15
- CJS ⚡️ Build success in 2092ms
13
+ "Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/chunk-GAHDJA6T.mjs".
14
+ CJS dist/index.js 507.31 KB
15
+ CJS ⚡️ Build success in 2004ms
16
16
  ESM dist/index.mjs 2.16 KB
17
- ESM dist/CountryCodeSelect-KRCJWBUE.mjs 1.19 KB
18
- ESM dist/chunk-2L6AHVGG.mjs 397.95 KB
19
- ESM ⚡️ Build success in 2093ms
20
- DTS ⚡️ Build success in 12617ms
21
- DTS dist/index.d.ts 265.22 KB
22
- DTS dist/index.d.mts 265.22 KB
17
+ ESM dist/CountryCodeSelect-EM747ZM6.mjs 1.19 KB
18
+ ESM dist/chunk-GAHDJA6T.mjs 397.90 KB
19
+ ESM ⚡️ Build success in 2005ms
20
+ DTS ⚡️ Build success in 12323ms
21
+ DTS dist/index.d.ts 265.18 KB
22
+ DTS dist/index.d.mts 265.18 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 6.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - d8be7e4: CardSelect: _Breaking change_: We have changed some variant prop names, so it's aligned with the rest of the design system.
8
+ To migrate,. old "outline" has become "base" and old "card" is now "floating".
9
+
3
10
  ## 5.5.0
4
11
 
5
12
  ### Minor Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-2L6AHVGG.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-GAHDJA6T.mjs';
2
2
  import React from 'react';
3
3
  import { getSupportedCallingCodes } from 'awesome-phonenumber';
4
4
 
@@ -3427,7 +3427,7 @@ var texts14 = createTexts({
3427
3427
  sv: "Telefonnummer"
3428
3428
  }
3429
3429
  });
3430
- var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-KRCJWBUE.mjs'));
3430
+ var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-EM747ZM6.mjs'));
3431
3431
  var Radio = forwardRef((props, ref) => {
3432
3432
  return /* @__PURE__ */ React69__default.createElement(Radio$1, { ...props, ref });
3433
3433
  });
@@ -10583,8 +10583,7 @@ var config8 = helpers3.defineMultiStyleConfig({
10583
10583
  borderRadius: "sm",
10584
10584
  boxShadow: "md",
10585
10585
  padding: 3,
10586
- color: mode("darkGrey", "white")(props),
10587
- ...floatingBackground("default", props)
10586
+ color: mode("darkGrey", "white")(props)
10588
10587
  }
10589
10588
  }),
10590
10589
  variants: {
package/dist/index.d.mts CHANGED
@@ -649,10 +649,10 @@ type CardSelectProps = BoxProps & {
649
649
  /** The design of the trigger button.
650
650
  *
651
651
  * - `ghost` is a transparent button with text
652
- * - `outline` is a button with a border and text
653
- * - `card` is a button with a drop shadow (like a card) and text
652
+ * - `base` is a button with a border and text
653
+ * - `floating` is a button with a drop shadow (like a card) and text
654
654
  */
655
- variant: "ghost" | "outline" | "card";
655
+ variant: "base" | "ghost" | "floating";
656
656
  /** The size of the trigger button */
657
657
  size: "sm" | "md" | "lg";
658
658
  /** Whether the card select is open / active, if controlled */
@@ -2541,7 +2541,6 @@ declare const theme: {
2541
2541
  alignItems: string;
2542
2542
  };
2543
2543
  card: {
2544
- backgroundColor: string;
2545
2544
  borderRadius: string;
2546
2545
  boxShadow: string;
2547
2546
  padding: number;
package/dist/index.d.ts CHANGED
@@ -649,10 +649,10 @@ type CardSelectProps = BoxProps & {
649
649
  /** The design of the trigger button.
650
650
  *
651
651
  * - `ghost` is a transparent button with text
652
- * - `outline` is a button with a border and text
653
- * - `card` is a button with a drop shadow (like a card) and text
652
+ * - `base` is a button with a border and text
653
+ * - `floating` is a button with a drop shadow (like a card) and text
654
654
  */
655
- variant: "ghost" | "outline" | "card";
655
+ variant: "base" | "ghost" | "floating";
656
656
  /** The size of the trigger button */
657
657
  size: "sm" | "md" | "lg";
658
658
  /** Whether the card select is open / active, if controlled */
@@ -2541,7 +2541,6 @@ declare const theme: {
2541
2541
  alignItems: string;
2542
2542
  };
2543
2543
  card: {
2544
- backgroundColor: string;
2545
2544
  borderRadius: string;
2546
2545
  boxShadow: string;
2547
2546
  padding: number;
package/dist/index.js CHANGED
@@ -12049,8 +12049,7 @@ var init_card_select = __esm({
12049
12049
  borderRadius: "sm",
12050
12050
  boxShadow: "md",
12051
12051
  padding: 3,
12052
- color: themeTools.mode("darkGrey", "white")(props),
12053
- ...floatingBackground("default", props)
12052
+ color: themeTools.mode("darkGrey", "white")(props)
12054
12053
  }
12055
12054
  }),
12056
12055
  variants: {
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, Card, CardSelect, Center, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, 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, 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, NumericStepper, OrderedList, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, PopoverWizardBody, Portal, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, SimplePopover, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, Tr, TravelTag, UnorderedList, VStack, VyLogo, WizardPopover, Wrap, WrapItem, brandTheme, createTexts, defineStyleConfig, extendTheme, fontFaces, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useSize, useTheme, useToast, useToken, useTranslation } from './chunk-2L6AHVGG.mjs';
1
+ export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, Card, CardSelect, Center, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, 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, 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, NumericStepper, OrderedList, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, PopoverWizardBody, Portal, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, SimplePopover, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, Tr, TravelTag, UnorderedList, VStack, VyLogo, WizardPopover, Wrap, WrapItem, brandTheme, createTexts, defineStyleConfig, extendTheme, fontFaces, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useSize, useTheme, useToast, useToken, useTranslation } from './chunk-GAHDJA6T.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "5.5.0",
3
+ "version": "6.0.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -21,10 +21,10 @@ type CardSelectProps = BoxProps & {
21
21
  /** The design of the trigger button.
22
22
  *
23
23
  * - `ghost` is a transparent button with text
24
- * - `outline` is a button with a border and text
25
- * - `card` is a button with a drop shadow (like a card) and text
24
+ * - `base` is a button with a border and text
25
+ * - `floating` is a button with a drop shadow (like a card) and text
26
26
  */
27
- variant: "ghost" | "outline" | "card";
27
+ variant: "base" | "ghost" | "floating";
28
28
  /** The size of the trigger button */
29
29
  size: "sm" | "md" | "lg";
30
30
  /** Whether the card select is open / active, if controlled */
@@ -34,7 +34,6 @@ const config = helpers.defineMultiStyleConfig({
34
34
  boxShadow: "md",
35
35
  padding: 3,
36
36
  color: mode("darkGrey", "white")(props),
37
- ...floatingBackground("default", props),
38
37
  },
39
38
  }),
40
39
  variants: {