@vygruppen/spor-react 13.1.2 → 13.1.4
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 +2 -2
- package/CHANGELOG.md +16 -0
- package/dist/index.cjs +48 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.mjs +49 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/input/PasswordInput.tsx +3 -2
- package/src/logo/VyLogo.tsx +14 -0
- package/src/popover/index.tsx +9 -3
- package/src/theme/slot-recipes/menu.ts +4 -0
- package/src/theme/slot-recipes/popover.ts +1 -2
- package/src/theme/slot-recipes/table.ts +0 -1
- package/src/tooltip.tsx +13 -6
package/dist/index.d.cts
CHANGED
|
@@ -2,13 +2,13 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import React__default, { PropsWithChildren, ReactNode, ComponentProps, Ref } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as _chakra_ui_react from '@chakra-ui/react';
|
|
5
|
-
import { AccordionRootProps, RecipeVariantProps, Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, BreadcrumbRootProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, SystemStyleObject, RadioCard as RadioCard$1, SeparatorProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Box, ComboboxRootProps,
|
|
5
|
+
import { AccordionRootProps, RecipeVariantProps, Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, BreadcrumbRootProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, SystemStyleObject, RadioCard as RadioCard$1, SeparatorProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Box, ComboboxRootProps, Combobox as Combobox$1, ComboboxItemProps, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCardRootProps, Fieldset as Fieldset$1, Input as Input$1, TagRootProps, ListRootProps, MenuRootProps, MenuContentProps, MenuItemProps as MenuItemProps$1, MenuTriggerItemProps as MenuTriggerItemProps$1, MenuRadioItemGroupProps, MenuRadioItemProps, MenuItemGroupProps as MenuItemGroupProps$1, MenuCheckboxItemProps, MenuSeparatorProps, NativeSelectFieldProps, RadioGroup as RadioGroup$1, SelectRootProps, SelectLabelProps, Select as Select$1, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, 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, TableColumnHeaderProps as TableColumnHeaderProps$1, TableBodyProps as TableBodyProps$1, Tooltip as Tooltip$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
|
|
6
6
|
export { AspectRatio, Box, BoxProps, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, CenterProps, ClientOnly, Collapsible, CollapsibleRootProps, Container, ContainerProps, Em, Flex, FlexProps, For, FormatByte, FormatNumber, Grid, GridItem, GridItemProps, GridProps, HStack, Icon, Image, ImageProps, Kbd, LocaleProvider, Portal, PortalProps, Show, SimpleGrid, SimpleGridProps, Spacer, SpacerProps, Span, Stack, SystemConfig, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableColumn, TableColumnGroup, TableColumnProps, TableFooter, TableFooterProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, UseDisclosureProps, VStack, VisuallyHidden, Wrap, createIcon, createListCollection, createSystem, defineConfig, defineRecipe, defineSlotRecipe, defineStyle, mergeConfigs, chakra as spor, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useRecipe, useSlotRecipe, useToken } from '@chakra-ui/react';
|
|
7
7
|
import { IconComponent } from '@vygruppen/spor-icon-react';
|
|
8
8
|
import { CalendarDate, DateDuration, DateValue as DateValue$1 } from '@internationalized/date';
|
|
9
9
|
export { Time } from '@internationalized/date';
|
|
10
10
|
import { DOMAttributes, FocusableElement } from '@react-types/shared';
|
|
11
|
-
import { AriaCalendarProps, DateValue, AriaRangeCalendarProps,
|
|
11
|
+
import { AriaButtonProps, AriaCalendarProps, DateValue, AriaRangeCalendarProps, AriaDatePickerProps, AriaDateRangePickerProps, RangeCalendarProps as RangeCalendarProps$1, AriaComboBoxProps, AriaListBoxProps } from 'react-aria';
|
|
12
12
|
import { CalendarState as CalendarState$1, RangeCalendarState as RangeCalendarState$1, ListState, SelectState } from 'react-stately';
|
|
13
13
|
export { Item, Section } from 'react-stately';
|
|
14
14
|
import { ThemeProviderProps } from 'next-themes';
|
|
@@ -4031,8 +4031,10 @@ declare const Tooltip: React$1.FC<Tooltip$1.RootProps>;
|
|
|
4031
4031
|
declare const TooltipTrigger: ({ ref, children, ...props }: Tooltip$1.TriggerProps & {
|
|
4032
4032
|
ref?: React.Ref<HTMLButtonElement>;
|
|
4033
4033
|
}) => react_jsx_runtime.JSX.Element;
|
|
4034
|
-
type TooltipProps = Tooltip$1.ContentProps
|
|
4035
|
-
|
|
4034
|
+
type TooltipProps = Tooltip$1.ContentProps & {
|
|
4035
|
+
showArrow?: boolean;
|
|
4036
|
+
};
|
|
4037
|
+
declare const TooltipContent: ({ ref, children, showArrow, ...props }: TooltipProps & {
|
|
4036
4038
|
ref?: React.Ref<HTMLDivElement>;
|
|
4037
4039
|
}) => react_jsx_runtime.JSX.Element;
|
|
4038
4040
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import React__default, { PropsWithChildren, ReactNode, ComponentProps, Ref } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as _chakra_ui_react from '@chakra-ui/react';
|
|
5
|
-
import { AccordionRootProps, RecipeVariantProps, Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, BreadcrumbRootProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, SystemStyleObject, RadioCard as RadioCard$1, SeparatorProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Box, ComboboxRootProps,
|
|
5
|
+
import { AccordionRootProps, RecipeVariantProps, Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, BreadcrumbRootProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, SystemStyleObject, RadioCard as RadioCard$1, SeparatorProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Box, ComboboxRootProps, Combobox as Combobox$1, ComboboxItemProps, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCardRootProps, Fieldset as Fieldset$1, Input as Input$1, TagRootProps, ListRootProps, MenuRootProps, MenuContentProps, MenuItemProps as MenuItemProps$1, MenuTriggerItemProps as MenuTriggerItemProps$1, MenuRadioItemGroupProps, MenuRadioItemProps, MenuItemGroupProps as MenuItemGroupProps$1, MenuCheckboxItemProps, MenuSeparatorProps, NativeSelectFieldProps, RadioGroup as RadioGroup$1, SelectRootProps, SelectLabelProps, Select as Select$1, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, 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, TableColumnHeaderProps as TableColumnHeaderProps$1, TableBodyProps as TableBodyProps$1, Tooltip as Tooltip$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
|
|
6
6
|
export { AspectRatio, Box, BoxProps, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, CenterProps, ClientOnly, Collapsible, CollapsibleRootProps, Container, ContainerProps, Em, Flex, FlexProps, For, FormatByte, FormatNumber, Grid, GridItem, GridItemProps, GridProps, HStack, Icon, Image, ImageProps, Kbd, LocaleProvider, Portal, PortalProps, Show, SimpleGrid, SimpleGridProps, Spacer, SpacerProps, Span, Stack, SystemConfig, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableColumn, TableColumnGroup, TableColumnProps, TableFooter, TableFooterProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, UseDisclosureProps, VStack, VisuallyHidden, Wrap, createIcon, createListCollection, createSystem, defineConfig, defineRecipe, defineSlotRecipe, defineStyle, mergeConfigs, chakra as spor, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useRecipe, useSlotRecipe, useToken } from '@chakra-ui/react';
|
|
7
7
|
import { IconComponent } from '@vygruppen/spor-icon-react';
|
|
8
8
|
import { CalendarDate, DateDuration, DateValue as DateValue$1 } from '@internationalized/date';
|
|
9
9
|
export { Time } from '@internationalized/date';
|
|
10
10
|
import { DOMAttributes, FocusableElement } from '@react-types/shared';
|
|
11
|
-
import { AriaCalendarProps, DateValue, AriaRangeCalendarProps,
|
|
11
|
+
import { AriaButtonProps, AriaCalendarProps, DateValue, AriaRangeCalendarProps, AriaDatePickerProps, AriaDateRangePickerProps, RangeCalendarProps as RangeCalendarProps$1, AriaComboBoxProps, AriaListBoxProps } from 'react-aria';
|
|
12
12
|
import { CalendarState as CalendarState$1, RangeCalendarState as RangeCalendarState$1, ListState, SelectState } from 'react-stately';
|
|
13
13
|
export { Item, Section } from 'react-stately';
|
|
14
14
|
import { ThemeProviderProps } from 'next-themes';
|
|
@@ -4031,8 +4031,10 @@ declare const Tooltip: React$1.FC<Tooltip$1.RootProps>;
|
|
|
4031
4031
|
declare const TooltipTrigger: ({ ref, children, ...props }: Tooltip$1.TriggerProps & {
|
|
4032
4032
|
ref?: React.Ref<HTMLButtonElement>;
|
|
4033
4033
|
}) => react_jsx_runtime.JSX.Element;
|
|
4034
|
-
type TooltipProps = Tooltip$1.ContentProps
|
|
4035
|
-
|
|
4034
|
+
type TooltipProps = Tooltip$1.ContentProps & {
|
|
4035
|
+
showArrow?: boolean;
|
|
4036
|
+
};
|
|
4037
|
+
declare const TooltipContent: ({ ref, children, showArrow, ...props }: TooltipProps & {
|
|
4036
4038
|
ref?: React.Ref<HTMLDivElement>;
|
|
4037
4039
|
}) => react_jsx_runtime.JSX.Element;
|
|
4038
4040
|
|
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import * as spor_icon_react_star from '@vygruppen/spor-icon-react';
|
|
|
4
4
|
import { DropdownDownFill24Icon, CloseFill18Icon, CloseFill30Icon, CloseFill24Icon, DropdownDownFill18Icon, ServiceFill24Icon, WarningFill24Icon, DropdownRightFill18Icon, CalendarOutline24Icon, DropdownLeftFill18Icon, ArrowLeftFill24Icon, ChangeDirectionOutline24Icon, CheckmarkFill18Icon, CloseOutline24Icon, SearchOutline24Icon, Forward15MediaControllerFill30Icon, Backward15MediaControllerFill30Icon, PauseMediaControllerFill24Icon, PlayMediaControllerFill24Icon, NextMediaControllerFill30Icon, PreviousMediaControllerFill30Icon, ArrowRightFill18Icon, DropdownLeftOutline18Icon, DropdownRightOutline18Icon, ArrowUpFill18Icon, ArrowDownFill18Icon, ChangeDirectionFill18Icon, CopyOutline18Icon, WalkFill30Icon, WalkFill24Icon, WalkFill18Icon, AltTransportFill30Icon, AltTransportFill24Icon, AltTransportFill18Icon, TramFill30Icon, TramFill24Icon, TramFill18Icon, SubwayFill30Icon, SubwayFill24Icon, SubwayFill18Icon, FerryFill30Icon, FerryFill24Icon, FerryFill18Icon, BusFill30Icon, BusFill24Icon, BusFill18Icon, ExpressBusFill30Icon, ExpressBusFill24Icon, ExpressBusFill18Icon, TrainFill30Icon, TrainFill24Icon, TrainFill18Icon, InformationFill24Icon, InformationFill18Icon, WarningFill18Icon, ErrorFill24Icon, ErrorFill18Icon, LinkOutOutline24Icon, LinkOutOutline18Icon, QuestionFill24Icon, ErrorOutline24Icon, SuccessFill24Icon, ArrowLeftOutline24Icon, ArrowRightOutline24Icon } from '@vygruppen/spor-icon-react';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
import * as React13 from 'react';
|
|
7
|
-
import React13__default, { createContext, useContext, useId,
|
|
7
|
+
import React13__default, { createContext, useContext, useId, cloneElement, isValidElement, useRef, useEffect, useImperativeHandle, useState, useLayoutEffect, useMemo } from 'react';
|
|
8
8
|
import { spinnerColorData, inlineLoaderColorData, contentLoaderData, fullScreenLoaderWhiteData, inlineLoaderDarkData, spinnerLightData, spinnerDarkData, fullScreenLoaderBlackData, inlineLoaderLightData } from '@vygruppen/spor-loader';
|
|
9
9
|
import { useLottie } from 'lottie-react';
|
|
10
10
|
import { useInterval } from 'usehooks-ts';
|
|
@@ -4581,7 +4581,7 @@ var PasswordInput = ({
|
|
|
4581
4581
|
Input,
|
|
4582
4582
|
{
|
|
4583
4583
|
ref,
|
|
4584
|
-
startElement
|
|
4584
|
+
startElement,
|
|
4585
4585
|
label,
|
|
4586
4586
|
type: visible ? "text" : "password",
|
|
4587
4587
|
endElement: /* @__PURE__ */ jsx(
|
|
@@ -5633,7 +5633,18 @@ var VyLogo = ({
|
|
|
5633
5633
|
fillRule: "evenodd",
|
|
5634
5634
|
clipRule: "evenodd",
|
|
5635
5635
|
d: "M98.49.07h-1.82c-2.98 0-4.6 1.49-5.63 5.06l-6.52 21.79a18.22 18.22 0 0 1-1.67 3.96c.57.78 1.17 1.26 1.76 1.38 1.13-.96 2.06-2.75 2.89-5.46l6.49-21.67c.9-3.1 2.23-4.63 4.5-4.98a.04.04 0 0 0 0-.08Z",
|
|
5636
|
-
fill: fillForAccent
|
|
5636
|
+
fill: fillForAccent,
|
|
5637
|
+
display: { _light: "block", _dark: "none" }
|
|
5638
|
+
}
|
|
5639
|
+
),
|
|
5640
|
+
/* @__PURE__ */ jsx(
|
|
5641
|
+
Path,
|
|
5642
|
+
{
|
|
5643
|
+
fillRule: "evenodd",
|
|
5644
|
+
clipRule: "evenodd",
|
|
5645
|
+
d: "M98.49.07h-1.82c-2.98 0-4.6 1.49-5.63 5.06l-6.52 21.79a18.22 18.22 0 0 1-1.67 3.96c.57.78 1.17 1.26 1.76 1.38 1.13-.96 2.06-2.75 2.89-5.46l6.49-21.67c.9-3.1 2.23-4.63 4.5-4.98a.04.04 0 0 0 0-.08Z",
|
|
5646
|
+
fill: "main",
|
|
5647
|
+
display: { _light: "none", _dark: "block" }
|
|
5637
5648
|
}
|
|
5638
5649
|
),
|
|
5639
5650
|
/* @__PURE__ */ jsx(
|
|
@@ -5685,7 +5696,16 @@ var VyLogo = ({
|
|
|
5685
5696
|
Path,
|
|
5686
5697
|
{
|
|
5687
5698
|
d: "M53.78 1.44a4.64 4.64 0 0 0-4.17.93A10.79 10.79 0 0 0 46.19 8L34.53 47.72c-.58 1.93-1.2 3.75-2.56 4.87-.62.5-1.4.86-2.39 1.01a.04.04 0 0 0 0 .08h1.8c1.57 0 2.69-.41 3.53-1.1 1.36-1.1 1.98-2.93 2.56-4.86L49.05 8.3c.73-2.74 1.95-4.63 3.43-5.9.43-.36.88-.68 1.35-.95l-.05-.01Z",
|
|
5688
|
-
fill: fillForAccent
|
|
5699
|
+
fill: fillForAccent,
|
|
5700
|
+
display: { _light: "block", _dark: "none" }
|
|
5701
|
+
}
|
|
5702
|
+
),
|
|
5703
|
+
/* @__PURE__ */ jsx(
|
|
5704
|
+
Path,
|
|
5705
|
+
{
|
|
5706
|
+
d: "M53.78 1.44a4.64 4.64 0 0 0-4.17.93A10.79 10.79 0 0 0 46.19 8L34.53 47.72c-.58 1.93-1.2 3.75-2.56 4.87-.62.5-1.4.86-2.39 1.01a.04.04 0 0 0 0 .08h1.8c1.57 0 2.69-.41 3.53-1.1 1.36-1.1 1.98-2.93 2.56-4.86L49.05 8.3c.73-2.74 1.95-4.63 3.43-5.9.43-.36.88-.68 1.35-.95l-.05-.01Z",
|
|
5707
|
+
fill: "main",
|
|
5708
|
+
display: { _light: "none", _dark: "block" }
|
|
5689
5709
|
}
|
|
5690
5710
|
)
|
|
5691
5711
|
] }),
|
|
@@ -6356,7 +6376,16 @@ var PopoverTrigger = ({
|
|
|
6356
6376
|
...props
|
|
6357
6377
|
}) => {
|
|
6358
6378
|
const isStringChild = typeof children === "string";
|
|
6359
|
-
return /* @__PURE__ */ jsx(
|
|
6379
|
+
return /* @__PURE__ */ jsx(
|
|
6380
|
+
Popover$1.Trigger,
|
|
6381
|
+
{
|
|
6382
|
+
ref,
|
|
6383
|
+
asChild: !isStringChild,
|
|
6384
|
+
width: isStringChild ? void 0 : "fit-content",
|
|
6385
|
+
...props,
|
|
6386
|
+
children: isStringChild ? children : /* @__PURE__ */ jsx(Box, { children })
|
|
6387
|
+
}
|
|
6388
|
+
);
|
|
6360
6389
|
};
|
|
6361
6390
|
var PopoverContent = ({
|
|
6362
6391
|
ref,
|
|
@@ -6374,14 +6403,14 @@ var PopoverContent = ({
|
|
|
6374
6403
|
}, [showCloseButton, open]);
|
|
6375
6404
|
return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(Popover$1.Positioner, { children: /* @__PURE__ */ jsxs(Popover$1.Content, { ref, ...props, children: [
|
|
6376
6405
|
/* @__PURE__ */ jsx(Popover$1.Arrow, {}),
|
|
6406
|
+
/* @__PURE__ */ jsx(Popover$1.Body, { ...props, children }),
|
|
6377
6407
|
showCloseButton && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Popover$1.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
6378
6408
|
CloseButton,
|
|
6379
6409
|
{
|
|
6380
6410
|
className: colorMode === "dark" ? "light" : "dark",
|
|
6381
6411
|
ref: closeButtonRef
|
|
6382
6412
|
}
|
|
6383
|
-
) }) })
|
|
6384
|
-
/* @__PURE__ */ jsx(Popover$1.Body, { ...props, children })
|
|
6413
|
+
) }) })
|
|
6385
6414
|
] }) }) });
|
|
6386
6415
|
};
|
|
6387
6416
|
var ProgressDot = ({ isActive }) => {
|
|
@@ -10341,6 +10370,7 @@ var menuSlotRecipe = defineSlotRecipe({
|
|
|
10341
10370
|
display: "flex",
|
|
10342
10371
|
justifyContent: "space-between",
|
|
10343
10372
|
gap: 1.5,
|
|
10373
|
+
cursor: "pointer",
|
|
10344
10374
|
_hover: {
|
|
10345
10375
|
backgroundColor: "surface.accent.hover"
|
|
10346
10376
|
},
|
|
@@ -10368,19 +10398,22 @@ var menuSlotRecipe = defineSlotRecipe({
|
|
|
10368
10398
|
radioItem: {
|
|
10369
10399
|
display: "flex",
|
|
10370
10400
|
justifyContent: "space-between",
|
|
10371
|
-
gap: 2
|
|
10401
|
+
gap: 2,
|
|
10402
|
+
cursor: "pointer"
|
|
10372
10403
|
},
|
|
10373
10404
|
triggerItem: {
|
|
10374
10405
|
display: "flex",
|
|
10375
10406
|
justifyContent: "space-between",
|
|
10376
10407
|
gap: 1.5,
|
|
10377
|
-
alignItems: "center"
|
|
10408
|
+
alignItems: "center",
|
|
10409
|
+
cursor: "pointer"
|
|
10378
10410
|
},
|
|
10379
10411
|
checkboxItem: {
|
|
10380
10412
|
display: "flex",
|
|
10381
10413
|
gap: 2,
|
|
10382
10414
|
alignItems: "center",
|
|
10383
|
-
width: "full"
|
|
10415
|
+
width: "full",
|
|
10416
|
+
cursor: "pointer"
|
|
10384
10417
|
}
|
|
10385
10418
|
},
|
|
10386
10419
|
variants: {
|
|
@@ -10578,7 +10611,7 @@ var popoverSlotRecipe = defineSlotRecipe({
|
|
|
10578
10611
|
content: {
|
|
10579
10612
|
position: "relative",
|
|
10580
10613
|
display: "flex",
|
|
10581
|
-
flexDirection: "row
|
|
10614
|
+
flexDirection: "row",
|
|
10582
10615
|
color: "text.brand",
|
|
10583
10616
|
gap: "0.625rem",
|
|
10584
10617
|
padding: "0.563rem 0.75rem",
|
|
@@ -11363,8 +11396,7 @@ var tableSlotRecipe = defineSlotRecipe({
|
|
|
11363
11396
|
cell: {
|
|
11364
11397
|
...numericStyles,
|
|
11365
11398
|
paddingX: 1.5,
|
|
11366
|
-
paddingY: 1
|
|
11367
|
-
width: "100%"
|
|
11399
|
+
paddingY: 1
|
|
11368
11400
|
},
|
|
11369
11401
|
footer: {
|
|
11370
11402
|
fontWeight: "medium"
|
|
@@ -12609,16 +12641,17 @@ var TooltipTrigger = ({
|
|
|
12609
12641
|
...props
|
|
12610
12642
|
}) => {
|
|
12611
12643
|
const isStringChild = typeof children === "string";
|
|
12612
|
-
return /* @__PURE__ */ jsx(Tooltip$1.Trigger, {
|
|
12644
|
+
return /* @__PURE__ */ jsx(Tooltip$1.Trigger, { ref, asChild: !isStringChild, ...props, children: isStringChild ? children : /* @__PURE__ */ jsx(Box, { width: "fit-content", children }) });
|
|
12613
12645
|
};
|
|
12614
12646
|
var TooltipContent = ({
|
|
12615
12647
|
ref,
|
|
12616
12648
|
children,
|
|
12649
|
+
showArrow = false,
|
|
12617
12650
|
...props
|
|
12618
12651
|
}) => {
|
|
12619
12652
|
return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(Tooltip$1.Positioner, { children: /* @__PURE__ */ jsxs(Tooltip$1.Content, { ref, ...props, children: [
|
|
12620
|
-
/* @__PURE__ */ jsx(Tooltip$1.Arrow, {}),
|
|
12621
|
-
|
|
12653
|
+
showArrow && /* @__PURE__ */ jsx(Tooltip$1.Arrow, { children: /* @__PURE__ */ jsx(Tooltip$1.ArrowTip, {}) }),
|
|
12654
|
+
children
|
|
12622
12655
|
] }) }) });
|
|
12623
12656
|
};
|
|
12624
12657
|
|