@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.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +6 -0
- package/dist/{CountryCodeSelect-633P6ZEW.mjs → CountryCodeSelect-KU4HQMG3.mjs} +1 -1
- package/dist/{chunk-RR7HZ3VH.mjs → chunk-PA6EOPOZ.mjs} +20 -14
- package/dist/index.d.mts +167 -162
- package/dist/index.d.ts +167 -162
- package/dist/index.js +28 -15
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/src/logo/VyLogo.tsx +4 -90
- package/src/logo/VyLogoDefault.tsx +104 -0
- package/src/logo/VyLogoPride.tsx +4 -4
- package/src/logo/index.tsx +1 -0
- package/types.d.ts +3 -0
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@9.11.
|
2
|
+
> @vygruppen/spor-react@9.11.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
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m2.
|
13
|
-
[32mESM[39m [1mdist/CountryCodeSelect-
|
14
|
-
[32mESM[39m [1mdist/chunk-
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
16
|
-
[32mCJS[39m [1mdist/index.js [22m[32m525.
|
17
|
-
[32mCJS[39m ⚡️ Build success in
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m343.
|
20
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m343.
|
12
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m2.17 KB[39m
|
13
|
+
[32mESM[39m [1mdist/CountryCodeSelect-KU4HQMG3.mjs [22m[32m1.19 KB[39m
|
14
|
+
[32mESM[39m [1mdist/chunk-PA6EOPOZ.mjs [22m[32m412.80 KB[39m
|
15
|
+
[32mESM[39m ⚡️ Build success in 2180ms
|
16
|
+
[32mCJS[39m [1mdist/index.js [22m[32m525.54 KB[39m
|
17
|
+
[32mCJS[39m ⚡️ Build success in 2180ms
|
18
|
+
[32mDTS[39m ⚡️ Build success in 12857ms
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m343.39 KB[39m
|
20
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m343.39 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -2041,7 +2041,7 @@ var texts4 = createTexts({
|
|
2041
2041
|
sv: "Telefonnummer"
|
2042
2042
|
}
|
2043
2043
|
});
|
2044
|
-
var LazyCountryCodeSelect = React87__default.lazy(() => import('./CountryCodeSelect-
|
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:
|
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:
|
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:
|
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:
|
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
|
-
|
4048
|
-
|
4049
|
-
|
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 };
|