@vygruppen/spor-react 11.0.0 → 11.0.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.
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +6 -0
- package/dist/{CountryCodeSelect-46H2DYJ5.mjs → CountryCodeSelect-BANGPTJ2.mjs} +1 -1
- package/dist/{chunk-ROHXFJX2.mjs → chunk-LZYJMYST.mjs} +6 -6
- package/dist/index.js +6 -5
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/input/ChoiceChip.tsx +2 -2
- package/src/layout/RadioCard.tsx +4 -3
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@11.0.
|
2
|
+
> @vygruppen/spor-react@11.0.1 build
|
3
3
|
> tsup src/index.tsx --dts --treeshake --format cjs,esm
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx
|
@@ -9,12 +9,12 @@
|
|
9
9
|
[34mCJS[39m Build start
|
10
10
|
[34mESM[39m Build start
|
11
11
|
[34mDTS[39m Build start
|
12
|
-
[32mCJS[39m [1mdist/index.js [22m[32m542.
|
13
|
-
[32mCJS[39m ⚡️ Build success in
|
12
|
+
[32mCJS[39m [1mdist/index.js [22m[32m542.11 KB[39m
|
13
|
+
[32mCJS[39m ⚡️ Build success in 2302ms
|
14
14
|
[32mESM[39m [1mdist/index.mjs [22m[32m2.16 KB[39m
|
15
|
-
[32mESM[39m [1mdist/CountryCodeSelect-
|
16
|
-
[32mESM[39m [1mdist/chunk-
|
17
|
-
[32mESM[39m ⚡️ Build success in
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
15
|
+
[32mESM[39m [1mdist/CountryCodeSelect-BANGPTJ2.mjs [22m[32m1.22 KB[39m
|
16
|
+
[32mESM[39m [1mdist/chunk-LZYJMYST.mjs [22m[32m428.19 KB[39m
|
17
|
+
[32mESM[39m ⚡️ Build success in 2302ms
|
18
|
+
[32mDTS[39m ⚡️ Build success in 16073ms
|
19
19
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m342.86 KB[39m
|
20
20
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m342.86 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -1010,7 +1010,7 @@ var ChoiceChip = forwardRef(
|
|
1010
1010
|
{
|
1011
1011
|
...getInputProps({}, ref),
|
1012
1012
|
id,
|
1013
|
-
disabled: isDisabled
|
1013
|
+
disabled: isDisabled || state2.isDisabled
|
1014
1014
|
}
|
1015
1015
|
),
|
1016
1016
|
/* @__PURE__ */ React85__default.createElement(
|
@@ -1022,7 +1022,7 @@ var ChoiceChip = forwardRef(
|
|
1022
1022
|
"data-hover": dataAttr(state2.isHovered),
|
1023
1023
|
"data-focus": dataAttr(state2.isFocused),
|
1024
1024
|
"data-active": dataAttr(state2.isActive),
|
1025
|
-
"data-disabled": dataAttr(state2.isDisabled)
|
1025
|
+
"data-disabled": dataAttr(isDisabled || state2.isDisabled)
|
1026
1026
|
},
|
1027
1027
|
icon && /* @__PURE__ */ React85__default.createElement(chakra.span, { __css: styles3.icon }, state2.isChecked ? icon.checked : icon.default),
|
1028
1028
|
chipType !== "icon" && /* @__PURE__ */ React85__default.createElement(chakra.span, { __css: styles3.label, ...getCheckboxProps() }, children),
|
@@ -1844,7 +1844,7 @@ var texts4 = createTexts({
|
|
1844
1844
|
sv: "Landskod"
|
1845
1845
|
}
|
1846
1846
|
});
|
1847
|
-
var LazyCountryCodeSelect = React85__default.lazy(() => import('./CountryCodeSelect-
|
1847
|
+
var LazyCountryCodeSelect = React85__default.lazy(() => import('./CountryCodeSelect-BANGPTJ2.mjs'));
|
1848
1848
|
var Radio = forwardRef((props, ref) => {
|
1849
1849
|
return /* @__PURE__ */ React85__default.createElement(Radio$1, { ...props, ref });
|
1850
1850
|
});
|
@@ -2090,9 +2090,9 @@ var RadioCard = forwardRef(
|
|
2090
2090
|
as: "label",
|
2091
2091
|
name,
|
2092
2092
|
htmlFor: inputId,
|
2093
|
-
"aria-checked": isChecked,
|
2094
|
-
"data-checked": isChecked,
|
2095
|
-
"data-disabled": isDisabled,
|
2093
|
+
"aria-checked": dataAttr(isChecked),
|
2094
|
+
"data-checked": dataAttr(isChecked),
|
2095
|
+
"data-disabled": dataAttr(isDisabled),
|
2096
2096
|
...props,
|
2097
2097
|
__css: {
|
2098
2098
|
...styles3.container,
|
package/dist/index.js
CHANGED
@@ -1105,7 +1105,7 @@ var init_ChoiceChip = __esm({
|
|
1105
1105
|
{
|
1106
1106
|
...getInputProps({}, ref),
|
1107
1107
|
id,
|
1108
|
-
disabled: isDisabled
|
1108
|
+
disabled: isDisabled || state2.isDisabled
|
1109
1109
|
}
|
1110
1110
|
),
|
1111
1111
|
/* @__PURE__ */ React86__namespace.default.createElement(
|
@@ -1117,7 +1117,7 @@ var init_ChoiceChip = __esm({
|
|
1117
1117
|
"data-hover": dataAttr(state2.isHovered),
|
1118
1118
|
"data-focus": dataAttr(state2.isFocused),
|
1119
1119
|
"data-active": dataAttr(state2.isActive),
|
1120
|
-
"data-disabled": dataAttr(state2.isDisabled)
|
1120
|
+
"data-disabled": dataAttr(isDisabled || state2.isDisabled)
|
1121
1121
|
},
|
1122
1122
|
icon && /* @__PURE__ */ React86__namespace.default.createElement(react.chakra.span, { __css: styles3.icon }, state2.isChecked ? icon.checked : icon.default),
|
1123
1123
|
chipType !== "icon" && /* @__PURE__ */ React86__namespace.default.createElement(react.chakra.span, { __css: styles3.label, ...getCheckboxProps() }, children),
|
@@ -2301,6 +2301,7 @@ exports.RadioCard = void 0;
|
|
2301
2301
|
var init_RadioCard = __esm({
|
2302
2302
|
"src/layout/RadioCard.tsx"() {
|
2303
2303
|
init_RadioCardGroup();
|
2304
|
+
init_dist();
|
2304
2305
|
exports.RadioCard = react.forwardRef(
|
2305
2306
|
({ children, value, isDisabled, ...props }, ref) => {
|
2306
2307
|
const context = React86.useContext(exports.RadioCardGroupContext);
|
@@ -2363,9 +2364,9 @@ var init_RadioCard = __esm({
|
|
2363
2364
|
as: "label",
|
2364
2365
|
name,
|
2365
2366
|
htmlFor: inputId,
|
2366
|
-
"aria-checked": isChecked,
|
2367
|
-
"data-checked": isChecked,
|
2368
|
-
"data-disabled": isDisabled,
|
2367
|
+
"aria-checked": dataAttr(isChecked),
|
2368
|
+
"data-checked": dataAttr(isChecked),
|
2369
|
+
"data-disabled": dataAttr(isDisabled),
|
2369
2370
|
...props,
|
2370
2371
|
__css: {
|
2371
2372
|
...styles3.container,
|
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-
|
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-LZYJMYST.mjs';
|
package/package.json
CHANGED
package/src/input/ChoiceChip.tsx
CHANGED
@@ -93,7 +93,7 @@ export const ChoiceChip = forwardRef(
|
|
93
93
|
<chakra.input
|
94
94
|
{...getInputProps({}, ref)}
|
95
95
|
id={id}
|
96
|
-
disabled={isDisabled}
|
96
|
+
disabled={isDisabled || state.isDisabled}
|
97
97
|
/>
|
98
98
|
<chakra.div
|
99
99
|
{...getLabelProps()}
|
@@ -102,7 +102,7 @@ export const ChoiceChip = forwardRef(
|
|
102
102
|
data-hover={dataAttr(state.isHovered)}
|
103
103
|
data-focus={dataAttr(state.isFocused)}
|
104
104
|
data-active={dataAttr(state.isActive)}
|
105
|
-
data-disabled={dataAttr(state.isDisabled)}
|
105
|
+
data-disabled={dataAttr(isDisabled || state.isDisabled)}
|
106
106
|
>
|
107
107
|
{icon && (
|
108
108
|
<chakra.span __css={styles.icon}>
|
package/src/layout/RadioCard.tsx
CHANGED
@@ -7,6 +7,7 @@ import {
|
|
7
7
|
} from "@chakra-ui/react";
|
8
8
|
import React, { useContext, useEffect, useId, useState } from "react";
|
9
9
|
import { RadioCardGroupContext } from "./RadioCardGroup";
|
10
|
+
import { dataAttr } from "@chakra-ui/utils";
|
10
11
|
|
11
12
|
/**
|
12
13
|
* Radio cards are used to present a set of options where only one option can be selected.
|
@@ -107,9 +108,9 @@ export const RadioCard = forwardRef(
|
|
107
108
|
as="label"
|
108
109
|
name={name}
|
109
110
|
htmlFor={inputId}
|
110
|
-
aria-checked={isChecked}
|
111
|
-
data-checked={isChecked}
|
112
|
-
data-disabled={isDisabled}
|
111
|
+
aria-checked={dataAttr(isChecked)}
|
112
|
+
data-checked={dataAttr(isChecked)}
|
113
|
+
data-disabled={dataAttr(isDisabled)}
|
113
114
|
{...props}
|
114
115
|
__css={{
|
115
116
|
...styles.container,
|