@vygruppen/spor-react 12.5.4 → 12.5.6
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/.turbo/turbo-build.log +10 -10
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/accordion/Expandable.tsx +1 -1
- package/src/accordion/types.ts +7 -5
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@12.5.
|
2
|
+
> @vygruppen/spor-react@12.5.6 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
|
+
ESM dist/index.mjs 290.51 KB
|
13
14
|
ESM dist/icons/index.mjs 110.00 B
|
14
|
-
ESM dist/index.mjs 290.52 KB
|
15
15
|
ESM dist/icons/index.mjs.map 157.00 B
|
16
|
-
ESM dist/index.mjs.map 622.
|
17
|
-
ESM ⚡️ Build success in
|
18
|
-
CJS dist/index.js 311.
|
16
|
+
ESM dist/index.mjs.map 622.94 KB
|
17
|
+
ESM ⚡️ Build success in 2822ms
|
18
|
+
CJS dist/index.js 311.05 KB
|
19
19
|
CJS dist/icons/index.js 380.00 B
|
20
|
-
CJS dist/index.js.map 622.96 KB
|
21
20
|
CJS dist/icons/index.js.map 157.00 B
|
22
|
-
CJS
|
23
|
-
|
21
|
+
CJS dist/index.js.map 622.94 KB
|
22
|
+
CJS ⚡️ Build success in 2825ms
|
23
|
+
DTS ⚡️ Build success in 26619ms
|
24
24
|
DTS dist/icons/index.d.ts 44.00 B
|
25
|
-
DTS dist/index.d.ts 153.
|
25
|
+
DTS dist/index.d.ts 153.14 KB
|
26
26
|
DTS dist/icons/index.d.mts 44.00 B
|
27
|
-
DTS dist/index.d.mts 153.
|
27
|
+
DTS dist/index.d.mts 153.14 KB
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 12.5.6
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- be1c7e9: Correctly fix type of expandable
|
8
|
+
|
9
|
+
## 12.5.5
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- 6fc249b: Fix type for expandable, so title can be ReactNode.
|
14
|
+
|
3
15
|
## 12.5.4
|
4
16
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React$1 from 'react';
|
2
|
-
import React__default, {
|
2
|
+
import React__default, { ReactNode, PropsWithChildren, ComponentProps } 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, Input as Input$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
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, TableColumnGroup, 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';
|
@@ -22,7 +22,7 @@ type HeadingLevel = {
|
|
22
22
|
};
|
23
23
|
type ExpandableItemProps = HeadingLevel & {
|
24
24
|
value: string;
|
25
|
-
title:
|
25
|
+
title: ReactNode;
|
26
26
|
children?: React.ReactNode;
|
27
27
|
startElement?: React.ReactNode;
|
28
28
|
};
|
@@ -56,7 +56,7 @@ declare const AccordionItem: React$1.ForwardRefExoticComponent<Accordion$1.ItemP
|
|
56
56
|
* </Expandable>
|
57
57
|
* ```
|
58
58
|
*/
|
59
|
-
declare const Expandable: React$1.ForwardRefExoticComponent<_chakra_ui_react.AccordionRootProps & {
|
59
|
+
declare const Expandable: React$1.ForwardRefExoticComponent<Omit<_chakra_ui_react.AccordionRootProps & {
|
60
60
|
variant?: _chakra_ui_react.ConditionalValue<"ghost" | "core" | "floating" | undefined>;
|
61
61
|
} & {
|
62
62
|
children?: React$1.ReactNode | undefined;
|
@@ -66,8 +66,8 @@ declare const Expandable: React$1.ForwardRefExoticComponent<_chakra_ui_react.Acc
|
|
66
66
|
} & Omit<_chakra_ui_react.AccordionItemTriggerProps, "indicatorElement"> & HeadingLevel & {
|
67
67
|
startElement?: React.ReactNode;
|
68
68
|
showChevron?: boolean;
|
69
|
-
} & {
|
70
|
-
title:
|
69
|
+
}, "title"> & HeadingLevel & {
|
70
|
+
title: React$1.ReactNode;
|
71
71
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
72
72
|
/**
|
73
73
|
* An item in a set of Expandables. Must be wrapped in an `<Accordion>` component.
|
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React$1 from 'react';
|
2
|
-
import React__default, {
|
2
|
+
import React__default, { ReactNode, PropsWithChildren, ComponentProps } 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, Input as Input$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
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, TableColumnGroup, 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';
|
@@ -22,7 +22,7 @@ type HeadingLevel = {
|
|
22
22
|
};
|
23
23
|
type ExpandableItemProps = HeadingLevel & {
|
24
24
|
value: string;
|
25
|
-
title:
|
25
|
+
title: ReactNode;
|
26
26
|
children?: React.ReactNode;
|
27
27
|
startElement?: React.ReactNode;
|
28
28
|
};
|
@@ -56,7 +56,7 @@ declare const AccordionItem: React$1.ForwardRefExoticComponent<Accordion$1.ItemP
|
|
56
56
|
* </Expandable>
|
57
57
|
* ```
|
58
58
|
*/
|
59
|
-
declare const Expandable: React$1.ForwardRefExoticComponent<_chakra_ui_react.AccordionRootProps & {
|
59
|
+
declare const Expandable: React$1.ForwardRefExoticComponent<Omit<_chakra_ui_react.AccordionRootProps & {
|
60
60
|
variant?: _chakra_ui_react.ConditionalValue<"ghost" | "core" | "floating" | undefined>;
|
61
61
|
} & {
|
62
62
|
children?: React$1.ReactNode | undefined;
|
@@ -66,8 +66,8 @@ declare const Expandable: React$1.ForwardRefExoticComponent<_chakra_ui_react.Acc
|
|
66
66
|
} & Omit<_chakra_ui_react.AccordionItemTriggerProps, "indicatorElement"> & HeadingLevel & {
|
67
67
|
startElement?: React.ReactNode;
|
68
68
|
showChevron?: boolean;
|
69
|
-
} & {
|
70
|
-
title:
|
69
|
+
}, "title"> & HeadingLevel & {
|
70
|
+
title: React$1.ReactNode;
|
71
71
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
72
72
|
/**
|
73
73
|
* An item in a set of Expandables. Must be wrapped in an `<Accordion>` component.
|
package/dist/index.js
CHANGED
@@ -122,7 +122,7 @@ var AccordionItem = react.Accordion.Item;
|
|
122
122
|
var Expandable = React28.forwardRef(
|
123
123
|
(props, ref) => {
|
124
124
|
const { title, children, headingLevel, startElement, ...rest } = props;
|
125
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Accordion, {
|
125
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Accordion, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
|
126
126
|
ExpandableItem,
|
127
127
|
{
|
128
128
|
title,
|