@vygruppen/spor-react 9.11.0 → 9.11.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@9.11.0 build
2
+ > @vygruppen/spor-react@9.11.1 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
- ESM dist/index.mjs 2.16 KB
13
- ESM dist/CountryCodeSelect-633P6ZEW.mjs 1.19 KB
14
- ESM dist/chunk-RR7HZ3VH.mjs 412.62 KB
15
- ESM ⚡️ Build success in 2365ms
16
- CJS dist/index.js 525.18 KB
17
- CJS ⚡️ Build success in 2366ms
18
- DTS ⚡️ Build success in 13907ms
19
- DTS dist/index.d.ts 343.79 KB
20
- DTS dist/index.d.mts 343.79 KB
12
+ ESM dist/index.mjs 2.17 KB
13
+ ESM dist/CountryCodeSelect-KU4HQMG3.mjs 1.19 KB
14
+ ESM dist/chunk-PA6EOPOZ.mjs 412.80 KB
15
+ ESM ⚡️ Build success in 2180ms
16
+ CJS dist/index.js 525.54 KB
17
+ CJS ⚡️ Build success in 2180ms
18
+ DTS ⚡️ Build success in 12857ms
19
+ DTS dist/index.d.ts 343.39 KB
20
+ DTS dist/index.d.mts 343.39 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 9.11.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 33a6ee0: Update versions and add types for modules
8
+
3
9
  ## 9.11.0
4
10
 
5
11
  ### Minor Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-RR7HZ3VH.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-PA6EOPOZ.mjs';
2
2
  import React from 'react';
3
3
  import { getSupportedCallingCodes } from 'awesome-phonenumber';
4
4
 
@@ -2041,7 +2041,7 @@ var texts4 = createTexts({
2041
2041
  sv: "Telefonnummer"
2042
2042
  }
2043
2043
  });
2044
- var LazyCountryCodeSelect = React87__default.lazy(() => import('./CountryCodeSelect-633P6ZEW.mjs'));
2044
+ var LazyCountryCodeSelect = React87__default.lazy(() => import('./CountryCodeSelect-KU4HQMG3.mjs'));
2045
2045
  var Radio = forwardRef((props, ref) => {
2046
2046
  return /* @__PURE__ */ React87__default.createElement(Radio$1, { ...props, ref });
2047
2047
  });
@@ -3862,7 +3862,7 @@ var VyLogoPride = ({ colorScheme, ...boxProps }) => {
3862
3862
  const redColor = colorScheme === "light" ? "#EA3323" : "#ffffff";
3863
3863
  const orangeColor = colorScheme === "light" ? "#F09436" : "#ffffff";
3864
3864
  const yellowColor = colorScheme === "light" ? "#FFFF54" : "#ffffff";
3865
- useId();
3865
+ const id = useId();
3866
3866
  return /* @__PURE__ */ React87__default.createElement(Box, { as: "svg", viewBox: "0 0 107 54", ...boxProps }, /* @__PURE__ */ React87__default.createElement("title", null, "Vy logo pride"), /* @__PURE__ */ React87__default.createElement(
3867
3867
  "svg",
3868
3868
  {
@@ -3884,7 +3884,7 @@ var VyLogoPride = ({ colorScheme, ...boxProps }) => {
3884
3884
  /* @__PURE__ */ React87__default.createElement(
3885
3885
  "mask",
3886
3886
  {
3887
- id: "mask0_4247_11084",
3887
+ id: `${id}-a-pride`,
3888
3888
  style: { maskType: "luminance" },
3889
3889
  maskUnits: "userSpaceOnUse",
3890
3890
  x: "0",
@@ -3902,7 +3902,7 @@ var VyLogoPride = ({ colorScheme, ...boxProps }) => {
3902
3902
  }
3903
3903
  )
3904
3904
  ),
3905
- /* @__PURE__ */ React87__default.createElement("g", { mask: "url(#mask0_4247_11084)" }, /* @__PURE__ */ React87__default.createElement(
3905
+ /* @__PURE__ */ React87__default.createElement("g", { mask: `url(#${id}-a-pride)` }, /* @__PURE__ */ React87__default.createElement(
3906
3906
  "path",
3907
3907
  {
3908
3908
  fillRule: "evenodd",
@@ -3973,7 +3973,7 @@ var VyLogoPride = ({ colorScheme, ...boxProps }) => {
3973
3973
  /* @__PURE__ */ React87__default.createElement(
3974
3974
  "mask",
3975
3975
  {
3976
- id: "mask1_4247_11084",
3976
+ id: `${id}-b-pride`,
3977
3977
  style: { maskType: "luminance" },
3978
3978
  maskUnits: "userSpaceOnUse",
3979
3979
  x: "30",
@@ -3991,7 +3991,7 @@ var VyLogoPride = ({ colorScheme, ...boxProps }) => {
3991
3991
  }
3992
3992
  )
3993
3993
  ),
3994
- /* @__PURE__ */ React87__default.createElement("g", { mask: "url(#mask1_4247_11084)" }, /* @__PURE__ */ React87__default.createElement(
3994
+ /* @__PURE__ */ React87__default.createElement("g", { mask: `url(#${id}-b-pride)` }, /* @__PURE__ */ React87__default.createElement(
3995
3995
  "path",
3996
3996
  {
3997
3997
  fillRule: "evenodd",
@@ -4043,13 +4043,10 @@ var VyLogoPride = ({ colorScheme, ...boxProps }) => {
4043
4043
  )
4044
4044
  ));
4045
4045
  };
4046
-
4047
- // src/logo/VyLogo.tsx
4048
- var VyLogo = ({ colorScheme, ...boxProps }) => {
4049
- const { isPride } = usePride();
4050
- if (isPride) {
4051
- return /* @__PURE__ */ React87__default.createElement(VyLogoPride, { colorScheme, ...boxProps });
4052
- }
4046
+ var VyLogoDefault = ({
4047
+ colorScheme,
4048
+ ...boxProps
4049
+ }) => {
4053
4050
  const mainColor = colorScheme === "light" ? "#1d211c" : "#ffffff";
4054
4051
  const accentColor = colorScheme === "light" ? "#138c6e" : "#ffffff";
4055
4052
  const id = useId();
@@ -4155,6 +4152,15 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
4155
4152
  }
4156
4153
  ));
4157
4154
  };
4155
+
4156
+ // src/logo/VyLogo.tsx
4157
+ var VyLogo = ({ colorScheme, ...boxProps }) => {
4158
+ const { isPride } = usePride();
4159
+ if (isPride) {
4160
+ return /* @__PURE__ */ React87__default.createElement(VyLogoPride, { colorScheme, ...boxProps });
4161
+ }
4162
+ return /* @__PURE__ */ React87__default.createElement(VyLogoDefault, { colorScheme, ...boxProps });
4163
+ };
4158
4164
  var JumpButton = ({
4159
4165
  direction: direction2,
4160
4166
  isDisabled,
@@ -14477,4 +14483,4 @@ function slugify(text, maxLength = 50) {
14477
14483
  return text.normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[\u00C6\u00E6]/g, "ae").replace(/[\u00D8\u00F8]/g, "oe").replace(/[\u00C5\u00E5]/g, "aa").toLowerCase().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, "").substring(0, maxLength);
14478
14484
  }
14479
14485
 
14480
- export { Accordion, AttachedInputs, Badge, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button2 as Button, ButtonGroup, Card2 as Card, CardSelect, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, ColorInlineLoader, ColorSpinner, Combobox, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerContent, Expandable, ExpandableAlert, ExpandableItem, FloatingActionButton, FormControl, FormErrorMessage, FormLabel, FullScreenDrawer, Heading2 as Heading, IconButton, InfoSelect, InfoTag, Input, InputLeftElement2 as InputLeftElement, InputRightElement2 as InputRightElement, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightSpinner, LineIcon, ListBox, ModalHeader, NativeSelect, Nudge, NumericStepper, Pagination, PasswordInput, PhoneNumberInput, PlayPauseButton, PressableCard, PrideProvider, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioGroup, SearchInput, SimpleDrawer, Skeleton, SkeletonCircle, SkeletonText, SkipButton, SporProvider, Stack, StaticAlert, StaticCard, Stepper, StepperStep, Switch, Table, Tabs, Text4 as Text, TextLink, Textarea, TimePicker, TogglePride, Tooltip, TravelTag, VyLogo, VyLogoPride, WizardNudge, brandTheme, createTexts, fontFaces, slugify, theme, usePride, useSize, useToast, useTranslation };
14486
+ export { Accordion, AttachedInputs, Badge, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button2 as Button, ButtonGroup, Card2 as Card, CardSelect, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, ColorInlineLoader, ColorSpinner, Combobox, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerContent, Expandable, ExpandableAlert, ExpandableItem, FloatingActionButton, FormControl, FormErrorMessage, FormLabel, FullScreenDrawer, Heading2 as Heading, IconButton, InfoSelect, InfoTag, Input, InputLeftElement2 as InputLeftElement, InputRightElement2 as InputRightElement, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightSpinner, LineIcon, ListBox, ModalHeader, NativeSelect, Nudge, NumericStepper, Pagination, PasswordInput, PhoneNumberInput, PlayPauseButton, PressableCard, PrideProvider, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioGroup, SearchInput, SimpleDrawer, Skeleton, SkeletonCircle, SkeletonText, SkipButton, SporProvider, Stack, StaticAlert, StaticCard, Stepper, StepperStep, Switch, Table, Tabs, Text4 as Text, TextLink, Textarea, TimePicker, TogglePride, Tooltip, TravelTag, VyLogo, VyLogoDefault, VyLogoPride, WizardNudge, brandTheme, createTexts, fontFaces, slugify, theme, usePride, useSize, useToast, useTranslation };