@vygruppen/spor-react 3.4.4 → 3.5.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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BoxProps, As, StackProps as StackProps$1, AccordionProps as AccordionProps$1, AccordionItemProps, ButtonProps as ButtonProps$1, ButtonGroupProps as ButtonGroupProps$1, IconButtonProps as IconButtonProps$1, ResponsiveValue, FlexProps, CheckboxProps as CheckboxProps$1, CheckboxGroupProps as CheckboxGroupProps$1, StackDirection, FormControlProps as FormControlProps$1, FormLabelProps as FormLabelProps$1, InputProps as InputProps$1, InputElementProps as InputElementProps$1, SelectProps, RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1, SwitchProps as SwitchProps$1, TextareaProps as TextareaProps$1, LinkProps as LinkProps$1, SkeletonTextProps as SkeletonTextProps$1, ModalHeaderProps as ModalHeaderProps$1, DrawerContentProps, DrawerProps as DrawerProps$1, PopoverProps, ChakraProviderProps, TabsProps as TabsProps$1, TableProps as TableProps$1, BadgeProps as BadgeProps$1, CodeProps as CodeProps$1, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
1
+ import { BoxProps, As, StackProps as StackProps$1, AccordionProps as AccordionProps$1, AccordionItemProps, BreadcrumbProps as BreadcrumbProps$1, ButtonProps as ButtonProps$1, ButtonGroupProps as ButtonGroupProps$1, IconButtonProps as IconButtonProps$1, ResponsiveValue, FlexProps, CheckboxProps as CheckboxProps$1, CheckboxGroupProps as CheckboxGroupProps$1, StackDirection, FormControlProps as FormControlProps$1, FormLabelProps as FormLabelProps$1, InputProps as InputProps$1, InputElementProps as InputElementProps$1, SelectProps, RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1, SwitchProps as SwitchProps$1, TextareaProps as TextareaProps$1, LinkProps as LinkProps$1, SkeletonTextProps as SkeletonTextProps$1, ModalHeaderProps as ModalHeaderProps$1, DrawerContentProps, DrawerProps as DrawerProps$1, PopoverProps, ChakraProviderProps, TabsProps as TabsProps$1, TableProps as TableProps$1, BadgeProps as BadgeProps$1, CodeProps as CodeProps$1, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
2
2
  export { AccordionButton, AccordionButtonProps, AccordionIcon, AccordionItem, AccordionItemProps, AccordionPanel, AccordionPanelProps, Box, BoxProps, Center, CenterProps, Collapse, CollapseProps, Container, ContainerProps, DarkMode, DrawerBody, DrawerCloseButton, DrawerFooter, DrawerOverlay, DrawerProps, Fade, FadeProps, Flex, FlexProps, FormHelperText, Grid, GridItem, GridItemProps, GridProps, HStack, Image, ImageProps, Img, ImgProps, InputGroup, InputGroupProps, LightMode, Modal, ModalBody, ModalBodyProps, ModalCloseButton, ModalContent, ModalContentProps, ModalFooter, ModalFooterProps, ModalOverlay, ModalOverlayProps, ModalProps, Popover, PopoverAnchor, PopoverArrow, PopoverArrowProps, PopoverBody, PopoverBodyProps, PopoverCloseButton, PopoverCloseButtonProps, PopoverContent, PopoverContentProps, PopoverFooter, PopoverFooterProps, PopoverHeader, PopoverHeaderProps, PopoverProps, PopoverTrigger, ScaleFade, ScaleFadeProps, SimpleGrid, SimpleGridProps, Slide, SlideFade, SlideFadeProps, SlideProps, Spacer, SpacerProps, Tab, TabList, TabListProps, TabPanel, TabPanelProps, TabPanels, TabPanelsProps, TabProps, TableBodyProps, TableCaption, TableCaptionProps, TableCellProps, TableColumnHeaderProps, TableFooterProps, TableHeadProps, TableRowProps, Tbody, Td, Tfoot, Th, Thead, Tr, UseClipboardOptions, UseDisclosureProps, UseOutsideClickProps, VStack, Wrap, WrapItem, WrapItemProps, WrapProps, extendTheme, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToken } from '@chakra-ui/react';
3
3
  import tokens__default from '@vygruppen/spor-design-tokens';
4
4
  import * as tokens from '@vygruppen/spor-design-tokens';
@@ -6,6 +6,8 @@ export { tokens };
6
6
  import * as _chakra_ui_system_dist_system_types from '@chakra-ui/system/dist/system.types';
7
7
  import * as React from 'react';
8
8
  import React__default, { ChangeEvent } from 'react';
9
+ import * as _chakra_ui_breadcrumb_dist_breadcrumb_link from '@chakra-ui/breadcrumb/dist/breadcrumb-link';
10
+ import * as _chakra_ui_breadcrumb_dist_breadcrumb_item from '@chakra-ui/breadcrumb/dist/breadcrumb-item';
9
11
  import { DateValue } from '@internationalized/date';
10
12
  export { Time } from '@internationalized/date';
11
13
  import { AriaDatePickerProps, AriaDateRangePickerProps, AriaPositionProps, AriaComboBoxProps, AriaListBoxProps } from 'react-aria';
@@ -21,7 +23,7 @@ type DividerProps = BoxProps;
21
23
  * You can specify margins if you need to give the content some space, or use a `Stack` component to do it for you
22
24
  *
23
25
  * ```tsx
24
- * <Divider mt={4} mb={6} />
26
+ * <Divider marginTop={4} marginBottom={6} />
25
27
  * ```
26
28
  */
27
29
  declare const Divider: _chakra_ui_system_dist_system_types.ComponentWithAs<As, BoxProps>;
@@ -227,6 +229,27 @@ type StaticAlertProps = BaseAlertProps;
227
229
  */
228
230
  declare const StaticAlert: ({ children, ...props }: StaticAlertProps) => React__default.JSX.Element;
229
231
 
232
+ type BreadcrumbProps = BreadcrumbProps$1;
233
+ /**
234
+ * A breadcrumb component.
235
+ *
236
+ * Used to create customizable breadcrumbs.
237
+ *
238
+ * ```tsx
239
+ * <Breadcrumb>
240
+ * <BreadcrumbItem>
241
+ * <BreadcrumbLink href="/">Home</BreadcrumbLink>
242
+ * </BreadcrumbItem>
243
+ * <BreadcrumbItem isCurrentPage={true}>
244
+ * <BreadcrumbLink href="/about">About</BreadcrumbLink>
245
+ * </BreadcrumbItem>
246
+ * </Breadcrumb>
247
+ * ```
248
+ */
249
+ declare const Breadcrumb: (props: BreadcrumbProps) => React__default.JSX.Element;
250
+ declare const BreadcrumbItem: _chakra_ui_system_dist_system_types.ComponentWithAs<"li", _chakra_ui_breadcrumb_dist_breadcrumb_item.BreadcrumbItemProps>;
251
+ declare const BreadcrumbLink: _chakra_ui_system_dist_system_types.ComponentWithAs<"a", _chakra_ui_breadcrumb_dist_breadcrumb_link.BreadcrumbLinkProps>;
252
+
230
253
  type ButtonProps = Exclude<ButtonProps$1, "colorScheme" | "loadingText" | "size" | "variant"> & {
231
254
  /**
232
255
  * The size of the button.
@@ -2144,6 +2167,52 @@ declare const theme: {
2144
2167
  colorScheme?: string | undefined;
2145
2168
  } | undefined;
2146
2169
  };
2170
+ Breadcrumb: {
2171
+ baseStyle?: {
2172
+ link: {
2173
+ transitionProperty: string;
2174
+ transitionDuration: string;
2175
+ transitionTimingFunction: string;
2176
+ outline: string;
2177
+ color: string;
2178
+ textDecoration: string;
2179
+ "&:not([aria-current=page])": {
2180
+ cursor: string;
2181
+ paddingX: number;
2182
+ borderRadius: string;
2183
+ _hover: {
2184
+ backgroundColor: string;
2185
+ };
2186
+ _focusVisible: {
2187
+ boxShadow: string;
2188
+ };
2189
+ _active: {
2190
+ backgroundColor: string;
2191
+ };
2192
+ };
2193
+ };
2194
+ list: {
2195
+ flexWrap: string;
2196
+ alignItems: string;
2197
+ };
2198
+ } | undefined;
2199
+ sizes?: {
2200
+ [key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
2201
+ keys: ("link" | "container" | "separator" | "item")[];
2202
+ }>;
2203
+ } | undefined;
2204
+ variants?: {
2205
+ [key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
2206
+ keys: ("link" | "container" | "separator" | "item")[];
2207
+ }>;
2208
+ } | undefined;
2209
+ defaultProps?: {
2210
+ size?: string | number | undefined;
2211
+ variant?: string | number | undefined;
2212
+ colorScheme?: string | undefined;
2213
+ } | undefined;
2214
+ parts: ("link" | "container" | "separator" | "item")[];
2215
+ };
2147
2216
  Button: {
2148
2217
  baseStyle?: {
2149
2218
  border: number;
@@ -5378,52 +5447,6 @@ declare const theme: {
5378
5447
  } | undefined;
5379
5448
  parts: ("label" | "container" | "group" | "badge" | "excessLabel")[];
5380
5449
  };
5381
- Breadcrumb: {
5382
- baseStyle?: {
5383
- link: {
5384
- [x: string]: string | {
5385
- cursor: string;
5386
- _hover: {
5387
- [x: string]: string;
5388
- };
5389
- _focusVisible: {
5390
- boxShadow: string;
5391
- };
5392
- };
5393
- transitionProperty: string;
5394
- transitionDuration: string;
5395
- transitionTimingFunction: string;
5396
- outline: string;
5397
- color: string;
5398
- textDecoration: string;
5399
- "&:not([aria-current=page])": {
5400
- cursor: string;
5401
- _hover: {
5402
- [x: string]: string;
5403
- };
5404
- _focusVisible: {
5405
- boxShadow: string;
5406
- };
5407
- };
5408
- };
5409
- } | undefined;
5410
- sizes?: {
5411
- [key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
5412
- keys: ("link" | "container" | "separator" | "item")[];
5413
- }>;
5414
- } | undefined;
5415
- variants?: {
5416
- [key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
5417
- keys: ("link" | "container" | "separator" | "item")[];
5418
- }>;
5419
- } | undefined;
5420
- defaultProps?: {
5421
- size?: string | number | undefined;
5422
- variant?: string | number | undefined;
5423
- colorScheme?: string | undefined;
5424
- } | undefined;
5425
- parts: ("link" | "container" | "separator" | "item")[];
5426
- };
5427
5450
  Container: {
5428
5451
  baseStyle?: {
5429
5452
  w: string;
@@ -7066,4 +7089,4 @@ type TextProps = Omit<TextProps$1, "textStyle"> & {
7066
7089
  */
7067
7090
  declare const Text: _chakra_ui_system_dist_system_types.ComponentWithAs<"p", TextProps>;
7068
7091
 
7069
- export { Accordion, AccordionProps, AttachedInputs, Badge, BadgeProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Card, CardProps, CardSelect, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChoiceChip, ChoiceChipProps, ClosableAlert, CloseButton, CloseButtonProps, Code, CodeProps, ColorInlineLoader, ColorInlineLoaderProps, ColorSpinner, ColorSpinnerProps, Combobox, ComboboxProps, ContentLoader, ContentLoaderProps, DarkFullScreenLoader, DarkInlineLoader, DarkInlineLoaderProps, DarkSpinner, DarkSpinnerProps, DatePicker, DateRangePicker, Divider, DividerProps, Drawer, DrawerContent, ModalHeader as DrawerHeader, Expandable, ExpandableAlert, ExpandableItem, ExpandableItemProps, FloatingActionButton, FormControl, FormControlProps, FormErrorMessage, FormErrorMessageProps, FormLabel, FormLabelProps, Heading, HeadingProps, IconButton, IconButtonProps, InfoSelect, InfoTag, InfoTagProps, Input, InputElementProps, InputLeftElement, InputProps, InputRightElement, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightInlineLoaderProps, LightSpinner, LightSpinnerProps, LineIcon, LineIconProps, ListBox, ModalHeader, ModalHeaderProps, NativeSelect, NativeSelectProps, NumericStepper, PasswordInput, PasswordInputProps, PhoneNumberInput, PlayPauseButton, PopoverWizardBody, PopoverWizardProps, ProgressBar, ProgressLoader, Radio, RadioGroup, RadioGroupProps, RadioProps, SearchInput, SearchInputProps, SimpleDrawer, SimpleDrawerProps, SimplePopover, Skeleton, SkeletonCircle, SkeletonCircleProps, SkeletonProps, SkeletonText, SkeletonTextProps, SkipButton, SpinnerProps, SporProvider, Stack, StackProps, StaticAlert, Stepper, StepperStep, Switch, SwitchProps, Table, TableProps, Tabs, TabsProps, Text, TextLink, TextProps, Textarea, TextareaProps, TimePicker, ToastOptions, Translations, TravelTag, TravelTagProps, VyLogo, VyLogoProps, WizardPopover, WizardPopoverProps, createTexts, fontFaces, theme, useToast, useTranslation };
7092
+ export { Accordion, AccordionProps, AttachedInputs, Badge, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Card, CardProps, CardSelect, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChoiceChip, ChoiceChipProps, ClosableAlert, CloseButton, CloseButtonProps, Code, CodeProps, ColorInlineLoader, ColorInlineLoaderProps, ColorSpinner, ColorSpinnerProps, Combobox, ComboboxProps, ContentLoader, ContentLoaderProps, DarkFullScreenLoader, DarkInlineLoader, DarkInlineLoaderProps, DarkSpinner, DarkSpinnerProps, DatePicker, DateRangePicker, Divider, DividerProps, Drawer, DrawerContent, ModalHeader as DrawerHeader, Expandable, ExpandableAlert, ExpandableItem, ExpandableItemProps, FloatingActionButton, FormControl, FormControlProps, FormErrorMessage, FormErrorMessageProps, FormLabel, FormLabelProps, Heading, HeadingProps, IconButton, IconButtonProps, InfoSelect, InfoTag, InfoTagProps, Input, InputElementProps, InputLeftElement, InputProps, InputRightElement, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightInlineLoaderProps, LightSpinner, LightSpinnerProps, LineIcon, LineIconProps, ListBox, ModalHeader, ModalHeaderProps, NativeSelect, NativeSelectProps, NumericStepper, PasswordInput, PasswordInputProps, PhoneNumberInput, PlayPauseButton, PopoverWizardBody, PopoverWizardProps, ProgressBar, ProgressLoader, Radio, RadioGroup, RadioGroupProps, RadioProps, SearchInput, SearchInputProps, SimpleDrawer, SimpleDrawerProps, SimplePopover, Skeleton, SkeletonCircle, SkeletonCircleProps, SkeletonProps, SkeletonText, SkeletonTextProps, SkipButton, SpinnerProps, SporProvider, Stack, StackProps, StaticAlert, Stepper, StepperStep, Switch, SwitchProps, Table, TableProps, Tabs, TabsProps, Text, TextLink, TextProps, Textarea, TextareaProps, TimePicker, ToastOptions, Translations, TravelTag, TravelTagProps, VyLogo, VyLogoProps, WizardPopover, WizardPopoverProps, createTexts, fontFaces, theme, useToast, useTranslation };