@wavv/ui 2.3.11 → 2.3.13
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/Accordion/Accordion.d.ts +2 -1
- package/build/components/Accordion/Header.d.ts +3 -1
- package/build/components/Accordion/Header.js +22 -6
- package/build/components/Avatar.js +4 -5
- package/build/components/DropdownMenu.d.ts +1 -1
- package/build/components/Icon/Icon.js +16 -5
- package/build/components/Icon/createWrappedIcon.d.ts +22 -0
- package/build/components/Icon/createWrappedIcon.js +52 -0
- package/build/components/Icon/icons.d.ts +143 -141
- package/build/components/Icon/icons.js +143 -141
- package/build/components/ImageViewer.js +1 -1
- package/build/components/ListHelpers/GridListHeader.d.ts +1 -1
- package/build/components/ListHelpers/ListHeader.d.ts +1 -1
- package/build/components/Modal.d.ts +3 -3
- package/build/components/Modal.js +4 -4
- package/build/hooks/useWindowSize.js +1 -1
- package/build/theme/core/dark/dark.js +2 -2
- package/build/theme/mono/dark/dark.js +2 -2
- package/build/utils/copyToClipboard.js +2 -2
- package/package.json +26 -26
|
@@ -26,8 +26,9 @@ declare const Accordion: {
|
|
|
26
26
|
displayName: string;
|
|
27
27
|
};
|
|
28
28
|
Header: {
|
|
29
|
-
({ children, triggerIconPosition, background, title, iconLeft, iconRight, ...props }: {
|
|
29
|
+
({ children, triggerIconPosition, background, title, subtitle, iconLeft, iconRight, ...props }: {
|
|
30
30
|
title: React.ReactNode;
|
|
31
|
+
subtitle?: React.ReactNode;
|
|
31
32
|
children?: React.ReactNode;
|
|
32
33
|
background?: string;
|
|
33
34
|
triggerIconPosition?: "left" | "right";
|
|
@@ -5,6 +5,8 @@ type ElAttributes = Omit<Attributes<HTMLDivElement>, 'title'>;
|
|
|
5
5
|
type HeaderProps = {
|
|
6
6
|
/** The header title of the item */
|
|
7
7
|
title: React.ReactNode;
|
|
8
|
+
/** The subtitle of the item */
|
|
9
|
+
subtitle?: React.ReactNode;
|
|
8
10
|
/** The content of the item (displayed to the right of the title) */
|
|
9
11
|
children?: React.ReactNode;
|
|
10
12
|
/** The background color of the header */
|
|
@@ -19,7 +21,7 @@ type HeaderProps = {
|
|
|
19
21
|
style?: React.CSSProperties;
|
|
20
22
|
} & Padding & Height & ElAttributes;
|
|
21
23
|
declare const Header: {
|
|
22
|
-
({ children, triggerIconPosition, background, title, iconLeft, iconRight, ...props }: HeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
({ children, triggerIconPosition, background, title, subtitle, iconLeft, iconRight, ...props }: HeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
23
25
|
displayName: string;
|
|
24
26
|
};
|
|
25
27
|
export default Header;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
3
|
import { useRef } from "react";
|
|
4
|
-
import { Heading } from "react-aria-components";
|
|
4
|
+
import { Heading, Text } from "react-aria-components";
|
|
5
5
|
import Ellipsis from "../Ellipsis.js";
|
|
6
6
|
import getIcon from "../helpers/getIcon.js";
|
|
7
7
|
import isPropAllowed from "../helpers/isPropAllowed.js";
|
|
8
8
|
import { paddingProps } from "../helpers/styledProps.js";
|
|
9
9
|
import Icon from "../Icon/index.js";
|
|
10
10
|
import AriaButton from "../Inputs/helpers/AriaButton.js";
|
|
11
|
-
const Header = ({ children, triggerIconPosition = 'right', background, title, iconLeft, iconRight, ...props })=>{
|
|
11
|
+
const Header = ({ children, triggerIconPosition = 'right', background, title, subtitle, iconLeft, iconRight, ...props })=>{
|
|
12
12
|
const triggerRef = useRef(null);
|
|
13
13
|
return /*#__PURE__*/ jsxs(HeaderContainer, {
|
|
14
14
|
onClick: ()=>triggerRef.current?.click(),
|
|
@@ -21,13 +21,20 @@ const Header = ({ children, triggerIconPosition = 'right', background, title, ic
|
|
|
21
21
|
}),
|
|
22
22
|
iconLeft && getIcon(iconLeft),
|
|
23
23
|
/*#__PURE__*/ jsx(Title, {
|
|
24
|
-
children: /*#__PURE__*/
|
|
24
|
+
children: /*#__PURE__*/ jsxs(TitleButton, {
|
|
25
25
|
slot: "trigger",
|
|
26
26
|
ref: triggerRef,
|
|
27
27
|
width: "100%",
|
|
28
|
-
children:
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
children: [
|
|
29
|
+
/*#__PURE__*/ jsx(Ellipsis, {
|
|
30
|
+
children: title
|
|
31
|
+
}),
|
|
32
|
+
subtitle && /*#__PURE__*/ jsx(Subtitle, {
|
|
33
|
+
children: /*#__PURE__*/ jsx(Ellipsis, {
|
|
34
|
+
children: subtitle
|
|
35
|
+
})
|
|
36
|
+
})
|
|
37
|
+
]
|
|
31
38
|
})
|
|
32
39
|
}),
|
|
33
40
|
/*#__PURE__*/ jsx(Content, {
|
|
@@ -58,6 +65,11 @@ const HeaderContainer = styled.div(({ theme, background, height })=>({
|
|
|
58
65
|
transition: 'transform 300ms'
|
|
59
66
|
}
|
|
60
67
|
}), paddingProps);
|
|
68
|
+
const TitleButton = styled(AriaButton)({
|
|
69
|
+
display: 'flex',
|
|
70
|
+
alignItems: 'flex-start',
|
|
71
|
+
gap: 8
|
|
72
|
+
});
|
|
61
73
|
const Title = styled(Heading, {
|
|
62
74
|
shouldForwardProp: (prop)=>isPropAllowed(prop, [
|
|
63
75
|
'reverse',
|
|
@@ -76,6 +88,10 @@ const Title = styled(Heading, {
|
|
|
76
88
|
textAlign: 'left',
|
|
77
89
|
overflow: 'hidden'
|
|
78
90
|
}));
|
|
91
|
+
const Subtitle = styled(Text)(({ theme })=>({
|
|
92
|
+
fontSize: theme.font.size.md,
|
|
93
|
+
color: theme.scale6
|
|
94
|
+
}));
|
|
79
95
|
const Content = styled.div({
|
|
80
96
|
display: 'flex',
|
|
81
97
|
alignItems: 'center',
|
|
@@ -35,6 +35,7 @@ const Avatar = ({ size = 32, url, icon, initials, acceptedFileTypes, onSelect, o
|
|
|
35
35
|
})
|
|
36
36
|
}),
|
|
37
37
|
hasUpload && /*#__PURE__*/ jsxs(ButtonContainer, {
|
|
38
|
+
className: "upload-container",
|
|
38
39
|
children: [
|
|
39
40
|
/*#__PURE__*/ jsx(FileTrigger, {
|
|
40
41
|
acceptedFileTypes: acceptedFileTypes,
|
|
@@ -95,11 +96,9 @@ const AvatarContainer = styled.div(({ theme, size, isImage, isPlaceholder })=>{
|
|
|
95
96
|
...isImage && {
|
|
96
97
|
backgroundColor: 'transparent'
|
|
97
98
|
},
|
|
98
|
-
'&:hover': {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
visibility: 'visible'
|
|
102
|
-
}
|
|
99
|
+
'&:hover .upload-container': {
|
|
100
|
+
opacity: 1,
|
|
101
|
+
visibility: 'visible'
|
|
103
102
|
}
|
|
104
103
|
};
|
|
105
104
|
}, marginProps, paddingProps);
|
|
@@ -52,7 +52,7 @@ declare const DropdownMenu: {
|
|
|
52
52
|
title?: string;
|
|
53
53
|
children: ReactNode;
|
|
54
54
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
55
|
-
Separator: import("@emotion/styled").StyledComponent<import("react-aria-components").SeparatorProps & import("react").RefAttributes<
|
|
55
|
+
Separator: import("@emotion/styled").StyledComponent<import("react-aria-components").SeparatorProps & import("react").RefAttributes<HTMLElement> & {
|
|
56
56
|
theme?: import("@emotion/react").Theme;
|
|
57
57
|
} & ThemeProp, {}, {}>;
|
|
58
58
|
};
|
|
@@ -8,10 +8,10 @@ import icons from "./icons.js";
|
|
|
8
8
|
const Icon = ({ name, svg, external, size, width, height, color, hoverColor, pointer = false, animation, style, onClick, ref, ...props })=>{
|
|
9
9
|
let SvgComponent = null;
|
|
10
10
|
let svgContent = null;
|
|
11
|
-
let
|
|
11
|
+
let WrappedIconComponent = null;
|
|
12
12
|
if (name) {
|
|
13
13
|
if (name in customIcons) SvgComponent = customIcons[name];
|
|
14
|
-
else if (name in icons)
|
|
14
|
+
else if (name in icons) WrappedIconComponent = icons[name];
|
|
15
15
|
} else if (svg) {
|
|
16
16
|
let element = svg;
|
|
17
17
|
if ('function' == typeof svg) element = svg();
|
|
@@ -29,10 +29,21 @@ const Icon = ({ name, svg, external, size, width, height, color, hoverColor, poi
|
|
|
29
29
|
};
|
|
30
30
|
let iconSize = 'number' == typeof size ? size : iconSizes.medium;
|
|
31
31
|
if ('tiny' === size || 'small' === size || 'medium' === size || 'large' === size) iconSize = iconSizes[size];
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
if (external) return /*#__PURE__*/ jsx(DynamicIcon, {
|
|
33
|
+
...props,
|
|
34
|
+
name: external,
|
|
35
|
+
size: iconSize,
|
|
36
|
+
pointer: pointer,
|
|
37
|
+
hoverColor: hoverColor,
|
|
38
|
+
color: color,
|
|
39
|
+
style: style,
|
|
40
|
+
onClick: onClick,
|
|
41
|
+
tabIndex: onClick ? 0 : void 0,
|
|
42
|
+
animation: animation,
|
|
43
|
+
ref: ref
|
|
44
|
+
});
|
|
45
|
+
if (WrappedIconComponent) return /*#__PURE__*/ jsx(WrappedIconComponent, {
|
|
34
46
|
...props,
|
|
35
|
-
name: finalLucideName,
|
|
36
47
|
size: iconSize,
|
|
37
48
|
pointer: pointer,
|
|
38
49
|
hoverColor: hoverColor,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { LucideProps } from 'lucide-react';
|
|
2
|
+
import type { ComponentType, Ref } from 'react';
|
|
3
|
+
import type { Margin } from '../types';
|
|
4
|
+
export type WrappedIconProps = {
|
|
5
|
+
/** Sets the color of the icon */
|
|
6
|
+
color?: string;
|
|
7
|
+
/** Sets the color of the icon when hovered */
|
|
8
|
+
hoverColor?: string;
|
|
9
|
+
/** Sets the width and height of the icon */
|
|
10
|
+
size?: number;
|
|
11
|
+
/** Sets the cursor as a pointer when hovered */
|
|
12
|
+
pointer?: boolean;
|
|
13
|
+
/** CSS Animation shorthand property */
|
|
14
|
+
animation?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
onClick?: () => void;
|
|
18
|
+
tabIndex?: number;
|
|
19
|
+
ref?: Ref<SVGSVGElement>;
|
|
20
|
+
} & Margin;
|
|
21
|
+
declare const createWrappedIcon: <T extends ComponentType<LucideProps>>(IconComponent: T) => ComponentType<WrappedIconProps>;
|
|
22
|
+
export default createWrappedIcon;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import styled from "@emotion/styled";
|
|
3
|
+
import isPropAllowed from "../helpers/isPropAllowed.js";
|
|
4
|
+
import { marginProps } from "../helpers/styledProps.js";
|
|
5
|
+
const createWrappedIcon = (IconComponent)=>{
|
|
6
|
+
const StyledIcon = styled(IconComponent, {
|
|
7
|
+
shouldForwardProp: (prop)=>isPropAllowed(prop, [
|
|
8
|
+
'pointer',
|
|
9
|
+
'hoverColor',
|
|
10
|
+
'margin',
|
|
11
|
+
'marginLeft',
|
|
12
|
+
'marginRight',
|
|
13
|
+
'marginTop',
|
|
14
|
+
'marginBottom'
|
|
15
|
+
])
|
|
16
|
+
})(({ theme, hoverColor, pointer, animation, size })=>({
|
|
17
|
+
display: 'flex',
|
|
18
|
+
width: size,
|
|
19
|
+
height: size,
|
|
20
|
+
minWidth: size,
|
|
21
|
+
minHeight: size,
|
|
22
|
+
cursor: pointer ? 'pointer' : 'inherit',
|
|
23
|
+
animation,
|
|
24
|
+
outline: 'none',
|
|
25
|
+
'&:hover': {
|
|
26
|
+
stroke: hoverColor
|
|
27
|
+
},
|
|
28
|
+
'&:focus-visible': {
|
|
29
|
+
outline: `${theme.accent} solid 1px`,
|
|
30
|
+
outlineOffset: -1
|
|
31
|
+
}
|
|
32
|
+
}), marginProps);
|
|
33
|
+
const WrappedIcon = ({ size, onClick, color, ...props })=>{
|
|
34
|
+
const handleKeyDown = (event)=>{
|
|
35
|
+
if ('Enter' === event.key || ' ' === event.key) {
|
|
36
|
+
event.preventDefault();
|
|
37
|
+
onClick?.();
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return /*#__PURE__*/ jsx(StyledIcon, {
|
|
41
|
+
...props,
|
|
42
|
+
size: size,
|
|
43
|
+
strokeWidth: 1.5,
|
|
44
|
+
color: color,
|
|
45
|
+
onClick: onClick,
|
|
46
|
+
onKeyDown: onClick ? handleKeyDown : void 0
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
return WrappedIcon;
|
|
50
|
+
};
|
|
51
|
+
const Icon_createWrappedIcon = createWrappedIcon;
|
|
52
|
+
export { Icon_createWrappedIcon as default };
|
|
@@ -1,145 +1,147 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { WrappedIconProps } from './createWrappedIcon';
|
|
1
3
|
declare const icons: {
|
|
2
|
-
readonly 'activity-history':
|
|
3
|
-
readonly add:
|
|
4
|
-
readonly 'add-circle':
|
|
5
|
-
readonly 'arrow-down':
|
|
6
|
-
readonly 'arrow-left':
|
|
7
|
-
readonly 'arrow-right':
|
|
8
|
-
readonly 'arrow-up':
|
|
9
|
-
readonly attachment:
|
|
10
|
-
readonly auto:
|
|
11
|
-
readonly bell:
|
|
12
|
-
readonly 'bell-dot':
|
|
13
|
-
readonly blockquote:
|
|
14
|
-
readonly bold:
|
|
15
|
-
readonly bot:
|
|
16
|
-
readonly bug:
|
|
17
|
-
readonly bulb:
|
|
18
|
-
readonly calendar:
|
|
19
|
-
readonly camera:
|
|
20
|
-
readonly card:
|
|
21
|
-
readonly check:
|
|
22
|
-
readonly 'check-badge':
|
|
23
|
-
readonly 'check-circle':
|
|
24
|
-
readonly 'chevron-down':
|
|
25
|
-
readonly 'chevron-left':
|
|
26
|
-
readonly 'chevron-right':
|
|
27
|
-
readonly 'chevron-up':
|
|
28
|
-
readonly circle:
|
|
29
|
-
readonly clapperboard:
|
|
30
|
-
readonly close:
|
|
31
|
-
readonly 'close-circle':
|
|
32
|
-
readonly copy:
|
|
33
|
-
readonly 'copy-check':
|
|
34
|
-
readonly 'copy-plus':
|
|
35
|
-
readonly cycle:
|
|
36
|
-
readonly dash:
|
|
37
|
-
readonly devices:
|
|
38
|
-
readonly 'double-arrow-left':
|
|
39
|
-
readonly 'double-arrow-right':
|
|
40
|
-
readonly download:
|
|
41
|
-
readonly drag:
|
|
42
|
-
readonly edit:
|
|
43
|
-
readonly 'emoji-happy':
|
|
44
|
-
readonly 'emoji-neutral':
|
|
45
|
-
readonly 'emoji-sad':
|
|
46
|
-
readonly 'eye-off':
|
|
47
|
-
readonly 'eye-on':
|
|
48
|
-
readonly facebook:
|
|
49
|
-
readonly filter:
|
|
50
|
-
readonly flag:
|
|
51
|
-
readonly flask:
|
|
52
|
-
readonly funnel:
|
|
53
|
-
readonly globe:
|
|
54
|
-
readonly group:
|
|
55
|
-
readonly hash:
|
|
56
|
-
readonly heading:
|
|
57
|
-
readonly 'heading-1':
|
|
58
|
-
readonly 'heading-2':
|
|
59
|
-
readonly 'heading-3':
|
|
60
|
-
readonly 'heading-4':
|
|
61
|
-
readonly 'heading-5':
|
|
62
|
-
readonly 'heading-6':
|
|
63
|
-
readonly headset:
|
|
64
|
-
readonly hearing:
|
|
65
|
-
readonly heart:
|
|
66
|
-
readonly help:
|
|
67
|
-
readonly highlight:
|
|
68
|
-
readonly home:
|
|
69
|
-
readonly hourglass:
|
|
70
|
-
readonly info:
|
|
71
|
-
readonly instagram:
|
|
72
|
-
readonly italic:
|
|
73
|
-
readonly join:
|
|
74
|
-
readonly 'kebab-menu':
|
|
75
|
-
readonly kanban:
|
|
76
|
-
readonly 'layout-dashboard':
|
|
77
|
-
readonly link:
|
|
78
|
-
readonly linkedin:
|
|
79
|
-
readonly 'list-bullet':
|
|
80
|
-
readonly 'list-checks':
|
|
81
|
-
readonly 'list-ordered':
|
|
82
|
-
readonly 'list-task':
|
|
83
|
-
readonly loading:
|
|
84
|
-
readonly 'local-area':
|
|
85
|
-
readonly location:
|
|
86
|
-
readonly logout:
|
|
87
|
-
readonly maximize:
|
|
88
|
-
readonly menu:
|
|
89
|
-
readonly merge:
|
|
90
|
-
readonly 'merge-field':
|
|
91
|
-
readonly message:
|
|
92
|
-
readonly mic:
|
|
93
|
-
readonly 'mic-off':
|
|
94
|
-
readonly minimize:
|
|
95
|
-
readonly mobile:
|
|
96
|
-
readonly 'not-allowed':
|
|
97
|
-
readonly notes:
|
|
98
|
-
readonly open:
|
|
99
|
-
readonly paragraph:
|
|
100
|
-
readonly pause:
|
|
101
|
-
readonly 'pause-circle':
|
|
102
|
-
readonly person:
|
|
103
|
-
readonly 'person-add':
|
|
104
|
-
readonly play:
|
|
105
|
-
readonly 'play-circle':
|
|
106
|
-
readonly priority:
|
|
107
|
-
readonly 'profile-user':
|
|
108
|
-
readonly redo:
|
|
109
|
-
readonly refresh:
|
|
110
|
-
readonly rocket:
|
|
111
|
-
readonly schedule:
|
|
112
|
-
readonly search:
|
|
113
|
-
readonly settings:
|
|
114
|
-
readonly share:
|
|
115
|
-
readonly 'share-arrow':
|
|
116
|
-
readonly shield:
|
|
117
|
-
readonly 'shield-check':
|
|
118
|
-
readonly 'shield-health':
|
|
119
|
-
readonly 'shield-slash':
|
|
120
|
-
readonly sort:
|
|
121
|
-
readonly 'sort-arrows':
|
|
122
|
-
readonly 'square-stack':
|
|
123
|
-
readonly stack:
|
|
124
|
-
readonly star:
|
|
125
|
-
readonly stars:
|
|
126
|
-
readonly stats:
|
|
127
|
-
readonly stop:
|
|
128
|
-
readonly 'stop-circle':
|
|
129
|
-
readonly strikethrough:
|
|
130
|
-
readonly template:
|
|
131
|
-
readonly transfer:
|
|
132
|
-
readonly trash:
|
|
133
|
-
readonly trophy:
|
|
134
|
-
readonly underline:
|
|
135
|
-
readonly undo:
|
|
136
|
-
readonly upload:
|
|
137
|
-
readonly video:
|
|
138
|
-
readonly voicemail:
|
|
139
|
-
readonly 'vol-on':
|
|
140
|
-
readonly warning:
|
|
141
|
-
readonly 'warning-circle':
|
|
142
|
-
readonly youtube:
|
|
4
|
+
readonly 'activity-history': ComponentType<WrappedIconProps>;
|
|
5
|
+
readonly add: ComponentType<WrappedIconProps>;
|
|
6
|
+
readonly 'add-circle': ComponentType<WrappedIconProps>;
|
|
7
|
+
readonly 'arrow-down': ComponentType<WrappedIconProps>;
|
|
8
|
+
readonly 'arrow-left': ComponentType<WrappedIconProps>;
|
|
9
|
+
readonly 'arrow-right': ComponentType<WrappedIconProps>;
|
|
10
|
+
readonly 'arrow-up': ComponentType<WrappedIconProps>;
|
|
11
|
+
readonly attachment: ComponentType<WrappedIconProps>;
|
|
12
|
+
readonly auto: ComponentType<WrappedIconProps>;
|
|
13
|
+
readonly bell: ComponentType<WrappedIconProps>;
|
|
14
|
+
readonly 'bell-dot': ComponentType<WrappedIconProps>;
|
|
15
|
+
readonly blockquote: ComponentType<WrappedIconProps>;
|
|
16
|
+
readonly bold: ComponentType<WrappedIconProps>;
|
|
17
|
+
readonly bot: ComponentType<WrappedIconProps>;
|
|
18
|
+
readonly bug: ComponentType<WrappedIconProps>;
|
|
19
|
+
readonly bulb: ComponentType<WrappedIconProps>;
|
|
20
|
+
readonly calendar: ComponentType<WrappedIconProps>;
|
|
21
|
+
readonly camera: ComponentType<WrappedIconProps>;
|
|
22
|
+
readonly card: ComponentType<WrappedIconProps>;
|
|
23
|
+
readonly check: ComponentType<WrappedIconProps>;
|
|
24
|
+
readonly 'check-badge': ComponentType<WrappedIconProps>;
|
|
25
|
+
readonly 'check-circle': ComponentType<WrappedIconProps>;
|
|
26
|
+
readonly 'chevron-down': ComponentType<WrappedIconProps>;
|
|
27
|
+
readonly 'chevron-left': ComponentType<WrappedIconProps>;
|
|
28
|
+
readonly 'chevron-right': ComponentType<WrappedIconProps>;
|
|
29
|
+
readonly 'chevron-up': ComponentType<WrappedIconProps>;
|
|
30
|
+
readonly circle: ComponentType<WrappedIconProps>;
|
|
31
|
+
readonly clapperboard: ComponentType<WrappedIconProps>;
|
|
32
|
+
readonly close: ComponentType<WrappedIconProps>;
|
|
33
|
+
readonly 'close-circle': ComponentType<WrappedIconProps>;
|
|
34
|
+
readonly copy: ComponentType<WrappedIconProps>;
|
|
35
|
+
readonly 'copy-check': ComponentType<WrappedIconProps>;
|
|
36
|
+
readonly 'copy-plus': ComponentType<WrappedIconProps>;
|
|
37
|
+
readonly cycle: ComponentType<WrappedIconProps>;
|
|
38
|
+
readonly dash: ComponentType<WrappedIconProps>;
|
|
39
|
+
readonly devices: ComponentType<WrappedIconProps>;
|
|
40
|
+
readonly 'double-arrow-left': ComponentType<WrappedIconProps>;
|
|
41
|
+
readonly 'double-arrow-right': ComponentType<WrappedIconProps>;
|
|
42
|
+
readonly download: ComponentType<WrappedIconProps>;
|
|
43
|
+
readonly drag: ComponentType<WrappedIconProps>;
|
|
44
|
+
readonly edit: ComponentType<WrappedIconProps>;
|
|
45
|
+
readonly 'emoji-happy': ComponentType<WrappedIconProps>;
|
|
46
|
+
readonly 'emoji-neutral': ComponentType<WrappedIconProps>;
|
|
47
|
+
readonly 'emoji-sad': ComponentType<WrappedIconProps>;
|
|
48
|
+
readonly 'eye-off': ComponentType<WrappedIconProps>;
|
|
49
|
+
readonly 'eye-on': ComponentType<WrappedIconProps>;
|
|
50
|
+
readonly facebook: ComponentType<WrappedIconProps>;
|
|
51
|
+
readonly filter: ComponentType<WrappedIconProps>;
|
|
52
|
+
readonly flag: ComponentType<WrappedIconProps>;
|
|
53
|
+
readonly flask: ComponentType<WrappedIconProps>;
|
|
54
|
+
readonly funnel: ComponentType<WrappedIconProps>;
|
|
55
|
+
readonly globe: ComponentType<WrappedIconProps>;
|
|
56
|
+
readonly group: ComponentType<WrappedIconProps>;
|
|
57
|
+
readonly hash: ComponentType<WrappedIconProps>;
|
|
58
|
+
readonly heading: ComponentType<WrappedIconProps>;
|
|
59
|
+
readonly 'heading-1': ComponentType<WrappedIconProps>;
|
|
60
|
+
readonly 'heading-2': ComponentType<WrappedIconProps>;
|
|
61
|
+
readonly 'heading-3': ComponentType<WrappedIconProps>;
|
|
62
|
+
readonly 'heading-4': ComponentType<WrappedIconProps>;
|
|
63
|
+
readonly 'heading-5': ComponentType<WrappedIconProps>;
|
|
64
|
+
readonly 'heading-6': ComponentType<WrappedIconProps>;
|
|
65
|
+
readonly headset: ComponentType<WrappedIconProps>;
|
|
66
|
+
readonly hearing: ComponentType<WrappedIconProps>;
|
|
67
|
+
readonly heart: ComponentType<WrappedIconProps>;
|
|
68
|
+
readonly help: ComponentType<WrappedIconProps>;
|
|
69
|
+
readonly highlight: ComponentType<WrappedIconProps>;
|
|
70
|
+
readonly home: ComponentType<WrappedIconProps>;
|
|
71
|
+
readonly hourglass: ComponentType<WrappedIconProps>;
|
|
72
|
+
readonly info: ComponentType<WrappedIconProps>;
|
|
73
|
+
readonly instagram: ComponentType<WrappedIconProps>;
|
|
74
|
+
readonly italic: ComponentType<WrappedIconProps>;
|
|
75
|
+
readonly join: ComponentType<WrappedIconProps>;
|
|
76
|
+
readonly 'kebab-menu': ComponentType<WrappedIconProps>;
|
|
77
|
+
readonly kanban: ComponentType<WrappedIconProps>;
|
|
78
|
+
readonly 'layout-dashboard': ComponentType<WrappedIconProps>;
|
|
79
|
+
readonly link: ComponentType<WrappedIconProps>;
|
|
80
|
+
readonly linkedin: ComponentType<WrappedIconProps>;
|
|
81
|
+
readonly 'list-bullet': ComponentType<WrappedIconProps>;
|
|
82
|
+
readonly 'list-checks': ComponentType<WrappedIconProps>;
|
|
83
|
+
readonly 'list-ordered': ComponentType<WrappedIconProps>;
|
|
84
|
+
readonly 'list-task': ComponentType<WrappedIconProps>;
|
|
85
|
+
readonly loading: ComponentType<WrappedIconProps>;
|
|
86
|
+
readonly 'local-area': ComponentType<WrappedIconProps>;
|
|
87
|
+
readonly location: ComponentType<WrappedIconProps>;
|
|
88
|
+
readonly logout: ComponentType<WrappedIconProps>;
|
|
89
|
+
readonly maximize: ComponentType<WrappedIconProps>;
|
|
90
|
+
readonly menu: ComponentType<WrappedIconProps>;
|
|
91
|
+
readonly merge: ComponentType<WrappedIconProps>;
|
|
92
|
+
readonly 'merge-field': ComponentType<WrappedIconProps>;
|
|
93
|
+
readonly message: ComponentType<WrappedIconProps>;
|
|
94
|
+
readonly mic: ComponentType<WrappedIconProps>;
|
|
95
|
+
readonly 'mic-off': ComponentType<WrappedIconProps>;
|
|
96
|
+
readonly minimize: ComponentType<WrappedIconProps>;
|
|
97
|
+
readonly mobile: ComponentType<WrappedIconProps>;
|
|
98
|
+
readonly 'not-allowed': ComponentType<WrappedIconProps>;
|
|
99
|
+
readonly notes: ComponentType<WrappedIconProps>;
|
|
100
|
+
readonly open: ComponentType<WrappedIconProps>;
|
|
101
|
+
readonly paragraph: ComponentType<WrappedIconProps>;
|
|
102
|
+
readonly pause: ComponentType<WrappedIconProps>;
|
|
103
|
+
readonly 'pause-circle': ComponentType<WrappedIconProps>;
|
|
104
|
+
readonly person: ComponentType<WrappedIconProps>;
|
|
105
|
+
readonly 'person-add': ComponentType<WrappedIconProps>;
|
|
106
|
+
readonly play: ComponentType<WrappedIconProps>;
|
|
107
|
+
readonly 'play-circle': ComponentType<WrappedIconProps>;
|
|
108
|
+
readonly priority: ComponentType<WrappedIconProps>;
|
|
109
|
+
readonly 'profile-user': ComponentType<WrappedIconProps>;
|
|
110
|
+
readonly redo: ComponentType<WrappedIconProps>;
|
|
111
|
+
readonly refresh: ComponentType<WrappedIconProps>;
|
|
112
|
+
readonly rocket: ComponentType<WrappedIconProps>;
|
|
113
|
+
readonly schedule: ComponentType<WrappedIconProps>;
|
|
114
|
+
readonly search: ComponentType<WrappedIconProps>;
|
|
115
|
+
readonly settings: ComponentType<WrappedIconProps>;
|
|
116
|
+
readonly share: ComponentType<WrappedIconProps>;
|
|
117
|
+
readonly 'share-arrow': ComponentType<WrappedIconProps>;
|
|
118
|
+
readonly shield: ComponentType<WrappedIconProps>;
|
|
119
|
+
readonly 'shield-check': ComponentType<WrappedIconProps>;
|
|
120
|
+
readonly 'shield-health': ComponentType<WrappedIconProps>;
|
|
121
|
+
readonly 'shield-slash': ComponentType<WrappedIconProps>;
|
|
122
|
+
readonly sort: ComponentType<WrappedIconProps>;
|
|
123
|
+
readonly 'sort-arrows': ComponentType<WrappedIconProps>;
|
|
124
|
+
readonly 'square-stack': ComponentType<WrappedIconProps>;
|
|
125
|
+
readonly stack: ComponentType<WrappedIconProps>;
|
|
126
|
+
readonly star: ComponentType<WrappedIconProps>;
|
|
127
|
+
readonly stars: ComponentType<WrappedIconProps>;
|
|
128
|
+
readonly stats: ComponentType<WrappedIconProps>;
|
|
129
|
+
readonly stop: ComponentType<WrappedIconProps>;
|
|
130
|
+
readonly 'stop-circle': ComponentType<WrappedIconProps>;
|
|
131
|
+
readonly strikethrough: ComponentType<WrappedIconProps>;
|
|
132
|
+
readonly template: ComponentType<WrappedIconProps>;
|
|
133
|
+
readonly transfer: ComponentType<WrappedIconProps>;
|
|
134
|
+
readonly trash: ComponentType<WrappedIconProps>;
|
|
135
|
+
readonly trophy: ComponentType<WrappedIconProps>;
|
|
136
|
+
readonly underline: ComponentType<WrappedIconProps>;
|
|
137
|
+
readonly undo: ComponentType<WrappedIconProps>;
|
|
138
|
+
readonly upload: ComponentType<WrappedIconProps>;
|
|
139
|
+
readonly video: ComponentType<WrappedIconProps>;
|
|
140
|
+
readonly voicemail: ComponentType<WrappedIconProps>;
|
|
141
|
+
readonly 'vol-on': ComponentType<WrappedIconProps>;
|
|
142
|
+
readonly warning: ComponentType<WrappedIconProps>;
|
|
143
|
+
readonly 'warning-circle': ComponentType<WrappedIconProps>;
|
|
144
|
+
readonly youtube: ComponentType<WrappedIconProps>;
|
|
143
145
|
};
|
|
144
146
|
export type IconNames = keyof typeof icons;
|
|
145
147
|
export default icons;
|
|
@@ -1,145 +1,147 @@
|
|
|
1
|
+
import { ArrowDown, ArrowDownWideNarrow, ArrowLeft, ArrowRight, ArrowRightLeft, ArrowUp, ArrowUpWideNarrow, BadgeCheck, Ban, Bell, BellDot, Bold, Bot, Braces, Bug, CalendarDays, Camera, ChartColumn, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, ChevronsLeft, ChevronsRight, ChevronsUpDown, Circle, CircleAlert, CircleCheck, CirclePause, CirclePlay, CirclePlus, CircleQuestionMark, CircleStop, CircleUserRound, CircleX, Clapperboard, Clock, Copy, CopyCheck, CopyPlus, CreditCard, Download, Ear, EllipsisVertical, ExternalLink, Eye, EyeOff, Facebook, FileText, Flag, FlaskConical, Frown, Funnel, Globe, GripVertical, Hash, Heading, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, Headset, Heart, Highlighter, Hourglass, House, IdCard, Info, Instagram, Italic, Kanban, Layers2, LayoutDashboard, Lightbulb, Link, Linkedin, List, ListChecks, ListFilter, ListOrdered, ListTodo, Loader, LogIn, LogOut, MapPin, MapPinned, Maximize2, Meh, Menu, Merge, MessageSquareMore, Mic, MicOff, Minimize2, Minus, MonitorSmartphone, NotebookPen, Paperclip, Pause, Pencil, Pilcrow, Play, Plus, Redo, RefreshCcwDot, RefreshCw, Rocket, RotateCw, Search, Settings, Share, Share2, Shield, ShieldCheck, ShieldOff, ShieldPlus, Smartphone, Smile, Sparkles, Square, SquareStack, Star, Strikethrough, TextQuote, Trash2, TriangleAlert, Trophy, Underline, Undo, Upload, UserRound, UserRoundPlus, Users, Video, Voicemail, Volume2, X, Youtube } from "lucide-react";
|
|
2
|
+
import createWrappedIcon from "./createWrappedIcon.js";
|
|
1
3
|
const icons = {
|
|
2
|
-
'activity-history':
|
|
3
|
-
add:
|
|
4
|
-
'add-circle':
|
|
5
|
-
'arrow-down':
|
|
6
|
-
'arrow-left':
|
|
7
|
-
'arrow-right':
|
|
8
|
-
'arrow-up':
|
|
9
|
-
attachment:
|
|
10
|
-
auto:
|
|
11
|
-
bell:
|
|
12
|
-
'bell-dot':
|
|
13
|
-
blockquote:
|
|
14
|
-
bold:
|
|
15
|
-
bot:
|
|
16
|
-
bug:
|
|
17
|
-
bulb:
|
|
18
|
-
calendar:
|
|
19
|
-
camera:
|
|
20
|
-
card:
|
|
21
|
-
check:
|
|
22
|
-
'check-badge':
|
|
23
|
-
'check-circle':
|
|
24
|
-
'chevron-down':
|
|
25
|
-
'chevron-left':
|
|
26
|
-
'chevron-right':
|
|
27
|
-
'chevron-up':
|
|
28
|
-
circle:
|
|
29
|
-
clapperboard:
|
|
30
|
-
close:
|
|
31
|
-
'close-circle':
|
|
32
|
-
copy:
|
|
33
|
-
'copy-check':
|
|
34
|
-
'copy-plus':
|
|
35
|
-
cycle:
|
|
36
|
-
dash:
|
|
37
|
-
devices:
|
|
38
|
-
'double-arrow-left':
|
|
39
|
-
'double-arrow-right':
|
|
40
|
-
download:
|
|
41
|
-
drag:
|
|
42
|
-
edit:
|
|
43
|
-
'emoji-happy':
|
|
44
|
-
'emoji-neutral':
|
|
45
|
-
'emoji-sad':
|
|
46
|
-
'eye-off':
|
|
47
|
-
'eye-on':
|
|
48
|
-
facebook:
|
|
49
|
-
filter:
|
|
50
|
-
flag:
|
|
51
|
-
flask:
|
|
52
|
-
funnel:
|
|
53
|
-
globe:
|
|
54
|
-
group:
|
|
55
|
-
hash:
|
|
56
|
-
heading:
|
|
57
|
-
'heading-1':
|
|
58
|
-
'heading-2':
|
|
59
|
-
'heading-3':
|
|
60
|
-
'heading-4':
|
|
61
|
-
'heading-5':
|
|
62
|
-
'heading-6':
|
|
63
|
-
headset:
|
|
64
|
-
hearing:
|
|
65
|
-
heart:
|
|
66
|
-
help:
|
|
67
|
-
highlight:
|
|
68
|
-
home:
|
|
69
|
-
hourglass:
|
|
70
|
-
info:
|
|
71
|
-
instagram:
|
|
72
|
-
italic:
|
|
73
|
-
join:
|
|
74
|
-
'kebab-menu':
|
|
75
|
-
kanban:
|
|
76
|
-
'layout-dashboard':
|
|
77
|
-
link:
|
|
78
|
-
linkedin:
|
|
79
|
-
'list-bullet':
|
|
80
|
-
'list-checks':
|
|
81
|
-
'list-ordered':
|
|
82
|
-
'list-task':
|
|
83
|
-
loading:
|
|
84
|
-
'local-area':
|
|
85
|
-
location:
|
|
86
|
-
logout:
|
|
87
|
-
maximize:
|
|
88
|
-
menu:
|
|
89
|
-
merge:
|
|
90
|
-
'merge-field':
|
|
91
|
-
message:
|
|
92
|
-
mic:
|
|
93
|
-
'mic-off':
|
|
94
|
-
minimize:
|
|
95
|
-
mobile:
|
|
96
|
-
'not-allowed':
|
|
97
|
-
notes:
|
|
98
|
-
open:
|
|
99
|
-
paragraph:
|
|
100
|
-
pause:
|
|
101
|
-
'pause-circle':
|
|
102
|
-
person:
|
|
103
|
-
'person-add':
|
|
104
|
-
play:
|
|
105
|
-
'play-circle':
|
|
106
|
-
priority:
|
|
107
|
-
'profile-user':
|
|
108
|
-
redo:
|
|
109
|
-
refresh:
|
|
110
|
-
rocket:
|
|
111
|
-
schedule:
|
|
112
|
-
search:
|
|
113
|
-
settings:
|
|
114
|
-
share:
|
|
115
|
-
'share-arrow':
|
|
116
|
-
shield:
|
|
117
|
-
'shield-check':
|
|
118
|
-
'shield-health':
|
|
119
|
-
'shield-slash':
|
|
120
|
-
sort:
|
|
121
|
-
'sort-arrows':
|
|
122
|
-
'square-stack':
|
|
123
|
-
stack:
|
|
124
|
-
star:
|
|
125
|
-
stars:
|
|
126
|
-
stats:
|
|
127
|
-
stop:
|
|
128
|
-
'stop-circle':
|
|
129
|
-
strikethrough:
|
|
130
|
-
template:
|
|
131
|
-
transfer:
|
|
132
|
-
trash:
|
|
133
|
-
trophy:
|
|
134
|
-
underline:
|
|
135
|
-
undo:
|
|
136
|
-
upload:
|
|
137
|
-
video:
|
|
138
|
-
voicemail:
|
|
139
|
-
'vol-on':
|
|
140
|
-
warning:
|
|
141
|
-
'warning-circle':
|
|
142
|
-
youtube:
|
|
4
|
+
'activity-history': createWrappedIcon(IdCard),
|
|
5
|
+
add: createWrappedIcon(Plus),
|
|
6
|
+
'add-circle': createWrappedIcon(CirclePlus),
|
|
7
|
+
'arrow-down': createWrappedIcon(ArrowDown),
|
|
8
|
+
'arrow-left': createWrappedIcon(ArrowLeft),
|
|
9
|
+
'arrow-right': createWrappedIcon(ArrowRight),
|
|
10
|
+
'arrow-up': createWrappedIcon(ArrowUp),
|
|
11
|
+
attachment: createWrappedIcon(Paperclip),
|
|
12
|
+
auto: createWrappedIcon(RefreshCcwDot),
|
|
13
|
+
bell: createWrappedIcon(Bell),
|
|
14
|
+
'bell-dot': createWrappedIcon(BellDot),
|
|
15
|
+
blockquote: createWrappedIcon(TextQuote),
|
|
16
|
+
bold: createWrappedIcon(Bold),
|
|
17
|
+
bot: createWrappedIcon(Bot),
|
|
18
|
+
bug: createWrappedIcon(Bug),
|
|
19
|
+
bulb: createWrappedIcon(Lightbulb),
|
|
20
|
+
calendar: createWrappedIcon(CalendarDays),
|
|
21
|
+
camera: createWrappedIcon(Camera),
|
|
22
|
+
card: createWrappedIcon(CreditCard),
|
|
23
|
+
check: createWrappedIcon(Check),
|
|
24
|
+
'check-badge': createWrappedIcon(BadgeCheck),
|
|
25
|
+
'check-circle': createWrappedIcon(CircleCheck),
|
|
26
|
+
'chevron-down': createWrappedIcon(ChevronDown),
|
|
27
|
+
'chevron-left': createWrappedIcon(ChevronLeft),
|
|
28
|
+
'chevron-right': createWrappedIcon(ChevronRight),
|
|
29
|
+
'chevron-up': createWrappedIcon(ChevronUp),
|
|
30
|
+
circle: createWrappedIcon(Circle),
|
|
31
|
+
clapperboard: createWrappedIcon(Clapperboard),
|
|
32
|
+
close: createWrappedIcon(X),
|
|
33
|
+
'close-circle': createWrappedIcon(CircleX),
|
|
34
|
+
copy: createWrappedIcon(Copy),
|
|
35
|
+
'copy-check': createWrappedIcon(CopyCheck),
|
|
36
|
+
'copy-plus': createWrappedIcon(CopyPlus),
|
|
37
|
+
cycle: createWrappedIcon(RefreshCw),
|
|
38
|
+
dash: createWrappedIcon(Minus),
|
|
39
|
+
devices: createWrappedIcon(MonitorSmartphone),
|
|
40
|
+
'double-arrow-left': createWrappedIcon(ChevronsLeft),
|
|
41
|
+
'double-arrow-right': createWrappedIcon(ChevronsRight),
|
|
42
|
+
download: createWrappedIcon(Download),
|
|
43
|
+
drag: createWrappedIcon(GripVertical),
|
|
44
|
+
edit: createWrappedIcon(Pencil),
|
|
45
|
+
'emoji-happy': createWrappedIcon(Smile),
|
|
46
|
+
'emoji-neutral': createWrappedIcon(Meh),
|
|
47
|
+
'emoji-sad': createWrappedIcon(Frown),
|
|
48
|
+
'eye-off': createWrappedIcon(EyeOff),
|
|
49
|
+
'eye-on': createWrappedIcon(Eye),
|
|
50
|
+
facebook: createWrappedIcon(Facebook),
|
|
51
|
+
filter: createWrappedIcon(ListFilter),
|
|
52
|
+
flag: createWrappedIcon(Flag),
|
|
53
|
+
flask: createWrappedIcon(FlaskConical),
|
|
54
|
+
funnel: createWrappedIcon(Funnel),
|
|
55
|
+
globe: createWrappedIcon(Globe),
|
|
56
|
+
group: createWrappedIcon(Users),
|
|
57
|
+
hash: createWrappedIcon(Hash),
|
|
58
|
+
heading: createWrappedIcon(Heading),
|
|
59
|
+
'heading-1': createWrappedIcon(Heading1),
|
|
60
|
+
'heading-2': createWrappedIcon(Heading2),
|
|
61
|
+
'heading-3': createWrappedIcon(Heading3),
|
|
62
|
+
'heading-4': createWrappedIcon(Heading4),
|
|
63
|
+
'heading-5': createWrappedIcon(Heading5),
|
|
64
|
+
'heading-6': createWrappedIcon(Heading6),
|
|
65
|
+
headset: createWrappedIcon(Headset),
|
|
66
|
+
hearing: createWrappedIcon(Ear),
|
|
67
|
+
heart: createWrappedIcon(Heart),
|
|
68
|
+
help: createWrappedIcon(CircleQuestionMark),
|
|
69
|
+
highlight: createWrappedIcon(Highlighter),
|
|
70
|
+
home: createWrappedIcon(House),
|
|
71
|
+
hourglass: createWrappedIcon(Hourglass),
|
|
72
|
+
info: createWrappedIcon(Info),
|
|
73
|
+
instagram: createWrappedIcon(Instagram),
|
|
74
|
+
italic: createWrappedIcon(Italic),
|
|
75
|
+
join: createWrappedIcon(LogIn),
|
|
76
|
+
'kebab-menu': createWrappedIcon(EllipsisVertical),
|
|
77
|
+
kanban: createWrappedIcon(Kanban),
|
|
78
|
+
'layout-dashboard': createWrappedIcon(LayoutDashboard),
|
|
79
|
+
link: createWrappedIcon(Link),
|
|
80
|
+
linkedin: createWrappedIcon(Linkedin),
|
|
81
|
+
'list-bullet': createWrappedIcon(List),
|
|
82
|
+
'list-checks': createWrappedIcon(ListChecks),
|
|
83
|
+
'list-ordered': createWrappedIcon(ListOrdered),
|
|
84
|
+
'list-task': createWrappedIcon(ListTodo),
|
|
85
|
+
loading: createWrappedIcon(Loader),
|
|
86
|
+
'local-area': createWrappedIcon(MapPinned),
|
|
87
|
+
location: createWrappedIcon(MapPin),
|
|
88
|
+
logout: createWrappedIcon(LogOut),
|
|
89
|
+
maximize: createWrappedIcon(Maximize2),
|
|
90
|
+
menu: createWrappedIcon(Menu),
|
|
91
|
+
merge: createWrappedIcon(Merge),
|
|
92
|
+
'merge-field': createWrappedIcon(Braces),
|
|
93
|
+
message: createWrappedIcon(MessageSquareMore),
|
|
94
|
+
mic: createWrappedIcon(Mic),
|
|
95
|
+
'mic-off': createWrappedIcon(MicOff),
|
|
96
|
+
minimize: createWrappedIcon(Minimize2),
|
|
97
|
+
mobile: createWrappedIcon(Smartphone),
|
|
98
|
+
'not-allowed': createWrappedIcon(Ban),
|
|
99
|
+
notes: createWrappedIcon(NotebookPen),
|
|
100
|
+
open: createWrappedIcon(ExternalLink),
|
|
101
|
+
paragraph: createWrappedIcon(Pilcrow),
|
|
102
|
+
pause: createWrappedIcon(Pause),
|
|
103
|
+
'pause-circle': createWrappedIcon(CirclePause),
|
|
104
|
+
person: createWrappedIcon(UserRound),
|
|
105
|
+
'person-add': createWrappedIcon(UserRoundPlus),
|
|
106
|
+
play: createWrappedIcon(Play),
|
|
107
|
+
'play-circle': createWrappedIcon(CirclePlay),
|
|
108
|
+
priority: createWrappedIcon(ArrowUpWideNarrow),
|
|
109
|
+
'profile-user': createWrappedIcon(CircleUserRound),
|
|
110
|
+
redo: createWrappedIcon(Redo),
|
|
111
|
+
refresh: createWrappedIcon(RotateCw),
|
|
112
|
+
rocket: createWrappedIcon(Rocket),
|
|
113
|
+
schedule: createWrappedIcon(Clock),
|
|
114
|
+
search: createWrappedIcon(Search),
|
|
115
|
+
settings: createWrappedIcon(Settings),
|
|
116
|
+
share: createWrappedIcon(Share2),
|
|
117
|
+
'share-arrow': createWrappedIcon(Share),
|
|
118
|
+
shield: createWrappedIcon(Shield),
|
|
119
|
+
'shield-check': createWrappedIcon(ShieldCheck),
|
|
120
|
+
'shield-health': createWrappedIcon(ShieldPlus),
|
|
121
|
+
'shield-slash': createWrappedIcon(ShieldOff),
|
|
122
|
+
sort: createWrappedIcon(ArrowDownWideNarrow),
|
|
123
|
+
'sort-arrows': createWrappedIcon(ChevronsUpDown),
|
|
124
|
+
'square-stack': createWrappedIcon(SquareStack),
|
|
125
|
+
stack: createWrappedIcon(Layers2),
|
|
126
|
+
star: createWrappedIcon(Star),
|
|
127
|
+
stars: createWrappedIcon(Sparkles),
|
|
128
|
+
stats: createWrappedIcon(ChartColumn),
|
|
129
|
+
stop: createWrappedIcon(Square),
|
|
130
|
+
'stop-circle': createWrappedIcon(CircleStop),
|
|
131
|
+
strikethrough: createWrappedIcon(Strikethrough),
|
|
132
|
+
template: createWrappedIcon(FileText),
|
|
133
|
+
transfer: createWrappedIcon(ArrowRightLeft),
|
|
134
|
+
trash: createWrappedIcon(Trash2),
|
|
135
|
+
trophy: createWrappedIcon(Trophy),
|
|
136
|
+
underline: createWrappedIcon(Underline),
|
|
137
|
+
undo: createWrappedIcon(Undo),
|
|
138
|
+
upload: createWrappedIcon(Upload),
|
|
139
|
+
video: createWrappedIcon(Video),
|
|
140
|
+
voicemail: createWrappedIcon(Voicemail),
|
|
141
|
+
'vol-on': createWrappedIcon(Volume2),
|
|
142
|
+
warning: createWrappedIcon(TriangleAlert),
|
|
143
|
+
'warning-circle': createWrappedIcon(CircleAlert),
|
|
144
|
+
youtube: createWrappedIcon(Youtube)
|
|
143
145
|
};
|
|
144
146
|
const Icon_icons = icons;
|
|
145
147
|
export { Icon_icons as default };
|
|
@@ -41,7 +41,7 @@ const ImageViewer = ({ visible, close, images, startIndex, alt, maxWidth, maxHei
|
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
useEffect(()=>{
|
|
44
|
-
const ssr =
|
|
44
|
+
const ssr = "u" < typeof window;
|
|
45
45
|
const cleanup = ssr ? ()=>null : ()=>window.removeEventListener('keydown', handleKeyPress);
|
|
46
46
|
if (visible && !ssr) window.addEventListener('keydown', handleKeyPress);
|
|
47
47
|
return cleanup;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ThemeProp } from '../types';
|
|
2
|
-
declare const ListHeader: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<HTMLElement> & import("react").RefAttributes<
|
|
2
|
+
declare const ListHeader: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLDivElement> & {
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
4
|
} & ThemeProp, {}, {}>;
|
|
5
5
|
export default ListHeader;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ThemeProp } from '../types';
|
|
2
|
-
declare const ListHeader: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<HTMLElement> & import("react").RefAttributes<
|
|
2
|
+
declare const ListHeader: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLElement> & {
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
4
|
} & ThemeProp, {}, {}>;
|
|
5
5
|
export default ListHeader;
|
|
@@ -24,9 +24,9 @@ type ModalProps = {
|
|
|
24
24
|
/** Overrides the overflow of the modal container */
|
|
25
25
|
overflow?: CSSProperties['overflow'];
|
|
26
26
|
/** Removes the overlay background, and allows the modal to be positioned anywhere on the page */
|
|
27
|
-
|
|
27
|
+
showOverlay?: boolean;
|
|
28
28
|
/** Removes the background color of the modal container */
|
|
29
|
-
|
|
29
|
+
showBackground?: boolean;
|
|
30
30
|
/** Prevents the modal from being interacted with */
|
|
31
31
|
inert?: boolean;
|
|
32
32
|
/** Renders the Modal as a full-height sliding drawer */
|
|
@@ -55,7 +55,7 @@ type ModalProps = {
|
|
|
55
55
|
'aria-label'?: string;
|
|
56
56
|
} & WidthHeight & MaxWidthHeight & MinWidthHeight & Padding & DivAttributes;
|
|
57
57
|
declare const Modal: {
|
|
58
|
-
({ children, visible, width, height, onClose, closeIcon, preventOverlayClose, overlayBlur, overlayColor, backgroundColor,
|
|
58
|
+
({ children, visible, width, height, onClose, closeIcon, preventOverlayClose, overlayBlur, overlayColor, backgroundColor, showOverlay, showBackground, inert, drawer, drawerDirection, scopeRef, centerX, centerY, position, top, bottom, right, left, zIndex, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
59
59
|
Header: {
|
|
60
60
|
({ children, ...props }: HeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
61
61
|
displayName: string;
|
|
@@ -5,7 +5,7 @@ import { Dialog, Heading, Modal, ModalOverlay } from "react-aria-components";
|
|
|
5
5
|
import { marginProps, maxWidthHeightProps, minWidthHeightProps, paddingProps } from "./helpers/styledProps.js";
|
|
6
6
|
import Icon from "./Icon/index.js";
|
|
7
7
|
import PortalScope from "./PortalScope.js";
|
|
8
|
-
const Modal_Modal = ({ children, visible, width, height, onClose, closeIcon, preventOverlayClose, overlayBlur = true, overlayColor, backgroundColor,
|
|
8
|
+
const Modal_Modal = ({ children, visible, width, height, onClose, closeIcon, preventOverlayClose, overlayBlur = true, overlayColor, backgroundColor, showOverlay = true, showBackground = true, inert, drawer, drawerDirection = 'right', scopeRef, centerX, centerY, position, top, bottom, right, left, zIndex, ...props })=>{
|
|
9
9
|
const { 'aria-label': ariaLabel, ...rest } = props;
|
|
10
10
|
const handleOpenChange = (open)=>{
|
|
11
11
|
if (!open) onClose();
|
|
@@ -15,7 +15,7 @@ const Modal_Modal = ({ children, visible, width, height, onClose, closeIcon, pre
|
|
|
15
15
|
isOpen: visible,
|
|
16
16
|
onOpenChange: handleOpenChange,
|
|
17
17
|
color: overlayColor,
|
|
18
|
-
noOverlay:
|
|
18
|
+
noOverlay: !showOverlay,
|
|
19
19
|
centerX: centerX,
|
|
20
20
|
centerY: centerY,
|
|
21
21
|
position: scopeRef ? 'absolute' : position,
|
|
@@ -41,8 +41,8 @@ const Modal_Modal = ({ children, visible, width, height, onClose, closeIcon, pre
|
|
|
41
41
|
width: width,
|
|
42
42
|
height: height,
|
|
43
43
|
backgroundColor: backgroundColor,
|
|
44
|
-
noBackground:
|
|
45
|
-
noOverlay:
|
|
44
|
+
noBackground: !showBackground,
|
|
45
|
+
noOverlay: !showOverlay,
|
|
46
46
|
drawer: drawer,
|
|
47
47
|
drawerDirection: drawerDirection,
|
|
48
48
|
centerX: centerX,
|
|
@@ -198,9 +198,9 @@ const dark = {
|
|
|
198
198
|
},
|
|
199
199
|
link: {
|
|
200
200
|
color: {
|
|
201
|
-
default: darkScale.
|
|
201
|
+
default: darkScale.accent,
|
|
202
202
|
hover: darkScale.accentShade1,
|
|
203
|
-
active: darkScale.
|
|
203
|
+
active: darkScale.accentShade2
|
|
204
204
|
},
|
|
205
205
|
outlineColor: {
|
|
206
206
|
default: colors.brandShade2,
|
|
@@ -198,9 +198,9 @@ const dark = {
|
|
|
198
198
|
},
|
|
199
199
|
link: {
|
|
200
200
|
color: {
|
|
201
|
-
default: darkScale.
|
|
201
|
+
default: darkScale.accent,
|
|
202
202
|
hover: darkScale.accentShade1,
|
|
203
|
-
active: darkScale.
|
|
203
|
+
active: darkScale.accentShade2
|
|
204
204
|
},
|
|
205
205
|
outlineColor: {
|
|
206
206
|
default: colors.brandShade2,
|
|
@@ -18,8 +18,8 @@ const legacyCopy = (text)=>{
|
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
const copyToClipboard = (text)=>{
|
|
21
|
-
if (
|
|
22
|
-
const canUseModernApi =
|
|
21
|
+
if ("u" < typeof window || "u" < typeof document) return;
|
|
22
|
+
const canUseModernApi = "u" > typeof navigator && navigator.clipboard && 'function' == typeof navigator.clipboard.writeText;
|
|
23
23
|
if (canUseModernApi) return void navigator.clipboard.writeText(text).catch(()=>{
|
|
24
24
|
legacyCopy(text);
|
|
25
25
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavv/ui",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -29,28 +29,28 @@
|
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@emotion/styled": "^11.14.1",
|
|
32
|
-
"@internationalized/date": "3.10.
|
|
32
|
+
"@internationalized/date": "3.10.1",
|
|
33
33
|
"@react-hook/resize-observer": "^2.0.2",
|
|
34
|
-
"@tiptap/core": "^3.
|
|
35
|
-
"@tiptap/extension-character-count": "^3.
|
|
36
|
-
"@tiptap/extension-highlight": "^3.
|
|
37
|
-
"@tiptap/extension-placeholder": "^3.
|
|
38
|
-
"@tiptap/extension-task-item": "^3.
|
|
39
|
-
"@tiptap/extension-task-list": "^3.
|
|
40
|
-
"@tiptap/markdown": "^3.
|
|
41
|
-
"@tiptap/pm": "^3.
|
|
42
|
-
"@tiptap/react": "^3.
|
|
43
|
-
"@tiptap/starter-kit": "^3.
|
|
34
|
+
"@tiptap/core": "^3.14.0",
|
|
35
|
+
"@tiptap/extension-character-count": "^3.14.0",
|
|
36
|
+
"@tiptap/extension-highlight": "^3.14.0",
|
|
37
|
+
"@tiptap/extension-placeholder": "^3.14.0",
|
|
38
|
+
"@tiptap/extension-task-item": "^3.14.0",
|
|
39
|
+
"@tiptap/extension-task-list": "^3.14.0",
|
|
40
|
+
"@tiptap/markdown": "^3.14.0",
|
|
41
|
+
"@tiptap/pm": "^3.14.0",
|
|
42
|
+
"@tiptap/react": "^3.14.0",
|
|
43
|
+
"@tiptap/starter-kit": "^3.14.0",
|
|
44
44
|
"cmdk": "^1.1.1",
|
|
45
45
|
"date-fns": "^4.1.0",
|
|
46
46
|
"draft-js": "^0.11.7",
|
|
47
47
|
"es-toolkit": "^1.43.0",
|
|
48
|
-
"libphonenumber-js": "^1.12.
|
|
49
|
-
"lucide-react": "^0.
|
|
48
|
+
"libphonenumber-js": "^1.12.33",
|
|
49
|
+
"lucide-react": "^0.562.0",
|
|
50
50
|
"polished": "^4.1.4",
|
|
51
51
|
"prism-react-renderer": "^2.4.1",
|
|
52
|
-
"react-aria": "3.
|
|
53
|
-
"react-aria-components": "1.
|
|
52
|
+
"react-aria": "3.45.0",
|
|
53
|
+
"react-aria-components": "1.14.0",
|
|
54
54
|
"react-keyed-flatten-children": "^5.1.1",
|
|
55
55
|
"react-phone-input-auto-format": "^0.1.0",
|
|
56
56
|
"recharts": "^3.6.0",
|
|
@@ -61,17 +61,17 @@
|
|
|
61
61
|
"@babel/core": "^7.28.5",
|
|
62
62
|
"@babel/preset-env": "^7.28.5",
|
|
63
63
|
"@babel/preset-typescript": "^7.28.5",
|
|
64
|
-
"@biomejs/biome": "2.3.
|
|
64
|
+
"@biomejs/biome": "2.3.10",
|
|
65
65
|
"@chromatic-com/storybook": "^4.1.3",
|
|
66
66
|
"@emotion/babel-plugin": "^11.13.5",
|
|
67
67
|
"@emotion/react": "^11.14.0",
|
|
68
|
-
"@rsbuild/core": "1.6.
|
|
68
|
+
"@rsbuild/core": "1.6.15",
|
|
69
69
|
"@rsbuild/plugin-react": "^1.4.2",
|
|
70
70
|
"@rsbuild/plugin-svgr": "^1.2.3",
|
|
71
|
-
"@rslib/core": "^0.18.
|
|
72
|
-
"@storybook/addon-docs": "^10.1.
|
|
73
|
-
"@storybook/addon-links": "^10.1.
|
|
74
|
-
"@storybook/addon-themes": "^10.1.
|
|
71
|
+
"@rslib/core": "^0.18.5",
|
|
72
|
+
"@storybook/addon-docs": "^10.1.10",
|
|
73
|
+
"@storybook/addon-links": "^10.1.10",
|
|
74
|
+
"@storybook/addon-themes": "^10.1.10",
|
|
75
75
|
"@storybook/test-runner": "^0.24.2",
|
|
76
76
|
"@svgr/core": "^8.1.0",
|
|
77
77
|
"@svgr/plugin-jsx": "^8.1.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@types/draft-js": "^0.11.20",
|
|
81
81
|
"@types/jest": "^30.0.0",
|
|
82
82
|
"@types/ncp": "^2.0.8",
|
|
83
|
-
"@types/node": "^25.0.
|
|
83
|
+
"@types/node": "^25.0.3",
|
|
84
84
|
"@types/prompts": "^2.4.9",
|
|
85
85
|
"@types/randomcolor": "^0.5.9",
|
|
86
86
|
"@types/react": "^19.2.7",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"lefthook": "^2.0.12",
|
|
95
95
|
"ncp": "^2.0.0",
|
|
96
96
|
"path": "^0.12.7",
|
|
97
|
-
"phone": "^3.1.
|
|
97
|
+
"phone": "^3.1.69",
|
|
98
98
|
"playwright": "^1.57.0",
|
|
99
99
|
"postcss": "^8.5.6",
|
|
100
100
|
"prettier": "^3.7.4",
|
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
"react-dom": "^19.2.3",
|
|
105
105
|
"replace": "^1.2.2",
|
|
106
106
|
"signale": "^1.4.0",
|
|
107
|
-
"storybook": "^10.1.
|
|
108
|
-
"storybook-react-rsbuild": "^3.
|
|
107
|
+
"storybook": "^10.1.10",
|
|
108
|
+
"storybook-react-rsbuild": "^3.2.0",
|
|
109
109
|
"tsc-files": "^1.1.4",
|
|
110
110
|
"tslib": "^2.8.1",
|
|
111
111
|
"tsx": "^4.21.0",
|