@televet/kibble-ui 1.17.15 → 1.17.16-beta.321x3bw.2
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/build/components/Forms/Button/button.types.d.ts +2 -2
- package/build/components/Forms/TimePicker/components/ScrollContainer.d.ts +4 -0
- package/build/components/Forms/TimePicker/components/TimeOption.d.ts +9 -0
- package/build/components/Forms/TimePicker/components/TimeRange/TimeRange.component.d.ts +12 -0
- package/build/components/Forms/TimePicker/index.d.ts +3 -0
- package/build/components/Forms/TimePicker/timepicker.argTypes.d.ts +70 -0
- package/build/components/Forms/TimePicker/timepicker.component.d.ts +10 -0
- package/build/components/Forms/TimePicker/timepicker.types.d.ts +4 -0
- package/build/components/Navigation/Link/components/linkIcon.component.d.ts +5 -0
- package/build/components/Navigation/Link/index.d.ts +2 -0
- package/build/components/Navigation/Link/link.argTypes.d.ts +120 -0
- package/build/components/Navigation/Link/link.component.d.ts +13 -0
- package/build/components/Navigation/Link/link.config.d.ts +19 -0
- package/build/components/Navigation/LinkOverlay/index.d.ts +1 -0
- package/build/components/Navigation/index.d.ts +2 -0
- package/build/components/Overlay/Popover/popover.component.d.ts +3 -2
- package/build/components/Typography/Text/text.types.d.ts +1 -0
- package/build/components/index.d.ts +1 -0
- package/build/hooks/useIconTextSizeMap.d.ts +2 -0
- package/build/index.js +59 -21
- package/build/index.js.map +1 -1
- package/package.json +3 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AdaptiveColorMap } from '../../../theme/tokens';
|
|
2
2
|
export interface ButtonVariantConfigType extends AdaptiveColorMap<ButtonColorOptionsType> {
|
|
3
|
-
variant: 'solid' | 'outline' | 'ghost'
|
|
3
|
+
variant: 'solid' | 'outline' | 'ghost';
|
|
4
4
|
}
|
|
5
|
-
export declare type ButtonVariantType = 'primary' | 'primaryDestructive' | 'secondary' | 'secondaryDestructive' | 'secondarySubtle' | 'secondarySubtleDestructive' | 'tertiary' | 'tertiaryDestructive' | 'ghost' | 'ghostNeutral' | 'ghostDestructive'
|
|
5
|
+
export declare type ButtonVariantType = 'primary' | 'primaryDestructive' | 'secondary' | 'secondaryDestructive' | 'secondarySubtle' | 'secondarySubtleDestructive' | 'tertiary' | 'tertiaryDestructive' | 'ghost' | 'ghostNeutral' | 'ghostDestructive';
|
|
6
6
|
export declare type ButtonColorOptionsType = 'content' | 'default' | 'hover' | 'active' | 'border';
|
|
7
7
|
export declare type ButtonSizeType = 'xs' | 'sm' | 'md' | 'lg';
|
|
8
8
|
export declare type ButtonStyleType = Record<ButtonVariantType, ButtonVariantConfigType>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
interface TimeOptionProps {
|
|
3
|
+
value: string;
|
|
4
|
+
innerRef?: MutableRefObject<HTMLDivElement | null> | null;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
handleClick: (selectedValue: string) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const TimeOption: ({ value, innerRef, isSelected, handleClick }: TimeOptionProps) => JSX.Element;
|
|
9
|
+
export default TimeOption;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BoxProps } from '@chakra-ui/react';
|
|
2
|
+
import { TimePickerProps } from '../../timepicker.component';
|
|
3
|
+
export interface TimeRangeProps {
|
|
4
|
+
initialStartTime: Date;
|
|
5
|
+
initialEndTime: Date;
|
|
6
|
+
onStartTimeChange: (startTime: Date) => void;
|
|
7
|
+
onEndTimeChange: (endTime: Date) => void;
|
|
8
|
+
startTimePickerProps: TimePickerProps;
|
|
9
|
+
endTimePickerProps: TimePickerProps;
|
|
10
|
+
dashContainerProps: BoxProps;
|
|
11
|
+
}
|
|
12
|
+
export declare const TimeRange: ({ startTimePickerProps, endTimePickerProps, dashContainerProps, }: TimeRangeProps) => JSX.Element;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare const timePickerArgTypes: {
|
|
2
|
+
initialTime: {
|
|
3
|
+
defaultValue: Date;
|
|
4
|
+
description: string;
|
|
5
|
+
table: {
|
|
6
|
+
type: {
|
|
7
|
+
summary: string;
|
|
8
|
+
};
|
|
9
|
+
defaultValue: null;
|
|
10
|
+
};
|
|
11
|
+
type: {
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
minuteInterval: {
|
|
16
|
+
defaultValue: number;
|
|
17
|
+
description: string;
|
|
18
|
+
control: string;
|
|
19
|
+
table: {
|
|
20
|
+
type: {
|
|
21
|
+
summary: string;
|
|
22
|
+
};
|
|
23
|
+
defaultValue: number;
|
|
24
|
+
};
|
|
25
|
+
type: {
|
|
26
|
+
name: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
placement: {
|
|
30
|
+
description: string;
|
|
31
|
+
options: import("@chakra-ui/popper/dist/declarations/src/popper.placement").PlacementWithLogical[];
|
|
32
|
+
control: {
|
|
33
|
+
type: string;
|
|
34
|
+
};
|
|
35
|
+
table: {
|
|
36
|
+
type: {
|
|
37
|
+
summary: string;
|
|
38
|
+
};
|
|
39
|
+
defaultValue: {
|
|
40
|
+
summary: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
onTimeChange: {
|
|
45
|
+
description: string;
|
|
46
|
+
action: string;
|
|
47
|
+
table: {
|
|
48
|
+
type: {
|
|
49
|
+
summary: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
onChange: any;
|
|
54
|
+
size: any;
|
|
55
|
+
label: any;
|
|
56
|
+
helperText: any;
|
|
57
|
+
helperTextAlignment: any;
|
|
58
|
+
errorText: any;
|
|
59
|
+
isDisabled: any;
|
|
60
|
+
isInvalid: any;
|
|
61
|
+
useInvalidIcon: any;
|
|
62
|
+
useInvalidText: any;
|
|
63
|
+
useInvalidBorder: any;
|
|
64
|
+
invalidIconColor: any;
|
|
65
|
+
isReadOnly: any;
|
|
66
|
+
isRequired: any;
|
|
67
|
+
autoFocus: any;
|
|
68
|
+
labelStyle: any;
|
|
69
|
+
formControlStyle: any;
|
|
70
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PlacementWithLogical } from '@chakra-ui/react';
|
|
2
|
+
import { TextInputProps } from '../TextInput';
|
|
3
|
+
export interface TimePickerProps {
|
|
4
|
+
initialTime: Date;
|
|
5
|
+
minuteInterval?: number;
|
|
6
|
+
inputProps?: Omit<TextInputProps, 'onChange' | 'value' | 'isClearable' | 'onClear'>;
|
|
7
|
+
placement?: PlacementWithLogical;
|
|
8
|
+
onTimeChange?: (time: Date) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const TimePicker: ({ initialTime, minuteInterval, inputProps, placement, onTimeChange, }: TimePickerProps) => JSX.Element;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
export declare const linkArgTypes: {
|
|
2
|
+
isExternal: {
|
|
3
|
+
control: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defaultValue: boolean;
|
|
6
|
+
table: {
|
|
7
|
+
type: {
|
|
8
|
+
summary: string;
|
|
9
|
+
};
|
|
10
|
+
defaultValue: {
|
|
11
|
+
summary: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
size: {
|
|
16
|
+
control: string;
|
|
17
|
+
options: string[];
|
|
18
|
+
defaultValue: string;
|
|
19
|
+
table: {
|
|
20
|
+
type: {
|
|
21
|
+
summary: string;
|
|
22
|
+
};
|
|
23
|
+
defaultValue: {
|
|
24
|
+
summary: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
href: {
|
|
30
|
+
type: {
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
control: string;
|
|
34
|
+
description: string;
|
|
35
|
+
table: {
|
|
36
|
+
type: {
|
|
37
|
+
summary: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
to: {
|
|
42
|
+
type: {
|
|
43
|
+
name: string;
|
|
44
|
+
};
|
|
45
|
+
control: string;
|
|
46
|
+
description: string;
|
|
47
|
+
table: {
|
|
48
|
+
type: {
|
|
49
|
+
summary: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
children: {
|
|
54
|
+
type: {
|
|
55
|
+
name: string;
|
|
56
|
+
required: boolean;
|
|
57
|
+
};
|
|
58
|
+
control: string;
|
|
59
|
+
description: string;
|
|
60
|
+
table: {
|
|
61
|
+
type: {
|
|
62
|
+
summary: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
onClick: {
|
|
67
|
+
type: string;
|
|
68
|
+
description: string;
|
|
69
|
+
table: {
|
|
70
|
+
type: {
|
|
71
|
+
summary: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
as: {
|
|
76
|
+
type: string;
|
|
77
|
+
table: {
|
|
78
|
+
type: {
|
|
79
|
+
summary: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
description: string;
|
|
83
|
+
};
|
|
84
|
+
iconProps: {
|
|
85
|
+
type: string;
|
|
86
|
+
table: {
|
|
87
|
+
type: {
|
|
88
|
+
summary: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
description: string;
|
|
92
|
+
};
|
|
93
|
+
onDark: {
|
|
94
|
+
control: string;
|
|
95
|
+
description: string;
|
|
96
|
+
defaultValue: boolean;
|
|
97
|
+
table: {
|
|
98
|
+
type: {
|
|
99
|
+
summary: string;
|
|
100
|
+
};
|
|
101
|
+
defaultValue: {
|
|
102
|
+
summary: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
colorToken: {
|
|
107
|
+
control: string;
|
|
108
|
+
options: string[];
|
|
109
|
+
defaultValue: string;
|
|
110
|
+
table: {
|
|
111
|
+
type: {
|
|
112
|
+
summary: string;
|
|
113
|
+
};
|
|
114
|
+
defaultValue: {
|
|
115
|
+
summary: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
description: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { LinkProps as CLinkProps } from '@chakra-ui/react';
|
|
3
|
+
import { LinkIconProps } from './components/linkIcon.component';
|
|
4
|
+
import { TextColor, TextSize } from 'components/Typography';
|
|
5
|
+
export interface LinkProps extends CLinkProps {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
iconProps?: LinkIconProps;
|
|
8
|
+
size?: TextSize;
|
|
9
|
+
colorToken?: TextColor;
|
|
10
|
+
onDark?: boolean;
|
|
11
|
+
to?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const LinkConfig: {
|
|
2
|
+
parts?: undefined;
|
|
3
|
+
baseStyle?: import("@chakra-ui/react").CSSWithMultiValues | import("@chakra-ui/theme-tools").SystemStyleFunction | undefined;
|
|
4
|
+
sizes?: Record<string, import("@chakra-ui/theme-tools").SystemStyleInterpolation> | undefined;
|
|
5
|
+
variants?: Record<string, import("@chakra-ui/theme-tools").SystemStyleInterpolation> | undefined;
|
|
6
|
+
defaultProps?: import("@chakra-ui/react").ComponentDefaultProps | undefined;
|
|
7
|
+
} | {
|
|
8
|
+
parts: string[];
|
|
9
|
+
baseStyle?: import("@chakra-ui/react").CSSWithMultiValues | import("@chakra-ui/theme-tools").SystemStyleFunction | Partial<Record<string, import("@chakra-ui/react").CSSObject>> | import("@chakra-ui/theme-tools").PartsStyleFunction<{
|
|
10
|
+
__type: string;
|
|
11
|
+
}> | undefined;
|
|
12
|
+
sizes?: Record<string, import("@chakra-ui/theme-tools").SystemStyleInterpolation> | Record<string, import("@chakra-ui/theme-tools").PartsStyleInterpolation<{
|
|
13
|
+
__type: string;
|
|
14
|
+
}>> | undefined;
|
|
15
|
+
variants?: Record<string, import("@chakra-ui/theme-tools").SystemStyleInterpolation> | Record<string, import("@chakra-ui/theme-tools").PartsStyleInterpolation<{
|
|
16
|
+
__type: string;
|
|
17
|
+
}>> | undefined;
|
|
18
|
+
defaultProps?: import("@chakra-ui/react").ComponentDefaultProps | undefined;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LinkOverlay } from '@chakra-ui/react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { PopoverProps as ChakraPopoverProps } from '@chakra-ui/react';
|
|
2
|
+
import { PopoverProps as ChakraPopoverProps, PopoverContentProps } from '@chakra-ui/react';
|
|
3
3
|
import { PopoverSize } from './popover.types';
|
|
4
4
|
import { Token } from '@chakra-ui/styled-system/dist/declarations/src/utils';
|
|
5
5
|
import * as CSS from 'csstype';
|
|
@@ -10,5 +10,6 @@ export interface PopoverProps extends ChakraPopoverProps {
|
|
|
10
10
|
allowEscape?: boolean;
|
|
11
11
|
size?: PopoverSize;
|
|
12
12
|
shadow?: Token<CSS.Property.BoxShadow | number, 'shadows'>;
|
|
13
|
+
contentProps?: PopoverContentProps;
|
|
13
14
|
}
|
|
14
|
-
export declare const Popover: ({ children, popoverTrigger, darkMode, allowEscape, size, shadow, ...rest }: PopoverProps) => JSX.Element;
|
|
15
|
+
export declare const Popover: ({ children, popoverTrigger, darkMode, allowEscape, size, shadow, contentProps, ...rest }: PopoverProps) => JSX.Element;
|
package/build/index.js
CHANGED
|
@@ -3571,7 +3571,7 @@ var Button = React.forwardRef(function (props, ref) {
|
|
|
3571
3571
|
domProps[position] = ButtonIcon;
|
|
3572
3572
|
}
|
|
3573
3573
|
}
|
|
3574
|
-
return (React__default["default"].createElement(react.Button, __assign({ fontWeight:
|
|
3574
|
+
return (React__default["default"].createElement(react.Button, __assign({ fontWeight: fontWeights.semibold, cursor: "pointer", ref: ref, _hover: hoverClass, _active: activeClass, size: p.size || 'md', iconSpacing: domProps.size === 'sm' || domProps.size === 'xs' ? '4px' : '8px', borderRadius: radii.base }, domProps), domProps.children));
|
|
3575
3575
|
});
|
|
3576
3576
|
Button.displayName = 'Button';
|
|
3577
3577
|
|
|
@@ -3763,23 +3763,6 @@ var ButtonVariantConfig = {
|
|
|
3763
3763
|
border: colors$1.transparent,
|
|
3764
3764
|
},
|
|
3765
3765
|
},
|
|
3766
|
-
link: {
|
|
3767
|
-
variant: 'link',
|
|
3768
|
-
light: {
|
|
3769
|
-
content: colors$1.text.light.link,
|
|
3770
|
-
default: colors$1.transparent,
|
|
3771
|
-
hover: colors$1.transparent,
|
|
3772
|
-
active: colors$1.transparent,
|
|
3773
|
-
border: colors$1.transparent,
|
|
3774
|
-
},
|
|
3775
|
-
dark: {
|
|
3776
|
-
content: colors$1.text.dark.link,
|
|
3777
|
-
default: colors$1.transparent,
|
|
3778
|
-
hover: colors$1.transparent,
|
|
3779
|
-
active: colors$1.transparent,
|
|
3780
|
-
border: colors$1.transparent,
|
|
3781
|
-
},
|
|
3782
|
-
},
|
|
3783
3766
|
};
|
|
3784
3767
|
var ButtonSizeConfig = {
|
|
3785
3768
|
lg: {
|
|
@@ -3994,7 +3977,7 @@ function withFormControl(Component) {
|
|
|
3994
3977
|
var labelColor = useAdaptiveColorMap(colors.text, 'default');
|
|
3995
3978
|
return (React__default["default"].createElement(react.FormControl, __assign({}, formControlStyle, { isInvalid: isInvalid, isRequired: isRequired, isReadOnly: isReadOnly, isDisabled: isDisabled }),
|
|
3996
3979
|
label && (React__default["default"].createElement(react.FormLabel, __assign({ display: isFieldInline ? 'inline-block' : 'block', color: labelColor, fontSize: fontSizes[size] }, labelStyle), label)),
|
|
3997
|
-
React__default["default"].createElement(react.Flex, { align: "center", gap: 2 },
|
|
3980
|
+
React__default["default"].createElement(react.Flex, { align: "center", gap: 2, display: isFieldInline ? 'inline-block' : 'block' },
|
|
3998
3981
|
React__default["default"].createElement(Component, __assign({ size: size }, props, { isFieldInline: isFieldInline, errorBorderColor: useInvalidBorder ? colors.border.light.error : colors.border.light.default, focusBorderColor: colors.border.light.focus })),
|
|
3999
3982
|
useInvalidIcon && isInvalid && React__default["default"].createElement(Icon, { name: "warningSign", color: invalidIconColor || 'error', size: size })),
|
|
4000
3983
|
shouldShowBottomContent && (React__default["default"].createElement(react.Flex, { mt: 2, w: "100%", justifyContent: alignment, alignItems: "center" },
|
|
@@ -15213,14 +15196,14 @@ var ModalFooterButtons = function (_a) {
|
|
|
15213
15196
|
};
|
|
15214
15197
|
|
|
15215
15198
|
var Popover = function (_a) {
|
|
15216
|
-
var children = _a.children, popoverTrigger = _a.popoverTrigger, darkMode = _a.darkMode, _b = _a.allowEscape, allowEscape = _b === void 0 ? true : _b, _c = _a.size, size = _c === void 0 ? 'sm' : _c, _d = _a.shadow, shadow = _d === void 0 ? 'md' : _d, rest = __rest(_a, ["children", "popoverTrigger", "darkMode", "allowEscape", "size", "shadow"]);
|
|
15199
|
+
var children = _a.children, popoverTrigger = _a.popoverTrigger, darkMode = _a.darkMode, _b = _a.allowEscape, allowEscape = _b === void 0 ? true : _b, _c = _a.size, size = _c === void 0 ? 'sm' : _c, _d = _a.shadow, shadow = _d === void 0 ? 'md' : _d, contentProps = _a.contentProps, rest = __rest(_a, ["children", "popoverTrigger", "darkMode", "allowEscape", "size", "shadow", "contentProps"]);
|
|
15217
15200
|
var _e = useTheme(), colors = _e.colors, components = _e.components;
|
|
15218
15201
|
var width = components.Popover[size].width;
|
|
15219
15202
|
var adaptiveBackground = useAdaptiveColor(colors.background);
|
|
15220
15203
|
var bg = !darkMode ? adaptiveBackground : colors.background.dark;
|
|
15221
15204
|
return (React__default["default"].createElement(react.Popover, __assign({}, rest, { closeOnBlur: allowEscape, closeOnEsc: allowEscape }),
|
|
15222
15205
|
React__default["default"].createElement(react.PopoverTrigger, null, popoverTrigger),
|
|
15223
|
-
withDarkMode$1(React__default["default"].createElement(react.PopoverContent, { width: width, bg: bg, shadow: shadow },
|
|
15206
|
+
withDarkMode$1(React__default["default"].createElement(react.PopoverContent, __assign({ width: width, bg: bg, shadow: shadow }, contentProps),
|
|
15224
15207
|
React__default["default"].createElement(react.PopoverArrow, { bg: bg }),
|
|
15225
15208
|
React__default["default"].createElement(Text, { size: "sm" }, children)), !!darkMode)));
|
|
15226
15209
|
};
|
|
@@ -22022,6 +22005,54 @@ var TabsConfig = {
|
|
|
22022
22005
|
},
|
|
22023
22006
|
};
|
|
22024
22007
|
|
|
22008
|
+
var LinkIcon = function (iconProps) {
|
|
22009
|
+
iconProps.position; var rest = __rest(iconProps, ["position"]);
|
|
22010
|
+
return React__default["default"].createElement(Icon, __assign({}, rest));
|
|
22011
|
+
};
|
|
22012
|
+
|
|
22013
|
+
var useIconTextSizeMap = function (textSize) {
|
|
22014
|
+
switch (textSize) {
|
|
22015
|
+
case 'xs':
|
|
22016
|
+
return 'xs';
|
|
22017
|
+
case 'sm':
|
|
22018
|
+
return 'sm';
|
|
22019
|
+
case 'md':
|
|
22020
|
+
return 'md';
|
|
22021
|
+
case 'lg':
|
|
22022
|
+
case 'xl':
|
|
22023
|
+
case '2xl':
|
|
22024
|
+
case '3xl':
|
|
22025
|
+
case '4xl':
|
|
22026
|
+
return 'lg';
|
|
22027
|
+
case '5xl':
|
|
22028
|
+
case '6xl':
|
|
22029
|
+
return '2xl';
|
|
22030
|
+
}
|
|
22031
|
+
};
|
|
22032
|
+
|
|
22033
|
+
var Link = React.forwardRef(function (props, ref) {
|
|
22034
|
+
var colors = useTheme().colors;
|
|
22035
|
+
var children = props.children, color = props.color, _a = props.colorToken, colorToken = _a === void 0 ? 'link' : _a, _b = props.onDark, onDark = _b === void 0 ? false : _b, iconProps = props.iconProps, _c = props.size, size = _c === void 0 ? 'md' : _c, rest = __rest(props, ["children", "color", "colorToken", "onDark", "iconProps", "size"]);
|
|
22036
|
+
var adaptiveColor = useAdaptiveColorMap(colors.text, colorToken, onDark);
|
|
22037
|
+
var mappIconSize = useIconTextSizeMap(size);
|
|
22038
|
+
if (iconProps && !iconProps.position) {
|
|
22039
|
+
iconProps.position = 'start';
|
|
22040
|
+
}
|
|
22041
|
+
return (React__default["default"].createElement(react.Link, __assign({ display: "inline-block", size: size, ref: ref, color: color || adaptiveColor }, rest),
|
|
22042
|
+
React__default["default"].createElement(react.HStack, { spacing: 1, align: "center" },
|
|
22043
|
+
(iconProps === null || iconProps === void 0 ? void 0 : iconProps.position) === 'start' && React__default["default"].createElement(LinkIcon, __assign({ size: mappIconSize }, iconProps)),
|
|
22044
|
+
React__default["default"].createElement(react.Box, null, children),
|
|
22045
|
+
(iconProps === null || iconProps === void 0 ? void 0 : iconProps.position) === 'end' && React__default["default"].createElement(LinkIcon, __assign({ size: mappIconSize }, iconProps)))));
|
|
22046
|
+
});
|
|
22047
|
+
Link.displayName = 'Link';
|
|
22048
|
+
|
|
22049
|
+
var BaseLinkConfig = {
|
|
22050
|
+
baseStyle: {
|
|
22051
|
+
textDecoration: 'underline',
|
|
22052
|
+
},
|
|
22053
|
+
};
|
|
22054
|
+
var LinkConfig = __assign(__assign({}, BaseLinkConfig), TextConfig);
|
|
22055
|
+
|
|
22025
22056
|
// @ts-ignore
|
|
22026
22057
|
var theme = react.extendTheme({
|
|
22027
22058
|
styles: {
|
|
@@ -22065,6 +22096,7 @@ var theme = react.extendTheme({
|
|
|
22065
22096
|
Tabs: TabsConfig,
|
|
22066
22097
|
Radio: RadioConfig,
|
|
22067
22098
|
Checkbox: CheckboxConfig,
|
|
22099
|
+
Link: LinkConfig,
|
|
22068
22100
|
},
|
|
22069
22101
|
});
|
|
22070
22102
|
|
|
@@ -24764,6 +24796,10 @@ Object.defineProperty(exports, 'InputRightElement', {
|
|
|
24764
24796
|
enumerable: true,
|
|
24765
24797
|
get: function () { return react.InputRightElement; }
|
|
24766
24798
|
});
|
|
24799
|
+
Object.defineProperty(exports, 'LinkOverlay', {
|
|
24800
|
+
enumerable: true,
|
|
24801
|
+
get: function () { return react.LinkOverlay; }
|
|
24802
|
+
});
|
|
24767
24803
|
Object.defineProperty(exports, 'MenuDivider', {
|
|
24768
24804
|
enumerable: true,
|
|
24769
24805
|
get: function () { return react.MenuDivider; }
|
|
@@ -24898,6 +24934,8 @@ exports.HeadingConfig = HeadingConfig;
|
|
|
24898
24934
|
exports.Icon = Icon;
|
|
24899
24935
|
exports.KibbleThemeProvider = KibbleThemeProvider;
|
|
24900
24936
|
exports.LightStatusVariantMap = LightStatusVariantMap;
|
|
24937
|
+
exports.Link = Link;
|
|
24938
|
+
exports.LinkConfig = LinkConfig;
|
|
24901
24939
|
exports.Logo = Logo;
|
|
24902
24940
|
exports.Menu = Menu;
|
|
24903
24941
|
exports.MenuConfig = MenuConfig;
|