@vygruppen/spor-react 12.4.13 → 12.4.14

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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useSlotRecipe, Accordion as Accordion$1, Stack, Box, HStack, Progress, defineRecipe, chakra, Text, useRecipe, Circle, Skeleton as Skeleton$1, Button as Button$1, Group as Group$1, Badge as Badge$1, Code as Code$1, Clipboard as Clipboard$1, IconButton as IconButton$1, useDisclosure, Alert as Alert$1, Span, Flex, Breadcrumb as Breadcrumb$1, ClientOnly as ClientOnly$1, Field, defineStyle, defineSlotRecipe, PopoverAnchor, useFieldContext, Popover as Popover$1, Portal, Dialog, createContext as createContext$1, Drawer as Drawer$1, Grid, GridItem, usePopoverContext, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCard, Fieldset as Fieldset$1, Input as Input$1, InputElement, NativeSelect as NativeSelect$1, useControllableState, createListCollection, RadioGroup as RadioGroup$1, Select as Select$1, useSelectContext, Switch as Switch$1, Textarea as Textarea$1, RadioCard as RadioCard$1, Separator as Separator$1, Link, List as List$1, Center, PopoverCloseTrigger, Pagination as Pagination$1, usePaginationContext, createToaster, Tabs as Tabs$1, Table as Table$1, defineSemanticTokens, defineTokens, defineAnimationStyles, defineGlobalStyles, defineTextStyles, createSystem, defaultBaseConfig, VisuallyHidden, defineConfig, ListItem, ChakraProvider, Toaster as Toaster$1, Toast, Icon } from '@chakra-ui/react';
2
2
  export { Box, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, ClientOnly, Collapsible, Container, Em, Flex, For, FormatByte, FormatNumber, Grid, GridItem, HStack, Image, Kbd, LocaleProvider, Portal, Show, SimpleGrid, Spacer, Span, Stack, TableBody, TableCaption, TableCell, TableColumn, TableColumnGroup, TableColumnHeader, TableFooter, TableHeader, TableRoot, TableRow, VStack, VisuallyHidden, createListCollection, createSystem, defineConfig, defineRecipe, defineStyle, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useToken } from '@chakra-ui/react';
3
- import { DropdownDownFill24Icon, CopyOutline18Icon, CheckmarkFill18Icon, CloseFill18Icon, CloseFill30Icon, CloseFill24Icon, ServiceFill24Icon, QuestionFill24Icon, ErrorOutline24Icon, ErrorFill24Icon, AltTransportFill24Icon, WarningFill24Icon, SuccessFill24Icon, InformationFill24Icon, DropdownDownFill18Icon, DropdownRightFill18Icon, CalendarOutline24Icon, ArrowLeftFill24Icon, CloseOutline24Icon, SearchOutline24Icon, InformationFill18Icon, WarningFill18Icon, ErrorFill18Icon, Forward15MediaControllerFill30Icon, Backward15MediaControllerFill30Icon, PauseMediaControllerFill24Icon, PlayMediaControllerFill24Icon, NextMediaControllerFill30Icon, PreviousMediaControllerFill30Icon, ArrowRightFill18Icon, DropdownLeftOutline18Icon, DropdownRightOutline18Icon, WalkFill30Icon, WalkFill24Icon, WalkFill18Icon, AltTransportFill30Icon, AltTransportFill18Icon, TramFill30Icon, TramFill24Icon, TramFill18Icon, SubwayFill30Icon, SubwayFill24Icon, SubwayFill18Icon, FerryFill30Icon, FerryFill24Icon, FerryFill18Icon, BusFill30Icon, BusFill24Icon, BusFill18Icon, ExpressBusFill30Icon, ExpressBusFill24Icon, ExpressBusFill18Icon, TrainFill30Icon, TrainFill24Icon, TrainFill18Icon, LinkOutOutline24Icon, ArrowLeftOutline24Icon, ArrowRightOutline24Icon, DropdownLeftFill18Icon, SuccessFill18Icon } from '@vygruppen/spor-icon-react';
3
+ import { DropdownDownFill24Icon, CopyOutline18Icon, CheckmarkFill18Icon, CloseFill18Icon, CloseFill30Icon, CloseFill24Icon, ServiceFill24Icon, QuestionFill24Icon, ErrorOutline24Icon, ErrorFill24Icon, AltTransportFill24Icon, WarningFill24Icon, SuccessFill24Icon, InformationFill24Icon, DropdownDownFill18Icon, DropdownRightFill18Icon, CalendarOutline24Icon, ArrowLeftFill24Icon, CloseOutline24Icon, SearchOutline24Icon, InformationFill18Icon, WarningFill18Icon, ErrorFill18Icon, Forward15MediaControllerFill30Icon, Backward15MediaControllerFill30Icon, PauseMediaControllerFill24Icon, PlayMediaControllerFill24Icon, NextMediaControllerFill30Icon, PreviousMediaControllerFill30Icon, ArrowRightFill18Icon, DropdownLeftOutline18Icon, DropdownRightOutline18Icon, WalkFill30Icon, WalkFill24Icon, WalkFill18Icon, AltTransportFill30Icon, AltTransportFill18Icon, TramFill30Icon, TramFill24Icon, TramFill18Icon, SubwayFill30Icon, SubwayFill24Icon, SubwayFill18Icon, FerryFill30Icon, FerryFill24Icon, FerryFill18Icon, BusFill30Icon, BusFill24Icon, BusFill18Icon, ExpressBusFill30Icon, ExpressBusFill24Icon, ExpressBusFill18Icon, TrainFill30Icon, TrainFill24Icon, TrainFill18Icon, LinkOutOutline24Icon, LinkOutOutline18Icon, ArrowLeftOutline24Icon, ArrowRightOutline24Icon, DropdownLeftFill18Icon, SuccessFill18Icon } from '@vygruppen/spor-icon-react';
4
4
  import * as React28 from 'react';
5
5
  import React28__default, { forwardRef, createContext, useId, cloneElement, useEffect, useRef, isValidElement, useState, useMemo, useLayoutEffect, useContext } from 'react';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -1436,7 +1436,7 @@ var Field3 = React28.forwardRef(
1436
1436
  } = props;
1437
1437
  const recipe = useSlotRecipe({ key: "field" });
1438
1438
  const styles = recipe();
1439
- return /* @__PURE__ */ jsxs(Stack, { gap: "2", ref, ...rest, width: "100%", children: [
1439
+ return /* @__PURE__ */ jsxs(Stack, { gap: "2", ref, ...rest, children: [
1440
1440
  /* @__PURE__ */ jsxs(
1441
1441
  Field.Root,
1442
1442
  {
@@ -4855,8 +4855,11 @@ var getDeviationLevelIcon = ({
4855
4855
  }
4856
4856
  }
4857
4857
  };
4858
- var ExternalIcon = ({ label }) => /* @__PURE__ */ jsxs(Fragment, { children: [
4859
- /* @__PURE__ */ jsx(LinkOutOutline24Icon, { "aria-hidden": true }),
4858
+ var ExternalIcon = ({
4859
+ label,
4860
+ size
4861
+ }) => /* @__PURE__ */ jsxs(Fragment, { children: [
4862
+ size === "lg" || size === "md" ? /* @__PURE__ */ jsx(LinkOutOutline24Icon, { "aria-hidden": true }) : /* @__PURE__ */ jsx(LinkOutOutline18Icon, { "aria-hidden": true }),
4860
4863
  /* @__PURE__ */ jsx(VisuallyHidden, { children: label })
4861
4864
  ] });
4862
4865
  var TextLink = forwardRef(
@@ -4869,13 +4872,13 @@ var TextLink = forwardRef(
4869
4872
  ...children.props,
4870
4873
  children: /* @__PURE__ */ jsxs(Fragment, { children: [
4871
4874
  children.props.children,
4872
- isExternal && /* @__PURE__ */ jsx(ExternalIcon, { label: externalLabel })
4875
+ isExternal && /* @__PURE__ */ jsx(ExternalIcon, { label: externalLabel, size: props.size })
4873
4876
  ] })
4874
4877
  }) });
4875
4878
  }
4876
4879
  return /* @__PURE__ */ jsxs(Link, { href, ...props, ref, children: [
4877
4880
  children,
4878
- isExternal && /* @__PURE__ */ jsx(ExternalIcon, { label: externalLabel })
4881
+ isExternal && /* @__PURE__ */ jsx(ExternalIcon, { label: externalLabel, size: props.size })
4879
4882
  ] });
4880
4883
  }
4881
4884
  );
@@ -6587,6 +6590,7 @@ var linkRecipe = defineRecipe({
6587
6590
  paddingY: "0",
6588
6591
  color: "inherit",
6589
6592
  display: "inline-flex",
6593
+ alignItems: "center",
6590
6594
  gap: "0",
6591
6595
  position: "relative",
6592
6596
  boxDecorationBreak: "clone",
@@ -6628,7 +6632,25 @@ var linkRecipe = defineRecipe({
6628
6632
  }
6629
6633
  }
6630
6634
  }
6635
+ },
6636
+ size: {
6637
+ xs: {
6638
+ fontSize: { base: "mobile.xs", sm: "desktop.xs" }
6639
+ },
6640
+ sm: {
6641
+ fontSize: { base: "mobile.sm", sm: "desktop.sm" }
6642
+ },
6643
+ md: {
6644
+ fontSize: { base: "mobile.md", sm: "desktop.md" }
6645
+ },
6646
+ lg: {
6647
+ fontSize: { base: "mobile.lg", sm: "desktop.lg" }
6648
+ }
6631
6649
  }
6650
+ },
6651
+ defaultVariants: {
6652
+ variant: "primary",
6653
+ size: "sm"
6632
6654
  }
6633
6655
  });
6634
6656
  var _a3, _b2;