@vygruppen/spor-react 3.8.0 → 3.8.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@3.8.0 build
2
+ > @vygruppen/spor-react@3.8.1 build
3
3
  > tsup src/index.tsx --dts --treeshake --format cjs,esm
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -8,15 +8,15 @@
8
8
  CLI Target: node16
9
9
  CJS Build start
10
10
  ESM Build start
11
- "toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/chunk-HL3ESNVB.mjs".
12
11
  "toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/index.js".
12
+ "toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/chunk-HCSXVAA5.mjs".
13
13
  DTS Build start
14
+ CJS dist/index.js 548.76 KB
15
+ CJS ⚡️ Build success in 2577ms
14
16
  ESM dist/index.mjs 2.09 KB
15
- ESM dist/CountryCodeSelect-BA3A7ODU.mjs 1.19 KB
16
- ESM dist/chunk-HL3ESNVB.mjs 438.29 KB
17
- ESM ⚡️ Build success in 2793ms
18
- CJS dist/index.js 548.73 KB
19
- CJS ⚡️ Build success in 2794ms
20
- DTS ⚡️ Build success in 14107ms
21
- DTS dist/index.d.ts 264.64 KB
22
- DTS dist/index.d.mts 264.64 KB
17
+ ESM dist/CountryCodeSelect-UG3JHWO3.mjs 1.19 KB
18
+ ESM dist/chunk-HCSXVAA5.mjs 438.31 KB
19
+ ESM ⚡️ Build success in 2578ms
20
+ DTS ⚡️ Build success in 12922ms
21
+ DTS dist/index.d.ts 264.69 KB
22
+ DTS dist/index.d.mts 264.69 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 3.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - c1e025e0: Card: add support for clickable labels, and .is-clickable override
8
+
3
9
  ## 3.8.0
4
10
 
5
11
  ### Minor Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-HL3ESNVB.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-HCSXVAA5.mjs';
2
2
  import React from 'react';
3
3
  import { getSupportedCallingCodes } from 'awesome-phonenumber';
4
4
 
@@ -5085,7 +5085,7 @@ var texts14 = createTexts({
5085
5085
  sv: "Telefonnummer"
5086
5086
  }
5087
5087
  });
5088
- var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-BA3A7ODU.mjs'));
5088
+ var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-UG3JHWO3.mjs'));
5089
5089
  var Radio = forwardRef((props, ref) => {
5090
5090
  return /* @__PURE__ */ React69__default.createElement(Radio$1, { ...props, ref });
5091
5091
  });
@@ -11679,7 +11679,7 @@ var config7 = defineStyleConfig$1({
11679
11679
  transitionDuration: "fast",
11680
11680
  borderRadius: "md",
11681
11681
  ...getColorSchemeBaseProps(props),
11682
- "button&, a&": {
11682
+ "button&, a&, label&, &.is-clickable": {
11683
11683
  ...getColorSchemeClickableProps(props),
11684
11684
  _hover: getColorSchemeHoverProps(props),
11685
11685
  _active: getColorSchemeActiveProps(props),
package/dist/index.d.mts CHANGED
@@ -2411,7 +2411,7 @@ declare const theme: {
2411
2411
  };
2412
2412
  Card: {
2413
2413
  baseStyle?: ((props: any) => {
2414
- "button&, a&": {
2414
+ "button&, a&, label&, &.is-clickable": {
2415
2415
  _disabled: {
2416
2416
  backgroundColor: string;
2417
2417
  boxShadow: string;
@@ -2469,7 +2469,7 @@ declare const theme: {
2469
2469
  transitionDuration: string;
2470
2470
  borderRadius: string;
2471
2471
  } | {
2472
- "button&, a&": {
2472
+ "button&, a&, label&, &.is-clickable": {
2473
2473
  _disabled: {
2474
2474
  backgroundColor: string;
2475
2475
  boxShadow: string;
package/dist/index.d.ts CHANGED
@@ -2411,7 +2411,7 @@ declare const theme: {
2411
2411
  };
2412
2412
  Card: {
2413
2413
  baseStyle?: ((props: any) => {
2414
- "button&, a&": {
2414
+ "button&, a&, label&, &.is-clickable": {
2415
2415
  _disabled: {
2416
2416
  backgroundColor: string;
2417
2417
  boxShadow: string;
@@ -2469,7 +2469,7 @@ declare const theme: {
2469
2469
  transitionDuration: string;
2470
2470
  borderRadius: string;
2471
2471
  } | {
2472
- "button&, a&": {
2472
+ "button&, a&, label&, &.is-clickable": {
2473
2473
  _disabled: {
2474
2474
  backgroundColor: string;
2475
2475
  boxShadow: string;
package/dist/index.js CHANGED
@@ -13233,7 +13233,7 @@ var init_card2 = __esm({
13233
13233
  transitionDuration: "fast",
13234
13234
  borderRadius: "md",
13235
13235
  ...getColorSchemeBaseProps(props),
13236
- "button&, a&": {
13236
+ "button&, a&, label&, &.is-clickable": {
13237
13237
  ...getColorSchemeClickableProps(props),
13238
13238
  _hover: getColorSchemeHoverProps(props),
13239
13239
  _active: getColorSchemeActiveProps(props),
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, Card, CardSelect, 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, 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, ProgressBar, 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, createTexts, extendTheme, fontFaces, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToast, useToken, useTranslation } from './chunk-HL3ESNVB.mjs';
1
+ export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, Card, CardSelect, 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, 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, ProgressBar, 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, createTexts, extendTheme, fontFaces, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToast, useToken, useTranslation } from './chunk-HCSXVAA5.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "3.8.0",
3
+ "version": "3.8.1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -1,8 +1,8 @@
1
1
  import { defineStyleConfig } from "@chakra-ui/react";
2
+ import { mode } from "@chakra-ui/theme-tools";
2
3
  import { colors } from "../foundations";
3
4
  import { getBoxShadowString } from "../utils/box-shadow-utils";
4
5
  import { focusVisible } from "../utils/focus-utils";
5
- import { mode } from "@chakra-ui/theme-tools";
6
6
 
7
7
  const config = defineStyleConfig({
8
8
  baseStyle: (props: any) => ({
@@ -16,7 +16,7 @@ const config = defineStyleConfig({
16
16
  borderRadius: "md",
17
17
  ...getColorSchemeBaseProps(props),
18
18
 
19
- "button&, a&": {
19
+ "button&, a&, label&, &.is-clickable": {
20
20
  ...getColorSchemeClickableProps(props),
21
21
  _hover: getColorSchemeHoverProps(props),
22
22
  _active: getColorSchemeActiveProps(props),
@@ -62,7 +62,7 @@ type CardThemeProps = {
62
62
  size: "sm" | "lg";
63
63
  };
64
64
 
65
- const getColorSchemeBaseProps= (props: CardThemeProps) => {
65
+ const getColorSchemeBaseProps = (props: CardThemeProps) => {
66
66
  const { colorScheme, size } = props;
67
67
  const baseShadow = size === "lg" ? "md" : "sm";
68
68
  switch (colorScheme) {
@@ -89,7 +89,7 @@ const getColorSchemeBaseProps= (props: CardThemeProps) => {
89
89
  backgroundColor: colors[colorScheme]?.[100] ?? "platinum",
90
90
  };
91
91
  }
92
- }
92
+ };
93
93
 
94
94
  function getColorSchemeClickableProps({ colorScheme, size }: CardThemeProps) {
95
95
  const baseShadow = size === "lg" ? "md" : "sm";
@@ -129,7 +129,7 @@ const getColorSchemeHoverProps = (props: CardThemeProps) => {
129
129
  case "white":
130
130
  return {
131
131
  backgroundColor: mode("white", "whiteAlpha.200")(props),
132
- boxShadow: getBoxShadowString({
132
+ boxShadow: getBoxShadowString({
133
133
  baseShadow,
134
134
  borderColor: colors.steel,
135
135
  isInset: false,
@@ -153,7 +153,7 @@ const getColorSchemeHoverProps = (props: CardThemeProps) => {
153
153
  }),
154
154
  };
155
155
  }
156
- }
156
+ };
157
157
  const getColorSchemeActiveProps = (props: CardThemeProps) => {
158
158
  const { colorScheme, size } = props;
159
159
  const baseShadow = size === "lg" ? "sm" : "none";
@@ -186,4 +186,4 @@ const getColorSchemeActiveProps = (props: CardThemeProps) => {
186
186
  }),
187
187
  };
188
188
  }
189
- }
189
+ };