@vygruppen/spor-react 13.5.0 → 13.7.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/dist/index.d.cts CHANGED
@@ -1769,7 +1769,7 @@ type Props = {
1769
1769
  openOnFocus?: boolean;
1770
1770
  ref?: React__default.Ref<HTMLInputElement | null>;
1771
1771
  } & Omit<ComboboxRootProps, "collection"> & FieldProps;
1772
- declare function Autocomplete({ variant, children, css, label, leftIcon, onInputValueChange, invalid, helperText, errorText, required, filteredExternally, loading, disabled, emptyLabel, onFocus, openOnClick, openOnFocus, ref, ...rest }: Props): react_jsx_runtime.JSX.Element;
1772
+ declare function Autocomplete({ variant, children, css, label, leftIcon, onInputValueChange, invalid, helperText, errorText, required, filteredExternally, loading, disabled, emptyLabel, onFocus, openOnClick, openOnFocus, ref, size, ...rest }: Props): react_jsx_runtime.JSX.Element;
1773
1773
  declare const AutocompleteItemGroup: React__default.ForwardRefExoticComponent<Combobox$1.ItemGroupProps & React__default.RefAttributes<HTMLDivElement>>;
1774
1774
  declare const AutocompleteItemGroupLabel: React__default.ForwardRefExoticComponent<_chakra_ui_react.ComboboxItemGroupLabelProps & React__default.RefAttributes<HTMLDivElement>>;
1775
1775
  declare const AutocompleteItem: ({ children, ...props }: ComboboxItemProps) => react_jsx_runtime.JSX.Element;
@@ -2368,6 +2368,10 @@ declare const nativeSelectSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"ico
2368
2368
  outline: "2px solid";
2369
2369
  outlineColor: "outline.focus";
2370
2370
  } | undefined;
2371
+ "&:-webkit-autofill, &:-webkit-autofill:focus"?: {
2372
+ boxShadow: "0 0 0 1000px var(--spor-colors-surface-info-hover) inset";
2373
+ WebkitTextFillColor: "var(--spor-colors-text)";
2374
+ } | undefined;
2371
2375
  };
2372
2376
  };
2373
2377
  floating: {
@@ -2389,6 +2393,10 @@ declare const nativeSelectSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"ico
2389
2393
  outline: string;
2390
2394
  outlineColor: string;
2391
2395
  } | undefined;
2396
+ "&:-webkit-autofill, &:-webkit-autofill:focus"?: {
2397
+ boxShadow: "0 0 0 1000px var(--spor-colors-surface-info-hover) inset";
2398
+ WebkitTextFillColor: "var(--spor-colors-text)";
2399
+ } | undefined;
2392
2400
  };
2393
2401
  };
2394
2402
  };
@@ -2792,6 +2800,10 @@ declare const textareaRecipe: _chakra_ui_react.RecipeDefinition<{
2792
2800
  outline: "2px solid";
2793
2801
  outlineColor: "outline.focus";
2794
2802
  } | undefined;
2803
+ "&:-webkit-autofill, &:-webkit-autofill:focus"?: {
2804
+ boxShadow: "0 0 0 1000px var(--spor-colors-surface-info-hover) inset";
2805
+ WebkitTextFillColor: "var(--spor-colors-text)";
2806
+ } | undefined;
2795
2807
  };
2796
2808
  floating: {
2797
2809
  boxShadow?: "sm" | undefined;
@@ -2811,6 +2823,10 @@ declare const textareaRecipe: _chakra_ui_react.RecipeDefinition<{
2811
2823
  outline: string;
2812
2824
  outlineColor: string;
2813
2825
  } | undefined;
2826
+ "&:-webkit-autofill, &:-webkit-autofill:focus"?: {
2827
+ boxShadow: "0 0 0 1000px var(--spor-colors-surface-info-hover) inset";
2828
+ WebkitTextFillColor: "var(--spor-colors-text)";
2829
+ } | undefined;
2814
2830
  };
2815
2831
  };
2816
2832
  }>;
@@ -4267,6 +4283,7 @@ declare const themes: {
4267
4283
  VyDigital: _chakra_ui_react.SystemContext;
4268
4284
  CargoNet: _chakra_ui_react.SystemContext;
4269
4285
  VyUtvikling: _chakra_ui_react.SystemContext;
4286
+ VyTeknologi: _chakra_ui_react.SystemContext;
4270
4287
  };
4271
4288
  declare const system: _chakra_ui_react.SystemContext;
4272
4289
 
@@ -4275,7 +4292,12 @@ declare const fontFaces: string;
4275
4292
 
4276
4293
  declare enum Brand {
4277
4294
  VyDigital = "VyDigital",
4295
+ /**
4296
+ * @deprecated The VyUtvikling theme is deprecated and will be removed in a
4297
+ * future major version. Use {@link Brand.VyTeknologi} instead.
4298
+ */
4278
4299
  VyUtvikling = "VyUtvikling",
4300
+ VyTeknologi = "VyTeknologi",
4279
4301
  CargoNet = "CargoNet"
4280
4302
  }
4281
4303
 
@@ -4291,8 +4313,9 @@ type ToastProps = {
4291
4313
  id?: string;
4292
4314
  action?: ToastAction;
4293
4315
  closable?: boolean;
4316
+ inverted?: boolean;
4294
4317
  } & Pick<BoxProps, "width">;
4295
- declare const createToast: ({ text, variant, id, duration, width, action, closable, }: ToastProps) => string;
4318
+ declare const createToast: ({ text, variant, id, duration, width, action, closable, inverted, }: ToastProps) => string;
4296
4319
 
4297
4320
  declare const Tooltip: React$1.FC<Tooltip$1.RootProps>;
4298
4321
  declare const TooltipTrigger: ({ ref, children, ...props }: Tooltip$1.TriggerProps & {
package/dist/index.d.ts CHANGED
@@ -1769,7 +1769,7 @@ type Props = {
1769
1769
  openOnFocus?: boolean;
1770
1770
  ref?: React__default.Ref<HTMLInputElement | null>;
1771
1771
  } & Omit<ComboboxRootProps, "collection"> & FieldProps;
1772
- declare function Autocomplete({ variant, children, css, label, leftIcon, onInputValueChange, invalid, helperText, errorText, required, filteredExternally, loading, disabled, emptyLabel, onFocus, openOnClick, openOnFocus, ref, ...rest }: Props): react_jsx_runtime.JSX.Element;
1772
+ declare function Autocomplete({ variant, children, css, label, leftIcon, onInputValueChange, invalid, helperText, errorText, required, filteredExternally, loading, disabled, emptyLabel, onFocus, openOnClick, openOnFocus, ref, size, ...rest }: Props): react_jsx_runtime.JSX.Element;
1773
1773
  declare const AutocompleteItemGroup: React__default.ForwardRefExoticComponent<Combobox$1.ItemGroupProps & React__default.RefAttributes<HTMLDivElement>>;
1774
1774
  declare const AutocompleteItemGroupLabel: React__default.ForwardRefExoticComponent<_chakra_ui_react.ComboboxItemGroupLabelProps & React__default.RefAttributes<HTMLDivElement>>;
1775
1775
  declare const AutocompleteItem: ({ children, ...props }: ComboboxItemProps) => react_jsx_runtime.JSX.Element;
@@ -2368,6 +2368,10 @@ declare const nativeSelectSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"ico
2368
2368
  outline: "2px solid";
2369
2369
  outlineColor: "outline.focus";
2370
2370
  } | undefined;
2371
+ "&:-webkit-autofill, &:-webkit-autofill:focus"?: {
2372
+ boxShadow: "0 0 0 1000px var(--spor-colors-surface-info-hover) inset";
2373
+ WebkitTextFillColor: "var(--spor-colors-text)";
2374
+ } | undefined;
2371
2375
  };
2372
2376
  };
2373
2377
  floating: {
@@ -2389,6 +2393,10 @@ declare const nativeSelectSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"ico
2389
2393
  outline: string;
2390
2394
  outlineColor: string;
2391
2395
  } | undefined;
2396
+ "&:-webkit-autofill, &:-webkit-autofill:focus"?: {
2397
+ boxShadow: "0 0 0 1000px var(--spor-colors-surface-info-hover) inset";
2398
+ WebkitTextFillColor: "var(--spor-colors-text)";
2399
+ } | undefined;
2392
2400
  };
2393
2401
  };
2394
2402
  };
@@ -2792,6 +2800,10 @@ declare const textareaRecipe: _chakra_ui_react.RecipeDefinition<{
2792
2800
  outline: "2px solid";
2793
2801
  outlineColor: "outline.focus";
2794
2802
  } | undefined;
2803
+ "&:-webkit-autofill, &:-webkit-autofill:focus"?: {
2804
+ boxShadow: "0 0 0 1000px var(--spor-colors-surface-info-hover) inset";
2805
+ WebkitTextFillColor: "var(--spor-colors-text)";
2806
+ } | undefined;
2795
2807
  };
2796
2808
  floating: {
2797
2809
  boxShadow?: "sm" | undefined;
@@ -2811,6 +2823,10 @@ declare const textareaRecipe: _chakra_ui_react.RecipeDefinition<{
2811
2823
  outline: string;
2812
2824
  outlineColor: string;
2813
2825
  } | undefined;
2826
+ "&:-webkit-autofill, &:-webkit-autofill:focus"?: {
2827
+ boxShadow: "0 0 0 1000px var(--spor-colors-surface-info-hover) inset";
2828
+ WebkitTextFillColor: "var(--spor-colors-text)";
2829
+ } | undefined;
2814
2830
  };
2815
2831
  };
2816
2832
  }>;
@@ -4267,6 +4283,7 @@ declare const themes: {
4267
4283
  VyDigital: _chakra_ui_react.SystemContext;
4268
4284
  CargoNet: _chakra_ui_react.SystemContext;
4269
4285
  VyUtvikling: _chakra_ui_react.SystemContext;
4286
+ VyTeknologi: _chakra_ui_react.SystemContext;
4270
4287
  };
4271
4288
  declare const system: _chakra_ui_react.SystemContext;
4272
4289
 
@@ -4275,7 +4292,12 @@ declare const fontFaces: string;
4275
4292
 
4276
4293
  declare enum Brand {
4277
4294
  VyDigital = "VyDigital",
4295
+ /**
4296
+ * @deprecated The VyUtvikling theme is deprecated and will be removed in a
4297
+ * future major version. Use {@link Brand.VyTeknologi} instead.
4298
+ */
4278
4299
  VyUtvikling = "VyUtvikling",
4300
+ VyTeknologi = "VyTeknologi",
4279
4301
  CargoNet = "CargoNet"
4280
4302
  }
4281
4303
 
@@ -4291,8 +4313,9 @@ type ToastProps = {
4291
4313
  id?: string;
4292
4314
  action?: ToastAction;
4293
4315
  closable?: boolean;
4316
+ inverted?: boolean;
4294
4317
  } & Pick<BoxProps, "width">;
4295
- declare const createToast: ({ text, variant, id, duration, width, action, closable, }: ToastProps) => string;
4318
+ declare const createToast: ({ text, variant, id, duration, width, action, closable, inverted, }: ToastProps) => string;
4296
4319
 
4297
4320
  declare const Tooltip: React$1.FC<Tooltip$1.RootProps>;
4298
4321
  declare const TooltipTrigger: ({ ref, children, ...props }: Tooltip$1.TriggerProps & {
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Accordion as Accordion$1, defineRecipe, chakra, Code as Code$1, Clipboard as Clipboard$1, RadioCard as RadioCard$1, defineStyle, Field, Dialog, createContext as createContext$1, Drawer as Drawer$1, List as List$1, Combobox, Fieldset as Fieldset$1, createListCollection, Select as Select$1, Popover as Popover$1, createToaster, Tabs as Tabs$1, defineSemanticTokens, defineSlotRecipe, defineTokens, defineAnimationStyles, defineGlobalStyles, defineTextStyles, createSystem, defaultBaseConfig, Tooltip as Tooltip$1, IconButton as IconButton$1, defineConfig, Center, Box, ClientOnly, VisuallyHidden, useSlotRecipe, Stack, HStack, Progress, Text, useRecipe, Circle, Skeleton as Skeleton$1, Button as Button$1, Group, Badge as Badge$1, useDisclosure, Alert as Alert$1, Span, Flex, Breadcrumb as Breadcrumb$1, Separator as Separator$1, useFieldContext, PopoverAnchor, Portal, useDialogContext, Link, InputElement, Input as Input$1, useFilter, useListCollection, useCombobox, useComboboxContext, usePopoverContext, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCard, Tag, ListItem as ListItem$1, Menu as Menu$1, useMenuContext as useMenuContext$1, NativeSelect as NativeSelect$1, useControllableState, RadioGroup as RadioGroup$1, useSelectContext, Switch as Switch$1, Textarea as Textarea$1, PopoverCloseTrigger, Pagination as Pagination$1, usePaginationContext, ChakraProvider, Table as Table$1, Toaster as Toaster$1, Toast } from '@chakra-ui/react';
2
2
  export { AspectRatio, Box, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, ClientOnly, Collapsible, Container, Em, Flex, For, FormatByte, FormatNumber, Grid, GridItem, HStack, Icon, Image, Kbd, LocaleProvider, Portal, Show, SimpleGrid, Spacer, Span, Stack, TableCaption, TableCell, TableColumn, TableColumnGroup, TableFooter, TableHeader, TableRoot, TableRow, VStack, VisuallyHidden, Wrap, createIcon, createListCollection, createSystem, defineConfig, defineRecipe, defineSlotRecipe, defineStyle, mergeConfigs, chakra as spor, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useRecipe, useSlotRecipe, useToken } from '@chakra-ui/react';
3
3
  import * as spor_icon_react_star from '@vygruppen/spor-icon-react';
4
- import { DropdownDownFill24Icon, CloseFill18Icon, CloseFill30Icon, CloseFill24Icon, DropdownDownFill18Icon, ServiceFill24Icon, WarningFill24Icon, DropdownRightFill18Icon, CalendarOutline24Icon, DropdownLeftFill18Icon, ArrowLeftFill24Icon, ErrorFill24Icon, ChangeDirectionOutline24Icon, CheckmarkFill18Icon, CloseOutline24Icon, CloseOutline18Icon, SearchOutline24Icon, SearchOutline18Icon, Forward15MediaControllerFill30Icon, Backward15MediaControllerFill30Icon, PauseMediaControllerFill24Icon, PlayMediaControllerFill24Icon, NextMediaControllerFill30Icon, PreviousMediaControllerFill30Icon, ArrowRightFill18Icon, DropdownLeftOutline18Icon, DropdownRightOutline18Icon, ArrowUpFill18Icon, ArrowDownFill18Icon, ChangeDirectionFill18Icon, CopyOutline18Icon, LinkOutOutline24Icon, LinkOutOutline18Icon, WalkFill30Icon, WalkFill24Icon, WalkFill18Icon, AltTransportFill30Icon, AltTransportFill24Icon, AltTransportFill18Icon, TramFill30Icon, TramFill24Icon, TramFill18Icon, SubwayFill30Icon, SubwayFill24Icon, SubwayFill18Icon, FerryFill30Icon, FerryFill24Icon, FerryFill18Icon, BusFill30Icon, BusFill24Icon, BusFill18Icon, ExpressBusFill30Icon, ExpressBusFill24Icon, ExpressBusFill18Icon, TrainFill30Icon, TrainFill24Icon, TrainFill18Icon, InformationFill24Icon, InformationFill18Icon, WarningFill18Icon, ErrorFill18Icon, QuestionFill24Icon, ErrorOutline24Icon, SuccessFill24Icon, ArrowLeftOutline24Icon, ArrowRightOutline24Icon } from '@vygruppen/spor-icon-react';
4
+ import { DropdownDownFill24Icon, CloseFill18Icon, CloseFill30Icon, CloseFill24Icon, DropdownDownFill18Icon, ServiceFill24Icon, WarningFill24Icon, DropdownRightFill18Icon, CalendarOutline24Icon, DropdownLeftFill18Icon, ArrowLeftFill24Icon, ErrorFill24Icon, ChangeDirectionOutline24Icon, CheckmarkFill18Icon, CloseOutline24Icon, CloseOutline18Icon, SearchOutline24Icon, SearchOutline18Icon, Forward15MediaControllerFill30Icon, Backward15MediaControllerFill30Icon, PauseMediaControllerFill24Icon, PlayMediaControllerFill24Icon, NextMediaControllerFill30Icon, PreviousMediaControllerFill30Icon, ArrowRightFill18Icon, DropdownLeftOutline18Icon, DropdownRightOutline18Icon, ArrowUpFill18Icon, ArrowDownFill18Icon, ChangeDirectionFill18Icon, CopyOutline18Icon, WalkFill30Icon, WalkFill24Icon, WalkFill18Icon, AltTransportFill30Icon, AltTransportFill24Icon, AltTransportFill18Icon, TramFill30Icon, TramFill24Icon, TramFill18Icon, SubwayFill30Icon, SubwayFill24Icon, SubwayFill18Icon, FerryFill30Icon, FerryFill24Icon, FerryFill18Icon, BusFill30Icon, BusFill24Icon, BusFill18Icon, ExpressBusFill30Icon, ExpressBusFill24Icon, ExpressBusFill18Icon, TrainFill30Icon, TrainFill24Icon, TrainFill18Icon, InformationFill24Icon, InformationFill18Icon, WarningFill18Icon, ErrorFill18Icon, QuestionFill24Icon, ErrorOutline24Icon, SuccessFill24Icon, ArrowLeftOutline24Icon, ArrowRightOutline24Icon, LinkOutOutline24Icon, LinkOutOutline18Icon, LinkOutOutline30Icon } from '@vygruppen/spor-icon-react';
5
5
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
6
  import * as React14 from 'react';
7
7
  import React14__default, { createContext, useContext, useId, cloneElement, isValidElement, useRef, useEffect, useImperativeHandle, useState, useLayoutEffect, useMemo } from 'react';
@@ -3285,10 +3285,29 @@ var texts14 = createTexts({
3285
3285
  var ExternalIcon = ({
3286
3286
  label,
3287
3287
  size
3288
- }) => /* @__PURE__ */ jsxs(Fragment, { children: [
3289
- size === "lg" || size === "md" ? /* @__PURE__ */ jsx(LinkOutOutline24Icon, { "aria-hidden": true, display: "inline" }) : /* @__PURE__ */ jsx(LinkOutOutline18Icon, { "aria-hidden": true, display: "inline" }),
3290
- /* @__PURE__ */ jsx(VisuallyHidden, { children: label })
3291
- ] });
3288
+ }) => {
3289
+ const getIcon = () => {
3290
+ switch (size) {
3291
+ case "lg": {
3292
+ return /* @__PURE__ */ jsx(LinkOutOutline30Icon, { "aria-hidden": true, display: "inline" });
3293
+ }
3294
+ case "md": {
3295
+ return /* @__PURE__ */ jsx(LinkOutOutline24Icon, { "aria-hidden": true, display: "inline" });
3296
+ }
3297
+ case "sm": {
3298
+ return /* @__PURE__ */ jsx(LinkOutOutline18Icon, { "aria-hidden": true, display: "inline" });
3299
+ }
3300
+ default: {
3301
+ return /* @__PURE__ */ jsx(LinkOutOutline24Icon, { "aria-hidden": true, display: "inline" });
3302
+ }
3303
+ }
3304
+ };
3305
+ return /* @__PURE__ */ jsxs("span", { style: { whiteSpace: "nowrap" }, children: [
3306
+ "\u2060",
3307
+ getIcon(),
3308
+ /* @__PURE__ */ jsx(VisuallyHidden, { children: label })
3309
+ ] });
3310
+ };
3292
3311
  var TextLink = ({
3293
3312
  ref,
3294
3313
  children,
@@ -3649,6 +3668,7 @@ function Autocomplete({
3649
3668
  openOnClick = true,
3650
3669
  openOnFocus = true,
3651
3670
  ref,
3671
+ size = "md",
3652
3672
  ...rest
3653
3673
  }) {
3654
3674
  const { contains } = useFilter({ sensitivity: "base" });
@@ -3707,7 +3727,8 @@ function Autocomplete({
3707
3727
  onFocus == null ? void 0 : onFocus(event);
3708
3728
  if (openOnFocus && filteredChildren.length > 0)
3709
3729
  combobox.setOpen(true);
3710
- }
3730
+ },
3731
+ size
3711
3732
  }
3712
3733
  ) }),
3713
3734
  /* @__PURE__ */ jsx(Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsx(Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts16.clearValue), children: /* @__PURE__ */ jsx(CloseButton, { size: "xs", tabIndex: 0 }) }) })
@@ -6665,6 +6686,7 @@ var fontFaces = `
6665
6686
  var Brand = /* @__PURE__ */ ((Brand2) => {
6666
6687
  Brand2["VyDigital"] = "VyDigital";
6667
6688
  Brand2["VyUtvikling"] = "VyUtvikling";
6689
+ Brand2["VyTeknologi"] = "VyTeknologi";
6668
6690
  Brand2["CargoNet"] = "CargoNet";
6669
6691
  return Brand2;
6670
6692
  })(Brand || {});
@@ -6679,31 +6701,38 @@ var createToast = ({
6679
6701
  duration = 6e3,
6680
6702
  width = "sm",
6681
6703
  action,
6682
- closable = false
6704
+ closable = false,
6705
+ inverted = false
6683
6706
  }) => toaster.create({
6684
6707
  description: text,
6685
6708
  type: variant,
6686
6709
  id: id ?? crypto.randomUUID(),
6687
6710
  duration,
6688
6711
  action,
6689
- meta: { width },
6712
+ meta: { width, inverted },
6690
6713
  closable
6691
6714
  });
6692
6715
  var Toaster = () => {
6693
6716
  return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(Toaster$1, { toaster, insetInline: { mdDown: "4" }, children: (toast) => {
6694
- var _a6;
6717
+ var _a6, _b5;
6695
6718
  return /* @__PURE__ */ jsxs(
6696
6719
  Toast.Root,
6697
6720
  {
6698
6721
  width: { md: (_a6 = toast.meta) == null ? void 0 : _a6.width },
6699
- border: "sm",
6700
- borderColor: `outline.${toast.type}`,
6701
- boxShadow: "sm",
6722
+ "data-inverted": ((_b5 = toast.meta) == null ? void 0 : _b5.inverted) ? "" : void 0,
6702
6723
  role: "alert",
6703
6724
  children: [
6704
6725
  /* @__PURE__ */ jsx(AlertIcon, { variant: toast.type }),
6705
6726
  /* @__PURE__ */ jsx(Stack, { gap: "1", flex: "1", maxWidth: "100%", children: /* @__PURE__ */ jsx(Toast.Description, { children: toast.description }) }),
6706
- toast.action && /* @__PURE__ */ jsx(Toast.ActionTrigger, { onClick: toast.action.onClick, children: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "xs", children: toast.action.label }) }),
6727
+ toast.action && /* @__PURE__ */ jsx(Toast.ActionTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
6728
+ Button,
6729
+ {
6730
+ variant: "ghost",
6731
+ size: "xs",
6732
+ onClick: toast.action.onClick,
6733
+ children: toast.action.label
6734
+ }
6735
+ ) }),
6707
6736
  toast.closable && /* @__PURE__ */ jsx(Toast.CloseTrigger, { children: /* @__PURE__ */ jsx(CloseButton, { size: "xs" }) })
6708
6737
  ]
6709
6738
  }
@@ -7375,6 +7404,10 @@ var inputRecipe = defineRecipe({
7375
7404
  _focus: {
7376
7405
  outline: "2px solid",
7377
7406
  outlineColor: "outline.focus"
7407
+ },
7408
+ "&:-webkit-autofill, &:-webkit-autofill:focus": {
7409
+ boxShadow: "0 0 0 1000px var(--spor-colors-surface-info-hover) inset",
7410
+ WebkitTextFillColor: "var(--spor-colors-text)"
7378
7411
  }
7379
7412
  },
7380
7413
  floating: {
@@ -7394,6 +7427,10 @@ var inputRecipe = defineRecipe({
7394
7427
  focus: {
7395
7428
  outline: "1px solid",
7396
7429
  outlineColor: "outline.focus"
7430
+ },
7431
+ "&:-webkit-autofill, &:-webkit-autofill:focus": {
7432
+ boxShadow: "0 0 0 1000px var(--spor-colors-surface-info-hover) inset",
7433
+ WebkitTextFillColor: "var(--spor-colors-text)"
7397
7434
  }
7398
7435
  }
7399
7436
  },
@@ -7567,13 +7604,14 @@ var separatorRecipe = defineRecipe({
7567
7604
  borderStyle: "solid"
7568
7605
  },
7569
7606
  dashed: {
7607
+ "--dash-color": "var(--spor-colors-outline)",
7570
7608
  borderImageSlice: 1,
7571
7609
  borderImageSource: `repeating-linear-gradient(
7572
7610
  var(--gradient-direction),
7573
- var(--spor-colors-outline-disabled) 0,
7574
- var(--spor-colors-outline-disabled) var(--dash-size),
7611
+ var(--dash-color) 0,
7612
+ var(--dash-color) var(--dash-size),
7575
7613
  transparent var(--dash-size),
7576
- transparent calc(var(--dash-size) + var(--dash-gap))
7614
+ transparent calc(var(--dash-size) + var(--dash-gap))
7577
7615
  )`
7578
7616
  }
7579
7617
  },
@@ -7757,6 +7795,9 @@ var vyDigitalColors = defineSemanticTokens.colors({
7757
7795
  var vyUtviklingColors = defineSemanticTokens.colors({
7758
7796
  ...tokens4.color["vy-utvikling"].color.vyUtvikling
7759
7797
  });
7798
+ var vyTeknologiColors = defineSemanticTokens.colors({
7799
+ ...tokens4.color["vy-teknologi"].color.vyTeknologi
7800
+ });
7760
7801
  var cargonetColors = defineSemanticTokens.colors({
7761
7802
  ...tokens4.color["cargonet"].color.cargonet
7762
7803
  });
@@ -7803,6 +7844,10 @@ var semanticTokens = {
7803
7844
  ...baseSemanticTokens,
7804
7845
  colors: vyUtviklingColors
7805
7846
  },
7847
+ ["VyTeknologi" /* VyTeknologi */]: {
7848
+ ...baseSemanticTokens,
7849
+ colors: vyTeknologiColors
7850
+ },
7806
7851
  ["CargoNet" /* CargoNet */]: {
7807
7852
  ...baseSemanticTokens,
7808
7853
  colors: cargonetColors
@@ -10340,7 +10385,7 @@ var inputChipSlotRecipe = defineSlotRecipe({
10340
10385
  root: {
10341
10386
  fontSize: "desktop.xs",
10342
10387
  paddingX: "1.5",
10343
- paddingY: "0",
10388
+ height: 5,
10344
10389
  fontWeight: "normal",
10345
10390
  borderRadius: "xs"
10346
10391
  }
@@ -10349,17 +10394,16 @@ var inputChipSlotRecipe = defineSlotRecipe({
10349
10394
  root: {
10350
10395
  fontSize: "desktop.sm",
10351
10396
  paddingX: "2",
10352
- paddingY: "0.5",
10397
+ height: 6,
10353
10398
  fontWeight: "bold",
10354
10399
  borderRadius: "9px"
10355
10400
  }
10356
10401
  },
10357
10402
  md: {
10358
10403
  root: {
10359
- padding: 5,
10360
10404
  fontSize: "desktop.md",
10361
10405
  paddingX: "2",
10362
- paddingY: "1",
10406
+ height: 7,
10363
10407
  fontWeight: "bold",
10364
10408
  borderRadius: "sm"
10365
10409
  }
@@ -10368,7 +10412,7 @@ var inputChipSlotRecipe = defineSlotRecipe({
10368
10412
  root: {
10369
10413
  fontSize: "desktop.md",
10370
10414
  paddingX: "2",
10371
- paddingY: "3",
10415
+ height: "8",
10372
10416
  fontWeight: "bold",
10373
10417
  borderRadius: "md"
10374
10418
  }
@@ -12265,6 +12309,7 @@ var toastSlotRecipe = defineSlotRecipe({
12265
12309
  translate: "var(--x) var(--y)",
12266
12310
  opacity: "var(--opacity)",
12267
12311
  willChange: "translate, opacity, scale",
12312
+ outline: "1px solid",
12268
12313
  borderRadius: "sm",
12269
12314
  transition: "translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",
12270
12315
  transitionTimingFunction: "cubic-bezier(0.21, 1.02, 0.73, 1)",
@@ -12272,16 +12317,52 @@ var toastSlotRecipe = defineSlotRecipe({
12272
12317
  transition: "translate 400ms, scale 400ms, opacity 200ms",
12273
12318
  transitionTimingFunction: "cubic-bezier(0.06, 0.71, 0.55, 1)"
12274
12319
  },
12275
- boxShadow: "xl",
12320
+ boxShadow: "sm",
12276
12321
  color: "text",
12277
12322
  "&[data-type=success]": {
12278
- backgroundColor: "surface.success"
12323
+ backgroundColor: "surface.success",
12324
+ outlineColor: "outline.success"
12279
12325
  },
12280
12326
  "&[data-type=error]": {
12281
- backgroundColor: "surface.critical"
12327
+ backgroundColor: "surface.critical",
12328
+ outlineColor: "outline.critical"
12282
12329
  },
12283
12330
  "&[data-type=info]": {
12284
- backgroundColor: "surface.info"
12331
+ backgroundColor: "surface.info",
12332
+ outlineColor: "outline.info"
12333
+ },
12334
+ "&[data-inverted][data-type=success]": {
12335
+ backgroundColor: { _light: "darkTeal", _dark: "seaMist" },
12336
+ color: { _light: "mint", _dark: "jungle" },
12337
+ outlineColor: { _light: "greenHaze", _dark: "coralGreen" },
12338
+ "& path:first-of-type": {
12339
+ fill: { _light: "mint", _dark: "jungle" }
12340
+ },
12341
+ "& path:not(:first-of-type)": {
12342
+ fill: { _light: "darkTeal", _dark: "seaMist" }
12343
+ }
12344
+ },
12345
+ "&[data-inverted][data-type=error]": {
12346
+ backgroundColor: { _light: "burgundy", _dark: "lightRed" },
12347
+ color: { _light: "pink", _dark: "maroon" },
12348
+ outlineColor: { _light: "crimson", _dark: "salmon" },
12349
+ "& path:first-of-type": {
12350
+ fill: { _light: "pink", _dark: "maroon" }
12351
+ },
12352
+ "& path:not(:first-of-type)": {
12353
+ fill: { _light: "burgundy", _dark: "lightRed" }
12354
+ }
12355
+ },
12356
+ "&[data-inverted][data-type=info]": {
12357
+ backgroundColor: { _light: "darkBlue", _dark: "lightBlue" },
12358
+ color: { _light: "icyBlue", _dark: "royal" },
12359
+ outlineColor: { _light: "ocean", _dark: "cloudy" },
12360
+ "& path:first-of-type": {
12361
+ fill: { _light: "icyBlue", _dark: "navy" }
12362
+ },
12363
+ "& path:not(:first-of-type)": {
12364
+ fill: { _light: "darkBlue", _dark: "lightBlue" }
12365
+ }
12285
12366
  }
12286
12367
  },
12287
12368
  title: {
@@ -13155,6 +13236,10 @@ var themes = {
13155
13236
  ["VyUtvikling" /* VyUtvikling */]: createSystem(
13156
13237
  defaultBaseConfig,
13157
13238
  generateTheme("VyUtvikling" /* VyUtvikling */)
13239
+ ),
13240
+ ["VyTeknologi" /* VyTeknologi */]: createSystem(
13241
+ defaultBaseConfig,
13242
+ generateTheme("VyTeknologi" /* VyTeknologi */)
13158
13243
  )
13159
13244
  };
13160
13245
  var system = themes["VyDigital" /* VyDigital */];