@vygruppen/spor-react 12.4.7 → 12.4.8
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 +12 -12
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +24 -17
- package/dist/index.d.ts +24 -17
- package/dist/index.js +32 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/table/Table.tsx +10 -22
- package/src/table/index.tsx +1 -0
- package/src/theme/slot-recipes/table.ts +31 -22
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@12.4.
|
2
|
+
> @vygruppen/spor-react@12.4.8 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
|
-
|
14
|
-
ESM dist/icons/index.mjs 110.00 B
|
15
|
-
ESM dist/index.mjs.map 622.39 KB
|
16
|
-
ESM dist/icons/index.mjs.map 157.00 B
|
17
|
-
ESM ⚡️ Build success in 2865ms
|
13
|
+
CJS dist/index.js 310.50 KB
|
18
14
|
CJS dist/icons/index.js 380.00 B
|
19
|
-
CJS dist/index.js
|
15
|
+
CJS dist/index.js.map 621.95 KB
|
20
16
|
CJS dist/icons/index.js.map 157.00 B
|
21
|
-
CJS
|
22
|
-
|
23
|
-
|
17
|
+
CJS ⚡️ Build success in 2782ms
|
18
|
+
ESM dist/index.mjs 289.96 KB
|
19
|
+
ESM dist/icons/index.mjs 110.00 B
|
20
|
+
ESM dist/index.mjs.map 621.95 KB
|
21
|
+
ESM dist/icons/index.mjs.map 157.00 B
|
22
|
+
ESM ⚡️ Build success in 2783ms
|
23
|
+
DTS ⚡️ Build success in 30215ms
|
24
24
|
DTS dist/icons/index.d.ts 44.00 B
|
25
|
-
DTS dist/index.d.ts 126.
|
25
|
+
DTS dist/index.d.ts 126.70 KB
|
26
26
|
DTS dist/icons/index.d.mts 44.00 B
|
27
|
-
DTS dist/index.d.mts 126.
|
27
|
+
DTS dist/index.d.mts 126.70 KB
|
package/CHANGELOG.md
CHANGED
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, 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';
|
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';
|
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';
|
@@ -3320,16 +3320,17 @@ declare const tableSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "b
|
|
3320
3320
|
backgroundColor: "none";
|
3321
3321
|
};
|
3322
3322
|
columnHeader: {
|
3323
|
-
borderLeft: "none";
|
3324
3323
|
borderBottom: "sm";
|
3325
3324
|
borderColor: "outline.disabled";
|
3326
3325
|
backgroundColor: "none";
|
3327
3326
|
color: "text";
|
3328
3327
|
};
|
3329
3328
|
cell: {
|
3330
|
-
|
3331
|
-
|
3329
|
+
"&[data-is-numeric=true]": {
|
3330
|
+
textAlign: string;
|
3332
3331
|
};
|
3332
|
+
};
|
3333
|
+
row: {
|
3333
3334
|
"&[data-is-numeric=true]": {
|
3334
3335
|
textAlign: string;
|
3335
3336
|
};
|
@@ -3338,35 +3339,41 @@ declare const tableSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "b
|
|
3338
3339
|
};
|
3339
3340
|
};
|
3340
3341
|
core: {
|
3342
|
+
root: {
|
3343
|
+
boxShadow: "0 0 0 1px var(--shadow-color)";
|
3344
|
+
shadowColor: "outline.disabled";
|
3345
|
+
borderRadius: "sm";
|
3346
|
+
};
|
3341
3347
|
table: {
|
3342
|
-
borderRadius: "md";
|
3343
3348
|
overflow: "hidden";
|
3344
|
-
border: "sm";
|
3345
|
-
borderColor: "outline.disabled";
|
3346
3349
|
};
|
3347
3350
|
cell: {
|
3348
|
-
|
3349
|
-
|
3351
|
+
borderRight: "sm";
|
3352
|
+
borderColor: "outline.disabled";
|
3353
|
+
_last: {
|
3354
|
+
borderRight: "none";
|
3350
3355
|
};
|
3351
3356
|
"&[data-is-numeric=true]": {
|
3352
3357
|
textAlign: string;
|
3353
3358
|
};
|
3354
|
-
borderLeft: "sm";
|
3355
|
-
borderColor: "outline.disabled";
|
3356
|
-
};
|
3357
|
-
header: {
|
3358
|
-
border: "none";
|
3359
3359
|
};
|
3360
3360
|
columnHeader: {
|
3361
|
+
borderRight: "sm";
|
3362
|
+
borderColor: "outline.disabled";
|
3361
3363
|
_first: {
|
3362
|
-
|
3364
|
+
borderTopLeftRadius: "sm";
|
3365
|
+
};
|
3366
|
+
_last: {
|
3367
|
+
borderTopRightRadius: "sm";
|
3368
|
+
borderRight: "none";
|
3363
3369
|
};
|
3364
3370
|
"&[data-is-numeric=true]": {
|
3365
3371
|
textAlign: string;
|
3366
3372
|
};
|
3373
|
+
};
|
3374
|
+
header: {
|
3367
3375
|
borderBottom: "sm";
|
3368
|
-
|
3369
|
-
borderLeftColor: "outline.disabled";
|
3376
|
+
borderColor: "outline.disabled";
|
3370
3377
|
};
|
3371
3378
|
row: {
|
3372
3379
|
borderBottom: "sm";
|
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, 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';
|
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';
|
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';
|
@@ -3320,16 +3320,17 @@ declare const tableSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "b
|
|
3320
3320
|
backgroundColor: "none";
|
3321
3321
|
};
|
3322
3322
|
columnHeader: {
|
3323
|
-
borderLeft: "none";
|
3324
3323
|
borderBottom: "sm";
|
3325
3324
|
borderColor: "outline.disabled";
|
3326
3325
|
backgroundColor: "none";
|
3327
3326
|
color: "text";
|
3328
3327
|
};
|
3329
3328
|
cell: {
|
3330
|
-
|
3331
|
-
|
3329
|
+
"&[data-is-numeric=true]": {
|
3330
|
+
textAlign: string;
|
3332
3331
|
};
|
3332
|
+
};
|
3333
|
+
row: {
|
3333
3334
|
"&[data-is-numeric=true]": {
|
3334
3335
|
textAlign: string;
|
3335
3336
|
};
|
@@ -3338,35 +3339,41 @@ declare const tableSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "b
|
|
3338
3339
|
};
|
3339
3340
|
};
|
3340
3341
|
core: {
|
3342
|
+
root: {
|
3343
|
+
boxShadow: "0 0 0 1px var(--shadow-color)";
|
3344
|
+
shadowColor: "outline.disabled";
|
3345
|
+
borderRadius: "sm";
|
3346
|
+
};
|
3341
3347
|
table: {
|
3342
|
-
borderRadius: "md";
|
3343
3348
|
overflow: "hidden";
|
3344
|
-
border: "sm";
|
3345
|
-
borderColor: "outline.disabled";
|
3346
3349
|
};
|
3347
3350
|
cell: {
|
3348
|
-
|
3349
|
-
|
3351
|
+
borderRight: "sm";
|
3352
|
+
borderColor: "outline.disabled";
|
3353
|
+
_last: {
|
3354
|
+
borderRight: "none";
|
3350
3355
|
};
|
3351
3356
|
"&[data-is-numeric=true]": {
|
3352
3357
|
textAlign: string;
|
3353
3358
|
};
|
3354
|
-
borderLeft: "sm";
|
3355
|
-
borderColor: "outline.disabled";
|
3356
|
-
};
|
3357
|
-
header: {
|
3358
|
-
border: "none";
|
3359
3359
|
};
|
3360
3360
|
columnHeader: {
|
3361
|
+
borderRight: "sm";
|
3362
|
+
borderColor: "outline.disabled";
|
3361
3363
|
_first: {
|
3362
|
-
|
3364
|
+
borderTopLeftRadius: "sm";
|
3365
|
+
};
|
3366
|
+
_last: {
|
3367
|
+
borderTopRightRadius: "sm";
|
3368
|
+
borderRight: "none";
|
3363
3369
|
};
|
3364
3370
|
"&[data-is-numeric=true]": {
|
3365
3371
|
textAlign: string;
|
3366
3372
|
};
|
3373
|
+
};
|
3374
|
+
header: {
|
3367
3375
|
borderBottom: "sm";
|
3368
|
-
|
3369
|
-
borderLeftColor: "outline.disabled";
|
3376
|
+
borderColor: "outline.disabled";
|
3370
3377
|
};
|
3371
3378
|
row: {
|
3372
3379
|
borderBottom: "sm";
|
package/dist/index.js
CHANGED
@@ -6238,15 +6238,11 @@ var tableSlotRecipe = react.defineSlotRecipe({
|
|
6238
6238
|
columnHeader: {
|
6239
6239
|
fontWeight: "bold",
|
6240
6240
|
textAlign: "start",
|
6241
|
-
borderBottom: "sm",
|
6242
|
-
borderColor: "outline.disabled",
|
6243
6241
|
...numericStyles,
|
6244
6242
|
paddingX: 1.5,
|
6245
6243
|
paddingY: 1
|
6246
6244
|
},
|
6247
6245
|
row: {
|
6248
|
-
borderBottom: "sm",
|
6249
|
-
borderColor: "outline.disabled",
|
6250
6246
|
...numericStyles
|
6251
6247
|
},
|
6252
6248
|
cell: {
|
@@ -6300,48 +6296,53 @@ var tableSlotRecipe = react.defineSlotRecipe({
|
|
6300
6296
|
backgroundColor: "none"
|
6301
6297
|
},
|
6302
6298
|
columnHeader: {
|
6303
|
-
borderLeft: "none",
|
6304
6299
|
borderBottom: "sm",
|
6305
6300
|
borderColor: "outline.disabled",
|
6306
6301
|
backgroundColor: "none",
|
6307
6302
|
color: "text"
|
6308
6303
|
},
|
6309
6304
|
cell: {
|
6305
|
+
...numericStyles
|
6306
|
+
},
|
6307
|
+
row: {
|
6310
6308
|
borderBottom: "sm",
|
6311
6309
|
borderColor: "outline.disabled",
|
6312
|
-
...numericStyles
|
6313
|
-
_first: {
|
6314
|
-
borderLeft: "none"
|
6315
|
-
}
|
6310
|
+
...numericStyles
|
6316
6311
|
}
|
6317
6312
|
},
|
6318
6313
|
core: {
|
6314
|
+
root: {
|
6315
|
+
boxShadow: "0 0 0 1px var(--shadow-color)",
|
6316
|
+
shadowColor: "outline.disabled",
|
6317
|
+
borderRadius: "sm"
|
6318
|
+
},
|
6319
6319
|
table: {
|
6320
|
-
|
6321
|
-
overflow: "hidden",
|
6322
|
-
border: "sm",
|
6323
|
-
borderColor: "outline.disabled"
|
6320
|
+
overflow: "hidden"
|
6324
6321
|
},
|
6325
6322
|
cell: {
|
6326
|
-
borderLeft: "sm",
|
6327
|
-
borderColor: "outline.disabled",
|
6328
6323
|
...numericStyles,
|
6329
|
-
|
6330
|
-
|
6324
|
+
borderRight: "sm",
|
6325
|
+
borderColor: "outline.disabled",
|
6326
|
+
_last: {
|
6327
|
+
borderRight: "none"
|
6331
6328
|
}
|
6332
6329
|
},
|
6333
|
-
header: {
|
6334
|
-
border: "none"
|
6335
|
-
},
|
6336
6330
|
columnHeader: {
|
6337
|
-
borderBottom: "sm",
|
6338
|
-
borderLeft: "sm",
|
6339
|
-
borderLeftColor: "outline.disabled",
|
6340
6331
|
...numericStyles,
|
6332
|
+
borderRight: "sm",
|
6333
|
+
borderColor: "outline.disabled",
|
6341
6334
|
_first: {
|
6342
|
-
|
6335
|
+
borderTopLeftRadius: "sm"
|
6336
|
+
},
|
6337
|
+
_last: {
|
6338
|
+
borderTopRightRadius: "sm",
|
6339
|
+
borderRight: "none"
|
6343
6340
|
}
|
6344
6341
|
},
|
6342
|
+
header: {
|
6343
|
+
borderBottom: "sm",
|
6344
|
+
borderColor: "outline.disabled"
|
6345
|
+
},
|
6345
6346
|
row: {
|
6346
6347
|
...numericStyles,
|
6347
6348
|
borderBottom: "sm",
|
@@ -6417,7 +6418,7 @@ var Table = React28.forwardRef((props, ref) => {
|
|
6417
6418
|
const { variant = "ghost", size, colorPalette = "green", children } = props;
|
6418
6419
|
const recipe = react.useSlotRecipe({ recipe: tableSlotRecipe });
|
6419
6420
|
const styles = recipe({ variant, size });
|
6420
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
6421
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
6421
6422
|
react.Table.Root,
|
6422
6423
|
{
|
6423
6424
|
variant,
|
@@ -6425,18 +6426,12 @@ var Table = React28.forwardRef((props, ref) => {
|
|
6425
6426
|
colorPalette,
|
6426
6427
|
css: styles,
|
6427
6428
|
ref,
|
6429
|
+
...props,
|
6428
6430
|
children
|
6429
6431
|
}
|
6430
|
-
)
|
6432
|
+
);
|
6431
6433
|
});
|
6432
6434
|
Table.displayName = "Table";
|
6433
|
-
function getStyleProps(props) {
|
6434
|
-
return props.variant === "core" ? {
|
6435
|
-
borderRadius: "sm",
|
6436
|
-
border: "sm",
|
6437
|
-
borderColor: "outline.disabled"
|
6438
|
-
} : {};
|
6439
|
-
}
|
6440
6435
|
var buttonRecipe = react.defineRecipe({
|
6441
6436
|
className: "spor-button",
|
6442
6437
|
base: {
|
@@ -10642,6 +10637,10 @@ Object.defineProperty(exports, "TableColumn", {
|
|
10642
10637
|
enumerable: true,
|
10643
10638
|
get: function () { return react.TableColumn; }
|
10644
10639
|
});
|
10640
|
+
Object.defineProperty(exports, "TableColumnGroup", {
|
10641
|
+
enumerable: true,
|
10642
|
+
get: function () { return react.TableColumnGroup; }
|
10643
|
+
});
|
10645
10644
|
Object.defineProperty(exports, "TableColumnHeader", {
|
10646
10645
|
enumerable: true,
|
10647
10646
|
get: function () { return react.TableColumnHeader; }
|