@vygruppen/spor-react 9.13.2 → 9.13.3

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@9.13.2 build
2
+ > @vygruppen/spor-react@9.13.3 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.19 KB
13
- ESM dist/CountryCodeSelect-QPCMMHSU.mjs 1.19 KB
14
- ESM dist/chunk-UOSLFTBE.mjs 414.14 KB
15
- ESM ⚡️ Build success in 2239ms
16
- CJS dist/index.js 527.19 KB
17
- CJS ⚡️ Build success in 2239ms
18
- DTS ⚡️ Build success in 15663ms
19
- DTS dist/index.d.ts 344.57 KB
20
- DTS dist/index.d.mts 344.57 KB
13
+ ESM dist/chunk-Y56HXMZC.mjs 414.22 KB
14
+ ESM dist/CountryCodeSelect-7VDV2T5R.mjs 1.19 KB
15
+ ESM ⚡️ Build success in 2170ms
16
+ CJS dist/index.js 527.27 KB
17
+ CJS ⚡️ Build success in 2171ms
18
+ DTS ⚡️ Build success in 16058ms
19
+ DTS dist/index.d.ts 345.58 KB
20
+ DTS dist/index.d.mts 345.58 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 9.13.3
4
+
5
+ ### Patch Changes
6
+
7
+ - bec48fc: Add font-family to global CSS file
8
+ - e606bf3: RadioCardGroup & RadioCard: Add documentation for props
9
+
3
10
  ## 9.13.2
4
11
 
5
12
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-UOSLFTBE.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-Y56HXMZC.mjs';
2
2
  import React from 'react';
3
3
  import { getSupportedCallingCodes } from 'awesome-phonenumber';
4
4
 
@@ -1758,7 +1758,7 @@ var texts4 = createTexts({
1758
1758
  sv: "Landskod"
1759
1759
  }
1760
1760
  });
1761
- var LazyCountryCodeSelect = React87__default.lazy(() => import('./CountryCodeSelect-QPCMMHSU.mjs'));
1761
+ var LazyCountryCodeSelect = React87__default.lazy(() => import('./CountryCodeSelect-7VDV2T5R.mjs'));
1762
1762
  var Radio = forwardRef((props, ref) => {
1763
1763
  return /* @__PURE__ */ React87__default.createElement(Radio$1, { ...props, ref });
1764
1764
  });
@@ -2515,7 +2515,8 @@ var Button2 = forwardRef((props, ref) => {
2515
2515
  "aria-label": ariaLabel,
2516
2516
  "aria-busy": isLoading,
2517
2517
  disabled: isDisabled || isLoading,
2518
- position: "relative"
2518
+ position: "relative",
2519
+ fontFamily: "Vy Sans"
2519
2520
  },
2520
2521
  isLoading && /* @__PURE__ */ React87__default.createElement(Center, { position: "absolute", right: 0, left: 0, top: 1, bottom: 0 }, /* @__PURE__ */ React87__default.createElement(
2521
2522
  ColorInlineLoader,
@@ -14227,6 +14228,9 @@ var fontFaces = `
14227
14228
  font-weight: 400;
14228
14229
  font-display: swap
14229
14230
  }
14231
+ body {
14232
+ font-family: "Vy Sans", sans-serif;
14233
+ }
14230
14234
  `;
14231
14235
 
14232
14236
  // src/theme/index.ts
package/dist/index.d.mts CHANGED
@@ -88,13 +88,19 @@ declare const Stack: _chakra_ui_system_dist_system_types.ComponentWithAs<"div",
88
88
  * @see Docs https://spor.vy.no/components/radiocard
89
89
  */
90
90
  type RadioCardProps = BoxProps & {
91
+ /** The value that will be passed to the `RadioCardGroup`'s `onChange` function if this `RadioCard` is selected.. */
91
92
  value: string;
93
+ /** The content of the RadioCard. */
92
94
  children: React.ReactNode;
95
+ /** Determines if the RadioCard is disabled. */
93
96
  isDisabled?: boolean;
94
97
  };
95
98
  declare const RadioCard: _chakra_ui_system_dist_system_types.ComponentWithAs<_chakra_ui_system_dist_system_types.As, BoxProps & {
99
+ /** The value that will be passed to the `RadioCardGroup`'s `onChange` function if this `RadioCard` is selected.. */
96
100
  value: string;
101
+ /** The content of the RadioCard. */
97
102
  children: React.ReactNode;
103
+ /** Determines if the RadioCard is disabled. */
98
104
  isDisabled?: boolean | undefined;
99
105
  }>;
100
106
 
@@ -113,12 +119,19 @@ type RadioGroupContextProps = {
113
119
  };
114
120
  declare const RadioCardGroupContext: React.Context<RadioGroupContextProps | null>;
115
121
  type RadioCardGroupProps = BoxProps & {
122
+ /** A string that will be assigned as the name attribute to all RadioCard components within the group. */
116
123
  name: string;
124
+ /** The RadioCard components that make up the group. */
117
125
  children: React.ReactNode;
126
+ /** Optional. Determines the style of the RadioCard. Can be either "base" or "floating". */
118
127
  variant?: "base" | "floating";
128
+ /** Optional. Determines the direction of the group. Can be either "row" or "column". */
119
129
  direction?: "row" | "column";
130
+ /** Optional. A label for the group. */
120
131
  groupLabel?: string;
132
+ /** Optional. The default value of the RadioCard group. */
121
133
  defaultValue?: string;
134
+ /** Optional. A function that will be called when the selected value changes. The function receives the value of the selected RadioCard. */
122
135
  onChange?: (value: string) => void;
123
136
  };
124
137
  declare const RadioCardGroup: React.FC<RadioCardGroupProps>;
package/dist/index.d.ts CHANGED
@@ -88,13 +88,19 @@ declare const Stack: _chakra_ui_system_dist_system_types.ComponentWithAs<"div",
88
88
  * @see Docs https://spor.vy.no/components/radiocard
89
89
  */
90
90
  type RadioCardProps = BoxProps & {
91
+ /** The value that will be passed to the `RadioCardGroup`'s `onChange` function if this `RadioCard` is selected.. */
91
92
  value: string;
93
+ /** The content of the RadioCard. */
92
94
  children: React.ReactNode;
95
+ /** Determines if the RadioCard is disabled. */
93
96
  isDisabled?: boolean;
94
97
  };
95
98
  declare const RadioCard: _chakra_ui_system_dist_system_types.ComponentWithAs<_chakra_ui_system_dist_system_types.As, BoxProps & {
99
+ /** The value that will be passed to the `RadioCardGroup`'s `onChange` function if this `RadioCard` is selected.. */
96
100
  value: string;
101
+ /** The content of the RadioCard. */
97
102
  children: React.ReactNode;
103
+ /** Determines if the RadioCard is disabled. */
98
104
  isDisabled?: boolean | undefined;
99
105
  }>;
100
106
 
@@ -113,12 +119,19 @@ type RadioGroupContextProps = {
113
119
  };
114
120
  declare const RadioCardGroupContext: React.Context<RadioGroupContextProps | null>;
115
121
  type RadioCardGroupProps = BoxProps & {
122
+ /** A string that will be assigned as the name attribute to all RadioCard components within the group. */
116
123
  name: string;
124
+ /** The RadioCard components that make up the group. */
117
125
  children: React.ReactNode;
126
+ /** Optional. Determines the style of the RadioCard. Can be either "base" or "floating". */
118
127
  variant?: "base" | "floating";
128
+ /** Optional. Determines the direction of the group. Can be either "row" or "column". */
119
129
  direction?: "row" | "column";
130
+ /** Optional. A label for the group. */
120
131
  groupLabel?: string;
132
+ /** Optional. The default value of the RadioCard group. */
121
133
  defaultValue?: string;
134
+ /** Optional. A function that will be called when the selected value changes. The function receives the value of the selected RadioCard. */
122
135
  onChange?: (value: string) => void;
123
136
  };
124
137
  declare const RadioCardGroup: React.FC<RadioCardGroupProps>;
package/dist/index.js CHANGED
@@ -3017,7 +3017,8 @@ var init_Button = __esm({
3017
3017
  "aria-label": ariaLabel,
3018
3018
  "aria-busy": isLoading,
3019
3019
  disabled: isDisabled || isLoading,
3020
- position: "relative"
3020
+ position: "relative",
3021
+ fontFamily: "Vy Sans"
3021
3022
  },
3022
3023
  isLoading && /* @__PURE__ */ React88__namespace.default.createElement(react.Center, { position: "absolute", right: 0, left: 0, top: 1, bottom: 0 }, /* @__PURE__ */ React88__namespace.default.createElement(
3023
3024
  exports.ColorInlineLoader,
@@ -16197,6 +16198,9 @@ var init_font_faces = __esm({
16197
16198
  font-weight: 400;
16198
16199
  font-display: swap
16199
16200
  }
16201
+ body {
16202
+ font-family: "Vy Sans", sans-serif;
16203
+ }
16200
16204
  `;
16201
16205
  }
16202
16206
  });
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, 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, PrideProvider, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioCardGroupContext, RadioGroup, ScaleFade, SearchInput, Section, 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, TogglePride, Tooltip, Tr, TravelTag, UnorderedList, VStack, VyLogo, VyLogoDefault, VyLogoPride, WizardNudge, Wrap, WrapItem, brandTheme, createTexts, defineStyleConfig, extendTheme, fontFaces, slugify, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, usePride, useSize, useTheme, useToast, useToken, useTranslation } from './chunk-UOSLFTBE.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, 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, PrideProvider, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioCardGroupContext, RadioGroup, ScaleFade, SearchInput, Section, 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, TogglePride, Tooltip, Tr, TravelTag, UnorderedList, VStack, VyLogo, VyLogoDefault, VyLogoPride, WizardNudge, Wrap, WrapItem, brandTheme, createTexts, defineStyleConfig, extendTheme, fontFaces, slugify, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, usePride, useSize, useTheme, useToast, useToken, useTranslation } from './chunk-Y56HXMZC.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "9.13.2",
3
+ "version": "9.13.3",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -105,6 +105,7 @@ export const Button = forwardRef<ButtonProps, "button">((props, ref) => {
105
105
  aria-busy={isLoading}
106
106
  disabled={isDisabled || isLoading}
107
107
  position="relative"
108
+ fontFamily={"Vy Sans"}
108
109
  >
109
110
  {isLoading && (
110
111
  <Center position="absolute" right={0} left={0} top={1} bottom={0}>
@@ -32,8 +32,11 @@ import { RadioCardGroupContext } from "./RadioCardGroup";
32
32
  */
33
33
 
34
34
  export type RadioCardProps = BoxProps & {
35
+ /** The value that will be passed to the `RadioCardGroup`'s `onChange` function if this `RadioCard` is selected.. */
35
36
  value: string;
37
+ /** The content of the RadioCard. */
36
38
  children: React.ReactNode;
39
+ /** Determines if the RadioCard is disabled. */
37
40
  isDisabled?: boolean;
38
41
  };
39
42
 
@@ -21,12 +21,19 @@ export const RadioCardGroupContext =
21
21
  React.createContext<RadioGroupContextProps | null>(null);
22
22
 
23
23
  type RadioCardGroupProps = BoxProps & {
24
+ /** A string that will be assigned as the name attribute to all RadioCard components within the group. */
24
25
  name: string;
26
+ /** The RadioCard components that make up the group. */
25
27
  children: React.ReactNode;
28
+ /** Optional. Determines the style of the RadioCard. Can be either "base" or "floating". */
26
29
  variant?: "base" | "floating";
30
+ /** Optional. Determines the direction of the group. Can be either "row" or "column". */
27
31
  direction?: "row" | "column";
32
+ /** Optional. A label for the group. */
28
33
  groupLabel?: string;
34
+ /** Optional. The default value of the RadioCard group. */
29
35
  defaultValue?: string;
36
+ /** Optional. A function that will be called when the selected value changes. The function receives the value of the selected RadioCard. */
30
37
  onChange?: (value: string) => void;
31
38
  };
32
39
 
@@ -63,4 +63,7 @@ export const fontFaces = `
63
63
  font-weight: 400;
64
64
  font-display: swap
65
65
  }
66
+ body {
67
+ font-family: "Vy Sans", sans-serif;
68
+ }
66
69
  `;