@vygruppen/spor-react 10.9.1 → 10.9.2
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 +6 -0
- package/dist/{CountryCodeSelect-KKDPTYI3.mjs → CountryCodeSelect-ATLJUIQ5.mjs} +1 -1
- package/dist/{chunk-RK3GOXNY.mjs → chunk-5GZRUD7N.mjs} +8 -6
- package/dist/index.d.mts +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +9 -5
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/linjetag/TravelTag.tsx +13 -0
- package/src/theme/components/line-icon.ts +3 -0
- package/src/theme/components/travel-tag.ts +5 -4
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@10.9.
|
2
|
+
> @vygruppen/spor-react@10.9.2 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.16 KB[39m
|
13
|
-
[32mESM[39m [1mdist/CountryCodeSelect-
|
14
|
-
[32mESM[39m [1mdist/chunk-
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
16
|
-
[32mCJS[39m [1mdist/index.js [22m[32m540.
|
17
|
-
[32mCJS[39m ⚡️ Build success in
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m342.
|
20
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m342.
|
13
|
+
[32mESM[39m [1mdist/CountryCodeSelect-ATLJUIQ5.mjs [22m[32m1.22 KB[39m
|
14
|
+
[32mESM[39m [1mdist/chunk-5GZRUD7N.mjs [22m[32m427.10 KB[39m
|
15
|
+
[32mESM[39m ⚡️ Build success in 2201ms
|
16
|
+
[32mCJS[39m [1mdist/index.js [22m[32m540.85 KB[39m
|
17
|
+
[32mCJS[39m ⚡️ Build success in 2201ms
|
18
|
+
[32mDTS[39m ⚡️ Build success in 15418ms
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m342.44 KB[39m
|
20
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m342.44 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -1841,7 +1841,7 @@ var texts4 = createTexts({
|
|
1841
1841
|
sv: "Landskod"
|
1842
1842
|
}
|
1843
1843
|
});
|
1844
|
-
var LazyCountryCodeSelect = React85__default.lazy(() => import('./CountryCodeSelect-
|
1844
|
+
var LazyCountryCodeSelect = React85__default.lazy(() => import('./CountryCodeSelect-ATLJUIQ5.mjs'));
|
1845
1845
|
var Radio = forwardRef((props, ref) => {
|
1846
1846
|
return /* @__PURE__ */ React85__default.createElement(Radio$1, { ...props, ref });
|
1847
1847
|
});
|
@@ -12468,7 +12468,7 @@ var config20 = helpers13.defineMultiStyleConfig({
|
|
12468
12468
|
transitionDuration: "fast",
|
12469
12469
|
transitionProperty: "common",
|
12470
12470
|
_disabled: {
|
12471
|
-
|
12471
|
+
...surface("disabled", props)
|
12472
12472
|
},
|
12473
12473
|
"button&, a&": {
|
12474
12474
|
boxShadow: "sm",
|
@@ -12485,8 +12485,7 @@ var config20 = helpers13.defineMultiStyleConfig({
|
|
12485
12485
|
iconContainer: {
|
12486
12486
|
padding: 0.5,
|
12487
12487
|
"[aria-disabled=true] &": {
|
12488
|
-
|
12489
|
-
color: "white"
|
12488
|
+
...surface("disabled", props)
|
12490
12489
|
}
|
12491
12490
|
},
|
12492
12491
|
textContainer: {
|
@@ -12494,7 +12493,7 @@ var config20 = helpers13.defineMultiStyleConfig({
|
|
12494
12493
|
paddingRight: 0.5,
|
12495
12494
|
whiteSpace: "nowrap",
|
12496
12495
|
"[aria-disabled=true] &": {
|
12497
|
-
|
12496
|
+
...baseText("disabled", props)
|
12498
12497
|
}
|
12499
12498
|
},
|
12500
12499
|
title: {
|
@@ -12893,7 +12892,10 @@ var config23 = helpers16.defineMultiStyleConfig({
|
|
12893
12892
|
alignItems: "center"
|
12894
12893
|
},
|
12895
12894
|
icon: {
|
12896
|
-
color: "white"
|
12895
|
+
color: "white",
|
12896
|
+
"[aria-disabled=true] &": {
|
12897
|
+
color: mode("icon.disabled.light", "icon.disabled.dark")
|
12898
|
+
}
|
12897
12899
|
}
|
12898
12900
|
},
|
12899
12901
|
variants: {
|
package/dist/index.d.mts
CHANGED
@@ -1581,10 +1581,23 @@ type LineIconProps = Exclude<BoxProps, "variant"> & VariantProps & {
|
|
1581
1581
|
declare const LineIcon: ({ variant, size, sx, ...rest }: LineIconProps) => React.JSX.Element | null;
|
1582
1582
|
|
1583
1583
|
type TravelTagProps = TagProps & BoxProps & {
|
1584
|
+
/**
|
1585
|
+
* Defines the level of importance
|
1586
|
+
* Default to none
|
1587
|
+
*/
|
1584
1588
|
deviationLevel?: "critical" | "major" | "minor" | "info" | "none";
|
1585
1589
|
isDisabled?: boolean;
|
1590
|
+
/**
|
1591
|
+
* Needs to be defined if variant is custom
|
1592
|
+
*/
|
1586
1593
|
foregroundColor?: string;
|
1594
|
+
/**
|
1595
|
+
* Needs to be defined if variant is custom
|
1596
|
+
*/
|
1587
1597
|
backgroundColor?: string;
|
1598
|
+
/**
|
1599
|
+
* Define a custom icon variant
|
1600
|
+
*/
|
1588
1601
|
customIconVariant?: string;
|
1589
1602
|
};
|
1590
1603
|
/**
|
@@ -4381,7 +4394,6 @@ declare const theme: {
|
|
4381
4394
|
padding: number;
|
4382
4395
|
"[aria-disabled=true] &": {
|
4383
4396
|
backgroundColor: string;
|
4384
|
-
color: string;
|
4385
4397
|
};
|
4386
4398
|
};
|
4387
4399
|
textContainer: {
|
@@ -4814,6 +4826,9 @@ declare const theme: {
|
|
4814
4826
|
};
|
4815
4827
|
icon: {
|
4816
4828
|
color: string;
|
4829
|
+
"[aria-disabled=true] &": {
|
4830
|
+
color: (props: Record<string, any> | _chakra_ui_styled_system.StyleFunctionProps) => string;
|
4831
|
+
};
|
4817
4832
|
};
|
4818
4833
|
} | undefined;
|
4819
4834
|
sizes?: {
|
@@ -7336,7 +7351,6 @@ declare const theme: {
|
|
7336
7351
|
padding: number;
|
7337
7352
|
"[aria-disabled=true] &": {
|
7338
7353
|
backgroundColor: string;
|
7339
|
-
color: string;
|
7340
7354
|
};
|
7341
7355
|
};
|
7342
7356
|
textContainer: {
|
package/dist/index.d.ts
CHANGED
@@ -1581,10 +1581,23 @@ type LineIconProps = Exclude<BoxProps, "variant"> & VariantProps & {
|
|
1581
1581
|
declare const LineIcon: ({ variant, size, sx, ...rest }: LineIconProps) => React.JSX.Element | null;
|
1582
1582
|
|
1583
1583
|
type TravelTagProps = TagProps & BoxProps & {
|
1584
|
+
/**
|
1585
|
+
* Defines the level of importance
|
1586
|
+
* Default to none
|
1587
|
+
*/
|
1584
1588
|
deviationLevel?: "critical" | "major" | "minor" | "info" | "none";
|
1585
1589
|
isDisabled?: boolean;
|
1590
|
+
/**
|
1591
|
+
* Needs to be defined if variant is custom
|
1592
|
+
*/
|
1586
1593
|
foregroundColor?: string;
|
1594
|
+
/**
|
1595
|
+
* Needs to be defined if variant is custom
|
1596
|
+
*/
|
1587
1597
|
backgroundColor?: string;
|
1598
|
+
/**
|
1599
|
+
* Define a custom icon variant
|
1600
|
+
*/
|
1588
1601
|
customIconVariant?: string;
|
1589
1602
|
};
|
1590
1603
|
/**
|
@@ -4381,7 +4394,6 @@ declare const theme: {
|
|
4381
4394
|
padding: number;
|
4382
4395
|
"[aria-disabled=true] &": {
|
4383
4396
|
backgroundColor: string;
|
4384
|
-
color: string;
|
4385
4397
|
};
|
4386
4398
|
};
|
4387
4399
|
textContainer: {
|
@@ -4814,6 +4826,9 @@ declare const theme: {
|
|
4814
4826
|
};
|
4815
4827
|
icon: {
|
4816
4828
|
color: string;
|
4829
|
+
"[aria-disabled=true] &": {
|
4830
|
+
color: (props: Record<string, any> | _chakra_ui_styled_system.StyleFunctionProps) => string;
|
4831
|
+
};
|
4817
4832
|
};
|
4818
4833
|
} | undefined;
|
4819
4834
|
sizes?: {
|
@@ -7336,7 +7351,6 @@ declare const theme: {
|
|
7336
7351
|
padding: number;
|
7337
7352
|
"[aria-disabled=true] &": {
|
7338
7353
|
backgroundColor: string;
|
7339
|
-
color: string;
|
7340
7354
|
};
|
7341
7355
|
};
|
7342
7356
|
textContainer: {
|
package/dist/index.js
CHANGED
@@ -14071,6 +14071,8 @@ var parts9, helpers13, config20, travel_tag_default, getDeviationContainerStyle,
|
|
14071
14071
|
var init_travel_tag = __esm({
|
14072
14072
|
"src/theme/components/travel-tag.ts"() {
|
14073
14073
|
init_focus_utils();
|
14074
|
+
init_surface_utils();
|
14075
|
+
init_base_utils();
|
14074
14076
|
parts9 = themeTools.anatomy("travel-tag").parts(
|
14075
14077
|
"container",
|
14076
14078
|
"iconContainer",
|
@@ -14093,7 +14095,7 @@ var init_travel_tag = __esm({
|
|
14093
14095
|
transitionDuration: "fast",
|
14094
14096
|
transitionProperty: "common",
|
14095
14097
|
_disabled: {
|
14096
|
-
|
14098
|
+
...surface("disabled", props)
|
14097
14099
|
},
|
14098
14100
|
"button&, a&": {
|
14099
14101
|
boxShadow: "sm",
|
@@ -14110,8 +14112,7 @@ var init_travel_tag = __esm({
|
|
14110
14112
|
iconContainer: {
|
14111
14113
|
padding: 0.5,
|
14112
14114
|
"[aria-disabled=true] &": {
|
14113
|
-
|
14114
|
-
color: "white"
|
14115
|
+
...surface("disabled", props)
|
14115
14116
|
}
|
14116
14117
|
},
|
14117
14118
|
textContainer: {
|
@@ -14119,7 +14120,7 @@ var init_travel_tag = __esm({
|
|
14119
14120
|
paddingRight: 0.5,
|
14120
14121
|
whiteSpace: "nowrap",
|
14121
14122
|
"[aria-disabled=true] &": {
|
14122
|
-
|
14123
|
+
...baseText("disabled", props)
|
14123
14124
|
}
|
14124
14125
|
},
|
14125
14126
|
title: {
|
@@ -14541,7 +14542,10 @@ var init_line_icon = __esm({
|
|
14541
14542
|
alignItems: "center"
|
14542
14543
|
},
|
14543
14544
|
icon: {
|
14544
|
-
color: "white"
|
14545
|
+
color: "white",
|
14546
|
+
"[aria-disabled=true] &": {
|
14547
|
+
color: themeTools.mode("icon.disabled.light", "icon.disabled.dark")
|
14548
|
+
}
|
14545
14549
|
}
|
14546
14550
|
},
|
14547
14551
|
variants: {
|
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-5GZRUD7N.mjs';
|
package/package.json
CHANGED
@@ -19,10 +19,23 @@ import type { TagProps } from "./types";
|
|
19
19
|
|
20
20
|
export type TravelTagProps = TagProps &
|
21
21
|
BoxProps & {
|
22
|
+
/**
|
23
|
+
* Defines the level of importance
|
24
|
+
* Default to none
|
25
|
+
*/
|
22
26
|
deviationLevel?: "critical" | "major" | "minor" | "info" | "none";
|
23
27
|
isDisabled?: boolean;
|
28
|
+
/**
|
29
|
+
* Needs to be defined if variant is custom
|
30
|
+
*/
|
24
31
|
foregroundColor?: string;
|
32
|
+
/**
|
33
|
+
* Needs to be defined if variant is custom
|
34
|
+
*/
|
25
35
|
backgroundColor?: string;
|
36
|
+
/**
|
37
|
+
* Define a custom icon variant
|
38
|
+
*/
|
26
39
|
customIconVariant?: string;
|
27
40
|
};
|
28
41
|
|
@@ -2,6 +2,8 @@ import { createMultiStyleConfigHelpers } from "@chakra-ui/react";
|
|
2
2
|
import type { StyleFunctionProps } from "@chakra-ui/theme-tools";
|
3
3
|
import { anatomy, mode } from "@chakra-ui/theme-tools";
|
4
4
|
import { focusVisibleStyles } from "../utils/focus-utils";
|
5
|
+
import { surface } from "../utils/surface-utils";
|
6
|
+
import { baseText } from "../utils/base-utils";
|
5
7
|
|
6
8
|
const parts = anatomy("travel-tag").parts(
|
7
9
|
"container",
|
@@ -27,7 +29,7 @@ const config = helpers.defineMultiStyleConfig({
|
|
27
29
|
transitionDuration: "fast",
|
28
30
|
transitionProperty: "common",
|
29
31
|
_disabled: {
|
30
|
-
|
32
|
+
...surface("disabled", props),
|
31
33
|
},
|
32
34
|
"button&, a&": {
|
33
35
|
boxShadow: "sm",
|
@@ -44,8 +46,7 @@ const config = helpers.defineMultiStyleConfig({
|
|
44
46
|
iconContainer: {
|
45
47
|
padding: 0.5,
|
46
48
|
"[aria-disabled=true] &": {
|
47
|
-
|
48
|
-
color: "white",
|
49
|
+
...surface("disabled", props),
|
49
50
|
},
|
50
51
|
},
|
51
52
|
textContainer: {
|
@@ -53,7 +54,7 @@ const config = helpers.defineMultiStyleConfig({
|
|
53
54
|
paddingRight: 0.5,
|
54
55
|
whiteSpace: "nowrap",
|
55
56
|
"[aria-disabled=true] &": {
|
56
|
-
|
57
|
+
...baseText("disabled", props),
|
57
58
|
},
|
58
59
|
},
|
59
60
|
title: {
|