@vygruppen/spor-react 12.4.6 → 12.4.7

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.4.6 build /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.4.7 build /home/runner/work/spor/spor/packages/spor-react
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.tsx, src/icons/index.tsx
@@ -10,18 +10,18 @@ CLI Target: node16
10
10
  CJS Build start
11
11
  ESM Build start
12
12
  DTS Build start
13
- CJS dist/index.js 310.51 KB
14
- CJS dist/icons/index.js 380.00 B
15
- CJS dist/index.js.map 622.22 KB
16
- CJS dist/icons/index.js.map 157.00 B
17
- CJS ⚡️ Build success in 2607ms
18
- ESM dist/index.mjs 290.17 KB
13
+ ESM dist/index.mjs 290.18 KB
19
14
  ESM dist/icons/index.mjs 110.00 B
20
- ESM dist/index.mjs.map 622.22 KB
15
+ ESM dist/index.mjs.map 622.39 KB
21
16
  ESM dist/icons/index.mjs.map 157.00 B
22
- ESM ⚡️ Build success in 2607ms
23
- DTS ⚡️ Build success in 26071ms
17
+ ESM ⚡️ Build success in 2865ms
18
+ CJS dist/icons/index.js 380.00 B
19
+ CJS dist/index.js 310.62 KB
20
+ CJS dist/icons/index.js.map 157.00 B
21
+ CJS dist/index.js.map 622.39 KB
22
+ CJS ⚡️ Build success in 2866ms
23
+ DTS ⚡️ Build success in 28808ms
24
24
  DTS dist/icons/index.d.ts 44.00 B
25
- DTS dist/index.d.ts 126.31 KB
25
+ DTS dist/index.d.ts 126.45 KB
26
26
  DTS dist/icons/index.d.mts 44.00 B
27
- DTS dist/index.d.mts 126.31 KB
27
+ DTS dist/index.d.mts 126.45 KB
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.4.6 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.4.7 postinstall /home/runner/work/spor/spor/packages/spor-react
3
3
  > chakra typegen src/theme/index.ts
4
4
 
5
5
  ┌ Chakra CLI ⚡️
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.4.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 5b6e4fa: Export ClientOnly and fix types for ProgressBar
8
+ - 727a771: Fix variant type in timepicker
9
+
3
10
  ## 12.4.6
4
11
 
5
12
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -2,7 +2,7 @@ import * as React$1 from 'react';
2
2
  import React__default, { PropsWithChildren, ReactNode } from 'react';
3
3
  import * as _chakra_ui_react from '@chakra-ui/react';
4
4
  import { Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, Breadcrumb as Breadcrumb$1, RecipeVariantProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Checkbox as Checkbox$1, CheckboxGroupProps as CheckboxGroupProps$1, CheckboxCardRootProps, CheckboxCard, Fieldset as Fieldset$1, InputProps as InputProps$1, ListRootProps, NativeSelectFieldProps, NativeSelect as NativeSelect$1, RadioGroup as RadioGroup$1, SelectRootProps, SelectLabelProps, Select as Select$1, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, RadioCard as RadioCard$1, SeparatorProps, LinkProps as LinkProps$1, List as List$1, UseProgressProps, SkeletonProps as SkeletonProps$1, CircleProps, Popover as Popover$1, Pagination as Pagination$1, ChakraProviderProps, SystemContext, TabsRootProps, Tabs as Tabs$1, TableRootProps, Table as Table$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
5
- export { Box, BoxProps, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, CenterProps, Collapsible, CollapsibleRootProps, Container, ContainerProps, Em, Flex, FlexProps, For, FormatByte, FormatNumber, Grid, GridItem, GridItemProps, GridProps, HStack, Image, ImageProps, Kbd, LocaleProvider, Portal, PortalProps, Show, SimpleGrid, SimpleGridProps, Spacer, SpacerProps, Span, Stack, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableColumn, TableColumnHeader, TableColumnHeaderProps, TableColumnProps, TableFooter, TableFooterProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, UseDisclosureProps, VStack, VisuallyHidden, createListCollection, createSystem, defineConfig, defineRecipe, defineStyle, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useToken } from '@chakra-ui/react';
5
+ export { Box, BoxProps, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, CenterProps, ClientOnly, Collapsible, CollapsibleRootProps, Container, ContainerProps, Em, Flex, FlexProps, For, FormatByte, FormatNumber, Grid, GridItem, GridItemProps, GridProps, HStack, Image, ImageProps, Kbd, LocaleProvider, Portal, PortalProps, Show, SimpleGrid, SimpleGridProps, Spacer, SpacerProps, Span, Stack, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableColumn, TableColumnHeader, TableColumnHeaderProps, TableColumnProps, TableFooter, TableFooterProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, UseDisclosureProps, VStack, VisuallyHidden, createListCollection, createSystem, defineConfig, defineRecipe, defineStyle, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useToken } from '@chakra-ui/react';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { IconComponent } from '@vygruppen/spor-icon-react';
8
8
  import { ThemeProviderProps } from 'next-themes';
@@ -672,6 +672,11 @@ type TimePickerProps = Omit<BoxProps, "defaultValue" | "onChange"> & FieldBasePr
672
672
  minuteInterval?: number;
673
673
  /** Whether or not the field is disabled */
674
674
  disabled?: boolean;
675
+ /**
676
+ * The variant of the time picker.
677
+ * Defaults to "core".
678
+ */
679
+ variant?: "core" | "floating" | "ghost";
675
680
  };
676
681
  /** A time picker component.
677
682
  *
@@ -2482,7 +2487,7 @@ declare const progressBarRecipe: _chakra_ui_react.SlotRecipeDefinition<"descript
2482
2487
 
2483
2488
  type ProgressBarVariants = RecipeVariantProps<typeof progressBarRecipe>;
2484
2489
  type ProgressBarProps = BoxProps & UseProgressProps & PropsWithChildren<ProgressBarVariants> & {
2485
- children: React__default.ReactNode;
2490
+ children?: React__default.ReactNode;
2486
2491
  /** The height of the progress bar.
2487
2492
  * Defaults to .5rem
2488
2493
  **/
@@ -2493,12 +2498,12 @@ type ProgressBarProps = BoxProps & UseProgressProps & PropsWithChildren<Progress
2493
2498
  **/
2494
2499
  width?: BoxProps["width"];
2495
2500
  /** Pass if no label is passed to the label */
2496
- "aria-label": string;
2501
+ "aria-label"?: string;
2497
2502
  /** Optional text shown below the loader.
2498
2503
  *
2499
2504
  * If you pass an array of strings, the text will rotate every 5 seconds. If you want to change the delay, pass the delay in milliseconds to the `labelRotationDelay` prop.
2500
2505
  */
2501
- label: string | string[];
2506
+ label?: string | string[];
2502
2507
  /** The number of milliseconds a label is shown, if an array of strings is passed to the `label` prop.
2503
2508
  *
2504
2509
  * Defaults to 5000 (5 seconds).
@@ -2539,7 +2544,7 @@ type ProgressBarProps = BoxProps & UseProgressProps & PropsWithChildren<Progress
2539
2544
  declare const ProgressBar: React__default.ForwardRefExoticComponent<BoxProps & UseProgressProps & {
2540
2545
  children?: React__default.ReactNode | undefined;
2541
2546
  } & {
2542
- children: React__default.ReactNode;
2547
+ children?: React__default.ReactNode;
2543
2548
  /** The height of the progress bar.
2544
2549
  * Defaults to .5rem
2545
2550
  **/
@@ -2550,12 +2555,12 @@ declare const ProgressBar: React__default.ForwardRefExoticComponent<BoxProps & U
2550
2555
  **/
2551
2556
  width?: BoxProps["width"];
2552
2557
  /** Pass if no label is passed to the label */
2553
- "aria-label": string;
2558
+ "aria-label"?: string;
2554
2559
  /** Optional text shown below the loader.
2555
2560
  *
2556
2561
  * If you pass an array of strings, the text will rotate every 5 seconds. If you want to change the delay, pass the delay in milliseconds to the `labelRotationDelay` prop.
2557
2562
  */
2558
- label: string | string[];
2563
+ label?: string | string[];
2559
2564
  /** The number of milliseconds a label is shown, if an array of strings is passed to the `label` prop.
2560
2565
  *
2561
2566
  * Defaults to 5000 (5 seconds).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as React$1 from 'react';
2
2
  import React__default, { PropsWithChildren, ReactNode } from 'react';
3
3
  import * as _chakra_ui_react from '@chakra-ui/react';
4
4
  import { Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, Breadcrumb as Breadcrumb$1, RecipeVariantProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Checkbox as Checkbox$1, CheckboxGroupProps as CheckboxGroupProps$1, CheckboxCardRootProps, CheckboxCard, Fieldset as Fieldset$1, InputProps as InputProps$1, ListRootProps, NativeSelectFieldProps, NativeSelect as NativeSelect$1, RadioGroup as RadioGroup$1, SelectRootProps, SelectLabelProps, Select as Select$1, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, RadioCard as RadioCard$1, SeparatorProps, LinkProps as LinkProps$1, List as List$1, UseProgressProps, SkeletonProps as SkeletonProps$1, CircleProps, Popover as Popover$1, Pagination as Pagination$1, ChakraProviderProps, SystemContext, TabsRootProps, Tabs as Tabs$1, TableRootProps, Table as Table$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
5
- export { Box, BoxProps, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, CenterProps, Collapsible, CollapsibleRootProps, Container, ContainerProps, Em, Flex, FlexProps, For, FormatByte, FormatNumber, Grid, GridItem, GridItemProps, GridProps, HStack, Image, ImageProps, Kbd, LocaleProvider, Portal, PortalProps, Show, SimpleGrid, SimpleGridProps, Spacer, SpacerProps, Span, Stack, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableColumn, TableColumnHeader, TableColumnHeaderProps, TableColumnProps, TableFooter, TableFooterProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, UseDisclosureProps, VStack, VisuallyHidden, createListCollection, createSystem, defineConfig, defineRecipe, defineStyle, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useToken } from '@chakra-ui/react';
5
+ export { Box, BoxProps, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, CenterProps, ClientOnly, Collapsible, CollapsibleRootProps, Container, ContainerProps, Em, Flex, FlexProps, For, FormatByte, FormatNumber, Grid, GridItem, GridItemProps, GridProps, HStack, Image, ImageProps, Kbd, LocaleProvider, Portal, PortalProps, Show, SimpleGrid, SimpleGridProps, Spacer, SpacerProps, Span, Stack, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableColumn, TableColumnHeader, TableColumnHeaderProps, TableColumnProps, TableFooter, TableFooterProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, UseDisclosureProps, VStack, VisuallyHidden, createListCollection, createSystem, defineConfig, defineRecipe, defineStyle, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useToken } from '@chakra-ui/react';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { IconComponent } from '@vygruppen/spor-icon-react';
8
8
  import { ThemeProviderProps } from 'next-themes';
@@ -672,6 +672,11 @@ type TimePickerProps = Omit<BoxProps, "defaultValue" | "onChange"> & FieldBasePr
672
672
  minuteInterval?: number;
673
673
  /** Whether or not the field is disabled */
674
674
  disabled?: boolean;
675
+ /**
676
+ * The variant of the time picker.
677
+ * Defaults to "core".
678
+ */
679
+ variant?: "core" | "floating" | "ghost";
675
680
  };
676
681
  /** A time picker component.
677
682
  *
@@ -2482,7 +2487,7 @@ declare const progressBarRecipe: _chakra_ui_react.SlotRecipeDefinition<"descript
2482
2487
 
2483
2488
  type ProgressBarVariants = RecipeVariantProps<typeof progressBarRecipe>;
2484
2489
  type ProgressBarProps = BoxProps & UseProgressProps & PropsWithChildren<ProgressBarVariants> & {
2485
- children: React__default.ReactNode;
2490
+ children?: React__default.ReactNode;
2486
2491
  /** The height of the progress bar.
2487
2492
  * Defaults to .5rem
2488
2493
  **/
@@ -2493,12 +2498,12 @@ type ProgressBarProps = BoxProps & UseProgressProps & PropsWithChildren<Progress
2493
2498
  **/
2494
2499
  width?: BoxProps["width"];
2495
2500
  /** Pass if no label is passed to the label */
2496
- "aria-label": string;
2501
+ "aria-label"?: string;
2497
2502
  /** Optional text shown below the loader.
2498
2503
  *
2499
2504
  * If you pass an array of strings, the text will rotate every 5 seconds. If you want to change the delay, pass the delay in milliseconds to the `labelRotationDelay` prop.
2500
2505
  */
2501
- label: string | string[];
2506
+ label?: string | string[];
2502
2507
  /** The number of milliseconds a label is shown, if an array of strings is passed to the `label` prop.
2503
2508
  *
2504
2509
  * Defaults to 5000 (5 seconds).
@@ -2539,7 +2544,7 @@ type ProgressBarProps = BoxProps & UseProgressProps & PropsWithChildren<Progress
2539
2544
  declare const ProgressBar: React__default.ForwardRefExoticComponent<BoxProps & UseProgressProps & {
2540
2545
  children?: React__default.ReactNode | undefined;
2541
2546
  } & {
2542
- children: React__default.ReactNode;
2547
+ children?: React__default.ReactNode;
2543
2548
  /** The height of the progress bar.
2544
2549
  * Defaults to .5rem
2545
2550
  **/
@@ -2550,12 +2555,12 @@ declare const ProgressBar: React__default.ForwardRefExoticComponent<BoxProps & U
2550
2555
  **/
2551
2556
  width?: BoxProps["width"];
2552
2557
  /** Pass if no label is passed to the label */
2553
- "aria-label": string;
2558
+ "aria-label"?: string;
2554
2559
  /** Optional text shown below the loader.
2555
2560
  *
2556
2561
  * If you pass an array of strings, the text will rotate every 5 seconds. If you want to change the delay, pass the delay in milliseconds to the `labelRotationDelay` prop.
2557
2562
  */
2558
- label: string | string[];
2563
+ label?: string | string[];
2559
2564
  /** The number of milliseconds a label is shown, if an array of strings is passed to the `label` prop.
2560
2565
  *
2561
2566
  * Defaults to 5000 (5 seconds).
package/dist/index.js CHANGED
@@ -10546,6 +10546,10 @@ Object.defineProperty(exports, "Center", {
10546
10546
  enumerable: true,
10547
10547
  get: function () { return react.Center; }
10548
10548
  });
10549
+ Object.defineProperty(exports, "ClientOnly", {
10550
+ enumerable: true,
10551
+ get: function () { return react.ClientOnly; }
10552
+ });
10549
10553
  Object.defineProperty(exports, "Collapsible", {
10550
10554
  enumerable: true,
10551
10555
  get: function () { return react.Collapsible; }