@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@9.0.3 build
2
+ > @vygruppen/spor-react@9.1.0 build
3
3
  > tsup src/index.tsx --dts --treeshake --format cjs,esm
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -9,12 +9,12 @@
9
9
  CJS Build start
10
10
  ESM Build start
11
11
  DTS Build start
12
- CJS dist/index.js 487.85 KB
13
- CJS ⚡️ Build success in 2081ms
12
+ CJS dist/index.js 487.93 KB
13
+ CJS ⚡️ Build success in 2091ms
14
14
  ESM dist/index.mjs 2.02 KB
15
- ESM dist/CountryCodeSelect-ZL7DHEIA.mjs 1.19 KB
16
- ESM dist/chunk-FTQF5IX2.mjs 381.89 KB
17
- ESM ⚡️ Build success in 2082ms
18
- DTS ⚡️ Build success in 12077ms
19
- DTS dist/index.d.ts 318.30 KB
20
- DTS dist/index.d.mts 318.30 KB
15
+ ESM dist/CountryCodeSelect-N6JNGXLL.mjs 1.19 KB
16
+ ESM dist/chunk-AS7NY5TY.mjs 381.97 KB
17
+ ESM ⚡️ Build success in 2092ms
18
+ DTS ⚡️ Build success in 11787ms
19
+ DTS dist/index.d.ts 318.33 KB
20
+ DTS dist/index.d.mts 318.33 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 9.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6fe2534: Add support for Brand.CargoNet
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [6fe2534]
12
+ - @vygruppen/spor-design-tokens@3.5.0
13
+
3
14
  ## 9.0.3
4
15
 
5
16
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-FTQF5IX2.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-AS7NY5TY.mjs';
2
2
  import React from 'react';
3
3
  import { getSupportedCallingCodes } from 'awesome-phonenumber';
4
4
 
@@ -3340,7 +3340,7 @@ var texts14 = createTexts({
3340
3340
  sv: "Telefonnummer"
3341
3341
  }
3342
3342
  });
3343
- var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-ZL7DHEIA.mjs'));
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
- (tokens14, [key, token]) => ({
10389
- ...tokens14,
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
- (tokens14, [key, token]) => ({
11797
- ...tokens14,
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-FTQF5IX2.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, 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "9.0.3",
3
+ "version": "9.1.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -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";