@vygruppen/spor-react 12.4.6 → 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 +10 -10
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +13 -0
- package/dist/index.d.mts +35 -23
- package/dist/index.d.ts +35 -23
- package/dist/index.js +36 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/datepicker/TimePicker.tsx +5 -0
- package/src/loader/ProgressBar.tsx +3 -3
- package/src/table/Table.tsx +10 -22
- package/src/table/index.tsx +1 -0
- package/src/theme/slot-recipes/table.ts +31 -22
- package/src/util/externals.tsx +1 -0
package/dist/index.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
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
|
-
export { Box, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, Collapsible, Container, Em, Flex, For, FormatByte, FormatNumber, Grid, GridItem, HStack, Image, Kbd, LocaleProvider, Portal, Show, SimpleGrid, Spacer, Span, Stack, TableBody, TableCaption, TableCell, TableColumn, TableColumnHeader, TableFooter, TableHeader, TableRoot, TableRow, VStack, VisuallyHidden, createListCollection, createSystem, defineConfig, defineRecipe, defineStyle, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useToken } from '@chakra-ui/react';
|
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
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';
|
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';
|
@@ -6218,15 +6218,11 @@ var tableSlotRecipe = defineSlotRecipe({
|
|
6218
6218
|
columnHeader: {
|
6219
6219
|
fontWeight: "bold",
|
6220
6220
|
textAlign: "start",
|
6221
|
-
borderBottom: "sm",
|
6222
|
-
borderColor: "outline.disabled",
|
6223
6221
|
...numericStyles,
|
6224
6222
|
paddingX: 1.5,
|
6225
6223
|
paddingY: 1
|
6226
6224
|
},
|
6227
6225
|
row: {
|
6228
|
-
borderBottom: "sm",
|
6229
|
-
borderColor: "outline.disabled",
|
6230
6226
|
...numericStyles
|
6231
6227
|
},
|
6232
6228
|
cell: {
|
@@ -6280,48 +6276,53 @@ var tableSlotRecipe = defineSlotRecipe({
|
|
6280
6276
|
backgroundColor: "none"
|
6281
6277
|
},
|
6282
6278
|
columnHeader: {
|
6283
|
-
borderLeft: "none",
|
6284
6279
|
borderBottom: "sm",
|
6285
6280
|
borderColor: "outline.disabled",
|
6286
6281
|
backgroundColor: "none",
|
6287
6282
|
color: "text"
|
6288
6283
|
},
|
6289
6284
|
cell: {
|
6285
|
+
...numericStyles
|
6286
|
+
},
|
6287
|
+
row: {
|
6290
6288
|
borderBottom: "sm",
|
6291
6289
|
borderColor: "outline.disabled",
|
6292
|
-
...numericStyles
|
6293
|
-
_first: {
|
6294
|
-
borderLeft: "none"
|
6295
|
-
}
|
6290
|
+
...numericStyles
|
6296
6291
|
}
|
6297
6292
|
},
|
6298
6293
|
core: {
|
6294
|
+
root: {
|
6295
|
+
boxShadow: "0 0 0 1px var(--shadow-color)",
|
6296
|
+
shadowColor: "outline.disabled",
|
6297
|
+
borderRadius: "sm"
|
6298
|
+
},
|
6299
6299
|
table: {
|
6300
|
-
|
6301
|
-
overflow: "hidden",
|
6302
|
-
border: "sm",
|
6303
|
-
borderColor: "outline.disabled"
|
6300
|
+
overflow: "hidden"
|
6304
6301
|
},
|
6305
6302
|
cell: {
|
6306
|
-
borderLeft: "sm",
|
6307
|
-
borderColor: "outline.disabled",
|
6308
6303
|
...numericStyles,
|
6309
|
-
|
6310
|
-
|
6304
|
+
borderRight: "sm",
|
6305
|
+
borderColor: "outline.disabled",
|
6306
|
+
_last: {
|
6307
|
+
borderRight: "none"
|
6311
6308
|
}
|
6312
6309
|
},
|
6313
|
-
header: {
|
6314
|
-
border: "none"
|
6315
|
-
},
|
6316
6310
|
columnHeader: {
|
6317
|
-
borderBottom: "sm",
|
6318
|
-
borderLeft: "sm",
|
6319
|
-
borderLeftColor: "outline.disabled",
|
6320
6311
|
...numericStyles,
|
6312
|
+
borderRight: "sm",
|
6313
|
+
borderColor: "outline.disabled",
|
6321
6314
|
_first: {
|
6322
|
-
|
6315
|
+
borderTopLeftRadius: "sm"
|
6316
|
+
},
|
6317
|
+
_last: {
|
6318
|
+
borderTopRightRadius: "sm",
|
6319
|
+
borderRight: "none"
|
6323
6320
|
}
|
6324
6321
|
},
|
6322
|
+
header: {
|
6323
|
+
borderBottom: "sm",
|
6324
|
+
borderColor: "outline.disabled"
|
6325
|
+
},
|
6325
6326
|
row: {
|
6326
6327
|
...numericStyles,
|
6327
6328
|
borderBottom: "sm",
|
@@ -6397,7 +6398,7 @@ var Table = forwardRef((props, ref) => {
|
|
6397
6398
|
const { variant = "ghost", size, colorPalette = "green", children } = props;
|
6398
6399
|
const recipe = useSlotRecipe({ recipe: tableSlotRecipe });
|
6399
6400
|
const styles = recipe({ variant, size });
|
6400
|
-
return /* @__PURE__ */ jsx(
|
6401
|
+
return /* @__PURE__ */ jsx(
|
6401
6402
|
Table$1.Root,
|
6402
6403
|
{
|
6403
6404
|
variant,
|
@@ -6405,18 +6406,12 @@ var Table = forwardRef((props, ref) => {
|
|
6405
6406
|
colorPalette,
|
6406
6407
|
css: styles,
|
6407
6408
|
ref,
|
6409
|
+
...props,
|
6408
6410
|
children
|
6409
6411
|
}
|
6410
|
-
)
|
6412
|
+
);
|
6411
6413
|
});
|
6412
6414
|
Table.displayName = "Table";
|
6413
|
-
function getStyleProps(props) {
|
6414
|
-
return props.variant === "core" ? {
|
6415
|
-
borderRadius: "sm",
|
6416
|
-
border: "sm",
|
6417
|
-
borderColor: "outline.disabled"
|
6418
|
-
} : {};
|
6419
|
-
}
|
6420
6415
|
var buttonRecipe = defineRecipe({
|
6421
6416
|
className: "spor-button",
|
6422
6417
|
base: {
|