@vygruppen/spor-react 12.4.13 → 12.4.15

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
  {
@@ -3701,8 +3701,6 @@ var numericStepperRecipe = defineSlotRecipe({
3701
3701
  color: "core.text"
3702
3702
  },
3703
3703
  button: {
3704
- border: "0.3rem solid",
3705
- borderColor: "surface",
3706
3704
  outlineOffset: "-2px",
3707
3705
  width: "auto",
3708
3706
  _icon: {
@@ -4855,8 +4853,11 @@ var getDeviationLevelIcon = ({
4855
4853
  }
4856
4854
  }
4857
4855
  };
4858
- var ExternalIcon = ({ label }) => /* @__PURE__ */ jsxs(Fragment, { children: [
4859
- /* @__PURE__ */ jsx(LinkOutOutline24Icon, { "aria-hidden": true }),
4856
+ var ExternalIcon = ({
4857
+ label,
4858
+ size
4859
+ }) => /* @__PURE__ */ jsxs(Fragment, { children: [
4860
+ size === "lg" || size === "md" ? /* @__PURE__ */ jsx(LinkOutOutline24Icon, { "aria-hidden": true }) : /* @__PURE__ */ jsx(LinkOutOutline18Icon, { "aria-hidden": true }),
4860
4861
  /* @__PURE__ */ jsx(VisuallyHidden, { children: label })
4861
4862
  ] });
4862
4863
  var TextLink = forwardRef(
@@ -4869,13 +4870,13 @@ var TextLink = forwardRef(
4869
4870
  ...children.props,
4870
4871
  children: /* @__PURE__ */ jsxs(Fragment, { children: [
4871
4872
  children.props.children,
4872
- isExternal && /* @__PURE__ */ jsx(ExternalIcon, { label: externalLabel })
4873
+ isExternal && /* @__PURE__ */ jsx(ExternalIcon, { label: externalLabel, size: props.size })
4873
4874
  ] })
4874
4875
  }) });
4875
4876
  }
4876
4877
  return /* @__PURE__ */ jsxs(Link, { href, ...props, ref, children: [
4877
4878
  children,
4878
- isExternal && /* @__PURE__ */ jsx(ExternalIcon, { label: externalLabel })
4879
+ isExternal && /* @__PURE__ */ jsx(ExternalIcon, { label: externalLabel, size: props.size })
4879
4880
  ] });
4880
4881
  }
4881
4882
  );
@@ -6587,6 +6588,7 @@ var linkRecipe = defineRecipe({
6587
6588
  paddingY: "0",
6588
6589
  color: "inherit",
6589
6590
  display: "inline-flex",
6591
+ alignItems: "center",
6590
6592
  gap: "0",
6591
6593
  position: "relative",
6592
6594
  boxDecorationBreak: "clone",
@@ -6628,7 +6630,25 @@ var linkRecipe = defineRecipe({
6628
6630
  }
6629
6631
  }
6630
6632
  }
6633
+ },
6634
+ size: {
6635
+ xs: {
6636
+ fontSize: { base: "mobile.xs", sm: "desktop.xs" }
6637
+ },
6638
+ sm: {
6639
+ fontSize: { base: "mobile.sm", sm: "desktop.sm" }
6640
+ },
6641
+ md: {
6642
+ fontSize: { base: "mobile.md", sm: "desktop.md" }
6643
+ },
6644
+ lg: {
6645
+ fontSize: { base: "mobile.lg", sm: "desktop.lg" }
6646
+ }
6631
6647
  }
6648
+ },
6649
+ defaultVariants: {
6650
+ variant: "primary",
6651
+ size: "sm"
6632
6652
  }
6633
6653
  });
6634
6654
  var _a3, _b2;