@vygruppen/spor-react 9.0.3 → 9.1.0
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 +11 -0
- package/dist/{CountryCodeSelect-ZL7DHEIA.mjs → CountryCodeSelect-N6JNGXLL.mjs} +1 -1
- package/dist/{chunk-FTQF5IX2.mjs → chunk-AS7NY5TY.mjs} +7 -4
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +6 -5
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/theme/index.ts +5 -1
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@9.0
|
2
|
+
> @vygruppen/spor-react@9.1.0 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[32m487.
|
13
|
-
[32mCJS[39m ⚡️ Build success in
|
12
|
+
[32mCJS[39m [1mdist/index.js [22m[32m487.93 KB[39m
|
13
|
+
[32mCJS[39m ⚡️ Build success in 2091ms
|
14
14
|
[32mESM[39m [1mdist/index.mjs [22m[32m2.02 KB[39m
|
15
|
-
[32mESM[39m [1mdist/CountryCodeSelect-
|
16
|
-
[32mESM[39m [1mdist/chunk-
|
17
|
-
[32mESM[39m ⚡️ Build success in
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m318.
|
20
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m318.
|
15
|
+
[32mESM[39m [1mdist/CountryCodeSelect-N6JNGXLL.mjs [22m[32m1.19 KB[39m
|
16
|
+
[32mESM[39m [1mdist/chunk-AS7NY5TY.mjs [22m[32m381.97 KB[39m
|
17
|
+
[32mESM[39m ⚡️ Build success in 2092ms
|
18
|
+
[32mDTS[39m ⚡️ Build success in 11787ms
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m318.33 KB[39m
|
20
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m318.33 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -3340,7 +3340,7 @@ var texts14 = createTexts({
|
|
3340
3340
|
sv: "Telefonnummer"
|
3341
3341
|
}
|
3342
3342
|
});
|
3343
|
-
var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-
|
3343
|
+
var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-N6JNGXLL.mjs'));
|
3344
3344
|
var Radio = forwardRef((props, ref) => {
|
3345
3345
|
return /* @__PURE__ */ React69__default.createElement(Radio$1, { ...props, ref });
|
3346
3346
|
});
|
@@ -10385,8 +10385,8 @@ var shadows2 = {
|
|
10385
10385
|
lg: tokens10__default.depth.shadow.lg.value
|
10386
10386
|
};
|
10387
10387
|
var spacing2 = Object.entries(tokens10__default.size.spacing).reduce(
|
10388
|
-
(
|
10389
|
-
...
|
10388
|
+
(tokens15, [key, token]) => ({
|
10389
|
+
...tokens15,
|
10390
10390
|
[Number(key)]: token
|
10391
10391
|
}),
|
10392
10392
|
{}
|
@@ -13254,6 +13254,7 @@ var fontFaces = `
|
|
13254
13254
|
var Brand = /* @__PURE__ */ ((Brand2) => {
|
13255
13255
|
Brand2["VyDigital"] = "VyDigital";
|
13256
13256
|
Brand2["VyUtvikling"] = "VyUtvikling";
|
13257
|
+
Brand2["CargoNet"] = "CargoNet";
|
13257
13258
|
return Brand2;
|
13258
13259
|
})(Brand || {});
|
13259
13260
|
var theme = {
|
@@ -13271,12 +13272,14 @@ var brandTheme = {
|
|
13271
13272
|
accent: {
|
13272
13273
|
surface: {
|
13273
13274
|
default: {
|
13274
|
-
light: colors2.seaMist,
|
13275
13275
|
dark: colors2.darkGrey
|
13276
13276
|
}
|
13277
13277
|
}
|
13278
13278
|
}
|
13279
13279
|
}
|
13280
|
+
},
|
13281
|
+
["CargoNet" /* CargoNet */]: {
|
13282
|
+
colors: tokens10__default.color.cargonet
|
13280
13283
|
}
|
13281
13284
|
};
|
13282
13285
|
var BaseToast = ({ children, variant, id }) => {
|
package/dist/index.d.mts
CHANGED
@@ -2127,7 +2127,8 @@ declare const fontFaces: string;
|
|
2127
2127
|
|
2128
2128
|
declare enum Brand {
|
2129
2129
|
VyDigital = "VyDigital",
|
2130
|
-
VyUtvikling = "VyUtvikling"
|
2130
|
+
VyUtvikling = "VyUtvikling",
|
2131
|
+
CargoNet = "CargoNet"
|
2131
2132
|
}
|
2132
2133
|
declare const theme: {
|
2133
2134
|
components: {
|
@@ -8688,13 +8689,15 @@ declare const brandTheme: {
|
|
8688
8689
|
accent: {
|
8689
8690
|
surface: {
|
8690
8691
|
default: {
|
8691
|
-
light: string;
|
8692
8692
|
dark: string;
|
8693
8693
|
};
|
8694
8694
|
};
|
8695
8695
|
};
|
8696
8696
|
};
|
8697
8697
|
};
|
8698
|
+
CargoNet: {
|
8699
|
+
colors: any;
|
8700
|
+
};
|
8698
8701
|
};
|
8699
8702
|
|
8700
8703
|
type BaseToastProps = {
|
package/dist/index.d.ts
CHANGED
@@ -2127,7 +2127,8 @@ declare const fontFaces: string;
|
|
2127
2127
|
|
2128
2128
|
declare enum Brand {
|
2129
2129
|
VyDigital = "VyDigital",
|
2130
|
-
VyUtvikling = "VyUtvikling"
|
2130
|
+
VyUtvikling = "VyUtvikling",
|
2131
|
+
CargoNet = "CargoNet"
|
2131
2132
|
}
|
2132
2133
|
declare const theme: {
|
2133
2134
|
components: {
|
@@ -8688,13 +8689,15 @@ declare const brandTheme: {
|
|
8688
8689
|
accent: {
|
8689
8690
|
surface: {
|
8690
8691
|
default: {
|
8691
|
-
light: string;
|
8692
8692
|
dark: string;
|
8693
8693
|
};
|
8694
8694
|
};
|
8695
8695
|
};
|
8696
8696
|
};
|
8697
8697
|
};
|
8698
|
+
CargoNet: {
|
8699
|
+
colors: any;
|
8700
|
+
};
|
8698
8701
|
};
|
8699
8702
|
|
8700
8703
|
type BaseToastProps = {
|
package/dist/index.js
CHANGED
@@ -11793,8 +11793,8 @@ var spacing2, space2;
|
|
11793
11793
|
var init_spacing = __esm({
|
11794
11794
|
"src/theme/foundations/spacing.ts"() {
|
11795
11795
|
spacing2 = Object.entries(tokens10__namespace.default.size.spacing).reduce(
|
11796
|
-
(
|
11797
|
-
...
|
11796
|
+
(tokens15, [key, token]) => ({
|
11797
|
+
...tokens15,
|
11798
11798
|
[Number(key)]: token
|
11799
11799
|
}),
|
11800
11800
|
{}
|
@@ -15104,8 +15104,6 @@ var init_font_faces = __esm({
|
|
15104
15104
|
`;
|
15105
15105
|
}
|
15106
15106
|
});
|
15107
|
-
|
15108
|
-
// src/theme/index.ts
|
15109
15107
|
exports.Brand = void 0; exports.theme = void 0; exports.brandTheme = void 0;
|
15110
15108
|
var init_theme = __esm({
|
15111
15109
|
"src/theme/index.ts"() {
|
@@ -15116,6 +15114,7 @@ var init_theme = __esm({
|
|
15116
15114
|
exports.Brand = /* @__PURE__ */ ((Brand2) => {
|
15117
15115
|
Brand2["VyDigital"] = "VyDigital";
|
15118
15116
|
Brand2["VyUtvikling"] = "VyUtvikling";
|
15117
|
+
Brand2["CargoNet"] = "CargoNet";
|
15119
15118
|
return Brand2;
|
15120
15119
|
})(exports.Brand || {});
|
15121
15120
|
exports.theme = {
|
@@ -15133,12 +15132,14 @@ var init_theme = __esm({
|
|
15133
15132
|
accent: {
|
15134
15133
|
surface: {
|
15135
15134
|
default: {
|
15136
|
-
light: colors2.seaMist,
|
15137
15135
|
dark: colors2.darkGrey
|
15138
15136
|
}
|
15139
15137
|
}
|
15140
15138
|
}
|
15141
15139
|
}
|
15140
|
+
},
|
15141
|
+
["CargoNet" /* CargoNet */]: {
|
15142
|
+
colors: tokens10__namespace.default.color.cargonet
|
15142
15143
|
}
|
15143
15144
|
};
|
15144
15145
|
}
|
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, 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, PasswordInput, PhoneNumberInput, PlayPauseButton, Portal, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, 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, Tooltip, Tr, TravelTag, UnorderedList, VStack, VyLogo, 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, 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, Nudge, NumericStepper, OrderedList, PasswordInput, PhoneNumberInput, PlayPauseButton, Portal, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, 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, Tooltip, Tr, TravelTag, UnorderedList, VStack, VyLogo, 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-AS7NY5TY.mjs';
|
package/package.json
CHANGED
package/src/theme/index.ts
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
import { theme as defaultTheme } from "@chakra-ui/theme";
|
2
|
+
import tokens from "@vygruppen/spor-design-tokens";
|
2
3
|
import * as components from "./components";
|
3
4
|
import * as foundations from "./foundations";
|
4
5
|
|
5
6
|
export enum Brand {
|
6
7
|
VyDigital = "VyDigital",
|
7
8
|
VyUtvikling = "VyUtvikling",
|
9
|
+
CargoNet = "CargoNet",
|
8
10
|
}
|
9
11
|
|
10
12
|
export const theme = {
|
@@ -23,13 +25,15 @@ export const brandTheme = {
|
|
23
25
|
accent: {
|
24
26
|
surface: {
|
25
27
|
default: {
|
26
|
-
light: foundations.colors.seaMist,
|
27
28
|
dark: foundations.colors.darkGrey,
|
28
29
|
},
|
29
30
|
},
|
30
31
|
},
|
31
32
|
},
|
32
33
|
},
|
34
|
+
[Brand.CargoNet]: {
|
35
|
+
colors: tokens.color.cargonet as any,
|
36
|
+
},
|
33
37
|
};
|
34
38
|
|
35
39
|
export { fontFaces } from "./font-faces";
|