@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.
- package/.turbo/turbo-build.log +9 -9
- package/CHANGELOG.md +7 -0
- package/dist/{CountryCodeSelect-QPCMMHSU.mjs → CountryCodeSelect-7VDV2T5R.mjs} +1 -1
- package/dist/{chunk-UOSLFTBE.mjs → chunk-Y56HXMZC.mjs} +6 -2
- package/dist/index.d.mts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +5 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/button/Button.tsx +1 -0
- package/src/layout/RadioCard.tsx +3 -0
- package/src/layout/RadioCardGroup.tsx +7 -0
- package/src/theme/font-faces.ts +3 -0
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@9.13.
|
2
|
+
> @vygruppen/spor-react@9.13.3 build
|
3
3
|
> tsup src/index.tsx --dts --treeshake --format cjs,esm
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx
|
@@ -10,11 +10,11 @@
|
|
10
10
|
[34mESM[39m Build start
|
11
11
|
[34mDTS[39m Build start
|
12
12
|
[32mESM[39m [1mdist/index.mjs [22m[32m2.19 KB[39m
|
13
|
-
[32mESM[39m [1mdist/
|
14
|
-
[32mESM[39m [1mdist/
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
16
|
-
[32mCJS[39m [1mdist/index.js [22m[32m527.
|
17
|
-
[32mCJS[39m ⚡️ Build success in
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
20
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
13
|
+
[32mESM[39m [1mdist/chunk-Y56HXMZC.mjs [22m[32m414.22 KB[39m
|
14
|
+
[32mESM[39m [1mdist/CountryCodeSelect-7VDV2T5R.mjs [22m[32m1.19 KB[39m
|
15
|
+
[32mESM[39m ⚡️ Build success in 2170ms
|
16
|
+
[32mCJS[39m [1mdist/index.js [22m[32m527.27 KB[39m
|
17
|
+
[32mCJS[39m ⚡️ Build success in 2171ms
|
18
|
+
[32mDTS[39m ⚡️ Build success in 16058ms
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m345.58 KB[39m
|
20
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m345.58 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -1758,7 +1758,7 @@ var texts4 = createTexts({
|
|
1758
1758
|
sv: "Landskod"
|
1759
1759
|
}
|
1760
1760
|
});
|
1761
|
-
var LazyCountryCodeSelect = React87__default.lazy(() => import('./CountryCodeSelect-
|
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-
|
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
package/src/button/Button.tsx
CHANGED
@@ -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}>
|
package/src/layout/RadioCard.tsx
CHANGED
@@ -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
|
|